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 xf86-input-elographics 1.2.3.
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='xf86-input-elographics'
425 PACKAGE_TARNAME='xf86-input-elographics'
426 PACKAGE_VERSION='1.2.3'
427 PACKAGE_STRING='xf86-input-elographics 1.2.3'
428 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
430 ac_unique_file="Makefile.am"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT DRIVER_NAME build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL inputdir PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806 done
807
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828 do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881 else
882 ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950 ac_env_PKG_CONFIG_value=$PKG_CONFIG
951 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953 ac_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
954 ac_env_XORG_CFLAGS_value=$XORG_CFLAGS
955 ac_cv_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
956 ac_cv_env_XORG_CFLAGS_value=$XORG_CFLAGS
957 ac_env_XORG_LIBS_set=${XORG_LIBS+set}
958 ac_env_XORG_LIBS_value=$XORG_LIBS
959 ac_cv_env_XORG_LIBS_set=${XORG_LIBS+set}
960 ac_cv_env_XORG_LIBS_value=$XORG_LIBS
961
962 #
963 # Report the --help message.
964 #
965 if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
968 cat <<_ACEOF
969 \`configure' configures xf86-input-elographics 1.2.3 to adapt to many kinds of systems.
970
971 Usage: $0 [OPTION]... [VAR=VALUE]...
972
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE. See below for descriptions of some of the useful variables.
975
976 Defaults for the options are specified in brackets.
977
978 Configuration:
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988
989 _ACEOF
990
991 cat <<_ACEOF
992 Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
994 [$ac_default_prefix]
995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 [PREFIX]
997
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1002
1003 For better control, use the options below.
1004
1005 Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1018 _ACEOF
1019
1020 cat <<\_ACEOF
1021
1022 Program names:
1023 --program-prefix=PREFIX prepend PREFIX to installed program names
1024 --program-suffix=SUFFIX append SUFFIX to installed program names
1025 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1026
1027 System types:
1028 --build=BUILD configure for building on BUILD [guessed]
1029 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1030 _ACEOF
1031 fi
1032
1033 if test -n "$ac_init_help"; then
1034 case $ac_init_help in
1035 short | recursive ) echo "Configuration of xf86-input-elographics 1.2.3:";;
1036 esac
1037 cat <<\_ACEOF
1038
1039 Optional Features:
1040 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1041 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1042 --enable-maintainer-mode enable make rules and dependencies not useful
1043 (and sometimes confusing) to the casual installer
1044 --enable-static[=PKGS]
1045 build static libraries [default=no]
1046 --enable-shared[=PKGS]
1047 build shared libraries [default=yes]
1048 --enable-fast-install[=PKGS]
1049 optimize for fast installation [default=yes]
1050 --disable-dependency-tracking speeds up one-time build
1051 --enable-dependency-tracking do not reject slow dependency extractors
1052 --disable-libtool-lock avoid locking (might break parallel builds)
1053
1054 Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1057 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1058 --with-pic try to use only PIC/non-PIC objects [default=use
1059 both]
1060 --with-tags[=TAGS]
1061 include additional configurations [automatic]
1062 --with-xorg-module-dir=DIR
1063 Default xorg module directory
1064 [default=$libdir/xorg/modules]
1065 --with-release-version=STRING
1066 Use release version string in package name
1067
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1075 CPP C preprocessor
1076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
1078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
1081 PKG_CONFIG path to pkg-config utility
1082 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1083 XORG_LIBS linker flags for XORG, overriding pkg-config
1084
1085 Use these variables to override the choices made by `configure' or to help
1086 it to find libraries and programs with nonstandard names/locations.
1087
1088 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1089 _ACEOF
1090 fi
1091
1092 if test "$ac_init_help" = "recursive"; then
1093 # If there are subdirs, report their specific --help.
1094 ac_popdir=`pwd`
1095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1096 test -d $ac_dir || continue
1097 ac_builddir=.
1098
1099 if test "$ac_dir" != .; then
1100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1101 # A "../" for each directory in $ac_dir_suffix.
1102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1103 else
1104 ac_dir_suffix= ac_top_builddir=
1105 fi
1106
1107 case $srcdir in
1108 .) # No --srcdir option. We are building in place.
1109 ac_srcdir=.
1110 if test -z "$ac_top_builddir"; then
1111 ac_top_srcdir=.
1112 else
1113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1114 fi ;;
1115 [\\/]* | ?:[\\/]* ) # Absolute path.
1116 ac_srcdir=$srcdir$ac_dir_suffix;
1117 ac_top_srcdir=$srcdir ;;
1118 *) # Relative path.
1119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1120 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1121 esac
1122
1123 # Do not use `cd foo && pwd` to compute absolute paths, because
1124 # the directories may not exist.
1125 case `pwd` in
1126 .) ac_abs_builddir="$ac_dir";;
1127 *)
1128 case "$ac_dir" in
1129 .) ac_abs_builddir=`pwd`;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1131 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1132 esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1136 *)
1137 case ${ac_top_builddir}. in
1138 .) ac_abs_top_builddir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1141 esac;;
1142 esac
1143 case $ac_abs_builddir in
1144 .) ac_abs_srcdir=$ac_srcdir;;
1145 *)
1146 case $ac_srcdir in
1147 .) ac_abs_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1150 esac;;
1151 esac
1152 case $ac_abs_builddir in
1153 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1154 *)
1155 case $ac_top_srcdir in
1156 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159 esac;;
1160 esac
1161
1162 cd $ac_dir
1163 # Check for guested configure; otherwise get Cygnus style configure.
1164 if test -f $ac_srcdir/configure.gnu; then
1165 echo
1166 $SHELL $ac_srcdir/configure.gnu --help=recursive
1167 elif test -f $ac_srcdir/configure; then
1168 echo
1169 $SHELL $ac_srcdir/configure --help=recursive
1170 elif test -f $ac_srcdir/configure.ac ||
1171 test -f $ac_srcdir/configure.in; then
1172 echo
1173 $ac_configure --help
1174 else
1175 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 fi
1177 cd $ac_popdir
1178 done
1179 fi
1180
1181 test -n "$ac_init_help" && exit 0
1182 if $ac_init_version; then
1183 cat <<\_ACEOF
1184 xf86-input-elographics configure 1.2.3
1185 generated by GNU Autoconf 2.59
1186
1187 Copyright (C) 2003 Free Software Foundation, Inc.
1188 This configure script is free software; the Free Software Foundation
1189 gives unlimited permission to copy, distribute and modify it.
1190 _ACEOF
1191 exit 0
1192 fi
1193 exec 5>config.log
1194 cat >&5 <<_ACEOF
1195 This file contains any messages produced by compilers while
1196 running configure, to aid debugging if configure makes a mistake.
1197
1198 It was created by xf86-input-elographics $as_me 1.2.3, which was
1199 generated by GNU Autoconf 2.59. Invocation command line was
1200
1201 $ $0 $@
1202
1203 _ACEOF
1204 {
1205 cat <<_ASUNAME
1206 ## --------- ##
1207 ## Platform. ##
1208 ## --------- ##
1209
1210 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1211 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1212 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1213 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1214 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215
1216 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1217 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1218
1219 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1220 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1221 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1222 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1223 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1224 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1225 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226
1227 _ASUNAME
1228
1229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230 for as_dir in $PATH
1231 do
1232 IFS=$as_save_IFS
1233 test -z "$as_dir" && as_dir=.
1234 echo "PATH: $as_dir"
1235 done
1236
1237 } >&5
1238
1239 cat >&5 <<_ACEOF
1240
1241
1242 ## ----------- ##
1243 ## Core tests. ##
1244 ## ----------- ##
1245
1246 _ACEOF
1247
1248
1249 # Keep a trace of the command line.
1250 # Strip out --no-create and --no-recursion so they do not pile up.
1251 # Strip out --silent because we don't want to record it for future runs.
1252 # Also quote any args containing shell meta-characters.
1253 # Make two passes to allow for proper duplicate-argument suppression.
1254 ac_configure_args=
1255 ac_configure_args0=
1256 ac_configure_args1=
1257 ac_sep=
1258 ac_must_keep_next=false
1259 for ac_pass in 1 2
1260 do
1261 for ac_arg
1262 do
1263 case $ac_arg in
1264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1267 continue ;;
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 esac
1271 case $ac_pass in
1272 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273 2)
1274 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1275 if test $ac_must_keep_next = true; then
1276 ac_must_keep_next=false # Got value, back to normal.
1277 else
1278 case $ac_arg in
1279 *=* | --config-cache | -C | -disable-* | --disable-* \
1280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1282 | -with-* | --with-* | -without-* | --without-* | --x)
1283 case "$ac_configure_args0 " in
1284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1285 esac
1286 ;;
1287 -* ) ac_must_keep_next=true ;;
1288 esac
1289 fi
1290 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1291 # Get rid of the leading space.
1292 ac_sep=" "
1293 ;;
1294 esac
1295 done
1296 done
1297 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1298 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299
1300 # When interrupted or exit'd, cleanup temporary files, and complete
1301 # config.log. We remove comments because anyway the quotes in there
1302 # would cause problems or look ugly.
1303 # WARNING: Be sure not to use single quotes in there, as some shells,
1304 # such as our DU 5.0 friend, will then `close' the trap.
1305 trap 'exit_status=$?
1306 # Save into config.log some information that might help in debugging.
1307 {
1308 echo
1309
1310 cat <<\_ASBOX
1311 ## ---------------- ##
1312 ## Cache variables. ##
1313 ## ---------------- ##
1314 _ASBOX
1315 echo
1316 # The following way of writing the cache mishandles newlines in values,
1317 {
1318 (set) 2>&1 |
1319 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1320 *ac_space=\ *)
1321 sed -n \
1322 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324 ;;
1325 *)
1326 sed -n \
1327 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1328 ;;
1329 esac;
1330 }
1331 echo
1332
1333 cat <<\_ASBOX
1334 ## ----------------- ##
1335 ## Output variables. ##
1336 ## ----------------- ##
1337 _ASBOX
1338 echo
1339 for ac_var in $ac_subst_vars
1340 do
1341 eval ac_val=$`echo $ac_var`
1342 echo "$ac_var='"'"'$ac_val'"'"'"
1343 done | sort
1344 echo
1345
1346 if test -n "$ac_subst_files"; then
1347 cat <<\_ASBOX
1348 ## ------------- ##
1349 ## Output files. ##
1350 ## ------------- ##
1351 _ASBOX
1352 echo
1353 for ac_var in $ac_subst_files
1354 do
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1357 done | sort
1358 echo
1359 fi
1360
1361 if test -s confdefs.h; then
1362 cat <<\_ASBOX
1363 ## ----------- ##
1364 ## confdefs.h. ##
1365 ## ----------- ##
1366 _ASBOX
1367 echo
1368 sed "/^$/d" confdefs.h | sort
1369 echo
1370 fi
1371 test "$ac_signal" != 0 &&
1372 echo "$as_me: caught signal $ac_signal"
1373 echo "$as_me: exit $exit_status"
1374 } >&5
1375 rm -f core *.core &&
1376 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1377 exit $exit_status
1378 ' 0
1379 for ac_signal in 1 2 13 15; do
1380 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381 done
1382 ac_signal=0
1383
1384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1385 rm -rf conftest* confdefs.h
1386 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1387 echo >confdefs.h
1388
1389 # Predefined preprocessor variables.
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_NAME "$PACKAGE_NAME"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_STRING "$PACKAGE_STRING"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413 _ACEOF
1414
1415
1416 # Let the site file select an alternate cache file if it wants to.
1417 # Prefer explicitly selected file to automatically selected ones.
1418 if test -z "$CONFIG_SITE"; then
1419 if test "x$prefix" != xNONE; then
1420 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421 else
1422 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1423 fi
1424 fi
1425 for ac_site_file in $CONFIG_SITE; do
1426 if test -r "$ac_site_file"; then
1427 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1428 echo "$as_me: loading site script $ac_site_file" >&6;}
1429 sed 's/^/| /' "$ac_site_file" >&5
1430 . "$ac_site_file"
1431 fi
1432 done
1433
1434 if test -r "$cache_file"; then
1435 # Some versions of bash will fail to source /dev/null (special
1436 # files actually), so we avoid doing that.
1437 if test -f "$cache_file"; then
1438 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1439 echo "$as_me: loading cache $cache_file" >&6;}
1440 case $cache_file in
1441 [\\/]* | ?:[\\/]* ) . $cache_file;;
1442 *) . ./$cache_file;;
1443 esac
1444 fi
1445 else
1446 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1447 echo "$as_me: creating cache $cache_file" >&6;}
1448 >$cache_file
1449 fi
1450
1451 # Check that the precious variables saved in the cache have kept the same
1452 # value.
1453 ac_cache_corrupted=false
1454 for ac_var in `(set) 2>&1 |
1455 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1457 eval ac_new_set=\$ac_env_${ac_var}_set
1458 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1459 eval ac_new_val="\$ac_env_${ac_var}_value"
1460 case $ac_old_set,$ac_new_set in
1461 set,)
1462 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1463 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1464 ac_cache_corrupted=: ;;
1465 ,set)
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1467 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1468 ac_cache_corrupted=: ;;
1469 ,);;
1470 *)
1471 if test "x$ac_old_val" != "x$ac_new_val"; then
1472 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1473 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1474 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1475 echo "$as_me: former value: $ac_old_val" >&2;}
1476 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1477 echo "$as_me: current value: $ac_new_val" >&2;}
1478 ac_cache_corrupted=:
1479 fi;;
1480 esac
1481 # Pass precious variables to config.status.
1482 if test "$ac_new_set" = set; then
1483 case $ac_new_val in
1484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1485 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1486 *) ac_arg=$ac_var=$ac_new_val ;;
1487 esac
1488 case " $ac_configure_args " in
1489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1490 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491 esac
1492 fi
1493 done
1494 if $ac_cache_corrupted; then
1495 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1496 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1497 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1498 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1499 { (exit 1); exit 1; }; }
1500 fi
1501
1502 ac_ext=c
1503 ac_cpp='$CPP $CPPFLAGS'
1504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536 ac_aux_dir=
1537 for ac_dir in . $srcdir/.; do
1538 if test -f $ac_dir/install-sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1541 break
1542 elif test -f $ac_dir/install.sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install.sh -c"
1545 break
1546 elif test -f $ac_dir/shtool; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 break
1550 fi
1551 done
1552 if test -z "$ac_aux_dir"; then
1553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1555 { (exit 1); exit 1; }; }
1556 fi
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
1561 am__api_version="1.9"
1562 # Find a good install program. We prefer a C program (faster),
1563 # so one script is as good as another. But avoid the broken or
1564 # incompatible versions:
1565 # SysV /etc/install, /usr/sbin/install
1566 # SunOS /usr/etc/install
1567 # IRIX /sbin/install
1568 # AIX /bin/install
1569 # AmigaOS /C/install, which installs bootblocks on floppy discs
1570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1573 # OS/2's system install, which has a completely different semantic
1574 # ./install, which can be erroneously created by make from ./install.sh.
1575 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1576 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1577 if test -z "$INSTALL"; then
1578 if test "${ac_cv_path_install+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 # Account for people who put trailing slashes in PATH elements.
1587 case $as_dir/ in
1588 ./ | .// | /cC/* | \
1589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1590 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1591 /usr/ucb/* ) ;;
1592 *)
1593 # OSF1 and SCO ODT 3.0 have their own names for install.
1594 # Don't use installbsd from OSF since it installs stuff as root
1595 # by default.
1596 for ac_prog in ginstall scoinst install; do
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1599 if test $ac_prog = install &&
1600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601 # AIX install. It has an incompatible calling convention.
1602 :
1603 elif test $ac_prog = install &&
1604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605 # program-specific install script used by HP pwplus--don't use.
1606 :
1607 else
1608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1609 break 3
1610 fi
1611 fi
1612 done
1613 done
1614 ;;
1615 esac
1616 done
1617
1618
1619 fi
1620 if test "${ac_cv_path_install+set}" = set; then
1621 INSTALL=$ac_cv_path_install
1622 else
1623 # As a last resort, use the slow shell script. We don't cache a
1624 # path for INSTALL within a source directory, because that will
1625 # break other packages using the cache if that directory is
1626 # removed, or if the path is relative.
1627 INSTALL=$ac_install_sh
1628 fi
1629 fi
1630 echo "$as_me:$LINENO: result: $INSTALL" >&5
1631 echo "${ECHO_T}$INSTALL" >&6
1632
1633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1634 # It thinks the first close brace ends the variable substitution.
1635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1636
1637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1638
1639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1640
1641 test "$program_prefix" != NONE &&
1642 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1643 # Use a double $ so make ignores it.
1644 test "$program_suffix" != NONE &&
1645 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1646 # Double any \ or $. echo might interpret backslashes.
1647 # By default was `s,x,x', remove it if useless.
1648 cat <<\_ACEOF >conftest.sed
1649 s/[\\$]/&&/g;s/;s,x,x,$//
1650 _ACEOF
1651 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1652 rm conftest.sed
1653
1654 # expand $ac_aux_dir to an absolute path
1655 am_aux_dir=`cd $ac_aux_dir && pwd`
1656
1657 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1658 # Use eval to expand $SHELL
1659 if eval "$MISSING --run true"; then
1660 am_missing_run="$MISSING --run "
1661 else
1662 am_missing_run=
1663 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1664 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1665 fi
1666
1667 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1668 # We used to keeping the `.' as first argument, in order to
1669 # allow $(mkdir_p) to be used without argument. As in
1670 # $(mkdir_p) $(somedir)
1671 # where $(somedir) is conditionally defined. However this is wrong
1672 # for two reasons:
1673 # 1. if the package is installed by a user who cannot write `.'
1674 # make install will fail,
1675 # 2. the above comment should most certainly read
1676 # $(mkdir_p) $(DESTDIR)$(somedir)
1677 # so it does not work when $(somedir) is undefined and
1678 # $(DESTDIR) is not.
1679 # To support the latter case, we have to write
1680 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1681 # so the `.' trick is pointless.
1682 mkdir_p='mkdir -p --'
1683 else
1684 # On NextStep and OpenStep, the `mkdir' command does not
1685 # recognize any option. It will interpret all options as
1686 # directories to create, and then abort because `.' already
1687 # exists.
1688 for d in ./-p ./--version;
1689 do
1690 test -d $d && rmdir $d
1691 done
1692 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1693 if test -f "$ac_aux_dir/mkinstalldirs"; then
1694 mkdir_p='$(mkinstalldirs)'
1695 else
1696 mkdir_p='$(SHELL) $(install_sh) -d'
1697 fi
1698 fi
1699
1700 for ac_prog in gawk mawk nawk awk
1701 do
1702 # Extract the first word of "$ac_prog", so it can be a program name with args.
1703 set dummy $ac_prog; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_AWK+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709 if test -n "$AWK"; then
1710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_AWK="$ac_prog"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 break 2
1722 fi
1723 done
1724 done
1725
1726 fi
1727 fi
1728 AWK=$ac_cv_prog_AWK
1729 if test -n "$AWK"; then
1730 echo "$as_me:$LINENO: result: $AWK" >&5
1731 echo "${ECHO_T}$AWK" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 test -n "$AWK" && break
1738 done
1739
1740 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1741 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1742 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1743 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 else
1746 cat >conftest.make <<\_ACEOF
1747 all:
1748 @echo 'ac_maketemp="$(MAKE)"'
1749 _ACEOF
1750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1751 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1752 if test -n "$ac_maketemp"; then
1753 eval ac_cv_prog_make_${ac_make}_set=yes
1754 else
1755 eval ac_cv_prog_make_${ac_make}_set=no
1756 fi
1757 rm -f conftest.make
1758 fi
1759 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1760 echo "$as_me:$LINENO: result: yes" >&5
1761 echo "${ECHO_T}yes" >&6
1762 SET_MAKE=
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 SET_MAKE="MAKE=${MAKE-make}"
1767 fi
1768
1769 rm -rf .tst 2>/dev/null
1770 mkdir .tst 2>/dev/null
1771 if test -d .tst; then
1772 am__leading_dot=.
1773 else
1774 am__leading_dot=_
1775 fi
1776 rmdir .tst 2>/dev/null
1777
1778 # test to see if srcdir already configured
1779 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1780 test -f $srcdir/config.status; then
1781 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1782 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1783 { (exit 1); exit 1; }; }
1784 fi
1785
1786 # test whether we have cygpath
1787 if test -z "$CYGPATH_W"; then
1788 if (cygpath --version) >/dev/null 2>/dev/null; then
1789 CYGPATH_W='cygpath -w'
1790 else
1791 CYGPATH_W=echo
1792 fi
1793 fi
1794
1795
1796 # Define the identity of the package.
1797 PACKAGE='xf86-input-elographics'
1798 VERSION='1.2.3'
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE "$PACKAGE"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define VERSION "$VERSION"
1808 _ACEOF
1809
1810 # Some tools Automake needs.
1811
1812 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1813
1814
1815 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1816
1817
1818 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1819
1820
1821 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1822
1823
1824 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1825
1826 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1827
1828 # Installed binaries are usually stripped using `strip' when the user
1829 # run `make install-strip'. However `strip' might not be the right
1830 # tool to use in cross-compilation environments, therefore Automake
1831 # will honor the `STRIP' environment variable to overrule this program.
1832 if test "$cross_compiling" != no; then
1833 if test -n "$ac_tool_prefix"; then
1834 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1835 set dummy ${ac_tool_prefix}strip; ac_word=$2
1836 echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_STRIP+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841 if test -n "$STRIP"; then
1842 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1843 else
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 break 2
1854 fi
1855 done
1856 done
1857
1858 fi
1859 fi
1860 STRIP=$ac_cv_prog_STRIP
1861 if test -n "$STRIP"; then
1862 echo "$as_me:$LINENO: result: $STRIP" >&5
1863 echo "${ECHO_T}$STRIP" >&6
1864 else
1865 echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1867 fi
1868
1869 fi
1870 if test -z "$ac_cv_prog_STRIP"; then
1871 ac_ct_STRIP=$STRIP
1872 # Extract the first word of "strip", so it can be a program name with args.
1873 set dummy strip; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test -n "$ac_ct_STRIP"; then
1880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_ac_ct_STRIP="strip"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1892 fi
1893 done
1894 done
1895
1896 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1897 fi
1898 fi
1899 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1900 if test -n "$ac_ct_STRIP"; then
1901 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1902 echo "${ECHO_T}$ac_ct_STRIP" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1907
1908 STRIP=$ac_ct_STRIP
1909 else
1910 STRIP="$ac_cv_prog_STRIP"
1911 fi
1912
1913 fi
1914 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1915
1916 # We need awk for the "check" target. The system "awk" is bad on
1917 # some platforms.
1918 # Always define AMTAR for backward compatibility.
1919
1920 AMTAR=${AMTAR-"${am_missing_run}tar"}
1921
1922 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1923
1924
1925
1926
1927
1928
1929 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1930 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1931 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1932 if test "${enable_maintainer_mode+set}" = set; then
1933 enableval="$enable_maintainer_mode"
1934 USE_MAINTAINER_MODE=$enableval
1935 else
1936 USE_MAINTAINER_MODE=no
1937 fi;
1938 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1939 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1940
1941
1942 if test $USE_MAINTAINER_MODE = yes; then
1943 MAINTAINER_MODE_TRUE=
1944 MAINTAINER_MODE_FALSE='#'
1945 else
1946 MAINTAINER_MODE_TRUE='#'
1947 MAINTAINER_MODE_FALSE=
1948 fi
1949
1950 MAINT=$MAINTAINER_MODE_TRUE
1951
1952
1953
1954 DRIVER_NAME=elographics
1955
1956
1957 ac_config_headers="$ac_config_headers config.h"
1958
1959
1960 # Checks for programs.
1961 # Check whether --enable-static or --disable-static was given.
1962 if test "${enable_static+set}" = set; then
1963 enableval="$enable_static"
1964 p=${PACKAGE-default}
1965 case $enableval in
1966 yes) enable_static=yes ;;
1967 no) enable_static=no ;;
1968 *)
1969 enable_static=no
1970 # Look at the argument we got. We use all the common list separators.
1971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1972 for pkg in $enableval; do
1973 IFS="$lt_save_ifs"
1974 if test "X$pkg" = "X$p"; then
1975 enable_static=yes
1976 fi
1977 done
1978 IFS="$lt_save_ifs"
1979 ;;
1980 esac
1981 else
1982 enable_static=no
1983 fi;
1984
1985
1986 # Check whether --enable-shared or --disable-shared was given.
1987 if test "${enable_shared+set}" = set; then
1988 enableval="$enable_shared"
1989 p=${PACKAGE-default}
1990 case $enableval in
1991 yes) enable_shared=yes ;;
1992 no) enable_shared=no ;;
1993 *)
1994 enable_shared=no
1995 # Look at the argument we got. We use all the common list separators.
1996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1997 for pkg in $enableval; do
1998 IFS="$lt_save_ifs"
1999 if test "X$pkg" = "X$p"; then
2000 enable_shared=yes
2001 fi
2002 done
2003 IFS="$lt_save_ifs"
2004 ;;
2005 esac
2006 else
2007 enable_shared=yes
2008 fi;
2009
2010 # Check whether --enable-fast-install or --disable-fast-install was given.
2011 if test "${enable_fast_install+set}" = set; then
2012 enableval="$enable_fast_install"
2013 p=${PACKAGE-default}
2014 case $enableval in
2015 yes) enable_fast_install=yes ;;
2016 no) enable_fast_install=no ;;
2017 *)
2018 enable_fast_install=no
2019 # Look at the argument we got. We use all the common list separators.
2020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2021 for pkg in $enableval; do
2022 IFS="$lt_save_ifs"
2023 if test "X$pkg" = "X$p"; then
2024 enable_fast_install=yes
2025 fi
2026 done
2027 IFS="$lt_save_ifs"
2028 ;;
2029 esac
2030 else
2031 enable_fast_install=yes
2032 fi;
2033
2034 # Make sure we can run config.sub.
2035 $ac_config_sub sun4 >/dev/null 2>&1 ||
2036 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2037 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2038 { (exit 1); exit 1; }; }
2039
2040 echo "$as_me:$LINENO: checking build system type" >&5
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2042 if test "${ac_cv_build+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045 ac_cv_build_alias=$build_alias
2046 test -z "$ac_cv_build_alias" &&
2047 ac_cv_build_alias=`$ac_config_guess`
2048 test -z "$ac_cv_build_alias" &&
2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2051 { (exit 1); exit 1; }; }
2052 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2053 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2054 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2055 { (exit 1); exit 1; }; }
2056
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2059 echo "${ECHO_T}$ac_cv_build" >&6
2060 build=$ac_cv_build
2061 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2062 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2063 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2064
2065
2066 echo "$as_me:$LINENO: checking host system type" >&5
2067 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2068 if test "${ac_cv_host+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 ac_cv_host_alias=$host_alias
2072 test -z "$ac_cv_host_alias" &&
2073 ac_cv_host_alias=$ac_cv_build_alias
2074 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2075 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2076 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2077 { (exit 1); exit 1; }; }
2078
2079 fi
2080 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081 echo "${ECHO_T}$ac_cv_host" >&6
2082 host=$ac_cv_host
2083 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2084 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2085 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2086
2087
2088 DEPDIR="${am__leading_dot}deps"
2089
2090 ac_config_commands="$ac_config_commands depfiles"
2091
2092
2093 am_make=${MAKE-make}
2094 cat > confinc << 'END'
2095 am__doit:
2096 @echo done
2097 .PHONY: am__doit
2098 END
2099 # If we don't find an include directive, just comment out the code.
2100 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2101 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2102 am__include="#"
2103 am__quote=
2104 _am_result=none
2105 # First try GNU make style include.
2106 echo "include confinc" > confmf
2107 # We grep out `Entering directory' and `Leaving directory'
2108 # messages which can occur if `w' ends up in MAKEFLAGS.
2109 # In particular we don't look at `^make:' because GNU make might
2110 # be invoked under some other name (usually "gmake"), in which
2111 # case it prints its new name instead of `make'.
2112 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2113 am__include=include
2114 am__quote=
2115 _am_result=GNU
2116 fi
2117 # Now try BSD make style include.
2118 if test "$am__include" = "#"; then
2119 echo '.include "confinc"' > confmf
2120 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2121 am__include=.include
2122 am__quote="\""
2123 _am_result=BSD
2124 fi
2125 fi
2126
2127
2128 echo "$as_me:$LINENO: result: $_am_result" >&5
2129 echo "${ECHO_T}$_am_result" >&6
2130 rm -f confinc confmf
2131
2132 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2133 if test "${enable_dependency_tracking+set}" = set; then
2134 enableval="$enable_dependency_tracking"
2135
2136 fi;
2137 if test "x$enable_dependency_tracking" != xno; then
2138 am_depcomp="$ac_aux_dir/depcomp"
2139 AMDEPBACKSLASH='\'
2140 fi
2141
2142
2143 if test "x$enable_dependency_tracking" != xno; then
2144 AMDEP_TRUE=
2145 AMDEP_FALSE='#'
2146 else
2147 AMDEP_TRUE='#'
2148 AMDEP_FALSE=
2149 fi
2150
2151
2152
2153 ac_ext=c
2154 ac_cpp='$CPP $CPPFLAGS'
2155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158 if test -n "$ac_tool_prefix"; then
2159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163 if test "${ac_cv_prog_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC="$CC" # Let the user override the test.
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 break 2
2179 fi
2180 done
2181 done
2182
2183 fi
2184 fi
2185 CC=$ac_cv_prog_CC
2186 if test -n "$CC"; then
2187 echo "$as_me:$LINENO: result: $CC" >&5
2188 echo "${ECHO_T}$CC" >&6
2189 else
2190 echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2192 fi
2193
2194 fi
2195 if test -z "$ac_cv_prog_CC"; then
2196 ac_ct_CC=$CC
2197 # Extract the first word of "gcc", so it can be a program name with args.
2198 set dummy gcc; ac_word=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 if test -n "$ac_ct_CC"; then
2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_ac_ct_CC="gcc"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 break 2
2217 fi
2218 done
2219 done
2220
2221 fi
2222 fi
2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224 if test -n "$ac_ct_CC"; then
2225 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 echo "${ECHO_T}$ac_ct_CC" >&6
2227 else
2228 echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2230 fi
2231
2232 CC=$ac_ct_CC
2233 else
2234 CC="$ac_cv_prog_CC"
2235 fi
2236
2237 if test -z "$CC"; then
2238 if test -n "$ac_tool_prefix"; then
2239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2240 set dummy ${ac_tool_prefix}cc; ac_word=$2
2241 echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243 if test "${ac_cv_prog_CC+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2248 else
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256 ac_cv_prog_CC="${ac_tool_prefix}cc"
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 break 2
2259 fi
2260 done
2261 done
2262
2263 fi
2264 fi
2265 CC=$ac_cv_prog_CC
2266 if test -n "$CC"; then
2267 echo "$as_me:$LINENO: result: $CC" >&5
2268 echo "${ECHO_T}$CC" >&6
2269 else
2270 echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6
2272 fi
2273
2274 fi
2275 if test -z "$ac_cv_prog_CC"; then
2276 ac_ct_CC=$CC
2277 # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 if test -n "$ac_ct_CC"; then
2285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_ac_ct_CC="cc"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 break 2
2297 fi
2298 done
2299 done
2300
2301 fi
2302 fi
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304 if test -n "$ac_ct_CC"; then
2305 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306 echo "${ECHO_T}$ac_ct_CC" >&6
2307 else
2308 echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2310 fi
2311
2312 CC=$ac_ct_CC
2313 else
2314 CC="$ac_cv_prog_CC"
2315 fi
2316
2317 fi
2318 if test -z "$CC"; then
2319 # Extract the first word of "cc", so it can be a program name with args.
2320 set dummy cc; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_CC+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 if test -n "$CC"; then
2327 ac_cv_prog_CC="$CC" # Let the user override the test.
2328 else
2329 ac_prog_rejected=no
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2337 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2338 ac_prog_rejected=yes
2339 continue
2340 fi
2341 ac_cv_prog_CC="cc"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345 done
2346 done
2347
2348 if test $ac_prog_rejected = yes; then
2349 # We found a bogon in the path, so make sure we never use it.
2350 set dummy $ac_cv_prog_CC
2351 shift
2352 if test $# != 0; then
2353 # We chose a different compiler from the bogus one.
2354 # However, it has the same basename, so the bogon will be chosen
2355 # first if we set CC to just the basename; use the full file name.
2356 shift
2357 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2358 fi
2359 fi
2360 fi
2361 fi
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364 echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6
2366 else
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2369 fi
2370
2371 fi
2372 if test -z "$CC"; then
2373 if test -n "$ac_tool_prefix"; then
2374 for ac_prog in cl
2375 do
2376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2378 echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380 if test "${ac_cv_prog_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397 done
2398 done
2399
2400 fi
2401 fi
2402 CC=$ac_cv_prog_CC
2403 if test -n "$CC"; then
2404 echo "$as_me:$LINENO: result: $CC" >&5
2405 echo "${ECHO_T}$CC" >&6
2406 else
2407 echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6
2409 fi
2410
2411 test -n "$CC" && break
2412 done
2413 fi
2414 if test -z "$CC"; then
2415 ac_ct_CC=$CC
2416 for ac_prog in cl
2417 do
2418 # Extract the first word of "$ac_prog", so it can be a program name with args.
2419 set dummy $ac_prog; ac_word=$2
2420 echo "$as_me:$LINENO: checking for $ac_word" >&5
2421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425 if test -n "$ac_ct_CC"; then
2426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2427 else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_prog_ac_ct_CC="$ac_prog"
2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439 done
2440 done
2441
2442 fi
2443 fi
2444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2445 if test -n "$ac_ct_CC"; then
2446 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2447 echo "${ECHO_T}$ac_ct_CC" >&6
2448 else
2449 echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6
2451 fi
2452
2453 test -n "$ac_ct_CC" && break
2454 done
2455
2456 CC=$ac_ct_CC
2457 fi
2458
2459 fi
2460
2461
2462 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: no acceptable C compiler found in \$PATH
2465 See \`config.log' for more details." >&2;}
2466 { (exit 1); exit 1; }; }
2467
2468 # Provide some information about the compiler.
2469 echo "$as_me:$LINENO:" \
2470 "checking for C compiler version" >&5
2471 ac_compiler=`set X $ac_compile; echo $2`
2472 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2473 (eval $ac_compiler --version </dev/null >&5) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2478 (eval $ac_compiler -v </dev/null >&5) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2483 (eval $ac_compiler -V </dev/null >&5) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2487
2488 cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h. */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494
2495 int
2496 main ()
2497 {
2498
2499 ;
2500 return 0;
2501 }
2502 _ACEOF
2503 ac_clean_files_save=$ac_clean_files
2504 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2505 # Try to create an executable without -o first, disregard a.out.
2506 # It will help us diagnose broken compilers, and finding out an intuition
2507 # of exeext.
2508 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2509 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2510 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2511 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2512 (eval $ac_link_default) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; then
2516 # Find the output, starting from the most likely. This scheme is
2517 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2518 # resort.
2519
2520 # Be careful to initialize this variable, since it used to be cached.
2521 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2522 ac_cv_exeext=
2523 # b.out is created by i960 compilers.
2524 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2525 do
2526 test -f "$ac_file" || continue
2527 case $ac_file in
2528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2529 ;;
2530 conftest.$ac_ext )
2531 # This is the source file.
2532 ;;
2533 [ab].out )
2534 # We found the default executable, but exeext='' is most
2535 # certainly right.
2536 break;;
2537 *.* )
2538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2539 # FIXME: I believe we export ac_cv_exeext for Libtool,
2540 # but it would be cool to find out if it's true. Does anybody
2541 # maintain Libtool? --akim.
2542 export ac_cv_exeext
2543 break;;
2544 * )
2545 break;;
2546 esac
2547 done
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2553 See \`config.log' for more details." >&5
2554 echo "$as_me: error: C compiler cannot create executables
2555 See \`config.log' for more details." >&2;}
2556 { (exit 77); exit 77; }; }
2557 fi
2558
2559 ac_exeext=$ac_cv_exeext
2560 echo "$as_me:$LINENO: result: $ac_file" >&5
2561 echo "${ECHO_T}$ac_file" >&6
2562
2563 # Check the compiler produces executables we can run. If not, either
2564 # the compiler is broken, or we cross compile.
2565 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2566 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2567 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2568 # If not cross compiling, check that we can run a simple program.
2569 if test "$cross_compiling" != yes; then
2570 if { ac_try='./$ac_file'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 cross_compiling=no
2577 else
2578 if test "$cross_compiling" = maybe; then
2579 cross_compiling=yes
2580 else
2581 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2582 If you meant to cross compile, use \`--host'.
2583 See \`config.log' for more details." >&5
2584 echo "$as_me: error: cannot run C compiled programs.
2585 If you meant to cross compile, use \`--host'.
2586 See \`config.log' for more details." >&2;}
2587 { (exit 1); exit 1; }; }
2588 fi
2589 fi
2590 fi
2591 echo "$as_me:$LINENO: result: yes" >&5
2592 echo "${ECHO_T}yes" >&6
2593
2594 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2595 ac_clean_files=$ac_clean_files_save
2596 # Check the compiler produces executables we can run. If not, either
2597 # the compiler is broken, or we cross compile.
2598 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2599 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2600 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2601 echo "${ECHO_T}$cross_compiling" >&6
2602
2603 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2604 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606 (eval $ac_link) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; then
2610 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2611 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2612 # work properly (i.e., refer to `conftest.exe'), while it won't with
2613 # `rm'.
2614 for ac_file in conftest.exe conftest conftest.*; do
2615 test -f "$ac_file" || continue
2616 case $ac_file in
2617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2618 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2619 export ac_cv_exeext
2620 break;;
2621 * ) break;;
2622 esac
2623 done
2624 else
2625 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2626 See \`config.log' for more details." >&5
2627 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2628 See \`config.log' for more details." >&2;}
2629 { (exit 1); exit 1; }; }
2630 fi
2631
2632 rm -f conftest$ac_cv_exeext
2633 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2634 echo "${ECHO_T}$ac_cv_exeext" >&6
2635
2636 rm -f conftest.$ac_ext
2637 EXEEXT=$ac_cv_exeext
2638 ac_exeext=$EXEEXT
2639 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2640 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2641 if test "${ac_cv_objext+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644 cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h. */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2650
2651 int
2652 main ()
2653 {
2654
2655 ;
2656 return 0;
2657 }
2658 _ACEOF
2659 rm -f conftest.o conftest.obj
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; then
2665 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2666 case $ac_file in
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2669 break;;
2670 esac
2671 done
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2677 See \`config.log' for more details." >&5
2678 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2679 See \`config.log' for more details." >&2;}
2680 { (exit 1); exit 1; }; }
2681 fi
2682
2683 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2684 fi
2685 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2686 echo "${ECHO_T}$ac_cv_objext" >&6
2687 OBJEXT=$ac_cv_objext
2688 ac_objext=$OBJEXT
2689 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2690 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2691 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694 cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h. */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2700
2701 int
2702 main ()
2703 {
2704 #ifndef __GNUC__
2705 choke me
2706 #endif
2707
2708 ;
2709 return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag"
2722 || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_compiler_gnu=yes
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 ac_compiler_gnu=no
2740 fi
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2743
2744 fi
2745 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2746 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2747 GCC=`test $ac_compiler_gnu = yes && echo yes`
2748 ac_test_CFLAGS=${CFLAGS+set}
2749 ac_save_CFLAGS=$CFLAGS
2750 CFLAGS="-g"
2751 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2752 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2753 if test "${ac_cv_prog_cc_g+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h. */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2762
2763 int
2764 main ()
2765 {
2766
2767 ;
2768 return 0;
2769 }
2770 _ACEOF
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>conftest.er1
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -z "$ac_c_werror_flag"
2781 || test ! -s conftest.err'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_cv_prog_cc_g=yes
2794 else
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798 ac_cv_prog_cc_g=no
2799 fi
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 fi
2802 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2804 if test "$ac_test_CFLAGS" = set; then
2805 CFLAGS=$ac_save_CFLAGS
2806 elif test $ac_cv_prog_cc_g = yes; then
2807 if test "$GCC" = yes; then
2808 CFLAGS="-g -O2"
2809 else
2810 CFLAGS="-g"
2811 fi
2812 else
2813 if test "$GCC" = yes; then
2814 CFLAGS="-O2"
2815 else
2816 CFLAGS=
2817 fi
2818 fi
2819 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2820 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2821 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824 ac_cv_prog_cc_stdc=no
2825 ac_save_CC=$CC
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h. */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2832 #include <stdarg.h>
2833 #include <stdio.h>
2834 #include <sys/types.h>
2835 #include <sys/stat.h>
2836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2837 struct buf { int x; };
2838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2839 static char *e (p, i)
2840 char **p;
2841 int i;
2842 {
2843 return p[i];
2844 }
2845 static char *f (char * (*g) (char **, int), char **p, ...)
2846 {
2847 char *s;
2848 va_list v;
2849 va_start (v,p);
2850 s = g (p, va_arg (v,int));
2851 va_end (v);
2852 return s;
2853 }
2854
2855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2856 function prototypes and stuff, but not '\xHH' hex character constants.
2857 These don't provoke an error unfortunately, instead are silently treated
2858 as 'x'. The following induces an error, until -std1 is added to get
2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2860 array size at least. It's necessary to write '\x00'==0 to get something
2861 that's true only with -std1. */
2862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2863
2864 int test (int i, double x);
2865 struct s1 {int (*f) (int a);};
2866 struct s2 {int (*f) (double a);};
2867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2868 int argc;
2869 char **argv;
2870 int
2871 main ()
2872 {
2873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2874 ;
2875 return 0;
2876 }
2877 _ACEOF
2878 # Don't try gcc -ansi; that turns off useful extensions and
2879 # breaks some systems' header files.
2880 # AIX -qlanglvl=ansi
2881 # Ultrix and OSF/1 -std1
2882 # HP-UX 10.20 and later -Ae
2883 # HP-UX older versions -Aa -D_HPUX_SOURCE
2884 # SVR4 -Xc -D__EXTENSIONS__
2885 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2886 do
2887 CC="$ac_save_CC $ac_arg"
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 (eval $ac_try) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2910 ac_cv_prog_cc_stdc=$ac_arg
2911 break
2912 else
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2915
2916 fi
2917 rm -f conftest.err conftest.$ac_objext
2918 done
2919 rm -f conftest.$ac_ext conftest.$ac_objext
2920 CC=$ac_save_CC
2921
2922 fi
2923
2924 case "x$ac_cv_prog_cc_stdc" in
2925 x|xno)
2926 echo "$as_me:$LINENO: result: none needed" >&5
2927 echo "${ECHO_T}none needed" >&6 ;;
2928 *)
2929 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2930 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2931 CC="$CC $ac_cv_prog_cc_stdc" ;;
2932 esac
2933
2934 # Some people use a C++ compiler to compile C. Since we use `exit',
2935 # in C++ we need to declare it. In case someone uses the same compiler
2936 # for both compiling C and C++ we need to have the C++ compiler decide
2937 # the declaration of exit, since it's the most demanding environment.
2938 cat >conftest.$ac_ext <<_ACEOF
2939 #ifndef __cplusplus
2940 choke me
2941 #endif
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>conftest.er1
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_c_werror_flag"
2953 || test ! -s conftest.err'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2965 for ac_declaration in \
2966 '' \
2967 'extern "C" void std::exit (int) throw (); using std::exit;' \
2968 'extern "C" void std::exit (int); using std::exit;' \
2969 'extern "C" void exit (int) throw ();' \
2970 'extern "C" void exit (int);' \
2971 'void exit (int);'
2972 do
2973 cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h. */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2979 $ac_declaration
2980 #include <stdlib.h>
2981 int
2982 main ()
2983 {
2984 exit (42);
2985 ;
2986 return 0;
2987 }
2988 _ACEOF
2989 rm -f conftest.$ac_objext
2990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2991 (eval $ac_compile) 2>conftest.er1
2992 ac_status=$?
2993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } &&
2998 { ac_try='test -z "$ac_c_werror_flag"
2999 || test ! -s conftest.err'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 (eval $ac_try) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; } &&
3005 { ac_try='test -s conftest.$ac_objext'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3011 :
3012 else
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016 continue
3017 fi
3018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h. */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3025 $ac_declaration
3026 int
3027 main ()
3028 {
3029 exit (42);
3030 ;
3031 return 0;
3032 }
3033 _ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3036 (eval $ac_compile) 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } &&
3043 { ac_try='test -z "$ac_c_werror_flag"
3044 || test ! -s conftest.err'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 break
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 fi
3062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3063 done
3064 rm -f conftest*
3065 if test -n "$ac_declaration"; then
3066 echo '#ifdef __cplusplus' >>confdefs.h
3067 echo $ac_declaration >>confdefs.h
3068 echo '#endif' >>confdefs.h
3069 fi
3070
3071 else
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075 fi
3076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_ext=c
3078 ac_cpp='$CPP $CPPFLAGS'
3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082
3083 depcc="$CC" am_compiler_list=
3084
3085 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3086 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3087 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3091 # We make a subdir and do the tests there. Otherwise we can end up
3092 # making bogus files that we don't know about and never remove. For
3093 # instance it was reported that on HP-UX the gcc test will end up
3094 # making a dummy file named `D' -- because `-MD' means `put the output
3095 # in D'.
3096 mkdir conftest.dir
3097 # Copy depcomp to subdir because otherwise we won't find it if we're
3098 # using a relative directory.
3099 cp "$am_depcomp" conftest.dir
3100 cd conftest.dir
3101 # We will build objects and dependencies in a subdirectory because
3102 # it helps to detect inapplicable dependency modes. For instance
3103 # both Tru64's cc and ICC support -MD to output dependencies as a
3104 # side effect of compilation, but ICC will put the dependencies in
3105 # the current directory while Tru64 will put them in the object
3106 # directory.
3107 mkdir sub
3108
3109 am_cv_CC_dependencies_compiler_type=none
3110 if test "$am_compiler_list" = ""; then
3111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3112 fi
3113 for depmode in $am_compiler_list; do
3114 # Setup a source with many dependencies, because some compilers
3115 # like to wrap large dependency lists on column 80 (with \), and
3116 # we should not choose a depcomp mode which is confused by this.
3117 #
3118 # We need to recreate these files for each test, as the compiler may
3119 # overwrite some of them when testing with obscure command lines.
3120 # This happens at least with the AIX C compiler.
3121 : > sub/conftest.c
3122 for i in 1 2 3 4 5 6; do
3123 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3124 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3125 # Solaris 8's {/usr,}/bin/sh.
3126 touch sub/conftst$i.h
3127 done
3128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3129
3130 case $depmode in
3131 nosideeffect)
3132 # after this tag, mechanisms are not by side-effect, so they'll
3133 # only be used when explicitly requested
3134 if test "x$enable_dependency_tracking" = xyes; then
3135 continue
3136 else
3137 break
3138 fi
3139 ;;
3140 none) break ;;
3141 esac
3142 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3143 # mode. It turns out that the SunPro C++ compiler does not properly
3144 # handle `-M -o', and we need to detect this.
3145 if depmode=$depmode \
3146 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3148 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3149 >/dev/null 2>conftest.err &&
3150 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3151 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3152 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3153 # icc doesn't choke on unknown options, it will just issue warnings
3154 # or remarks (even with -Werror). So we grep stderr for any message
3155 # that says an option was ignored or not supported.
3156 # When given -MP, icc 7.0 and 7.1 complain thusly:
3157 # icc: Command line warning: ignoring option '-M'; no argument required
3158 # The diagnosis changed in icc 8.0:
3159 # icc: Command line remark: option '-MP' not supported
3160 if (grep 'ignoring option' conftest.err ||
3161 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3162 am_cv_CC_dependencies_compiler_type=$depmode
3163 break
3164 fi
3165 fi
3166 done
3167
3168 cd ..
3169 rm -rf conftest.dir
3170 else
3171 am_cv_CC_dependencies_compiler_type=none
3172 fi
3173
3174 fi
3175 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3176 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3177 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3178
3179
3180
3181 if
3182 test "x$enable_dependency_tracking" != xno \
3183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3184 am__fastdepCC_TRUE=
3185 am__fastdepCC_FALSE='#'
3186 else
3187 am__fastdepCC_TRUE='#'
3188 am__fastdepCC_FALSE=
3189 fi
3190
3191
3192 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3193 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3194 if test "${lt_cv_path_SED+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 # Loop through the user's path and test for sed and gsed.
3198 # Then use that list of sed's as ones to test for truncation.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for lt_ac_prog in sed gsed; do
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3207 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3208 fi
3209 done
3210 done
3211 done
3212 IFS=$as_save_IFS
3213 lt_ac_max=0
3214 lt_ac_count=0
3215 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3216 # along with /bin/sed that truncates output.
3217 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3218 test ! -f $lt_ac_sed && continue
3219 cat /dev/null > conftest.in
3220 lt_ac_count=0
3221 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3222 # Check for GNU sed and select it if it is found.
3223 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3224 lt_cv_path_SED=$lt_ac_sed
3225 break
3226 fi
3227 while true; do
3228 cat conftest.in conftest.in >conftest.tmp
3229 mv conftest.tmp conftest.in
3230 cp conftest.in conftest.nl
3231 echo >>conftest.nl
3232 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3233 cmp -s conftest.out conftest.nl || break
3234 # 10000 chars as input seems more than enough
3235 test $lt_ac_count -gt 10 && break
3236 lt_ac_count=`expr $lt_ac_count + 1`
3237 if test $lt_ac_count -gt $lt_ac_max; then
3238 lt_ac_max=$lt_ac_count
3239 lt_cv_path_SED=$lt_ac_sed
3240 fi
3241 done
3242 done
3243
3244 fi
3245
3246 SED=$lt_cv_path_SED
3247
3248 echo "$as_me:$LINENO: result: $SED" >&5
3249 echo "${ECHO_T}$SED" >&6
3250
3251 echo "$as_me:$LINENO: checking for egrep" >&5
3252 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3253 if test "${ac_cv_prog_egrep+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3257 then ac_cv_prog_egrep='grep -E'
3258 else ac_cv_prog_egrep='egrep'
3259 fi
3260 fi
3261 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3262 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3263 EGREP=$ac_cv_prog_egrep
3264
3265
3266
3267 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3268 if test "${with_gnu_ld+set}" = set; then
3269 withval="$with_gnu_ld"
3270 test "$withval" = no || with_gnu_ld=yes
3271 else
3272 with_gnu_ld=no
3273 fi;
3274 ac_prog=ld
3275 if test "$GCC" = yes; then
3276 # Check if gcc -print-prog-name=ld gives a path.
3277 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3278 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3279 case $host in
3280 *-*-mingw*)
3281 # gcc leaves a trailing carriage return which upsets mingw
3282 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3283 *)
3284 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3285 esac
3286 case $ac_prog in
3287 # Accept absolute paths.
3288 [\\/]* | ?:[\\/]*)
3289 re_direlt='/[^/][^/]*/\.\./'
3290 # Canonicalize the pathname of ld
3291 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3292 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3293 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3294 done
3295 test -z "$LD" && LD="$ac_prog"
3296 ;;
3297 "")
3298 # If it fails, then pretend we aren't using GCC.
3299 ac_prog=ld
3300 ;;
3301 *)
3302 # If it is relative, then search for the first ld in PATH.
3303 with_gnu_ld=unknown
3304 ;;
3305 esac
3306 elif test "$with_gnu_ld" = yes; then
3307 echo "$as_me:$LINENO: checking for GNU ld" >&5
3308 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3309 else
3310 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3311 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3312 fi
3313 if test "${lt_cv_path_LD+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 if test -z "$LD"; then
3317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3318 for ac_dir in $PATH; do
3319 IFS="$lt_save_ifs"
3320 test -z "$ac_dir" && ac_dir=.
3321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3322 lt_cv_path_LD="$ac_dir/$ac_prog"
3323 # Check to see if the program is GNU ld. I'd rather use --version,
3324 # but apparently some variants of GNU ld only accept -v.
3325 # Break only if it was the GNU/non-GNU ld that we prefer.
3326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3327 *GNU* | *'with BFD'*)
3328 test "$with_gnu_ld" != no && break
3329 ;;
3330 *)
3331 test "$with_gnu_ld" != yes && break
3332 ;;
3333 esac
3334 fi
3335 done
3336 IFS="$lt_save_ifs"
3337 else
3338 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3339 fi
3340 fi
3341
3342 LD="$lt_cv_path_LD"
3343 if test -n "$LD"; then
3344 echo "$as_me:$LINENO: result: $LD" >&5
3345 echo "${ECHO_T}$LD" >&6
3346 else
3347 echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3349 fi
3350 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3351 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3352 { (exit 1); exit 1; }; }
3353 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3354 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3355 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3359 case `$LD -v 2>&1 </dev/null` in
3360 *GNU* | *'with BFD'*)
3361 lt_cv_prog_gnu_ld=yes
3362 ;;
3363 *)
3364 lt_cv_prog_gnu_ld=no
3365 ;;
3366 esac
3367 fi
3368 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3369 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3370 with_gnu_ld=$lt_cv_prog_gnu_ld
3371
3372
3373 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3374 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3375 if test "${lt_cv_ld_reload_flag+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 lt_cv_ld_reload_flag='-r'
3379 fi
3380 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3381 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3382 reload_flag=$lt_cv_ld_reload_flag
3383 case $reload_flag in
3384 "" | " "*) ;;
3385 *) reload_flag=" $reload_flag" ;;
3386 esac
3387 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3388 case $host_os in
3389 darwin*)
3390 if test "$GCC" = yes; then
3391 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3392 else
3393 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3394 fi
3395 ;;
3396 esac
3397
3398 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3399 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3400 if test "${lt_cv_path_NM+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 if test -n "$NM"; then
3404 # Let the user override the test.
3405 lt_cv_path_NM="$NM"
3406 else
3407 lt_nm_to_check="${ac_tool_prefix}nm"
3408 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3409 lt_nm_to_check="$lt_nm_to_check nm"
3410 fi
3411 for lt_tmp_nm in $lt_nm_to_check; do
3412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3413 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3414 IFS="$lt_save_ifs"
3415 test -z "$ac_dir" && ac_dir=.
3416 tmp_nm="$ac_dir/$lt_tmp_nm"
3417 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3418 # Check to see if the nm accepts a BSD-compat flag.
3419 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3420 # nm: unknown option "B" ignored
3421 # Tru64's nm complains that /dev/null is an invalid object file
3422 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3423 */dev/null* | *'Invalid file or object type'*)
3424 lt_cv_path_NM="$tmp_nm -B"
3425 break
3426 ;;
3427 *)
3428 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3429 */dev/null*)
3430 lt_cv_path_NM="$tmp_nm -p"
3431 break
3432 ;;
3433 *)
3434 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3435 continue # so that we can try to find one that supports BSD flags
3436 ;;
3437 esac
3438 ;;
3439 esac
3440 fi
3441 done
3442 IFS="$lt_save_ifs"
3443 done
3444 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3445 fi
3446 fi
3447 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3448 echo "${ECHO_T}$lt_cv_path_NM" >&6
3449 NM="$lt_cv_path_NM"
3450
3451 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3452 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3453 LN_S=$as_ln_s
3454 if test "$LN_S" = "ln -s"; then
3455 echo "$as_me:$LINENO: result: yes" >&5
3456 echo "${ECHO_T}yes" >&6
3457 else
3458 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3459 echo "${ECHO_T}no, using $LN_S" >&6
3460 fi
3461
3462 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3463 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
3464 if test "${lt_cv_deplibs_check_method+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467 lt_cv_file_magic_cmd='$MAGIC_CMD'
3468 lt_cv_file_magic_test_file=
3469 lt_cv_deplibs_check_method='unknown'
3470 # Need to set the preceding variable on all platforms that support
3471 # interlibrary dependencies.
3472 # 'none' -- dependencies not supported.
3473 # `unknown' -- same as none, but documents that we really don't know.
3474 # 'pass_all' -- all dependencies passed with no checks.
3475 # 'test_compile' -- check by making test program.
3476 # 'file_magic [[regex]]' -- check by looking for files in library path
3477 # which responds to the $file_magic_cmd with a given extended regex.
3478 # If you have `file' or equivalent on your system and you're not sure
3479 # whether `pass_all' will *always* work, you probably want this one.
3480
3481 case $host_os in
3482 aix[4-9]*)
3483 lt_cv_deplibs_check_method=pass_all
3484 ;;
3485
3486 beos*)
3487 lt_cv_deplibs_check_method=pass_all
3488 ;;
3489
3490 bsdi[45]*)
3491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3492 lt_cv_file_magic_cmd='/usr/bin/file -L'
3493 lt_cv_file_magic_test_file=/shlib/libc.so
3494 ;;
3495
3496 cygwin*)
3497 # func_win32_libid is a shell function defined in ltmain.sh
3498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3499 lt_cv_file_magic_cmd='func_win32_libid'
3500 ;;
3501
3502 mingw* | pw32*)
3503 # Base MSYS/MinGW do not provide the 'file' command needed by
3504 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3505 # unless we find 'file', for example because we are cross-compiling.
3506 if ( file / ) >/dev/null 2>&1; then
3507 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3508 lt_cv_file_magic_cmd='func_win32_libid'
3509 else
3510 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3511 lt_cv_file_magic_cmd='$OBJDUMP -f'
3512 fi
3513 ;;
3514
3515 darwin* | rhapsody*)
3516 lt_cv_deplibs_check_method=pass_all
3517 ;;
3518
3519 freebsd* | dragonfly*)
3520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3521 case $host_cpu in
3522 i*86 )
3523 # Not sure whether the presence of OpenBSD here was a mistake.
3524 # Let's accept both of them until this is cleared up.
3525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3526 lt_cv_file_magic_cmd=/usr/bin/file
3527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528 ;;
3529 esac
3530 else
3531 lt_cv_deplibs_check_method=pass_all
3532 fi
3533 ;;
3534
3535 gnu*)
3536 lt_cv_deplibs_check_method=pass_all
3537 ;;
3538
3539 hpux10.20* | hpux11*)
3540 lt_cv_file_magic_cmd=/usr/bin/file
3541 case $host_cpu in
3542 ia64*)
3543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3544 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3545 ;;
3546 hppa*64*)
3547 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]'
3548 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3549 ;;
3550 *)
3551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3553 ;;
3554 esac
3555 ;;
3556
3557 interix[3-9]*)
3558 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3560 ;;
3561
3562 irix5* | irix6* | nonstopux*)
3563 case $LD in
3564 *-32|*"-32 ") libmagic=32-bit;;
3565 *-n32|*"-n32 ") libmagic=N32;;
3566 *-64|*"-64 ") libmagic=64-bit;;
3567 *) libmagic=never-match;;
3568 esac
3569 lt_cv_deplibs_check_method=pass_all
3570 ;;
3571
3572 # This must be Linux ELF.
3573 linux* | k*bsd*-gnu)
3574 lt_cv_deplibs_check_method=pass_all
3575 ;;
3576
3577 netbsd*)
3578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3580 else
3581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3582 fi
3583 ;;
3584
3585 newos6*)
3586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3587 lt_cv_file_magic_cmd=/usr/bin/file
3588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3589 ;;
3590
3591 nto-qnx*)
3592 lt_cv_deplibs_check_method=unknown
3593 ;;
3594
3595 openbsd*)
3596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3598 else
3599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3600 fi
3601 ;;
3602
3603 osf3* | osf4* | osf5*)
3604 lt_cv_deplibs_check_method=pass_all
3605 ;;
3606
3607 rdos*)
3608 lt_cv_deplibs_check_method=pass_all
3609 ;;
3610
3611 solaris*)
3612 lt_cv_deplibs_check_method=pass_all
3613 ;;
3614
3615 sysv4 | sysv4.3*)
3616 case $host_vendor in
3617 motorola)
3618 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]'
3619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3620 ;;
3621 ncr)
3622 lt_cv_deplibs_check_method=pass_all
3623 ;;
3624 sequent)
3625 lt_cv_file_magic_cmd='/bin/file'
3626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3627 ;;
3628 sni)
3629 lt_cv_file_magic_cmd='/bin/file'
3630 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3631 lt_cv_file_magic_test_file=/lib/libc.so
3632 ;;
3633 siemens)
3634 lt_cv_deplibs_check_method=pass_all
3635 ;;
3636 pc)
3637 lt_cv_deplibs_check_method=pass_all
3638 ;;
3639 esac
3640 ;;
3641
3642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3643 lt_cv_deplibs_check_method=pass_all
3644 ;;
3645 esac
3646
3647 fi
3648 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3649 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3650 file_magic_cmd=$lt_cv_file_magic_cmd
3651 deplibs_check_method=$lt_cv_deplibs_check_method
3652 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3653
3654
3655
3656
3657 # If no C compiler was specified, use CC.
3658 LTCC=${LTCC-"$CC"}
3659
3660 # If no C compiler flags were specified, use CFLAGS.
3661 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3662
3663 # Allow CC to be a program name with arguments.
3664 compiler=$CC
3665
3666
3667 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3668 if test "${enable_libtool_lock+set}" = set; then
3669 enableval="$enable_libtool_lock"
3670
3671 fi;
3672 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3673
3674 # Some flags need to be propagated to the compiler or linker for good
3675 # libtool support.
3676 case $host in
3677 ia64-*-hpux*)
3678 # Find out which ABI we are using.
3679 echo 'int i;' > conftest.$ac_ext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; then
3685 case `/usr/bin/file conftest.$ac_objext` in
3686 *ELF-32*)
3687 HPUX_IA64_MODE="32"
3688 ;;
3689 *ELF-64*)
3690 HPUX_IA64_MODE="64"
3691 ;;
3692 esac
3693 fi
3694 rm -rf conftest*
3695 ;;
3696 *-*-irix6*)
3697 # Find out which ABI we are using.
3698 echo '#line 3698 "configure"' > conftest.$ac_ext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; then
3704 if test "$lt_cv_prog_gnu_ld" = yes; then
3705 case `/usr/bin/file conftest.$ac_objext` in
3706 *32-bit*)
3707 LD="${LD-ld} -melf32bsmip"
3708 ;;
3709 *N32*)
3710 LD="${LD-ld} -melf32bmipn32"
3711 ;;
3712 *64-bit*)
3713 LD="${LD-ld} -melf64bmip"
3714 ;;
3715 esac
3716 else
3717 case `/usr/bin/file conftest.$ac_objext` in
3718 *32-bit*)
3719 LD="${LD-ld} -32"
3720 ;;
3721 *N32*)
3722 LD="${LD-ld} -n32"
3723 ;;
3724 *64-bit*)
3725 LD="${LD-ld} -64"
3726 ;;
3727 esac
3728 fi
3729 fi
3730 rm -rf conftest*
3731 ;;
3732
3733 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3734 s390*-*linux*|sparc*-*linux*)
3735 # Find out which ABI we are using.
3736 echo 'int i;' > conftest.$ac_ext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
3742 case `/usr/bin/file conftest.o` in
3743 *32-bit*)
3744 case $host in
3745 x86_64-*kfreebsd*-gnu)
3746 LD="${LD-ld} -m elf_i386_fbsd"
3747 ;;
3748 x86_64-*linux*)
3749 LD="${LD-ld} -m elf_i386"
3750 ;;
3751 ppc64-*linux*|powerpc64-*linux*)
3752 LD="${LD-ld} -m elf32ppclinux"
3753 ;;
3754 s390x-*linux*)
3755 LD="${LD-ld} -m elf_s390"
3756 ;;
3757 sparc64-*linux*)
3758 LD="${LD-ld} -m elf32_sparc"
3759 ;;
3760 esac
3761 ;;
3762 *64-bit*)
3763 case $host in
3764 x86_64-*kfreebsd*-gnu)
3765 LD="${LD-ld} -m elf_x86_64_fbsd"
3766 ;;
3767 x86_64-*linux*)
3768 LD="${LD-ld} -m elf_x86_64"
3769 ;;
3770 ppc*-*linux*|powerpc*-*linux*)
3771 LD="${LD-ld} -m elf64ppc"
3772 ;;
3773 s390*-*linux*)
3774 LD="${LD-ld} -m elf64_s390"
3775 ;;
3776 sparc*-*linux*)
3777 LD="${LD-ld} -m elf64_sparc"
3778 ;;
3779 esac
3780 ;;
3781 esac
3782 fi
3783 rm -rf conftest*
3784 ;;
3785
3786 *-*-sco3.2v5*)
3787 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3788 SAVE_CFLAGS="$CFLAGS"
3789 CFLAGS="$CFLAGS -belf"
3790 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3791 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3792 if test "${lt_cv_cc_needs_belf+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 ac_ext=c
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807
3808 int
3809 main ()
3810 {
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 rm -f conftest.$ac_objext conftest$ac_exeext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818 (eval $ac_link) 2>conftest.er1
3819 ac_status=$?
3820 grep -v '^ *+' conftest.er1 >conftest.err
3821 rm -f conftest.er1
3822 cat conftest.err >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } &&
3825 { ac_try='test -z "$ac_c_werror_flag"
3826 || test ! -s conftest.err'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; } &&
3832 { ac_try='test -s conftest$ac_exeext'
3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 (eval $ac_try) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; }; then
3838 lt_cv_cc_needs_belf=yes
3839 else
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843 lt_cv_cc_needs_belf=no
3844 fi
3845 rm -f conftest.err conftest.$ac_objext \
3846 conftest$ac_exeext conftest.$ac_ext
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852
3853 fi
3854 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3855 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3856 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3857 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3858 CFLAGS="$SAVE_CFLAGS"
3859 fi
3860 ;;
3861 sparc*-*solaris*)
3862 # Find out which ABI we are using.
3863 echo 'int i;' > conftest.$ac_ext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; then
3869 case `/usr/bin/file conftest.o` in
3870 *64-bit*)
3871 case $lt_cv_prog_gnu_ld in
3872 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3873 *)
3874 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
3875 LD="${LD-ld} -64"
3876 fi
3877 ;;
3878 esac
3879 ;;
3880 esac
3881 fi
3882 rm -rf conftest*
3883 ;;
3884
3885
3886 esac
3887
3888 need_locks="$enable_libtool_lock"
3889
3890
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3897 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3898 # On Suns, sometimes $CPP names a directory.
3899 if test -n "$CPP" && test -d "$CPP"; then
3900 CPP=
3901 fi
3902 if test -z "$CPP"; then
3903 if test "${ac_cv_prog_CPP+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 # Double quotes because CPP needs to be expanded
3907 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3908 do
3909 ac_preproc_ok=false
3910 for ac_c_preproc_warn_flag in '' yes
3911 do
3912 # Use a header file that comes with gcc, so configuring glibc
3913 # with a fresh cross-compiler works.
3914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3915 # <limits.h> exists even on freestanding compilers.
3916 # On the NeXT, cc -E runs the code through the compiler's parser,
3917 # not just through cpp. "Syntax error" is here to catch this case.
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h. */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 #ifdef __STDC__
3925 # include <limits.h>
3926 #else
3927 # include <assert.h>
3928 #endif
3929 Syntax error
3930 _ACEOF
3931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } >/dev/null; then
3939 if test -s conftest.err; then
3940 ac_cpp_err=$ac_c_preproc_warn_flag
3941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3942 else
3943 ac_cpp_err=
3944 fi
3945 else
3946 ac_cpp_err=yes
3947 fi
3948 if test -z "$ac_cpp_err"; then
3949 :
3950 else
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 # Broken: fails on valid input.
3955 continue
3956 fi
3957 rm -f conftest.err conftest.$ac_ext
3958
3959 # OK, works on sane cases. Now check whether non-existent headers
3960 # can be detected and how.
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 #include <ac_nonexistent.h>
3968 _ACEOF
3969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } >/dev/null; then
3977 if test -s conftest.err; then
3978 ac_cpp_err=$ac_c_preproc_warn_flag
3979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3980 else
3981 ac_cpp_err=
3982 fi
3983 else
3984 ac_cpp_err=yes
3985 fi
3986 if test -z "$ac_cpp_err"; then
3987 # Broken: success on invalid input.
3988 continue
3989 else
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 # Passes both tests.
3994 ac_preproc_ok=:
3995 break
3996 fi
3997 rm -f conftest.err conftest.$ac_ext
3998
3999 done
4000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4001 rm -f conftest.err conftest.$ac_ext
4002 if $ac_preproc_ok; then
4003 break
4004 fi
4005
4006 done
4007 ac_cv_prog_CPP=$CPP
4008
4009 fi
4010 CPP=$ac_cv_prog_CPP
4011 else
4012 ac_cv_prog_CPP=$CPP
4013 fi
4014 echo "$as_me:$LINENO: result: $CPP" >&5
4015 echo "${ECHO_T}$CPP" >&6
4016 ac_preproc_ok=false
4017 for ac_c_preproc_warn_flag in '' yes
4018 do
4019 # Use a header file that comes with gcc, so configuring glibc
4020 # with a fresh cross-compiler works.
4021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022 # <limits.h> exists even on freestanding compilers.
4023 # On the NeXT, cc -E runs the code through the compiler's parser,
4024 # not just through cpp. "Syntax error" is here to catch this case.
4025 cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h. */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #ifdef __STDC__
4032 # include <limits.h>
4033 #else
4034 # include <assert.h>
4035 #endif
4036 Syntax error
4037 _ACEOF
4038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4040 ac_status=$?
4041 grep -v '^ *+' conftest.er1 >conftest.err
4042 rm -f conftest.er1
4043 cat conftest.err >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } >/dev/null; then
4046 if test -s conftest.err; then
4047 ac_cpp_err=$ac_c_preproc_warn_flag
4048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4049 else
4050 ac_cpp_err=
4051 fi
4052 else
4053 ac_cpp_err=yes
4054 fi
4055 if test -z "$ac_cpp_err"; then
4056 :
4057 else
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4060
4061 # Broken: fails on valid input.
4062 continue
4063 fi
4064 rm -f conftest.err conftest.$ac_ext
4065
4066 # OK, works on sane cases. Now check whether non-existent headers
4067 # can be detected and how.
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <ac_nonexistent.h>
4075 _ACEOF
4076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } >/dev/null; then
4084 if test -s conftest.err; then
4085 ac_cpp_err=$ac_c_preproc_warn_flag
4086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4087 else
4088 ac_cpp_err=
4089 fi
4090 else
4091 ac_cpp_err=yes
4092 fi
4093 if test -z "$ac_cpp_err"; then
4094 # Broken: success on invalid input.
4095 continue
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100 # Passes both tests.
4101 ac_preproc_ok=:
4102 break
4103 fi
4104 rm -f conftest.err conftest.$ac_ext
4105
4106 done
4107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108 rm -f conftest.err conftest.$ac_ext
4109 if $ac_preproc_ok; then
4110 :
4111 else
4112 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4113 See \`config.log' for more details." >&5
4114 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4115 See \`config.log' for more details." >&2;}
4116 { (exit 1); exit 1; }; }
4117 fi
4118
4119 ac_ext=c
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124
4125
4126 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4127 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4128 if test "${ac_cv_header_stdc+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h. */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <stdlib.h>
4138 #include <stdarg.h>
4139 #include <string.h>
4140 #include <float.h>
4141
4142 int
4143 main ()
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
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); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 ac_cv_header_stdc=yes
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 ac_cv_header_stdc=no
4178 fi
4179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4180
4181 if test $ac_cv_header_stdc = yes; then
4182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 #include <string.h>
4190
4191 _ACEOF
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 $EGREP "memchr" >/dev/null 2>&1; then
4194 :
4195 else
4196 ac_cv_header_stdc=no
4197 fi
4198 rm -f conftest*
4199
4200 fi
4201
4202 if test $ac_cv_header_stdc = yes; then
4203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <stdlib.h>
4211
4212 _ACEOF
4213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 $EGREP "free" >/dev/null 2>&1; then
4215 :
4216 else
4217 ac_cv_header_stdc=no
4218 fi
4219 rm -f conftest*
4220
4221 fi
4222
4223 if test $ac_cv_header_stdc = yes; then
4224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4225 if test "$cross_compiling" = yes; then
4226 :
4227 else
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <ctype.h>
4235 #if ((' ' & 0x0FF) == 0x020)
4236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4238 #else
4239 # define ISLOWER(c) \
4240 (('a' <= (c) && (c) <= 'i') \
4241 || ('j' <= (c) && (c) <= 'r') \
4242 || ('s' <= (c) && (c) <= 'z'))
4243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4244 #endif
4245
4246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4247 int
4248 main ()
4249 {
4250 int i;
4251 for (i = 0; i < 256; i++)
4252 if (XOR (islower (i), ISLOWER (i))
4253 || toupper (i) != TOUPPER (i))
4254 exit(2);
4255 exit (0);
4256 }
4257 _ACEOF
4258 rm -f conftest$ac_exeext
4259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4260 (eval $ac_link) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 (eval $ac_try) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4269 :
4270 else
4271 echo "$as_me: program exited with status $ac_status" >&5
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 ( exit $ac_status )
4276 ac_cv_header_stdc=no
4277 fi
4278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4279 fi
4280 fi
4281 fi
4282 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4283 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4284 if test $ac_cv_header_stdc = yes; then
4285
4286 cat >>confdefs.h <<\_ACEOF
4287 #define STDC_HEADERS 1
4288 _ACEOF
4289
4290 fi
4291
4292 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4303 inttypes.h stdint.h unistd.h
4304 do
4305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4306 echo "$as_me:$LINENO: checking for $ac_header" >&5
4307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 $ac_includes_default
4318
4319 #include <$ac_header>
4320 _ACEOF
4321 rm -f conftest.$ac_objext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4323 (eval $ac_compile) 2>conftest.er1
4324 ac_status=$?
4325 grep -v '^ *+' conftest.er1 >conftest.err
4326 rm -f conftest.er1
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try='test -z "$ac_c_werror_flag"
4331 || test ! -s conftest.err'
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); }; } &&
4337 { ac_try='test -s conftest.$ac_objext'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 eval "$as_ac_Header=yes"
4344 else
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 eval "$as_ac_Header=no"
4349 fi
4350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4351 fi
4352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4355 cat >>confdefs.h <<_ACEOF
4356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4357 _ACEOF
4358
4359 fi
4360
4361 done
4362
4363
4364
4365 for ac_header in dlfcn.h
4366 do
4367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4369 echo "$as_me:$LINENO: checking for $ac_header" >&5
4370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 fi
4374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4376 else
4377 # Is the header compilable?
4378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 $ac_includes_default
4387 #include <$ac_header>
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try='test -z "$ac_c_werror_flag"
4399 || test ! -s conftest.err'
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); }; } &&
4405 { ac_try='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 ac_header_compiler=yes
4412 else
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ac_header_compiler=no
4417 fi
4418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4420 echo "${ECHO_T}$ac_header_compiler" >&6
4421
4422 # Is the header present?
4423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4425 cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h. */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 #include <$ac_header>
4432 _ACEOF
4433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } >/dev/null; then
4441 if test -s conftest.err; then
4442 ac_cpp_err=$ac_c_preproc_warn_flag
4443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4444 else
4445 ac_cpp_err=
4446 fi
4447 else
4448 ac_cpp_err=yes
4449 fi
4450 if test -z "$ac_cpp_err"; then
4451 ac_header_preproc=yes
4452 else
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 ac_header_preproc=no
4457 fi
4458 rm -f conftest.err conftest.$ac_ext
4459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4460 echo "${ECHO_T}$ac_header_preproc" >&6
4461
4462 # So? What about this header?
4463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4464 yes:no: )
4465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4469 ac_header_preproc=yes
4470 ;;
4471 no:yes:* )
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4484 (
4485 cat <<\_ASBOX
4486 ## ---------------------------------------------------------------------- ##
4487 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4488 ## ---------------------------------------------------------------------- ##
4489 _ASBOX
4490 ) |
4491 sed "s/^/$as_me: WARNING: /" >&2
4492 ;;
4493 esac
4494 echo "$as_me:$LINENO: checking for $ac_header" >&5
4495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 eval "$as_ac_Header=\$ac_header_preproc"
4500 fi
4501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4503
4504 fi
4505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4506 cat >>confdefs.h <<_ACEOF
4507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4508 _ACEOF
4509
4510 fi
4511
4512 done
4513
4514 ac_ext=cc
4515 ac_cpp='$CXXCPP $CPPFLAGS'
4516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519 if test -n "$ac_tool_prefix"; then
4520 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4521 do
4522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4524 echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_prog_CXX+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 if test -n "$CXX"; then
4530 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4542 fi
4543 done
4544 done
4545
4546 fi
4547 fi
4548 CXX=$ac_cv_prog_CXX
4549 if test -n "$CXX"; then
4550 echo "$as_me:$LINENO: result: $CXX" >&5
4551 echo "${ECHO_T}$CXX" >&6
4552 else
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4555 fi
4556
4557 test -n "$CXX" && break
4558 done
4559 fi
4560 if test -z "$CXX"; then
4561 ac_ct_CXX=$CXX
4562 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4563 do
4564 # Extract the first word of "$ac_prog", so it can be a program name with args.
4565 set dummy $ac_prog; ac_word=$2
4566 echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4568 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 if test -n "$ac_ct_CXX"; then
4572 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_ac_ct_CXX="$ac_prog"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585 done
4586 done
4587
4588 fi
4589 fi
4590 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4591 if test -n "$ac_ct_CXX"; then
4592 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4593 echo "${ECHO_T}$ac_ct_CXX" >&6
4594 else
4595 echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4597 fi
4598
4599 test -n "$ac_ct_CXX" && break
4600 done
4601 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4602
4603 CXX=$ac_ct_CXX
4604 fi
4605
4606
4607 # Provide some information about the compiler.
4608 echo "$as_me:$LINENO:" \
4609 "checking for C++ compiler version" >&5
4610 ac_compiler=`set X $ac_compile; echo $2`
4611 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4612 (eval $ac_compiler --version </dev/null >&5) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }
4616 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4617 (eval $ac_compiler -v </dev/null >&5) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }
4621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4622 (eval $ac_compiler -V </dev/null >&5) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }
4626
4627 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4628 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4629 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h. */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638
4639 int
4640 main ()
4641 {
4642 #ifndef __GNUC__
4643 choke me
4644 #endif
4645
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 rm -f conftest.$ac_objext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652 (eval $ac_compile) 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -z "$ac_cxx_werror_flag"
4660 || test ! -s conftest.err'
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); }; } &&
4666 { ac_try='test -s conftest.$ac_objext'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 (eval $ac_try) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 ac_compiler_gnu=yes
4673 else
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677 ac_compiler_gnu=no
4678 fi
4679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4680 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4681
4682 fi
4683 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4684 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4685 GXX=`test $ac_compiler_gnu = yes && echo yes`
4686 ac_test_CXXFLAGS=${CXXFLAGS+set}
4687 ac_save_CXXFLAGS=$CXXFLAGS
4688 CXXFLAGS="-g"
4689 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4690 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4691 if test "${ac_cv_prog_cxx_g+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h. */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700
4701 int
4702 main ()
4703 {
4704
4705 ;
4706 return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711 (eval $ac_compile) 2>conftest.er1
4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try='test -z "$ac_cxx_werror_flag"
4719 || test ! -s conftest.err'
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); }; } &&
4725 { ac_try='test -s conftest.$ac_objext'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 ac_cv_prog_cxx_g=yes
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 ac_cv_prog_cxx_g=no
4737 fi
4738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739 fi
4740 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4741 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4742 if test "$ac_test_CXXFLAGS" = set; then
4743 CXXFLAGS=$ac_save_CXXFLAGS
4744 elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-g -O2"
4747 else
4748 CXXFLAGS="-g"
4749 fi
4750 else
4751 if test "$GXX" = yes; then
4752 CXXFLAGS="-O2"
4753 else
4754 CXXFLAGS=
4755 fi
4756 fi
4757 for ac_declaration in \
4758 '' \
4759 'extern "C" void std::exit (int) throw (); using std::exit;' \
4760 'extern "C" void std::exit (int); using std::exit;' \
4761 'extern "C" void exit (int) throw ();' \
4762 'extern "C" void exit (int);' \
4763 'void exit (int);'
4764 do
4765 cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h. */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 $ac_declaration
4772 #include <stdlib.h>
4773 int
4774 main ()
4775 {
4776 exit (42);
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_cxx_werror_flag"
4791 || test ! -s conftest.err'
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); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 :
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 continue
4809 fi
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 $ac_declaration
4818 int
4819 main ()
4820 {
4821 exit (42);
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 rm -f conftest.$ac_objext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828 (eval $ac_compile) 2>conftest.er1
4829 ac_status=$?
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -z "$ac_cxx_werror_flag"
4836 || test ! -s conftest.err'
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); }; } &&
4842 { ac_try='test -s conftest.$ac_objext'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 (eval $ac_try) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 break
4849 else
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853 fi
4854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4855 done
4856 rm -f conftest*
4857 if test -n "$ac_declaration"; then
4858 echo '#ifdef __cplusplus' >>confdefs.h
4859 echo $ac_declaration >>confdefs.h
4860 echo '#endif' >>confdefs.h
4861 fi
4862
4863 ac_ext=cc
4864 ac_cpp='$CXXCPP $CPPFLAGS'
4865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4868
4869 depcc="$CXX" am_compiler_list=
4870
4871 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4872 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4873 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4877 # We make a subdir and do the tests there. Otherwise we can end up
4878 # making bogus files that we don't know about and never remove. For
4879 # instance it was reported that on HP-UX the gcc test will end up
4880 # making a dummy file named `D' -- because `-MD' means `put the output
4881 # in D'.
4882 mkdir conftest.dir
4883 # Copy depcomp to subdir because otherwise we won't find it if we're
4884 # using a relative directory.
4885 cp "$am_depcomp" conftest.dir
4886 cd conftest.dir
4887 # We will build objects and dependencies in a subdirectory because
4888 # it helps to detect inapplicable dependency modes. For instance
4889 # both Tru64's cc and ICC support -MD to output dependencies as a
4890 # side effect of compilation, but ICC will put the dependencies in
4891 # the current directory while Tru64 will put them in the object
4892 # directory.
4893 mkdir sub
4894
4895 am_cv_CXX_dependencies_compiler_type=none
4896 if test "$am_compiler_list" = ""; then
4897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4898 fi
4899 for depmode in $am_compiler_list; do
4900 # Setup a source with many dependencies, because some compilers
4901 # like to wrap large dependency lists on column 80 (with \), and
4902 # we should not choose a depcomp mode which is confused by this.
4903 #
4904 # We need to recreate these files for each test, as the compiler may
4905 # overwrite some of them when testing with obscure command lines.
4906 # This happens at least with the AIX C compiler.
4907 : > sub/conftest.c
4908 for i in 1 2 3 4 5 6; do
4909 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4910 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4911 # Solaris 8's {/usr,}/bin/sh.
4912 touch sub/conftst$i.h
4913 done
4914 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4915
4916 case $depmode in
4917 nosideeffect)
4918 # after this tag, mechanisms are not by side-effect, so they'll
4919 # only be used when explicitly requested
4920 if test "x$enable_dependency_tracking" = xyes; then
4921 continue
4922 else
4923 break
4924 fi
4925 ;;
4926 none) break ;;
4927 esac
4928 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4929 # mode. It turns out that the SunPro C++ compiler does not properly
4930 # handle `-M -o', and we need to detect this.
4931 if depmode=$depmode \
4932 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4933 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4934 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4935 >/dev/null 2>conftest.err &&
4936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4937 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4939 # icc doesn't choke on unknown options, it will just issue warnings
4940 # or remarks (even with -Werror). So we grep stderr for any message
4941 # that says an option was ignored or not supported.
4942 # When given -MP, icc 7.0 and 7.1 complain thusly:
4943 # icc: Command line warning: ignoring option '-M'; no argument required
4944 # The diagnosis changed in icc 8.0:
4945 # icc: Command line remark: option '-MP' not supported
4946 if (grep 'ignoring option' conftest.err ||
4947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4948 am_cv_CXX_dependencies_compiler_type=$depmode
4949 break
4950 fi
4951 fi
4952 done
4953
4954 cd ..
4955 rm -rf conftest.dir
4956 else
4957 am_cv_CXX_dependencies_compiler_type=none
4958 fi
4959
4960 fi
4961 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4962 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4963 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4964
4965
4966
4967 if
4968 test "x$enable_dependency_tracking" != xno \
4969 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4970 am__fastdepCXX_TRUE=
4971 am__fastdepCXX_FALSE='#'
4972 else
4973 am__fastdepCXX_TRUE='#'
4974 am__fastdepCXX_FALSE=
4975 fi
4976
4977
4978
4979
4980 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4981 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4982 (test "X$CXX" != "Xg++"))) ; then
4983 ac_ext=cc
4984 ac_cpp='$CXXCPP $CPPFLAGS'
4985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4988 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4989 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4990 if test -z "$CXXCPP"; then
4991 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 # Double quotes because CXXCPP needs to be expanded
4995 for CXXCPP in "$CXX -E" "/lib/cpp"
4996 do
4997 ac_preproc_ok=false
4998 for ac_cxx_preproc_warn_flag in '' yes
4999 do
5000 # Use a header file that comes with gcc, so configuring glibc
5001 # with a fresh cross-compiler works.
5002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003 # <limits.h> exists even on freestanding compilers.
5004 # On the NeXT, cc -E runs the code through the compiler's parser,
5005 # not just through cpp. "Syntax error" is here to catch this case.
5006 cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 #ifdef __STDC__
5013 # include <limits.h>
5014 #else
5015 # include <assert.h>
5016 #endif
5017 Syntax error
5018 _ACEOF
5019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } >/dev/null; then
5027 if test -s conftest.err; then
5028 ac_cpp_err=$ac_cxx_preproc_warn_flag
5029 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5030 else
5031 ac_cpp_err=
5032 fi
5033 else
5034 ac_cpp_err=yes
5035 fi
5036 if test -z "$ac_cpp_err"; then
5037 :
5038 else
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5041
5042 # Broken: fails on valid input.
5043 continue
5044 fi
5045 rm -f conftest.err conftest.$ac_ext
5046
5047 # OK, works on sane cases. Now check whether non-existent headers
5048 # can be detected and how.
5049 cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h. */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 #include <ac_nonexistent.h>
5056 _ACEOF
5057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } >/dev/null; then
5065 if test -s conftest.err; then
5066 ac_cpp_err=$ac_cxx_preproc_warn_flag
5067 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5068 else
5069 ac_cpp_err=
5070 fi
5071 else
5072 ac_cpp_err=yes
5073 fi
5074 if test -z "$ac_cpp_err"; then
5075 # Broken: success on invalid input.
5076 continue
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5080
5081 # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5084 fi
5085 rm -f conftest.err conftest.$ac_ext
5086
5087 done
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.err conftest.$ac_ext
5090 if $ac_preproc_ok; then
5091 break
5092 fi
5093
5094 done
5095 ac_cv_prog_CXXCPP=$CXXCPP
5096
5097 fi
5098 CXXCPP=$ac_cv_prog_CXXCPP
5099 else
5100 ac_cv_prog_CXXCPP=$CXXCPP
5101 fi
5102 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5103 echo "${ECHO_T}$CXXCPP" >&6
5104 ac_preproc_ok=false
5105 for ac_cxx_preproc_warn_flag in '' yes
5106 do
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h. */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 #ifdef __STDC__
5120 # include <limits.h>
5121 #else
5122 # include <assert.h>
5123 #endif
5124 Syntax error
5125 _ACEOF
5126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5128 ac_status=$?
5129 grep -v '^ *+' conftest.er1 >conftest.err
5130 rm -f conftest.er1
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } >/dev/null; then
5134 if test -s conftest.err; then
5135 ac_cpp_err=$ac_cxx_preproc_warn_flag
5136 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5137 else
5138 ac_cpp_err=
5139 fi
5140 else
5141 ac_cpp_err=yes
5142 fi
5143 if test -z "$ac_cpp_err"; then
5144 :
5145 else
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149 # Broken: fails on valid input.
5150 continue
5151 fi
5152 rm -f conftest.err conftest.$ac_ext
5153
5154 # OK, works on sane cases. Now check whether non-existent headers
5155 # can be detected and how.
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <ac_nonexistent.h>
5163 _ACEOF
5164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } >/dev/null; then
5172 if test -s conftest.err; then
5173 ac_cpp_err=$ac_cxx_preproc_warn_flag
5174 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5175 else
5176 ac_cpp_err=
5177 fi
5178 else
5179 ac_cpp_err=yes
5180 fi
5181 if test -z "$ac_cpp_err"; then
5182 # Broken: success on invalid input.
5183 continue
5184 else
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5187
5188 # Passes both tests.
5189 ac_preproc_ok=:
5190 break
5191 fi
5192 rm -f conftest.err conftest.$ac_ext
5193
5194 done
5195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5196 rm -f conftest.err conftest.$ac_ext
5197 if $ac_preproc_ok; then
5198 :
5199 else
5200 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5201 See \`config.log' for more details." >&5
5202 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5203 See \`config.log' for more details." >&2;}
5204 { (exit 1); exit 1; }; }
5205 fi
5206
5207 ac_ext=cc
5208 ac_cpp='$CXXCPP $CPPFLAGS'
5209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5212
5213 fi
5214
5215
5216 ac_ext=f
5217 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5218 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5220 if test -n "$ac_tool_prefix"; then
5221 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5222 do
5223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5225 echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227 if test "${ac_cv_prog_F77+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 if test -n "$F77"; then
5231 ac_cv_prog_F77="$F77" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244 done
5245 done
5246
5247 fi
5248 fi
5249 F77=$ac_cv_prog_F77
5250 if test -n "$F77"; then
5251 echo "$as_me:$LINENO: result: $F77" >&5
5252 echo "${ECHO_T}$F77" >&6
5253 else
5254 echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5256 fi
5257
5258 test -n "$F77" && break
5259 done
5260 fi
5261 if test -z "$F77"; then
5262 ac_ct_F77=$F77
5263 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5264 do
5265 # Extract the first word of "$ac_prog", so it can be a program name with args.
5266 set dummy $ac_prog; ac_word=$2
5267 echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 if test -n "$ac_ct_F77"; then
5273 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_ac_ct_F77="$ac_prog"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288
5289 fi
5290 fi
5291 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5292 if test -n "$ac_ct_F77"; then
5293 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5294 echo "${ECHO_T}$ac_ct_F77" >&6
5295 else
5296 echo "$as_me:$LINENO: result: no" >&5
5297 echo "${ECHO_T}no" >&6
5298 fi
5299
5300 test -n "$ac_ct_F77" && break
5301 done
5302
5303 F77=$ac_ct_F77
5304 fi
5305
5306
5307 # Provide some information about the compiler.
5308 echo "$as_me:5308:" \
5309 "checking for Fortran 77 compiler version" >&5
5310 ac_compiler=`set X $ac_compile; echo $2`
5311 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5312 (eval $ac_compiler --version </dev/null >&5) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }
5316 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5317 (eval $ac_compiler -v </dev/null >&5) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }
5321 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5322 (eval $ac_compiler -V </dev/null >&5) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }
5326 rm -f a.out
5327
5328 # If we don't use `.F' as extension, the preprocessor is not run on the
5329 # input file. (Note that this only needs to work for GNU compilers.)
5330 ac_save_ext=$ac_ext
5331 ac_ext=F
5332 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5333 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5334 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337 cat >conftest.$ac_ext <<_ACEOF
5338 program main
5339 #ifndef __GNUC__
5340 choke me
5341 #endif
5342
5343 end
5344 _ACEOF
5345 rm -f conftest.$ac_objext
5346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5347 (eval $ac_compile) 2>conftest.er1
5348 ac_status=$?
5349 grep -v '^ *+' conftest.er1 >conftest.err
5350 rm -f conftest.er1
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try='test -z "$ac_f77_werror_flag"
5355 || test ! -s conftest.err'
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); }; } &&
5361 { ac_try='test -s conftest.$ac_objext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_compiler_gnu=yes
5368 else
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 ac_compiler_gnu=no
5373 fi
5374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5375 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5376
5377 fi
5378 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5379 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5380 ac_ext=$ac_save_ext
5381 ac_test_FFLAGS=${FFLAGS+set}
5382 ac_save_FFLAGS=$FFLAGS
5383 FFLAGS=
5384 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5385 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5386 if test "${ac_cv_prog_f77_g+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 FFLAGS=-g
5390 cat >conftest.$ac_ext <<_ACEOF
5391 program main
5392
5393 end
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -z "$ac_f77_werror_flag"
5405 || test ! -s conftest.err'
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); }; } &&
5411 { ac_try='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_cv_prog_f77_g=yes
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 ac_cv_prog_f77_g=no
5423 fi
5424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5425
5426 fi
5427 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5428 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5429 if test "$ac_test_FFLAGS" = set; then
5430 FFLAGS=$ac_save_FFLAGS
5431 elif test $ac_cv_prog_f77_g = yes; then
5432 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5433 FFLAGS="-g -O2"
5434 else
5435 FFLAGS="-g"
5436 fi
5437 else
5438 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5439 FFLAGS="-O2"
5440 else
5441 FFLAGS=
5442 fi
5443 fi
5444
5445 G77=`test $ac_compiler_gnu = yes && echo yes`
5446 ac_ext=c
5447 ac_cpp='$CPP $CPPFLAGS'
5448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5451
5452
5453
5454 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5455 # find the maximum length of command line arguments
5456 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5457 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5458 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461 i=0
5462 teststring="ABCD"
5463
5464 case $build_os in
5465 msdosdjgpp*)
5466 # On DJGPP, this test can blow up pretty badly due to problems in libc
5467 # (any single argument exceeding 2000 bytes causes a buffer overrun
5468 # during glob expansion). Even if it were fixed, the result of this
5469 # check would be larger than it should be.
5470 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5471 ;;
5472
5473 gnu*)
5474 # Under GNU Hurd, this test is not required because there is
5475 # no limit to the length of command line arguments.
5476 # Libtool will interpret -1 as no limit whatsoever
5477 lt_cv_sys_max_cmd_len=-1;
5478 ;;
5479
5480 cygwin* | mingw*)
5481 # On Win9x/ME, this test blows up -- it succeeds, but takes
5482 # about 5 minutes as the teststring grows exponentially.
5483 # Worse, since 9x/ME are not pre-emptively multitasking,
5484 # you end up with a "frozen" computer, even though with patience
5485 # the test eventually succeeds (with a max line length of 256k).
5486 # Instead, let's just punt: use the minimum linelength reported by
5487 # all of the supported platforms: 8192 (on NT/2K/XP).
5488 lt_cv_sys_max_cmd_len=8192;
5489 ;;
5490
5491 amigaos*)
5492 # On AmigaOS with pdksh, this test takes hours, literally.
5493 # So we just punt and use a minimum line length of 8192.
5494 lt_cv_sys_max_cmd_len=8192;
5495 ;;
5496
5497 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5498 # This has been around since 386BSD, at least. Likely further.
5499 if test -x /sbin/sysctl; then
5500 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5501 elif test -x /usr/sbin/sysctl; then
5502 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5503 else
5504 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5505 fi
5506 # And add a safety zone
5507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5509 ;;
5510
5511 interix*)
5512 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5513 lt_cv_sys_max_cmd_len=196608
5514 ;;
5515
5516 osf*)
5517 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5518 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5519 # nice to cause kernel panics so lets avoid the loop below.
5520 # First set a reasonable default.
5521 lt_cv_sys_max_cmd_len=16384
5522 #
5523 if test -x /sbin/sysconfig; then
5524 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5525 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5526 esac
5527 fi
5528 ;;
5529 sco3.2v5*)
5530 lt_cv_sys_max_cmd_len=102400
5531 ;;
5532 sysv5* | sco5v6* | sysv4.2uw2*)
5533 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5534 if test -n "$kargmax"; then
5535 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5536 else
5537 lt_cv_sys_max_cmd_len=32768
5538 fi
5539 ;;
5540 *)
5541 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5542 if test -n "$lt_cv_sys_max_cmd_len"; then
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5545 else
5546 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5547 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5548 = "XX$teststring") >/dev/null 2>&1 &&
5549 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5550 lt_cv_sys_max_cmd_len=$new_result &&
5551 test $i != 17 # 1/2 MB should be enough
5552 do
5553 i=`expr $i + 1`
5554 teststring=$teststring$teststring
5555 done
5556 teststring=
5557 # Add a significant safety factor because C++ compilers can tack on massive
5558 # amounts of additional arguments before passing them to the linker.
5559 # It appears as though 1/2 is a usable value.
5560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5561 fi
5562 ;;
5563 esac
5564
5565 fi
5566
5567 if test -n $lt_cv_sys_max_cmd_len ; then
5568 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5569 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5570 else
5571 echo "$as_me:$LINENO: result: none" >&5
5572 echo "${ECHO_T}none" >&6
5573 fi
5574
5575
5576
5577
5578
5579 # Check for command to grab the raw symbol name followed by C symbol from nm.
5580 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5581 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5582 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585
5586 # These are sane defaults that work on at least a few old systems.
5587 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5588
5589 # Character class describing NM global symbol codes.
5590 symcode='[BCDEGRST]'
5591
5592 # Regexp to match symbols that can be accessed directly from C.
5593 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5594
5595 # Transform an extracted symbol line into a proper C declaration
5596 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5597
5598 # Transform an extracted symbol line into symbol name and symbol address
5599 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'"
5600
5601 # Define system-specific variables.
5602 case $host_os in
5603 aix*)
5604 symcode='[BCDT]'
5605 ;;
5606 cygwin* | mingw* | pw32*)
5607 symcode='[ABCDGISTW]'
5608 ;;
5609 hpux*) # Its linker distinguishes data from code symbols
5610 if test "$host_cpu" = ia64; then
5611 symcode='[ABCDEGRST]'
5612 fi
5613 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5614 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'"
5615 ;;
5616 linux* | k*bsd*-gnu)
5617 if test "$host_cpu" = ia64; then
5618 symcode='[ABCDGIRSTW]'
5619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5620 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'"
5621 fi
5622 ;;
5623 irix* | nonstopux*)
5624 symcode='[BCDEGRST]'
5625 ;;
5626 osf*)
5627 symcode='[BCDEGQRST]'
5628 ;;
5629 solaris*)
5630 symcode='[BDRT]'
5631 ;;
5632 sco3.2v5*)
5633 symcode='[DT]'
5634 ;;
5635 sysv4.2uw2*)
5636 symcode='[DT]'
5637 ;;
5638 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5639 symcode='[ABDT]'
5640 ;;
5641 sysv4)
5642 symcode='[DFNSTU]'
5643 ;;
5644 esac
5645
5646 # Handle CRLF in mingw tool chain
5647 opt_cr=
5648 case $build_os in
5649 mingw*)
5650 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5651 ;;
5652 esac
5653
5654 # If we're using GNU nm, then use its standard symbol codes.
5655 case `$NM -V 2>&1` in
5656 *GNU* | *'with BFD'*)
5657 symcode='[ABCDGIRSTW]' ;;
5658 esac
5659
5660 # Try without a prefix undercore, then with it.
5661 for ac_symprfx in "" "_"; do
5662
5663 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5664 symxfrm="\\1 $ac_symprfx\\2 \\2"
5665
5666 # Write the raw and C identifiers.
5667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5668
5669 # Check to see that the pipe works correctly.
5670 pipe_works=no
5671
5672 rm -f conftest*
5673 cat > conftest.$ac_ext <<EOF
5674 #ifdef __cplusplus
5675 extern "C" {
5676 #endif
5677 char nm_test_var;
5678 void nm_test_func(){}
5679 #ifdef __cplusplus
5680 }
5681 #endif
5682 int main(){nm_test_var='a';nm_test_func();return(0);}
5683 EOF
5684
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; then
5690 # Now try to grab the symbols.
5691 nlist=conftest.nm
5692 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5693 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && test -s "$nlist"; then
5697 # Try sorting and uniquifying the output.
5698 if sort "$nlist" | uniq > "$nlist"T; then
5699 mv -f "$nlist"T "$nlist"
5700 else
5701 rm -f "$nlist"T
5702 fi
5703
5704 # Make sure that we snagged all the symbols we need.
5705 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5706 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5707 cat <<EOF > conftest.$ac_ext
5708 #ifdef __cplusplus
5709 extern "C" {
5710 #endif
5711
5712 EOF
5713 # Now generate the symbol file.
5714 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5715
5716 cat <<EOF >> conftest.$ac_ext
5717 #if defined (__STDC__) && __STDC__
5718 # define lt_ptr_t void *
5719 #else
5720 # define lt_ptr_t char *
5721 # define const
5722 #endif
5723
5724 /* The mapping between symbol names and symbols. */
5725 const struct {
5726 const char *name;
5727 lt_ptr_t address;
5728 }
5729 lt_preloaded_symbols[] =
5730 {
5731 EOF
5732 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5733 cat <<\EOF >> conftest.$ac_ext
5734 {0, (lt_ptr_t) 0}
5735 };
5736
5737 #ifdef __cplusplus
5738 }
5739 #endif
5740 EOF
5741 # Now try linking the two files.
5742 mv conftest.$ac_objext conftstm.$ac_objext
5743 lt_save_LIBS="$LIBS"
5744 lt_save_CFLAGS="$CFLAGS"
5745 LIBS="conftstm.$ac_objext"
5746 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748 (eval $ac_link) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5752 pipe_works=yes
5753 fi
5754 LIBS="$lt_save_LIBS"
5755 CFLAGS="$lt_save_CFLAGS"
5756 else
5757 echo "cannot find nm_test_func in $nlist" >&5
5758 fi
5759 else
5760 echo "cannot find nm_test_var in $nlist" >&5
5761 fi
5762 else
5763 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5764 fi
5765 else
5766 echo "$progname: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5768 fi
5769 rm -rf conftest* conftst*
5770
5771 # Do not use the global_symbol_pipe unless it works.
5772 if test "$pipe_works" = yes; then
5773 break
5774 else
5775 lt_cv_sys_global_symbol_pipe=
5776 fi
5777 done
5778
5779 fi
5780
5781 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5782 lt_cv_sys_global_symbol_to_cdecl=
5783 fi
5784 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5785 echo "$as_me:$LINENO: result: failed" >&5
5786 echo "${ECHO_T}failed" >&6
5787 else
5788 echo "$as_me:$LINENO: result: ok" >&5
5789 echo "${ECHO_T}ok" >&6
5790 fi
5791
5792 echo "$as_me:$LINENO: checking for objdir" >&5
5793 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5794 if test "${lt_cv_objdir+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 rm -f .libs 2>/dev/null
5798 mkdir .libs 2>/dev/null
5799 if test -d .libs; then
5800 lt_cv_objdir=.libs
5801 else
5802 # MS-DOS does not allow filenames that begin with a dot.
5803 lt_cv_objdir=_libs
5804 fi
5805 rmdir .libs 2>/dev/null
5806 fi
5807 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5808 echo "${ECHO_T}$lt_cv_objdir" >&6
5809 objdir=$lt_cv_objdir
5810
5811
5812
5813
5814
5815 case $host_os in
5816 aix3*)
5817 # AIX sometimes has problems with the GCC collect2 program. For some
5818 # reason, if we set the COLLECT_NAMES environment variable, the problems
5819 # vanish in a puff of smoke.
5820 if test "X${COLLECT_NAMES+set}" != Xset; then
5821 COLLECT_NAMES=
5822 export COLLECT_NAMES
5823 fi
5824 ;;
5825 esac
5826
5827 # Sed substitution that helps us do robust quoting. It backslashifies
5828 # metacharacters that are still active within double-quoted strings.
5829 Xsed='sed -e 1s/^X//'
5830 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5831
5832 # Same as above, but do not quote variable references.
5833 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5834
5835 # Sed substitution to delay expansion of an escaped shell variable in a
5836 # double_quote_subst'ed string.
5837 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5838
5839 # Sed substitution to avoid accidental globbing in evaled expressions
5840 no_glob_subst='s/\*/\\\*/g'
5841
5842 # Constants:
5843 rm="rm -f"
5844
5845 # Global variables:
5846 default_ofile=libtool
5847 can_build_shared=yes
5848
5849 # All known linkers require a `.a' archive for static linking (except MSVC,
5850 # which needs '.lib').
5851 libext=a
5852 ltmain="$ac_aux_dir/ltmain.sh"
5853 ofile="$default_ofile"
5854 with_gnu_ld="$lt_cv_prog_gnu_ld"
5855
5856 if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}ar; ac_word=$2
5859 echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861 if test "${ac_cv_prog_AR+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864 if test -n "$AR"; then
5865 ac_cv_prog_AR="$AR" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_AR="${ac_tool_prefix}ar"
5875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878 done
5879 done
5880
5881 fi
5882 fi
5883 AR=$ac_cv_prog_AR
5884 if test -n "$AR"; then
5885 echo "$as_me:$LINENO: result: $AR" >&5
5886 echo "${ECHO_T}$AR" >&6
5887 else
5888 echo "$as_me:$LINENO: result: no" >&5
5889 echo "${ECHO_T}no" >&6
5890 fi
5891
5892 fi
5893 if test -z "$ac_cv_prog_AR"; then
5894 ac_ct_AR=$AR
5895 # Extract the first word of "ar", so it can be a program name with args.
5896 set dummy ar; ac_word=$2
5897 echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5899 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 if test -n "$ac_ct_AR"; then
5903 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_ac_ct_AR="ar"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916 done
5917 done
5918
5919 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5920 fi
5921 fi
5922 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5923 if test -n "$ac_ct_AR"; then
5924 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5925 echo "${ECHO_T}$ac_ct_AR" >&6
5926 else
5927 echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6
5929 fi
5930
5931 AR=$ac_ct_AR
5932 else
5933 AR="$ac_cv_prog_AR"
5934 fi
5935
5936 if test -n "$ac_tool_prefix"; then
5937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5939 echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941 if test "${ac_cv_prog_RANLIB+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944 if test -n "$RANLIB"; then
5945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958 done
5959 done
5960
5961 fi
5962 fi
5963 RANLIB=$ac_cv_prog_RANLIB
5964 if test -n "$RANLIB"; then
5965 echo "$as_me:$LINENO: result: $RANLIB" >&5
5966 echo "${ECHO_T}$RANLIB" >&6
5967 else
5968 echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5970 fi
5971
5972 fi
5973 if test -z "$ac_cv_prog_RANLIB"; then
5974 ac_ct_RANLIB=$RANLIB
5975 # Extract the first word of "ranlib", so it can be a program name with args.
5976 set dummy ranlib; ac_word=$2
5977 echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 if test -n "$ac_ct_RANLIB"; then
5983 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992 ac_cv_prog_ac_ct_RANLIB="ranlib"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996 done
5997 done
5998
5999 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6000 fi
6001 fi
6002 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6003 if test -n "$ac_ct_RANLIB"; then
6004 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6005 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6006 else
6007 echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6
6009 fi
6010
6011 RANLIB=$ac_ct_RANLIB
6012 else
6013 RANLIB="$ac_cv_prog_RANLIB"
6014 fi
6015
6016 if test -n "$ac_tool_prefix"; then
6017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6018 set dummy ${ac_tool_prefix}strip; ac_word=$2
6019 echo "$as_me:$LINENO: checking for $ac_word" >&5
6020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6021 if test "${ac_cv_prog_STRIP+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024 if test -n "$STRIP"; then
6025 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038 done
6039 done
6040
6041 fi
6042 fi
6043 STRIP=$ac_cv_prog_STRIP
6044 if test -n "$STRIP"; then
6045 echo "$as_me:$LINENO: result: $STRIP" >&5
6046 echo "${ECHO_T}$STRIP" >&6
6047 else
6048 echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6
6050 fi
6051
6052 fi
6053 if test -z "$ac_cv_prog_STRIP"; then
6054 ac_ct_STRIP=$STRIP
6055 # Extract the first word of "strip", so it can be a program name with args.
6056 set dummy strip; ac_word=$2
6057 echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6059 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 if test -n "$ac_ct_STRIP"; then
6063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072 ac_cv_prog_ac_ct_STRIP="strip"
6073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076 done
6077 done
6078
6079 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6080 fi
6081 fi
6082 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6083 if test -n "$ac_ct_STRIP"; then
6084 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6085 echo "${ECHO_T}$ac_ct_STRIP" >&6
6086 else
6087 echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6
6089 fi
6090
6091 STRIP=$ac_ct_STRIP
6092 else
6093 STRIP="$ac_cv_prog_STRIP"
6094 fi
6095
6096
6097 old_CC="$CC"
6098 old_CFLAGS="$CFLAGS"
6099
6100 # Set sane defaults for various variables
6101 test -z "$AR" && AR=ar
6102 test -z "$AR_FLAGS" && AR_FLAGS=cru
6103 test -z "$AS" && AS=as
6104 test -z "$CC" && CC=cc
6105 test -z "$LTCC" && LTCC=$CC
6106 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6107 test -z "$DLLTOOL" && DLLTOOL=dlltool
6108 test -z "$LD" && LD=ld
6109 test -z "$LN_S" && LN_S="ln -s"
6110 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6111 test -z "$NM" && NM=nm
6112 test -z "$SED" && SED=sed
6113 test -z "$OBJDUMP" && OBJDUMP=objdump
6114 test -z "$RANLIB" && RANLIB=:
6115 test -z "$STRIP" && STRIP=:
6116 test -z "$ac_objext" && ac_objext=o
6117
6118 # Determine commands to create old-style static archives.
6119 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6120 old_postinstall_cmds='chmod 644 $oldlib'
6121 old_postuninstall_cmds=
6122
6123 if test -n "$RANLIB"; then
6124 case $host_os in
6125 openbsd*)
6126 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6127 ;;
6128 *)
6129 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6130 ;;
6131 esac
6132 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6133 fi
6134
6135 for cc_temp in $compiler""; do
6136 case $cc_temp in
6137 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6138 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6139 \-*) ;;
6140 *) break;;
6141 esac
6142 done
6143 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6144
6145
6146 # Only perform the check for file, if the check method requires it
6147 case $deplibs_check_method in
6148 file_magic*)
6149 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6150 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6151 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6152 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 case $MAGIC_CMD in
6156 [\\/*] | ?:[\\/]*)
6157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6158 ;;
6159 *)
6160 lt_save_MAGIC_CMD="$MAGIC_CMD"
6161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6162 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6163 for ac_dir in $ac_dummy; do
6164 IFS="$lt_save_ifs"
6165 test -z "$ac_dir" && ac_dir=.
6166 if test -f $ac_dir/${ac_tool_prefix}file; then
6167 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6168 if test -n "$file_magic_test_file"; then
6169 case $deplibs_check_method in
6170 "file_magic "*)
6171 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6173 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6174 $EGREP "$file_magic_regex" > /dev/null; then
6175 :
6176 else
6177 cat <<EOF 1>&2
6178
6179 *** Warning: the command libtool uses to detect shared libraries,
6180 *** $file_magic_cmd, produces output that libtool cannot recognize.
6181 *** The result is that libtool may fail to recognize shared libraries
6182 *** as such. This will affect the creation of libtool libraries that
6183 *** depend on shared libraries, but programs linked with such libtool
6184 *** libraries will work regardless of this problem. Nevertheless, you
6185 *** may want to report the problem to your system manager and/or to
6186 *** bug-libtool@gnu.org
6187
6188 EOF
6189 fi ;;
6190 esac
6191 fi
6192 break
6193 fi
6194 done
6195 IFS="$lt_save_ifs"
6196 MAGIC_CMD="$lt_save_MAGIC_CMD"
6197 ;;
6198 esac
6199 fi
6200
6201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6202 if test -n "$MAGIC_CMD"; then
6203 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6204 echo "${ECHO_T}$MAGIC_CMD" >&6
6205 else
6206 echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6
6208 fi
6209
6210 if test -z "$lt_cv_path_MAGIC_CMD"; then
6211 if test -n "$ac_tool_prefix"; then
6212 echo "$as_me:$LINENO: checking for file" >&5
6213 echo $ECHO_N "checking for file... $ECHO_C" >&6
6214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 case $MAGIC_CMD in
6218 [\\/*] | ?:[\\/]*)
6219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6220 ;;
6221 *)
6222 lt_save_MAGIC_CMD="$MAGIC_CMD"
6223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6225 for ac_dir in $ac_dummy; do
6226 IFS="$lt_save_ifs"
6227 test -z "$ac_dir" && ac_dir=.
6228 if test -f $ac_dir/file; then
6229 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6230 if test -n "$file_magic_test_file"; then
6231 case $deplibs_check_method in
6232 "file_magic "*)
6233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6236 $EGREP "$file_magic_regex" > /dev/null; then
6237 :
6238 else
6239 cat <<EOF 1>&2
6240
6241 *** Warning: the command libtool uses to detect shared libraries,
6242 *** $file_magic_cmd, produces output that libtool cannot recognize.
6243 *** The result is that libtool may fail to recognize shared libraries
6244 *** as such. This will affect the creation of libtool libraries that
6245 *** depend on shared libraries, but programs linked with such libtool
6246 *** libraries will work regardless of this problem. Nevertheless, you
6247 *** may want to report the problem to your system manager and/or to
6248 *** bug-libtool@gnu.org
6249
6250 EOF
6251 fi ;;
6252 esac
6253 fi
6254 break
6255 fi
6256 done
6257 IFS="$lt_save_ifs"
6258 MAGIC_CMD="$lt_save_MAGIC_CMD"
6259 ;;
6260 esac
6261 fi
6262
6263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6264 if test -n "$MAGIC_CMD"; then
6265 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6266 echo "${ECHO_T}$MAGIC_CMD" >&6
6267 else
6268 echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6
6270 fi
6271
6272 else
6273 MAGIC_CMD=:
6274 fi
6275 fi
6276
6277 fi
6278 ;;
6279 esac
6280
6281
6282 case $host_os in
6283 rhapsody* | darwin*)
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6287 echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6289 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292 if test -n "$DSYMUTIL"; then
6293 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306 done
6307 done
6308
6309 fi
6310 fi
6311 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6312 if test -n "$DSYMUTIL"; then
6313 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6314 echo "${ECHO_T}$DSYMUTIL" >&6
6315 else
6316 echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6
6318 fi
6319
6320 fi
6321 if test -z "$ac_cv_prog_DSYMUTIL"; then
6322 ac_ct_DSYMUTIL=$DSYMUTIL
6323 # Extract the first word of "dsymutil", so it can be a program name with args.
6324 set dummy dsymutil; ac_word=$2
6325 echo "$as_me:$LINENO: checking for $ac_word" >&5
6326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6327 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 if test -n "$ac_ct_DSYMUTIL"; then
6331 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344 done
6345 done
6346
6347 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6348 fi
6349 fi
6350 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6351 if test -n "$ac_ct_DSYMUTIL"; then
6352 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6353 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6354 else
6355 echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6
6357 fi
6358
6359 DSYMUTIL=$ac_ct_DSYMUTIL
6360 else
6361 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6362 fi
6363
6364 if test -n "$ac_tool_prefix"; then
6365 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6366 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6367 echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6369 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 if test -n "$NMEDIT"; then
6373 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6385 fi
6386 done
6387 done
6388
6389 fi
6390 fi
6391 NMEDIT=$ac_cv_prog_NMEDIT
6392 if test -n "$NMEDIT"; then
6393 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6394 echo "${ECHO_T}$NMEDIT" >&6
6395 else
6396 echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6
6398 fi
6399
6400 fi
6401 if test -z "$ac_cv_prog_NMEDIT"; then
6402 ac_ct_NMEDIT=$NMEDIT
6403 # Extract the first word of "nmedit", so it can be a program name with args.
6404 set dummy nmedit; ac_word=$2
6405 echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6407 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410 if test -n "$ac_ct_NMEDIT"; then
6411 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6423 fi
6424 done
6425 done
6426
6427 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6428 fi
6429 fi
6430 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6431 if test -n "$ac_ct_NMEDIT"; then
6432 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6433 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6434 else
6435 echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6
6437 fi
6438
6439 NMEDIT=$ac_ct_NMEDIT
6440 else
6441 NMEDIT="$ac_cv_prog_NMEDIT"
6442 fi
6443
6444
6445 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6446 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6447 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 lt_cv_apple_cc_single_mod=no
6451 if test -z "${LT_MULTI_MODULE}"; then
6452 # By default we will add the -single_module flag. You can override
6453 # by either setting the environment variable LT_MULTI_MODULE
6454 # non-empty at configure time, or by adding -multi_module to the
6455 # link flags.
6456 echo "int foo(void){return 1;}" > conftest.c
6457 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6458 -dynamiclib ${wl}-single_module conftest.c
6459 if test -f libconftest.dylib; then
6460 lt_cv_apple_cc_single_mod=yes
6461 rm -rf libconftest.dylib*
6462 fi
6463 rm conftest.c
6464 fi
6465 fi
6466 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6467 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6468 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6469 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6470 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 lt_cv_ld_exported_symbols_list=no
6474 save_LDFLAGS=$LDFLAGS
6475 echo "_main" > conftest.sym
6476 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483
6484 int
6485 main ()
6486 {
6487
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494 (eval $ac_link) 2>conftest.er1
6495 ac_status=$?
6496 grep -v '^ *+' conftest.er1 >conftest.err
6497 rm -f conftest.er1
6498 cat conftest.err >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try='test -z "$ac_c_werror_flag"
6502 || test ! -s conftest.err'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 (eval $ac_try) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; } &&
6508 { ac_try='test -s conftest$ac_exeext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 lt_cv_ld_exported_symbols_list=yes
6515 else
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6518
6519 lt_cv_ld_exported_symbols_list=no
6520 fi
6521 rm -f conftest.err conftest.$ac_objext \
6522 conftest$ac_exeext conftest.$ac_ext
6523 LDFLAGS="$save_LDFLAGS"
6524
6525 fi
6526 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6527 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6528 case $host_os in
6529 rhapsody* | darwin1.[0123])
6530 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6531 darwin1.*)
6532 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6533 darwin*)
6534 # if running on 10.5 or later, the deployment target defaults
6535 # to the OS version, if on x86, and 10.4, the deployment
6536 # target defaults to 10.4. Don't you love it?
6537 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6538 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6539 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6540 10.[012]*)
6541 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6542 10.*)
6543 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6544 esac
6545 ;;
6546 esac
6547 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6548 _lt_dar_single_mod='$single_module'
6549 fi
6550 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6551 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6552 else
6553 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6554 fi
6555 if test "$DSYMUTIL" != ":"; then
6556 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6557 else
6558 _lt_dsymutil=
6559 fi
6560 ;;
6561 esac
6562
6563
6564 enable_dlopen=no
6565 enable_win32_dll=no
6566
6567 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6568 if test "${enable_libtool_lock+set}" = set; then
6569 enableval="$enable_libtool_lock"
6570
6571 fi;
6572 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6573
6574
6575 # Check whether --with-pic or --without-pic was given.
6576 if test "${with_pic+set}" = set; then
6577 withval="$with_pic"
6578 pic_mode="$withval"
6579 else
6580 pic_mode=default
6581 fi;
6582 test -z "$pic_mode" && pic_mode=default
6583
6584 # Use C for the default configuration in the libtool script
6585 tagname=
6586 lt_save_CC="$CC"
6587 ac_ext=c
6588 ac_cpp='$CPP $CPPFLAGS'
6589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6592
6593
6594 # Source file extension for C test sources.
6595 ac_ext=c
6596
6597 # Object file extension for compiled C test sources.
6598 objext=o
6599 objext=$objext
6600
6601 # Code to be used in simple compile tests
6602 lt_simple_compile_test_code="int some_variable = 0;"
6603
6604 # Code to be used in simple link tests
6605 lt_simple_link_test_code='int main(){return(0);}'
6606
6607
6608 # If no C compiler was specified, use CC.
6609 LTCC=${LTCC-"$CC"}
6610
6611 # If no C compiler flags were specified, use CFLAGS.
6612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6613
6614 # Allow CC to be a program name with arguments.
6615 compiler=$CC
6616
6617
6618 # save warnings/boilerplate of simple test code
6619 ac_outfile=conftest.$ac_objext
6620 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6622 _lt_compiler_boilerplate=`cat conftest.err`
6623 $rm conftest*
6624
6625 ac_outfile=conftest.$ac_objext
6626 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6628 _lt_linker_boilerplate=`cat conftest.err`
6629 $rm -r conftest*
6630
6631
6632
6633 lt_prog_compiler_no_builtin_flag=
6634
6635 if test "$GCC" = yes; then
6636 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6637
6638
6639 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6640 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6641 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 lt_cv_prog_compiler_rtti_exceptions=no
6645 ac_outfile=conftest.$ac_objext
6646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6647 lt_compiler_flag="-fno-rtti -fno-exceptions"
6648 # Insert the option either (1) after the last *FLAGS variable, or
6649 # (2) before a word containing "conftest.", or (3) at the end.
6650 # Note that $ac_compile itself does not contain backslashes and begins
6651 # with a dollar sign (not a hyphen), so the echo should work correctly.
6652 # The option is referenced via a variable to avoid confusing sed.
6653 lt_compile=`echo "$ac_compile" | $SED \
6654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6656 -e 's:$: $lt_compiler_flag:'`
6657 (eval echo "\"\$as_me:6657: $lt_compile\"" >&5)
6658 (eval "$lt_compile" 2>conftest.err)
6659 ac_status=$?
6660 cat conftest.err >&5
6661 echo "$as_me:6661: \$? = $ac_status" >&5
6662 if (exit $ac_status) && test -s "$ac_outfile"; then
6663 # The compiler can only warn and ignore the option if not recognized
6664 # So say no if there are warnings other than the usual output.
6665 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6668 lt_cv_prog_compiler_rtti_exceptions=yes
6669 fi
6670 fi
6671 $rm conftest*
6672
6673 fi
6674 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6675 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6676
6677 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6678 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6679 else
6680 :
6681 fi
6682
6683 fi
6684
6685 lt_prog_compiler_wl=
6686 lt_prog_compiler_pic=
6687 lt_prog_compiler_static=
6688
6689 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6690 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6691
6692 if test "$GCC" = yes; then
6693 lt_prog_compiler_wl='-Wl,'
6694 lt_prog_compiler_static='-static'
6695
6696 case $host_os in
6697 aix*)
6698 # All AIX code is PIC.
6699 if test "$host_cpu" = ia64; then
6700 # AIX 5 now supports IA64 processor
6701 lt_prog_compiler_static='-Bstatic'
6702 fi
6703 ;;
6704
6705 amigaos*)
6706 # FIXME: we need at least 68020 code to build shared libraries, but
6707 # adding the `-m68020' flag to GCC prevents building anything better,
6708 # like `-m68040'.
6709 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6710 ;;
6711
6712 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6713 # PIC is the default for these OSes.
6714 ;;
6715
6716 mingw* | cygwin* | pw32* | os2*)
6717 # This hack is so that the source file can tell whether it is being
6718 # built for inclusion in a dll (and should export symbols for example).
6719 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6720 # (--disable-auto-import) libraries
6721 lt_prog_compiler_pic='-DDLL_EXPORT'
6722 ;;
6723
6724 darwin* | rhapsody*)
6725 # PIC is the default on this platform
6726 # Common symbols not allowed in MH_DYLIB files
6727 lt_prog_compiler_pic='-fno-common'
6728 ;;
6729
6730 interix[3-9]*)
6731 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6732 # Instead, we relocate shared libraries at runtime.
6733 ;;
6734
6735 msdosdjgpp*)
6736 # Just because we use GCC doesn't mean we suddenly get shared libraries
6737 # on systems that don't support them.
6738 lt_prog_compiler_can_build_shared=no
6739 enable_shared=no
6740 ;;
6741
6742 sysv4*MP*)
6743 if test -d /usr/nec; then
6744 lt_prog_compiler_pic=-Kconform_pic
6745 fi
6746 ;;
6747
6748 hpux*)
6749 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6750 # not for PA HP-UX.
6751 case $host_cpu in
6752 hppa*64*|ia64*)
6753 # +Z the default
6754 ;;
6755 *)
6756 lt_prog_compiler_pic='-fPIC'
6757 ;;
6758 esac
6759 ;;
6760
6761 *)
6762 lt_prog_compiler_pic='-fPIC'
6763 ;;
6764 esac
6765 else
6766 # PORTME Check for flag to pass linker flags through the system compiler.
6767 case $host_os in
6768 aix*)
6769 lt_prog_compiler_wl='-Wl,'
6770 if test "$host_cpu" = ia64; then
6771 # AIX 5 now supports IA64 processor
6772 lt_prog_compiler_static='-Bstatic'
6773 else
6774 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6775 fi
6776 ;;
6777 darwin*)
6778 # PIC is the default on this platform
6779 # Common symbols not allowed in MH_DYLIB files
6780 case $cc_basename in
6781 xlc*)
6782 lt_prog_compiler_pic='-qnocommon'
6783 lt_prog_compiler_wl='-Wl,'
6784 ;;
6785 esac
6786 ;;
6787
6788 mingw* | cygwin* | pw32* | os2*)
6789 # This hack is so that the source file can tell whether it is being
6790 # built for inclusion in a dll (and should export symbols for example).
6791 lt_prog_compiler_pic='-DDLL_EXPORT'
6792 ;;
6793
6794 hpux9* | hpux10* | hpux11*)
6795 lt_prog_compiler_wl='-Wl,'
6796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6797 # not for PA HP-UX.
6798 case $host_cpu in
6799 hppa*64*|ia64*)
6800 # +Z the default
6801 ;;
6802 *)
6803 lt_prog_compiler_pic='+Z'
6804 ;;
6805 esac
6806 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6807 lt_prog_compiler_static='${wl}-a ${wl}archive'
6808 ;;
6809
6810 irix5* | irix6* | nonstopux*)
6811 lt_prog_compiler_wl='-Wl,'
6812 # PIC (with -KPIC) is the default.
6813 lt_prog_compiler_static='-non_shared'
6814 ;;
6815
6816 newsos6)
6817 lt_prog_compiler_pic='-KPIC'
6818 lt_prog_compiler_static='-Bstatic'
6819 ;;
6820
6821 linux* | k*bsd*-gnu)
6822 case $cc_basename in
6823 icc* | ecc*)
6824 lt_prog_compiler_wl='-Wl,'
6825 lt_prog_compiler_pic='-KPIC'
6826 lt_prog_compiler_static='-static'
6827 ;;
6828 pgcc* | pgf77* | pgf90* | pgf95*)
6829 # Portland Group compilers (*not* the Pentium gcc compiler,
6830 # which looks to be a dead project)
6831 lt_prog_compiler_wl='-Wl,'
6832 lt_prog_compiler_pic='-fpic'
6833 lt_prog_compiler_static='-Bstatic'
6834 ;;
6835 ccc*)
6836 lt_prog_compiler_wl='-Wl,'
6837 # All Alpha code is PIC.
6838 lt_prog_compiler_static='-non_shared'
6839 ;;
6840 *)
6841 case `$CC -V 2>&1 | sed 5q` in
6842 *Sun\ C*)
6843 # Sun C 5.9
6844 lt_prog_compiler_pic='-KPIC'
6845 lt_prog_compiler_static='-Bstatic'
6846 lt_prog_compiler_wl='-Wl,'
6847 ;;
6848 *Sun\ F*)
6849 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6850 lt_prog_compiler_pic='-KPIC'
6851 lt_prog_compiler_static='-Bstatic'
6852 lt_prog_compiler_wl=''
6853 ;;
6854 esac
6855 ;;
6856 esac
6857 ;;
6858
6859 osf3* | osf4* | osf5*)
6860 lt_prog_compiler_wl='-Wl,'
6861 # All OSF/1 code is PIC.
6862 lt_prog_compiler_static='-non_shared'
6863 ;;
6864
6865 rdos*)
6866 lt_prog_compiler_static='-non_shared'
6867 ;;
6868
6869 solaris*)
6870 lt_prog_compiler_pic='-KPIC'
6871 lt_prog_compiler_static='-Bstatic'
6872 case $cc_basename in
6873 f77* | f90* | f95*)
6874 lt_prog_compiler_wl='-Qoption ld ';;
6875 *)
6876 lt_prog_compiler_wl='-Wl,';;
6877 esac
6878 ;;
6879
6880 sunos4*)
6881 lt_prog_compiler_wl='-Qoption ld '
6882 lt_prog_compiler_pic='-PIC'
6883 lt_prog_compiler_static='-Bstatic'
6884 ;;
6885
6886 sysv4 | sysv4.2uw2* | sysv4.3*)
6887 lt_prog_compiler_wl='-Wl,'
6888 lt_prog_compiler_pic='-KPIC'
6889 lt_prog_compiler_static='-Bstatic'
6890 ;;
6891
6892 sysv4*MP*)
6893 if test -d /usr/nec ;then
6894 lt_prog_compiler_pic='-Kconform_pic'
6895 lt_prog_compiler_static='-Bstatic'
6896 fi
6897 ;;
6898
6899 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6900 lt_prog_compiler_wl='-Wl,'
6901 lt_prog_compiler_pic='-KPIC'
6902 lt_prog_compiler_static='-Bstatic'
6903 ;;
6904
6905 unicos*)
6906 lt_prog_compiler_wl='-Wl,'
6907 lt_prog_compiler_can_build_shared=no
6908 ;;
6909
6910 uts4*)
6911 lt_prog_compiler_pic='-pic'
6912 lt_prog_compiler_static='-Bstatic'
6913 ;;
6914
6915 *)
6916 lt_prog_compiler_can_build_shared=no
6917 ;;
6918 esac
6919 fi
6920
6921 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6922 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6923
6924 #
6925 # Check to make sure the PIC flag actually works.
6926 #
6927 if test -n "$lt_prog_compiler_pic"; then
6928
6929 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6930 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6931 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934 lt_cv_prog_compiler_pic_works=no
6935 ac_outfile=conftest.$ac_objext
6936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6937 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6938 # Insert the option either (1) after the last *FLAGS variable, or
6939 # (2) before a word containing "conftest.", or (3) at the end.
6940 # Note that $ac_compile itself does not contain backslashes and begins
6941 # with a dollar sign (not a hyphen), so the echo should work correctly.
6942 # The option is referenced via a variable to avoid confusing sed.
6943 lt_compile=`echo "$ac_compile" | $SED \
6944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6946 -e 's:$: $lt_compiler_flag:'`
6947 (eval echo "\"\$as_me:6947: $lt_compile\"" >&5)
6948 (eval "$lt_compile" 2>conftest.err)
6949 ac_status=$?
6950 cat conftest.err >&5
6951 echo "$as_me:6951: \$? = $ac_status" >&5
6952 if (exit $ac_status) && test -s "$ac_outfile"; then
6953 # The compiler can only warn and ignore the option if not recognized
6954 # So say no if there are warnings other than the usual output.
6955 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6958 lt_cv_prog_compiler_pic_works=yes
6959 fi
6960 fi
6961 $rm conftest*
6962
6963 fi
6964 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
6965 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
6966
6967 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6968 case $lt_prog_compiler_pic in
6969 "" | " "*) ;;
6970 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6971 esac
6972 else
6973 lt_prog_compiler_pic=
6974 lt_prog_compiler_can_build_shared=no
6975 fi
6976
6977 fi
6978 case $host_os in
6979 # For platforms which do not support PIC, -DPIC is meaningless:
6980 *djgpp*)
6981 lt_prog_compiler_pic=
6982 ;;
6983 *)
6984 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6985 ;;
6986 esac
6987
6988 #
6989 # Check to make sure the static flag actually works.
6990 #
6991 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6992 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6993 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6994 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 lt_cv_prog_compiler_static_works=no
6998 save_LDFLAGS="$LDFLAGS"
6999 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7000 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7002 # The linker can only warn and ignore the option if not recognized
7003 # So say no if there are warnings
7004 if test -s conftest.err; then
7005 # Append any errors to the config.log.
7006 cat conftest.err 1>&5
7007 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7009 if diff conftest.exp conftest.er2 >/dev/null; then
7010 lt_cv_prog_compiler_static_works=yes
7011 fi
7012 else
7013 lt_cv_prog_compiler_static_works=yes
7014 fi
7015 fi
7016 $rm -r conftest*
7017 LDFLAGS="$save_LDFLAGS"
7018
7019 fi
7020 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7021 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
7022
7023 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7024 :
7025 else
7026 lt_prog_compiler_static=
7027 fi
7028
7029
7030 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7031 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7032 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 lt_cv_prog_compiler_c_o=no
7036 $rm -r conftest 2>/dev/null
7037 mkdir conftest
7038 cd conftest
7039 mkdir out
7040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7041
7042 lt_compiler_flag="-o out/conftest2.$ac_objext"
7043 # Insert the option either (1) after the last *FLAGS variable, or
7044 # (2) before a word containing "conftest.", or (3) at the end.
7045 # Note that $ac_compile itself does not contain backslashes and begins
7046 # with a dollar sign (not a hyphen), so the echo should work correctly.
7047 lt_compile=`echo "$ac_compile" | $SED \
7048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7050 -e 's:$: $lt_compiler_flag:'`
7051 (eval echo "\"\$as_me:7051: $lt_compile\"" >&5)
7052 (eval "$lt_compile" 2>out/conftest.err)
7053 ac_status=$?
7054 cat out/conftest.err >&5
7055 echo "$as_me:7055: \$? = $ac_status" >&5
7056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7057 then
7058 # The compiler can only warn and ignore the option if not recognized
7059 # So say no if there are warnings
7060 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7063 lt_cv_prog_compiler_c_o=yes
7064 fi
7065 fi
7066 chmod u+w . 2>&5
7067 $rm conftest*
7068 # SGI C++ compiler will create directory out/ii_files/ for
7069 # template instantiation
7070 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7071 $rm out/* && rmdir out
7072 cd ..
7073 rmdir conftest
7074 $rm conftest*
7075
7076 fi
7077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7079
7080
7081 hard_links="nottested"
7082 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7083 # do not overwrite the value of need_locks provided by the user
7084 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7085 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7086 hard_links=yes
7087 $rm conftest*
7088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7089 touch conftest.a
7090 ln conftest.a conftest.b 2>&5 || hard_links=no
7091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7092 echo "$as_me:$LINENO: result: $hard_links" >&5
7093 echo "${ECHO_T}$hard_links" >&6
7094 if test "$hard_links" = no; then
7095 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7096 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7097 need_locks=warn
7098 fi
7099 else
7100 need_locks=no
7101 fi
7102
7103 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7105
7106 runpath_var=
7107 allow_undefined_flag=
7108 enable_shared_with_static_runtimes=no
7109 archive_cmds=
7110 archive_expsym_cmds=
7111 old_archive_From_new_cmds=
7112 old_archive_from_expsyms_cmds=
7113 export_dynamic_flag_spec=
7114 whole_archive_flag_spec=
7115 thread_safe_flag_spec=
7116 hardcode_libdir_flag_spec=
7117 hardcode_libdir_flag_spec_ld=
7118 hardcode_libdir_separator=
7119 hardcode_direct=no
7120 hardcode_minus_L=no
7121 hardcode_shlibpath_var=unsupported
7122 link_all_deplibs=unknown
7123 hardcode_automatic=no
7124 module_cmds=
7125 module_expsym_cmds=
7126 always_export_symbols=no
7127 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7128 # include_expsyms should be a list of space-separated symbols to be *always*
7129 # included in the symbol list
7130 include_expsyms=
7131 # exclude_expsyms can be an extended regexp of symbols to exclude
7132 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7133 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7134 # as well as any symbol that contains `d'.
7135 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7137 # platforms (ab)use it in PIC code, but their linkers get confused if
7138 # the symbol is explicitly referenced. Since portable code cannot
7139 # rely on this symbol name, it's probably fine to never include it in
7140 # preloaded symbol tables.
7141 # Exclude shared library initialization/finalization symbols.
7142 extract_expsyms_cmds=
7143 # Just being paranoid about ensuring that cc_basename is set.
7144 for cc_temp in $compiler""; do
7145 case $cc_temp in
7146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7148 \-*) ;;
7149 *) break;;
7150 esac
7151 done
7152 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7153
7154 case $host_os in
7155 cygwin* | mingw* | pw32*)
7156 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7157 # When not using gcc, we currently assume that we are using
7158 # Microsoft Visual C++.
7159 if test "$GCC" != yes; then
7160 with_gnu_ld=no
7161 fi
7162 ;;
7163 interix*)
7164 # we just hope/assume this is gcc and not c89 (= MSVC++)
7165 with_gnu_ld=yes
7166 ;;
7167 openbsd*)
7168 with_gnu_ld=no
7169 ;;
7170 esac
7171
7172 ld_shlibs=yes
7173 if test "$with_gnu_ld" = yes; then
7174 # If archive_cmds runs LD, not CC, wlarc should be empty
7175 wlarc='${wl}'
7176
7177 # Set some defaults for GNU ld with shared library support. These
7178 # are reset later if shared libraries are not supported. Putting them
7179 # here allows them to be overridden if necessary.
7180 runpath_var=LD_RUN_PATH
7181 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7182 export_dynamic_flag_spec='${wl}--export-dynamic'
7183 # ancient GNU ld didn't support --whole-archive et. al.
7184 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7185 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7186 else
7187 whole_archive_flag_spec=
7188 fi
7189 supports_anon_versioning=no
7190 case `$LD -v 2>/dev/null` in
7191 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7192 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7193 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7194 *\ 2.11.*) ;; # other 2.11 versions
7195 *) supports_anon_versioning=yes ;;
7196 esac
7197
7198 # See if GNU ld supports shared libraries.
7199 case $host_os in
7200 aix[3-9]*)
7201 # On AIX/PPC, the GNU linker is very broken
7202 if test "$host_cpu" != ia64; then
7203 ld_shlibs=no
7204 cat <<EOF 1>&2
7205
7206 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7207 *** to be unable to reliably create shared libraries on AIX.
7208 *** Therefore, libtool is disabling shared libraries support. If you
7209 *** really care for shared libraries, you may want to modify your PATH
7210 *** so that a non-GNU linker is found, and then restart.
7211
7212 EOF
7213 fi
7214 ;;
7215
7216 amigaos*)
7217 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)'
7218 hardcode_libdir_flag_spec='-L$libdir'
7219 hardcode_minus_L=yes
7220
7221 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7222 # that the semantics of dynamic libraries on AmigaOS, at least up
7223 # to version 4, is to share data among multiple programs linked
7224 # with the same dynamic library. Since this doesn't match the
7225 # behavior of shared libraries on other platforms, we can't use
7226 # them.
7227 ld_shlibs=no
7228 ;;
7229
7230 beos*)
7231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7232 allow_undefined_flag=unsupported
7233 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7234 # support --undefined. This deserves some investigation. FIXME
7235 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7236 else
7237 ld_shlibs=no
7238 fi
7239 ;;
7240
7241 cygwin* | mingw* | pw32*)
7242 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7243 # as there is no search path for DLLs.
7244 hardcode_libdir_flag_spec='-L$libdir'
7245 allow_undefined_flag=unsupported
7246 always_export_symbols=no
7247 enable_shared_with_static_runtimes=yes
7248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7249
7250 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7252 # If the export-symbols file already is a .def file (1st line
7253 # is EXPORTS), use it as is; otherwise, prepend...
7254 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7255 cp $export_symbols $output_objdir/$soname.def;
7256 else
7257 echo EXPORTS > $output_objdir/$soname.def;
7258 cat $export_symbols >> $output_objdir/$soname.def;
7259 fi~
7260 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7261 else
7262 ld_shlibs=no
7263 fi
7264 ;;
7265
7266 interix[3-9]*)
7267 hardcode_direct=no
7268 hardcode_shlibpath_var=no
7269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7270 export_dynamic_flag_spec='${wl}-E'
7271 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7272 # Instead, shared libraries are loaded at an image base (0x10000000 by
7273 # default) and relocated if they conflict, which is a slow very memory
7274 # consuming and fragmenting process. To avoid this, we pick a random,
7275 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7276 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7277 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7278 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7279 ;;
7280
7281 gnu* | linux* | k*bsd*-gnu)
7282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7283 tmp_addflag=
7284 case $cc_basename,$host_cpu in
7285 pgcc*) # Portland Group C compiler
7286 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'
7287 tmp_addflag=' $pic_flag'
7288 ;;
7289 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7290 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'
7291 tmp_addflag=' $pic_flag -Mnomain' ;;
7292 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7293 tmp_addflag=' -i_dynamic' ;;
7294 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7295 tmp_addflag=' -i_dynamic -nofor_main' ;;
7296 ifc* | ifort*) # Intel Fortran compiler
7297 tmp_addflag=' -nofor_main' ;;
7298 esac
7299 case `$CC -V 2>&1 | sed 5q` in
7300 *Sun\ C*) # Sun C 5.9
7301 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7302 tmp_sharedflag='-G' ;;
7303 *Sun\ F*) # Sun Fortran 8.3
7304 tmp_sharedflag='-G' ;;
7305 *)
7306 tmp_sharedflag='-shared' ;;
7307 esac
7308 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7309
7310 if test $supports_anon_versioning = yes; then
7311 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7313 $echo "local: *; };" >> $output_objdir/$libname.ver~
7314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7315 fi
7316 else
7317 ld_shlibs=no
7318 fi
7319 ;;
7320
7321 netbsd*)
7322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7323 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7324 wlarc=
7325 else
7326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7328 fi
7329 ;;
7330
7331 solaris*)
7332 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7333 ld_shlibs=no
7334 cat <<EOF 1>&2
7335
7336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7337 *** create shared libraries on Solaris systems. Therefore, libtool
7338 *** is disabling shared libraries support. We urge you to upgrade GNU
7339 *** binutils to release 2.9.1 or newer. Another option is to modify
7340 *** your PATH or compiler configuration so that the native linker is
7341 *** used, and then restart.
7342
7343 EOF
7344 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7347 else
7348 ld_shlibs=no
7349 fi
7350 ;;
7351
7352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7353 case `$LD -v 2>&1` in
7354 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7355 ld_shlibs=no
7356 cat <<_LT_EOF 1>&2
7357
7358 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7359 *** reliably create shared libraries on SCO systems. Therefore, libtool
7360 *** is disabling shared libraries support. We urge you to upgrade GNU
7361 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7362 *** your PATH or compiler configuration so that the native linker is
7363 *** used, and then restart.
7364
7365 _LT_EOF
7366 ;;
7367 *)
7368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7369 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7372 else
7373 ld_shlibs=no
7374 fi
7375 ;;
7376 esac
7377 ;;
7378
7379 sunos4*)
7380 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7381 wlarc=
7382 hardcode_direct=yes
7383 hardcode_shlibpath_var=no
7384 ;;
7385
7386 *)
7387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7390 else
7391 ld_shlibs=no
7392 fi
7393 ;;
7394 esac
7395
7396 if test "$ld_shlibs" = no; then
7397 runpath_var=
7398 hardcode_libdir_flag_spec=
7399 export_dynamic_flag_spec=
7400 whole_archive_flag_spec=
7401 fi
7402 else
7403 # PORTME fill in a description of your system's linker (not GNU ld)
7404 case $host_os in
7405 aix3*)
7406 allow_undefined_flag=unsupported
7407 always_export_symbols=yes
7408 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'
7409 # Note: this linker hardcodes the directories in LIBPATH if there
7410 # are no directories specified by -L.
7411 hardcode_minus_L=yes
7412 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7413 # Neither direct hardcoding nor static linking is supported with a
7414 # broken collect2.
7415 hardcode_direct=unsupported
7416 fi
7417 ;;
7418
7419 aix[4-9]*)
7420 if test "$host_cpu" = ia64; then
7421 # On IA64, the linker does run time linking by default, so we don't
7422 # have to do anything special.
7423 aix_use_runtimelinking=no
7424 exp_sym_flag='-Bexport'
7425 no_entry_flag=""
7426 else
7427 # If we're using GNU nm, then we don't want the "-C" option.
7428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7429 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7430 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'
7431 else
7432 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'
7433 fi
7434 aix_use_runtimelinking=no
7435
7436 # Test if we are trying to use run time linking or normal
7437 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7438 # need to do runtime linking.
7439 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7440 for ld_flag in $LDFLAGS; do
7441 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7442 aix_use_runtimelinking=yes
7443 break
7444 fi
7445 done
7446 ;;
7447 esac
7448
7449 exp_sym_flag='-bexport'
7450 no_entry_flag='-bnoentry'
7451 fi
7452
7453 # When large executables or shared objects are built, AIX ld can
7454 # have problems creating the table of contents. If linking a library
7455 # or program results in "error TOC overflow" add -mminimal-toc to
7456 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7457 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7458
7459 archive_cmds=''
7460 hardcode_direct=yes
7461 hardcode_libdir_separator=':'
7462 link_all_deplibs=yes
7463
7464 if test "$GCC" = yes; then
7465 case $host_os in aix4.[012]|aix4.[012].*)
7466 # We only want to do this on AIX 4.2 and lower, the check
7467 # below for broken collect2 doesn't work under 4.3+
7468 collect2name=`${CC} -print-prog-name=collect2`
7469 if test -f "$collect2name" && \
7470 strings "$collect2name" | grep resolve_lib_name >/dev/null
7471 then
7472 # We have reworked collect2
7473 :
7474 else
7475 # We have old collect2
7476 hardcode_direct=unsupported
7477 # It fails to find uninstalled libraries when the uninstalled
7478 # path is not listed in the libpath. Setting hardcode_minus_L
7479 # to unsupported forces relinking
7480 hardcode_minus_L=yes
7481 hardcode_libdir_flag_spec='-L$libdir'
7482 hardcode_libdir_separator=
7483 fi
7484 ;;
7485 esac
7486 shared_flag='-shared'
7487 if test "$aix_use_runtimelinking" = yes; then
7488 shared_flag="$shared_flag "'${wl}-G'
7489 fi
7490 else
7491 # not using gcc
7492 if test "$host_cpu" = ia64; then
7493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7494 # chokes on -Wl,-G. The following line is correct:
7495 shared_flag='-G'
7496 else
7497 if test "$aix_use_runtimelinking" = yes; then
7498 shared_flag='${wl}-G'
7499 else
7500 shared_flag='${wl}-bM:SRE'
7501 fi
7502 fi
7503 fi
7504
7505 # It seems that -bexpall does not export symbols beginning with
7506 # underscore (_), so it is better to generate a list of symbols to export.
7507 always_export_symbols=yes
7508 if test "$aix_use_runtimelinking" = yes; then
7509 # Warning - without using the other runtime loading flags (-brtl),
7510 # -berok will link without error, but may produce a broken library.
7511 allow_undefined_flag='-berok'
7512 # Determine the default libpath from the value encoded in an empty executable.
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519
7520 int
7521 main ()
7522 {
7523
7524 ;
7525 return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>conftest.er1
7531 ac_status=$?
7532 grep -v '^ *+' conftest.er1 >conftest.err
7533 rm -f conftest.er1
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -z "$ac_c_werror_flag"
7538 || test ! -s conftest.err'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 (eval $ac_try) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; } &&
7544 { ac_try='test -s conftest$ac_exeext'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 (eval $ac_try) 2>&5
7547 ac_status=$?
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7550
7551 lt_aix_libpath_sed='
7552 /Import File Strings/,/^$/ {
7553 /^0/ {
7554 s/^0 *\(.*\)$/\1/
7555 p
7556 }
7557 }'
7558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7559 # Check for a 64-bit object if we didn't find anything.
7560 if test -z "$aix_libpath"; then
7561 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7562 fi
7563 else
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 fi
7568 rm -f conftest.err conftest.$ac_objext \
7569 conftest$ac_exeext conftest.$ac_ext
7570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7571
7572 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7573 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7574 else
7575 if test "$host_cpu" = ia64; then
7576 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7577 allow_undefined_flag="-z nodefs"
7578 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7579 else
7580 # Determine the default libpath from the value encoded in an empty executable.
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h. */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587
7588 int
7589 main ()
7590 {
7591
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 rm -f conftest.$ac_objext conftest$ac_exeext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598 (eval $ac_link) 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_c_werror_flag"
7606 || test ! -s conftest.err'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try='test -s conftest$ac_exeext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618
7619 lt_aix_libpath_sed='
7620 /Import File Strings/,/^$/ {
7621 /^0/ {
7622 s/^0 *\(.*\)$/\1/
7623 p
7624 }
7625 }'
7626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7627 # Check for a 64-bit object if we didn't find anything.
7628 if test -z "$aix_libpath"; then
7629 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7630 fi
7631 else
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7634
7635 fi
7636 rm -f conftest.err conftest.$ac_objext \
7637 conftest$ac_exeext conftest.$ac_ext
7638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7639
7640 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7641 # Warning - without using the other run time loading flags,
7642 # -berok will link without error, but may produce a broken library.
7643 no_undefined_flag=' ${wl}-bernotok'
7644 allow_undefined_flag=' ${wl}-berok'
7645 # Exported symbols can be pulled into shared objects from archives
7646 whole_archive_flag_spec='$convenience'
7647 archive_cmds_need_lc=yes
7648 # This is similar to how AIX traditionally builds its shared libraries.
7649 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7650 fi
7651 fi
7652 ;;
7653
7654 amigaos*)
7655 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)'
7656 hardcode_libdir_flag_spec='-L$libdir'
7657 hardcode_minus_L=yes
7658 # see comment about different semantics on the GNU ld section
7659 ld_shlibs=no
7660 ;;
7661
7662 bsdi[45]*)
7663 export_dynamic_flag_spec=-rdynamic
7664 ;;
7665
7666 cygwin* | mingw* | pw32*)
7667 # When not using gcc, we currently assume that we are using
7668 # Microsoft Visual C++.
7669 # hardcode_libdir_flag_spec is actually meaningless, as there is
7670 # no search path for DLLs.
7671 hardcode_libdir_flag_spec=' '
7672 allow_undefined_flag=unsupported
7673 # Tell ltmain to make .lib files, not .a files.
7674 libext=lib
7675 # Tell ltmain to make .dll files, not .so files.
7676 shrext_cmds=".dll"
7677 # FIXME: Setting linknames here is a bad hack.
7678 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7679 # The linker will automatically build a .lib file if we build a DLL.
7680 old_archive_From_new_cmds='true'
7681 # FIXME: Should let the user specify the lib program.
7682 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7683 fix_srcfile_path='`cygpath -w "$srcfile"`'
7684 enable_shared_with_static_runtimes=yes
7685 ;;
7686
7687 darwin* | rhapsody*)
7688 case $host_os in
7689 rhapsody* | darwin1.[012])
7690 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7691 ;;
7692 *) # Darwin 1.3 on
7693 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7694 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7695 else
7696 case ${MACOSX_DEPLOYMENT_TARGET} in
7697 10.[012])
7698 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7699 ;;
7700 10.*)
7701 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7702 ;;
7703 esac
7704 fi
7705 ;;
7706 esac
7707 archive_cmds_need_lc=no
7708 hardcode_direct=no
7709 hardcode_automatic=yes
7710 hardcode_shlibpath_var=unsupported
7711 whole_archive_flag_spec=''
7712 link_all_deplibs=yes
7713 if test "$GCC" = yes ; then
7714 output_verbose_link_cmd='echo'
7715 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7716 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7717 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7718 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7719 else
7720 case $cc_basename in
7721 xlc*)
7722 output_verbose_link_cmd='echo'
7723 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7724 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7726 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7727 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}'
7728 ;;
7729 *)
7730 ld_shlibs=no
7731 ;;
7732 esac
7733 fi
7734 ;;
7735
7736 dgux*)
7737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7738 hardcode_libdir_flag_spec='-L$libdir'
7739 hardcode_shlibpath_var=no
7740 ;;
7741
7742 freebsd1*)
7743 ld_shlibs=no
7744 ;;
7745
7746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7747 # support. Future versions do this automatically, but an explicit c++rt0.o
7748 # does not break anything, and helps significantly (at the cost of a little
7749 # extra space).
7750 freebsd2.2*)
7751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7752 hardcode_libdir_flag_spec='-R$libdir'
7753 hardcode_direct=yes
7754 hardcode_shlibpath_var=no
7755 ;;
7756
7757 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7758 freebsd2*)
7759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7760 hardcode_direct=yes
7761 hardcode_minus_L=yes
7762 hardcode_shlibpath_var=no
7763 ;;
7764
7765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7766 freebsd* | dragonfly*)
7767 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7768 hardcode_libdir_flag_spec='-R$libdir'
7769 hardcode_direct=yes
7770 hardcode_shlibpath_var=no
7771 ;;
7772
7773 hpux9*)
7774 if test "$GCC" = yes; then
7775 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'
7776 else
7777 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'
7778 fi
7779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7780 hardcode_libdir_separator=:
7781 hardcode_direct=yes
7782
7783 # hardcode_minus_L: Not really in the search PATH,
7784 # but as the default location of the library.
7785 hardcode_minus_L=yes
7786 export_dynamic_flag_spec='${wl}-E'
7787 ;;
7788
7789 hpux10*)
7790 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7792 else
7793 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7794 fi
7795 if test "$with_gnu_ld" = no; then
7796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7797 hardcode_libdir_separator=:
7798
7799 hardcode_direct=yes
7800 export_dynamic_flag_spec='${wl}-E'
7801
7802 # hardcode_minus_L: Not really in the search PATH,
7803 # but as the default location of the library.
7804 hardcode_minus_L=yes
7805 fi
7806 ;;
7807
7808 hpux11*)
7809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7810 case $host_cpu in
7811 hppa*64*)
7812 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7813 ;;
7814 ia64*)
7815 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7816 ;;
7817 *)
7818 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7819 ;;
7820 esac
7821 else
7822 case $host_cpu in
7823 hppa*64*)
7824 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7825 ;;
7826 ia64*)
7827 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7828 ;;
7829 *)
7830 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7831 ;;
7832 esac
7833 fi
7834 if test "$with_gnu_ld" = no; then
7835 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7836 hardcode_libdir_separator=:
7837
7838 case $host_cpu in
7839 hppa*64*|ia64*)
7840 hardcode_libdir_flag_spec_ld='+b $libdir'
7841 hardcode_direct=no
7842 hardcode_shlibpath_var=no
7843 ;;
7844 *)
7845 hardcode_direct=yes
7846 export_dynamic_flag_spec='${wl}-E'
7847
7848 # hardcode_minus_L: Not really in the search PATH,
7849 # but as the default location of the library.
7850 hardcode_minus_L=yes
7851 ;;
7852 esac
7853 fi
7854 ;;
7855
7856 irix5* | irix6* | nonstopux*)
7857 if test "$GCC" = yes; then
7858 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'
7859 else
7860 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'
7861 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7862 fi
7863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7864 hardcode_libdir_separator=:
7865 link_all_deplibs=yes
7866 ;;
7867
7868 netbsd*)
7869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7871 else
7872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7873 fi
7874 hardcode_libdir_flag_spec='-R$libdir'
7875 hardcode_direct=yes
7876 hardcode_shlibpath_var=no
7877 ;;
7878
7879 newsos6)
7880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7881 hardcode_direct=yes
7882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7883 hardcode_libdir_separator=:
7884 hardcode_shlibpath_var=no
7885 ;;
7886
7887 openbsd*)
7888 if test -f /usr/libexec/ld.so; then
7889 hardcode_direct=yes
7890 hardcode_shlibpath_var=no
7891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7893 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7895 export_dynamic_flag_spec='${wl}-E'
7896 else
7897 case $host_os in
7898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7900 hardcode_libdir_flag_spec='-R$libdir'
7901 ;;
7902 *)
7903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7905 ;;
7906 esac
7907 fi
7908 else
7909 ld_shlibs=no
7910 fi
7911 ;;
7912
7913 os2*)
7914 hardcode_libdir_flag_spec='-L$libdir'
7915 hardcode_minus_L=yes
7916 allow_undefined_flag=unsupported
7917 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'
7918 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7919 ;;
7920
7921 osf3*)
7922 if test "$GCC" = yes; then
7923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7924 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'
7925 else
7926 allow_undefined_flag=' -expect_unresolved \*'
7927 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'
7928 fi
7929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7930 hardcode_libdir_separator=:
7931 ;;
7932
7933 osf4* | osf5*) # as osf3* with the addition of -msym flag
7934 if test "$GCC" = yes; then
7935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7936 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'
7937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7938 else
7939 allow_undefined_flag=' -expect_unresolved \*'
7940 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'
7941 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7942 $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'
7943
7944 # Both c and cxx compiler support -rpath directly
7945 hardcode_libdir_flag_spec='-rpath $libdir'
7946 fi
7947 hardcode_libdir_separator=:
7948 ;;
7949
7950 solaris*)
7951 no_undefined_flag=' -z text'
7952 if test "$GCC" = yes; then
7953 wlarc='${wl}'
7954 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7955 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7956 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7957 else
7958 wlarc=''
7959 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7960 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7961 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7962 fi
7963 hardcode_libdir_flag_spec='-R$libdir'
7964 hardcode_shlibpath_var=no
7965 case $host_os in
7966 solaris2.[0-5] | solaris2.[0-5].*) ;;
7967 *)
7968 # The compiler driver will combine and reorder linker options,
7969 # but understands `-z linker_flag'. GCC discards it without `$wl',
7970 # but is careful enough not to reorder.
7971 # Supported since Solaris 2.6 (maybe 2.5.1?)
7972 if test "$GCC" = yes; then
7973 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7974 else
7975 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7976 fi
7977 ;;
7978 esac
7979 link_all_deplibs=yes
7980 ;;
7981
7982 sunos4*)
7983 if test "x$host_vendor" = xsequent; then
7984 # Use $CC to link under sequent, because it throws in some extra .o
7985 # files that make .init and .fini sections work.
7986 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7987 else
7988 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7989 fi
7990 hardcode_libdir_flag_spec='-L$libdir'
7991 hardcode_direct=yes
7992 hardcode_minus_L=yes
7993 hardcode_shlibpath_var=no
7994 ;;
7995
7996 sysv4)
7997 case $host_vendor in
7998 sni)
7999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8000 hardcode_direct=yes # is this really true???
8001 ;;
8002 siemens)
8003 ## LD is ld it makes a PLAMLIB
8004 ## CC just makes a GrossModule.
8005 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8006 reload_cmds='$CC -r -o $output$reload_objs'
8007 hardcode_direct=no
8008 ;;
8009 motorola)
8010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8011 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8012 ;;
8013 esac
8014 runpath_var='LD_RUN_PATH'
8015 hardcode_shlibpath_var=no
8016 ;;
8017
8018 sysv4.3*)
8019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8020 hardcode_shlibpath_var=no
8021 export_dynamic_flag_spec='-Bexport'
8022 ;;
8023
8024 sysv4*MP*)
8025 if test -d /usr/nec; then
8026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8027 hardcode_shlibpath_var=no
8028 runpath_var=LD_RUN_PATH
8029 hardcode_runpath_var=yes
8030 ld_shlibs=yes
8031 fi
8032 ;;
8033
8034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8035 no_undefined_flag='${wl}-z,text'
8036 archive_cmds_need_lc=no
8037 hardcode_shlibpath_var=no
8038 runpath_var='LD_RUN_PATH'
8039
8040 if test "$GCC" = yes; then
8041 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8042 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8043 else
8044 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8045 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8046 fi
8047 ;;
8048
8049 sysv5* | sco3.2v5* | sco5v6*)
8050 # Note: We can NOT use -z defs as we might desire, because we do not
8051 # link with -lc, and that would cause any symbols used from libc to
8052 # always be unresolved, which means just about no library would
8053 # ever link correctly. If we're not using GNU ld we use -z text
8054 # though, which does catch some bad symbols but isn't as heavy-handed
8055 # as -z defs.
8056 no_undefined_flag='${wl}-z,text'
8057 allow_undefined_flag='${wl}-z,nodefs'
8058 archive_cmds_need_lc=no
8059 hardcode_shlibpath_var=no
8060 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8061 hardcode_libdir_separator=':'
8062 link_all_deplibs=yes
8063 export_dynamic_flag_spec='${wl}-Bexport'
8064 runpath_var='LD_RUN_PATH'
8065
8066 if test "$GCC" = yes; then
8067 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8069 else
8070 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8072 fi
8073 ;;
8074
8075 uts4*)
8076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8077 hardcode_libdir_flag_spec='-L$libdir'
8078 hardcode_shlibpath_var=no
8079 ;;
8080
8081 *)
8082 ld_shlibs=no
8083 ;;
8084 esac
8085 fi
8086
8087 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8088 echo "${ECHO_T}$ld_shlibs" >&6
8089 test "$ld_shlibs" = no && can_build_shared=no
8090
8091 #
8092 # Do we need to explicitly link libc?
8093 #
8094 case "x$archive_cmds_need_lc" in
8095 x|xyes)
8096 # Assume -lc should be added
8097 archive_cmds_need_lc=yes
8098
8099 if test "$enable_shared" = yes && test "$GCC" = yes; then
8100 case $archive_cmds in
8101 *'~'*)
8102 # FIXME: we may have to deal with multi-command sequences.
8103 ;;
8104 '$CC '*)
8105 # Test whether the compiler implicitly links with -lc since on some
8106 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8107 # to ld, don't add -lc before -lgcc.
8108 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8109 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8110 $rm conftest*
8111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8112
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } 2>conftest.err; then
8118 soname=conftest
8119 lib=conftest
8120 libobjs=conftest.$ac_objext
8121 deplibs=
8122 wl=$lt_prog_compiler_wl
8123 pic_flag=$lt_prog_compiler_pic
8124 compiler_flags=-v
8125 linker_flags=-v
8126 verstring=
8127 output_objdir=.
8128 libname=conftest
8129 lt_save_allow_undefined_flag=$allow_undefined_flag
8130 allow_undefined_flag=
8131 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8132 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }
8136 then
8137 archive_cmds_need_lc=no
8138 else
8139 archive_cmds_need_lc=yes
8140 fi
8141 allow_undefined_flag=$lt_save_allow_undefined_flag
8142 else
8143 cat conftest.err 1>&5
8144 fi
8145 $rm conftest*
8146 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8147 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8148 ;;
8149 esac
8150 fi
8151 ;;
8152 esac
8153
8154 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8155 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8156 library_names_spec=
8157 libname_spec='lib$name'
8158 soname_spec=
8159 shrext_cmds=".so"
8160 postinstall_cmds=
8161 postuninstall_cmds=
8162 finish_cmds=
8163 finish_eval=
8164 shlibpath_var=
8165 shlibpath_overrides_runpath=unknown
8166 version_type=none
8167 dynamic_linker="$host_os ld.so"
8168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8169
8170 if test "$GCC" = yes; then
8171 case $host_os in
8172 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8173 *) lt_awk_arg="/^libraries:/" ;;
8174 esac
8175 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8176 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8177 # if the path contains ";" then we assume it to be the separator
8178 # otherwise default to the standard path separator (i.e. ":") - it is
8179 # assumed that no part of a normal pathname contains ";" but that should
8180 # okay in the real world where ";" in dirpaths is itself problematic.
8181 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8182 else
8183 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8184 fi
8185 # Ok, now we have the path, separated by spaces, we can step through it
8186 # and add multilib dir if necessary.
8187 lt_tmp_lt_search_path_spec=
8188 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8189 for lt_sys_path in $lt_search_path_spec; do
8190 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8191 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8192 else
8193 test -d "$lt_sys_path" && \
8194 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8195 fi
8196 done
8197 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8198 BEGIN {RS=" "; FS="/|\n";} {
8199 lt_foo="";
8200 lt_count=0;
8201 for (lt_i = NF; lt_i > 0; lt_i--) {
8202 if ($lt_i != "" && $lt_i != ".") {
8203 if ($lt_i == "..") {
8204 lt_count++;
8205 } else {
8206 if (lt_count == 0) {
8207 lt_foo="/" $lt_i lt_foo;
8208 } else {
8209 lt_count--;
8210 }
8211 }
8212 }
8213 }
8214 if (lt_foo != "") { lt_freq[lt_foo]++; }
8215 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8216 }'`
8217 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8218 else
8219 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8220 fi
8221 need_lib_prefix=unknown
8222 hardcode_into_libs=no
8223
8224 # when you set need_version to no, make sure it does not cause -set_version
8225 # flags to be left without arguments
8226 need_version=unknown
8227
8228 case $host_os in
8229 aix3*)
8230 version_type=linux
8231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8232 shlibpath_var=LIBPATH
8233
8234 # AIX 3 has no versioning support, so we append a major version to the name.
8235 soname_spec='${libname}${release}${shared_ext}$major'
8236 ;;
8237
8238 aix[4-9]*)
8239 version_type=linux
8240 need_lib_prefix=no
8241 need_version=no
8242 hardcode_into_libs=yes
8243 if test "$host_cpu" = ia64; then
8244 # AIX 5 supports IA64
8245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8246 shlibpath_var=LD_LIBRARY_PATH
8247 else
8248 # With GCC up to 2.95.x, collect2 would create an import file
8249 # for dependence libraries. The import file would start with
8250 # the line `#! .'. This would cause the generated library to
8251 # depend on `.', always an invalid library. This was fixed in
8252 # development snapshots of GCC prior to 3.0.
8253 case $host_os in
8254 aix4 | aix4.[01] | aix4.[01].*)
8255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8256 echo ' yes '
8257 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8258 :
8259 else
8260 can_build_shared=no
8261 fi
8262 ;;
8263 esac
8264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8265 # soname into executable. Probably we can add versioning support to
8266 # collect2, so additional links can be useful in future.
8267 if test "$aix_use_runtimelinking" = yes; then
8268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8269 # instead of lib<name>.a to let people know that these are not
8270 # typical AIX shared libraries.
8271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8272 else
8273 # We preserve .a as extension for shared libraries through AIX4.2
8274 # and later when we are not doing run time linking.
8275 library_names_spec='${libname}${release}.a $libname.a'
8276 soname_spec='${libname}${release}${shared_ext}$major'
8277 fi
8278 shlibpath_var=LIBPATH
8279 fi
8280 ;;
8281
8282 amigaos*)
8283 library_names_spec='$libname.ixlibrary $libname.a'
8284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8285 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'
8286 ;;
8287
8288 beos*)
8289 library_names_spec='${libname}${shared_ext}'
8290 dynamic_linker="$host_os ld.so"
8291 shlibpath_var=LIBRARY_PATH
8292 ;;
8293
8294 bsdi[45]*)
8295 version_type=linux
8296 need_version=no
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8300 shlibpath_var=LD_LIBRARY_PATH
8301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8303 # the default ld.so.conf also contains /usr/contrib/lib and
8304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8305 # libtool to hard-code these into programs
8306 ;;
8307
8308 cygwin* | mingw* | pw32*)
8309 version_type=windows
8310 shrext_cmds=".dll"
8311 need_version=no
8312 need_lib_prefix=no
8313
8314 case $GCC,$host_os in
8315 yes,cygwin* | yes,mingw* | yes,pw32*)
8316 library_names_spec='$libname.dll.a'
8317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8318 postinstall_cmds='base_file=`basename \${file}`~
8319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8320 dldir=$destdir/`dirname \$dlpath`~
8321 test -d \$dldir || mkdir -p \$dldir~
8322 $install_prog $dir/$dlname \$dldir/$dlname~
8323 chmod a+x \$dldir/$dlname'
8324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8325 dlpath=$dir/\$dldll~
8326 $rm \$dlpath'
8327 shlibpath_overrides_runpath=yes
8328
8329 case $host_os in
8330 cygwin*)
8331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8334 ;;
8335 mingw*)
8336 # MinGW DLLs use traditional 'lib' prefix
8337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8339 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8340 # It is most probably a Windows format PATH printed by
8341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8342 # path with ; separators, and with drive letters. We can handle the
8343 # drive letters (cygwin fileutils understands them), so leave them,
8344 # especially as we might pass files found there to a mingw objdump,
8345 # which wouldn't understand a cygwinified path. Ahh.
8346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8347 else
8348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8349 fi
8350 ;;
8351 pw32*)
8352 # pw32 DLLs use 'pw' prefix rather than 'lib'
8353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8354 ;;
8355 esac
8356 ;;
8357
8358 *)
8359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8360 ;;
8361 esac
8362 dynamic_linker='Win32 ld.exe'
8363 # FIXME: first we should search . and the directory the executable is in
8364 shlibpath_var=PATH
8365 ;;
8366
8367 darwin* | rhapsody*)
8368 dynamic_linker="$host_os dyld"
8369 version_type=darwin
8370 need_lib_prefix=no
8371 need_version=no
8372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8373 soname_spec='${libname}${release}${major}$shared_ext'
8374 shlibpath_overrides_runpath=yes
8375 shlibpath_var=DYLD_LIBRARY_PATH
8376 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8377
8378 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8380 ;;
8381
8382 dgux*)
8383 version_type=linux
8384 need_lib_prefix=no
8385 need_version=no
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8387 soname_spec='${libname}${release}${shared_ext}$major'
8388 shlibpath_var=LD_LIBRARY_PATH
8389 ;;
8390
8391 freebsd1*)
8392 dynamic_linker=no
8393 ;;
8394
8395 freebsd* | dragonfly*)
8396 # DragonFly does not have aout. When/if they implement a new
8397 # versioning mechanism, adjust this.
8398 if test -x /usr/bin/objformat; then
8399 objformat=`/usr/bin/objformat`
8400 else
8401 case $host_os in
8402 freebsd[123]*) objformat=aout ;;
8403 *) objformat=elf ;;
8404 esac
8405 fi
8406 version_type=freebsd-$objformat
8407 case $version_type in
8408 freebsd-elf*)
8409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8410 need_version=no
8411 need_lib_prefix=no
8412 ;;
8413 freebsd-*)
8414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8415 need_version=yes
8416 ;;
8417 esac
8418 shlibpath_var=LD_LIBRARY_PATH
8419 case $host_os in
8420 freebsd2*)
8421 shlibpath_overrides_runpath=yes
8422 ;;
8423 freebsd3.[01]* | freebsdelf3.[01]*)
8424 shlibpath_overrides_runpath=yes
8425 hardcode_into_libs=yes
8426 ;;
8427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8429 shlibpath_overrides_runpath=no
8430 hardcode_into_libs=yes
8431 ;;
8432 *) # from 4.6 on, and DragonFly
8433 shlibpath_overrides_runpath=yes
8434 hardcode_into_libs=yes
8435 ;;
8436 esac
8437 ;;
8438
8439 gnu*)
8440 version_type=linux
8441 need_lib_prefix=no
8442 need_version=no
8443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8444 soname_spec='${libname}${release}${shared_ext}$major'
8445 shlibpath_var=LD_LIBRARY_PATH
8446 hardcode_into_libs=yes
8447 ;;
8448
8449 hpux9* | hpux10* | hpux11*)
8450 # Give a soname corresponding to the major version so that dld.sl refuses to
8451 # link against other versions.
8452 version_type=sunos
8453 need_lib_prefix=no
8454 need_version=no
8455 case $host_cpu in
8456 ia64*)
8457 shrext_cmds='.so'
8458 hardcode_into_libs=yes
8459 dynamic_linker="$host_os dld.so"
8460 shlibpath_var=LD_LIBRARY_PATH
8461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8463 soname_spec='${libname}${release}${shared_ext}$major'
8464 if test "X$HPUX_IA64_MODE" = X32; then
8465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8466 else
8467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8468 fi
8469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8470 ;;
8471 hppa*64*)
8472 shrext_cmds='.sl'
8473 hardcode_into_libs=yes
8474 dynamic_linker="$host_os dld.sl"
8475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478 soname_spec='${libname}${release}${shared_ext}$major'
8479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8481 ;;
8482 *)
8483 shrext_cmds='.sl'
8484 dynamic_linker="$host_os dld.sl"
8485 shlibpath_var=SHLIB_PATH
8486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8488 soname_spec='${libname}${release}${shared_ext}$major'
8489 ;;
8490 esac
8491 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8492 postinstall_cmds='chmod 555 $lib'
8493 ;;
8494
8495 interix[3-9]*)
8496 version_type=linux
8497 need_lib_prefix=no
8498 need_version=no
8499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8500 soname_spec='${libname}${release}${shared_ext}$major'
8501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8502 shlibpath_var=LD_LIBRARY_PATH
8503 shlibpath_overrides_runpath=no
8504 hardcode_into_libs=yes
8505 ;;
8506
8507 irix5* | irix6* | nonstopux*)
8508 case $host_os in
8509 nonstopux*) version_type=nonstopux ;;
8510 *)
8511 if test "$lt_cv_prog_gnu_ld" = yes; then
8512 version_type=linux
8513 else
8514 version_type=irix
8515 fi ;;
8516 esac
8517 need_lib_prefix=no
8518 need_version=no
8519 soname_spec='${libname}${release}${shared_ext}$major'
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8521 case $host_os in
8522 irix5* | nonstopux*)
8523 libsuff= shlibsuff=
8524 ;;
8525 *)
8526 case $LD in # libtool.m4 will add one of these switches to LD
8527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8528 libsuff= shlibsuff= libmagic=32-bit;;
8529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8530 libsuff=32 shlibsuff=N32 libmagic=N32;;
8531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8533 *) libsuff= shlibsuff= libmagic=never-match;;
8534 esac
8535 ;;
8536 esac
8537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8538 shlibpath_overrides_runpath=no
8539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8541 hardcode_into_libs=yes
8542 ;;
8543
8544 # No shared lib support for Linux oldld, aout, or coff.
8545 linux*oldld* | linux*aout* | linux*coff*)
8546 dynamic_linker=no
8547 ;;
8548
8549 # This must be Linux ELF.
8550 linux* | k*bsd*-gnu)
8551 version_type=linux
8552 need_lib_prefix=no
8553 need_version=no
8554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8555 soname_spec='${libname}${release}${shared_ext}$major'
8556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8557 shlibpath_var=LD_LIBRARY_PATH
8558 shlibpath_overrides_runpath=no
8559 # This implies no fast_install, which is unacceptable.
8560 # Some rework will be needed to allow for fast_install
8561 # before this can be enabled.
8562 hardcode_into_libs=yes
8563
8564 # Append ld.so.conf contents to the search path
8565 if test -f /etc/ld.so.conf; then
8566 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8568 fi
8569
8570 # We used to test for /lib/ld.so.1 and disable shared libraries on
8571 # powerpc, because MkLinux only supported shared libraries with the
8572 # GNU dynamic linker. Since this was broken with cross compilers,
8573 # most powerpc-linux boxes support dynamic linking these days and
8574 # people can always --disable-shared, the test was removed, and we
8575 # assume the GNU/Linux dynamic linker is in use.
8576 dynamic_linker='GNU/Linux ld.so'
8577 ;;
8578
8579 netbsd*)
8580 version_type=sunos
8581 need_lib_prefix=no
8582 need_version=no
8583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8586 dynamic_linker='NetBSD (a.out) ld.so'
8587 else
8588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8589 soname_spec='${libname}${release}${shared_ext}$major'
8590 dynamic_linker='NetBSD ld.elf_so'
8591 fi
8592 shlibpath_var=LD_LIBRARY_PATH
8593 shlibpath_overrides_runpath=yes
8594 hardcode_into_libs=yes
8595 ;;
8596
8597 newsos6)
8598 version_type=linux
8599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8600 shlibpath_var=LD_LIBRARY_PATH
8601 shlibpath_overrides_runpath=yes
8602 ;;
8603
8604 nto-qnx*)
8605 version_type=linux
8606 need_lib_prefix=no
8607 need_version=no
8608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8609 soname_spec='${libname}${release}${shared_ext}$major'
8610 shlibpath_var=LD_LIBRARY_PATH
8611 shlibpath_overrides_runpath=yes
8612 ;;
8613
8614 openbsd*)
8615 version_type=sunos
8616 sys_lib_dlsearch_path_spec="/usr/lib"
8617 need_lib_prefix=no
8618 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8619 case $host_os in
8620 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8621 *) need_version=no ;;
8622 esac
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8627 case $host_os in
8628 openbsd2.[89] | openbsd2.[89].*)
8629 shlibpath_overrides_runpath=no
8630 ;;
8631 *)
8632 shlibpath_overrides_runpath=yes
8633 ;;
8634 esac
8635 else
8636 shlibpath_overrides_runpath=yes
8637 fi
8638 ;;
8639
8640 os2*)
8641 libname_spec='$name'
8642 shrext_cmds=".dll"
8643 need_lib_prefix=no
8644 library_names_spec='$libname${shared_ext} $libname.a'
8645 dynamic_linker='OS/2 ld.exe'
8646 shlibpath_var=LIBPATH
8647 ;;
8648
8649 osf3* | osf4* | osf5*)
8650 version_type=osf
8651 need_lib_prefix=no
8652 need_version=no
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8655 shlibpath_var=LD_LIBRARY_PATH
8656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8658 ;;
8659
8660 rdos*)
8661 dynamic_linker=no
8662 ;;
8663
8664 solaris*)
8665 version_type=linux
8666 need_lib_prefix=no
8667 need_version=no
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8669 soname_spec='${libname}${release}${shared_ext}$major'
8670 shlibpath_var=LD_LIBRARY_PATH
8671 shlibpath_overrides_runpath=yes
8672 hardcode_into_libs=yes
8673 # ldd complains unless libraries are executable
8674 postinstall_cmds='chmod +x $lib'
8675 ;;
8676
8677 sunos4*)
8678 version_type=sunos
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8681 shlibpath_var=LD_LIBRARY_PATH
8682 shlibpath_overrides_runpath=yes
8683 if test "$with_gnu_ld" = yes; then
8684 need_lib_prefix=no
8685 fi
8686 need_version=yes
8687 ;;
8688
8689 sysv4 | sysv4.3*)
8690 version_type=linux
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692 soname_spec='${libname}${release}${shared_ext}$major'
8693 shlibpath_var=LD_LIBRARY_PATH
8694 case $host_vendor in
8695 sni)
8696 shlibpath_overrides_runpath=no
8697 need_lib_prefix=no
8698 export_dynamic_flag_spec='${wl}-Blargedynsym'
8699 runpath_var=LD_RUN_PATH
8700 ;;
8701 siemens)
8702 need_lib_prefix=no
8703 ;;
8704 motorola)
8705 need_lib_prefix=no
8706 need_version=no
8707 shlibpath_overrides_runpath=no
8708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8709 ;;
8710 esac
8711 ;;
8712
8713 sysv4*MP*)
8714 if test -d /usr/nec ;then
8715 version_type=linux
8716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8717 soname_spec='$libname${shared_ext}.$major'
8718 shlibpath_var=LD_LIBRARY_PATH
8719 fi
8720 ;;
8721
8722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8723 version_type=freebsd-elf
8724 need_lib_prefix=no
8725 need_version=no
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8727 soname_spec='${libname}${release}${shared_ext}$major'
8728 shlibpath_var=LD_LIBRARY_PATH
8729 hardcode_into_libs=yes
8730 if test "$with_gnu_ld" = yes; then
8731 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8732 shlibpath_overrides_runpath=no
8733 else
8734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8735 shlibpath_overrides_runpath=yes
8736 case $host_os in
8737 sco3.2v5*)
8738 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8739 ;;
8740 esac
8741 fi
8742 sys_lib_dlsearch_path_spec='/usr/lib'
8743 ;;
8744
8745 uts4*)
8746 version_type=linux
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8748 soname_spec='${libname}${release}${shared_ext}$major'
8749 shlibpath_var=LD_LIBRARY_PATH
8750 ;;
8751
8752 *)
8753 dynamic_linker=no
8754 ;;
8755 esac
8756 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8757 echo "${ECHO_T}$dynamic_linker" >&6
8758 test "$dynamic_linker" = no && can_build_shared=no
8759
8760 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
8764 fi
8765
8766 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8767 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
8771 fi
8772
8773 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8774
8775 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8776 if test "$GCC" = yes; then
8777 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8778 fi
8779
8780 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8781 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8782 hardcode_action=
8783 if test -n "$hardcode_libdir_flag_spec" || \
8784 test -n "$runpath_var" || \
8785 test "X$hardcode_automatic" = "Xyes" ; then
8786
8787 # We can hardcode non-existant directories.
8788 if test "$hardcode_direct" != no &&
8789 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8790 # have to relink, otherwise we might link with an installed library
8791 # when we should be linking with a yet-to-be-installed one
8792 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8793 test "$hardcode_minus_L" != no; then
8794 # Linking always hardcodes the temporary library directory.
8795 hardcode_action=relink
8796 else
8797 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8798 hardcode_action=immediate
8799 fi
8800 else
8801 # We cannot hardcode anything, or else we can only hardcode existing
8802 # directories.
8803 hardcode_action=unsupported
8804 fi
8805 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8806 echo "${ECHO_T}$hardcode_action" >&6
8807
8808 if test "$hardcode_action" = relink; then
8809 # Fast installation is not supported
8810 enable_fast_install=no
8811 elif test "$shlibpath_overrides_runpath" = yes ||
8812 test "$enable_shared" = no; then
8813 # Fast installation is not necessary
8814 enable_fast_install=needless
8815 fi
8816
8817 striplib=
8818 old_striplib=
8819 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8820 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8821 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8822 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8823 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8824 echo "$as_me:$LINENO: result: yes" >&5
8825 echo "${ECHO_T}yes" >&6
8826 else
8827 # FIXME - insert some real tests, host_os isn't really good enough
8828 case $host_os in
8829 darwin*)
8830 if test -n "$STRIP" ; then
8831 striplib="$STRIP -x"
8832 old_striplib="$STRIP -S"
8833 echo "$as_me:$LINENO: result: yes" >&5
8834 echo "${ECHO_T}yes" >&6
8835 else
8836 echo "$as_me:$LINENO: result: no" >&5
8837 echo "${ECHO_T}no" >&6
8838 fi
8839 ;;
8840 *)
8841 echo "$as_me:$LINENO: result: no" >&5
8842 echo "${ECHO_T}no" >&6
8843 ;;
8844 esac
8845 fi
8846
8847 if test "x$enable_dlopen" != xyes; then
8848 enable_dlopen=unknown
8849 enable_dlopen_self=unknown
8850 enable_dlopen_self_static=unknown
8851 else
8852 lt_cv_dlopen=no
8853 lt_cv_dlopen_libs=
8854
8855 case $host_os in
8856 beos*)
8857 lt_cv_dlopen="load_add_on"
8858 lt_cv_dlopen_libs=
8859 lt_cv_dlopen_self=yes
8860 ;;
8861
8862 mingw* | pw32*)
8863 lt_cv_dlopen="LoadLibrary"
8864 lt_cv_dlopen_libs=
8865 ;;
8866
8867 cygwin*)
8868 lt_cv_dlopen="dlopen"
8869 lt_cv_dlopen_libs=
8870 ;;
8871
8872 darwin*)
8873 # if libdl is installed we need to link against it
8874 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8878 else
8879 ac_check_lib_save_LIBS=$LIBS
8880 LIBS="-ldl $LIBS"
8881 cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h. */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8887
8888 /* Override any gcc2 internal prototype to avoid an error. */
8889 #ifdef __cplusplus
8890 extern "C"
8891 #endif
8892 /* We use char because int might match the return type of a gcc2
8893 builtin and then its argument prototype would still apply. */
8894 char dlopen ();
8895 int
8896 main ()
8897 {
8898 dlopen ();
8899 ;
8900 return 0;
8901 }
8902 _ACEOF
8903 rm -f conftest.$ac_objext conftest$ac_exeext
8904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905 (eval $ac_link) 2>conftest.er1
8906 ac_status=$?
8907 grep -v '^ *+' conftest.er1 >conftest.err
8908 rm -f conftest.er1
8909 cat conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -z "$ac_c_werror_flag"
8913 || test ! -s conftest.err'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 (eval $ac_try) 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest$ac_exeext'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 ac_cv_lib_dl_dlopen=yes
8926 else
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8929
8930 ac_cv_lib_dl_dlopen=no
8931 fi
8932 rm -f conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext conftest.$ac_ext
8934 LIBS=$ac_check_lib_save_LIBS
8935 fi
8936 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8937 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8938 if test $ac_cv_lib_dl_dlopen = yes; then
8939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8940 else
8941
8942 lt_cv_dlopen="dyld"
8943 lt_cv_dlopen_libs=
8944 lt_cv_dlopen_self=yes
8945
8946 fi
8947
8948 ;;
8949
8950 *)
8951 echo "$as_me:$LINENO: checking for shl_load" >&5
8952 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8953 if test "${ac_cv_func_shl_load+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h. */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8964 #define shl_load innocuous_shl_load
8965
8966 /* System header to define __stub macros and hopefully few prototypes,
8967 which can conflict with char shl_load (); below.
8968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8969 <limits.h> exists even on freestanding compilers. */
8970
8971 #ifdef __STDC__
8972 # include <limits.h>
8973 #else
8974 # include <assert.h>
8975 #endif
8976
8977 #undef shl_load
8978
8979 /* Override any gcc2 internal prototype to avoid an error. */
8980 #ifdef __cplusplus
8981 extern "C"
8982 {
8983 #endif
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8986 char shl_load ();
8987 /* The GNU C library defines this for functions which it implements
8988 to always fail with ENOSYS. Some functions are actually named
8989 something starting with __ and the normal name is an alias. */
8990 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8991 choke me
8992 #else
8993 char (*f) () = shl_load;
8994 #endif
8995 #ifdef __cplusplus
8996 }
8997 #endif
8998
8999 int
9000 main ()
9001 {
9002 return f != shl_load;
9003 ;
9004 return 0;
9005 }
9006 _ACEOF
9007 rm -f conftest.$ac_objext conftest$ac_exeext
9008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9009 (eval $ac_link) 2>conftest.er1
9010 ac_status=$?
9011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } &&
9016 { ac_try='test -z "$ac_c_werror_flag"
9017 || test ! -s conftest.err'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 (eval $ac_try) 2>&5
9020 ac_status=$?
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; } &&
9023 { ac_try='test -s conftest$ac_exeext'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; }; then
9029 ac_cv_func_shl_load=yes
9030 else
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034 ac_cv_func_shl_load=no
9035 fi
9036 rm -f conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9038 fi
9039 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9040 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9041 if test $ac_cv_func_shl_load = yes; then
9042 lt_cv_dlopen="shl_load"
9043 else
9044 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9045 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9046 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049 ac_check_lib_save_LIBS=$LIBS
9050 LIBS="-ldld $LIBS"
9051 cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h. */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057
9058 /* Override any gcc2 internal prototype to avoid an error. */
9059 #ifdef __cplusplus
9060 extern "C"
9061 #endif
9062 /* We use char because int might match the return type of a gcc2
9063 builtin and then its argument prototype would still apply. */
9064 char shl_load ();
9065 int
9066 main ()
9067 {
9068 shl_load ();
9069 ;
9070 return 0;
9071 }
9072 _ACEOF
9073 rm -f conftest.$ac_objext conftest$ac_exeext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075 (eval $ac_link) 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try='test -z "$ac_c_werror_flag"
9083 || test ! -s conftest.err'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 (eval $ac_try) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest$ac_exeext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 ac_cv_lib_dld_shl_load=yes
9096 else
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9099
9100 ac_cv_lib_dld_shl_load=no
9101 fi
9102 rm -f conftest.err conftest.$ac_objext \
9103 conftest$ac_exeext conftest.$ac_ext
9104 LIBS=$ac_check_lib_save_LIBS
9105 fi
9106 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9107 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9108 if test $ac_cv_lib_dld_shl_load = yes; then
9109 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9110 else
9111 echo "$as_me:$LINENO: checking for dlopen" >&5
9112 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9113 if test "${ac_cv_func_dlopen+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h. */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9122 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9124 #define dlopen innocuous_dlopen
9125
9126 /* System header to define __stub macros and hopefully few prototypes,
9127 which can conflict with char dlopen (); below.
9128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9129 <limits.h> exists even on freestanding compilers. */
9130
9131 #ifdef __STDC__
9132 # include <limits.h>
9133 #else
9134 # include <assert.h>
9135 #endif
9136
9137 #undef dlopen
9138
9139 /* Override any gcc2 internal prototype to avoid an error. */
9140 #ifdef __cplusplus
9141 extern "C"
9142 {
9143 #endif
9144 /* We use char because int might match the return type of a gcc2
9145 builtin and then its argument prototype would still apply. */
9146 char dlopen ();
9147 /* The GNU C library defines this for functions which it implements
9148 to always fail with ENOSYS. Some functions are actually named
9149 something starting with __ and the normal name is an alias. */
9150 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9151 choke me
9152 #else
9153 char (*f) () = dlopen;
9154 #endif
9155 #ifdef __cplusplus
9156 }
9157 #endif
9158
9159 int
9160 main ()
9161 {
9162 return f != dlopen;
9163 ;
9164 return 0;
9165 }
9166 _ACEOF
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9169 (eval $ac_link) 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try='test -z "$ac_c_werror_flag"
9177 || test ! -s conftest.err'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 (eval $ac_try) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; } &&
9183 { ac_try='test -s conftest$ac_exeext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 (eval $ac_try) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 ac_cv_func_dlopen=yes
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ac_cv_func_dlopen=no
9195 fi
9196 rm -f conftest.err conftest.$ac_objext \
9197 conftest$ac_exeext conftest.$ac_ext
9198 fi
9199 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9200 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9201 if test $ac_cv_func_dlopen = yes; then
9202 lt_cv_dlopen="dlopen"
9203 else
9204 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209 ac_check_lib_save_LIBS=$LIBS
9210 LIBS="-ldl $LIBS"
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217
9218 /* Override any gcc2 internal prototype to avoid an error. */
9219 #ifdef __cplusplus
9220 extern "C"
9221 #endif
9222 /* We use char because int might match the return type of a gcc2
9223 builtin and then its argument prototype would still apply. */
9224 char dlopen ();
9225 int
9226 main ()
9227 {
9228 dlopen ();
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235 (eval $ac_link) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest$ac_exeext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ac_cv_lib_dl_dlopen=yes
9256 else
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260 ac_cv_lib_dl_dlopen=no
9261 fi
9262 rm -f conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264 LIBS=$ac_check_lib_save_LIBS
9265 fi
9266 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9267 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9268 if test $ac_cv_lib_dl_dlopen = yes; then
9269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9270 else
9271 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9272 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9273 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-lsvld $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284
9285 /* Override any gcc2 internal prototype to avoid an error. */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 /* We use char because int might match the return type of a gcc2
9290 builtin and then its argument prototype would still apply. */
9291 char dlopen ();
9292 int
9293 main ()
9294 {
9295 dlopen ();
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag"
9310 || test ! -s conftest.err'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; } &&
9316 { ac_try='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_lib_svld_dlopen=yes
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 ac_cv_lib_svld_dlopen=no
9328 fi
9329 rm -f conftest.err conftest.$ac_objext \
9330 conftest$ac_exeext conftest.$ac_ext
9331 LIBS=$ac_check_lib_save_LIBS
9332 fi
9333 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9334 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9335 if test $ac_cv_lib_svld_dlopen = yes; then
9336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9337 else
9338 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9339 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9340 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343 ac_check_lib_save_LIBS=$LIBS
9344 LIBS="-ldld $LIBS"
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h. */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351
9352 /* Override any gcc2 internal prototype to avoid an error. */
9353 #ifdef __cplusplus
9354 extern "C"
9355 #endif
9356 /* We use char because int might match the return type of a gcc2
9357 builtin and then its argument prototype would still apply. */
9358 char dld_link ();
9359 int
9360 main ()
9361 {
9362 dld_link ();
9363 ;
9364 return 0;
9365 }
9366 _ACEOF
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>conftest.er1
9370 ac_status=$?
9371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag"
9377 || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_cv_lib_dld_dld_link=yes
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9393
9394 ac_cv_lib_dld_dld_link=no
9395 fi
9396 rm -f conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 LIBS=$ac_check_lib_save_LIBS
9399 fi
9400 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9401 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9402 if test $ac_cv_lib_dld_dld_link = yes; then
9403 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9404 fi
9405
9406
9407 fi
9408
9409
9410 fi
9411
9412
9413 fi
9414
9415
9416 fi
9417
9418
9419 fi
9420
9421 ;;
9422 esac
9423
9424 if test "x$lt_cv_dlopen" != xno; then
9425 enable_dlopen=yes
9426 else
9427 enable_dlopen=no
9428 fi
9429
9430 case $lt_cv_dlopen in
9431 dlopen)
9432 save_CPPFLAGS="$CPPFLAGS"
9433 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9434
9435 save_LDFLAGS="$LDFLAGS"
9436 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9437
9438 save_LIBS="$LIBS"
9439 LIBS="$lt_cv_dlopen_libs $LIBS"
9440
9441 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9442 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9443 if test "${lt_cv_dlopen_self+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446 if test "$cross_compiling" = yes; then :
9447 lt_cv_dlopen_self=cross
9448 else
9449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9450 lt_status=$lt_dlunknown
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9452 "configure"
9453 #include "confdefs.h"
9454
9455 #if HAVE_DLFCN_H
9456 #include <dlfcn.h>
9457 #endif
9458
9459 #include <stdio.h>
9460
9461 #ifdef RTLD_GLOBAL
9462 # define LT_DLGLOBAL RTLD_GLOBAL
9463 #else
9464 # ifdef DL_GLOBAL
9465 # define LT_DLGLOBAL DL_GLOBAL
9466 # else
9467 # define LT_DLGLOBAL 0
9468 # endif
9469 #endif
9470
9471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9472 find out it does not work in some platform. */
9473 #ifndef LT_DLLAZY_OR_NOW
9474 # ifdef RTLD_LAZY
9475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9476 # else
9477 # ifdef DL_LAZY
9478 # define LT_DLLAZY_OR_NOW DL_LAZY
9479 # else
9480 # ifdef RTLD_NOW
9481 # define LT_DLLAZY_OR_NOW RTLD_NOW
9482 # else
9483 # ifdef DL_NOW
9484 # define LT_DLLAZY_OR_NOW DL_NOW
9485 # else
9486 # define LT_DLLAZY_OR_NOW 0
9487 # endif
9488 # endif
9489 # endif
9490 # endif
9491 #endif
9492
9493 #ifdef __cplusplus
9494 extern "C" void exit (int);
9495 #endif
9496
9497 void fnord() { int i=42;}
9498 int main ()
9499 {
9500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9501 int status = $lt_dlunknown;
9502
9503 if (self)
9504 {
9505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9506 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9507 /* dlclose (self); */
9508 }
9509 else
9510 puts (dlerror ());
9511
9512 exit (status);
9513 }
9514 EOF
9515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9516 (eval $ac_link) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9520 (./conftest; exit; ) >&5 2>/dev/null
9521 lt_status=$?
9522 case x$lt_status in
9523 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9524 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9525 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9526 esac
9527 else :
9528 # compilation failed
9529 lt_cv_dlopen_self=no
9530 fi
9531 fi
9532 rm -fr conftest*
9533
9534
9535 fi
9536 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9537 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9538
9539 if test "x$lt_cv_dlopen_self" = xyes; then
9540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9541 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9542 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9543 if test "${lt_cv_dlopen_self_static+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 if test "$cross_compiling" = yes; then :
9547 lt_cv_dlopen_self_static=cross
9548 else
9549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9550 lt_status=$lt_dlunknown
9551 cat > conftest.$ac_ext <<EOF
9552 #line 9552 "configure"
9553 #include "confdefs.h"
9554
9555 #if HAVE_DLFCN_H
9556 #include <dlfcn.h>
9557 #endif
9558
9559 #include <stdio.h>
9560
9561 #ifdef RTLD_GLOBAL
9562 # define LT_DLGLOBAL RTLD_GLOBAL
9563 #else
9564 # ifdef DL_GLOBAL
9565 # define LT_DLGLOBAL DL_GLOBAL
9566 # else
9567 # define LT_DLGLOBAL 0
9568 # endif
9569 #endif
9570
9571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9572 find out it does not work in some platform. */
9573 #ifndef LT_DLLAZY_OR_NOW
9574 # ifdef RTLD_LAZY
9575 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9576 # else
9577 # ifdef DL_LAZY
9578 # define LT_DLLAZY_OR_NOW DL_LAZY
9579 # else
9580 # ifdef RTLD_NOW
9581 # define LT_DLLAZY_OR_NOW RTLD_NOW
9582 # else
9583 # ifdef DL_NOW
9584 # define LT_DLLAZY_OR_NOW DL_NOW
9585 # else
9586 # define LT_DLLAZY_OR_NOW 0
9587 # endif
9588 # endif
9589 # endif
9590 # endif
9591 #endif
9592
9593 #ifdef __cplusplus
9594 extern "C" void exit (int);
9595 #endif
9596
9597 void fnord() { int i=42;}
9598 int main ()
9599 {
9600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9601 int status = $lt_dlunknown;
9602
9603 if (self)
9604 {
9605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9607 /* dlclose (self); */
9608 }
9609 else
9610 puts (dlerror ());
9611
9612 exit (status);
9613 }
9614 EOF
9615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9616 (eval $ac_link) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9620 (./conftest; exit; ) >&5 2>/dev/null
9621 lt_status=$?
9622 case x$lt_status in
9623 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9624 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9625 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9626 esac
9627 else :
9628 # compilation failed
9629 lt_cv_dlopen_self_static=no
9630 fi
9631 fi
9632 rm -fr conftest*
9633
9634
9635 fi
9636 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9637 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9638 fi
9639
9640 CPPFLAGS="$save_CPPFLAGS"
9641 LDFLAGS="$save_LDFLAGS"
9642 LIBS="$save_LIBS"
9643 ;;
9644 esac
9645
9646 case $lt_cv_dlopen_self in
9647 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9648 *) enable_dlopen_self=unknown ;;
9649 esac
9650
9651 case $lt_cv_dlopen_self_static in
9652 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9653 *) enable_dlopen_self_static=unknown ;;
9654 esac
9655 fi
9656
9657
9658 # Report which library types will actually be built
9659 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9660 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9661 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9662 echo "${ECHO_T}$can_build_shared" >&6
9663
9664 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9665 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9666 test "$can_build_shared" = "no" && enable_shared=no
9667
9668 # On AIX, shared libraries and static libraries use the same namespace, and
9669 # are all built from PIC.
9670 case $host_os in
9671 aix3*)
9672 test "$enable_shared" = yes && enable_static=no
9673 if test -n "$RANLIB"; then
9674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9675 postinstall_cmds='$RANLIB $lib'
9676 fi
9677 ;;
9678
9679 aix[4-9]*)
9680 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9681 test "$enable_shared" = yes && enable_static=no
9682 fi
9683 ;;
9684 esac
9685 echo "$as_me:$LINENO: result: $enable_shared" >&5
9686 echo "${ECHO_T}$enable_shared" >&6
9687
9688 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9689 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9690 # Make sure either enable_shared or enable_static is yes.
9691 test "$enable_shared" = yes || enable_static=yes
9692 echo "$as_me:$LINENO: result: $enable_static" >&5
9693 echo "${ECHO_T}$enable_static" >&6
9694
9695 # The else clause should only fire when bootstrapping the
9696 # libtool distribution, otherwise you forgot to ship ltmain.sh
9697 # with your package, and you will get complaints that there are
9698 # no rules to generate ltmain.sh.
9699 if test -f "$ltmain"; then
9700 # See if we are running on zsh, and set the options which allow our commands through
9701 # without removal of \ escapes.
9702 if test -n "${ZSH_VERSION+set}" ; then
9703 setopt NO_GLOB_SUBST
9704 fi
9705 # Now quote all the things that may contain metacharacters while being
9706 # careful not to overquote the AC_SUBSTed values. We take copies of the
9707 # variables and quote the copies for generation of the libtool script.
9708 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9709 SED SHELL STRIP \
9710 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9711 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9712 deplibs_check_method reload_flag reload_cmds need_locks \
9713 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9714 lt_cv_sys_global_symbol_to_c_name_address \
9715 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9716 old_postinstall_cmds old_postuninstall_cmds \
9717 compiler \
9718 CC \
9719 LD \
9720 lt_prog_compiler_wl \
9721 lt_prog_compiler_pic \
9722 lt_prog_compiler_static \
9723 lt_prog_compiler_no_builtin_flag \
9724 export_dynamic_flag_spec \
9725 thread_safe_flag_spec \
9726 whole_archive_flag_spec \
9727 enable_shared_with_static_runtimes \
9728 old_archive_cmds \
9729 old_archive_from_new_cmds \
9730 predep_objects \
9731 postdep_objects \
9732 predeps \
9733 postdeps \
9734 compiler_lib_search_path \
9735 compiler_lib_search_dirs \
9736 archive_cmds \
9737 archive_expsym_cmds \
9738 postinstall_cmds \
9739 postuninstall_cmds \
9740 old_archive_from_expsyms_cmds \
9741 allow_undefined_flag \
9742 no_undefined_flag \
9743 export_symbols_cmds \
9744 hardcode_libdir_flag_spec \
9745 hardcode_libdir_flag_spec_ld \
9746 hardcode_libdir_separator \
9747 hardcode_automatic \
9748 module_cmds \
9749 module_expsym_cmds \
9750 lt_cv_prog_compiler_c_o \
9751 fix_srcfile_path \
9752 exclude_expsyms \
9753 include_expsyms; do
9754
9755 case $var in
9756 old_archive_cmds | \
9757 old_archive_from_new_cmds | \
9758 archive_cmds | \
9759 archive_expsym_cmds | \
9760 module_cmds | \
9761 module_expsym_cmds | \
9762 old_archive_from_expsyms_cmds | \
9763 export_symbols_cmds | \
9764 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9765 postinstall_cmds | postuninstall_cmds | \
9766 old_postinstall_cmds | old_postuninstall_cmds | \
9767 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9768 # Double-quote double-evaled strings.
9769 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9770 ;;
9771 *)
9772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9773 ;;
9774 esac
9775 done
9776
9777 case $lt_echo in
9778 *'\$0 --fallback-echo"')
9779 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9780 ;;
9781 esac
9782
9783 cfgfile="${ofile}T"
9784 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9785 $rm -f "$cfgfile"
9786 { echo "$as_me:$LINENO: creating $ofile" >&5
9787 echo "$as_me: creating $ofile" >&6;}
9788
9789 cat <<__EOF__ >> "$cfgfile"
9790 #! $SHELL
9791
9792 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9793 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9794 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9795 #
9796 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9797 # Free Software Foundation, Inc.
9798 #
9799 # This file is part of GNU Libtool:
9800 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
9801 #
9802 # This program is free software; you can redistribute it and/or modify
9803 # it under the terms of the GNU General Public License as published by
9804 # the Free Software Foundation; either version 2 of the License, or
9805 # (at your option) any later version.
9806 #
9807 # This program is distributed in the hope that it will be useful, but
9808 # WITHOUT ANY WARRANTY; without even the implied warranty of
9809 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9810 # General Public License for more details.
9811 #
9812 # You should have received a copy of the GNU General Public License
9813 # along with this program; if not, write to the Free Software
9814 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9815 #
9816 # As a special exception to the GNU General Public License, if you
9817 # distribute this file as part of a program that contains a
9818 # configuration script generated by Autoconf, you may include it under
9819 # the same distribution terms that you use for the rest of that program.
9820
9821 # A sed program that does not truncate output.
9822 SED=$lt_SED
9823
9824 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9825 Xsed="$SED -e 1s/^X//"
9826
9827 # The HP-UX ksh and POSIX shell print the target directory to stdout
9828 # if CDPATH is set.
9829 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9830
9831 # The names of the tagged configurations supported by this script.
9832 available_tags=
9833
9834 # ### BEGIN LIBTOOL CONFIG
9835
9836 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9837
9838 # Shell to use when invoking shell scripts.
9839 SHELL=$lt_SHELL
9840
9841 # Whether or not to build shared libraries.
9842 build_libtool_libs=$enable_shared
9843
9844 # Whether or not to build static libraries.
9845 build_old_libs=$enable_static
9846
9847 # Whether or not to add -lc for building shared libraries.
9848 build_libtool_need_lc=$archive_cmds_need_lc
9849
9850 # Whether or not to disallow shared libs when runtime libs are static
9851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9852
9853 # Whether or not to optimize for fast installation.
9854 fast_install=$enable_fast_install
9855
9856 # The host system.
9857 host_alias=$host_alias
9858 host=$host
9859 host_os=$host_os
9860
9861 # The build system.
9862 build_alias=$build_alias
9863 build=$build
9864 build_os=$build_os
9865
9866 # An echo program that does not interpret backslashes.
9867 echo=$lt_echo
9868
9869 # The archiver.
9870 AR=$lt_AR
9871 AR_FLAGS=$lt_AR_FLAGS
9872
9873 # A C compiler.
9874 LTCC=$lt_LTCC
9875
9876 # LTCC compiler flags.
9877 LTCFLAGS=$lt_LTCFLAGS
9878
9879 # A language-specific compiler.
9880 CC=$lt_compiler
9881
9882 # Is the compiler the GNU C compiler?
9883 with_gcc=$GCC
9884
9885 # An ERE matcher.
9886 EGREP=$lt_EGREP
9887
9888 # The linker used to build libraries.
9889 LD=$lt_LD
9890
9891 # Whether we need hard or soft links.
9892 LN_S=$lt_LN_S
9893
9894 # A BSD-compatible nm program.
9895 NM=$lt_NM
9896
9897 # A symbol stripping program
9898 STRIP=$lt_STRIP
9899
9900 # Used to examine libraries when file_magic_cmd begins "file"
9901 MAGIC_CMD=$MAGIC_CMD
9902
9903 # Used on cygwin: DLL creation program.
9904 DLLTOOL="$DLLTOOL"
9905
9906 # Used on cygwin: object dumper.
9907 OBJDUMP="$OBJDUMP"
9908
9909 # Used on cygwin: assembler.
9910 AS="$AS"
9911
9912 # The name of the directory that contains temporary libtool files.
9913 objdir=$objdir
9914
9915 # How to create reloadable object files.
9916 reload_flag=$lt_reload_flag
9917 reload_cmds=$lt_reload_cmds
9918
9919 # How to pass a linker flag through the compiler.
9920 wl=$lt_lt_prog_compiler_wl
9921
9922 # Object file suffix (normally "o").
9923 objext="$ac_objext"
9924
9925 # Old archive suffix (normally "a").
9926 libext="$libext"
9927
9928 # Shared library suffix (normally ".so").
9929 shrext_cmds='$shrext_cmds'
9930
9931 # Executable file suffix (normally "").
9932 exeext="$exeext"
9933
9934 # Additional compiler flags for building library objects.
9935 pic_flag=$lt_lt_prog_compiler_pic
9936 pic_mode=$pic_mode
9937
9938 # What is the maximum length of a command?
9939 max_cmd_len=$lt_cv_sys_max_cmd_len
9940
9941 # Does compiler simultaneously support -c and -o options?
9942 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9943
9944 # Must we lock files when doing compilation?
9945 need_locks=$lt_need_locks
9946
9947 # Do we need the lib prefix for modules?
9948 need_lib_prefix=$need_lib_prefix
9949
9950 # Do we need a version for libraries?
9951 need_version=$need_version
9952
9953 # Whether dlopen is supported.
9954 dlopen_support=$enable_dlopen
9955
9956 # Whether dlopen of programs is supported.
9957 dlopen_self=$enable_dlopen_self
9958
9959 # Whether dlopen of statically linked programs is supported.
9960 dlopen_self_static=$enable_dlopen_self_static
9961
9962 # Compiler flag to prevent dynamic linking.
9963 link_static_flag=$lt_lt_prog_compiler_static
9964
9965 # Compiler flag to turn off builtin functions.
9966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9967
9968 # Compiler flag to allow reflexive dlopens.
9969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9970
9971 # Compiler flag to generate shared objects directly from archives.
9972 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9973
9974 # Compiler flag to generate thread-safe objects.
9975 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9976
9977 # Library versioning type.
9978 version_type=$version_type
9979
9980 # Format of library name prefix.
9981 libname_spec=$lt_libname_spec
9982
9983 # List of archive names. First name is the real one, the rest are links.
9984 # The last name is the one that the linker finds with -lNAME.
9985 library_names_spec=$lt_library_names_spec
9986
9987 # The coded name of the library, if different from the real name.
9988 soname_spec=$lt_soname_spec
9989
9990 # Commands used to build and install an old-style archive.
9991 RANLIB=$lt_RANLIB
9992 old_archive_cmds=$lt_old_archive_cmds
9993 old_postinstall_cmds=$lt_old_postinstall_cmds
9994 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9995
9996 # Create an old-style archive from a shared archive.
9997 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9998
9999 # Create a temporary old-style archive to link instead of a shared archive.
10000 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10001
10002 # Commands used to build and install a shared archive.
10003 archive_cmds=$lt_archive_cmds
10004 archive_expsym_cmds=$lt_archive_expsym_cmds
10005 postinstall_cmds=$lt_postinstall_cmds
10006 postuninstall_cmds=$lt_postuninstall_cmds
10007
10008 # Commands used to build a loadable module (assumed same as above if empty)
10009 module_cmds=$lt_module_cmds
10010 module_expsym_cmds=$lt_module_expsym_cmds
10011
10012 # Commands to strip libraries.
10013 old_striplib=$lt_old_striplib
10014 striplib=$lt_striplib
10015
10016 # Dependencies to place before the objects being linked to create a
10017 # shared library.
10018 predep_objects=$lt_predep_objects
10019
10020 # Dependencies to place after the objects being linked to create a
10021 # shared library.
10022 postdep_objects=$lt_postdep_objects
10023
10024 # Dependencies to place before the objects being linked to create a
10025 # shared library.
10026 predeps=$lt_predeps
10027
10028 # Dependencies to place after the objects being linked to create a
10029 # shared library.
10030 postdeps=$lt_postdeps
10031
10032 # The directories searched by this compiler when creating a shared
10033 # library
10034 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10035
10036 # The library search path used internally by the compiler when linking
10037 # a shared library.
10038 compiler_lib_search_path=$lt_compiler_lib_search_path
10039
10040 # Method to check whether dependent libraries are shared objects.
10041 deplibs_check_method=$lt_deplibs_check_method
10042
10043 # Command to use when deplibs_check_method == file_magic.
10044 file_magic_cmd=$lt_file_magic_cmd
10045
10046 # Flag that allows shared libraries with undefined symbols to be built.
10047 allow_undefined_flag=$lt_allow_undefined_flag
10048
10049 # Flag that forces no undefined symbols.
10050 no_undefined_flag=$lt_no_undefined_flag
10051
10052 # Commands used to finish a libtool library installation in a directory.
10053 finish_cmds=$lt_finish_cmds
10054
10055 # Same as above, but a single script fragment to be evaled but not shown.
10056 finish_eval=$lt_finish_eval
10057
10058 # Take the output of nm and produce a listing of raw symbols and C names.
10059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10060
10061 # Transform the output of nm in a proper C declaration
10062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10063
10064 # Transform the output of nm in a C name address pair
10065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10066
10067 # This is the shared library runtime path variable.
10068 runpath_var=$runpath_var
10069
10070 # This is the shared library path variable.
10071 shlibpath_var=$shlibpath_var
10072
10073 # Is shlibpath searched before the hard-coded library search path?
10074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10075
10076 # How to hardcode a shared library path into an executable.
10077 hardcode_action=$hardcode_action
10078
10079 # Whether we should hardcode library paths into libraries.
10080 hardcode_into_libs=$hardcode_into_libs
10081
10082 # Flag to hardcode \$libdir into a binary during linking.
10083 # This must work even if \$libdir does not exist.
10084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10085
10086 # If ld is used when linking, flag to hardcode \$libdir into
10087 # a binary during linking. This must work even if \$libdir does
10088 # not exist.
10089 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10090
10091 # Whether we need a single -rpath flag with a separated argument.
10092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10093
10094 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10095 # resulting binary.
10096 hardcode_direct=$hardcode_direct
10097
10098 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10099 # resulting binary.
10100 hardcode_minus_L=$hardcode_minus_L
10101
10102 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10103 # the resulting binary.
10104 hardcode_shlibpath_var=$hardcode_shlibpath_var
10105
10106 # Set to yes if building a shared library automatically hardcodes DIR into the library
10107 # and all subsequent libraries and executables linked against it.
10108 hardcode_automatic=$hardcode_automatic
10109
10110 # Variables whose values should be saved in libtool wrapper scripts and
10111 # restored at relink time.
10112 variables_saved_for_relink="$variables_saved_for_relink"
10113
10114 # Whether libtool must link a program against all its dependency libraries.
10115 link_all_deplibs=$link_all_deplibs
10116
10117 # Compile-time system search path for libraries
10118 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10119
10120 # Run-time system search path for libraries
10121 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10122
10123 # Fix the shell variable \$srcfile for the compiler.
10124 fix_srcfile_path=$lt_fix_srcfile_path
10125
10126 # Set to yes if exported symbols are required.
10127 always_export_symbols=$always_export_symbols
10128
10129 # The commands to list exported symbols.
10130 export_symbols_cmds=$lt_export_symbols_cmds
10131
10132 # The commands to extract the exported symbol list from a shared archive.
10133 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10134
10135 # Symbols that should not be listed in the preloaded symbols.
10136 exclude_expsyms=$lt_exclude_expsyms
10137
10138 # Symbols that must always be exported.
10139 include_expsyms=$lt_include_expsyms
10140
10141 # ### END LIBTOOL CONFIG
10142
10143 __EOF__
10144
10145
10146 case $host_os in
10147 aix3*)
10148 cat <<\EOF >> "$cfgfile"
10149
10150 # AIX sometimes has problems with the GCC collect2 program. For some
10151 # reason, if we set the COLLECT_NAMES environment variable, the problems
10152 # vanish in a puff of smoke.
10153 if test "X${COLLECT_NAMES+set}" != Xset; then
10154 COLLECT_NAMES=
10155 export COLLECT_NAMES
10156 fi
10157 EOF
10158 ;;
10159 esac
10160
10161 # We use sed instead of cat because bash on DJGPP gets confused if
10162 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10163 # text mode, it properly converts lines to CR/LF. This bash problem
10164 # is reportedly fixed, but why not run on old versions too?
10165 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10166
10167 mv -f "$cfgfile" "$ofile" || \
10168 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10169 chmod +x "$ofile"
10170
10171 else
10172 # If there is no Makefile yet, we rely on a make rule to execute
10173 # `config.status --recheck' to rerun these tests and create the
10174 # libtool script then.
10175 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10176 if test -f "$ltmain_in"; then
10177 test -f Makefile && make "$ltmain"
10178 fi
10179 fi
10180
10181
10182 ac_ext=c
10183 ac_cpp='$CPP $CPPFLAGS'
10184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10187
10188 CC="$lt_save_CC"
10189
10190
10191 # Check whether --with-tags or --without-tags was given.
10192 if test "${with_tags+set}" = set; then
10193 withval="$with_tags"
10194 tagnames="$withval"
10195 fi;
10196
10197 if test -f "$ltmain" && test -n "$tagnames"; then
10198 if test ! -f "${ofile}"; then
10199 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10200 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10201 fi
10202
10203 if test -z "$LTCC"; then
10204 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10205 if test -z "$LTCC"; then
10206 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10207 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10208 else
10209 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10210 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10211 fi
10212 fi
10213 if test -z "$LTCFLAGS"; then
10214 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10215 fi
10216
10217 # Extract list of available tagged configurations in $ofile.
10218 # Note that this assumes the entire list is on one line.
10219 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10220
10221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10222 for tagname in $tagnames; do
10223 IFS="$lt_save_ifs"
10224 # Check whether tagname contains only valid characters
10225 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10226 "") ;;
10227 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10228 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10229 { (exit 1); exit 1; }; }
10230 ;;
10231 esac
10232
10233 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10234 then
10235 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10236 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10237 { (exit 1); exit 1; }; }
10238 fi
10239
10240 # Update the list of available tags.
10241 if test -n "$tagname"; then
10242 echo appending configuration tag \"$tagname\" to $ofile
10243
10244 case $tagname in
10245 CXX)
10246 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10247 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10248 (test "X$CXX" != "Xg++"))) ; then
10249 ac_ext=cc
10250 ac_cpp='$CXXCPP $CPPFLAGS'
10251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10254
10255
10256
10257
10258 archive_cmds_need_lc_CXX=no
10259 allow_undefined_flag_CXX=
10260 always_export_symbols_CXX=no
10261 archive_expsym_cmds_CXX=
10262 export_dynamic_flag_spec_CXX=
10263 hardcode_direct_CXX=no
10264 hardcode_libdir_flag_spec_CXX=
10265 hardcode_libdir_flag_spec_ld_CXX=
10266 hardcode_libdir_separator_CXX=
10267 hardcode_minus_L_CXX=no
10268 hardcode_shlibpath_var_CXX=unsupported
10269 hardcode_automatic_CXX=no
10270 module_cmds_CXX=
10271 module_expsym_cmds_CXX=
10272 link_all_deplibs_CXX=unknown
10273 old_archive_cmds_CXX=$old_archive_cmds
10274 no_undefined_flag_CXX=
10275 whole_archive_flag_spec_CXX=
10276 enable_shared_with_static_runtimes_CXX=no
10277
10278 # Dependencies to place before and after the object being linked:
10279 predep_objects_CXX=
10280 postdep_objects_CXX=
10281 predeps_CXX=
10282 postdeps_CXX=
10283 compiler_lib_search_path_CXX=
10284 compiler_lib_search_dirs_CXX=
10285
10286 # Source file extension for C++ test sources.
10287 ac_ext=cpp
10288
10289 # Object file extension for compiled C++ test sources.
10290 objext=o
10291 objext_CXX=$objext
10292
10293 # Code to be used in simple compile tests
10294 lt_simple_compile_test_code="int some_variable = 0;"
10295
10296 # Code to be used in simple link tests
10297 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10298
10299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10300
10301 # If no C compiler was specified, use CC.
10302 LTCC=${LTCC-"$CC"}
10303
10304 # If no C compiler flags were specified, use CFLAGS.
10305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10306
10307 # Allow CC to be a program name with arguments.
10308 compiler=$CC
10309
10310
10311 # save warnings/boilerplate of simple test code
10312 ac_outfile=conftest.$ac_objext
10313 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10314 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10315 _lt_compiler_boilerplate=`cat conftest.err`
10316 $rm conftest*
10317
10318 ac_outfile=conftest.$ac_objext
10319 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10321 _lt_linker_boilerplate=`cat conftest.err`
10322 $rm -r conftest*
10323
10324
10325 # Allow CC to be a program name with arguments.
10326 lt_save_CC=$CC
10327 lt_save_LD=$LD
10328 lt_save_GCC=$GCC
10329 GCC=$GXX
10330 lt_save_with_gnu_ld=$with_gnu_ld
10331 lt_save_path_LD=$lt_cv_path_LD
10332 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10333 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10334 else
10335 $as_unset lt_cv_prog_gnu_ld
10336 fi
10337 if test -n "${lt_cv_path_LDCXX+set}"; then
10338 lt_cv_path_LD=$lt_cv_path_LDCXX
10339 else
10340 $as_unset lt_cv_path_LD
10341 fi
10342 test -z "${LDCXX+set}" || LD=$LDCXX
10343 CC=${CXX-"c++"}
10344 compiler=$CC
10345 compiler_CXX=$CC
10346 for cc_temp in $compiler""; do
10347 case $cc_temp in
10348 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10349 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10350 \-*) ;;
10351 *) break;;
10352 esac
10353 done
10354 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10355
10356
10357 # We don't want -fno-exception wen compiling C++ code, so set the
10358 # no_builtin_flag separately
10359 if test "$GXX" = yes; then
10360 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10361 else
10362 lt_prog_compiler_no_builtin_flag_CXX=
10363 fi
10364
10365 if test "$GXX" = yes; then
10366 # Set up default GNU C++ configuration
10367
10368
10369 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10370 if test "${with_gnu_ld+set}" = set; then
10371 withval="$with_gnu_ld"
10372 test "$withval" = no || with_gnu_ld=yes
10373 else
10374 with_gnu_ld=no
10375 fi;
10376 ac_prog=ld
10377 if test "$GCC" = yes; then
10378 # Check if gcc -print-prog-name=ld gives a path.
10379 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10380 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10381 case $host in
10382 *-*-mingw*)
10383 # gcc leaves a trailing carriage return which upsets mingw
10384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10385 *)
10386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10387 esac
10388 case $ac_prog in
10389 # Accept absolute paths.
10390 [\\/]* | ?:[\\/]*)
10391 re_direlt='/[^/][^/]*/\.\./'
10392 # Canonicalize the pathname of ld
10393 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10394 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10395 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10396 done
10397 test -z "$LD" && LD="$ac_prog"
10398 ;;
10399 "")
10400 # If it fails, then pretend we aren't using GCC.
10401 ac_prog=ld
10402 ;;
10403 *)
10404 # If it is relative, then search for the first ld in PATH.
10405 with_gnu_ld=unknown
10406 ;;
10407 esac
10408 elif test "$with_gnu_ld" = yes; then
10409 echo "$as_me:$LINENO: checking for GNU ld" >&5
10410 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10411 else
10412 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10413 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10414 fi
10415 if test "${lt_cv_path_LD+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 else
10418 if test -z "$LD"; then
10419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10420 for ac_dir in $PATH; do
10421 IFS="$lt_save_ifs"
10422 test -z "$ac_dir" && ac_dir=.
10423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10424 lt_cv_path_LD="$ac_dir/$ac_prog"
10425 # Check to see if the program is GNU ld. I'd rather use --version,
10426 # but apparently some variants of GNU ld only accept -v.
10427 # Break only if it was the GNU/non-GNU ld that we prefer.
10428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10429 *GNU* | *'with BFD'*)
10430 test "$with_gnu_ld" != no && break
10431 ;;
10432 *)
10433 test "$with_gnu_ld" != yes && break
10434 ;;
10435 esac
10436 fi
10437 done
10438 IFS="$lt_save_ifs"
10439 else
10440 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10441 fi
10442 fi
10443
10444 LD="$lt_cv_path_LD"
10445 if test -n "$LD"; then
10446 echo "$as_me:$LINENO: result: $LD" >&5
10447 echo "${ECHO_T}$LD" >&6
10448 else
10449 echo "$as_me:$LINENO: result: no" >&5
10450 echo "${ECHO_T}no" >&6
10451 fi
10452 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10453 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10454 { (exit 1); exit 1; }; }
10455 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10456 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10457 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10461 case `$LD -v 2>&1 </dev/null` in
10462 *GNU* | *'with BFD'*)
10463 lt_cv_prog_gnu_ld=yes
10464 ;;
10465 *)
10466 lt_cv_prog_gnu_ld=no
10467 ;;
10468 esac
10469 fi
10470 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10471 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10472 with_gnu_ld=$lt_cv_prog_gnu_ld
10473
10474
10475
10476 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10477 # archiving commands below assume that GNU ld is being used.
10478 if test "$with_gnu_ld" = yes; then
10479 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10480 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'
10481
10482 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10483 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10484
10485 # If archive_cmds runs LD, not CC, wlarc should be empty
10486 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10487 # investigate it a little bit more. (MM)
10488 wlarc='${wl}'
10489
10490 # ancient GNU ld didn't support --whole-archive et. al.
10491 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10492 grep 'no-whole-archive' > /dev/null; then
10493 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10494 else
10495 whole_archive_flag_spec_CXX=
10496 fi
10497 else
10498 with_gnu_ld=no
10499 wlarc=
10500
10501 # A generic and very simple default shared library creation
10502 # command for GNU C++ for the case where it uses the native
10503 # linker, instead of GNU ld. If possible, this setting should
10504 # overridden to take advantage of the native linker features on
10505 # the platform it is being used on.
10506 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10507 fi
10508
10509 # Commands to make compiler produce verbose output that lists
10510 # what "hidden" libraries, object files and flags are used when
10511 # linking a shared library.
10512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10513
10514 else
10515 GXX=no
10516 with_gnu_ld=no
10517 wlarc=
10518 fi
10519
10520 # PORTME: fill in a description of your system's C++ link characteristics
10521 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10522 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10523 ld_shlibs_CXX=yes
10524 case $host_os in
10525 aix3*)
10526 # FIXME: insert proper C++ library support
10527 ld_shlibs_CXX=no
10528 ;;
10529 aix[4-9]*)
10530 if test "$host_cpu" = ia64; then
10531 # On IA64, the linker does run time linking by default, so we don't
10532 # have to do anything special.
10533 aix_use_runtimelinking=no
10534 exp_sym_flag='-Bexport'
10535 no_entry_flag=""
10536 else
10537 aix_use_runtimelinking=no
10538
10539 # Test if we are trying to use run time linking or normal
10540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10541 # need to do runtime linking.
10542 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10543 for ld_flag in $LDFLAGS; do
10544 case $ld_flag in
10545 *-brtl*)
10546 aix_use_runtimelinking=yes
10547 break
10548 ;;
10549 esac
10550 done
10551 ;;
10552 esac
10553
10554 exp_sym_flag='-bexport'
10555 no_entry_flag='-bnoentry'
10556 fi
10557
10558 # When large executables or shared objects are built, AIX ld can
10559 # have problems creating the table of contents. If linking a library
10560 # or program results in "error TOC overflow" add -mminimal-toc to
10561 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10562 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10563
10564 archive_cmds_CXX=''
10565 hardcode_direct_CXX=yes
10566 hardcode_libdir_separator_CXX=':'
10567 link_all_deplibs_CXX=yes
10568
10569 if test "$GXX" = yes; then
10570 case $host_os in aix4.[012]|aix4.[012].*)
10571 # We only want to do this on AIX 4.2 and lower, the check
10572 # below for broken collect2 doesn't work under 4.3+
10573 collect2name=`${CC} -print-prog-name=collect2`
10574 if test -f "$collect2name" && \
10575 strings "$collect2name" | grep resolve_lib_name >/dev/null
10576 then
10577 # We have reworked collect2
10578 :
10579 else
10580 # We have old collect2
10581 hardcode_direct_CXX=unsupported
10582 # It fails to find uninstalled libraries when the uninstalled
10583 # path is not listed in the libpath. Setting hardcode_minus_L
10584 # to unsupported forces relinking
10585 hardcode_minus_L_CXX=yes
10586 hardcode_libdir_flag_spec_CXX='-L$libdir'
10587 hardcode_libdir_separator_CXX=
10588 fi
10589 ;;
10590 esac
10591 shared_flag='-shared'
10592 if test "$aix_use_runtimelinking" = yes; then
10593 shared_flag="$shared_flag "'${wl}-G'
10594 fi
10595 else
10596 # not using gcc
10597 if test "$host_cpu" = ia64; then
10598 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10599 # chokes on -Wl,-G. The following line is correct:
10600 shared_flag='-G'
10601 else
10602 if test "$aix_use_runtimelinking" = yes; then
10603 shared_flag='${wl}-G'
10604 else
10605 shared_flag='${wl}-bM:SRE'
10606 fi
10607 fi
10608 fi
10609
10610 # It seems that -bexpall does not export symbols beginning with
10611 # underscore (_), so it is better to generate a list of symbols to export.
10612 always_export_symbols_CXX=yes
10613 if test "$aix_use_runtimelinking" = yes; then
10614 # Warning - without using the other runtime loading flags (-brtl),
10615 # -berok will link without error, but may produce a broken library.
10616 allow_undefined_flag_CXX='-berok'
10617 # Determine the default libpath from the value encoded in an empty executable.
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h. */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624
10625 int
10626 main ()
10627 {
10628
10629 ;
10630 return 0;
10631 }
10632 _ACEOF
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_cxx_werror_flag"
10643 || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655
10656 lt_aix_libpath_sed='
10657 /Import File Strings/,/^$/ {
10658 /^0/ {
10659 s/^0 *\(.*\)$/\1/
10660 p
10661 }
10662 }'
10663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10664 # Check for a 64-bit object if we didn't find anything.
10665 if test -z "$aix_libpath"; then
10666 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10667 fi
10668 else
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10671
10672 fi
10673 rm -f conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
10675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10676
10677 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10678
10679 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10680 else
10681 if test "$host_cpu" = ia64; then
10682 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10683 allow_undefined_flag_CXX="-z nodefs"
10684 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10685 else
10686 # Determine the default libpath from the value encoded in an empty executable.
10687 cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h. */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10693
10694 int
10695 main ()
10696 {
10697
10698 ;
10699 return 0;
10700 }
10701 _ACEOF
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10704 (eval $ac_link) 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } &&
10711 { ac_try='test -z "$ac_cxx_werror_flag"
10712 || test ! -s conftest.err'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; } &&
10718 { ac_try='test -s conftest$ac_exeext'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724
10725 lt_aix_libpath_sed='
10726 /Import File Strings/,/^$/ {
10727 /^0/ {
10728 s/^0 *\(.*\)$/\1/
10729 p
10730 }
10731 }'
10732 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10733 # Check for a 64-bit object if we didn't find anything.
10734 if test -z "$aix_libpath"; then
10735 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10736 fi
10737 else
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741 fi
10742 rm -f conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10745
10746 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10747 # Warning - without using the other run time loading flags,
10748 # -berok will link without error, but may produce a broken library.
10749 no_undefined_flag_CXX=' ${wl}-bernotok'
10750 allow_undefined_flag_CXX=' ${wl}-berok'
10751 # Exported symbols can be pulled into shared objects from archives
10752 whole_archive_flag_spec_CXX='$convenience'
10753 archive_cmds_need_lc_CXX=yes
10754 # This is similar to how AIX traditionally builds its shared libraries.
10755 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10756 fi
10757 fi
10758 ;;
10759
10760 beos*)
10761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10762 allow_undefined_flag_CXX=unsupported
10763 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10764 # support --undefined. This deserves some investigation. FIXME
10765 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10766 else
10767 ld_shlibs_CXX=no
10768 fi
10769 ;;
10770
10771 chorus*)
10772 case $cc_basename in
10773 *)
10774 # FIXME: insert proper C++ library support
10775 ld_shlibs_CXX=no
10776 ;;
10777 esac
10778 ;;
10779
10780 cygwin* | mingw* | pw32*)
10781 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10782 # as there is no search path for DLLs.
10783 hardcode_libdir_flag_spec_CXX='-L$libdir'
10784 allow_undefined_flag_CXX=unsupported
10785 always_export_symbols_CXX=no
10786 enable_shared_with_static_runtimes_CXX=yes
10787
10788 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10789 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10790 # If the export-symbols file already is a .def file (1st line
10791 # is EXPORTS), use it as is; otherwise, prepend...
10792 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10793 cp $export_symbols $output_objdir/$soname.def;
10794 else
10795 echo EXPORTS > $output_objdir/$soname.def;
10796 cat $export_symbols >> $output_objdir/$soname.def;
10797 fi~
10798 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10799 else
10800 ld_shlibs_CXX=no
10801 fi
10802 ;;
10803 darwin* | rhapsody*)
10804 archive_cmds_need_lc_CXX=no
10805 hardcode_direct_CXX=no
10806 hardcode_automatic_CXX=yes
10807 hardcode_shlibpath_var_CXX=unsupported
10808 whole_archive_flag_spec_CXX=''
10809 link_all_deplibs_CXX=yes
10810 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10811 if test "$GXX" = yes ; then
10812 output_verbose_link_cmd='echo'
10813 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10814 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10815 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10816 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10817 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10818 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${_lt_dsymutil}"
10819 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
10820 fi
10821 else
10822 case $cc_basename in
10823 xlc*)
10824 output_verbose_link_cmd='echo'
10825 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10826 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10828 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10829 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}'
10830 ;;
10831 *)
10832 ld_shlibs_CXX=no
10833 ;;
10834 esac
10835 fi
10836 ;;
10837
10838 dgux*)
10839 case $cc_basename in
10840 ec++*)
10841 # FIXME: insert proper C++ library support
10842 ld_shlibs_CXX=no
10843 ;;
10844 ghcx*)
10845 # Green Hills C++ Compiler
10846 # FIXME: insert proper C++ library support
10847 ld_shlibs_CXX=no
10848 ;;
10849 *)
10850 # FIXME: insert proper C++ library support
10851 ld_shlibs_CXX=no
10852 ;;
10853 esac
10854 ;;
10855 freebsd[12]*)
10856 # C++ shared libraries reported to be fairly broken before switch to ELF
10857 ld_shlibs_CXX=no
10858 ;;
10859 freebsd-elf*)
10860 archive_cmds_need_lc_CXX=no
10861 ;;
10862 freebsd* | dragonfly*)
10863 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10864 # conventions
10865 ld_shlibs_CXX=yes
10866 ;;
10867 gnu*)
10868 ;;
10869 hpux9*)
10870 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10871 hardcode_libdir_separator_CXX=:
10872 export_dynamic_flag_spec_CXX='${wl}-E'
10873 hardcode_direct_CXX=yes
10874 hardcode_minus_L_CXX=yes # Not in the search PATH,
10875 # but as the default
10876 # location of the library.
10877
10878 case $cc_basename in
10879 CC*)
10880 # FIXME: insert proper C++ library support
10881 ld_shlibs_CXX=no
10882 ;;
10883 aCC*)
10884 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'
10885 # Commands to make compiler produce verbose output that lists
10886 # what "hidden" libraries, object files and flags are used when
10887 # linking a shared library.
10888 #
10889 # There doesn't appear to be a way to prevent this compiler from
10890 # explicitly linking system object files so we need to strip them
10891 # from the output so that they don't get included in the library
10892 # dependencies.
10893 output_verbose_link_cmd='templist=`($CC -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'
10894 ;;
10895 *)
10896 if test "$GXX" = yes; then
10897 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'
10898 else
10899 # FIXME: insert proper C++ library support
10900 ld_shlibs_CXX=no
10901 fi
10902 ;;
10903 esac
10904 ;;
10905 hpux10*|hpux11*)
10906 if test $with_gnu_ld = no; then
10907 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10908 hardcode_libdir_separator_CXX=:
10909
10910 case $host_cpu in
10911 hppa*64*|ia64*) ;;
10912 *)
10913 export_dynamic_flag_spec_CXX='${wl}-E'
10914 ;;
10915 esac
10916 fi
10917 case $host_cpu in
10918 hppa*64*|ia64*)
10919 hardcode_direct_CXX=no
10920 hardcode_shlibpath_var_CXX=no
10921 ;;
10922 *)
10923 hardcode_direct_CXX=yes
10924 hardcode_minus_L_CXX=yes # Not in the search PATH,
10925 # but as the default
10926 # location of the library.
10927 ;;
10928 esac
10929
10930 case $cc_basename in
10931 CC*)
10932 # FIXME: insert proper C++ library support
10933 ld_shlibs_CXX=no
10934 ;;
10935 aCC*)
10936 case $host_cpu in
10937 hppa*64*)
10938 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10939 ;;
10940 ia64*)
10941 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10942 ;;
10943 *)
10944 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10945 ;;
10946 esac
10947 # Commands to make compiler produce verbose output that lists
10948 # what "hidden" libraries, object files and flags are used when
10949 # linking a shared library.
10950 #
10951 # There doesn't appear to be a way to prevent this compiler from
10952 # explicitly linking system object files so we need to strip them
10953 # from the output so that they don't get included in the library
10954 # dependencies.
10955 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'
10956 ;;
10957 *)
10958 if test "$GXX" = yes; then
10959 if test $with_gnu_ld = no; then
10960 case $host_cpu in
10961 hppa*64*)
10962 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10963 ;;
10964 ia64*)
10965 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10966 ;;
10967 *)
10968 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'
10969 ;;
10970 esac
10971 fi
10972 else
10973 # FIXME: insert proper C++ library support
10974 ld_shlibs_CXX=no
10975 fi
10976 ;;
10977 esac
10978 ;;
10979 interix[3-9]*)
10980 hardcode_direct_CXX=no
10981 hardcode_shlibpath_var_CXX=no
10982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10983 export_dynamic_flag_spec_CXX='${wl}-E'
10984 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10985 # Instead, shared libraries are loaded at an image base (0x10000000 by
10986 # default) and relocated if they conflict, which is a slow very memory
10987 # consuming and fragmenting process. To avoid this, we pick a random,
10988 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10989 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10990 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10991 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10992 ;;
10993 irix5* | irix6*)
10994 case $cc_basename in
10995 CC*)
10996 # SGI C++
10997 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'
10998
10999 # Archives containing C++ object files must be created using
11000 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11001 # necessary to make sure instantiated templates are included
11002 # in the archive.
11003 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11004 ;;
11005 *)
11006 if test "$GXX" = yes; then
11007 if test "$with_gnu_ld" = no; then
11008 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'
11009 else
11010 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'
11011 fi
11012 fi
11013 link_all_deplibs_CXX=yes
11014 ;;
11015 esac
11016 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11017 hardcode_libdir_separator_CXX=:
11018 ;;
11019 linux* | k*bsd*-gnu)
11020 case $cc_basename in
11021 KCC*)
11022 # Kuck and Associates, Inc. (KAI) C++ Compiler
11023
11024 # KCC will only create a shared library if the output file
11025 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11026 # to its proper name (with version) after linking.
11027 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'
11028 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'
11029 # Commands to make compiler produce verbose output that lists
11030 # what "hidden" libraries, object files and flags are used when
11031 # linking a shared library.
11032 #
11033 # There doesn't appear to be a way to prevent this compiler from
11034 # explicitly linking system object files so we need to strip them
11035 # from the output so that they don't get included in the library
11036 # dependencies.
11037 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'
11038
11039 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11040 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11041
11042 # Archives containing C++ object files must be created using
11043 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11044 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11045 ;;
11046 icpc*)
11047 # Intel C++
11048 with_gnu_ld=yes
11049 # version 8.0 and above of icpc choke on multiply defined symbols
11050 # if we add $predep_objects and $postdep_objects, however 7.1 and
11051 # earlier do not add the objects themselves.
11052 case `$CC -V 2>&1` in
11053 *"Version 7."*)
11054 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11055 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'
11056 ;;
11057 *) # Version 8.0 or newer
11058 tmp_idyn=
11059 case $host_cpu in
11060 ia64*) tmp_idyn=' -i_dynamic';;
11061 esac
11062 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11063 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'
11064 ;;
11065 esac
11066 archive_cmds_need_lc_CXX=no
11067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11068 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11069 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11070 ;;
11071 pgCC* | pgcpp*)
11072 # Portland Group C++ compiler
11073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11074 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'
11075
11076 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11077 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11078 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'
11079 ;;
11080 cxx*)
11081 # Compaq C++
11082 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11083 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'
11084
11085 runpath_var=LD_RUN_PATH
11086 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11087 hardcode_libdir_separator_CXX=:
11088
11089 # Commands to make compiler produce verbose output that lists
11090 # what "hidden" libraries, object files and flags are used when
11091 # linking a shared library.
11092 #
11093 # There doesn't appear to be a way to prevent this compiler from
11094 # explicitly linking system object files so we need to strip them
11095 # from the output so that they don't get included in the library
11096 # dependencies.
11097 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'
11098 ;;
11099 *)
11100 case `$CC -V 2>&1 | sed 5q` in
11101 *Sun\ C*)
11102 # Sun C++ 5.9
11103 no_undefined_flag_CXX=' -zdefs'
11104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11105 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11106 hardcode_libdir_flag_spec_CXX='-R$libdir'
11107 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11108
11109 # Not sure whether something based on
11110 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11111 # would be better.
11112 output_verbose_link_cmd='echo'
11113
11114 # Archives containing C++ object files must be created using
11115 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11116 # necessary to make sure instantiated templates are included
11117 # in the archive.
11118 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11119 ;;
11120 esac
11121 ;;
11122 esac
11123 ;;
11124 lynxos*)
11125 # FIXME: insert proper C++ library support
11126 ld_shlibs_CXX=no
11127 ;;
11128 m88k*)
11129 # FIXME: insert proper C++ library support
11130 ld_shlibs_CXX=no
11131 ;;
11132 mvs*)
11133 case $cc_basename in
11134 cxx*)
11135 # FIXME: insert proper C++ library support
11136 ld_shlibs_CXX=no
11137 ;;
11138 *)
11139 # FIXME: insert proper C++ library support
11140 ld_shlibs_CXX=no
11141 ;;
11142 esac
11143 ;;
11144 netbsd*)
11145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11146 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11147 wlarc=
11148 hardcode_libdir_flag_spec_CXX='-R$libdir'
11149 hardcode_direct_CXX=yes
11150 hardcode_shlibpath_var_CXX=no
11151 fi
11152 # Workaround some broken pre-1.5 toolchains
11153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11154 ;;
11155 openbsd2*)
11156 # C++ shared libraries are fairly broken
11157 ld_shlibs_CXX=no
11158 ;;
11159 openbsd*)
11160 if test -f /usr/libexec/ld.so; then
11161 hardcode_direct_CXX=yes
11162 hardcode_shlibpath_var_CXX=no
11163 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11166 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11167 export_dynamic_flag_spec_CXX='${wl}-E'
11168 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11169 fi
11170 output_verbose_link_cmd='echo'
11171 else
11172 ld_shlibs_CXX=no
11173 fi
11174 ;;
11175 osf3*)
11176 case $cc_basename in
11177 KCC*)
11178 # Kuck and Associates, Inc. (KAI) C++ Compiler
11179
11180 # KCC will only create a shared library if the output file
11181 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11182 # to its proper name (with version) after linking.
11183 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'
11184
11185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11186 hardcode_libdir_separator_CXX=:
11187
11188 # Archives containing C++ object files must be created using
11189 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11190 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11191
11192 ;;
11193 RCC*)
11194 # Rational C++ 2.4.1
11195 # FIXME: insert proper C++ library support
11196 ld_shlibs_CXX=no
11197 ;;
11198 cxx*)
11199 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11200 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'
11201
11202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11203 hardcode_libdir_separator_CXX=:
11204
11205 # Commands to make compiler produce verbose output that lists
11206 # what "hidden" libraries, object files and flags are used when
11207 # linking a shared library.
11208 #
11209 # There doesn't appear to be a way to prevent this compiler from
11210 # explicitly linking system object files so we need to strip them
11211 # from the output so that they don't get included in the library
11212 # dependencies.
11213 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'
11214 ;;
11215 *)
11216 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11217 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11218 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'
11219
11220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11221 hardcode_libdir_separator_CXX=:
11222
11223 # Commands to make compiler produce verbose output that lists
11224 # what "hidden" libraries, object files and flags are used when
11225 # linking a shared library.
11226 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11227
11228 else
11229 # FIXME: insert proper C++ library support
11230 ld_shlibs_CXX=no
11231 fi
11232 ;;
11233 esac
11234 ;;
11235 osf4* | osf5*)
11236 case $cc_basename in
11237 KCC*)
11238 # Kuck and Associates, Inc. (KAI) C++ Compiler
11239
11240 # KCC will only create a shared library if the output file
11241 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11242 # to its proper name (with version) after linking.
11243 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'
11244
11245 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11246 hardcode_libdir_separator_CXX=:
11247
11248 # Archives containing C++ object files must be created using
11249 # the KAI C++ compiler.
11250 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11251 ;;
11252 RCC*)
11253 # Rational C++ 2.4.1
11254 # FIXME: insert proper C++ library support
11255 ld_shlibs_CXX=no
11256 ;;
11257 cxx*)
11258 allow_undefined_flag_CXX=' -expect_unresolved \*'
11259 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'
11260 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11261 echo "-hidden">> $lib.exp~
11262 $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~
11263 $rm $lib.exp'
11264
11265 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11266 hardcode_libdir_separator_CXX=:
11267
11268 # Commands to make compiler produce verbose output that lists
11269 # what "hidden" libraries, object files and flags are used when
11270 # linking a shared library.
11271 #
11272 # There doesn't appear to be a way to prevent this compiler from
11273 # explicitly linking system object files so we need to strip them
11274 # from the output so that they don't get included in the library
11275 # dependencies.
11276 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'
11277 ;;
11278 *)
11279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11280 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11281 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'
11282
11283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11284 hardcode_libdir_separator_CXX=:
11285
11286 # Commands to make compiler produce verbose output that lists
11287 # what "hidden" libraries, object files and flags are used when
11288 # linking a shared library.
11289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11290
11291 else
11292 # FIXME: insert proper C++ library support
11293 ld_shlibs_CXX=no
11294 fi
11295 ;;
11296 esac
11297 ;;
11298 psos*)
11299 # FIXME: insert proper C++ library support
11300 ld_shlibs_CXX=no
11301 ;;
11302 sunos4*)
11303 case $cc_basename in
11304 CC*)
11305 # Sun C++ 4.x
11306 # FIXME: insert proper C++ library support
11307 ld_shlibs_CXX=no
11308 ;;
11309 lcc*)
11310 # Lucid
11311 # FIXME: insert proper C++ library support
11312 ld_shlibs_CXX=no
11313 ;;
11314 *)
11315 # FIXME: insert proper C++ library support
11316 ld_shlibs_CXX=no
11317 ;;
11318 esac
11319 ;;
11320 solaris*)
11321 case $cc_basename in
11322 CC*)
11323 # Sun C++ 4.2, 5.x and Centerline C++
11324 archive_cmds_need_lc_CXX=yes
11325 no_undefined_flag_CXX=' -zdefs'
11326 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11327 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11328 $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'
11329
11330 hardcode_libdir_flag_spec_CXX='-R$libdir'
11331 hardcode_shlibpath_var_CXX=no
11332 case $host_os in
11333 solaris2.[0-5] | solaris2.[0-5].*) ;;
11334 *)
11335 # The compiler driver will combine and reorder linker options,
11336 # but understands `-z linker_flag'.
11337 # Supported since Solaris 2.6 (maybe 2.5.1?)
11338 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11339 ;;
11340 esac
11341 link_all_deplibs_CXX=yes
11342
11343 output_verbose_link_cmd='echo'
11344
11345 # Archives containing C++ object files must be created using
11346 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11347 # necessary to make sure instantiated templates are included
11348 # in the archive.
11349 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11350 ;;
11351 gcx*)
11352 # Green Hills C++ Compiler
11353 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11354
11355 # The C++ compiler must be used to create the archive.
11356 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11357 ;;
11358 *)
11359 # GNU C++ compiler with Solaris linker
11360 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11361 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11362 if $CC --version | grep -v '^2\.7' > /dev/null; then
11363 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11364 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11365 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11366
11367 # Commands to make compiler produce verbose output that lists
11368 # what "hidden" libraries, object files and flags are used when
11369 # linking a shared library.
11370 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11371 else
11372 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11373 # platform.
11374 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11375 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11376 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11377
11378 # Commands to make compiler produce verbose output that lists
11379 # what "hidden" libraries, object files and flags are used when
11380 # linking a shared library.
11381 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11382 fi
11383
11384 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11385 case $host_os in
11386 solaris2.[0-5] | solaris2.[0-5].*) ;;
11387 *)
11388 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11389 ;;
11390 esac
11391 fi
11392 ;;
11393 esac
11394 ;;
11395 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11396 no_undefined_flag_CXX='${wl}-z,text'
11397 archive_cmds_need_lc_CXX=no
11398 hardcode_shlibpath_var_CXX=no
11399 runpath_var='LD_RUN_PATH'
11400
11401 case $cc_basename in
11402 CC*)
11403 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405 ;;
11406 *)
11407 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11409 ;;
11410 esac
11411 ;;
11412 sysv5* | sco3.2v5* | sco5v6*)
11413 # Note: We can NOT use -z defs as we might desire, because we do not
11414 # link with -lc, and that would cause any symbols used from libc to
11415 # always be unresolved, which means just about no library would
11416 # ever link correctly. If we're not using GNU ld we use -z text
11417 # though, which does catch some bad symbols but isn't as heavy-handed
11418 # as -z defs.
11419 # For security reasons, it is highly recommended that you always
11420 # use absolute paths for naming shared libraries, and exclude the
11421 # DT_RUNPATH tag from executables and libraries. But doing so
11422 # requires that you compile everything twice, which is a pain.
11423 # So that behaviour is only enabled if SCOABSPATH is set to a
11424 # non-empty value in the environment. Most likely only useful for
11425 # creating official distributions of packages.
11426 # This is a hack until libtool officially supports absolute path
11427 # names for shared libraries.
11428 no_undefined_flag_CXX='${wl}-z,text'
11429 allow_undefined_flag_CXX='${wl}-z,nodefs'
11430 archive_cmds_need_lc_CXX=no
11431 hardcode_shlibpath_var_CXX=no
11432 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11433 hardcode_libdir_separator_CXX=':'
11434 link_all_deplibs_CXX=yes
11435 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11436 runpath_var='LD_RUN_PATH'
11437
11438 case $cc_basename in
11439 CC*)
11440 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11441 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11442 ;;
11443 *)
11444 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11445 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11446 ;;
11447 esac
11448 ;;
11449 tandem*)
11450 case $cc_basename in
11451 NCC*)
11452 # NonStop-UX NCC 3.20
11453 # FIXME: insert proper C++ library support
11454 ld_shlibs_CXX=no
11455 ;;
11456 *)
11457 # FIXME: insert proper C++ library support
11458 ld_shlibs_CXX=no
11459 ;;
11460 esac
11461 ;;
11462 vxworks*)
11463 # FIXME: insert proper C++ library support
11464 ld_shlibs_CXX=no
11465 ;;
11466 *)
11467 # FIXME: insert proper C++ library support
11468 ld_shlibs_CXX=no
11469 ;;
11470 esac
11471 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11472 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11473 test "$ld_shlibs_CXX" = no && can_build_shared=no
11474
11475 GCC_CXX="$GXX"
11476 LD_CXX="$LD"
11477
11478 cat > conftest.$ac_ext <<EOF
11479 class Foo
11480 {
11481 public:
11482 Foo (void) { a = 0; }
11483 private:
11484 int a;
11485 };
11486 EOF
11487
11488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11489 (eval $ac_compile) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; then
11493 # Parse the compiler output and extract the necessary
11494 # objects, libraries and library flags.
11495
11496 # Sentinel used to keep track of whether or not we are before
11497 # the conftest object file.
11498 pre_test_object_deps_done=no
11499
11500 # The `*' in the case matches for architectures that use `case' in
11501 # $output_verbose_cmd can trigger glob expansion during the loop
11502 # eval without this substitution.
11503 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11504
11505 for p in `eval $output_verbose_link_cmd`; do
11506 case $p in
11507
11508 -L* | -R* | -l*)
11509 # Some compilers place space between "-{L,R}" and the path.
11510 # Remove the space.
11511 if test $p = "-L" \
11512 || test $p = "-R"; then
11513 prev=$p
11514 continue
11515 else
11516 prev=
11517 fi
11518
11519 if test "$pre_test_object_deps_done" = no; then
11520 case $p in
11521 -L* | -R*)
11522 # Internal compiler library paths should come after those
11523 # provided the user. The postdeps already come after the
11524 # user supplied libs so there is no need to process them.
11525 if test -z "$compiler_lib_search_path_CXX"; then
11526 compiler_lib_search_path_CXX="${prev}${p}"
11527 else
11528 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11529 fi
11530 ;;
11531 # The "-l" case would never come before the object being
11532 # linked, so don't bother handling this case.
11533 esac
11534 else
11535 if test -z "$postdeps_CXX"; then
11536 postdeps_CXX="${prev}${p}"
11537 else
11538 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11539 fi
11540 fi
11541 ;;
11542
11543 *.$objext)
11544 # This assumes that the test object file only shows up
11545 # once in the compiler output.
11546 if test "$p" = "conftest.$objext"; then
11547 pre_test_object_deps_done=yes
11548 continue
11549 fi
11550
11551 if test "$pre_test_object_deps_done" = no; then
11552 if test -z "$predep_objects_CXX"; then
11553 predep_objects_CXX="$p"
11554 else
11555 predep_objects_CXX="$predep_objects_CXX $p"
11556 fi
11557 else
11558 if test -z "$postdep_objects_CXX"; then
11559 postdep_objects_CXX="$p"
11560 else
11561 postdep_objects_CXX="$postdep_objects_CXX $p"
11562 fi
11563 fi
11564 ;;
11565
11566 *) ;; # Ignore the rest.
11567
11568 esac
11569 done
11570
11571 # Clean up.
11572 rm -f a.out a.exe
11573 else
11574 echo "libtool.m4: error: problem compiling CXX test program"
11575 fi
11576
11577 $rm -f confest.$objext
11578
11579 compiler_lib_search_dirs_CXX=
11580 if test -n "$compiler_lib_search_path_CXX"; then
11581 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11582 fi
11583
11584 # PORTME: override above test on systems where it is broken
11585 case $host_os in
11586 interix[3-9]*)
11587 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11588 # hack all around it, let's just trust "g++" to DTRT.
11589 predep_objects_CXX=
11590 postdep_objects_CXX=
11591 postdeps_CXX=
11592 ;;
11593
11594 linux*)
11595 case `$CC -V 2>&1 | sed 5q` in
11596 *Sun\ C*)
11597 # Sun C++ 5.9
11598 #
11599 # The more standards-conforming stlport4 library is
11600 # incompatible with the Cstd library. Avoid specifying
11601 # it if it's in CXXFLAGS. Ignore libCrun as
11602 # -library=stlport4 depends on it.
11603 case " $CXX $CXXFLAGS " in
11604 *" -library=stlport4 "*)
11605 solaris_use_stlport4=yes
11606 ;;
11607 esac
11608 if test "$solaris_use_stlport4" != yes; then
11609 postdeps_CXX='-library=Cstd -library=Crun'
11610 fi
11611 ;;
11612 esac
11613 ;;
11614
11615 solaris*)
11616 case $cc_basename in
11617 CC*)
11618 # The more standards-conforming stlport4 library is
11619 # incompatible with the Cstd library. Avoid specifying
11620 # it if it's in CXXFLAGS. Ignore libCrun as
11621 # -library=stlport4 depends on it.
11622 case " $CXX $CXXFLAGS " in
11623 *" -library=stlport4 "*)
11624 solaris_use_stlport4=yes
11625 ;;
11626 esac
11627
11628 # Adding this requires a known-good setup of shared libraries for
11629 # Sun compiler versions before 5.6, else PIC objects from an old
11630 # archive will be linked into the output, leading to subtle bugs.
11631 if test "$solaris_use_stlport4" != yes; then
11632 postdeps_CXX='-library=Cstd -library=Crun'
11633 fi
11634 ;;
11635 esac
11636 ;;
11637 esac
11638
11639 case " $postdeps_CXX " in
11640 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11641 esac
11642
11643 lt_prog_compiler_wl_CXX=
11644 lt_prog_compiler_pic_CXX=
11645 lt_prog_compiler_static_CXX=
11646
11647 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11648 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11649
11650 # C++ specific cases for pic, static, wl, etc.
11651 if test "$GXX" = yes; then
11652 lt_prog_compiler_wl_CXX='-Wl,'
11653 lt_prog_compiler_static_CXX='-static'
11654
11655 case $host_os in
11656 aix*)
11657 # All AIX code is PIC.
11658 if test "$host_cpu" = ia64; then
11659 # AIX 5 now supports IA64 processor
11660 lt_prog_compiler_static_CXX='-Bstatic'
11661 fi
11662 ;;
11663 amigaos*)
11664 # FIXME: we need at least 68020 code to build shared libraries, but
11665 # adding the `-m68020' flag to GCC prevents building anything better,
11666 # like `-m68040'.
11667 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11668 ;;
11669 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11670 # PIC is the default for these OSes.
11671 ;;
11672 mingw* | cygwin* | os2* | pw32*)
11673 # This hack is so that the source file can tell whether it is being
11674 # built for inclusion in a dll (and should export symbols for example).
11675 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11676 # (--disable-auto-import) libraries
11677 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11678 ;;
11679 darwin* | rhapsody*)
11680 # PIC is the default on this platform
11681 # Common symbols not allowed in MH_DYLIB files
11682 lt_prog_compiler_pic_CXX='-fno-common'
11683 ;;
11684 *djgpp*)
11685 # DJGPP does not support shared libraries at all
11686 lt_prog_compiler_pic_CXX=
11687 ;;
11688 interix[3-9]*)
11689 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11690 # Instead, we relocate shared libraries at runtime.
11691 ;;
11692 sysv4*MP*)
11693 if test -d /usr/nec; then
11694 lt_prog_compiler_pic_CXX=-Kconform_pic
11695 fi
11696 ;;
11697 hpux*)
11698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11699 # not for PA HP-UX.
11700 case $host_cpu in
11701 hppa*64*|ia64*)
11702 ;;
11703 *)
11704 lt_prog_compiler_pic_CXX='-fPIC'
11705 ;;
11706 esac
11707 ;;
11708 *)
11709 lt_prog_compiler_pic_CXX='-fPIC'
11710 ;;
11711 esac
11712 else
11713 case $host_os in
11714 aix[4-9]*)
11715 # All AIX code is PIC.
11716 if test "$host_cpu" = ia64; then
11717 # AIX 5 now supports IA64 processor
11718 lt_prog_compiler_static_CXX='-Bstatic'
11719 else
11720 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11721 fi
11722 ;;
11723 chorus*)
11724 case $cc_basename in
11725 cxch68*)
11726 # Green Hills C++ Compiler
11727 # _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"
11728 ;;
11729 esac
11730 ;;
11731 darwin*)
11732 # PIC is the default on this platform
11733 # Common symbols not allowed in MH_DYLIB files
11734 case $cc_basename in
11735 xlc*)
11736 lt_prog_compiler_pic_CXX='-qnocommon'
11737 lt_prog_compiler_wl_CXX='-Wl,'
11738 ;;
11739 esac
11740 ;;
11741 dgux*)
11742 case $cc_basename in
11743 ec++*)
11744 lt_prog_compiler_pic_CXX='-KPIC'
11745 ;;
11746 ghcx*)
11747 # Green Hills C++ Compiler
11748 lt_prog_compiler_pic_CXX='-pic'
11749 ;;
11750 *)
11751 ;;
11752 esac
11753 ;;
11754 freebsd* | dragonfly*)
11755 # FreeBSD uses GNU C++
11756 ;;
11757 hpux9* | hpux10* | hpux11*)
11758 case $cc_basename in
11759 CC*)
11760 lt_prog_compiler_wl_CXX='-Wl,'
11761 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11762 if test "$host_cpu" != ia64; then
11763 lt_prog_compiler_pic_CXX='+Z'
11764 fi
11765 ;;
11766 aCC*)
11767 lt_prog_compiler_wl_CXX='-Wl,'
11768 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11769 case $host_cpu in
11770 hppa*64*|ia64*)
11771 # +Z the default
11772 ;;
11773 *)
11774 lt_prog_compiler_pic_CXX='+Z'
11775 ;;
11776 esac
11777 ;;
11778 *)
11779 ;;
11780 esac
11781 ;;
11782 interix*)
11783 # This is c89, which is MS Visual C++ (no shared libs)
11784 # Anyone wants to do a port?
11785 ;;
11786 irix5* | irix6* | nonstopux*)
11787 case $cc_basename in
11788 CC*)
11789 lt_prog_compiler_wl_CXX='-Wl,'
11790 lt_prog_compiler_static_CXX='-non_shared'
11791 # CC pic flag -KPIC is the default.
11792 ;;
11793 *)
11794 ;;
11795 esac
11796 ;;
11797 linux* | k*bsd*-gnu)
11798 case $cc_basename in
11799 KCC*)
11800 # KAI C++ Compiler
11801 lt_prog_compiler_wl_CXX='--backend -Wl,'
11802 lt_prog_compiler_pic_CXX='-fPIC'
11803 ;;
11804 icpc* | ecpc*)
11805 # Intel C++
11806 lt_prog_compiler_wl_CXX='-Wl,'
11807 lt_prog_compiler_pic_CXX='-KPIC'
11808 lt_prog_compiler_static_CXX='-static'
11809 ;;
11810 pgCC* | pgcpp*)
11811 # Portland Group C++ compiler.
11812 lt_prog_compiler_wl_CXX='-Wl,'
11813 lt_prog_compiler_pic_CXX='-fpic'
11814 lt_prog_compiler_static_CXX='-Bstatic'
11815 ;;
11816 cxx*)
11817 # Compaq C++
11818 # Make sure the PIC flag is empty. It appears that all Alpha
11819 # Linux and Compaq Tru64 Unix objects are PIC.
11820 lt_prog_compiler_pic_CXX=
11821 lt_prog_compiler_static_CXX='-non_shared'
11822 ;;
11823 *)
11824 case `$CC -V 2>&1 | sed 5q` in
11825 *Sun\ C*)
11826 # Sun C++ 5.9
11827 lt_prog_compiler_pic_CXX='-KPIC'
11828 lt_prog_compiler_static_CXX='-Bstatic'
11829 lt_prog_compiler_wl_CXX='-Qoption ld '
11830 ;;
11831 esac
11832 ;;
11833 esac
11834 ;;
11835 lynxos*)
11836 ;;
11837 m88k*)
11838 ;;
11839 mvs*)
11840 case $cc_basename in
11841 cxx*)
11842 lt_prog_compiler_pic_CXX='-W c,exportall'
11843 ;;
11844 *)
11845 ;;
11846 esac
11847 ;;
11848 netbsd*)
11849 ;;
11850 osf3* | osf4* | osf5*)
11851 case $cc_basename in
11852 KCC*)
11853 lt_prog_compiler_wl_CXX='--backend -Wl,'
11854 ;;
11855 RCC*)
11856 # Rational C++ 2.4.1
11857 lt_prog_compiler_pic_CXX='-pic'
11858 ;;
11859 cxx*)
11860 # Digital/Compaq C++
11861 lt_prog_compiler_wl_CXX='-Wl,'
11862 # Make sure the PIC flag is empty. It appears that all Alpha
11863 # Linux and Compaq Tru64 Unix objects are PIC.
11864 lt_prog_compiler_pic_CXX=
11865 lt_prog_compiler_static_CXX='-non_shared'
11866 ;;
11867 *)
11868 ;;
11869 esac
11870 ;;
11871 psos*)
11872 ;;
11873 solaris*)
11874 case $cc_basename in
11875 CC*)
11876 # Sun C++ 4.2, 5.x and Centerline C++
11877 lt_prog_compiler_pic_CXX='-KPIC'
11878 lt_prog_compiler_static_CXX='-Bstatic'
11879 lt_prog_compiler_wl_CXX='-Qoption ld '
11880 ;;
11881 gcx*)
11882 # Green Hills C++ Compiler
11883 lt_prog_compiler_pic_CXX='-PIC'
11884 ;;
11885 *)
11886 ;;
11887 esac
11888 ;;
11889 sunos4*)
11890 case $cc_basename in
11891 CC*)
11892 # Sun C++ 4.x
11893 lt_prog_compiler_pic_CXX='-pic'
11894 lt_prog_compiler_static_CXX='-Bstatic'
11895 ;;
11896 lcc*)
11897 # Lucid
11898 lt_prog_compiler_pic_CXX='-pic'
11899 ;;
11900 *)
11901 ;;
11902 esac
11903 ;;
11904 tandem*)
11905 case $cc_basename in
11906 NCC*)
11907 # NonStop-UX NCC 3.20
11908 lt_prog_compiler_pic_CXX='-KPIC'
11909 ;;
11910 *)
11911 ;;
11912 esac
11913 ;;
11914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11915 case $cc_basename in
11916 CC*)
11917 lt_prog_compiler_wl_CXX='-Wl,'
11918 lt_prog_compiler_pic_CXX='-KPIC'
11919 lt_prog_compiler_static_CXX='-Bstatic'
11920 ;;
11921 esac
11922 ;;
11923 vxworks*)
11924 ;;
11925 *)
11926 lt_prog_compiler_can_build_shared_CXX=no
11927 ;;
11928 esac
11929 fi
11930
11931 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11932 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11933
11934 #
11935 # Check to make sure the PIC flag actually works.
11936 #
11937 if test -n "$lt_prog_compiler_pic_CXX"; then
11938
11939 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11940 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11941 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944 lt_cv_prog_compiler_pic_works_CXX=no
11945 ac_outfile=conftest.$ac_objext
11946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11947 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11948 # Insert the option either (1) after the last *FLAGS variable, or
11949 # (2) before a word containing "conftest.", or (3) at the end.
11950 # Note that $ac_compile itself does not contain backslashes and begins
11951 # with a dollar sign (not a hyphen), so the echo should work correctly.
11952 # The option is referenced via a variable to avoid confusing sed.
11953 lt_compile=`echo "$ac_compile" | $SED \
11954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11956 -e 's:$: $lt_compiler_flag:'`
11957 (eval echo "\"\$as_me:11957: $lt_compile\"" >&5)
11958 (eval "$lt_compile" 2>conftest.err)
11959 ac_status=$?
11960 cat conftest.err >&5
11961 echo "$as_me:11961: \$? = $ac_status" >&5
11962 if (exit $ac_status) && test -s "$ac_outfile"; then
11963 # The compiler can only warn and ignore the option if not recognized
11964 # So say no if there are warnings other than the usual output.
11965 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11968 lt_cv_prog_compiler_pic_works_CXX=yes
11969 fi
11970 fi
11971 $rm conftest*
11972
11973 fi
11974 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
11975 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
11976
11977 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
11978 case $lt_prog_compiler_pic_CXX in
11979 "" | " "*) ;;
11980 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11981 esac
11982 else
11983 lt_prog_compiler_pic_CXX=
11984 lt_prog_compiler_can_build_shared_CXX=no
11985 fi
11986
11987 fi
11988 case $host_os in
11989 # For platforms which do not support PIC, -DPIC is meaningless:
11990 *djgpp*)
11991 lt_prog_compiler_pic_CXX=
11992 ;;
11993 *)
11994 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11995 ;;
11996 esac
11997
11998 #
11999 # Check to make sure the static flag actually works.
12000 #
12001 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12002 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12003 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12004 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007 lt_cv_prog_compiler_static_works_CXX=no
12008 save_LDFLAGS="$LDFLAGS"
12009 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12010 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12011 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12012 # The linker can only warn and ignore the option if not recognized
12013 # So say no if there are warnings
12014 if test -s conftest.err; then
12015 # Append any errors to the config.log.
12016 cat conftest.err 1>&5
12017 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12019 if diff conftest.exp conftest.er2 >/dev/null; then
12020 lt_cv_prog_compiler_static_works_CXX=yes
12021 fi
12022 else
12023 lt_cv_prog_compiler_static_works_CXX=yes
12024 fi
12025 fi
12026 $rm -r conftest*
12027 LDFLAGS="$save_LDFLAGS"
12028
12029 fi
12030 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12031 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
12032
12033 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12034 :
12035 else
12036 lt_prog_compiler_static_CXX=
12037 fi
12038
12039
12040 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12041 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12042 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045 lt_cv_prog_compiler_c_o_CXX=no
12046 $rm -r conftest 2>/dev/null
12047 mkdir conftest
12048 cd conftest
12049 mkdir out
12050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12051
12052 lt_compiler_flag="-o out/conftest2.$ac_objext"
12053 # Insert the option either (1) after the last *FLAGS variable, or
12054 # (2) before a word containing "conftest.", or (3) at the end.
12055 # Note that $ac_compile itself does not contain backslashes and begins
12056 # with a dollar sign (not a hyphen), so the echo should work correctly.
12057 lt_compile=`echo "$ac_compile" | $SED \
12058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12060 -e 's:$: $lt_compiler_flag:'`
12061 (eval echo "\"\$as_me:12061: $lt_compile\"" >&5)
12062 (eval "$lt_compile" 2>out/conftest.err)
12063 ac_status=$?
12064 cat out/conftest.err >&5
12065 echo "$as_me:12065: \$? = $ac_status" >&5
12066 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12067 then
12068 # The compiler can only warn and ignore the option if not recognized
12069 # So say no if there are warnings
12070 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12071 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12072 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12073 lt_cv_prog_compiler_c_o_CXX=yes
12074 fi
12075 fi
12076 chmod u+w . 2>&5
12077 $rm conftest*
12078 # SGI C++ compiler will create directory out/ii_files/ for
12079 # template instantiation
12080 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12081 $rm out/* && rmdir out
12082 cd ..
12083 rmdir conftest
12084 $rm conftest*
12085
12086 fi
12087 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12088 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12089
12090
12091 hard_links="nottested"
12092 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12093 # do not overwrite the value of need_locks provided by the user
12094 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12095 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12096 hard_links=yes
12097 $rm conftest*
12098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12099 touch conftest.a
12100 ln conftest.a conftest.b 2>&5 || hard_links=no
12101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12102 echo "$as_me:$LINENO: result: $hard_links" >&5
12103 echo "${ECHO_T}$hard_links" >&6
12104 if test "$hard_links" = no; then
12105 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12106 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12107 need_locks=warn
12108 fi
12109 else
12110 need_locks=no
12111 fi
12112
12113 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12114 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12115
12116 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12117 case $host_os in
12118 aix[4-9]*)
12119 # If we're using GNU nm, then we don't want the "-C" option.
12120 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12121 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12122 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'
12123 else
12124 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'
12125 fi
12126 ;;
12127 pw32*)
12128 export_symbols_cmds_CXX="$ltdll_cmds"
12129 ;;
12130 cygwin* | mingw*)
12131 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'
12132 ;;
12133 *)
12134 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12135 ;;
12136 esac
12137 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12138
12139 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12140 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12141 test "$ld_shlibs_CXX" = no && can_build_shared=no
12142
12143 #
12144 # Do we need to explicitly link libc?
12145 #
12146 case "x$archive_cmds_need_lc_CXX" in
12147 x|xyes)
12148 # Assume -lc should be added
12149 archive_cmds_need_lc_CXX=yes
12150
12151 if test "$enable_shared" = yes && test "$GCC" = yes; then
12152 case $archive_cmds_CXX in
12153 *'~'*)
12154 # FIXME: we may have to deal with multi-command sequences.
12155 ;;
12156 '$CC '*)
12157 # Test whether the compiler implicitly links with -lc since on some
12158 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12159 # to ld, don't add -lc before -lgcc.
12160 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12161 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12162 $rm conftest*
12163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12164
12165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12166 (eval $ac_compile) 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } 2>conftest.err; then
12170 soname=conftest
12171 lib=conftest
12172 libobjs=conftest.$ac_objext
12173 deplibs=
12174 wl=$lt_prog_compiler_wl_CXX
12175 pic_flag=$lt_prog_compiler_pic_CXX
12176 compiler_flags=-v
12177 linker_flags=-v
12178 verstring=
12179 output_objdir=.
12180 libname=conftest
12181 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12182 allow_undefined_flag_CXX=
12183 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12184 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }
12188 then
12189 archive_cmds_need_lc_CXX=no
12190 else
12191 archive_cmds_need_lc_CXX=yes
12192 fi
12193 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12194 else
12195 cat conftest.err 1>&5
12196 fi
12197 $rm conftest*
12198 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12199 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12200 ;;
12201 esac
12202 fi
12203 ;;
12204 esac
12205
12206 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12207 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12208 library_names_spec=
12209 libname_spec='lib$name'
12210 soname_spec=
12211 shrext_cmds=".so"
12212 postinstall_cmds=
12213 postuninstall_cmds=
12214 finish_cmds=
12215 finish_eval=
12216 shlibpath_var=
12217 shlibpath_overrides_runpath=unknown
12218 version_type=none
12219 dynamic_linker="$host_os ld.so"
12220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12221
12222 need_lib_prefix=unknown
12223 hardcode_into_libs=no
12224
12225 # when you set need_version to no, make sure it does not cause -set_version
12226 # flags to be left without arguments
12227 need_version=unknown
12228
12229 case $host_os in
12230 aix3*)
12231 version_type=linux
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12233 shlibpath_var=LIBPATH
12234
12235 # AIX 3 has no versioning support, so we append a major version to the name.
12236 soname_spec='${libname}${release}${shared_ext}$major'
12237 ;;
12238
12239 aix[4-9]*)
12240 version_type=linux
12241 need_lib_prefix=no
12242 need_version=no
12243 hardcode_into_libs=yes
12244 if test "$host_cpu" = ia64; then
12245 # AIX 5 supports IA64
12246 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 else
12249 # With GCC up to 2.95.x, collect2 would create an import file
12250 # for dependence libraries. The import file would start with
12251 # the line `#! .'. This would cause the generated library to
12252 # depend on `.', always an invalid library. This was fixed in
12253 # development snapshots of GCC prior to 3.0.
12254 case $host_os in
12255 aix4 | aix4.[01] | aix4.[01].*)
12256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12257 echo ' yes '
12258 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12259 :
12260 else
12261 can_build_shared=no
12262 fi
12263 ;;
12264 esac
12265 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12266 # soname into executable. Probably we can add versioning support to
12267 # collect2, so additional links can be useful in future.
12268 if test "$aix_use_runtimelinking" = yes; then
12269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12270 # instead of lib<name>.a to let people know that these are not
12271 # typical AIX shared libraries.
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273 else
12274 # We preserve .a as extension for shared libraries through AIX4.2
12275 # and later when we are not doing run time linking.
12276 library_names_spec='${libname}${release}.a $libname.a'
12277 soname_spec='${libname}${release}${shared_ext}$major'
12278 fi
12279 shlibpath_var=LIBPATH
12280 fi
12281 ;;
12282
12283 amigaos*)
12284 library_names_spec='$libname.ixlibrary $libname.a'
12285 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12286 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'
12287 ;;
12288
12289 beos*)
12290 library_names_spec='${libname}${shared_ext}'
12291 dynamic_linker="$host_os ld.so"
12292 shlibpath_var=LIBRARY_PATH
12293 ;;
12294
12295 bsdi[45]*)
12296 version_type=linux
12297 need_version=no
12298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12299 soname_spec='${libname}${release}${shared_ext}$major'
12300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12301 shlibpath_var=LD_LIBRARY_PATH
12302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12304 # the default ld.so.conf also contains /usr/contrib/lib and
12305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12306 # libtool to hard-code these into programs
12307 ;;
12308
12309 cygwin* | mingw* | pw32*)
12310 version_type=windows
12311 shrext_cmds=".dll"
12312 need_version=no
12313 need_lib_prefix=no
12314
12315 case $GCC,$host_os in
12316 yes,cygwin* | yes,mingw* | yes,pw32*)
12317 library_names_spec='$libname.dll.a'
12318 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12319 postinstall_cmds='base_file=`basename \${file}`~
12320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12321 dldir=$destdir/`dirname \$dlpath`~
12322 test -d \$dldir || mkdir -p \$dldir~
12323 $install_prog $dir/$dlname \$dldir/$dlname~
12324 chmod a+x \$dldir/$dlname'
12325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12326 dlpath=$dir/\$dldll~
12327 $rm \$dlpath'
12328 shlibpath_overrides_runpath=yes
12329
12330 case $host_os in
12331 cygwin*)
12332 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12334 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12335 ;;
12336 mingw*)
12337 # MinGW DLLs use traditional 'lib' prefix
12338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12339 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12340 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12341 # It is most probably a Windows format PATH printed by
12342 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12343 # path with ; separators, and with drive letters. We can handle the
12344 # drive letters (cygwin fileutils understands them), so leave them,
12345 # especially as we might pass files found there to a mingw objdump,
12346 # which wouldn't understand a cygwinified path. Ahh.
12347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12348 else
12349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12350 fi
12351 ;;
12352 pw32*)
12353 # pw32 DLLs use 'pw' prefix rather than 'lib'
12354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12355 ;;
12356 esac
12357 ;;
12358
12359 *)
12360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12361 ;;
12362 esac
12363 dynamic_linker='Win32 ld.exe'
12364 # FIXME: first we should search . and the directory the executable is in
12365 shlibpath_var=PATH
12366 ;;
12367
12368 darwin* | rhapsody*)
12369 dynamic_linker="$host_os dyld"
12370 version_type=darwin
12371 need_lib_prefix=no
12372 need_version=no
12373 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12374 soname_spec='${libname}${release}${major}$shared_ext'
12375 shlibpath_overrides_runpath=yes
12376 shlibpath_var=DYLD_LIBRARY_PATH
12377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12378
12379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12380 ;;
12381
12382 dgux*)
12383 version_type=linux
12384 need_lib_prefix=no
12385 need_version=no
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12387 soname_spec='${libname}${release}${shared_ext}$major'
12388 shlibpath_var=LD_LIBRARY_PATH
12389 ;;
12390
12391 freebsd1*)
12392 dynamic_linker=no
12393 ;;
12394
12395 freebsd* | dragonfly*)
12396 # DragonFly does not have aout. When/if they implement a new
12397 # versioning mechanism, adjust this.
12398 if test -x /usr/bin/objformat; then
12399 objformat=`/usr/bin/objformat`
12400 else
12401 case $host_os in
12402 freebsd[123]*) objformat=aout ;;
12403 *) objformat=elf ;;
12404 esac
12405 fi
12406 version_type=freebsd-$objformat
12407 case $version_type in
12408 freebsd-elf*)
12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12410 need_version=no
12411 need_lib_prefix=no
12412 ;;
12413 freebsd-*)
12414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12415 need_version=yes
12416 ;;
12417 esac
12418 shlibpath_var=LD_LIBRARY_PATH
12419 case $host_os in
12420 freebsd2*)
12421 shlibpath_overrides_runpath=yes
12422 ;;
12423 freebsd3.[01]* | freebsdelf3.[01]*)
12424 shlibpath_overrides_runpath=yes
12425 hardcode_into_libs=yes
12426 ;;
12427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12429 shlibpath_overrides_runpath=no
12430 hardcode_into_libs=yes
12431 ;;
12432 *) # from 4.6 on, and DragonFly
12433 shlibpath_overrides_runpath=yes
12434 hardcode_into_libs=yes
12435 ;;
12436 esac
12437 ;;
12438
12439 gnu*)
12440 version_type=linux
12441 need_lib_prefix=no
12442 need_version=no
12443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12444 soname_spec='${libname}${release}${shared_ext}$major'
12445 shlibpath_var=LD_LIBRARY_PATH
12446 hardcode_into_libs=yes
12447 ;;
12448
12449 hpux9* | hpux10* | hpux11*)
12450 # Give a soname corresponding to the major version so that dld.sl refuses to
12451 # link against other versions.
12452 version_type=sunos
12453 need_lib_prefix=no
12454 need_version=no
12455 case $host_cpu in
12456 ia64*)
12457 shrext_cmds='.so'
12458 hardcode_into_libs=yes
12459 dynamic_linker="$host_os dld.so"
12460 shlibpath_var=LD_LIBRARY_PATH
12461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12463 soname_spec='${libname}${release}${shared_ext}$major'
12464 if test "X$HPUX_IA64_MODE" = X32; then
12465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12466 else
12467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12468 fi
12469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12470 ;;
12471 hppa*64*)
12472 shrext_cmds='.sl'
12473 hardcode_into_libs=yes
12474 dynamic_linker="$host_os dld.sl"
12475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12478 soname_spec='${libname}${release}${shared_ext}$major'
12479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12481 ;;
12482 *)
12483 shrext_cmds='.sl'
12484 dynamic_linker="$host_os dld.sl"
12485 shlibpath_var=SHLIB_PATH
12486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12488 soname_spec='${libname}${release}${shared_ext}$major'
12489 ;;
12490 esac
12491 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12492 postinstall_cmds='chmod 555 $lib'
12493 ;;
12494
12495 interix[3-9]*)
12496 version_type=linux
12497 need_lib_prefix=no
12498 need_version=no
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12500 soname_spec='${libname}${release}${shared_ext}$major'
12501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12502 shlibpath_var=LD_LIBRARY_PATH
12503 shlibpath_overrides_runpath=no
12504 hardcode_into_libs=yes
12505 ;;
12506
12507 irix5* | irix6* | nonstopux*)
12508 case $host_os in
12509 nonstopux*) version_type=nonstopux ;;
12510 *)
12511 if test "$lt_cv_prog_gnu_ld" = yes; then
12512 version_type=linux
12513 else
12514 version_type=irix
12515 fi ;;
12516 esac
12517 need_lib_prefix=no
12518 need_version=no
12519 soname_spec='${libname}${release}${shared_ext}$major'
12520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12521 case $host_os in
12522 irix5* | nonstopux*)
12523 libsuff= shlibsuff=
12524 ;;
12525 *)
12526 case $LD in # libtool.m4 will add one of these switches to LD
12527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12528 libsuff= shlibsuff= libmagic=32-bit;;
12529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12530 libsuff=32 shlibsuff=N32 libmagic=N32;;
12531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12533 *) libsuff= shlibsuff= libmagic=never-match;;
12534 esac
12535 ;;
12536 esac
12537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12538 shlibpath_overrides_runpath=no
12539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12541 hardcode_into_libs=yes
12542 ;;
12543
12544 # No shared lib support for Linux oldld, aout, or coff.
12545 linux*oldld* | linux*aout* | linux*coff*)
12546 dynamic_linker=no
12547 ;;
12548
12549 # This must be Linux ELF.
12550 linux* | k*bsd*-gnu)
12551 version_type=linux
12552 need_lib_prefix=no
12553 need_version=no
12554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555 soname_spec='${libname}${release}${shared_ext}$major'
12556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12557 shlibpath_var=LD_LIBRARY_PATH
12558 shlibpath_overrides_runpath=no
12559 # This implies no fast_install, which is unacceptable.
12560 # Some rework will be needed to allow for fast_install
12561 # before this can be enabled.
12562 hardcode_into_libs=yes
12563
12564 # Append ld.so.conf contents to the search path
12565 if test -f /etc/ld.so.conf; then
12566 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12568 fi
12569
12570 # We used to test for /lib/ld.so.1 and disable shared libraries on
12571 # powerpc, because MkLinux only supported shared libraries with the
12572 # GNU dynamic linker. Since this was broken with cross compilers,
12573 # most powerpc-linux boxes support dynamic linking these days and
12574 # people can always --disable-shared, the test was removed, and we
12575 # assume the GNU/Linux dynamic linker is in use.
12576 dynamic_linker='GNU/Linux ld.so'
12577 ;;
12578
12579 netbsd*)
12580 version_type=sunos
12581 need_lib_prefix=no
12582 need_version=no
12583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12586 dynamic_linker='NetBSD (a.out) ld.so'
12587 else
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12589 soname_spec='${libname}${release}${shared_ext}$major'
12590 dynamic_linker='NetBSD ld.elf_so'
12591 fi
12592 shlibpath_var=LD_LIBRARY_PATH
12593 shlibpath_overrides_runpath=yes
12594 hardcode_into_libs=yes
12595 ;;
12596
12597 newsos6)
12598 version_type=linux
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600 shlibpath_var=LD_LIBRARY_PATH
12601 shlibpath_overrides_runpath=yes
12602 ;;
12603
12604 nto-qnx*)
12605 version_type=linux
12606 need_lib_prefix=no
12607 need_version=no
12608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12609 soname_spec='${libname}${release}${shared_ext}$major'
12610 shlibpath_var=LD_LIBRARY_PATH
12611 shlibpath_overrides_runpath=yes
12612 ;;
12613
12614 openbsd*)
12615 version_type=sunos
12616 sys_lib_dlsearch_path_spec="/usr/lib"
12617 need_lib_prefix=no
12618 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12619 case $host_os in
12620 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12621 *) need_version=no ;;
12622 esac
12623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12627 case $host_os in
12628 openbsd2.[89] | openbsd2.[89].*)
12629 shlibpath_overrides_runpath=no
12630 ;;
12631 *)
12632 shlibpath_overrides_runpath=yes
12633 ;;
12634 esac
12635 else
12636 shlibpath_overrides_runpath=yes
12637 fi
12638 ;;
12639
12640 os2*)
12641 libname_spec='$name'
12642 shrext_cmds=".dll"
12643 need_lib_prefix=no
12644 library_names_spec='$libname${shared_ext} $libname.a'
12645 dynamic_linker='OS/2 ld.exe'
12646 shlibpath_var=LIBPATH
12647 ;;
12648
12649 osf3* | osf4* | osf5*)
12650 version_type=osf
12651 need_lib_prefix=no
12652 need_version=no
12653 soname_spec='${libname}${release}${shared_ext}$major'
12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12655 shlibpath_var=LD_LIBRARY_PATH
12656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12658 ;;
12659
12660 rdos*)
12661 dynamic_linker=no
12662 ;;
12663
12664 solaris*)
12665 version_type=linux
12666 need_lib_prefix=no
12667 need_version=no
12668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12669 soname_spec='${libname}${release}${shared_ext}$major'
12670 shlibpath_var=LD_LIBRARY_PATH
12671 shlibpath_overrides_runpath=yes
12672 hardcode_into_libs=yes
12673 # ldd complains unless libraries are executable
12674 postinstall_cmds='chmod +x $lib'
12675 ;;
12676
12677 sunos4*)
12678 version_type=sunos
12679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12681 shlibpath_var=LD_LIBRARY_PATH
12682 shlibpath_overrides_runpath=yes
12683 if test "$with_gnu_ld" = yes; then
12684 need_lib_prefix=no
12685 fi
12686 need_version=yes
12687 ;;
12688
12689 sysv4 | sysv4.3*)
12690 version_type=linux
12691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12692 soname_spec='${libname}${release}${shared_ext}$major'
12693 shlibpath_var=LD_LIBRARY_PATH
12694 case $host_vendor in
12695 sni)
12696 shlibpath_overrides_runpath=no
12697 need_lib_prefix=no
12698 export_dynamic_flag_spec='${wl}-Blargedynsym'
12699 runpath_var=LD_RUN_PATH
12700 ;;
12701 siemens)
12702 need_lib_prefix=no
12703 ;;
12704 motorola)
12705 need_lib_prefix=no
12706 need_version=no
12707 shlibpath_overrides_runpath=no
12708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12709 ;;
12710 esac
12711 ;;
12712
12713 sysv4*MP*)
12714 if test -d /usr/nec ;then
12715 version_type=linux
12716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12717 soname_spec='$libname${shared_ext}.$major'
12718 shlibpath_var=LD_LIBRARY_PATH
12719 fi
12720 ;;
12721
12722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12723 version_type=freebsd-elf
12724 need_lib_prefix=no
12725 need_version=no
12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12727 soname_spec='${libname}${release}${shared_ext}$major'
12728 shlibpath_var=LD_LIBRARY_PATH
12729 hardcode_into_libs=yes
12730 if test "$with_gnu_ld" = yes; then
12731 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12732 shlibpath_overrides_runpath=no
12733 else
12734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12735 shlibpath_overrides_runpath=yes
12736 case $host_os in
12737 sco3.2v5*)
12738 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12739 ;;
12740 esac
12741 fi
12742 sys_lib_dlsearch_path_spec='/usr/lib'
12743 ;;
12744
12745 uts4*)
12746 version_type=linux
12747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12748 soname_spec='${libname}${release}${shared_ext}$major'
12749 shlibpath_var=LD_LIBRARY_PATH
12750 ;;
12751
12752 *)
12753 dynamic_linker=no
12754 ;;
12755 esac
12756 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12757 echo "${ECHO_T}$dynamic_linker" >&6
12758 test "$dynamic_linker" = no && can_build_shared=no
12759
12760 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762 else
12763 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12764 fi
12765
12766 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12767 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12771 fi
12772
12773 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12774
12775 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12776 if test "$GCC" = yes; then
12777 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12778 fi
12779
12780 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12781 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12782 hardcode_action_CXX=
12783 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12784 test -n "$runpath_var_CXX" || \
12785 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12786
12787 # We can hardcode non-existant directories.
12788 if test "$hardcode_direct_CXX" != no &&
12789 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12790 # have to relink, otherwise we might link with an installed library
12791 # when we should be linking with a yet-to-be-installed one
12792 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12793 test "$hardcode_minus_L_CXX" != no; then
12794 # Linking always hardcodes the temporary library directory.
12795 hardcode_action_CXX=relink
12796 else
12797 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12798 hardcode_action_CXX=immediate
12799 fi
12800 else
12801 # We cannot hardcode anything, or else we can only hardcode existing
12802 # directories.
12803 hardcode_action_CXX=unsupported
12804 fi
12805 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12806 echo "${ECHO_T}$hardcode_action_CXX" >&6
12807
12808 if test "$hardcode_action_CXX" = relink; then
12809 # Fast installation is not supported
12810 enable_fast_install=no
12811 elif test "$shlibpath_overrides_runpath" = yes ||
12812 test "$enable_shared" = no; then
12813 # Fast installation is not necessary
12814 enable_fast_install=needless
12815 fi
12816
12817
12818 # The else clause should only fire when bootstrapping the
12819 # libtool distribution, otherwise you forgot to ship ltmain.sh
12820 # with your package, and you will get complaints that there are
12821 # no rules to generate ltmain.sh.
12822 if test -f "$ltmain"; then
12823 # See if we are running on zsh, and set the options which allow our commands through
12824 # without removal of \ escapes.
12825 if test -n "${ZSH_VERSION+set}" ; then
12826 setopt NO_GLOB_SUBST
12827 fi
12828 # Now quote all the things that may contain metacharacters while being
12829 # careful not to overquote the AC_SUBSTed values. We take copies of the
12830 # variables and quote the copies for generation of the libtool script.
12831 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12832 SED SHELL STRIP \
12833 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12834 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12835 deplibs_check_method reload_flag reload_cmds need_locks \
12836 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12837 lt_cv_sys_global_symbol_to_c_name_address \
12838 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12839 old_postinstall_cmds old_postuninstall_cmds \
12840 compiler_CXX \
12841 CC_CXX \
12842 LD_CXX \
12843 lt_prog_compiler_wl_CXX \
12844 lt_prog_compiler_pic_CXX \
12845 lt_prog_compiler_static_CXX \
12846 lt_prog_compiler_no_builtin_flag_CXX \
12847 export_dynamic_flag_spec_CXX \
12848 thread_safe_flag_spec_CXX \
12849 whole_archive_flag_spec_CXX \
12850 enable_shared_with_static_runtimes_CXX \
12851 old_archive_cmds_CXX \
12852 old_archive_from_new_cmds_CXX \
12853 predep_objects_CXX \
12854 postdep_objects_CXX \
12855 predeps_CXX \
12856 postdeps_CXX \
12857 compiler_lib_search_path_CXX \
12858 compiler_lib_search_dirs_CXX \
12859 archive_cmds_CXX \
12860 archive_expsym_cmds_CXX \
12861 postinstall_cmds_CXX \
12862 postuninstall_cmds_CXX \
12863 old_archive_from_expsyms_cmds_CXX \
12864 allow_undefined_flag_CXX \
12865 no_undefined_flag_CXX \
12866 export_symbols_cmds_CXX \
12867 hardcode_libdir_flag_spec_CXX \
12868 hardcode_libdir_flag_spec_ld_CXX \
12869 hardcode_libdir_separator_CXX \
12870 hardcode_automatic_CXX \
12871 module_cmds_CXX \
12872 module_expsym_cmds_CXX \
12873 lt_cv_prog_compiler_c_o_CXX \
12874 fix_srcfile_path_CXX \
12875 exclude_expsyms_CXX \
12876 include_expsyms_CXX; do
12877
12878 case $var in
12879 old_archive_cmds_CXX | \
12880 old_archive_from_new_cmds_CXX | \
12881 archive_cmds_CXX | \
12882 archive_expsym_cmds_CXX | \
12883 module_cmds_CXX | \
12884 module_expsym_cmds_CXX | \
12885 old_archive_from_expsyms_cmds_CXX | \
12886 export_symbols_cmds_CXX | \
12887 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12888 postinstall_cmds | postuninstall_cmds | \
12889 old_postinstall_cmds | old_postuninstall_cmds | \
12890 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12891 # Double-quote double-evaled strings.
12892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12893 ;;
12894 *)
12895 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12896 ;;
12897 esac
12898 done
12899
12900 case $lt_echo in
12901 *'\$0 --fallback-echo"')
12902 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12903 ;;
12904 esac
12905
12906 cfgfile="$ofile"
12907
12908 cat <<__EOF__ >> "$cfgfile"
12909 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12910
12911 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12912
12913 # Shell to use when invoking shell scripts.
12914 SHELL=$lt_SHELL
12915
12916 # Whether or not to build shared libraries.
12917 build_libtool_libs=$enable_shared
12918
12919 # Whether or not to build static libraries.
12920 build_old_libs=$enable_static
12921
12922 # Whether or not to add -lc for building shared libraries.
12923 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12924
12925 # Whether or not to disallow shared libs when runtime libs are static
12926 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12927
12928 # Whether or not to optimize for fast installation.
12929 fast_install=$enable_fast_install
12930
12931 # The host system.
12932 host_alias=$host_alias
12933 host=$host
12934 host_os=$host_os
12935
12936 # The build system.
12937 build_alias=$build_alias
12938 build=$build
12939 build_os=$build_os
12940
12941 # An echo program that does not interpret backslashes.
12942 echo=$lt_echo
12943
12944 # The archiver.
12945 AR=$lt_AR
12946 AR_FLAGS=$lt_AR_FLAGS
12947
12948 # A C compiler.
12949 LTCC=$lt_LTCC
12950
12951 # LTCC compiler flags.
12952 LTCFLAGS=$lt_LTCFLAGS
12953
12954 # A language-specific compiler.
12955 CC=$lt_compiler_CXX
12956
12957 # Is the compiler the GNU C compiler?
12958 with_gcc=$GCC_CXX
12959
12960 # An ERE matcher.
12961 EGREP=$lt_EGREP
12962
12963 # The linker used to build libraries.
12964 LD=$lt_LD_CXX
12965
12966 # Whether we need hard or soft links.
12967 LN_S=$lt_LN_S
12968
12969 # A BSD-compatible nm program.
12970 NM=$lt_NM
12971
12972 # A symbol stripping program
12973 STRIP=$lt_STRIP
12974
12975 # Used to examine libraries when file_magic_cmd begins "file"
12976 MAGIC_CMD=$MAGIC_CMD
12977
12978 # Used on cygwin: DLL creation program.
12979 DLLTOOL="$DLLTOOL"
12980
12981 # Used on cygwin: object dumper.
12982 OBJDUMP="$OBJDUMP"
12983
12984 # Used on cygwin: assembler.
12985 AS="$AS"
12986
12987 # The name of the directory that contains temporary libtool files.
12988 objdir=$objdir
12989
12990 # How to create reloadable object files.
12991 reload_flag=$lt_reload_flag
12992 reload_cmds=$lt_reload_cmds
12993
12994 # How to pass a linker flag through the compiler.
12995 wl=$lt_lt_prog_compiler_wl_CXX
12996
12997 # Object file suffix (normally "o").
12998 objext="$ac_objext"
12999
13000 # Old archive suffix (normally "a").
13001 libext="$libext"
13002
13003 # Shared library suffix (normally ".so").
13004 shrext_cmds='$shrext_cmds'
13005
13006 # Executable file suffix (normally "").
13007 exeext="$exeext"
13008
13009 # Additional compiler flags for building library objects.
13010 pic_flag=$lt_lt_prog_compiler_pic_CXX
13011 pic_mode=$pic_mode
13012
13013 # What is the maximum length of a command?
13014 max_cmd_len=$lt_cv_sys_max_cmd_len
13015
13016 # Does compiler simultaneously support -c and -o options?
13017 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13018
13019 # Must we lock files when doing compilation?
13020 need_locks=$lt_need_locks
13021
13022 # Do we need the lib prefix for modules?
13023 need_lib_prefix=$need_lib_prefix
13024
13025 # Do we need a version for libraries?
13026 need_version=$need_version
13027
13028 # Whether dlopen is supported.
13029 dlopen_support=$enable_dlopen
13030
13031 # Whether dlopen of programs is supported.
13032 dlopen_self=$enable_dlopen_self
13033
13034 # Whether dlopen of statically linked programs is supported.
13035 dlopen_self_static=$enable_dlopen_self_static
13036
13037 # Compiler flag to prevent dynamic linking.
13038 link_static_flag=$lt_lt_prog_compiler_static_CXX
13039
13040 # Compiler flag to turn off builtin functions.
13041 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13042
13043 # Compiler flag to allow reflexive dlopens.
13044 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13045
13046 # Compiler flag to generate shared objects directly from archives.
13047 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13048
13049 # Compiler flag to generate thread-safe objects.
13050 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13051
13052 # Library versioning type.
13053 version_type=$version_type
13054
13055 # Format of library name prefix.
13056 libname_spec=$lt_libname_spec
13057
13058 # List of archive names. First name is the real one, the rest are links.
13059 # The last name is the one that the linker finds with -lNAME.
13060 library_names_spec=$lt_library_names_spec
13061
13062 # The coded name of the library, if different from the real name.
13063 soname_spec=$lt_soname_spec
13064
13065 # Commands used to build and install an old-style archive.
13066 RANLIB=$lt_RANLIB
13067 old_archive_cmds=$lt_old_archive_cmds_CXX
13068 old_postinstall_cmds=$lt_old_postinstall_cmds
13069 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13070
13071 # Create an old-style archive from a shared archive.
13072 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13073
13074 # Create a temporary old-style archive to link instead of a shared archive.
13075 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13076
13077 # Commands used to build and install a shared archive.
13078 archive_cmds=$lt_archive_cmds_CXX
13079 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13080 postinstall_cmds=$lt_postinstall_cmds
13081 postuninstall_cmds=$lt_postuninstall_cmds
13082
13083 # Commands used to build a loadable module (assumed same as above if empty)
13084 module_cmds=$lt_module_cmds_CXX
13085 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13086
13087 # Commands to strip libraries.
13088 old_striplib=$lt_old_striplib
13089 striplib=$lt_striplib
13090
13091 # Dependencies to place before the objects being linked to create a
13092 # shared library.
13093 predep_objects=$lt_predep_objects_CXX
13094
13095 # Dependencies to place after the objects being linked to create a
13096 # shared library.
13097 postdep_objects=$lt_postdep_objects_CXX
13098
13099 # Dependencies to place before the objects being linked to create a
13100 # shared library.
13101 predeps=$lt_predeps_CXX
13102
13103 # Dependencies to place after the objects being linked to create a
13104 # shared library.
13105 postdeps=$lt_postdeps_CXX
13106
13107 # The directories searched by this compiler when creating a shared
13108 # library
13109 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13110
13111 # The library search path used internally by the compiler when linking
13112 # a shared library.
13113 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13114
13115 # Method to check whether dependent libraries are shared objects.
13116 deplibs_check_method=$lt_deplibs_check_method
13117
13118 # Command to use when deplibs_check_method == file_magic.
13119 file_magic_cmd=$lt_file_magic_cmd
13120
13121 # Flag that allows shared libraries with undefined symbols to be built.
13122 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13123
13124 # Flag that forces no undefined symbols.
13125 no_undefined_flag=$lt_no_undefined_flag_CXX
13126
13127 # Commands used to finish a libtool library installation in a directory.
13128 finish_cmds=$lt_finish_cmds
13129
13130 # Same as above, but a single script fragment to be evaled but not shown.
13131 finish_eval=$lt_finish_eval
13132
13133 # Take the output of nm and produce a listing of raw symbols and C names.
13134 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13135
13136 # Transform the output of nm in a proper C declaration
13137 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13138
13139 # Transform the output of nm in a C name address pair
13140 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13141
13142 # This is the shared library runtime path variable.
13143 runpath_var=$runpath_var
13144
13145 # This is the shared library path variable.
13146 shlibpath_var=$shlibpath_var
13147
13148 # Is shlibpath searched before the hard-coded library search path?
13149 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13150
13151 # How to hardcode a shared library path into an executable.
13152 hardcode_action=$hardcode_action_CXX
13153
13154 # Whether we should hardcode library paths into libraries.
13155 hardcode_into_libs=$hardcode_into_libs
13156
13157 # Flag to hardcode \$libdir into a binary during linking.
13158 # This must work even if \$libdir does not exist.
13159 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13160
13161 # If ld is used when linking, flag to hardcode \$libdir into
13162 # a binary during linking. This must work even if \$libdir does
13163 # not exist.
13164 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13165
13166 # Whether we need a single -rpath flag with a separated argument.
13167 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13168
13169 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13170 # resulting binary.
13171 hardcode_direct=$hardcode_direct_CXX
13172
13173 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13174 # resulting binary.
13175 hardcode_minus_L=$hardcode_minus_L_CXX
13176
13177 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13178 # the resulting binary.
13179 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13180
13181 # Set to yes if building a shared library automatically hardcodes DIR into the library
13182 # and all subsequent libraries and executables linked against it.
13183 hardcode_automatic=$hardcode_automatic_CXX
13184
13185 # Variables whose values should be saved in libtool wrapper scripts and
13186 # restored at relink time.
13187 variables_saved_for_relink="$variables_saved_for_relink"
13188
13189 # Whether libtool must link a program against all its dependency libraries.
13190 link_all_deplibs=$link_all_deplibs_CXX
13191
13192 # Compile-time system search path for libraries
13193 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13194
13195 # Run-time system search path for libraries
13196 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13197
13198 # Fix the shell variable \$srcfile for the compiler.
13199 fix_srcfile_path=$lt_fix_srcfile_path
13200
13201 # Set to yes if exported symbols are required.
13202 always_export_symbols=$always_export_symbols_CXX
13203
13204 # The commands to list exported symbols.
13205 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13206
13207 # The commands to extract the exported symbol list from a shared archive.
13208 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13209
13210 # Symbols that should not be listed in the preloaded symbols.
13211 exclude_expsyms=$lt_exclude_expsyms_CXX
13212
13213 # Symbols that must always be exported.
13214 include_expsyms=$lt_include_expsyms_CXX
13215
13216 # ### END LIBTOOL TAG CONFIG: $tagname
13217
13218 __EOF__
13219
13220
13221 else
13222 # If there is no Makefile yet, we rely on a make rule to execute
13223 # `config.status --recheck' to rerun these tests and create the
13224 # libtool script then.
13225 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13226 if test -f "$ltmain_in"; then
13227 test -f Makefile && make "$ltmain"
13228 fi
13229 fi
13230
13231
13232 ac_ext=c
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237
13238 CC=$lt_save_CC
13239 LDCXX=$LD
13240 LD=$lt_save_LD
13241 GCC=$lt_save_GCC
13242 with_gnu_ldcxx=$with_gnu_ld
13243 with_gnu_ld=$lt_save_with_gnu_ld
13244 lt_cv_path_LDCXX=$lt_cv_path_LD
13245 lt_cv_path_LD=$lt_save_path_LD
13246 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13247 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13248
13249 else
13250 tagname=""
13251 fi
13252 ;;
13253
13254 F77)
13255 if test -n "$F77" && test "X$F77" != "Xno"; then
13256
13257 ac_ext=f
13258 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13259 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13260 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13261
13262
13263 archive_cmds_need_lc_F77=no
13264 allow_undefined_flag_F77=
13265 always_export_symbols_F77=no
13266 archive_expsym_cmds_F77=
13267 export_dynamic_flag_spec_F77=
13268 hardcode_direct_F77=no
13269 hardcode_libdir_flag_spec_F77=
13270 hardcode_libdir_flag_spec_ld_F77=
13271 hardcode_libdir_separator_F77=
13272 hardcode_minus_L_F77=no
13273 hardcode_automatic_F77=no
13274 module_cmds_F77=
13275 module_expsym_cmds_F77=
13276 link_all_deplibs_F77=unknown
13277 old_archive_cmds_F77=$old_archive_cmds
13278 no_undefined_flag_F77=
13279 whole_archive_flag_spec_F77=
13280 enable_shared_with_static_runtimes_F77=no
13281
13282 # Source file extension for f77 test sources.
13283 ac_ext=f
13284
13285 # Object file extension for compiled f77 test sources.
13286 objext=o
13287 objext_F77=$objext
13288
13289 # Code to be used in simple compile tests
13290 lt_simple_compile_test_code="\
13291 subroutine t
13292 return
13293 end
13294 "
13295
13296 # Code to be used in simple link tests
13297 lt_simple_link_test_code="\
13298 program t
13299 end
13300 "
13301
13302 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13303
13304 # If no C compiler was specified, use CC.
13305 LTCC=${LTCC-"$CC"}
13306
13307 # If no C compiler flags were specified, use CFLAGS.
13308 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13309
13310 # Allow CC to be a program name with arguments.
13311 compiler=$CC
13312
13313
13314 # save warnings/boilerplate of simple test code
13315 ac_outfile=conftest.$ac_objext
13316 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13317 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13318 _lt_compiler_boilerplate=`cat conftest.err`
13319 $rm conftest*
13320
13321 ac_outfile=conftest.$ac_objext
13322 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13323 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13324 _lt_linker_boilerplate=`cat conftest.err`
13325 $rm -r conftest*
13326
13327
13328 # Allow CC to be a program name with arguments.
13329 lt_save_CC="$CC"
13330 CC=${F77-"f77"}
13331 compiler=$CC
13332 compiler_F77=$CC
13333 for cc_temp in $compiler""; do
13334 case $cc_temp in
13335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13337 \-*) ;;
13338 *) break;;
13339 esac
13340 done
13341 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13342
13343
13344 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13345 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13346 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13347 echo "${ECHO_T}$can_build_shared" >&6
13348
13349 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13350 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13351 test "$can_build_shared" = "no" && enable_shared=no
13352
13353 # On AIX, shared libraries and static libraries use the same namespace, and
13354 # are all built from PIC.
13355 case $host_os in
13356 aix3*)
13357 test "$enable_shared" = yes && enable_static=no
13358 if test -n "$RANLIB"; then
13359 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13360 postinstall_cmds='$RANLIB $lib'
13361 fi
13362 ;;
13363 aix[4-9]*)
13364 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13365 test "$enable_shared" = yes && enable_static=no
13366 fi
13367 ;;
13368 esac
13369 echo "$as_me:$LINENO: result: $enable_shared" >&5
13370 echo "${ECHO_T}$enable_shared" >&6
13371
13372 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13373 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13374 # Make sure either enable_shared or enable_static is yes.
13375 test "$enable_shared" = yes || enable_static=yes
13376 echo "$as_me:$LINENO: result: $enable_static" >&5
13377 echo "${ECHO_T}$enable_static" >&6
13378
13379 GCC_F77="$G77"
13380 LD_F77="$LD"
13381
13382 lt_prog_compiler_wl_F77=
13383 lt_prog_compiler_pic_F77=
13384 lt_prog_compiler_static_F77=
13385
13386 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13387 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13388
13389 if test "$GCC" = yes; then
13390 lt_prog_compiler_wl_F77='-Wl,'
13391 lt_prog_compiler_static_F77='-static'
13392
13393 case $host_os in
13394 aix*)
13395 # All AIX code is PIC.
13396 if test "$host_cpu" = ia64; then
13397 # AIX 5 now supports IA64 processor
13398 lt_prog_compiler_static_F77='-Bstatic'
13399 fi
13400 ;;
13401
13402 amigaos*)
13403 # FIXME: we need at least 68020 code to build shared libraries, but
13404 # adding the `-m68020' flag to GCC prevents building anything better,
13405 # like `-m68040'.
13406 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13407 ;;
13408
13409 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13410 # PIC is the default for these OSes.
13411 ;;
13412
13413 mingw* | cygwin* | pw32* | os2*)
13414 # This hack is so that the source file can tell whether it is being
13415 # built for inclusion in a dll (and should export symbols for example).
13416 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13417 # (--disable-auto-import) libraries
13418 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13419 ;;
13420
13421 darwin* | rhapsody*)
13422 # PIC is the default on this platform
13423 # Common symbols not allowed in MH_DYLIB files
13424 lt_prog_compiler_pic_F77='-fno-common'
13425 ;;
13426
13427 interix[3-9]*)
13428 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13429 # Instead, we relocate shared libraries at runtime.
13430 ;;
13431
13432 msdosdjgpp*)
13433 # Just because we use GCC doesn't mean we suddenly get shared libraries
13434 # on systems that don't support them.
13435 lt_prog_compiler_can_build_shared_F77=no
13436 enable_shared=no
13437 ;;
13438
13439 sysv4*MP*)
13440 if test -d /usr/nec; then
13441 lt_prog_compiler_pic_F77=-Kconform_pic
13442 fi
13443 ;;
13444
13445 hpux*)
13446 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13447 # not for PA HP-UX.
13448 case $host_cpu in
13449 hppa*64*|ia64*)
13450 # +Z the default
13451 ;;
13452 *)
13453 lt_prog_compiler_pic_F77='-fPIC'
13454 ;;
13455 esac
13456 ;;
13457
13458 *)
13459 lt_prog_compiler_pic_F77='-fPIC'
13460 ;;
13461 esac
13462 else
13463 # PORTME Check for flag to pass linker flags through the system compiler.
13464 case $host_os in
13465 aix*)
13466 lt_prog_compiler_wl_F77='-Wl,'
13467 if test "$host_cpu" = ia64; then
13468 # AIX 5 now supports IA64 processor
13469 lt_prog_compiler_static_F77='-Bstatic'
13470 else
13471 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13472 fi
13473 ;;
13474 darwin*)
13475 # PIC is the default on this platform
13476 # Common symbols not allowed in MH_DYLIB files
13477 case $cc_basename in
13478 xlc*)
13479 lt_prog_compiler_pic_F77='-qnocommon'
13480 lt_prog_compiler_wl_F77='-Wl,'
13481 ;;
13482 esac
13483 ;;
13484
13485 mingw* | cygwin* | pw32* | os2*)
13486 # This hack is so that the source file can tell whether it is being
13487 # built for inclusion in a dll (and should export symbols for example).
13488 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13489 ;;
13490
13491 hpux9* | hpux10* | hpux11*)
13492 lt_prog_compiler_wl_F77='-Wl,'
13493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13494 # not for PA HP-UX.
13495 case $host_cpu in
13496 hppa*64*|ia64*)
13497 # +Z the default
13498 ;;
13499 *)
13500 lt_prog_compiler_pic_F77='+Z'
13501 ;;
13502 esac
13503 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13504 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13505 ;;
13506
13507 irix5* | irix6* | nonstopux*)
13508 lt_prog_compiler_wl_F77='-Wl,'
13509 # PIC (with -KPIC) is the default.
13510 lt_prog_compiler_static_F77='-non_shared'
13511 ;;
13512
13513 newsos6)
13514 lt_prog_compiler_pic_F77='-KPIC'
13515 lt_prog_compiler_static_F77='-Bstatic'
13516 ;;
13517
13518 linux* | k*bsd*-gnu)
13519 case $cc_basename in
13520 icc* | ecc*)
13521 lt_prog_compiler_wl_F77='-Wl,'
13522 lt_prog_compiler_pic_F77='-KPIC'
13523 lt_prog_compiler_static_F77='-static'
13524 ;;
13525 pgcc* | pgf77* | pgf90* | pgf95*)
13526 # Portland Group compilers (*not* the Pentium gcc compiler,
13527 # which looks to be a dead project)
13528 lt_prog_compiler_wl_F77='-Wl,'
13529 lt_prog_compiler_pic_F77='-fpic'
13530 lt_prog_compiler_static_F77='-Bstatic'
13531 ;;
13532 ccc*)
13533 lt_prog_compiler_wl_F77='-Wl,'
13534 # All Alpha code is PIC.
13535 lt_prog_compiler_static_F77='-non_shared'
13536 ;;
13537 *)
13538 case `$CC -V 2>&1 | sed 5q` in
13539 *Sun\ C*)
13540 # Sun C 5.9
13541 lt_prog_compiler_pic_F77='-KPIC'
13542 lt_prog_compiler_static_F77='-Bstatic'
13543 lt_prog_compiler_wl_F77='-Wl,'
13544 ;;
13545 *Sun\ F*)
13546 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13547 lt_prog_compiler_pic_F77='-KPIC'
13548 lt_prog_compiler_static_F77='-Bstatic'
13549 lt_prog_compiler_wl_F77=''
13550 ;;
13551 esac
13552 ;;
13553 esac
13554 ;;
13555
13556 osf3* | osf4* | osf5*)
13557 lt_prog_compiler_wl_F77='-Wl,'
13558 # All OSF/1 code is PIC.
13559 lt_prog_compiler_static_F77='-non_shared'
13560 ;;
13561
13562 rdos*)
13563 lt_prog_compiler_static_F77='-non_shared'
13564 ;;
13565
13566 solaris*)
13567 lt_prog_compiler_pic_F77='-KPIC'
13568 lt_prog_compiler_static_F77='-Bstatic'
13569 case $cc_basename in
13570 f77* | f90* | f95*)
13571 lt_prog_compiler_wl_F77='-Qoption ld ';;
13572 *)
13573 lt_prog_compiler_wl_F77='-Wl,';;
13574 esac
13575 ;;
13576
13577 sunos4*)
13578 lt_prog_compiler_wl_F77='-Qoption ld '
13579 lt_prog_compiler_pic_F77='-PIC'
13580 lt_prog_compiler_static_F77='-Bstatic'
13581 ;;
13582
13583 sysv4 | sysv4.2uw2* | sysv4.3*)
13584 lt_prog_compiler_wl_F77='-Wl,'
13585 lt_prog_compiler_pic_F77='-KPIC'
13586 lt_prog_compiler_static_F77='-Bstatic'
13587 ;;
13588
13589 sysv4*MP*)
13590 if test -d /usr/nec ;then
13591 lt_prog_compiler_pic_F77='-Kconform_pic'
13592 lt_prog_compiler_static_F77='-Bstatic'
13593 fi
13594 ;;
13595
13596 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13597 lt_prog_compiler_wl_F77='-Wl,'
13598 lt_prog_compiler_pic_F77='-KPIC'
13599 lt_prog_compiler_static_F77='-Bstatic'
13600 ;;
13601
13602 unicos*)
13603 lt_prog_compiler_wl_F77='-Wl,'
13604 lt_prog_compiler_can_build_shared_F77=no
13605 ;;
13606
13607 uts4*)
13608 lt_prog_compiler_pic_F77='-pic'
13609 lt_prog_compiler_static_F77='-Bstatic'
13610 ;;
13611
13612 *)
13613 lt_prog_compiler_can_build_shared_F77=no
13614 ;;
13615 esac
13616 fi
13617
13618 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13619 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13620
13621 #
13622 # Check to make sure the PIC flag actually works.
13623 #
13624 if test -n "$lt_prog_compiler_pic_F77"; then
13625
13626 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13627 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13628 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 else
13631 lt_cv_prog_compiler_pic_works_F77=no
13632 ac_outfile=conftest.$ac_objext
13633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13634 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13635 # Insert the option either (1) after the last *FLAGS variable, or
13636 # (2) before a word containing "conftest.", or (3) at the end.
13637 # Note that $ac_compile itself does not contain backslashes and begins
13638 # with a dollar sign (not a hyphen), so the echo should work correctly.
13639 # The option is referenced via a variable to avoid confusing sed.
13640 lt_compile=`echo "$ac_compile" | $SED \
13641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13643 -e 's:$: $lt_compiler_flag:'`
13644 (eval echo "\"\$as_me:13644: $lt_compile\"" >&5)
13645 (eval "$lt_compile" 2>conftest.err)
13646 ac_status=$?
13647 cat conftest.err >&5
13648 echo "$as_me:13648: \$? = $ac_status" >&5
13649 if (exit $ac_status) && test -s "$ac_outfile"; then
13650 # The compiler can only warn and ignore the option if not recognized
13651 # So say no if there are warnings other than the usual output.
13652 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13655 lt_cv_prog_compiler_pic_works_F77=yes
13656 fi
13657 fi
13658 $rm conftest*
13659
13660 fi
13661 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13662 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6
13663
13664 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13665 case $lt_prog_compiler_pic_F77 in
13666 "" | " "*) ;;
13667 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13668 esac
13669 else
13670 lt_prog_compiler_pic_F77=
13671 lt_prog_compiler_can_build_shared_F77=no
13672 fi
13673
13674 fi
13675 case $host_os in
13676 # For platforms which do not support PIC, -DPIC is meaningless:
13677 *djgpp*)
13678 lt_prog_compiler_pic_F77=
13679 ;;
13680 *)
13681 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13682 ;;
13683 esac
13684
13685 #
13686 # Check to make sure the static flag actually works.
13687 #
13688 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13689 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13690 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13691 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694 lt_cv_prog_compiler_static_works_F77=no
13695 save_LDFLAGS="$LDFLAGS"
13696 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13697 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13698 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13699 # The linker can only warn and ignore the option if not recognized
13700 # So say no if there are warnings
13701 if test -s conftest.err; then
13702 # Append any errors to the config.log.
13703 cat conftest.err 1>&5
13704 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13706 if diff conftest.exp conftest.er2 >/dev/null; then
13707 lt_cv_prog_compiler_static_works_F77=yes
13708 fi
13709 else
13710 lt_cv_prog_compiler_static_works_F77=yes
13711 fi
13712 fi
13713 $rm -r conftest*
13714 LDFLAGS="$save_LDFLAGS"
13715
13716 fi
13717 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
13718 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6
13719
13720 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13721 :
13722 else
13723 lt_prog_compiler_static_F77=
13724 fi
13725
13726
13727 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13728 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13729 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732 lt_cv_prog_compiler_c_o_F77=no
13733 $rm -r conftest 2>/dev/null
13734 mkdir conftest
13735 cd conftest
13736 mkdir out
13737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13738
13739 lt_compiler_flag="-o out/conftest2.$ac_objext"
13740 # Insert the option either (1) after the last *FLAGS variable, or
13741 # (2) before a word containing "conftest.", or (3) at the end.
13742 # Note that $ac_compile itself does not contain backslashes and begins
13743 # with a dollar sign (not a hyphen), so the echo should work correctly.
13744 lt_compile=`echo "$ac_compile" | $SED \
13745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13747 -e 's:$: $lt_compiler_flag:'`
13748 (eval echo "\"\$as_me:13748: $lt_compile\"" >&5)
13749 (eval "$lt_compile" 2>out/conftest.err)
13750 ac_status=$?
13751 cat out/conftest.err >&5
13752 echo "$as_me:13752: \$? = $ac_status" >&5
13753 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13754 then
13755 # The compiler can only warn and ignore the option if not recognized
13756 # So say no if there are warnings
13757 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13760 lt_cv_prog_compiler_c_o_F77=yes
13761 fi
13762 fi
13763 chmod u+w . 2>&5
13764 $rm conftest*
13765 # SGI C++ compiler will create directory out/ii_files/ for
13766 # template instantiation
13767 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13768 $rm out/* && rmdir out
13769 cd ..
13770 rmdir conftest
13771 $rm conftest*
13772
13773 fi
13774 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13775 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13776
13777
13778 hard_links="nottested"
13779 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13780 # do not overwrite the value of need_locks provided by the user
13781 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13782 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13783 hard_links=yes
13784 $rm conftest*
13785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13786 touch conftest.a
13787 ln conftest.a conftest.b 2>&5 || hard_links=no
13788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13789 echo "$as_me:$LINENO: result: $hard_links" >&5
13790 echo "${ECHO_T}$hard_links" >&6
13791 if test "$hard_links" = no; then
13792 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13793 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13794 need_locks=warn
13795 fi
13796 else
13797 need_locks=no
13798 fi
13799
13800 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13801 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13802
13803 runpath_var=
13804 allow_undefined_flag_F77=
13805 enable_shared_with_static_runtimes_F77=no
13806 archive_cmds_F77=
13807 archive_expsym_cmds_F77=
13808 old_archive_From_new_cmds_F77=
13809 old_archive_from_expsyms_cmds_F77=
13810 export_dynamic_flag_spec_F77=
13811 whole_archive_flag_spec_F77=
13812 thread_safe_flag_spec_F77=
13813 hardcode_libdir_flag_spec_F77=
13814 hardcode_libdir_flag_spec_ld_F77=
13815 hardcode_libdir_separator_F77=
13816 hardcode_direct_F77=no
13817 hardcode_minus_L_F77=no
13818 hardcode_shlibpath_var_F77=unsupported
13819 link_all_deplibs_F77=unknown
13820 hardcode_automatic_F77=no
13821 module_cmds_F77=
13822 module_expsym_cmds_F77=
13823 always_export_symbols_F77=no
13824 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13825 # include_expsyms should be a list of space-separated symbols to be *always*
13826 # included in the symbol list
13827 include_expsyms_F77=
13828 # exclude_expsyms can be an extended regexp of symbols to exclude
13829 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13830 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13831 # as well as any symbol that contains `d'.
13832 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13833 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13834 # platforms (ab)use it in PIC code, but their linkers get confused if
13835 # the symbol is explicitly referenced. Since portable code cannot
13836 # rely on this symbol name, it's probably fine to never include it in
13837 # preloaded symbol tables.
13838 # Exclude shared library initialization/finalization symbols.
13839 extract_expsyms_cmds=
13840 # Just being paranoid about ensuring that cc_basename is set.
13841 for cc_temp in $compiler""; do
13842 case $cc_temp in
13843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13845 \-*) ;;
13846 *) break;;
13847 esac
13848 done
13849 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13850
13851 case $host_os in
13852 cygwin* | mingw* | pw32*)
13853 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13854 # When not using gcc, we currently assume that we are using
13855 # Microsoft Visual C++.
13856 if test "$GCC" != yes; then
13857 with_gnu_ld=no
13858 fi
13859 ;;
13860 interix*)
13861 # we just hope/assume this is gcc and not c89 (= MSVC++)
13862 with_gnu_ld=yes
13863 ;;
13864 openbsd*)
13865 with_gnu_ld=no
13866 ;;
13867 esac
13868
13869 ld_shlibs_F77=yes
13870 if test "$with_gnu_ld" = yes; then
13871 # If archive_cmds runs LD, not CC, wlarc should be empty
13872 wlarc='${wl}'
13873
13874 # Set some defaults for GNU ld with shared library support. These
13875 # are reset later if shared libraries are not supported. Putting them
13876 # here allows them to be overridden if necessary.
13877 runpath_var=LD_RUN_PATH
13878 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13879 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13880 # ancient GNU ld didn't support --whole-archive et. al.
13881 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13882 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13883 else
13884 whole_archive_flag_spec_F77=
13885 fi
13886 supports_anon_versioning=no
13887 case `$LD -v 2>/dev/null` in
13888 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13889 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13890 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13891 *\ 2.11.*) ;; # other 2.11 versions
13892 *) supports_anon_versioning=yes ;;
13893 esac
13894
13895 # See if GNU ld supports shared libraries.
13896 case $host_os in
13897 aix[3-9]*)
13898 # On AIX/PPC, the GNU linker is very broken
13899 if test "$host_cpu" != ia64; then
13900 ld_shlibs_F77=no
13901 cat <<EOF 1>&2
13902
13903 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13904 *** to be unable to reliably create shared libraries on AIX.
13905 *** Therefore, libtool is disabling shared libraries support. If you
13906 *** really care for shared libraries, you may want to modify your PATH
13907 *** so that a non-GNU linker is found, and then restart.
13908
13909 EOF
13910 fi
13911 ;;
13912
13913 amigaos*)
13914 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)'
13915 hardcode_libdir_flag_spec_F77='-L$libdir'
13916 hardcode_minus_L_F77=yes
13917
13918 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
13919 # that the semantics of dynamic libraries on AmigaOS, at least up
13920 # to version 4, is to share data among multiple programs linked
13921 # with the same dynamic library. Since this doesn't match the
13922 # behavior of shared libraries on other platforms, we can't use
13923 # them.
13924 ld_shlibs_F77=no
13925 ;;
13926
13927 beos*)
13928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13929 allow_undefined_flag_F77=unsupported
13930 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
13931 # support --undefined. This deserves some investigation. FIXME
13932 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13933 else
13934 ld_shlibs_F77=no
13935 fi
13936 ;;
13937
13938 cygwin* | mingw* | pw32*)
13939 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13940 # as there is no search path for DLLs.
13941 hardcode_libdir_flag_spec_F77='-L$libdir'
13942 allow_undefined_flag_F77=unsupported
13943 always_export_symbols_F77=no
13944 enable_shared_with_static_runtimes_F77=yes
13945 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13946
13947 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13948 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13949 # If the export-symbols file already is a .def file (1st line
13950 # is EXPORTS), use it as is; otherwise, prepend...
13951 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13952 cp $export_symbols $output_objdir/$soname.def;
13953 else
13954 echo EXPORTS > $output_objdir/$soname.def;
13955 cat $export_symbols >> $output_objdir/$soname.def;
13956 fi~
13957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13958 else
13959 ld_shlibs_F77=no
13960 fi
13961 ;;
13962
13963 interix[3-9]*)
13964 hardcode_direct_F77=no
13965 hardcode_shlibpath_var_F77=no
13966 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13967 export_dynamic_flag_spec_F77='${wl}-E'
13968 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13969 # Instead, shared libraries are loaded at an image base (0x10000000 by
13970 # default) and relocated if they conflict, which is a slow very memory
13971 # consuming and fragmenting process. To avoid this, we pick a random,
13972 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13973 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13974 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13975 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13976 ;;
13977
13978 gnu* | linux* | k*bsd*-gnu)
13979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13980 tmp_addflag=
13981 case $cc_basename,$host_cpu in
13982 pgcc*) # Portland Group C compiler
13983 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'
13984 tmp_addflag=' $pic_flag'
13985 ;;
13986 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13987 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'
13988 tmp_addflag=' $pic_flag -Mnomain' ;;
13989 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13990 tmp_addflag=' -i_dynamic' ;;
13991 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13992 tmp_addflag=' -i_dynamic -nofor_main' ;;
13993 ifc* | ifort*) # Intel Fortran compiler
13994 tmp_addflag=' -nofor_main' ;;
13995 esac
13996 case `$CC -V 2>&1 | sed 5q` in
13997 *Sun\ C*) # Sun C 5.9
13998 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13999 tmp_sharedflag='-G' ;;
14000 *Sun\ F*) # Sun Fortran 8.3
14001 tmp_sharedflag='-G' ;;
14002 *)
14003 tmp_sharedflag='-shared' ;;
14004 esac
14005 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006
14007 if test $supports_anon_versioning = yes; then
14008 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14010 $echo "local: *; };" >> $output_objdir/$libname.ver~
14011 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14012 fi
14013 else
14014 ld_shlibs_F77=no
14015 fi
14016 ;;
14017
14018 netbsd*)
14019 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14020 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14021 wlarc=
14022 else
14023 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14024 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14025 fi
14026 ;;
14027
14028 solaris*)
14029 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14030 ld_shlibs_F77=no
14031 cat <<EOF 1>&2
14032
14033 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14034 *** create shared libraries on Solaris systems. Therefore, libtool
14035 *** is disabling shared libraries support. We urge you to upgrade GNU
14036 *** binutils to release 2.9.1 or newer. Another option is to modify
14037 *** your PATH or compiler configuration so that the native linker is
14038 *** used, and then restart.
14039
14040 EOF
14041 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14042 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14043 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14044 else
14045 ld_shlibs_F77=no
14046 fi
14047 ;;
14048
14049 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14050 case `$LD -v 2>&1` in
14051 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14052 ld_shlibs_F77=no
14053 cat <<_LT_EOF 1>&2
14054
14055 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14056 *** reliably create shared libraries on SCO systems. Therefore, libtool
14057 *** is disabling shared libraries support. We urge you to upgrade GNU
14058 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14059 *** your PATH or compiler configuration so that the native linker is
14060 *** used, and then restart.
14061
14062 _LT_EOF
14063 ;;
14064 *)
14065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14066 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14067 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14068 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14069 else
14070 ld_shlibs_F77=no
14071 fi
14072 ;;
14073 esac
14074 ;;
14075
14076 sunos4*)
14077 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14078 wlarc=
14079 hardcode_direct_F77=yes
14080 hardcode_shlibpath_var_F77=no
14081 ;;
14082
14083 *)
14084 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14087 else
14088 ld_shlibs_F77=no
14089 fi
14090 ;;
14091 esac
14092
14093 if test "$ld_shlibs_F77" = no; then
14094 runpath_var=
14095 hardcode_libdir_flag_spec_F77=
14096 export_dynamic_flag_spec_F77=
14097 whole_archive_flag_spec_F77=
14098 fi
14099 else
14100 # PORTME fill in a description of your system's linker (not GNU ld)
14101 case $host_os in
14102 aix3*)
14103 allow_undefined_flag_F77=unsupported
14104 always_export_symbols_F77=yes
14105 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'
14106 # Note: this linker hardcodes the directories in LIBPATH if there
14107 # are no directories specified by -L.
14108 hardcode_minus_L_F77=yes
14109 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14110 # Neither direct hardcoding nor static linking is supported with a
14111 # broken collect2.
14112 hardcode_direct_F77=unsupported
14113 fi
14114 ;;
14115
14116 aix[4-9]*)
14117 if test "$host_cpu" = ia64; then
14118 # On IA64, the linker does run time linking by default, so we don't
14119 # have to do anything special.
14120 aix_use_runtimelinking=no
14121 exp_sym_flag='-Bexport'
14122 no_entry_flag=""
14123 else
14124 # If we're using GNU nm, then we don't want the "-C" option.
14125 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14126 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14127 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'
14128 else
14129 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'
14130 fi
14131 aix_use_runtimelinking=no
14132
14133 # Test if we are trying to use run time linking or normal
14134 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14135 # need to do runtime linking.
14136 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14137 for ld_flag in $LDFLAGS; do
14138 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14139 aix_use_runtimelinking=yes
14140 break
14141 fi
14142 done
14143 ;;
14144 esac
14145
14146 exp_sym_flag='-bexport'
14147 no_entry_flag='-bnoentry'
14148 fi
14149
14150 # When large executables or shared objects are built, AIX ld can
14151 # have problems creating the table of contents. If linking a library
14152 # or program results in "error TOC overflow" add -mminimal-toc to
14153 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14154 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14155
14156 archive_cmds_F77=''
14157 hardcode_direct_F77=yes
14158 hardcode_libdir_separator_F77=':'
14159 link_all_deplibs_F77=yes
14160
14161 if test "$GCC" = yes; then
14162 case $host_os in aix4.[012]|aix4.[012].*)
14163 # We only want to do this on AIX 4.2 and lower, the check
14164 # below for broken collect2 doesn't work under 4.3+
14165 collect2name=`${CC} -print-prog-name=collect2`
14166 if test -f "$collect2name" && \
14167 strings "$collect2name" | grep resolve_lib_name >/dev/null
14168 then
14169 # We have reworked collect2
14170 :
14171 else
14172 # We have old collect2
14173 hardcode_direct_F77=unsupported
14174 # It fails to find uninstalled libraries when the uninstalled
14175 # path is not listed in the libpath. Setting hardcode_minus_L
14176 # to unsupported forces relinking
14177 hardcode_minus_L_F77=yes
14178 hardcode_libdir_flag_spec_F77='-L$libdir'
14179 hardcode_libdir_separator_F77=
14180 fi
14181 ;;
14182 esac
14183 shared_flag='-shared'
14184 if test "$aix_use_runtimelinking" = yes; then
14185 shared_flag="$shared_flag "'${wl}-G'
14186 fi
14187 else
14188 # not using gcc
14189 if test "$host_cpu" = ia64; then
14190 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14191 # chokes on -Wl,-G. The following line is correct:
14192 shared_flag='-G'
14193 else
14194 if test "$aix_use_runtimelinking" = yes; then
14195 shared_flag='${wl}-G'
14196 else
14197 shared_flag='${wl}-bM:SRE'
14198 fi
14199 fi
14200 fi
14201
14202 # It seems that -bexpall does not export symbols beginning with
14203 # underscore (_), so it is better to generate a list of symbols to export.
14204 always_export_symbols_F77=yes
14205 if test "$aix_use_runtimelinking" = yes; then
14206 # Warning - without using the other runtime loading flags (-brtl),
14207 # -berok will link without error, but may produce a broken library.
14208 allow_undefined_flag_F77='-berok'
14209 # Determine the default libpath from the value encoded in an empty executable.
14210 cat >conftest.$ac_ext <<_ACEOF
14211 program main
14212
14213 end
14214 _ACEOF
14215 rm -f conftest.$ac_objext conftest$ac_exeext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14217 (eval $ac_link) 2>conftest.er1
14218 ac_status=$?
14219 grep -v '^ *+' conftest.er1 >conftest.err
14220 rm -f conftest.er1
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -z "$ac_f77_werror_flag"
14225 || test ! -s conftest.err'
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest$ac_exeext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237
14238 lt_aix_libpath_sed='
14239 /Import File Strings/,/^$/ {
14240 /^0/ {
14241 s/^0 *\(.*\)$/\1/
14242 p
14243 }
14244 }'
14245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14246 # Check for a 64-bit object if we didn't find anything.
14247 if test -z "$aix_libpath"; then
14248 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14249 fi
14250 else
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14253
14254 fi
14255 rm -f conftest.err conftest.$ac_objext \
14256 conftest$ac_exeext conftest.$ac_ext
14257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14258
14259 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14260 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14261 else
14262 if test "$host_cpu" = ia64; then
14263 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14264 allow_undefined_flag_F77="-z nodefs"
14265 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14266 else
14267 # Determine the default libpath from the value encoded in an empty executable.
14268 cat >conftest.$ac_ext <<_ACEOF
14269 program main
14270
14271 end
14272 _ACEOF
14273 rm -f conftest.$ac_objext conftest$ac_exeext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275 (eval $ac_link) 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
14282 { ac_try='test -z "$ac_f77_werror_flag"
14283 || test ! -s conftest.err'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest$ac_exeext'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295
14296 lt_aix_libpath_sed='
14297 /Import File Strings/,/^$/ {
14298 /^0/ {
14299 s/^0 *\(.*\)$/\1/
14300 p
14301 }
14302 }'
14303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14304 # Check for a 64-bit object if we didn't find anything.
14305 if test -z "$aix_libpath"; then
14306 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14307 fi
14308 else
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14311
14312 fi
14313 rm -f conftest.err conftest.$ac_objext \
14314 conftest$ac_exeext conftest.$ac_ext
14315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14316
14317 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14318 # Warning - without using the other run time loading flags,
14319 # -berok will link without error, but may produce a broken library.
14320 no_undefined_flag_F77=' ${wl}-bernotok'
14321 allow_undefined_flag_F77=' ${wl}-berok'
14322 # Exported symbols can be pulled into shared objects from archives
14323 whole_archive_flag_spec_F77='$convenience'
14324 archive_cmds_need_lc_F77=yes
14325 # This is similar to how AIX traditionally builds its shared libraries.
14326 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14327 fi
14328 fi
14329 ;;
14330
14331 amigaos*)
14332 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)'
14333 hardcode_libdir_flag_spec_F77='-L$libdir'
14334 hardcode_minus_L_F77=yes
14335 # see comment about different semantics on the GNU ld section
14336 ld_shlibs_F77=no
14337 ;;
14338
14339 bsdi[45]*)
14340 export_dynamic_flag_spec_F77=-rdynamic
14341 ;;
14342
14343 cygwin* | mingw* | pw32*)
14344 # When not using gcc, we currently assume that we are using
14345 # Microsoft Visual C++.
14346 # hardcode_libdir_flag_spec is actually meaningless, as there is
14347 # no search path for DLLs.
14348 hardcode_libdir_flag_spec_F77=' '
14349 allow_undefined_flag_F77=unsupported
14350 # Tell ltmain to make .lib files, not .a files.
14351 libext=lib
14352 # Tell ltmain to make .dll files, not .so files.
14353 shrext_cmds=".dll"
14354 # FIXME: Setting linknames here is a bad hack.
14355 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14356 # The linker will automatically build a .lib file if we build a DLL.
14357 old_archive_From_new_cmds_F77='true'
14358 # FIXME: Should let the user specify the lib program.
14359 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14360 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14361 enable_shared_with_static_runtimes_F77=yes
14362 ;;
14363
14364 darwin* | rhapsody*)
14365 case $host_os in
14366 rhapsody* | darwin1.[012])
14367 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14368 ;;
14369 *) # Darwin 1.3 on
14370 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14371 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14372 else
14373 case ${MACOSX_DEPLOYMENT_TARGET} in
14374 10.[012])
14375 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14376 ;;
14377 10.*)
14378 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14379 ;;
14380 esac
14381 fi
14382 ;;
14383 esac
14384 archive_cmds_need_lc_F77=no
14385 hardcode_direct_F77=no
14386 hardcode_automatic_F77=yes
14387 hardcode_shlibpath_var_F77=unsupported
14388 whole_archive_flag_spec_F77=''
14389 link_all_deplibs_F77=yes
14390 if test "$GCC" = yes ; then
14391 output_verbose_link_cmd='echo'
14392 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14393 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14394 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14395 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14396 else
14397 case $cc_basename in
14398 xlc*)
14399 output_verbose_link_cmd='echo'
14400 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14401 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14402 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14403 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14404 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}'
14405 ;;
14406 *)
14407 ld_shlibs_F77=no
14408 ;;
14409 esac
14410 fi
14411 ;;
14412
14413 dgux*)
14414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14415 hardcode_libdir_flag_spec_F77='-L$libdir'
14416 hardcode_shlibpath_var_F77=no
14417 ;;
14418
14419 freebsd1*)
14420 ld_shlibs_F77=no
14421 ;;
14422
14423 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14424 # support. Future versions do this automatically, but an explicit c++rt0.o
14425 # does not break anything, and helps significantly (at the cost of a little
14426 # extra space).
14427 freebsd2.2*)
14428 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14429 hardcode_libdir_flag_spec_F77='-R$libdir'
14430 hardcode_direct_F77=yes
14431 hardcode_shlibpath_var_F77=no
14432 ;;
14433
14434 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14435 freebsd2*)
14436 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14437 hardcode_direct_F77=yes
14438 hardcode_minus_L_F77=yes
14439 hardcode_shlibpath_var_F77=no
14440 ;;
14441
14442 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14443 freebsd* | dragonfly*)
14444 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14445 hardcode_libdir_flag_spec_F77='-R$libdir'
14446 hardcode_direct_F77=yes
14447 hardcode_shlibpath_var_F77=no
14448 ;;
14449
14450 hpux9*)
14451 if test "$GCC" = yes; then
14452 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'
14453 else
14454 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'
14455 fi
14456 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14457 hardcode_libdir_separator_F77=:
14458 hardcode_direct_F77=yes
14459
14460 # hardcode_minus_L: Not really in the search PATH,
14461 # but as the default location of the library.
14462 hardcode_minus_L_F77=yes
14463 export_dynamic_flag_spec_F77='${wl}-E'
14464 ;;
14465
14466 hpux10*)
14467 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14468 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14469 else
14470 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14471 fi
14472 if test "$with_gnu_ld" = no; then
14473 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14474 hardcode_libdir_separator_F77=:
14475
14476 hardcode_direct_F77=yes
14477 export_dynamic_flag_spec_F77='${wl}-E'
14478
14479 # hardcode_minus_L: Not really in the search PATH,
14480 # but as the default location of the library.
14481 hardcode_minus_L_F77=yes
14482 fi
14483 ;;
14484
14485 hpux11*)
14486 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14487 case $host_cpu in
14488 hppa*64*)
14489 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14490 ;;
14491 ia64*)
14492 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14493 ;;
14494 *)
14495 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14496 ;;
14497 esac
14498 else
14499 case $host_cpu in
14500 hppa*64*)
14501 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14502 ;;
14503 ia64*)
14504 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14505 ;;
14506 *)
14507 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14508 ;;
14509 esac
14510 fi
14511 if test "$with_gnu_ld" = no; then
14512 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14513 hardcode_libdir_separator_F77=:
14514
14515 case $host_cpu in
14516 hppa*64*|ia64*)
14517 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14518 hardcode_direct_F77=no
14519 hardcode_shlibpath_var_F77=no
14520 ;;
14521 *)
14522 hardcode_direct_F77=yes
14523 export_dynamic_flag_spec_F77='${wl}-E'
14524
14525 # hardcode_minus_L: Not really in the search PATH,
14526 # but as the default location of the library.
14527 hardcode_minus_L_F77=yes
14528 ;;
14529 esac
14530 fi
14531 ;;
14532
14533 irix5* | irix6* | nonstopux*)
14534 if test "$GCC" = yes; then
14535 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'
14536 else
14537 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'
14538 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14539 fi
14540 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14541 hardcode_libdir_separator_F77=:
14542 link_all_deplibs_F77=yes
14543 ;;
14544
14545 netbsd*)
14546 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14547 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14548 else
14549 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14550 fi
14551 hardcode_libdir_flag_spec_F77='-R$libdir'
14552 hardcode_direct_F77=yes
14553 hardcode_shlibpath_var_F77=no
14554 ;;
14555
14556 newsos6)
14557 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14558 hardcode_direct_F77=yes
14559 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14560 hardcode_libdir_separator_F77=:
14561 hardcode_shlibpath_var_F77=no
14562 ;;
14563
14564 openbsd*)
14565 if test -f /usr/libexec/ld.so; then
14566 hardcode_direct_F77=yes
14567 hardcode_shlibpath_var_F77=no
14568 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14569 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14570 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14571 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14572 export_dynamic_flag_spec_F77='${wl}-E'
14573 else
14574 case $host_os in
14575 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14576 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14577 hardcode_libdir_flag_spec_F77='-R$libdir'
14578 ;;
14579 *)
14580 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14581 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14582 ;;
14583 esac
14584 fi
14585 else
14586 ld_shlibs_F77=no
14587 fi
14588 ;;
14589
14590 os2*)
14591 hardcode_libdir_flag_spec_F77='-L$libdir'
14592 hardcode_minus_L_F77=yes
14593 allow_undefined_flag_F77=unsupported
14594 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'
14595 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14596 ;;
14597
14598 osf3*)
14599 if test "$GCC" = yes; then
14600 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14601 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'
14602 else
14603 allow_undefined_flag_F77=' -expect_unresolved \*'
14604 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'
14605 fi
14606 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14607 hardcode_libdir_separator_F77=:
14608 ;;
14609
14610 osf4* | osf5*) # as osf3* with the addition of -msym flag
14611 if test "$GCC" = yes; then
14612 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14613 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'
14614 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14615 else
14616 allow_undefined_flag_F77=' -expect_unresolved \*'
14617 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'
14618 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~
14619 $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'
14620
14621 # Both c and cxx compiler support -rpath directly
14622 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14623 fi
14624 hardcode_libdir_separator_F77=:
14625 ;;
14626
14627 solaris*)
14628 no_undefined_flag_F77=' -z text'
14629 if test "$GCC" = yes; then
14630 wlarc='${wl}'
14631 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14632 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14633 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14634 else
14635 wlarc=''
14636 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14637 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14639 fi
14640 hardcode_libdir_flag_spec_F77='-R$libdir'
14641 hardcode_shlibpath_var_F77=no
14642 case $host_os in
14643 solaris2.[0-5] | solaris2.[0-5].*) ;;
14644 *)
14645 # The compiler driver will combine and reorder linker options,
14646 # but understands `-z linker_flag'. GCC discards it without `$wl',
14647 # but is careful enough not to reorder.
14648 # Supported since Solaris 2.6 (maybe 2.5.1?)
14649 if test "$GCC" = yes; then
14650 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14651 else
14652 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14653 fi
14654 ;;
14655 esac
14656 link_all_deplibs_F77=yes
14657 ;;
14658
14659 sunos4*)
14660 if test "x$host_vendor" = xsequent; then
14661 # Use $CC to link under sequent, because it throws in some extra .o
14662 # files that make .init and .fini sections work.
14663 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14664 else
14665 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14666 fi
14667 hardcode_libdir_flag_spec_F77='-L$libdir'
14668 hardcode_direct_F77=yes
14669 hardcode_minus_L_F77=yes
14670 hardcode_shlibpath_var_F77=no
14671 ;;
14672
14673 sysv4)
14674 case $host_vendor in
14675 sni)
14676 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14677 hardcode_direct_F77=yes # is this really true???
14678 ;;
14679 siemens)
14680 ## LD is ld it makes a PLAMLIB
14681 ## CC just makes a GrossModule.
14682 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14683 reload_cmds_F77='$CC -r -o $output$reload_objs'
14684 hardcode_direct_F77=no
14685 ;;
14686 motorola)
14687 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14688 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14689 ;;
14690 esac
14691 runpath_var='LD_RUN_PATH'
14692 hardcode_shlibpath_var_F77=no
14693 ;;
14694
14695 sysv4.3*)
14696 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14697 hardcode_shlibpath_var_F77=no
14698 export_dynamic_flag_spec_F77='-Bexport'
14699 ;;
14700
14701 sysv4*MP*)
14702 if test -d /usr/nec; then
14703 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14704 hardcode_shlibpath_var_F77=no
14705 runpath_var=LD_RUN_PATH
14706 hardcode_runpath_var=yes
14707 ld_shlibs_F77=yes
14708 fi
14709 ;;
14710
14711 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14712 no_undefined_flag_F77='${wl}-z,text'
14713 archive_cmds_need_lc_F77=no
14714 hardcode_shlibpath_var_F77=no
14715 runpath_var='LD_RUN_PATH'
14716
14717 if test "$GCC" = yes; then
14718 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14719 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14720 else
14721 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14722 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14723 fi
14724 ;;
14725
14726 sysv5* | sco3.2v5* | sco5v6*)
14727 # Note: We can NOT use -z defs as we might desire, because we do not
14728 # link with -lc, and that would cause any symbols used from libc to
14729 # always be unresolved, which means just about no library would
14730 # ever link correctly. If we're not using GNU ld we use -z text
14731 # though, which does catch some bad symbols but isn't as heavy-handed
14732 # as -z defs.
14733 no_undefined_flag_F77='${wl}-z,text'
14734 allow_undefined_flag_F77='${wl}-z,nodefs'
14735 archive_cmds_need_lc_F77=no
14736 hardcode_shlibpath_var_F77=no
14737 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14738 hardcode_libdir_separator_F77=':'
14739 link_all_deplibs_F77=yes
14740 export_dynamic_flag_spec_F77='${wl}-Bexport'
14741 runpath_var='LD_RUN_PATH'
14742
14743 if test "$GCC" = yes; then
14744 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14745 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14746 else
14747 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14748 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14749 fi
14750 ;;
14751
14752 uts4*)
14753 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14754 hardcode_libdir_flag_spec_F77='-L$libdir'
14755 hardcode_shlibpath_var_F77=no
14756 ;;
14757
14758 *)
14759 ld_shlibs_F77=no
14760 ;;
14761 esac
14762 fi
14763
14764 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14765 echo "${ECHO_T}$ld_shlibs_F77" >&6
14766 test "$ld_shlibs_F77" = no && can_build_shared=no
14767
14768 #
14769 # Do we need to explicitly link libc?
14770 #
14771 case "x$archive_cmds_need_lc_F77" in
14772 x|xyes)
14773 # Assume -lc should be added
14774 archive_cmds_need_lc_F77=yes
14775
14776 if test "$enable_shared" = yes && test "$GCC" = yes; then
14777 case $archive_cmds_F77 in
14778 *'~'*)
14779 # FIXME: we may have to deal with multi-command sequences.
14780 ;;
14781 '$CC '*)
14782 # Test whether the compiler implicitly links with -lc since on some
14783 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14784 # to ld, don't add -lc before -lgcc.
14785 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14786 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14787 $rm conftest*
14788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14789
14790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791 (eval $ac_compile) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } 2>conftest.err; then
14795 soname=conftest
14796 lib=conftest
14797 libobjs=conftest.$ac_objext
14798 deplibs=
14799 wl=$lt_prog_compiler_wl_F77
14800 pic_flag=$lt_prog_compiler_pic_F77
14801 compiler_flags=-v
14802 linker_flags=-v
14803 verstring=
14804 output_objdir=.
14805 libname=conftest
14806 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14807 allow_undefined_flag_F77=
14808 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14809 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }
14813 then
14814 archive_cmds_need_lc_F77=no
14815 else
14816 archive_cmds_need_lc_F77=yes
14817 fi
14818 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14819 else
14820 cat conftest.err 1>&5
14821 fi
14822 $rm conftest*
14823 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14824 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14825 ;;
14826 esac
14827 fi
14828 ;;
14829 esac
14830
14831 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14832 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14833 library_names_spec=
14834 libname_spec='lib$name'
14835 soname_spec=
14836 shrext_cmds=".so"
14837 postinstall_cmds=
14838 postuninstall_cmds=
14839 finish_cmds=
14840 finish_eval=
14841 shlibpath_var=
14842 shlibpath_overrides_runpath=unknown
14843 version_type=none
14844 dynamic_linker="$host_os ld.so"
14845 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14846
14847 need_lib_prefix=unknown
14848 hardcode_into_libs=no
14849
14850 # when you set need_version to no, make sure it does not cause -set_version
14851 # flags to be left without arguments
14852 need_version=unknown
14853
14854 case $host_os in
14855 aix3*)
14856 version_type=linux
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14858 shlibpath_var=LIBPATH
14859
14860 # AIX 3 has no versioning support, so we append a major version to the name.
14861 soname_spec='${libname}${release}${shared_ext}$major'
14862 ;;
14863
14864 aix[4-9]*)
14865 version_type=linux
14866 need_lib_prefix=no
14867 need_version=no
14868 hardcode_into_libs=yes
14869 if test "$host_cpu" = ia64; then
14870 # AIX 5 supports IA64
14871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14872 shlibpath_var=LD_LIBRARY_PATH
14873 else
14874 # With GCC up to 2.95.x, collect2 would create an import file
14875 # for dependence libraries. The import file would start with
14876 # the line `#! .'. This would cause the generated library to
14877 # depend on `.', always an invalid library. This was fixed in
14878 # development snapshots of GCC prior to 3.0.
14879 case $host_os in
14880 aix4 | aix4.[01] | aix4.[01].*)
14881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14882 echo ' yes '
14883 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14884 :
14885 else
14886 can_build_shared=no
14887 fi
14888 ;;
14889 esac
14890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14891 # soname into executable. Probably we can add versioning support to
14892 # collect2, so additional links can be useful in future.
14893 if test "$aix_use_runtimelinking" = yes; then
14894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14895 # instead of lib<name>.a to let people know that these are not
14896 # typical AIX shared libraries.
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 else
14899 # We preserve .a as extension for shared libraries through AIX4.2
14900 # and later when we are not doing run time linking.
14901 library_names_spec='${libname}${release}.a $libname.a'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 fi
14904 shlibpath_var=LIBPATH
14905 fi
14906 ;;
14907
14908 amigaos*)
14909 library_names_spec='$libname.ixlibrary $libname.a'
14910 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14911 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'
14912 ;;
14913
14914 beos*)
14915 library_names_spec='${libname}${shared_ext}'
14916 dynamic_linker="$host_os ld.so"
14917 shlibpath_var=LIBRARY_PATH
14918 ;;
14919
14920 bsdi[45]*)
14921 version_type=linux
14922 need_version=no
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14929 # the default ld.so.conf also contains /usr/contrib/lib and
14930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14931 # libtool to hard-code these into programs
14932 ;;
14933
14934 cygwin* | mingw* | pw32*)
14935 version_type=windows
14936 shrext_cmds=".dll"
14937 need_version=no
14938 need_lib_prefix=no
14939
14940 case $GCC,$host_os in
14941 yes,cygwin* | yes,mingw* | yes,pw32*)
14942 library_names_spec='$libname.dll.a'
14943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14944 postinstall_cmds='base_file=`basename \${file}`~
14945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14946 dldir=$destdir/`dirname \$dlpath`~
14947 test -d \$dldir || mkdir -p \$dldir~
14948 $install_prog $dir/$dlname \$dldir/$dlname~
14949 chmod a+x \$dldir/$dlname'
14950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14951 dlpath=$dir/\$dldll~
14952 $rm \$dlpath'
14953 shlibpath_overrides_runpath=yes
14954
14955 case $host_os in
14956 cygwin*)
14957 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14959 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14960 ;;
14961 mingw*)
14962 # MinGW DLLs use traditional 'lib' prefix
14963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14965 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14966 # It is most probably a Windows format PATH printed by
14967 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14968 # path with ; separators, and with drive letters. We can handle the
14969 # drive letters (cygwin fileutils understands them), so leave them,
14970 # especially as we might pass files found there to a mingw objdump,
14971 # which wouldn't understand a cygwinified path. Ahh.
14972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14973 else
14974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14975 fi
14976 ;;
14977 pw32*)
14978 # pw32 DLLs use 'pw' prefix rather than 'lib'
14979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14980 ;;
14981 esac
14982 ;;
14983
14984 *)
14985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14986 ;;
14987 esac
14988 dynamic_linker='Win32 ld.exe'
14989 # FIXME: first we should search . and the directory the executable is in
14990 shlibpath_var=PATH
14991 ;;
14992
14993 darwin* | rhapsody*)
14994 dynamic_linker="$host_os dyld"
14995 version_type=darwin
14996 need_lib_prefix=no
14997 need_version=no
14998 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14999 soname_spec='${libname}${release}${major}$shared_ext'
15000 shlibpath_overrides_runpath=yes
15001 shlibpath_var=DYLD_LIBRARY_PATH
15002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15003
15004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15005 ;;
15006
15007 dgux*)
15008 version_type=linux
15009 need_lib_prefix=no
15010 need_version=no
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15012 soname_spec='${libname}${release}${shared_ext}$major'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 ;;
15015
15016 freebsd1*)
15017 dynamic_linker=no
15018 ;;
15019
15020 freebsd* | dragonfly*)
15021 # DragonFly does not have aout. When/if they implement a new
15022 # versioning mechanism, adjust this.
15023 if test -x /usr/bin/objformat; then
15024 objformat=`/usr/bin/objformat`
15025 else
15026 case $host_os in
15027 freebsd[123]*) objformat=aout ;;
15028 *) objformat=elf ;;
15029 esac
15030 fi
15031 version_type=freebsd-$objformat
15032 case $version_type in
15033 freebsd-elf*)
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15035 need_version=no
15036 need_lib_prefix=no
15037 ;;
15038 freebsd-*)
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15040 need_version=yes
15041 ;;
15042 esac
15043 shlibpath_var=LD_LIBRARY_PATH
15044 case $host_os in
15045 freebsd2*)
15046 shlibpath_overrides_runpath=yes
15047 ;;
15048 freebsd3.[01]* | freebsdelf3.[01]*)
15049 shlibpath_overrides_runpath=yes
15050 hardcode_into_libs=yes
15051 ;;
15052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15054 shlibpath_overrides_runpath=no
15055 hardcode_into_libs=yes
15056 ;;
15057 *) # from 4.6 on, and DragonFly
15058 shlibpath_overrides_runpath=yes
15059 hardcode_into_libs=yes
15060 ;;
15061 esac
15062 ;;
15063
15064 gnu*)
15065 version_type=linux
15066 need_lib_prefix=no
15067 need_version=no
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 shlibpath_var=LD_LIBRARY_PATH
15071 hardcode_into_libs=yes
15072 ;;
15073
15074 hpux9* | hpux10* | hpux11*)
15075 # Give a soname corresponding to the major version so that dld.sl refuses to
15076 # link against other versions.
15077 version_type=sunos
15078 need_lib_prefix=no
15079 need_version=no
15080 case $host_cpu in
15081 ia64*)
15082 shrext_cmds='.so'
15083 hardcode_into_libs=yes
15084 dynamic_linker="$host_os dld.so"
15085 shlibpath_var=LD_LIBRARY_PATH
15086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15089 if test "X$HPUX_IA64_MODE" = X32; then
15090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15091 else
15092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15093 fi
15094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15095 ;;
15096 hppa*64*)
15097 shrext_cmds='.sl'
15098 hardcode_into_libs=yes
15099 dynamic_linker="$host_os dld.sl"
15100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 soname_spec='${libname}${release}${shared_ext}$major'
15104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15106 ;;
15107 *)
15108 shrext_cmds='.sl'
15109 dynamic_linker="$host_os dld.sl"
15110 shlibpath_var=SHLIB_PATH
15111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113 soname_spec='${libname}${release}${shared_ext}$major'
15114 ;;
15115 esac
15116 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15117 postinstall_cmds='chmod 555 $lib'
15118 ;;
15119
15120 interix[3-9]*)
15121 version_type=linux
15122 need_lib_prefix=no
15123 need_version=no
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15125 soname_spec='${libname}${release}${shared_ext}$major'
15126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15127 shlibpath_var=LD_LIBRARY_PATH
15128 shlibpath_overrides_runpath=no
15129 hardcode_into_libs=yes
15130 ;;
15131
15132 irix5* | irix6* | nonstopux*)
15133 case $host_os in
15134 nonstopux*) version_type=nonstopux ;;
15135 *)
15136 if test "$lt_cv_prog_gnu_ld" = yes; then
15137 version_type=linux
15138 else
15139 version_type=irix
15140 fi ;;
15141 esac
15142 need_lib_prefix=no
15143 need_version=no
15144 soname_spec='${libname}${release}${shared_ext}$major'
15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15146 case $host_os in
15147 irix5* | nonstopux*)
15148 libsuff= shlibsuff=
15149 ;;
15150 *)
15151 case $LD in # libtool.m4 will add one of these switches to LD
15152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15153 libsuff= shlibsuff= libmagic=32-bit;;
15154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15155 libsuff=32 shlibsuff=N32 libmagic=N32;;
15156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15157 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15158 *) libsuff= shlibsuff= libmagic=never-match;;
15159 esac
15160 ;;
15161 esac
15162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15163 shlibpath_overrides_runpath=no
15164 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15165 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15166 hardcode_into_libs=yes
15167 ;;
15168
15169 # No shared lib support for Linux oldld, aout, or coff.
15170 linux*oldld* | linux*aout* | linux*coff*)
15171 dynamic_linker=no
15172 ;;
15173
15174 # This must be Linux ELF.
15175 linux* | k*bsd*-gnu)
15176 version_type=linux
15177 need_lib_prefix=no
15178 need_version=no
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180 soname_spec='${libname}${release}${shared_ext}$major'
15181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 shlibpath_overrides_runpath=no
15184 # This implies no fast_install, which is unacceptable.
15185 # Some rework will be needed to allow for fast_install
15186 # before this can be enabled.
15187 hardcode_into_libs=yes
15188
15189 # Append ld.so.conf contents to the search path
15190 if test -f /etc/ld.so.conf; then
15191 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15192 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15193 fi
15194
15195 # We used to test for /lib/ld.so.1 and disable shared libraries on
15196 # powerpc, because MkLinux only supported shared libraries with the
15197 # GNU dynamic linker. Since this was broken with cross compilers,
15198 # most powerpc-linux boxes support dynamic linking these days and
15199 # people can always --disable-shared, the test was removed, and we
15200 # assume the GNU/Linux dynamic linker is in use.
15201 dynamic_linker='GNU/Linux ld.so'
15202 ;;
15203
15204 netbsd*)
15205 version_type=sunos
15206 need_lib_prefix=no
15207 need_version=no
15208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15211 dynamic_linker='NetBSD (a.out) ld.so'
15212 else
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 dynamic_linker='NetBSD ld.elf_so'
15216 fi
15217 shlibpath_var=LD_LIBRARY_PATH
15218 shlibpath_overrides_runpath=yes
15219 hardcode_into_libs=yes
15220 ;;
15221
15222 newsos6)
15223 version_type=linux
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225 shlibpath_var=LD_LIBRARY_PATH
15226 shlibpath_overrides_runpath=yes
15227 ;;
15228
15229 nto-qnx*)
15230 version_type=linux
15231 need_lib_prefix=no
15232 need_version=no
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 shlibpath_var=LD_LIBRARY_PATH
15236 shlibpath_overrides_runpath=yes
15237 ;;
15238
15239 openbsd*)
15240 version_type=sunos
15241 sys_lib_dlsearch_path_spec="/usr/lib"
15242 need_lib_prefix=no
15243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15244 case $host_os in
15245 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15246 *) need_version=no ;;
15247 esac
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15252 case $host_os in
15253 openbsd2.[89] | openbsd2.[89].*)
15254 shlibpath_overrides_runpath=no
15255 ;;
15256 *)
15257 shlibpath_overrides_runpath=yes
15258 ;;
15259 esac
15260 else
15261 shlibpath_overrides_runpath=yes
15262 fi
15263 ;;
15264
15265 os2*)
15266 libname_spec='$name'
15267 shrext_cmds=".dll"
15268 need_lib_prefix=no
15269 library_names_spec='$libname${shared_ext} $libname.a'
15270 dynamic_linker='OS/2 ld.exe'
15271 shlibpath_var=LIBPATH
15272 ;;
15273
15274 osf3* | osf4* | osf5*)
15275 version_type=osf
15276 need_lib_prefix=no
15277 need_version=no
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15283 ;;
15284
15285 rdos*)
15286 dynamic_linker=no
15287 ;;
15288
15289 solaris*)
15290 version_type=linux
15291 need_lib_prefix=no
15292 need_version=no
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 shlibpath_var=LD_LIBRARY_PATH
15296 shlibpath_overrides_runpath=yes
15297 hardcode_into_libs=yes
15298 # ldd complains unless libraries are executable
15299 postinstall_cmds='chmod +x $lib'
15300 ;;
15301
15302 sunos4*)
15303 version_type=sunos
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15305 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 shlibpath_overrides_runpath=yes
15308 if test "$with_gnu_ld" = yes; then
15309 need_lib_prefix=no
15310 fi
15311 need_version=yes
15312 ;;
15313
15314 sysv4 | sysv4.3*)
15315 version_type=linux
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 case $host_vendor in
15320 sni)
15321 shlibpath_overrides_runpath=no
15322 need_lib_prefix=no
15323 export_dynamic_flag_spec='${wl}-Blargedynsym'
15324 runpath_var=LD_RUN_PATH
15325 ;;
15326 siemens)
15327 need_lib_prefix=no
15328 ;;
15329 motorola)
15330 need_lib_prefix=no
15331 need_version=no
15332 shlibpath_overrides_runpath=no
15333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15334 ;;
15335 esac
15336 ;;
15337
15338 sysv4*MP*)
15339 if test -d /usr/nec ;then
15340 version_type=linux
15341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15342 soname_spec='$libname${shared_ext}.$major'
15343 shlibpath_var=LD_LIBRARY_PATH
15344 fi
15345 ;;
15346
15347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15348 version_type=freebsd-elf
15349 need_lib_prefix=no
15350 need_version=no
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 hardcode_into_libs=yes
15355 if test "$with_gnu_ld" = yes; then
15356 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15357 shlibpath_overrides_runpath=no
15358 else
15359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15360 shlibpath_overrides_runpath=yes
15361 case $host_os in
15362 sco3.2v5*)
15363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15364 ;;
15365 esac
15366 fi
15367 sys_lib_dlsearch_path_spec='/usr/lib'
15368 ;;
15369
15370 uts4*)
15371 version_type=linux
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 ;;
15376
15377 *)
15378 dynamic_linker=no
15379 ;;
15380 esac
15381 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15382 echo "${ECHO_T}$dynamic_linker" >&6
15383 test "$dynamic_linker" = no && can_build_shared=no
15384
15385 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15389 fi
15390
15391 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15392 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15396 fi
15397
15398 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15399
15400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15401 if test "$GCC" = yes; then
15402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15403 fi
15404
15405 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15406 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15407 hardcode_action_F77=
15408 if test -n "$hardcode_libdir_flag_spec_F77" || \
15409 test -n "$runpath_var_F77" || \
15410 test "X$hardcode_automatic_F77" = "Xyes" ; then
15411
15412 # We can hardcode non-existant directories.
15413 if test "$hardcode_direct_F77" != no &&
15414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15415 # have to relink, otherwise we might link with an installed library
15416 # when we should be linking with a yet-to-be-installed one
15417 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15418 test "$hardcode_minus_L_F77" != no; then
15419 # Linking always hardcodes the temporary library directory.
15420 hardcode_action_F77=relink
15421 else
15422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15423 hardcode_action_F77=immediate
15424 fi
15425 else
15426 # We cannot hardcode anything, or else we can only hardcode existing
15427 # directories.
15428 hardcode_action_F77=unsupported
15429 fi
15430 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15431 echo "${ECHO_T}$hardcode_action_F77" >&6
15432
15433 if test "$hardcode_action_F77" = relink; then
15434 # Fast installation is not supported
15435 enable_fast_install=no
15436 elif test "$shlibpath_overrides_runpath" = yes ||
15437 test "$enable_shared" = no; then
15438 # Fast installation is not necessary
15439 enable_fast_install=needless
15440 fi
15441
15442
15443 # The else clause should only fire when bootstrapping the
15444 # libtool distribution, otherwise you forgot to ship ltmain.sh
15445 # with your package, and you will get complaints that there are
15446 # no rules to generate ltmain.sh.
15447 if test -f "$ltmain"; then
15448 # See if we are running on zsh, and set the options which allow our commands through
15449 # without removal of \ escapes.
15450 if test -n "${ZSH_VERSION+set}" ; then
15451 setopt NO_GLOB_SUBST
15452 fi
15453 # Now quote all the things that may contain metacharacters while being
15454 # careful not to overquote the AC_SUBSTed values. We take copies of the
15455 # variables and quote the copies for generation of the libtool script.
15456 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15457 SED SHELL STRIP \
15458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15460 deplibs_check_method reload_flag reload_cmds need_locks \
15461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15462 lt_cv_sys_global_symbol_to_c_name_address \
15463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15464 old_postinstall_cmds old_postuninstall_cmds \
15465 compiler_F77 \
15466 CC_F77 \
15467 LD_F77 \
15468 lt_prog_compiler_wl_F77 \
15469 lt_prog_compiler_pic_F77 \
15470 lt_prog_compiler_static_F77 \
15471 lt_prog_compiler_no_builtin_flag_F77 \
15472 export_dynamic_flag_spec_F77 \
15473 thread_safe_flag_spec_F77 \
15474 whole_archive_flag_spec_F77 \
15475 enable_shared_with_static_runtimes_F77 \
15476 old_archive_cmds_F77 \
15477 old_archive_from_new_cmds_F77 \
15478 predep_objects_F77 \
15479 postdep_objects_F77 \
15480 predeps_F77 \
15481 postdeps_F77 \
15482 compiler_lib_search_path_F77 \
15483 compiler_lib_search_dirs_F77 \
15484 archive_cmds_F77 \
15485 archive_expsym_cmds_F77 \
15486 postinstall_cmds_F77 \
15487 postuninstall_cmds_F77 \
15488 old_archive_from_expsyms_cmds_F77 \
15489 allow_undefined_flag_F77 \
15490 no_undefined_flag_F77 \
15491 export_symbols_cmds_F77 \
15492 hardcode_libdir_flag_spec_F77 \
15493 hardcode_libdir_flag_spec_ld_F77 \
15494 hardcode_libdir_separator_F77 \
15495 hardcode_automatic_F77 \
15496 module_cmds_F77 \
15497 module_expsym_cmds_F77 \
15498 lt_cv_prog_compiler_c_o_F77 \
15499 fix_srcfile_path_F77 \
15500 exclude_expsyms_F77 \
15501 include_expsyms_F77; do
15502
15503 case $var in
15504 old_archive_cmds_F77 | \
15505 old_archive_from_new_cmds_F77 | \
15506 archive_cmds_F77 | \
15507 archive_expsym_cmds_F77 | \
15508 module_cmds_F77 | \
15509 module_expsym_cmds_F77 | \
15510 old_archive_from_expsyms_cmds_F77 | \
15511 export_symbols_cmds_F77 | \
15512 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15513 postinstall_cmds | postuninstall_cmds | \
15514 old_postinstall_cmds | old_postuninstall_cmds | \
15515 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15516 # Double-quote double-evaled strings.
15517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15518 ;;
15519 *)
15520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15521 ;;
15522 esac
15523 done
15524
15525 case $lt_echo in
15526 *'\$0 --fallback-echo"')
15527 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15528 ;;
15529 esac
15530
15531 cfgfile="$ofile"
15532
15533 cat <<__EOF__ >> "$cfgfile"
15534 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15535
15536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15537
15538 # Shell to use when invoking shell scripts.
15539 SHELL=$lt_SHELL
15540
15541 # Whether or not to build shared libraries.
15542 build_libtool_libs=$enable_shared
15543
15544 # Whether or not to build static libraries.
15545 build_old_libs=$enable_static
15546
15547 # Whether or not to add -lc for building shared libraries.
15548 build_libtool_need_lc=$archive_cmds_need_lc_F77
15549
15550 # Whether or not to disallow shared libs when runtime libs are static
15551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15552
15553 # Whether or not to optimize for fast installation.
15554 fast_install=$enable_fast_install
15555
15556 # The host system.
15557 host_alias=$host_alias
15558 host=$host
15559 host_os=$host_os
15560
15561 # The build system.
15562 build_alias=$build_alias
15563 build=$build
15564 build_os=$build_os
15565
15566 # An echo program that does not interpret backslashes.
15567 echo=$lt_echo
15568
15569 # The archiver.
15570 AR=$lt_AR
15571 AR_FLAGS=$lt_AR_FLAGS
15572
15573 # A C compiler.
15574 LTCC=$lt_LTCC
15575
15576 # LTCC compiler flags.
15577 LTCFLAGS=$lt_LTCFLAGS
15578
15579 # A language-specific compiler.
15580 CC=$lt_compiler_F77
15581
15582 # Is the compiler the GNU C compiler?
15583 with_gcc=$GCC_F77
15584
15585 # An ERE matcher.
15586 EGREP=$lt_EGREP
15587
15588 # The linker used to build libraries.
15589 LD=$lt_LD_F77
15590
15591 # Whether we need hard or soft links.
15592 LN_S=$lt_LN_S
15593
15594 # A BSD-compatible nm program.
15595 NM=$lt_NM
15596
15597 # A symbol stripping program
15598 STRIP=$lt_STRIP
15599
15600 # Used to examine libraries when file_magic_cmd begins "file"
15601 MAGIC_CMD=$MAGIC_CMD
15602
15603 # Used on cygwin: DLL creation program.
15604 DLLTOOL="$DLLTOOL"
15605
15606 # Used on cygwin: object dumper.
15607 OBJDUMP="$OBJDUMP"
15608
15609 # Used on cygwin: assembler.
15610 AS="$AS"
15611
15612 # The name of the directory that contains temporary libtool files.
15613 objdir=$objdir
15614
15615 # How to create reloadable object files.
15616 reload_flag=$lt_reload_flag
15617 reload_cmds=$lt_reload_cmds
15618
15619 # How to pass a linker flag through the compiler.
15620 wl=$lt_lt_prog_compiler_wl_F77
15621
15622 # Object file suffix (normally "o").
15623 objext="$ac_objext"
15624
15625 # Old archive suffix (normally "a").
15626 libext="$libext"
15627
15628 # Shared library suffix (normally ".so").
15629 shrext_cmds='$shrext_cmds'
15630
15631 # Executable file suffix (normally "").
15632 exeext="$exeext"
15633
15634 # Additional compiler flags for building library objects.
15635 pic_flag=$lt_lt_prog_compiler_pic_F77
15636 pic_mode=$pic_mode
15637
15638 # What is the maximum length of a command?
15639 max_cmd_len=$lt_cv_sys_max_cmd_len
15640
15641 # Does compiler simultaneously support -c and -o options?
15642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15643
15644 # Must we lock files when doing compilation?
15645 need_locks=$lt_need_locks
15646
15647 # Do we need the lib prefix for modules?
15648 need_lib_prefix=$need_lib_prefix
15649
15650 # Do we need a version for libraries?
15651 need_version=$need_version
15652
15653 # Whether dlopen is supported.
15654 dlopen_support=$enable_dlopen
15655
15656 # Whether dlopen of programs is supported.
15657 dlopen_self=$enable_dlopen_self
15658
15659 # Whether dlopen of statically linked programs is supported.
15660 dlopen_self_static=$enable_dlopen_self_static
15661
15662 # Compiler flag to prevent dynamic linking.
15663 link_static_flag=$lt_lt_prog_compiler_static_F77
15664
15665 # Compiler flag to turn off builtin functions.
15666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15667
15668 # Compiler flag to allow reflexive dlopens.
15669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15670
15671 # Compiler flag to generate shared objects directly from archives.
15672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15673
15674 # Compiler flag to generate thread-safe objects.
15675 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15676
15677 # Library versioning type.
15678 version_type=$version_type
15679
15680 # Format of library name prefix.
15681 libname_spec=$lt_libname_spec
15682
15683 # List of archive names. First name is the real one, the rest are links.
15684 # The last name is the one that the linker finds with -lNAME.
15685 library_names_spec=$lt_library_names_spec
15686
15687 # The coded name of the library, if different from the real name.
15688 soname_spec=$lt_soname_spec
15689
15690 # Commands used to build and install an old-style archive.
15691 RANLIB=$lt_RANLIB
15692 old_archive_cmds=$lt_old_archive_cmds_F77
15693 old_postinstall_cmds=$lt_old_postinstall_cmds
15694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15695
15696 # Create an old-style archive from a shared archive.
15697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15698
15699 # Create a temporary old-style archive to link instead of a shared archive.
15700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15701
15702 # Commands used to build and install a shared archive.
15703 archive_cmds=$lt_archive_cmds_F77
15704 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15705 postinstall_cmds=$lt_postinstall_cmds
15706 postuninstall_cmds=$lt_postuninstall_cmds
15707
15708 # Commands used to build a loadable module (assumed same as above if empty)
15709 module_cmds=$lt_module_cmds_F77
15710 module_expsym_cmds=$lt_module_expsym_cmds_F77
15711
15712 # Commands to strip libraries.
15713 old_striplib=$lt_old_striplib
15714 striplib=$lt_striplib
15715
15716 # Dependencies to place before the objects being linked to create a
15717 # shared library.
15718 predep_objects=$lt_predep_objects_F77
15719
15720 # Dependencies to place after the objects being linked to create a
15721 # shared library.
15722 postdep_objects=$lt_postdep_objects_F77
15723
15724 # Dependencies to place before the objects being linked to create a
15725 # shared library.
15726 predeps=$lt_predeps_F77
15727
15728 # Dependencies to place after the objects being linked to create a
15729 # shared library.
15730 postdeps=$lt_postdeps_F77
15731
15732 # The directories searched by this compiler when creating a shared
15733 # library
15734 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15735
15736 # The library search path used internally by the compiler when linking
15737 # a shared library.
15738 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15739
15740 # Method to check whether dependent libraries are shared objects.
15741 deplibs_check_method=$lt_deplibs_check_method
15742
15743 # Command to use when deplibs_check_method == file_magic.
15744 file_magic_cmd=$lt_file_magic_cmd
15745
15746 # Flag that allows shared libraries with undefined symbols to be built.
15747 allow_undefined_flag=$lt_allow_undefined_flag_F77
15748
15749 # Flag that forces no undefined symbols.
15750 no_undefined_flag=$lt_no_undefined_flag_F77
15751
15752 # Commands used to finish a libtool library installation in a directory.
15753 finish_cmds=$lt_finish_cmds
15754
15755 # Same as above, but a single script fragment to be evaled but not shown.
15756 finish_eval=$lt_finish_eval
15757
15758 # Take the output of nm and produce a listing of raw symbols and C names.
15759 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15760
15761 # Transform the output of nm in a proper C declaration
15762 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15763
15764 # Transform the output of nm in a C name address pair
15765 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15766
15767 # This is the shared library runtime path variable.
15768 runpath_var=$runpath_var
15769
15770 # This is the shared library path variable.
15771 shlibpath_var=$shlibpath_var
15772
15773 # Is shlibpath searched before the hard-coded library search path?
15774 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15775
15776 # How to hardcode a shared library path into an executable.
15777 hardcode_action=$hardcode_action_F77
15778
15779 # Whether we should hardcode library paths into libraries.
15780 hardcode_into_libs=$hardcode_into_libs
15781
15782 # Flag to hardcode \$libdir into a binary during linking.
15783 # This must work even if \$libdir does not exist.
15784 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15785
15786 # If ld is used when linking, flag to hardcode \$libdir into
15787 # a binary during linking. This must work even if \$libdir does
15788 # not exist.
15789 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15790
15791 # Whether we need a single -rpath flag with a separated argument.
15792 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15793
15794 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15795 # resulting binary.
15796 hardcode_direct=$hardcode_direct_F77
15797
15798 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15799 # resulting binary.
15800 hardcode_minus_L=$hardcode_minus_L_F77
15801
15802 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15803 # the resulting binary.
15804 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15805
15806 # Set to yes if building a shared library automatically hardcodes DIR into the library
15807 # and all subsequent libraries and executables linked against it.
15808 hardcode_automatic=$hardcode_automatic_F77
15809
15810 # Variables whose values should be saved in libtool wrapper scripts and
15811 # restored at relink time.
15812 variables_saved_for_relink="$variables_saved_for_relink"
15813
15814 # Whether libtool must link a program against all its dependency libraries.
15815 link_all_deplibs=$link_all_deplibs_F77
15816
15817 # Compile-time system search path for libraries
15818 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15819
15820 # Run-time system search path for libraries
15821 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15822
15823 # Fix the shell variable \$srcfile for the compiler.
15824 fix_srcfile_path=$lt_fix_srcfile_path
15825
15826 # Set to yes if exported symbols are required.
15827 always_export_symbols=$always_export_symbols_F77
15828
15829 # The commands to list exported symbols.
15830 export_symbols_cmds=$lt_export_symbols_cmds_F77
15831
15832 # The commands to extract the exported symbol list from a shared archive.
15833 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15834
15835 # Symbols that should not be listed in the preloaded symbols.
15836 exclude_expsyms=$lt_exclude_expsyms_F77
15837
15838 # Symbols that must always be exported.
15839 include_expsyms=$lt_include_expsyms_F77
15840
15841 # ### END LIBTOOL TAG CONFIG: $tagname
15842
15843 __EOF__
15844
15845
15846 else
15847 # If there is no Makefile yet, we rely on a make rule to execute
15848 # `config.status --recheck' to rerun these tests and create the
15849 # libtool script then.
15850 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15851 if test -f "$ltmain_in"; then
15852 test -f Makefile && make "$ltmain"
15853 fi
15854 fi
15855
15856
15857 ac_ext=c
15858 ac_cpp='$CPP $CPPFLAGS'
15859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15862
15863 CC="$lt_save_CC"
15864
15865 else
15866 tagname=""
15867 fi
15868 ;;
15869
15870 GCJ)
15871 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15872
15873
15874
15875 # Source file extension for Java test sources.
15876 ac_ext=java
15877
15878 # Object file extension for compiled Java test sources.
15879 objext=o
15880 objext_GCJ=$objext
15881
15882 # Code to be used in simple compile tests
15883 lt_simple_compile_test_code="class foo {}"
15884
15885 # Code to be used in simple link tests
15886 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15887
15888 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15889
15890 # If no C compiler was specified, use CC.
15891 LTCC=${LTCC-"$CC"}
15892
15893 # If no C compiler flags were specified, use CFLAGS.
15894 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15895
15896 # Allow CC to be a program name with arguments.
15897 compiler=$CC
15898
15899
15900 # save warnings/boilerplate of simple test code
15901 ac_outfile=conftest.$ac_objext
15902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15904 _lt_compiler_boilerplate=`cat conftest.err`
15905 $rm conftest*
15906
15907 ac_outfile=conftest.$ac_objext
15908 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15909 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15910 _lt_linker_boilerplate=`cat conftest.err`
15911 $rm -r conftest*
15912
15913
15914 # Allow CC to be a program name with arguments.
15915 lt_save_CC="$CC"
15916 CC=${GCJ-"gcj"}
15917 compiler=$CC
15918 compiler_GCJ=$CC
15919 for cc_temp in $compiler""; do
15920 case $cc_temp in
15921 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15922 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15923 \-*) ;;
15924 *) break;;
15925 esac
15926 done
15927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15928
15929
15930 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15931 archive_cmds_need_lc_GCJ=no
15932
15933 old_archive_cmds_GCJ=$old_archive_cmds
15934
15935
15936 lt_prog_compiler_no_builtin_flag_GCJ=
15937
15938 if test "$GCC" = yes; then
15939 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15940
15941
15942 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15943 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15944 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 else
15947 lt_cv_prog_compiler_rtti_exceptions=no
15948 ac_outfile=conftest.$ac_objext
15949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15950 lt_compiler_flag="-fno-rtti -fno-exceptions"
15951 # Insert the option either (1) after the last *FLAGS variable, or
15952 # (2) before a word containing "conftest.", or (3) at the end.
15953 # Note that $ac_compile itself does not contain backslashes and begins
15954 # with a dollar sign (not a hyphen), so the echo should work correctly.
15955 # The option is referenced via a variable to avoid confusing sed.
15956 lt_compile=`echo "$ac_compile" | $SED \
15957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15959 -e 's:$: $lt_compiler_flag:'`
15960 (eval echo "\"\$as_me:15960: $lt_compile\"" >&5)
15961 (eval "$lt_compile" 2>conftest.err)
15962 ac_status=$?
15963 cat conftest.err >&5
15964 echo "$as_me:15964: \$? = $ac_status" >&5
15965 if (exit $ac_status) && test -s "$ac_outfile"; then
15966 # The compiler can only warn and ignore the option if not recognized
15967 # So say no if there are warnings other than the usual output.
15968 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15970 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15971 lt_cv_prog_compiler_rtti_exceptions=yes
15972 fi
15973 fi
15974 $rm conftest*
15975
15976 fi
15977 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15978 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15979
15980 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15981 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15982 else
15983 :
15984 fi
15985
15986 fi
15987
15988 lt_prog_compiler_wl_GCJ=
15989 lt_prog_compiler_pic_GCJ=
15990 lt_prog_compiler_static_GCJ=
15991
15992 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15993 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15994
15995 if test "$GCC" = yes; then
15996 lt_prog_compiler_wl_GCJ='-Wl,'
15997 lt_prog_compiler_static_GCJ='-static'
15998
15999 case $host_os in
16000 aix*)
16001 # All AIX code is PIC.
16002 if test "$host_cpu" = ia64; then
16003 # AIX 5 now supports IA64 processor
16004 lt_prog_compiler_static_GCJ='-Bstatic'
16005 fi
16006 ;;
16007
16008 amigaos*)
16009 # FIXME: we need at least 68020 code to build shared libraries, but
16010 # adding the `-m68020' flag to GCC prevents building anything better,
16011 # like `-m68040'.
16012 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16013 ;;
16014
16015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16016 # PIC is the default for these OSes.
16017 ;;
16018
16019 mingw* | cygwin* | pw32* | os2*)
16020 # This hack is so that the source file can tell whether it is being
16021 # built for inclusion in a dll (and should export symbols for example).
16022 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16023 # (--disable-auto-import) libraries
16024
16025 ;;
16026
16027 darwin* | rhapsody*)
16028 # PIC is the default on this platform
16029 # Common symbols not allowed in MH_DYLIB files
16030 lt_prog_compiler_pic_GCJ='-fno-common'
16031 ;;
16032
16033 interix[3-9]*)
16034 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16035 # Instead, we relocate shared libraries at runtime.
16036 ;;
16037
16038 msdosdjgpp*)
16039 # Just because we use GCC doesn't mean we suddenly get shared libraries
16040 # on systems that don't support them.
16041 lt_prog_compiler_can_build_shared_GCJ=no
16042 enable_shared=no
16043 ;;
16044
16045 sysv4*MP*)
16046 if test -d /usr/nec; then
16047 lt_prog_compiler_pic_GCJ=-Kconform_pic
16048 fi
16049 ;;
16050
16051 hpux*)
16052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16053 # not for PA HP-UX.
16054 case $host_cpu in
16055 hppa*64*|ia64*)
16056 # +Z the default
16057 ;;
16058 *)
16059 lt_prog_compiler_pic_GCJ='-fPIC'
16060 ;;
16061 esac
16062 ;;
16063
16064 *)
16065 lt_prog_compiler_pic_GCJ='-fPIC'
16066 ;;
16067 esac
16068 else
16069 # PORTME Check for flag to pass linker flags through the system compiler.
16070 case $host_os in
16071 aix*)
16072 lt_prog_compiler_wl_GCJ='-Wl,'
16073 if test "$host_cpu" = ia64; then
16074 # AIX 5 now supports IA64 processor
16075 lt_prog_compiler_static_GCJ='-Bstatic'
16076 else
16077 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16078 fi
16079 ;;
16080 darwin*)
16081 # PIC is the default on this platform
16082 # Common symbols not allowed in MH_DYLIB files
16083 case $cc_basename in
16084 xlc*)
16085 lt_prog_compiler_pic_GCJ='-qnocommon'
16086 lt_prog_compiler_wl_GCJ='-Wl,'
16087 ;;
16088 esac
16089 ;;
16090
16091 mingw* | cygwin* | pw32* | os2*)
16092 # This hack is so that the source file can tell whether it is being
16093 # built for inclusion in a dll (and should export symbols for example).
16094
16095 ;;
16096
16097 hpux9* | hpux10* | hpux11*)
16098 lt_prog_compiler_wl_GCJ='-Wl,'
16099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16100 # not for PA HP-UX.
16101 case $host_cpu in
16102 hppa*64*|ia64*)
16103 # +Z the default
16104 ;;
16105 *)
16106 lt_prog_compiler_pic_GCJ='+Z'
16107 ;;
16108 esac
16109 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16110 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16111 ;;
16112
16113 irix5* | irix6* | nonstopux*)
16114 lt_prog_compiler_wl_GCJ='-Wl,'
16115 # PIC (with -KPIC) is the default.
16116 lt_prog_compiler_static_GCJ='-non_shared'
16117 ;;
16118
16119 newsos6)
16120 lt_prog_compiler_pic_GCJ='-KPIC'
16121 lt_prog_compiler_static_GCJ='-Bstatic'
16122 ;;
16123
16124 linux* | k*bsd*-gnu)
16125 case $cc_basename in
16126 icc* | ecc*)
16127 lt_prog_compiler_wl_GCJ='-Wl,'
16128 lt_prog_compiler_pic_GCJ='-KPIC'
16129 lt_prog_compiler_static_GCJ='-static'
16130 ;;
16131 pgcc* | pgf77* | pgf90* | pgf95*)
16132 # Portland Group compilers (*not* the Pentium gcc compiler,
16133 # which looks to be a dead project)
16134 lt_prog_compiler_wl_GCJ='-Wl,'
16135 lt_prog_compiler_pic_GCJ='-fpic'
16136 lt_prog_compiler_static_GCJ='-Bstatic'
16137 ;;
16138 ccc*)
16139 lt_prog_compiler_wl_GCJ='-Wl,'
16140 # All Alpha code is PIC.
16141 lt_prog_compiler_static_GCJ='-non_shared'
16142 ;;
16143 *)
16144 case `$CC -V 2>&1 | sed 5q` in
16145 *Sun\ C*)
16146 # Sun C 5.9
16147 lt_prog_compiler_pic_GCJ='-KPIC'
16148 lt_prog_compiler_static_GCJ='-Bstatic'
16149 lt_prog_compiler_wl_GCJ='-Wl,'
16150 ;;
16151 *Sun\ F*)
16152 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16153 lt_prog_compiler_pic_GCJ='-KPIC'
16154 lt_prog_compiler_static_GCJ='-Bstatic'
16155 lt_prog_compiler_wl_GCJ=''
16156 ;;
16157 esac
16158 ;;
16159 esac
16160 ;;
16161
16162 osf3* | osf4* | osf5*)
16163 lt_prog_compiler_wl_GCJ='-Wl,'
16164 # All OSF/1 code is PIC.
16165 lt_prog_compiler_static_GCJ='-non_shared'
16166 ;;
16167
16168 rdos*)
16169 lt_prog_compiler_static_GCJ='-non_shared'
16170 ;;
16171
16172 solaris*)
16173 lt_prog_compiler_pic_GCJ='-KPIC'
16174 lt_prog_compiler_static_GCJ='-Bstatic'
16175 case $cc_basename in
16176 f77* | f90* | f95*)
16177 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16178 *)
16179 lt_prog_compiler_wl_GCJ='-Wl,';;
16180 esac
16181 ;;
16182
16183 sunos4*)
16184 lt_prog_compiler_wl_GCJ='-Qoption ld '
16185 lt_prog_compiler_pic_GCJ='-PIC'
16186 lt_prog_compiler_static_GCJ='-Bstatic'
16187 ;;
16188
16189 sysv4 | sysv4.2uw2* | sysv4.3*)
16190 lt_prog_compiler_wl_GCJ='-Wl,'
16191 lt_prog_compiler_pic_GCJ='-KPIC'
16192 lt_prog_compiler_static_GCJ='-Bstatic'
16193 ;;
16194
16195 sysv4*MP*)
16196 if test -d /usr/nec ;then
16197 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16198 lt_prog_compiler_static_GCJ='-Bstatic'
16199 fi
16200 ;;
16201
16202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16203 lt_prog_compiler_wl_GCJ='-Wl,'
16204 lt_prog_compiler_pic_GCJ='-KPIC'
16205 lt_prog_compiler_static_GCJ='-Bstatic'
16206 ;;
16207
16208 unicos*)
16209 lt_prog_compiler_wl_GCJ='-Wl,'
16210 lt_prog_compiler_can_build_shared_GCJ=no
16211 ;;
16212
16213 uts4*)
16214 lt_prog_compiler_pic_GCJ='-pic'
16215 lt_prog_compiler_static_GCJ='-Bstatic'
16216 ;;
16217
16218 *)
16219 lt_prog_compiler_can_build_shared_GCJ=no
16220 ;;
16221 esac
16222 fi
16223
16224 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16225 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16226
16227 #
16228 # Check to make sure the PIC flag actually works.
16229 #
16230 if test -n "$lt_prog_compiler_pic_GCJ"; then
16231
16232 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16233 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16234 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237 lt_cv_prog_compiler_pic_works_GCJ=no
16238 ac_outfile=conftest.$ac_objext
16239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16240 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16241 # Insert the option either (1) after the last *FLAGS variable, or
16242 # (2) before a word containing "conftest.", or (3) at the end.
16243 # Note that $ac_compile itself does not contain backslashes and begins
16244 # with a dollar sign (not a hyphen), so the echo should work correctly.
16245 # The option is referenced via a variable to avoid confusing sed.
16246 lt_compile=`echo "$ac_compile" | $SED \
16247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16249 -e 's:$: $lt_compiler_flag:'`
16250 (eval echo "\"\$as_me:16250: $lt_compile\"" >&5)
16251 (eval "$lt_compile" 2>conftest.err)
16252 ac_status=$?
16253 cat conftest.err >&5
16254 echo "$as_me:16254: \$? = $ac_status" >&5
16255 if (exit $ac_status) && test -s "$ac_outfile"; then
16256 # The compiler can only warn and ignore the option if not recognized
16257 # So say no if there are warnings other than the usual output.
16258 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16260 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16261 lt_cv_prog_compiler_pic_works_GCJ=yes
16262 fi
16263 fi
16264 $rm conftest*
16265
16266 fi
16267 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16268 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6
16269
16270 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16271 case $lt_prog_compiler_pic_GCJ in
16272 "" | " "*) ;;
16273 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16274 esac
16275 else
16276 lt_prog_compiler_pic_GCJ=
16277 lt_prog_compiler_can_build_shared_GCJ=no
16278 fi
16279
16280 fi
16281 case $host_os in
16282 # For platforms which do not support PIC, -DPIC is meaningless:
16283 *djgpp*)
16284 lt_prog_compiler_pic_GCJ=
16285 ;;
16286 *)
16287 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16288 ;;
16289 esac
16290
16291 #
16292 # Check to make sure the static flag actually works.
16293 #
16294 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16295 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16296 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16297 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300 lt_cv_prog_compiler_static_works_GCJ=no
16301 save_LDFLAGS="$LDFLAGS"
16302 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16303 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16304 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16305 # The linker can only warn and ignore the option if not recognized
16306 # So say no if there are warnings
16307 if test -s conftest.err; then
16308 # Append any errors to the config.log.
16309 cat conftest.err 1>&5
16310 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16312 if diff conftest.exp conftest.er2 >/dev/null; then
16313 lt_cv_prog_compiler_static_works_GCJ=yes
16314 fi
16315 else
16316 lt_cv_prog_compiler_static_works_GCJ=yes
16317 fi
16318 fi
16319 $rm -r conftest*
16320 LDFLAGS="$save_LDFLAGS"
16321
16322 fi
16323 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16324 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6
16325
16326 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16327 :
16328 else
16329 lt_prog_compiler_static_GCJ=
16330 fi
16331
16332
16333 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16334 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16335 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16337 else
16338 lt_cv_prog_compiler_c_o_GCJ=no
16339 $rm -r conftest 2>/dev/null
16340 mkdir conftest
16341 cd conftest
16342 mkdir out
16343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16344
16345 lt_compiler_flag="-o out/conftest2.$ac_objext"
16346 # Insert the option either (1) after the last *FLAGS variable, or
16347 # (2) before a word containing "conftest.", or (3) at the end.
16348 # Note that $ac_compile itself does not contain backslashes and begins
16349 # with a dollar sign (not a hyphen), so the echo should work correctly.
16350 lt_compile=`echo "$ac_compile" | $SED \
16351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16353 -e 's:$: $lt_compiler_flag:'`
16354 (eval echo "\"\$as_me:16354: $lt_compile\"" >&5)
16355 (eval "$lt_compile" 2>out/conftest.err)
16356 ac_status=$?
16357 cat out/conftest.err >&5
16358 echo "$as_me:16358: \$? = $ac_status" >&5
16359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16360 then
16361 # The compiler can only warn and ignore the option if not recognized
16362 # So say no if there are warnings
16363 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16366 lt_cv_prog_compiler_c_o_GCJ=yes
16367 fi
16368 fi
16369 chmod u+w . 2>&5
16370 $rm conftest*
16371 # SGI C++ compiler will create directory out/ii_files/ for
16372 # template instantiation
16373 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16374 $rm out/* && rmdir out
16375 cd ..
16376 rmdir conftest
16377 $rm conftest*
16378
16379 fi
16380 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16381 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16382
16383
16384 hard_links="nottested"
16385 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16386 # do not overwrite the value of need_locks provided by the user
16387 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16388 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16389 hard_links=yes
16390 $rm conftest*
16391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16392 touch conftest.a
16393 ln conftest.a conftest.b 2>&5 || hard_links=no
16394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16395 echo "$as_me:$LINENO: result: $hard_links" >&5
16396 echo "${ECHO_T}$hard_links" >&6
16397 if test "$hard_links" = no; then
16398 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16399 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16400 need_locks=warn
16401 fi
16402 else
16403 need_locks=no
16404 fi
16405
16406 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16407 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16408
16409 runpath_var=
16410 allow_undefined_flag_GCJ=
16411 enable_shared_with_static_runtimes_GCJ=no
16412 archive_cmds_GCJ=
16413 archive_expsym_cmds_GCJ=
16414 old_archive_From_new_cmds_GCJ=
16415 old_archive_from_expsyms_cmds_GCJ=
16416 export_dynamic_flag_spec_GCJ=
16417 whole_archive_flag_spec_GCJ=
16418 thread_safe_flag_spec_GCJ=
16419 hardcode_libdir_flag_spec_GCJ=
16420 hardcode_libdir_flag_spec_ld_GCJ=
16421 hardcode_libdir_separator_GCJ=
16422 hardcode_direct_GCJ=no
16423 hardcode_minus_L_GCJ=no
16424 hardcode_shlibpath_var_GCJ=unsupported
16425 link_all_deplibs_GCJ=unknown
16426 hardcode_automatic_GCJ=no
16427 module_cmds_GCJ=
16428 module_expsym_cmds_GCJ=
16429 always_export_symbols_GCJ=no
16430 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16431 # include_expsyms should be a list of space-separated symbols to be *always*
16432 # included in the symbol list
16433 include_expsyms_GCJ=
16434 # exclude_expsyms can be an extended regexp of symbols to exclude
16435 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16436 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16437 # as well as any symbol that contains `d'.
16438 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16439 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16440 # platforms (ab)use it in PIC code, but their linkers get confused if
16441 # the symbol is explicitly referenced. Since portable code cannot
16442 # rely on this symbol name, it's probably fine to never include it in
16443 # preloaded symbol tables.
16444 # Exclude shared library initialization/finalization symbols.
16445 extract_expsyms_cmds=
16446 # Just being paranoid about ensuring that cc_basename is set.
16447 for cc_temp in $compiler""; do
16448 case $cc_temp in
16449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16451 \-*) ;;
16452 *) break;;
16453 esac
16454 done
16455 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16456
16457 case $host_os in
16458 cygwin* | mingw* | pw32*)
16459 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16460 # When not using gcc, we currently assume that we are using
16461 # Microsoft Visual C++.
16462 if test "$GCC" != yes; then
16463 with_gnu_ld=no
16464 fi
16465 ;;
16466 interix*)
16467 # we just hope/assume this is gcc and not c89 (= MSVC++)
16468 with_gnu_ld=yes
16469 ;;
16470 openbsd*)
16471 with_gnu_ld=no
16472 ;;
16473 esac
16474
16475 ld_shlibs_GCJ=yes
16476 if test "$with_gnu_ld" = yes; then
16477 # If archive_cmds runs LD, not CC, wlarc should be empty
16478 wlarc='${wl}'
16479
16480 # Set some defaults for GNU ld with shared library support. These
16481 # are reset later if shared libraries are not supported. Putting them
16482 # here allows them to be overridden if necessary.
16483 runpath_var=LD_RUN_PATH
16484 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16485 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16486 # ancient GNU ld didn't support --whole-archive et. al.
16487 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16488 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16489 else
16490 whole_archive_flag_spec_GCJ=
16491 fi
16492 supports_anon_versioning=no
16493 case `$LD -v 2>/dev/null` in
16494 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16495 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16496 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16497 *\ 2.11.*) ;; # other 2.11 versions
16498 *) supports_anon_versioning=yes ;;
16499 esac
16500
16501 # See if GNU ld supports shared libraries.
16502 case $host_os in
16503 aix[3-9]*)
16504 # On AIX/PPC, the GNU linker is very broken
16505 if test "$host_cpu" != ia64; then
16506 ld_shlibs_GCJ=no
16507 cat <<EOF 1>&2
16508
16509 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16510 *** to be unable to reliably create shared libraries on AIX.
16511 *** Therefore, libtool is disabling shared libraries support. If you
16512 *** really care for shared libraries, you may want to modify your PATH
16513 *** so that a non-GNU linker is found, and then restart.
16514
16515 EOF
16516 fi
16517 ;;
16518
16519 amigaos*)
16520 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)'
16521 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16522 hardcode_minus_L_GCJ=yes
16523
16524 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16525 # that the semantics of dynamic libraries on AmigaOS, at least up
16526 # to version 4, is to share data among multiple programs linked
16527 # with the same dynamic library. Since this doesn't match the
16528 # behavior of shared libraries on other platforms, we can't use
16529 # them.
16530 ld_shlibs_GCJ=no
16531 ;;
16532
16533 beos*)
16534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16535 allow_undefined_flag_GCJ=unsupported
16536 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16537 # support --undefined. This deserves some investigation. FIXME
16538 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16539 else
16540 ld_shlibs_GCJ=no
16541 fi
16542 ;;
16543
16544 cygwin* | mingw* | pw32*)
16545 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16546 # as there is no search path for DLLs.
16547 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16548 allow_undefined_flag_GCJ=unsupported
16549 always_export_symbols_GCJ=no
16550 enable_shared_with_static_runtimes_GCJ=yes
16551 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16552
16553 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16554 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16555 # If the export-symbols file already is a .def file (1st line
16556 # is EXPORTS), use it as is; otherwise, prepend...
16557 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16558 cp $export_symbols $output_objdir/$soname.def;
16559 else
16560 echo EXPORTS > $output_objdir/$soname.def;
16561 cat $export_symbols >> $output_objdir/$soname.def;
16562 fi~
16563 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16564 else
16565 ld_shlibs_GCJ=no
16566 fi
16567 ;;
16568
16569 interix[3-9]*)
16570 hardcode_direct_GCJ=no
16571 hardcode_shlibpath_var_GCJ=no
16572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16573 export_dynamic_flag_spec_GCJ='${wl}-E'
16574 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16575 # Instead, shared libraries are loaded at an image base (0x10000000 by
16576 # default) and relocated if they conflict, which is a slow very memory
16577 # consuming and fragmenting process. To avoid this, we pick a random,
16578 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16579 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16580 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16581 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16582 ;;
16583
16584 gnu* | linux* | k*bsd*-gnu)
16585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16586 tmp_addflag=
16587 case $cc_basename,$host_cpu in
16588 pgcc*) # Portland Group C compiler
16589 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'
16590 tmp_addflag=' $pic_flag'
16591 ;;
16592 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16593 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'
16594 tmp_addflag=' $pic_flag -Mnomain' ;;
16595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16596 tmp_addflag=' -i_dynamic' ;;
16597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16598 tmp_addflag=' -i_dynamic -nofor_main' ;;
16599 ifc* | ifort*) # Intel Fortran compiler
16600 tmp_addflag=' -nofor_main' ;;
16601 esac
16602 case `$CC -V 2>&1 | sed 5q` in
16603 *Sun\ C*) # Sun C 5.9
16604 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16605 tmp_sharedflag='-G' ;;
16606 *Sun\ F*) # Sun Fortran 8.3
16607 tmp_sharedflag='-G' ;;
16608 *)
16609 tmp_sharedflag='-shared' ;;
16610 esac
16611 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16612
16613 if test $supports_anon_versioning = yes; then
16614 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16615 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16616 $echo "local: *; };" >> $output_objdir/$libname.ver~
16617 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16618 fi
16619 else
16620 ld_shlibs_GCJ=no
16621 fi
16622 ;;
16623
16624 netbsd*)
16625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16626 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16627 wlarc=
16628 else
16629 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16630 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16631 fi
16632 ;;
16633
16634 solaris*)
16635 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16636 ld_shlibs_GCJ=no
16637 cat <<EOF 1>&2
16638
16639 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16640 *** create shared libraries on Solaris systems. Therefore, libtool
16641 *** is disabling shared libraries support. We urge you to upgrade GNU
16642 *** binutils to release 2.9.1 or newer. Another option is to modify
16643 *** your PATH or compiler configuration so that the native linker is
16644 *** used, and then restart.
16645
16646 EOF
16647 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16648 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16649 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16650 else
16651 ld_shlibs_GCJ=no
16652 fi
16653 ;;
16654
16655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16656 case `$LD -v 2>&1` in
16657 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16658 ld_shlibs_GCJ=no
16659 cat <<_LT_EOF 1>&2
16660
16661 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16662 *** reliably create shared libraries on SCO systems. Therefore, libtool
16663 *** is disabling shared libraries support. We urge you to upgrade GNU
16664 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16665 *** your PATH or compiler configuration so that the native linker is
16666 *** used, and then restart.
16667
16668 _LT_EOF
16669 ;;
16670 *)
16671 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16672 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16673 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16674 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16675 else
16676 ld_shlibs_GCJ=no
16677 fi
16678 ;;
16679 esac
16680 ;;
16681
16682 sunos4*)
16683 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16684 wlarc=
16685 hardcode_direct_GCJ=yes
16686 hardcode_shlibpath_var_GCJ=no
16687 ;;
16688
16689 *)
16690 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16692 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16693 else
16694 ld_shlibs_GCJ=no
16695 fi
16696 ;;
16697 esac
16698
16699 if test "$ld_shlibs_GCJ" = no; then
16700 runpath_var=
16701 hardcode_libdir_flag_spec_GCJ=
16702 export_dynamic_flag_spec_GCJ=
16703 whole_archive_flag_spec_GCJ=
16704 fi
16705 else
16706 # PORTME fill in a description of your system's linker (not GNU ld)
16707 case $host_os in
16708 aix3*)
16709 allow_undefined_flag_GCJ=unsupported
16710 always_export_symbols_GCJ=yes
16711 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'
16712 # Note: this linker hardcodes the directories in LIBPATH if there
16713 # are no directories specified by -L.
16714 hardcode_minus_L_GCJ=yes
16715 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16716 # Neither direct hardcoding nor static linking is supported with a
16717 # broken collect2.
16718 hardcode_direct_GCJ=unsupported
16719 fi
16720 ;;
16721
16722 aix[4-9]*)
16723 if test "$host_cpu" = ia64; then
16724 # On IA64, the linker does run time linking by default, so we don't
16725 # have to do anything special.
16726 aix_use_runtimelinking=no
16727 exp_sym_flag='-Bexport'
16728 no_entry_flag=""
16729 else
16730 # If we're using GNU nm, then we don't want the "-C" option.
16731 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16732 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16733 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'
16734 else
16735 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'
16736 fi
16737 aix_use_runtimelinking=no
16738
16739 # Test if we are trying to use run time linking or normal
16740 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16741 # need to do runtime linking.
16742 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16743 for ld_flag in $LDFLAGS; do
16744 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16745 aix_use_runtimelinking=yes
16746 break
16747 fi
16748 done
16749 ;;
16750 esac
16751
16752 exp_sym_flag='-bexport'
16753 no_entry_flag='-bnoentry'
16754 fi
16755
16756 # When large executables or shared objects are built, AIX ld can
16757 # have problems creating the table of contents. If linking a library
16758 # or program results in "error TOC overflow" add -mminimal-toc to
16759 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16760 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16761
16762 archive_cmds_GCJ=''
16763 hardcode_direct_GCJ=yes
16764 hardcode_libdir_separator_GCJ=':'
16765 link_all_deplibs_GCJ=yes
16766
16767 if test "$GCC" = yes; then
16768 case $host_os in aix4.[012]|aix4.[012].*)
16769 # We only want to do this on AIX 4.2 and lower, the check
16770 # below for broken collect2 doesn't work under 4.3+
16771 collect2name=`${CC} -print-prog-name=collect2`
16772 if test -f "$collect2name" && \
16773 strings "$collect2name" | grep resolve_lib_name >/dev/null
16774 then
16775 # We have reworked collect2
16776 :
16777 else
16778 # We have old collect2
16779 hardcode_direct_GCJ=unsupported
16780 # It fails to find uninstalled libraries when the uninstalled
16781 # path is not listed in the libpath. Setting hardcode_minus_L
16782 # to unsupported forces relinking
16783 hardcode_minus_L_GCJ=yes
16784 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16785 hardcode_libdir_separator_GCJ=
16786 fi
16787 ;;
16788 esac
16789 shared_flag='-shared'
16790 if test "$aix_use_runtimelinking" = yes; then
16791 shared_flag="$shared_flag "'${wl}-G'
16792 fi
16793 else
16794 # not using gcc
16795 if test "$host_cpu" = ia64; then
16796 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16797 # chokes on -Wl,-G. The following line is correct:
16798 shared_flag='-G'
16799 else
16800 if test "$aix_use_runtimelinking" = yes; then
16801 shared_flag='${wl}-G'
16802 else
16803 shared_flag='${wl}-bM:SRE'
16804 fi
16805 fi
16806 fi
16807
16808 # It seems that -bexpall does not export symbols beginning with
16809 # underscore (_), so it is better to generate a list of symbols to export.
16810 always_export_symbols_GCJ=yes
16811 if test "$aix_use_runtimelinking" = yes; then
16812 # Warning - without using the other runtime loading flags (-brtl),
16813 # -berok will link without error, but may produce a broken library.
16814 allow_undefined_flag_GCJ='-berok'
16815 # Determine the default libpath from the value encoded in an empty executable.
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822
16823 int
16824 main ()
16825 {
16826
16827 ;
16828 return 0;
16829 }
16830 _ACEOF
16831 rm -f conftest.$ac_objext conftest$ac_exeext
16832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16833 (eval $ac_link) 2>conftest.er1
16834 ac_status=$?
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try='test -z "$ac_c_werror_flag"
16841 || test ! -s conftest.err'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest$ac_exeext'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853
16854 lt_aix_libpath_sed='
16855 /Import File Strings/,/^$/ {
16856 /^0/ {
16857 s/^0 *\(.*\)$/\1/
16858 p
16859 }
16860 }'
16861 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16862 # Check for a 64-bit object if we didn't find anything.
16863 if test -z "$aix_libpath"; then
16864 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16865 fi
16866 else
16867 echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870 fi
16871 rm -f conftest.err conftest.$ac_objext \
16872 conftest$ac_exeext conftest.$ac_ext
16873 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16874
16875 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16876 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16877 else
16878 if test "$host_cpu" = ia64; then
16879 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16880 allow_undefined_flag_GCJ="-z nodefs"
16881 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16882 else
16883 # Determine the default libpath from the value encoded in an empty executable.
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890
16891 int
16892 main ()
16893 {
16894
16895 ;
16896 return 0;
16897 }
16898 _ACEOF
16899 rm -f conftest.$ac_objext conftest$ac_exeext
16900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16901 (eval $ac_link) 2>conftest.er1
16902 ac_status=$?
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -z "$ac_c_werror_flag"
16909 || test ! -s conftest.err'
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } &&
16915 { ac_try='test -s conftest$ac_exeext'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921
16922 lt_aix_libpath_sed='
16923 /Import File Strings/,/^$/ {
16924 /^0/ {
16925 s/^0 *\(.*\)$/\1/
16926 p
16927 }
16928 }'
16929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16930 # Check for a 64-bit object if we didn't find anything.
16931 if test -z "$aix_libpath"; then
16932 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16933 fi
16934 else
16935 echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16937
16938 fi
16939 rm -f conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16942
16943 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16944 # Warning - without using the other run time loading flags,
16945 # -berok will link without error, but may produce a broken library.
16946 no_undefined_flag_GCJ=' ${wl}-bernotok'
16947 allow_undefined_flag_GCJ=' ${wl}-berok'
16948 # Exported symbols can be pulled into shared objects from archives
16949 whole_archive_flag_spec_GCJ='$convenience'
16950 archive_cmds_need_lc_GCJ=yes
16951 # This is similar to how AIX traditionally builds its shared libraries.
16952 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16953 fi
16954 fi
16955 ;;
16956
16957 amigaos*)
16958 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)'
16959 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16960 hardcode_minus_L_GCJ=yes
16961 # see comment about different semantics on the GNU ld section
16962 ld_shlibs_GCJ=no
16963 ;;
16964
16965 bsdi[45]*)
16966 export_dynamic_flag_spec_GCJ=-rdynamic
16967 ;;
16968
16969 cygwin* | mingw* | pw32*)
16970 # When not using gcc, we currently assume that we are using
16971 # Microsoft Visual C++.
16972 # hardcode_libdir_flag_spec is actually meaningless, as there is
16973 # no search path for DLLs.
16974 hardcode_libdir_flag_spec_GCJ=' '
16975 allow_undefined_flag_GCJ=unsupported
16976 # Tell ltmain to make .lib files, not .a files.
16977 libext=lib
16978 # Tell ltmain to make .dll files, not .so files.
16979 shrext_cmds=".dll"
16980 # FIXME: Setting linknames here is a bad hack.
16981 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16982 # The linker will automatically build a .lib file if we build a DLL.
16983 old_archive_From_new_cmds_GCJ='true'
16984 # FIXME: Should let the user specify the lib program.
16985 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16986 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16987 enable_shared_with_static_runtimes_GCJ=yes
16988 ;;
16989
16990 darwin* | rhapsody*)
16991 case $host_os in
16992 rhapsody* | darwin1.[012])
16993 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16994 ;;
16995 *) # Darwin 1.3 on
16996 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16997 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16998 else
16999 case ${MACOSX_DEPLOYMENT_TARGET} in
17000 10.[012])
17001 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17002 ;;
17003 10.*)
17004 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17005 ;;
17006 esac
17007 fi
17008 ;;
17009 esac
17010 archive_cmds_need_lc_GCJ=no
17011 hardcode_direct_GCJ=no
17012 hardcode_automatic_GCJ=yes
17013 hardcode_shlibpath_var_GCJ=unsupported
17014 whole_archive_flag_spec_GCJ=''
17015 link_all_deplibs_GCJ=yes
17016 if test "$GCC" = yes ; then
17017 output_verbose_link_cmd='echo'
17018 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17019 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17020 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17021 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17022 else
17023 case $cc_basename in
17024 xlc*)
17025 output_verbose_link_cmd='echo'
17026 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17027 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17028 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17029 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17030 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}'
17031 ;;
17032 *)
17033 ld_shlibs_GCJ=no
17034 ;;
17035 esac
17036 fi
17037 ;;
17038
17039 dgux*)
17040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17041 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17042 hardcode_shlibpath_var_GCJ=no
17043 ;;
17044
17045 freebsd1*)
17046 ld_shlibs_GCJ=no
17047 ;;
17048
17049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17050 # support. Future versions do this automatically, but an explicit c++rt0.o
17051 # does not break anything, and helps significantly (at the cost of a little
17052 # extra space).
17053 freebsd2.2*)
17054 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17055 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17056 hardcode_direct_GCJ=yes
17057 hardcode_shlibpath_var_GCJ=no
17058 ;;
17059
17060 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17061 freebsd2*)
17062 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17063 hardcode_direct_GCJ=yes
17064 hardcode_minus_L_GCJ=yes
17065 hardcode_shlibpath_var_GCJ=no
17066 ;;
17067
17068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17069 freebsd* | dragonfly*)
17070 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17072 hardcode_direct_GCJ=yes
17073 hardcode_shlibpath_var_GCJ=no
17074 ;;
17075
17076 hpux9*)
17077 if test "$GCC" = yes; then
17078 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'
17079 else
17080 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'
17081 fi
17082 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17083 hardcode_libdir_separator_GCJ=:
17084 hardcode_direct_GCJ=yes
17085
17086 # hardcode_minus_L: Not really in the search PATH,
17087 # but as the default location of the library.
17088 hardcode_minus_L_GCJ=yes
17089 export_dynamic_flag_spec_GCJ='${wl}-E'
17090 ;;
17091
17092 hpux10*)
17093 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17094 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17095 else
17096 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17097 fi
17098 if test "$with_gnu_ld" = no; then
17099 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17100 hardcode_libdir_separator_GCJ=:
17101
17102 hardcode_direct_GCJ=yes
17103 export_dynamic_flag_spec_GCJ='${wl}-E'
17104
17105 # hardcode_minus_L: Not really in the search PATH,
17106 # but as the default location of the library.
17107 hardcode_minus_L_GCJ=yes
17108 fi
17109 ;;
17110
17111 hpux11*)
17112 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17113 case $host_cpu in
17114 hppa*64*)
17115 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17116 ;;
17117 ia64*)
17118 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17119 ;;
17120 *)
17121 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17122 ;;
17123 esac
17124 else
17125 case $host_cpu in
17126 hppa*64*)
17127 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17128 ;;
17129 ia64*)
17130 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17131 ;;
17132 *)
17133 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17134 ;;
17135 esac
17136 fi
17137 if test "$with_gnu_ld" = no; then
17138 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17139 hardcode_libdir_separator_GCJ=:
17140
17141 case $host_cpu in
17142 hppa*64*|ia64*)
17143 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17144 hardcode_direct_GCJ=no
17145 hardcode_shlibpath_var_GCJ=no
17146 ;;
17147 *)
17148 hardcode_direct_GCJ=yes
17149 export_dynamic_flag_spec_GCJ='${wl}-E'
17150
17151 # hardcode_minus_L: Not really in the search PATH,
17152 # but as the default location of the library.
17153 hardcode_minus_L_GCJ=yes
17154 ;;
17155 esac
17156 fi
17157 ;;
17158
17159 irix5* | irix6* | nonstopux*)
17160 if test "$GCC" = yes; then
17161 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'
17162 else
17163 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'
17164 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17165 fi
17166 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17167 hardcode_libdir_separator_GCJ=:
17168 link_all_deplibs_GCJ=yes
17169 ;;
17170
17171 netbsd*)
17172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17173 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17174 else
17175 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17176 fi
17177 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17178 hardcode_direct_GCJ=yes
17179 hardcode_shlibpath_var_GCJ=no
17180 ;;
17181
17182 newsos6)
17183 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17184 hardcode_direct_GCJ=yes
17185 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17186 hardcode_libdir_separator_GCJ=:
17187 hardcode_shlibpath_var_GCJ=no
17188 ;;
17189
17190 openbsd*)
17191 if test -f /usr/libexec/ld.so; then
17192 hardcode_direct_GCJ=yes
17193 hardcode_shlibpath_var_GCJ=no
17194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17195 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17196 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17197 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17198 export_dynamic_flag_spec_GCJ='${wl}-E'
17199 else
17200 case $host_os in
17201 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17202 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17203 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17204 ;;
17205 *)
17206 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17207 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17208 ;;
17209 esac
17210 fi
17211 else
17212 ld_shlibs_GCJ=no
17213 fi
17214 ;;
17215
17216 os2*)
17217 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17218 hardcode_minus_L_GCJ=yes
17219 allow_undefined_flag_GCJ=unsupported
17220 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'
17221 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17222 ;;
17223
17224 osf3*)
17225 if test "$GCC" = yes; then
17226 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17227 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'
17228 else
17229 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17230 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'
17231 fi
17232 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17233 hardcode_libdir_separator_GCJ=:
17234 ;;
17235
17236 osf4* | osf5*) # as osf3* with the addition of -msym flag
17237 if test "$GCC" = yes; then
17238 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17239 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'
17240 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17241 else
17242 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17243 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'
17244 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~
17245 $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'
17246
17247 # Both c and cxx compiler support -rpath directly
17248 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17249 fi
17250 hardcode_libdir_separator_GCJ=:
17251 ;;
17252
17253 solaris*)
17254 no_undefined_flag_GCJ=' -z text'
17255 if test "$GCC" = yes; then
17256 wlarc='${wl}'
17257 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17258 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17259 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17260 else
17261 wlarc=''
17262 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17263 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17264 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17265 fi
17266 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17267 hardcode_shlibpath_var_GCJ=no
17268 case $host_os in
17269 solaris2.[0-5] | solaris2.[0-5].*) ;;
17270 *)
17271 # The compiler driver will combine and reorder linker options,
17272 # but understands `-z linker_flag'. GCC discards it without `$wl',
17273 # but is careful enough not to reorder.
17274 # Supported since Solaris 2.6 (maybe 2.5.1?)
17275 if test "$GCC" = yes; then
17276 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17277 else
17278 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17279 fi
17280 ;;
17281 esac
17282 link_all_deplibs_GCJ=yes
17283 ;;
17284
17285 sunos4*)
17286 if test "x$host_vendor" = xsequent; then
17287 # Use $CC to link under sequent, because it throws in some extra .o
17288 # files that make .init and .fini sections work.
17289 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17290 else
17291 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17292 fi
17293 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17294 hardcode_direct_GCJ=yes
17295 hardcode_minus_L_GCJ=yes
17296 hardcode_shlibpath_var_GCJ=no
17297 ;;
17298
17299 sysv4)
17300 case $host_vendor in
17301 sni)
17302 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17303 hardcode_direct_GCJ=yes # is this really true???
17304 ;;
17305 siemens)
17306 ## LD is ld it makes a PLAMLIB
17307 ## CC just makes a GrossModule.
17308 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17309 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17310 hardcode_direct_GCJ=no
17311 ;;
17312 motorola)
17313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17314 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17315 ;;
17316 esac
17317 runpath_var='LD_RUN_PATH'
17318 hardcode_shlibpath_var_GCJ=no
17319 ;;
17320
17321 sysv4.3*)
17322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17323 hardcode_shlibpath_var_GCJ=no
17324 export_dynamic_flag_spec_GCJ='-Bexport'
17325 ;;
17326
17327 sysv4*MP*)
17328 if test -d /usr/nec; then
17329 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17330 hardcode_shlibpath_var_GCJ=no
17331 runpath_var=LD_RUN_PATH
17332 hardcode_runpath_var=yes
17333 ld_shlibs_GCJ=yes
17334 fi
17335 ;;
17336
17337 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17338 no_undefined_flag_GCJ='${wl}-z,text'
17339 archive_cmds_need_lc_GCJ=no
17340 hardcode_shlibpath_var_GCJ=no
17341 runpath_var='LD_RUN_PATH'
17342
17343 if test "$GCC" = yes; then
17344 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17345 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17346 else
17347 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17348 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17349 fi
17350 ;;
17351
17352 sysv5* | sco3.2v5* | sco5v6*)
17353 # Note: We can NOT use -z defs as we might desire, because we do not
17354 # link with -lc, and that would cause any symbols used from libc to
17355 # always be unresolved, which means just about no library would
17356 # ever link correctly. If we're not using GNU ld we use -z text
17357 # though, which does catch some bad symbols but isn't as heavy-handed
17358 # as -z defs.
17359 no_undefined_flag_GCJ='${wl}-z,text'
17360 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17361 archive_cmds_need_lc_GCJ=no
17362 hardcode_shlibpath_var_GCJ=no
17363 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17364 hardcode_libdir_separator_GCJ=':'
17365 link_all_deplibs_GCJ=yes
17366 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17367 runpath_var='LD_RUN_PATH'
17368
17369 if test "$GCC" = yes; then
17370 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17371 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17372 else
17373 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17374 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17375 fi
17376 ;;
17377
17378 uts4*)
17379 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17381 hardcode_shlibpath_var_GCJ=no
17382 ;;
17383
17384 *)
17385 ld_shlibs_GCJ=no
17386 ;;
17387 esac
17388 fi
17389
17390 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17391 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17392 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17393
17394 #
17395 # Do we need to explicitly link libc?
17396 #
17397 case "x$archive_cmds_need_lc_GCJ" in
17398 x|xyes)
17399 # Assume -lc should be added
17400 archive_cmds_need_lc_GCJ=yes
17401
17402 if test "$enable_shared" = yes && test "$GCC" = yes; then
17403 case $archive_cmds_GCJ in
17404 *'~'*)
17405 # FIXME: we may have to deal with multi-command sequences.
17406 ;;
17407 '$CC '*)
17408 # Test whether the compiler implicitly links with -lc since on some
17409 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17410 # to ld, don't add -lc before -lgcc.
17411 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17412 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17413 $rm conftest*
17414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17415
17416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17417 (eval $ac_compile) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } 2>conftest.err; then
17421 soname=conftest
17422 lib=conftest
17423 libobjs=conftest.$ac_objext
17424 deplibs=
17425 wl=$lt_prog_compiler_wl_GCJ
17426 pic_flag=$lt_prog_compiler_pic_GCJ
17427 compiler_flags=-v
17428 linker_flags=-v
17429 verstring=
17430 output_objdir=.
17431 libname=conftest
17432 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17433 allow_undefined_flag_GCJ=
17434 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17435 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }
17439 then
17440 archive_cmds_need_lc_GCJ=no
17441 else
17442 archive_cmds_need_lc_GCJ=yes
17443 fi
17444 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17445 else
17446 cat conftest.err 1>&5
17447 fi
17448 $rm conftest*
17449 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17450 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17451 ;;
17452 esac
17453 fi
17454 ;;
17455 esac
17456
17457 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17458 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17459 library_names_spec=
17460 libname_spec='lib$name'
17461 soname_spec=
17462 shrext_cmds=".so"
17463 postinstall_cmds=
17464 postuninstall_cmds=
17465 finish_cmds=
17466 finish_eval=
17467 shlibpath_var=
17468 shlibpath_overrides_runpath=unknown
17469 version_type=none
17470 dynamic_linker="$host_os ld.so"
17471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17472
17473 need_lib_prefix=unknown
17474 hardcode_into_libs=no
17475
17476 # when you set need_version to no, make sure it does not cause -set_version
17477 # flags to be left without arguments
17478 need_version=unknown
17479
17480 case $host_os in
17481 aix3*)
17482 version_type=linux
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17484 shlibpath_var=LIBPATH
17485
17486 # AIX 3 has no versioning support, so we append a major version to the name.
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 ;;
17489
17490 aix[4-9]*)
17491 version_type=linux
17492 need_lib_prefix=no
17493 need_version=no
17494 hardcode_into_libs=yes
17495 if test "$host_cpu" = ia64; then
17496 # AIX 5 supports IA64
17497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17498 shlibpath_var=LD_LIBRARY_PATH
17499 else
17500 # With GCC up to 2.95.x, collect2 would create an import file
17501 # for dependence libraries. The import file would start with
17502 # the line `#! .'. This would cause the generated library to
17503 # depend on `.', always an invalid library. This was fixed in
17504 # development snapshots of GCC prior to 3.0.
17505 case $host_os in
17506 aix4 | aix4.[01] | aix4.[01].*)
17507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17508 echo ' yes '
17509 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17510 :
17511 else
17512 can_build_shared=no
17513 fi
17514 ;;
17515 esac
17516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17517 # soname into executable. Probably we can add versioning support to
17518 # collect2, so additional links can be useful in future.
17519 if test "$aix_use_runtimelinking" = yes; then
17520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17521 # instead of lib<name>.a to let people know that these are not
17522 # typical AIX shared libraries.
17523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17524 else
17525 # We preserve .a as extension for shared libraries through AIX4.2
17526 # and later when we are not doing run time linking.
17527 library_names_spec='${libname}${release}.a $libname.a'
17528 soname_spec='${libname}${release}${shared_ext}$major'
17529 fi
17530 shlibpath_var=LIBPATH
17531 fi
17532 ;;
17533
17534 amigaos*)
17535 library_names_spec='$libname.ixlibrary $libname.a'
17536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17537 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'
17538 ;;
17539
17540 beos*)
17541 library_names_spec='${libname}${shared_ext}'
17542 dynamic_linker="$host_os ld.so"
17543 shlibpath_var=LIBRARY_PATH
17544 ;;
17545
17546 bsdi[45]*)
17547 version_type=linux
17548 need_version=no
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17552 shlibpath_var=LD_LIBRARY_PATH
17553 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17554 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17555 # the default ld.so.conf also contains /usr/contrib/lib and
17556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17557 # libtool to hard-code these into programs
17558 ;;
17559
17560 cygwin* | mingw* | pw32*)
17561 version_type=windows
17562 shrext_cmds=".dll"
17563 need_version=no
17564 need_lib_prefix=no
17565
17566 case $GCC,$host_os in
17567 yes,cygwin* | yes,mingw* | yes,pw32*)
17568 library_names_spec='$libname.dll.a'
17569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17570 postinstall_cmds='base_file=`basename \${file}`~
17571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17572 dldir=$destdir/`dirname \$dlpath`~
17573 test -d \$dldir || mkdir -p \$dldir~
17574 $install_prog $dir/$dlname \$dldir/$dlname~
17575 chmod a+x \$dldir/$dlname'
17576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17577 dlpath=$dir/\$dldll~
17578 $rm \$dlpath'
17579 shlibpath_overrides_runpath=yes
17580
17581 case $host_os in
17582 cygwin*)
17583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17585 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17586 ;;
17587 mingw*)
17588 # MinGW DLLs use traditional 'lib' prefix
17589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17591 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17592 # It is most probably a Windows format PATH printed by
17593 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17594 # path with ; separators, and with drive letters. We can handle the
17595 # drive letters (cygwin fileutils understands them), so leave them,
17596 # especially as we might pass files found there to a mingw objdump,
17597 # which wouldn't understand a cygwinified path. Ahh.
17598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17599 else
17600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17601 fi
17602 ;;
17603 pw32*)
17604 # pw32 DLLs use 'pw' prefix rather than 'lib'
17605 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17606 ;;
17607 esac
17608 ;;
17609
17610 *)
17611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17612 ;;
17613 esac
17614 dynamic_linker='Win32 ld.exe'
17615 # FIXME: first we should search . and the directory the executable is in
17616 shlibpath_var=PATH
17617 ;;
17618
17619 darwin* | rhapsody*)
17620 dynamic_linker="$host_os dyld"
17621 version_type=darwin
17622 need_lib_prefix=no
17623 need_version=no
17624 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17625 soname_spec='${libname}${release}${major}$shared_ext'
17626 shlibpath_overrides_runpath=yes
17627 shlibpath_var=DYLD_LIBRARY_PATH
17628 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17629
17630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17631 ;;
17632
17633 dgux*)
17634 version_type=linux
17635 need_lib_prefix=no
17636 need_version=no
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17638 soname_spec='${libname}${release}${shared_ext}$major'
17639 shlibpath_var=LD_LIBRARY_PATH
17640 ;;
17641
17642 freebsd1*)
17643 dynamic_linker=no
17644 ;;
17645
17646 freebsd* | dragonfly*)
17647 # DragonFly does not have aout. When/if they implement a new
17648 # versioning mechanism, adjust this.
17649 if test -x /usr/bin/objformat; then
17650 objformat=`/usr/bin/objformat`
17651 else
17652 case $host_os in
17653 freebsd[123]*) objformat=aout ;;
17654 *) objformat=elf ;;
17655 esac
17656 fi
17657 version_type=freebsd-$objformat
17658 case $version_type in
17659 freebsd-elf*)
17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17661 need_version=no
17662 need_lib_prefix=no
17663 ;;
17664 freebsd-*)
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17666 need_version=yes
17667 ;;
17668 esac
17669 shlibpath_var=LD_LIBRARY_PATH
17670 case $host_os in
17671 freebsd2*)
17672 shlibpath_overrides_runpath=yes
17673 ;;
17674 freebsd3.[01]* | freebsdelf3.[01]*)
17675 shlibpath_overrides_runpath=yes
17676 hardcode_into_libs=yes
17677 ;;
17678 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17679 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17680 shlibpath_overrides_runpath=no
17681 hardcode_into_libs=yes
17682 ;;
17683 *) # from 4.6 on, and DragonFly
17684 shlibpath_overrides_runpath=yes
17685 hardcode_into_libs=yes
17686 ;;
17687 esac
17688 ;;
17689
17690 gnu*)
17691 version_type=linux
17692 need_lib_prefix=no
17693 need_version=no
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17695 soname_spec='${libname}${release}${shared_ext}$major'
17696 shlibpath_var=LD_LIBRARY_PATH
17697 hardcode_into_libs=yes
17698 ;;
17699
17700 hpux9* | hpux10* | hpux11*)
17701 # Give a soname corresponding to the major version so that dld.sl refuses to
17702 # link against other versions.
17703 version_type=sunos
17704 need_lib_prefix=no
17705 need_version=no
17706 case $host_cpu in
17707 ia64*)
17708 shrext_cmds='.so'
17709 hardcode_into_libs=yes
17710 dynamic_linker="$host_os dld.so"
17711 shlibpath_var=LD_LIBRARY_PATH
17712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 if test "X$HPUX_IA64_MODE" = X32; then
17716 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17717 else
17718 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17719 fi
17720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17721 ;;
17722 hppa*64*)
17723 shrext_cmds='.sl'
17724 hardcode_into_libs=yes
17725 dynamic_linker="$host_os dld.sl"
17726 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17732 ;;
17733 *)
17734 shrext_cmds='.sl'
17735 dynamic_linker="$host_os dld.sl"
17736 shlibpath_var=SHLIB_PATH
17737 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17739 soname_spec='${libname}${release}${shared_ext}$major'
17740 ;;
17741 esac
17742 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17743 postinstall_cmds='chmod 555 $lib'
17744 ;;
17745
17746 interix[3-9]*)
17747 version_type=linux
17748 need_lib_prefix=no
17749 need_version=no
17750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17751 soname_spec='${libname}${release}${shared_ext}$major'
17752 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17753 shlibpath_var=LD_LIBRARY_PATH
17754 shlibpath_overrides_runpath=no
17755 hardcode_into_libs=yes
17756 ;;
17757
17758 irix5* | irix6* | nonstopux*)
17759 case $host_os in
17760 nonstopux*) version_type=nonstopux ;;
17761 *)
17762 if test "$lt_cv_prog_gnu_ld" = yes; then
17763 version_type=linux
17764 else
17765 version_type=irix
17766 fi ;;
17767 esac
17768 need_lib_prefix=no
17769 need_version=no
17770 soname_spec='${libname}${release}${shared_ext}$major'
17771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17772 case $host_os in
17773 irix5* | nonstopux*)
17774 libsuff= shlibsuff=
17775 ;;
17776 *)
17777 case $LD in # libtool.m4 will add one of these switches to LD
17778 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17779 libsuff= shlibsuff= libmagic=32-bit;;
17780 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17781 libsuff=32 shlibsuff=N32 libmagic=N32;;
17782 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17783 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17784 *) libsuff= shlibsuff= libmagic=never-match;;
17785 esac
17786 ;;
17787 esac
17788 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17789 shlibpath_overrides_runpath=no
17790 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17791 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17792 hardcode_into_libs=yes
17793 ;;
17794
17795 # No shared lib support for Linux oldld, aout, or coff.
17796 linux*oldld* | linux*aout* | linux*coff*)
17797 dynamic_linker=no
17798 ;;
17799
17800 # This must be Linux ELF.
17801 linux* | k*bsd*-gnu)
17802 version_type=linux
17803 need_lib_prefix=no
17804 need_version=no
17805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17806 soname_spec='${libname}${release}${shared_ext}$major'
17807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17808 shlibpath_var=LD_LIBRARY_PATH
17809 shlibpath_overrides_runpath=no
17810 # This implies no fast_install, which is unacceptable.
17811 # Some rework will be needed to allow for fast_install
17812 # before this can be enabled.
17813 hardcode_into_libs=yes
17814
17815 # Append ld.so.conf contents to the search path
17816 if test -f /etc/ld.so.conf; then
17817 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17818 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17819 fi
17820
17821 # We used to test for /lib/ld.so.1 and disable shared libraries on
17822 # powerpc, because MkLinux only supported shared libraries with the
17823 # GNU dynamic linker. Since this was broken with cross compilers,
17824 # most powerpc-linux boxes support dynamic linking these days and
17825 # people can always --disable-shared, the test was removed, and we
17826 # assume the GNU/Linux dynamic linker is in use.
17827 dynamic_linker='GNU/Linux ld.so'
17828 ;;
17829
17830 netbsd*)
17831 version_type=sunos
17832 need_lib_prefix=no
17833 need_version=no
17834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17837 dynamic_linker='NetBSD (a.out) ld.so'
17838 else
17839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17840 soname_spec='${libname}${release}${shared_ext}$major'
17841 dynamic_linker='NetBSD ld.elf_so'
17842 fi
17843 shlibpath_var=LD_LIBRARY_PATH
17844 shlibpath_overrides_runpath=yes
17845 hardcode_into_libs=yes
17846 ;;
17847
17848 newsos6)
17849 version_type=linux
17850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17851 shlibpath_var=LD_LIBRARY_PATH
17852 shlibpath_overrides_runpath=yes
17853 ;;
17854
17855 nto-qnx*)
17856 version_type=linux
17857 need_lib_prefix=no
17858 need_version=no
17859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17860 soname_spec='${libname}${release}${shared_ext}$major'
17861 shlibpath_var=LD_LIBRARY_PATH
17862 shlibpath_overrides_runpath=yes
17863 ;;
17864
17865 openbsd*)
17866 version_type=sunos
17867 sys_lib_dlsearch_path_spec="/usr/lib"
17868 need_lib_prefix=no
17869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17870 case $host_os in
17871 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17872 *) need_version=no ;;
17873 esac
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17876 shlibpath_var=LD_LIBRARY_PATH
17877 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17878 case $host_os in
17879 openbsd2.[89] | openbsd2.[89].*)
17880 shlibpath_overrides_runpath=no
17881 ;;
17882 *)
17883 shlibpath_overrides_runpath=yes
17884 ;;
17885 esac
17886 else
17887 shlibpath_overrides_runpath=yes
17888 fi
17889 ;;
17890
17891 os2*)
17892 libname_spec='$name'
17893 shrext_cmds=".dll"
17894 need_lib_prefix=no
17895 library_names_spec='$libname${shared_ext} $libname.a'
17896 dynamic_linker='OS/2 ld.exe'
17897 shlibpath_var=LIBPATH
17898 ;;
17899
17900 osf3* | osf4* | osf5*)
17901 version_type=osf
17902 need_lib_prefix=no
17903 need_version=no
17904 soname_spec='${libname}${release}${shared_ext}$major'
17905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17906 shlibpath_var=LD_LIBRARY_PATH
17907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17908 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17909 ;;
17910
17911 rdos*)
17912 dynamic_linker=no
17913 ;;
17914
17915 solaris*)
17916 version_type=linux
17917 need_lib_prefix=no
17918 need_version=no
17919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17920 soname_spec='${libname}${release}${shared_ext}$major'
17921 shlibpath_var=LD_LIBRARY_PATH
17922 shlibpath_overrides_runpath=yes
17923 hardcode_into_libs=yes
17924 # ldd complains unless libraries are executable
17925 postinstall_cmds='chmod +x $lib'
17926 ;;
17927
17928 sunos4*)
17929 version_type=sunos
17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17932 shlibpath_var=LD_LIBRARY_PATH
17933 shlibpath_overrides_runpath=yes
17934 if test "$with_gnu_ld" = yes; then
17935 need_lib_prefix=no
17936 fi
17937 need_version=yes
17938 ;;
17939
17940 sysv4 | sysv4.3*)
17941 version_type=linux
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 soname_spec='${libname}${release}${shared_ext}$major'
17944 shlibpath_var=LD_LIBRARY_PATH
17945 case $host_vendor in
17946 sni)
17947 shlibpath_overrides_runpath=no
17948 need_lib_prefix=no
17949 export_dynamic_flag_spec='${wl}-Blargedynsym'
17950 runpath_var=LD_RUN_PATH
17951 ;;
17952 siemens)
17953 need_lib_prefix=no
17954 ;;
17955 motorola)
17956 need_lib_prefix=no
17957 need_version=no
17958 shlibpath_overrides_runpath=no
17959 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17960 ;;
17961 esac
17962 ;;
17963
17964 sysv4*MP*)
17965 if test -d /usr/nec ;then
17966 version_type=linux
17967 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17968 soname_spec='$libname${shared_ext}.$major'
17969 shlibpath_var=LD_LIBRARY_PATH
17970 fi
17971 ;;
17972
17973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17974 version_type=freebsd-elf
17975 need_lib_prefix=no
17976 need_version=no
17977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17978 soname_spec='${libname}${release}${shared_ext}$major'
17979 shlibpath_var=LD_LIBRARY_PATH
17980 hardcode_into_libs=yes
17981 if test "$with_gnu_ld" = yes; then
17982 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17983 shlibpath_overrides_runpath=no
17984 else
17985 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17986 shlibpath_overrides_runpath=yes
17987 case $host_os in
17988 sco3.2v5*)
17989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17990 ;;
17991 esac
17992 fi
17993 sys_lib_dlsearch_path_spec='/usr/lib'
17994 ;;
17995
17996 uts4*)
17997 version_type=linux
17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17999 soname_spec='${libname}${release}${shared_ext}$major'
18000 shlibpath_var=LD_LIBRARY_PATH
18001 ;;
18002
18003 *)
18004 dynamic_linker=no
18005 ;;
18006 esac
18007 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18008 echo "${ECHO_T}$dynamic_linker" >&6
18009 test "$dynamic_linker" = no && can_build_shared=no
18010
18011 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18015 fi
18016
18017 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18018 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18019 echo $ECHO_N "(cached) $ECHO_C" >&6
18020 else
18021 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18022 fi
18023
18024 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18025
18026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18027 if test "$GCC" = yes; then
18028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18029 fi
18030
18031 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18032 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18033 hardcode_action_GCJ=
18034 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18035 test -n "$runpath_var_GCJ" || \
18036 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18037
18038 # We can hardcode non-existant directories.
18039 if test "$hardcode_direct_GCJ" != no &&
18040 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18041 # have to relink, otherwise we might link with an installed library
18042 # when we should be linking with a yet-to-be-installed one
18043 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18044 test "$hardcode_minus_L_GCJ" != no; then
18045 # Linking always hardcodes the temporary library directory.
18046 hardcode_action_GCJ=relink
18047 else
18048 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18049 hardcode_action_GCJ=immediate
18050 fi
18051 else
18052 # We cannot hardcode anything, or else we can only hardcode existing
18053 # directories.
18054 hardcode_action_GCJ=unsupported
18055 fi
18056 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18057 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18058
18059 if test "$hardcode_action_GCJ" = relink; then
18060 # Fast installation is not supported
18061 enable_fast_install=no
18062 elif test "$shlibpath_overrides_runpath" = yes ||
18063 test "$enable_shared" = no; then
18064 # Fast installation is not necessary
18065 enable_fast_install=needless
18066 fi
18067
18068
18069 # The else clause should only fire when bootstrapping the
18070 # libtool distribution, otherwise you forgot to ship ltmain.sh
18071 # with your package, and you will get complaints that there are
18072 # no rules to generate ltmain.sh.
18073 if test -f "$ltmain"; then
18074 # See if we are running on zsh, and set the options which allow our commands through
18075 # without removal of \ escapes.
18076 if test -n "${ZSH_VERSION+set}" ; then
18077 setopt NO_GLOB_SUBST
18078 fi
18079 # Now quote all the things that may contain metacharacters while being
18080 # careful not to overquote the AC_SUBSTed values. We take copies of the
18081 # variables and quote the copies for generation of the libtool script.
18082 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18083 SED SHELL STRIP \
18084 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18085 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18086 deplibs_check_method reload_flag reload_cmds need_locks \
18087 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18088 lt_cv_sys_global_symbol_to_c_name_address \
18089 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18090 old_postinstall_cmds old_postuninstall_cmds \
18091 compiler_GCJ \
18092 CC_GCJ \
18093 LD_GCJ \
18094 lt_prog_compiler_wl_GCJ \
18095 lt_prog_compiler_pic_GCJ \
18096 lt_prog_compiler_static_GCJ \
18097 lt_prog_compiler_no_builtin_flag_GCJ \
18098 export_dynamic_flag_spec_GCJ \
18099 thread_safe_flag_spec_GCJ \
18100 whole_archive_flag_spec_GCJ \
18101 enable_shared_with_static_runtimes_GCJ \
18102 old_archive_cmds_GCJ \
18103 old_archive_from_new_cmds_GCJ \
18104 predep_objects_GCJ \
18105 postdep_objects_GCJ \
18106 predeps_GCJ \
18107 postdeps_GCJ \
18108 compiler_lib_search_path_GCJ \
18109 compiler_lib_search_dirs_GCJ \
18110 archive_cmds_GCJ \
18111 archive_expsym_cmds_GCJ \
18112 postinstall_cmds_GCJ \
18113 postuninstall_cmds_GCJ \
18114 old_archive_from_expsyms_cmds_GCJ \
18115 allow_undefined_flag_GCJ \
18116 no_undefined_flag_GCJ \
18117 export_symbols_cmds_GCJ \
18118 hardcode_libdir_flag_spec_GCJ \
18119 hardcode_libdir_flag_spec_ld_GCJ \
18120 hardcode_libdir_separator_GCJ \
18121 hardcode_automatic_GCJ \
18122 module_cmds_GCJ \
18123 module_expsym_cmds_GCJ \
18124 lt_cv_prog_compiler_c_o_GCJ \
18125 fix_srcfile_path_GCJ \
18126 exclude_expsyms_GCJ \
18127 include_expsyms_GCJ; do
18128
18129 case $var in
18130 old_archive_cmds_GCJ | \
18131 old_archive_from_new_cmds_GCJ | \
18132 archive_cmds_GCJ | \
18133 archive_expsym_cmds_GCJ | \
18134 module_cmds_GCJ | \
18135 module_expsym_cmds_GCJ | \
18136 old_archive_from_expsyms_cmds_GCJ | \
18137 export_symbols_cmds_GCJ | \
18138 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18139 postinstall_cmds | postuninstall_cmds | \
18140 old_postinstall_cmds | old_postuninstall_cmds | \
18141 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18142 # Double-quote double-evaled strings.
18143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18144 ;;
18145 *)
18146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18147 ;;
18148 esac
18149 done
18150
18151 case $lt_echo in
18152 *'\$0 --fallback-echo"')
18153 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18154 ;;
18155 esac
18156
18157 cfgfile="$ofile"
18158
18159 cat <<__EOF__ >> "$cfgfile"
18160 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18161
18162 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18163
18164 # Shell to use when invoking shell scripts.
18165 SHELL=$lt_SHELL
18166
18167 # Whether or not to build shared libraries.
18168 build_libtool_libs=$enable_shared
18169
18170 # Whether or not to build static libraries.
18171 build_old_libs=$enable_static
18172
18173 # Whether or not to add -lc for building shared libraries.
18174 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18175
18176 # Whether or not to disallow shared libs when runtime libs are static
18177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18178
18179 # Whether or not to optimize for fast installation.
18180 fast_install=$enable_fast_install
18181
18182 # The host system.
18183 host_alias=$host_alias
18184 host=$host
18185 host_os=$host_os
18186
18187 # The build system.
18188 build_alias=$build_alias
18189 build=$build
18190 build_os=$build_os
18191
18192 # An echo program that does not interpret backslashes.
18193 echo=$lt_echo
18194
18195 # The archiver.
18196 AR=$lt_AR
18197 AR_FLAGS=$lt_AR_FLAGS
18198
18199 # A C compiler.
18200 LTCC=$lt_LTCC
18201
18202 # LTCC compiler flags.
18203 LTCFLAGS=$lt_LTCFLAGS
18204
18205 # A language-specific compiler.
18206 CC=$lt_compiler_GCJ
18207
18208 # Is the compiler the GNU C compiler?
18209 with_gcc=$GCC_GCJ
18210
18211 # An ERE matcher.
18212 EGREP=$lt_EGREP
18213
18214 # The linker used to build libraries.
18215 LD=$lt_LD_GCJ
18216
18217 # Whether we need hard or soft links.
18218 LN_S=$lt_LN_S
18219
18220 # A BSD-compatible nm program.
18221 NM=$lt_NM
18222
18223 # A symbol stripping program
18224 STRIP=$lt_STRIP
18225
18226 # Used to examine libraries when file_magic_cmd begins "file"
18227 MAGIC_CMD=$MAGIC_CMD
18228
18229 # Used on cygwin: DLL creation program.
18230 DLLTOOL="$DLLTOOL"
18231
18232 # Used on cygwin: object dumper.
18233 OBJDUMP="$OBJDUMP"
18234
18235 # Used on cygwin: assembler.
18236 AS="$AS"
18237
18238 # The name of the directory that contains temporary libtool files.
18239 objdir=$objdir
18240
18241 # How to create reloadable object files.
18242 reload_flag=$lt_reload_flag
18243 reload_cmds=$lt_reload_cmds
18244
18245 # How to pass a linker flag through the compiler.
18246 wl=$lt_lt_prog_compiler_wl_GCJ
18247
18248 # Object file suffix (normally "o").
18249 objext="$ac_objext"
18250
18251 # Old archive suffix (normally "a").
18252 libext="$libext"
18253
18254 # Shared library suffix (normally ".so").
18255 shrext_cmds='$shrext_cmds'
18256
18257 # Executable file suffix (normally "").
18258 exeext="$exeext"
18259
18260 # Additional compiler flags for building library objects.
18261 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18262 pic_mode=$pic_mode
18263
18264 # What is the maximum length of a command?
18265 max_cmd_len=$lt_cv_sys_max_cmd_len
18266
18267 # Does compiler simultaneously support -c and -o options?
18268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18269
18270 # Must we lock files when doing compilation?
18271 need_locks=$lt_need_locks
18272
18273 # Do we need the lib prefix for modules?
18274 need_lib_prefix=$need_lib_prefix
18275
18276 # Do we need a version for libraries?
18277 need_version=$need_version
18278
18279 # Whether dlopen is supported.
18280 dlopen_support=$enable_dlopen
18281
18282 # Whether dlopen of programs is supported.
18283 dlopen_self=$enable_dlopen_self
18284
18285 # Whether dlopen of statically linked programs is supported.
18286 dlopen_self_static=$enable_dlopen_self_static
18287
18288 # Compiler flag to prevent dynamic linking.
18289 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18290
18291 # Compiler flag to turn off builtin functions.
18292 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18293
18294 # Compiler flag to allow reflexive dlopens.
18295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18296
18297 # Compiler flag to generate shared objects directly from archives.
18298 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18299
18300 # Compiler flag to generate thread-safe objects.
18301 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18302
18303 # Library versioning type.
18304 version_type=$version_type
18305
18306 # Format of library name prefix.
18307 libname_spec=$lt_libname_spec
18308
18309 # List of archive names. First name is the real one, the rest are links.
18310 # The last name is the one that the linker finds with -lNAME.
18311 library_names_spec=$lt_library_names_spec
18312
18313 # The coded name of the library, if different from the real name.
18314 soname_spec=$lt_soname_spec
18315
18316 # Commands used to build and install an old-style archive.
18317 RANLIB=$lt_RANLIB
18318 old_archive_cmds=$lt_old_archive_cmds_GCJ
18319 old_postinstall_cmds=$lt_old_postinstall_cmds
18320 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18321
18322 # Create an old-style archive from a shared archive.
18323 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18324
18325 # Create a temporary old-style archive to link instead of a shared archive.
18326 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18327
18328 # Commands used to build and install a shared archive.
18329 archive_cmds=$lt_archive_cmds_GCJ
18330 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18331 postinstall_cmds=$lt_postinstall_cmds
18332 postuninstall_cmds=$lt_postuninstall_cmds
18333
18334 # Commands used to build a loadable module (assumed same as above if empty)
18335 module_cmds=$lt_module_cmds_GCJ
18336 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18337
18338 # Commands to strip libraries.
18339 old_striplib=$lt_old_striplib
18340 striplib=$lt_striplib
18341
18342 # Dependencies to place before the objects being linked to create a
18343 # shared library.
18344 predep_objects=$lt_predep_objects_GCJ
18345
18346 # Dependencies to place after the objects being linked to create a
18347 # shared library.
18348 postdep_objects=$lt_postdep_objects_GCJ
18349
18350 # Dependencies to place before the objects being linked to create a
18351 # shared library.
18352 predeps=$lt_predeps_GCJ
18353
18354 # Dependencies to place after the objects being linked to create a
18355 # shared library.
18356 postdeps=$lt_postdeps_GCJ
18357
18358 # The directories searched by this compiler when creating a shared
18359 # library
18360 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18361
18362 # The library search path used internally by the compiler when linking
18363 # a shared library.
18364 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18365
18366 # Method to check whether dependent libraries are shared objects.
18367 deplibs_check_method=$lt_deplibs_check_method
18368
18369 # Command to use when deplibs_check_method == file_magic.
18370 file_magic_cmd=$lt_file_magic_cmd
18371
18372 # Flag that allows shared libraries with undefined symbols to be built.
18373 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18374
18375 # Flag that forces no undefined symbols.
18376 no_undefined_flag=$lt_no_undefined_flag_GCJ
18377
18378 # Commands used to finish a libtool library installation in a directory.
18379 finish_cmds=$lt_finish_cmds
18380
18381 # Same as above, but a single script fragment to be evaled but not shown.
18382 finish_eval=$lt_finish_eval
18383
18384 # Take the output of nm and produce a listing of raw symbols and C names.
18385 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18386
18387 # Transform the output of nm in a proper C declaration
18388 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18389
18390 # Transform the output of nm in a C name address pair
18391 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18392
18393 # This is the shared library runtime path variable.
18394 runpath_var=$runpath_var
18395
18396 # This is the shared library path variable.
18397 shlibpath_var=$shlibpath_var
18398
18399 # Is shlibpath searched before the hard-coded library search path?
18400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18401
18402 # How to hardcode a shared library path into an executable.
18403 hardcode_action=$hardcode_action_GCJ
18404
18405 # Whether we should hardcode library paths into libraries.
18406 hardcode_into_libs=$hardcode_into_libs
18407
18408 # Flag to hardcode \$libdir into a binary during linking.
18409 # This must work even if \$libdir does not exist.
18410 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18411
18412 # If ld is used when linking, flag to hardcode \$libdir into
18413 # a binary during linking. This must work even if \$libdir does
18414 # not exist.
18415 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18416
18417 # Whether we need a single -rpath flag with a separated argument.
18418 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18419
18420 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18421 # resulting binary.
18422 hardcode_direct=$hardcode_direct_GCJ
18423
18424 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18425 # resulting binary.
18426 hardcode_minus_L=$hardcode_minus_L_GCJ
18427
18428 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18429 # the resulting binary.
18430 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18431
18432 # Set to yes if building a shared library automatically hardcodes DIR into the library
18433 # and all subsequent libraries and executables linked against it.
18434 hardcode_automatic=$hardcode_automatic_GCJ
18435
18436 # Variables whose values should be saved in libtool wrapper scripts and
18437 # restored at relink time.
18438 variables_saved_for_relink="$variables_saved_for_relink"
18439
18440 # Whether libtool must link a program against all its dependency libraries.
18441 link_all_deplibs=$link_all_deplibs_GCJ
18442
18443 # Compile-time system search path for libraries
18444 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18445
18446 # Run-time system search path for libraries
18447 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18448
18449 # Fix the shell variable \$srcfile for the compiler.
18450 fix_srcfile_path=$lt_fix_srcfile_path
18451
18452 # Set to yes if exported symbols are required.
18453 always_export_symbols=$always_export_symbols_GCJ
18454
18455 # The commands to list exported symbols.
18456 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18457
18458 # The commands to extract the exported symbol list from a shared archive.
18459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18460
18461 # Symbols that should not be listed in the preloaded symbols.
18462 exclude_expsyms=$lt_exclude_expsyms_GCJ
18463
18464 # Symbols that must always be exported.
18465 include_expsyms=$lt_include_expsyms_GCJ
18466
18467 # ### END LIBTOOL TAG CONFIG: $tagname
18468
18469 __EOF__
18470
18471
18472 else
18473 # If there is no Makefile yet, we rely on a make rule to execute
18474 # `config.status --recheck' to rerun these tests and create the
18475 # libtool script then.
18476 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18477 if test -f "$ltmain_in"; then
18478 test -f Makefile && make "$ltmain"
18479 fi
18480 fi
18481
18482
18483 ac_ext=c
18484 ac_cpp='$CPP $CPPFLAGS'
18485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18488
18489 CC="$lt_save_CC"
18490
18491 else
18492 tagname=""
18493 fi
18494 ;;
18495
18496 RC)
18497
18498
18499
18500 # Source file extension for RC test sources.
18501 ac_ext=rc
18502
18503 # Object file extension for compiled RC test sources.
18504 objext=o
18505 objext_RC=$objext
18506
18507 # Code to be used in simple compile tests
18508 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18509
18510 # Code to be used in simple link tests
18511 lt_simple_link_test_code="$lt_simple_compile_test_code"
18512
18513 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18514
18515 # If no C compiler was specified, use CC.
18516 LTCC=${LTCC-"$CC"}
18517
18518 # If no C compiler flags were specified, use CFLAGS.
18519 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18520
18521 # Allow CC to be a program name with arguments.
18522 compiler=$CC
18523
18524
18525 # save warnings/boilerplate of simple test code
18526 ac_outfile=conftest.$ac_objext
18527 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18528 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18529 _lt_compiler_boilerplate=`cat conftest.err`
18530 $rm conftest*
18531
18532 ac_outfile=conftest.$ac_objext
18533 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18534 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18535 _lt_linker_boilerplate=`cat conftest.err`
18536 $rm -r conftest*
18537
18538
18539 # Allow CC to be a program name with arguments.
18540 lt_save_CC="$CC"
18541 CC=${RC-"windres"}
18542 compiler=$CC
18543 compiler_RC=$CC
18544 for cc_temp in $compiler""; do
18545 case $cc_temp in
18546 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18547 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18548 \-*) ;;
18549 *) break;;
18550 esac
18551 done
18552 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18553
18554 lt_cv_prog_compiler_c_o_RC=yes
18555
18556 # The else clause should only fire when bootstrapping the
18557 # libtool distribution, otherwise you forgot to ship ltmain.sh
18558 # with your package, and you will get complaints that there are
18559 # no rules to generate ltmain.sh.
18560 if test -f "$ltmain"; then
18561 # See if we are running on zsh, and set the options which allow our commands through
18562 # without removal of \ escapes.
18563 if test -n "${ZSH_VERSION+set}" ; then
18564 setopt NO_GLOB_SUBST
18565 fi
18566 # Now quote all the things that may contain metacharacters while being
18567 # careful not to overquote the AC_SUBSTed values. We take copies of the
18568 # variables and quote the copies for generation of the libtool script.
18569 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18570 SED SHELL STRIP \
18571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18573 deplibs_check_method reload_flag reload_cmds need_locks \
18574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18575 lt_cv_sys_global_symbol_to_c_name_address \
18576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18577 old_postinstall_cmds old_postuninstall_cmds \
18578 compiler_RC \
18579 CC_RC \
18580 LD_RC \
18581 lt_prog_compiler_wl_RC \
18582 lt_prog_compiler_pic_RC \
18583 lt_prog_compiler_static_RC \
18584 lt_prog_compiler_no_builtin_flag_RC \
18585 export_dynamic_flag_spec_RC \
18586 thread_safe_flag_spec_RC \
18587 whole_archive_flag_spec_RC \
18588 enable_shared_with_static_runtimes_RC \
18589 old_archive_cmds_RC \
18590 old_archive_from_new_cmds_RC \
18591 predep_objects_RC \
18592 postdep_objects_RC \
18593 predeps_RC \
18594 postdeps_RC \
18595 compiler_lib_search_path_RC \
18596 compiler_lib_search_dirs_RC \
18597 archive_cmds_RC \
18598 archive_expsym_cmds_RC \
18599 postinstall_cmds_RC \
18600 postuninstall_cmds_RC \
18601 old_archive_from_expsyms_cmds_RC \
18602 allow_undefined_flag_RC \
18603 no_undefined_flag_RC \
18604 export_symbols_cmds_RC \
18605 hardcode_libdir_flag_spec_RC \
18606 hardcode_libdir_flag_spec_ld_RC \
18607 hardcode_libdir_separator_RC \
18608 hardcode_automatic_RC \
18609 module_cmds_RC \
18610 module_expsym_cmds_RC \
18611 lt_cv_prog_compiler_c_o_RC \
18612 fix_srcfile_path_RC \
18613 exclude_expsyms_RC \
18614 include_expsyms_RC; do
18615
18616 case $var in
18617 old_archive_cmds_RC | \
18618 old_archive_from_new_cmds_RC | \
18619 archive_cmds_RC | \
18620 archive_expsym_cmds_RC | \
18621 module_cmds_RC | \
18622 module_expsym_cmds_RC | \
18623 old_archive_from_expsyms_cmds_RC | \
18624 export_symbols_cmds_RC | \
18625 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18626 postinstall_cmds | postuninstall_cmds | \
18627 old_postinstall_cmds | old_postuninstall_cmds | \
18628 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18629 # Double-quote double-evaled strings.
18630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18631 ;;
18632 *)
18633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18634 ;;
18635 esac
18636 done
18637
18638 case $lt_echo in
18639 *'\$0 --fallback-echo"')
18640 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18641 ;;
18642 esac
18643
18644 cfgfile="$ofile"
18645
18646 cat <<__EOF__ >> "$cfgfile"
18647 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18648
18649 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18650
18651 # Shell to use when invoking shell scripts.
18652 SHELL=$lt_SHELL
18653
18654 # Whether or not to build shared libraries.
18655 build_libtool_libs=$enable_shared
18656
18657 # Whether or not to build static libraries.
18658 build_old_libs=$enable_static
18659
18660 # Whether or not to add -lc for building shared libraries.
18661 build_libtool_need_lc=$archive_cmds_need_lc_RC
18662
18663 # Whether or not to disallow shared libs when runtime libs are static
18664 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18665
18666 # Whether or not to optimize for fast installation.
18667 fast_install=$enable_fast_install
18668
18669 # The host system.
18670 host_alias=$host_alias
18671 host=$host
18672 host_os=$host_os
18673
18674 # The build system.
18675 build_alias=$build_alias
18676 build=$build
18677 build_os=$build_os
18678
18679 # An echo program that does not interpret backslashes.
18680 echo=$lt_echo
18681
18682 # The archiver.
18683 AR=$lt_AR
18684 AR_FLAGS=$lt_AR_FLAGS
18685
18686 # A C compiler.
18687 LTCC=$lt_LTCC
18688
18689 # LTCC compiler flags.
18690 LTCFLAGS=$lt_LTCFLAGS
18691
18692 # A language-specific compiler.
18693 CC=$lt_compiler_RC
18694
18695 # Is the compiler the GNU C compiler?
18696 with_gcc=$GCC_RC
18697
18698 # An ERE matcher.
18699 EGREP=$lt_EGREP
18700
18701 # The linker used to build libraries.
18702 LD=$lt_LD_RC
18703
18704 # Whether we need hard or soft links.
18705 LN_S=$lt_LN_S
18706
18707 # A BSD-compatible nm program.
18708 NM=$lt_NM
18709
18710 # A symbol stripping program
18711 STRIP=$lt_STRIP
18712
18713 # Used to examine libraries when file_magic_cmd begins "file"
18714 MAGIC_CMD=$MAGIC_CMD
18715
18716 # Used on cygwin: DLL creation program.
18717 DLLTOOL="$DLLTOOL"
18718
18719 # Used on cygwin: object dumper.
18720 OBJDUMP="$OBJDUMP"
18721
18722 # Used on cygwin: assembler.
18723 AS="$AS"
18724
18725 # The name of the directory that contains temporary libtool files.
18726 objdir=$objdir
18727
18728 # How to create reloadable object files.
18729 reload_flag=$lt_reload_flag
18730 reload_cmds=$lt_reload_cmds
18731
18732 # How to pass a linker flag through the compiler.
18733 wl=$lt_lt_prog_compiler_wl_RC
18734
18735 # Object file suffix (normally "o").
18736 objext="$ac_objext"
18737
18738 # Old archive suffix (normally "a").
18739 libext="$libext"
18740
18741 # Shared library suffix (normally ".so").
18742 shrext_cmds='$shrext_cmds'
18743
18744 # Executable file suffix (normally "").
18745 exeext="$exeext"
18746
18747 # Additional compiler flags for building library objects.
18748 pic_flag=$lt_lt_prog_compiler_pic_RC
18749 pic_mode=$pic_mode
18750
18751 # What is the maximum length of a command?
18752 max_cmd_len=$lt_cv_sys_max_cmd_len
18753
18754 # Does compiler simultaneously support -c and -o options?
18755 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18756
18757 # Must we lock files when doing compilation?
18758 need_locks=$lt_need_locks
18759
18760 # Do we need the lib prefix for modules?
18761 need_lib_prefix=$need_lib_prefix
18762
18763 # Do we need a version for libraries?
18764 need_version=$need_version
18765
18766 # Whether dlopen is supported.
18767 dlopen_support=$enable_dlopen
18768
18769 # Whether dlopen of programs is supported.
18770 dlopen_self=$enable_dlopen_self
18771
18772 # Whether dlopen of statically linked programs is supported.
18773 dlopen_self_static=$enable_dlopen_self_static
18774
18775 # Compiler flag to prevent dynamic linking.
18776 link_static_flag=$lt_lt_prog_compiler_static_RC
18777
18778 # Compiler flag to turn off builtin functions.
18779 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18780
18781 # Compiler flag to allow reflexive dlopens.
18782 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18783
18784 # Compiler flag to generate shared objects directly from archives.
18785 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18786
18787 # Compiler flag to generate thread-safe objects.
18788 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18789
18790 # Library versioning type.
18791 version_type=$version_type
18792
18793 # Format of library name prefix.
18794 libname_spec=$lt_libname_spec
18795
18796 # List of archive names. First name is the real one, the rest are links.
18797 # The last name is the one that the linker finds with -lNAME.
18798 library_names_spec=$lt_library_names_spec
18799
18800 # The coded name of the library, if different from the real name.
18801 soname_spec=$lt_soname_spec
18802
18803 # Commands used to build and install an old-style archive.
18804 RANLIB=$lt_RANLIB
18805 old_archive_cmds=$lt_old_archive_cmds_RC
18806 old_postinstall_cmds=$lt_old_postinstall_cmds
18807 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18808
18809 # Create an old-style archive from a shared archive.
18810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18811
18812 # Create a temporary old-style archive to link instead of a shared archive.
18813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18814
18815 # Commands used to build and install a shared archive.
18816 archive_cmds=$lt_archive_cmds_RC
18817 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18818 postinstall_cmds=$lt_postinstall_cmds
18819 postuninstall_cmds=$lt_postuninstall_cmds
18820
18821 # Commands used to build a loadable module (assumed same as above if empty)
18822 module_cmds=$lt_module_cmds_RC
18823 module_expsym_cmds=$lt_module_expsym_cmds_RC
18824
18825 # Commands to strip libraries.
18826 old_striplib=$lt_old_striplib
18827 striplib=$lt_striplib
18828
18829 # Dependencies to place before the objects being linked to create a
18830 # shared library.
18831 predep_objects=$lt_predep_objects_RC
18832
18833 # Dependencies to place after the objects being linked to create a
18834 # shared library.
18835 postdep_objects=$lt_postdep_objects_RC
18836
18837 # Dependencies to place before the objects being linked to create a
18838 # shared library.
18839 predeps=$lt_predeps_RC
18840
18841 # Dependencies to place after the objects being linked to create a
18842 # shared library.
18843 postdeps=$lt_postdeps_RC
18844
18845 # The directories searched by this compiler when creating a shared
18846 # library
18847 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18848
18849 # The library search path used internally by the compiler when linking
18850 # a shared library.
18851 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18852
18853 # Method to check whether dependent libraries are shared objects.
18854 deplibs_check_method=$lt_deplibs_check_method
18855
18856 # Command to use when deplibs_check_method == file_magic.
18857 file_magic_cmd=$lt_file_magic_cmd
18858
18859 # Flag that allows shared libraries with undefined symbols to be built.
18860 allow_undefined_flag=$lt_allow_undefined_flag_RC
18861
18862 # Flag that forces no undefined symbols.
18863 no_undefined_flag=$lt_no_undefined_flag_RC
18864
18865 # Commands used to finish a libtool library installation in a directory.
18866 finish_cmds=$lt_finish_cmds
18867
18868 # Same as above, but a single script fragment to be evaled but not shown.
18869 finish_eval=$lt_finish_eval
18870
18871 # Take the output of nm and produce a listing of raw symbols and C names.
18872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18873
18874 # Transform the output of nm in a proper C declaration
18875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18876
18877 # Transform the output of nm in a C name address pair
18878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18879
18880 # This is the shared library runtime path variable.
18881 runpath_var=$runpath_var
18882
18883 # This is the shared library path variable.
18884 shlibpath_var=$shlibpath_var
18885
18886 # Is shlibpath searched before the hard-coded library search path?
18887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18888
18889 # How to hardcode a shared library path into an executable.
18890 hardcode_action=$hardcode_action_RC
18891
18892 # Whether we should hardcode library paths into libraries.
18893 hardcode_into_libs=$hardcode_into_libs
18894
18895 # Flag to hardcode \$libdir into a binary during linking.
18896 # This must work even if \$libdir does not exist.
18897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18898
18899 # If ld is used when linking, flag to hardcode \$libdir into
18900 # a binary during linking. This must work even if \$libdir does
18901 # not exist.
18902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18903
18904 # Whether we need a single -rpath flag with a separated argument.
18905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18906
18907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18908 # resulting binary.
18909 hardcode_direct=$hardcode_direct_RC
18910
18911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18912 # resulting binary.
18913 hardcode_minus_L=$hardcode_minus_L_RC
18914
18915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18916 # the resulting binary.
18917 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18918
18919 # Set to yes if building a shared library automatically hardcodes DIR into the library
18920 # and all subsequent libraries and executables linked against it.
18921 hardcode_automatic=$hardcode_automatic_RC
18922
18923 # Variables whose values should be saved in libtool wrapper scripts and
18924 # restored at relink time.
18925 variables_saved_for_relink="$variables_saved_for_relink"
18926
18927 # Whether libtool must link a program against all its dependency libraries.
18928 link_all_deplibs=$link_all_deplibs_RC
18929
18930 # Compile-time system search path for libraries
18931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18932
18933 # Run-time system search path for libraries
18934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18935
18936 # Fix the shell variable \$srcfile for the compiler.
18937 fix_srcfile_path=$lt_fix_srcfile_path
18938
18939 # Set to yes if exported symbols are required.
18940 always_export_symbols=$always_export_symbols_RC
18941
18942 # The commands to list exported symbols.
18943 export_symbols_cmds=$lt_export_symbols_cmds_RC
18944
18945 # The commands to extract the exported symbol list from a shared archive.
18946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18947
18948 # Symbols that should not be listed in the preloaded symbols.
18949 exclude_expsyms=$lt_exclude_expsyms_RC
18950
18951 # Symbols that must always be exported.
18952 include_expsyms=$lt_include_expsyms_RC
18953
18954 # ### END LIBTOOL TAG CONFIG: $tagname
18955
18956 __EOF__
18957
18958
18959 else
18960 # If there is no Makefile yet, we rely on a make rule to execute
18961 # `config.status --recheck' to rerun these tests and create the
18962 # libtool script then.
18963 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18964 if test -f "$ltmain_in"; then
18965 test -f Makefile && make "$ltmain"
18966 fi
18967 fi
18968
18969
18970 ac_ext=c
18971 ac_cpp='$CPP $CPPFLAGS'
18972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18975
18976 CC="$lt_save_CC"
18977
18978 ;;
18979
18980 *)
18981 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18982 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18983 { (exit 1); exit 1; }; }
18984 ;;
18985 esac
18986
18987 # Append the new tag name to the list of available tags.
18988 if test -n "$tagname" ; then
18989 available_tags="$available_tags $tagname"
18990 fi
18991 fi
18992 done
18993 IFS="$lt_save_ifs"
18994
18995 # Now substitute the updated list of available tags.
18996 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18997 mv "${ofile}T" "$ofile"
18998 chmod +x "$ofile"
18999 else
19000 rm -f "${ofile}T"
19001 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19002 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19003 { (exit 1); exit 1; }; }
19004 fi
19005 fi
19006
19007
19008
19009 # This can be used to rebuild libtool when needed
19010 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19011
19012 # Always use our own libtool.
19013 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19014
19015 # Prevent multiple expansion
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036 ac_ext=c
19037 ac_cpp='$CPP $CPPFLAGS'
19038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19041 if test -n "$ac_tool_prefix"; then
19042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19044 echo "$as_me:$LINENO: checking for $ac_word" >&5
19045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19046 if test "${ac_cv_prog_CC+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049 if test -n "$CC"; then
19050 ac_cv_prog_CC="$CC" # Let the user override the test.
19051 else
19052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19053 for as_dir in $PATH
19054 do
19055 IFS=$as_save_IFS
19056 test -z "$as_dir" && as_dir=.
19057 for ac_exec_ext in '' $ac_executable_extensions; do
19058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19059 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19061 break 2
19062 fi
19063 done
19064 done
19065
19066 fi
19067 fi
19068 CC=$ac_cv_prog_CC
19069 if test -n "$CC"; then
19070 echo "$as_me:$LINENO: result: $CC" >&5
19071 echo "${ECHO_T}$CC" >&6
19072 else
19073 echo "$as_me:$LINENO: result: no" >&5
19074 echo "${ECHO_T}no" >&6
19075 fi
19076
19077 fi
19078 if test -z "$ac_cv_prog_CC"; then
19079 ac_ct_CC=$CC
19080 # Extract the first word of "gcc", so it can be a program name with args.
19081 set dummy gcc; ac_word=$2
19082 echo "$as_me:$LINENO: checking for $ac_word" >&5
19083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19086 else
19087 if test -n "$ac_ct_CC"; then
19088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19089 else
19090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19091 for as_dir in $PATH
19092 do
19093 IFS=$as_save_IFS
19094 test -z "$as_dir" && as_dir=.
19095 for ac_exec_ext in '' $ac_executable_extensions; do
19096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19097 ac_cv_prog_ac_ct_CC="gcc"
19098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19099 break 2
19100 fi
19101 done
19102 done
19103
19104 fi
19105 fi
19106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19107 if test -n "$ac_ct_CC"; then
19108 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19109 echo "${ECHO_T}$ac_ct_CC" >&6
19110 else
19111 echo "$as_me:$LINENO: result: no" >&5
19112 echo "${ECHO_T}no" >&6
19113 fi
19114
19115 CC=$ac_ct_CC
19116 else
19117 CC="$ac_cv_prog_CC"
19118 fi
19119
19120 if test -z "$CC"; then
19121 if test -n "$ac_tool_prefix"; then
19122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19123 set dummy ${ac_tool_prefix}cc; ac_word=$2
19124 echo "$as_me:$LINENO: checking for $ac_word" >&5
19125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19126 if test "${ac_cv_prog_CC+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129 if test -n "$CC"; then
19130 ac_cv_prog_CC="$CC" # Let the user override the test.
19131 else
19132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19133 for as_dir in $PATH
19134 do
19135 IFS=$as_save_IFS
19136 test -z "$as_dir" && as_dir=.
19137 for ac_exec_ext in '' $ac_executable_extensions; do
19138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19139 ac_cv_prog_CC="${ac_tool_prefix}cc"
19140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19141 break 2
19142 fi
19143 done
19144 done
19145
19146 fi
19147 fi
19148 CC=$ac_cv_prog_CC
19149 if test -n "$CC"; then
19150 echo "$as_me:$LINENO: result: $CC" >&5
19151 echo "${ECHO_T}$CC" >&6
19152 else
19153 echo "$as_me:$LINENO: result: no" >&5
19154 echo "${ECHO_T}no" >&6
19155 fi
19156
19157 fi
19158 if test -z "$ac_cv_prog_CC"; then
19159 ac_ct_CC=$CC
19160 # Extract the first word of "cc", so it can be a program name with args.
19161 set dummy cc; ac_word=$2
19162 echo "$as_me:$LINENO: checking for $ac_word" >&5
19163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19166 else
19167 if test -n "$ac_ct_CC"; then
19168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19169 else
19170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19171 for as_dir in $PATH
19172 do
19173 IFS=$as_save_IFS
19174 test -z "$as_dir" && as_dir=.
19175 for ac_exec_ext in '' $ac_executable_extensions; do
19176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19177 ac_cv_prog_ac_ct_CC="cc"
19178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19179 break 2
19180 fi
19181 done
19182 done
19183
19184 fi
19185 fi
19186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19187 if test -n "$ac_ct_CC"; then
19188 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19189 echo "${ECHO_T}$ac_ct_CC" >&6
19190 else
19191 echo "$as_me:$LINENO: result: no" >&5
19192 echo "${ECHO_T}no" >&6
19193 fi
19194
19195 CC=$ac_ct_CC
19196 else
19197 CC="$ac_cv_prog_CC"
19198 fi
19199
19200 fi
19201 if test -z "$CC"; then
19202 # Extract the first word of "cc", so it can be a program name with args.
19203 set dummy cc; ac_word=$2
19204 echo "$as_me:$LINENO: checking for $ac_word" >&5
19205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19206 if test "${ac_cv_prog_CC+set}" = set; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19208 else
19209 if test -n "$CC"; then
19210 ac_cv_prog_CC="$CC" # Let the user override the test.
19211 else
19212 ac_prog_rejected=no
19213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19214 for as_dir in $PATH
19215 do
19216 IFS=$as_save_IFS
19217 test -z "$as_dir" && as_dir=.
19218 for ac_exec_ext in '' $ac_executable_extensions; do
19219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19221 ac_prog_rejected=yes
19222 continue
19223 fi
19224 ac_cv_prog_CC="cc"
19225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19226 break 2
19227 fi
19228 done
19229 done
19230
19231 if test $ac_prog_rejected = yes; then
19232 # We found a bogon in the path, so make sure we never use it.
19233 set dummy $ac_cv_prog_CC
19234 shift
19235 if test $# != 0; then
19236 # We chose a different compiler from the bogus one.
19237 # However, it has the same basename, so the bogon will be chosen
19238 # first if we set CC to just the basename; use the full file name.
19239 shift
19240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19241 fi
19242 fi
19243 fi
19244 fi
19245 CC=$ac_cv_prog_CC
19246 if test -n "$CC"; then
19247 echo "$as_me:$LINENO: result: $CC" >&5
19248 echo "${ECHO_T}$CC" >&6
19249 else
19250 echo "$as_me:$LINENO: result: no" >&5
19251 echo "${ECHO_T}no" >&6
19252 fi
19253
19254 fi
19255 if test -z "$CC"; then
19256 if test -n "$ac_tool_prefix"; then
19257 for ac_prog in cl
19258 do
19259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19261 echo "$as_me:$LINENO: checking for $ac_word" >&5
19262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19263 if test "${ac_cv_prog_CC+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266 if test -n "$CC"; then
19267 ac_cv_prog_CC="$CC" # Let the user override the test.
19268 else
19269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19270 for as_dir in $PATH
19271 do
19272 IFS=$as_save_IFS
19273 test -z "$as_dir" && as_dir=.
19274 for ac_exec_ext in '' $ac_executable_extensions; do
19275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19276 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19278 break 2
19279 fi
19280 done
19281 done
19282
19283 fi
19284 fi
19285 CC=$ac_cv_prog_CC
19286 if test -n "$CC"; then
19287 echo "$as_me:$LINENO: result: $CC" >&5
19288 echo "${ECHO_T}$CC" >&6
19289 else
19290 echo "$as_me:$LINENO: result: no" >&5
19291 echo "${ECHO_T}no" >&6
19292 fi
19293
19294 test -n "$CC" && break
19295 done
19296 fi
19297 if test -z "$CC"; then
19298 ac_ct_CC=$CC
19299 for ac_prog in cl
19300 do
19301 # Extract the first word of "$ac_prog", so it can be a program name with args.
19302 set dummy $ac_prog; ac_word=$2
19303 echo "$as_me:$LINENO: checking for $ac_word" >&5
19304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 else
19308 if test -n "$ac_ct_CC"; then
19309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19310 else
19311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19312 for as_dir in $PATH
19313 do
19314 IFS=$as_save_IFS
19315 test -z "$as_dir" && as_dir=.
19316 for ac_exec_ext in '' $ac_executable_extensions; do
19317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19318 ac_cv_prog_ac_ct_CC="$ac_prog"
19319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19320 break 2
19321 fi
19322 done
19323 done
19324
19325 fi
19326 fi
19327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19328 if test -n "$ac_ct_CC"; then
19329 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19330 echo "${ECHO_T}$ac_ct_CC" >&6
19331 else
19332 echo "$as_me:$LINENO: result: no" >&5
19333 echo "${ECHO_T}no" >&6
19334 fi
19335
19336 test -n "$ac_ct_CC" && break
19337 done
19338
19339 CC=$ac_ct_CC
19340 fi
19341
19342 fi
19343
19344
19345 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19346 See \`config.log' for more details." >&5
19347 echo "$as_me: error: no acceptable C compiler found in \$PATH
19348 See \`config.log' for more details." >&2;}
19349 { (exit 1); exit 1; }; }
19350
19351 # Provide some information about the compiler.
19352 echo "$as_me:$LINENO:" \
19353 "checking for C compiler version" >&5
19354 ac_compiler=`set X $ac_compile; echo $2`
19355 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19356 (eval $ac_compiler --version </dev/null >&5) 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }
19360 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19361 (eval $ac_compiler -v </dev/null >&5) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }
19365 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19366 (eval $ac_compiler -V </dev/null >&5) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }
19370
19371 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19372 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19373 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382
19383 int
19384 main ()
19385 {
19386 #ifndef __GNUC__
19387 choke me
19388 #endif
19389
19390 ;
19391 return 0;
19392 }
19393 _ACEOF
19394 rm -f conftest.$ac_objext
19395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19396 (eval $ac_compile) 2>conftest.er1
19397 ac_status=$?
19398 grep -v '^ *+' conftest.er1 >conftest.err
19399 rm -f conftest.er1
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } &&
19403 { ac_try='test -z "$ac_c_werror_flag"
19404 || test ! -s conftest.err'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; } &&
19410 { ac_try='test -s conftest.$ac_objext'
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 ac_compiler_gnu=yes
19417 else
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 ac_compiler_gnu=no
19422 fi
19423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19425
19426 fi
19427 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19429 GCC=`test $ac_compiler_gnu = yes && echo yes`
19430 ac_test_CFLAGS=${CFLAGS+set}
19431 ac_save_CFLAGS=$CFLAGS
19432 CFLAGS="-g"
19433 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19435 if test "${ac_cv_prog_cc_g+set}" = set; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19437 else
19438 cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h. */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19444
19445 int
19446 main ()
19447 {
19448
19449 ;
19450 return 0;
19451 }
19452 _ACEOF
19453 rm -f conftest.$ac_objext
19454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19455 (eval $ac_compile) 2>conftest.er1
19456 ac_status=$?
19457 grep -v '^ *+' conftest.er1 >conftest.err
19458 rm -f conftest.er1
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } &&
19462 { ac_try='test -z "$ac_c_werror_flag"
19463 || test ! -s conftest.err'
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; } &&
19469 { ac_try='test -s conftest.$ac_objext'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; }; then
19475 ac_cv_prog_cc_g=yes
19476 else
19477 echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19479
19480 ac_cv_prog_cc_g=no
19481 fi
19482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19483 fi
19484 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19486 if test "$ac_test_CFLAGS" = set; then
19487 CFLAGS=$ac_save_CFLAGS
19488 elif test $ac_cv_prog_cc_g = yes; then
19489 if test "$GCC" = yes; then
19490 CFLAGS="-g -O2"
19491 else
19492 CFLAGS="-g"
19493 fi
19494 else
19495 if test "$GCC" = yes; then
19496 CFLAGS="-O2"
19497 else
19498 CFLAGS=
19499 fi
19500 fi
19501 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19502 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19503 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506 ac_cv_prog_cc_stdc=no
19507 ac_save_CC=$CC
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h. */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 #include <stdarg.h>
19515 #include <stdio.h>
19516 #include <sys/types.h>
19517 #include <sys/stat.h>
19518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19519 struct buf { int x; };
19520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19521 static char *e (p, i)
19522 char **p;
19523 int i;
19524 {
19525 return p[i];
19526 }
19527 static char *f (char * (*g) (char **, int), char **p, ...)
19528 {
19529 char *s;
19530 va_list v;
19531 va_start (v,p);
19532 s = g (p, va_arg (v,int));
19533 va_end (v);
19534 return s;
19535 }
19536
19537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19538 function prototypes and stuff, but not '\xHH' hex character constants.
19539 These don't provoke an error unfortunately, instead are silently treated
19540 as 'x'. The following induces an error, until -std1 is added to get
19541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19542 array size at least. It's necessary to write '\x00'==0 to get something
19543 that's true only with -std1. */
19544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19545
19546 int test (int i, double x);
19547 struct s1 {int (*f) (int a);};
19548 struct s2 {int (*f) (double a);};
19549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19550 int argc;
19551 char **argv;
19552 int
19553 main ()
19554 {
19555 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19556 ;
19557 return 0;
19558 }
19559 _ACEOF
19560 # Don't try gcc -ansi; that turns off useful extensions and
19561 # breaks some systems' header files.
19562 # AIX -qlanglvl=ansi
19563 # Ultrix and OSF/1 -std1
19564 # HP-UX 10.20 and later -Ae
19565 # HP-UX older versions -Aa -D_HPUX_SOURCE
19566 # SVR4 -Xc -D__EXTENSIONS__
19567 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19568 do
19569 CC="$ac_save_CC $ac_arg"
19570 rm -f conftest.$ac_objext
19571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19572 (eval $ac_compile) 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try='test -z "$ac_c_werror_flag"
19580 || test ! -s conftest.err'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; } &&
19586 { ac_try='test -s conftest.$ac_objext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_cv_prog_cc_stdc=$ac_arg
19593 break
19594 else
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19597
19598 fi
19599 rm -f conftest.err conftest.$ac_objext
19600 done
19601 rm -f conftest.$ac_ext conftest.$ac_objext
19602 CC=$ac_save_CC
19603
19604 fi
19605
19606 case "x$ac_cv_prog_cc_stdc" in
19607 x|xno)
19608 echo "$as_me:$LINENO: result: none needed" >&5
19609 echo "${ECHO_T}none needed" >&6 ;;
19610 *)
19611 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19612 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19613 CC="$CC $ac_cv_prog_cc_stdc" ;;
19614 esac
19615
19616 # Some people use a C++ compiler to compile C. Since we use `exit',
19617 # in C++ we need to declare it. In case someone uses the same compiler
19618 # for both compiling C and C++ we need to have the C++ compiler decide
19619 # the declaration of exit, since it's the most demanding environment.
19620 cat >conftest.$ac_ext <<_ACEOF
19621 #ifndef __cplusplus
19622 choke me
19623 #endif
19624 _ACEOF
19625 rm -f conftest.$ac_objext
19626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19627 (eval $ac_compile) 2>conftest.er1
19628 ac_status=$?
19629 grep -v '^ *+' conftest.er1 >conftest.err
19630 rm -f conftest.er1
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } &&
19634 { ac_try='test -z "$ac_c_werror_flag"
19635 || test ! -s conftest.err'
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; } &&
19641 { ac_try='test -s conftest.$ac_objext'
19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; }; then
19647 for ac_declaration in \
19648 '' \
19649 'extern "C" void std::exit (int) throw (); using std::exit;' \
19650 'extern "C" void std::exit (int); using std::exit;' \
19651 'extern "C" void exit (int) throw ();' \
19652 'extern "C" void exit (int);' \
19653 'void exit (int);'
19654 do
19655 cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h. */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 $ac_declaration
19662 #include <stdlib.h>
19663 int
19664 main ()
19665 {
19666 exit (42);
19667 ;
19668 return 0;
19669 }
19670 _ACEOF
19671 rm -f conftest.$ac_objext
19672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19673 (eval $ac_compile) 2>conftest.er1
19674 ac_status=$?
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
19680 { ac_try='test -z "$ac_c_werror_flag"
19681 || test ! -s conftest.err'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; } &&
19687 { ac_try='test -s conftest.$ac_objext'
19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689 (eval $ac_try) 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 :
19694 else
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19697
19698 continue
19699 fi
19700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19701 cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h. */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19707 $ac_declaration
19708 int
19709 main ()
19710 {
19711 exit (42);
19712 ;
19713 return 0;
19714 }
19715 _ACEOF
19716 rm -f conftest.$ac_objext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_c_werror_flag"
19726 || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 break
19739 else
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 fi
19744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19745 done
19746 rm -f conftest*
19747 if test -n "$ac_declaration"; then
19748 echo '#ifdef __cplusplus' >>confdefs.h
19749 echo $ac_declaration >>confdefs.h
19750 echo '#endif' >>confdefs.h
19751 fi
19752
19753 else
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 fi
19758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19759 ac_ext=c
19760 ac_cpp='$CPP $CPPFLAGS'
19761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19764
19765 depcc="$CC" am_compiler_list=
19766
19767 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19768 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19769 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19773 # We make a subdir and do the tests there. Otherwise we can end up
19774 # making bogus files that we don't know about and never remove. For
19775 # instance it was reported that on HP-UX the gcc test will end up
19776 # making a dummy file named `D' -- because `-MD' means `put the output
19777 # in D'.
19778 mkdir conftest.dir
19779 # Copy depcomp to subdir because otherwise we won't find it if we're
19780 # using a relative directory.
19781 cp "$am_depcomp" conftest.dir
19782 cd conftest.dir
19783 # We will build objects and dependencies in a subdirectory because
19784 # it helps to detect inapplicable dependency modes. For instance
19785 # both Tru64's cc and ICC support -MD to output dependencies as a
19786 # side effect of compilation, but ICC will put the dependencies in
19787 # the current directory while Tru64 will put them in the object
19788 # directory.
19789 mkdir sub
19790
19791 am_cv_CC_dependencies_compiler_type=none
19792 if test "$am_compiler_list" = ""; then
19793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19794 fi
19795 for depmode in $am_compiler_list; do
19796 # Setup a source with many dependencies, because some compilers
19797 # like to wrap large dependency lists on column 80 (with \), and
19798 # we should not choose a depcomp mode which is confused by this.
19799 #
19800 # We need to recreate these files for each test, as the compiler may
19801 # overwrite some of them when testing with obscure command lines.
19802 # This happens at least with the AIX C compiler.
19803 : > sub/conftest.c
19804 for i in 1 2 3 4 5 6; do
19805 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19806 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19807 # Solaris 8's {/usr,}/bin/sh.
19808 touch sub/conftst$i.h
19809 done
19810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19811
19812 case $depmode in
19813 nosideeffect)
19814 # after this tag, mechanisms are not by side-effect, so they'll
19815 # only be used when explicitly requested
19816 if test "x$enable_dependency_tracking" = xyes; then
19817 continue
19818 else
19819 break
19820 fi
19821 ;;
19822 none) break ;;
19823 esac
19824 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19825 # mode. It turns out that the SunPro C++ compiler does not properly
19826 # handle `-M -o', and we need to detect this.
19827 if depmode=$depmode \
19828 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19830 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19831 >/dev/null 2>conftest.err &&
19832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19833 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19835 # icc doesn't choke on unknown options, it will just issue warnings
19836 # or remarks (even with -Werror). So we grep stderr for any message
19837 # that says an option was ignored or not supported.
19838 # When given -MP, icc 7.0 and 7.1 complain thusly:
19839 # icc: Command line warning: ignoring option '-M'; no argument required
19840 # The diagnosis changed in icc 8.0:
19841 # icc: Command line remark: option '-MP' not supported
19842 if (grep 'ignoring option' conftest.err ||
19843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19844 am_cv_CC_dependencies_compiler_type=$depmode
19845 break
19846 fi
19847 fi
19848 done
19849
19850 cd ..
19851 rm -rf conftest.dir
19852 else
19853 am_cv_CC_dependencies_compiler_type=none
19854 fi
19855
19856 fi
19857 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19858 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19859 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19860
19861
19862
19863 if
19864 test "x$enable_dependency_tracking" != xno \
19865 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19866 am__fastdepCC_TRUE=
19867 am__fastdepCC_FALSE='#'
19868 else
19869 am__fastdepCC_TRUE='#'
19870 am__fastdepCC_FALSE=
19871 fi
19872
19873
19874
19875
19876
19877
19878 #AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers])
19879 #
19880 #AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput],
19881 # [Build XInput support (default: yes)]),
19882 # [XINPUT=$enableval],[XINPUT=yes])
19883 #AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes")
19884 #if test "x$XINPUT" = "xyes" ; then
19885 # AC_DEFINE(XINPUT,1,[Enable XInput support])
19886 #fi
19887 #
19888 #AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb],
19889 # [Build XKB support (default: yes)]),
19890 # [XKB=$enableval],[XKB=yes])
19891 #AM_CONDITIONAL(XKB, test "x$XKB" = "xyes")
19892 #if test "x$XKB" = "xyes" ; then
19893 # AC_DEFINE(XKB,1,[Enable XKB support])
19894 #fi
19895
19896
19897 # Check whether --with-xorg-module-dir or --without-xorg-module-dir was given.
19898 if test "${with_xorg_module_dir+set}" = set; then
19899 withval="$with_xorg_module_dir"
19900 moduledir="$withval"
19901 else
19902 moduledir="$libdir/xorg/modules"
19903 fi;
19904 inputdir=${moduledir}/input
19905
19906
19907 # Checks for extensions
19908
19909 SAVE_CFLAGS="$CFLAGS"
19910 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19911 cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h. */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917
19918 #include "xorg-server.h"
19919 #if !defined RANDR
19920 #error RANDR not defined
19921 #endif
19922
19923 int
19924 main ()
19925 {
19926
19927 ;
19928 return 0;
19929 }
19930 _ACEOF
19931 rm -f conftest.$ac_objext
19932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19933 (eval $ac_compile) 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
19940 { ac_try='test -z "$ac_c_werror_flag"
19941 || test ! -s conftest.err'
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19944 ac_status=$?
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; } &&
19947 { ac_try='test -s conftest.$ac_objext'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19953 _EXT_CHECK=yes
19954 else
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19957
19958 _EXT_CHECK=no
19959 fi
19960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19961 CFLAGS="$SAVE_CFLAGS"
19962 echo "$as_me:$LINENO: checking if RANDR is defined" >&5
19963 echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6
19964 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19965 echo "${ECHO_T}$_EXT_CHECK" >&6
19966 if test "$_EXT_CHECK" != no; then
19967 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19968 fi
19969
19970
19971 SAVE_CFLAGS="$CFLAGS"
19972 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19973 cat >conftest.$ac_ext <<_ACEOF
19974 /* confdefs.h. */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19979
19980 #include "xorg-server.h"
19981 #if !defined XINPUT
19982 #error XINPUT not defined
19983 #endif
19984
19985 int
19986 main ()
19987 {
19988
19989 ;
19990 return 0;
19991 }
19992 _ACEOF
19993 rm -f conftest.$ac_objext
19994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19995 (eval $ac_compile) 2>conftest.er1
19996 ac_status=$?
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } &&
20002 { ac_try='test -z "$ac_c_werror_flag"
20003 || test ! -s conftest.err'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; } &&
20009 { ac_try='test -s conftest.$ac_objext'
20010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011 (eval $ac_try) 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; }; then
20015 _EXT_CHECK=yes
20016 else
20017 echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20019
20020 _EXT_CHECK=no
20021 fi
20022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20023 CFLAGS="$SAVE_CFLAGS"
20024 echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
20025 echo $ECHO_N "checking if XINPUT is defined... $ECHO_C" >&6
20026 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20027 echo "${ECHO_T}$_EXT_CHECK" >&6
20028 if test "$_EXT_CHECK" != no; then
20029 REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
20030 fi
20031
20032
20033 # Checks for pkg-config packages
20034
20035
20036 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20037 if test -n "$ac_tool_prefix"; then
20038 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20039 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20040 echo "$as_me:$LINENO: checking for $ac_word" >&5
20041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20042 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 case $PKG_CONFIG in
20046 [\\/]* | ?:[\\/]*)
20047 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20048 ;;
20049 *)
20050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20051 for as_dir in $PATH
20052 do
20053 IFS=$as_save_IFS
20054 test -z "$as_dir" && as_dir=.
20055 for ac_exec_ext in '' $ac_executable_extensions; do
20056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20057 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20059 break 2
20060 fi
20061 done
20062 done
20063
20064 ;;
20065 esac
20066 fi
20067 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20068
20069 if test -n "$PKG_CONFIG"; then
20070 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20071 echo "${ECHO_T}$PKG_CONFIG" >&6
20072 else
20073 echo "$as_me:$LINENO: result: no" >&5
20074 echo "${ECHO_T}no" >&6
20075 fi
20076
20077 fi
20078 if test -z "$ac_cv_path_PKG_CONFIG"; then
20079 ac_pt_PKG_CONFIG=$PKG_CONFIG
20080 # Extract the first word of "pkg-config", so it can be a program name with args.
20081 set dummy pkg-config; ac_word=$2
20082 echo "$as_me:$LINENO: checking for $ac_word" >&5
20083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20084 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087 case $ac_pt_PKG_CONFIG in
20088 [\\/]* | ?:[\\/]*)
20089 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20090 ;;
20091 *)
20092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20093 for as_dir in $PATH
20094 do
20095 IFS=$as_save_IFS
20096 test -z "$as_dir" && as_dir=.
20097 for ac_exec_ext in '' $ac_executable_extensions; do
20098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20099 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20101 break 2
20102 fi
20103 done
20104 done
20105
20106 ;;
20107 esac
20108 fi
20109 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20110
20111 if test -n "$ac_pt_PKG_CONFIG"; then
20112 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20113 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20114 else
20115 echo "$as_me:$LINENO: result: no" >&5
20116 echo "${ECHO_T}no" >&6
20117 fi
20118
20119 PKG_CONFIG=$ac_pt_PKG_CONFIG
20120 else
20121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20122 fi
20123
20124 fi
20125 if test -n "$PKG_CONFIG"; then
20126 _pkg_min_version=0.9.0
20127 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20128 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20129 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20130 echo "$as_me:$LINENO: result: yes" >&5
20131 echo "${ECHO_T}yes" >&6
20132 else
20133 echo "$as_me:$LINENO: result: no" >&5
20134 echo "${ECHO_T}no" >&6
20135 PKG_CONFIG=""
20136 fi
20137
20138 fi
20139
20140 pkg_failed=no
20141 echo "$as_me:$LINENO: checking for XORG" >&5
20142 echo $ECHO_N "checking for XORG... $ECHO_C" >&6
20143
20144 if test -n "$PKG_CONFIG"; then
20145 if test -n "$XORG_CFLAGS"; then
20146 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20147 else
20148 if test -n "$PKG_CONFIG" && \
20149 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
20150 ($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; then
20154 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
20155 else
20156 pkg_failed=yes
20157 fi
20158 fi
20159 else
20160 pkg_failed=untried
20161 fi
20162 if test -n "$PKG_CONFIG"; then
20163 if test -n "$XORG_LIBS"; then
20164 pkg_cv_XORG_LIBS="$XORG_LIBS"
20165 else
20166 if test -n "$PKG_CONFIG" && \
20167 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
20168 ($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; then
20172 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
20173 else
20174 pkg_failed=yes
20175 fi
20176 fi
20177 else
20178 pkg_failed=untried
20179 fi
20180
20181
20182
20183 if test $pkg_failed = yes; then
20184
20185 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20186 _pkg_short_errors_supported=yes
20187 else
20188 _pkg_short_errors_supported=no
20189 fi
20190 if test $_pkg_short_errors_supported = yes; then
20191 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server xproto $REQUIRED_MODULES"`
20192 else
20193 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server xproto $REQUIRED_MODULES"`
20194 fi
20195 # Put the nasty error message in config.log where it belongs
20196 echo "$XORG_PKG_ERRORS" >&5
20197
20198 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
20199
20200 $XORG_PKG_ERRORS
20201
20202 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20203 installed software in a non-standard prefix.
20204
20205 Alternatively, you may set the environment variables XORG_CFLAGS
20206 and XORG_LIBS to avoid the need to call pkg-config.
20207 See the pkg-config man page for more details.
20208 " >&5
20209 echo "$as_me: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
20210
20211 $XORG_PKG_ERRORS
20212
20213 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20214 installed software in a non-standard prefix.
20215
20216 Alternatively, you may set the environment variables XORG_CFLAGS
20217 and XORG_LIBS to avoid the need to call pkg-config.
20218 See the pkg-config man page for more details.
20219 " >&2;}
20220 { (exit 1); exit 1; }; }
20221 elif test $pkg_failed = untried; then
20222 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20223 is in your PATH or set the PKG_CONFIG environment variable to the full
20224 path to pkg-config.
20225
20226 Alternatively, you may set the environment variables XORG_CFLAGS
20227 and XORG_LIBS to avoid the need to call pkg-config.
20228 See the pkg-config man page for more details.
20229
20230 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20231 See \`config.log' for more details." >&5
20232 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20233 is in your PATH or set the PKG_CONFIG environment variable to the full
20234 path to pkg-config.
20235
20236 Alternatively, you may set the environment variables XORG_CFLAGS
20237 and XORG_LIBS to avoid the need to call pkg-config.
20238 See the pkg-config man page for more details.
20239
20240 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20241 See \`config.log' for more details." >&2;}
20242 { (exit 1); exit 1; }; }
20243 else
20244 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20245 XORG_LIBS=$pkg_cv_XORG_LIBS
20246 echo "$as_me:$LINENO: result: yes" >&5
20247 echo "${ECHO_T}yes" >&6
20248 :
20249 fi
20250 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20251
20252 CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
20253
20254
20255 # Checks for libraries.
20256
20257 # Checks for header files.
20258 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20259 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20260 if test "${ac_cv_header_stdc+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h. */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 #include <stdlib.h>
20270 #include <stdarg.h>
20271 #include <string.h>
20272 #include <float.h>
20273
20274 int
20275 main ()
20276 {
20277
20278 ;
20279 return 0;
20280 }
20281 _ACEOF
20282 rm -f conftest.$ac_objext
20283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20284 (eval $ac_compile) 2>conftest.er1
20285 ac_status=$?
20286 grep -v '^ *+' conftest.er1 >conftest.err
20287 rm -f conftest.er1
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } &&
20291 { ac_try='test -z "$ac_c_werror_flag"
20292 || test ! -s conftest.err'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest.$ac_objext'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 ac_cv_header_stdc=yes
20305 else
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20308
20309 ac_cv_header_stdc=no
20310 fi
20311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20312
20313 if test $ac_cv_header_stdc = yes; then
20314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h. */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <string.h>
20322
20323 _ACEOF
20324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20325 $EGREP "memchr" >/dev/null 2>&1; then
20326 :
20327 else
20328 ac_cv_header_stdc=no
20329 fi
20330 rm -f conftest*
20331
20332 fi
20333
20334 if test $ac_cv_header_stdc = yes; then
20335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20336 cat >conftest.$ac_ext <<_ACEOF
20337 /* confdefs.h. */
20338 _ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20342 #include <stdlib.h>
20343
20344 _ACEOF
20345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20346 $EGREP "free" >/dev/null 2>&1; then
20347 :
20348 else
20349 ac_cv_header_stdc=no
20350 fi
20351 rm -f conftest*
20352
20353 fi
20354
20355 if test $ac_cv_header_stdc = yes; then
20356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20357 if test "$cross_compiling" = yes; then
20358 :
20359 else
20360 cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h. */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20366 #include <ctype.h>
20367 #if ((' ' & 0x0FF) == 0x020)
20368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20370 #else
20371 # define ISLOWER(c) \
20372 (('a' <= (c) && (c) <= 'i') \
20373 || ('j' <= (c) && (c) <= 'r') \
20374 || ('s' <= (c) && (c) <= 'z'))
20375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20376 #endif
20377
20378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20379 int
20380 main ()
20381 {
20382 int i;
20383 for (i = 0; i < 256; i++)
20384 if (XOR (islower (i), ISLOWER (i))
20385 || toupper (i) != TOUPPER (i))
20386 exit(2);
20387 exit (0);
20388 }
20389 _ACEOF
20390 rm -f conftest$ac_exeext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392 (eval $ac_link) 2>&5
20393 ac_status=$?
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 :
20402 else
20403 echo "$as_me: program exited with status $ac_status" >&5
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20406
20407 ( exit $ac_status )
20408 ac_cv_header_stdc=no
20409 fi
20410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20411 fi
20412 fi
20413 fi
20414 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20415 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20416 if test $ac_cv_header_stdc = yes; then
20417
20418 cat >>confdefs.h <<\_ACEOF
20419 #define STDC_HEADERS 1
20420 _ACEOF
20421
20422 fi
20423
20424
20425
20426
20427
20428 if test x$APP_MAN_SUFFIX = x ; then
20429 APP_MAN_SUFFIX=1
20430 fi
20431 if test x$APP_MAN_DIR = x ; then
20432 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20433 fi
20434
20435 if test x$LIB_MAN_SUFFIX = x ; then
20436 LIB_MAN_SUFFIX=3
20437 fi
20438 if test x$LIB_MAN_DIR = x ; then
20439 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20440 fi
20441
20442 if test x$FILE_MAN_SUFFIX = x ; then
20443 case $host_os in
20444 solaris*) FILE_MAN_SUFFIX=4 ;;
20445 *) FILE_MAN_SUFFIX=5 ;;
20446 esac
20447 fi
20448 if test x$FILE_MAN_DIR = x ; then
20449 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20450 fi
20451
20452 if test x$MISC_MAN_SUFFIX = x ; then
20453 case $host_os in
20454 solaris*) MISC_MAN_SUFFIX=5 ;;
20455 *) MISC_MAN_SUFFIX=7 ;;
20456 esac
20457 fi
20458 if test x$MISC_MAN_DIR = x ; then
20459 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20460 fi
20461
20462 if test x$DRIVER_MAN_SUFFIX = x ; then
20463 case $host_os in
20464 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20465 *) DRIVER_MAN_SUFFIX=4 ;;
20466 esac
20467 fi
20468 if test x$DRIVER_MAN_DIR = x ; then
20469 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20470 fi
20471
20472 if test x$ADMIN_MAN_SUFFIX = x ; then
20473 case $host_os in
20474 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20475 *) ADMIN_MAN_SUFFIX=8 ;;
20476 esac
20477 fi
20478 if test x$ADMIN_MAN_DIR = x ; then
20479 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20480 fi
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498 # Check whether --with-release-version or --without-release-version was given.
20499 if test "${with_release_version+set}" = set; then
20500 withval="$with_release_version"
20501 RELEASE_VERSION="$withval"
20502 else
20503 RELEASE_VERSION=""
20504 fi;
20505 if test "x$RELEASE_VERSION" != "x"; then
20506 PACKAGE="$PACKAGE-$RELEASE_VERSION"
20507 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20508 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20509 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20510 fi
20511
20512 cat >>confdefs.h <<_ACEOF
20513 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20514 _ACEOF
20515
20516 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20517 if test "x$PVM" = "x"; then
20518 PVM="0"
20519 fi
20520
20521 cat >>confdefs.h <<_ACEOF
20522 #define PACKAGE_VERSION_MINOR $PVM
20523 _ACEOF
20524
20525 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20526 if test "x$PVP" = "x"; then
20527 PVP="0"
20528 fi
20529
20530 cat >>confdefs.h <<_ACEOF
20531 #define PACKAGE_VERSION_PATCHLEVEL $PVP
20532 _ACEOF
20533
20534
20535
20536 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20537 cat >confcache <<\_ACEOF
20538 # This file is a shell script that caches the results of configure
20539 # tests run on this system so they can be shared between configure
20540 # scripts and configure runs, see configure's option --config-cache.
20541 # It is not useful on other systems. If it contains results you don't
20542 # want to keep, you may remove or edit it.
20543 #
20544 # config.status only pays attention to the cache file if you give it
20545 # the --recheck option to rerun configure.
20546 #
20547 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20548 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20549 # following values.
20550
20551 _ACEOF
20552
20553 # The following way of writing the cache mishandles newlines in values,
20554 # but we know of no workaround that is simple, portable, and efficient.
20555 # So, don't put newlines in cache variables' values.
20556 # Ultrix sh set writes to stderr and can't be redirected directly,
20557 # and sets the high bit in the cache file unless we assign to the vars.
20558 {
20559 (set) 2>&1 |
20560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20561 *ac_space=\ *)
20562 # `set' does not quote correctly, so add quotes (double-quote
20563 # substitution turns \\\\ into \\, and sed turns \\ into \).
20564 sed -n \
20565 "s/'/'\\\\''/g;
20566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20567 ;;
20568 *)
20569 # `set' quotes correctly as required by POSIX, so do not add quotes.
20570 sed -n \
20571 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20572 ;;
20573 esac;
20574 } |
20575 sed '
20576 t clear
20577 : clear
20578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20579 t end
20580 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20581 : end' >>confcache
20582 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20583 if test -w $cache_file; then
20584 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20585 cat confcache >$cache_file
20586 else
20587 echo "not updating unwritable cache $cache_file"
20588 fi
20589 fi
20590 rm -f confcache
20591
20592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20593 # Let make expand exec_prefix.
20594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20595
20596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20598 # trailing colons and then remove the whole line if VPATH becomes empty
20599 # (actually we leave an empty line to preserve line numbers).
20600 if test "x$srcdir" = x.; then
20601 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20602 s/:*\$(srcdir):*/:/;
20603 s/:*\${srcdir}:*/:/;
20604 s/:*@srcdir@:*/:/;
20605 s/^\([^=]*=[ ]*\):*/\1/;
20606 s/:*$//;
20607 s/^[^=]*=[ ]*$//;
20608 }'
20609 fi
20610
20611 DEFS=-DHAVE_CONFIG_H
20612
20613 ac_libobjs=
20614 ac_ltlibobjs=
20615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20616 # 1. Remove the extension, and $U if already installed.
20617 ac_i=`echo "$ac_i" |
20618 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20619 # 2. Add them.
20620 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20621 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20622 done
20623 LIBOBJS=$ac_libobjs
20624
20625 LTLIBOBJS=$ac_ltlibobjs
20626
20627
20628 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20629 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20630 Usually this means the macro was only invoked conditionally." >&5
20631 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20632 Usually this means the macro was only invoked conditionally." >&2;}
20633 { (exit 1); exit 1; }; }
20634 fi
20635 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20636 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20637 Usually this means the macro was only invoked conditionally." >&5
20638 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20639 Usually this means the macro was only invoked conditionally." >&2;}
20640 { (exit 1); exit 1; }; }
20641 fi
20642 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20643 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20644 Usually this means the macro was only invoked conditionally." >&5
20645 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20646 Usually this means the macro was only invoked conditionally." >&2;}
20647 { (exit 1); exit 1; }; }
20648 fi
20649 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20650 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20651 Usually this means the macro was only invoked conditionally." >&5
20652 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20653 Usually this means the macro was only invoked conditionally." >&2;}
20654 { (exit 1); exit 1; }; }
20655 fi
20656 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20657 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20658 Usually this means the macro was only invoked conditionally." >&5
20659 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20660 Usually this means the macro was only invoked conditionally." >&2;}
20661 { (exit 1); exit 1; }; }
20662 fi
20663
20664 : ${CONFIG_STATUS=./config.status}
20665 ac_clean_files_save=$ac_clean_files
20666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20667 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20668 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20669 cat >$CONFIG_STATUS <<_ACEOF
20670 #! $SHELL
20671 # Generated by $as_me.
20672 # Run this file to recreate the current configuration.
20673 # Compiler output produced by configure, useful for debugging
20674 # configure, is in config.log if it exists.
20675
20676 debug=false
20677 ac_cs_recheck=false
20678 ac_cs_silent=false
20679 SHELL=\${CONFIG_SHELL-$SHELL}
20680 _ACEOF
20681
20682 cat >>$CONFIG_STATUS <<\_ACEOF
20683 ## --------------------- ##
20684 ## M4sh Initialization. ##
20685 ## --------------------- ##
20686
20687 # Be Bourne compatible
20688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20689 emulate sh
20690 NULLCMD=:
20691 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20692 # is contrary to our usage. Disable this feature.
20693 alias -g '${1+"$@"}'='"$@"'
20694 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20695 set -o posix
20696 fi
20697 DUALCASE=1; export DUALCASE # for MKS sh
20698
20699 # Support unset when possible.
20700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20701 as_unset=unset
20702 else
20703 as_unset=false
20704 fi
20705
20706
20707 # Work around bugs in pre-3.0 UWIN ksh.
20708 $as_unset ENV MAIL MAILPATH
20709 PS1='$ '
20710 PS2='> '
20711 PS4='+ '
20712
20713 # NLS nuisances.
20714 for as_var in \
20715 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20716 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20717 LC_TELEPHONE LC_TIME
20718 do
20719 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20720 eval $as_var=C; export $as_var
20721 else
20722 $as_unset $as_var
20723 fi
20724 done
20725
20726 # Required to use basename.
20727 if expr a : '\(a\)' >/dev/null 2>&1; then
20728 as_expr=expr
20729 else
20730 as_expr=false
20731 fi
20732
20733 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20734 as_basename=basename
20735 else
20736 as_basename=false
20737 fi
20738
20739
20740 # Name of the executable.
20741 as_me=`$as_basename "$0" ||
20742 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20743 X"$0" : 'X\(//\)$' \| \
20744 X"$0" : 'X\(/\)$' \| \
20745 . : '\(.\)' 2>/dev/null ||
20746 echo X/"$0" |
20747 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20748 /^X\/\(\/\/\)$/{ s//\1/; q; }
20749 /^X\/\(\/\).*/{ s//\1/; q; }
20750 s/.*/./; q'`
20751
20752
20753 # PATH needs CR, and LINENO needs CR and PATH.
20754 # Avoid depending upon Character Ranges.
20755 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20756 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20757 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20758 as_cr_digits='0123456789'
20759 as_cr_alnum=$as_cr_Letters$as_cr_digits
20760
20761 # The user is always right.
20762 if test "${PATH_SEPARATOR+set}" != set; then
20763 echo "#! /bin/sh" >conf$$.sh
20764 echo "exit 0" >>conf$$.sh
20765 chmod +x conf$$.sh
20766 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20767 PATH_SEPARATOR=';'
20768 else
20769 PATH_SEPARATOR=:
20770 fi
20771 rm -f conf$$.sh
20772 fi
20773
20774
20775 as_lineno_1=$LINENO
20776 as_lineno_2=$LINENO
20777 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20778 test "x$as_lineno_1" != "x$as_lineno_2" &&
20779 test "x$as_lineno_3" = "x$as_lineno_2" || {
20780 # Find who we are. Look in the path if we contain no path at all
20781 # relative or not.
20782 case $0 in
20783 *[\\/]* ) as_myself=$0 ;;
20784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20785 for as_dir in $PATH
20786 do
20787 IFS=$as_save_IFS
20788 test -z "$as_dir" && as_dir=.
20789 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20790 done
20791
20792 ;;
20793 esac
20794 # We did not find ourselves, most probably we were run as `sh COMMAND'
20795 # in which case we are not to be found in the path.
20796 if test "x$as_myself" = x; then
20797 as_myself=$0
20798 fi
20799 if test ! -f "$as_myself"; then
20800 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20801 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20802 { (exit 1); exit 1; }; }
20803 fi
20804 case $CONFIG_SHELL in
20805 '')
20806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20807 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20808 do
20809 IFS=$as_save_IFS
20810 test -z "$as_dir" && as_dir=.
20811 for as_base in sh bash ksh sh5; do
20812 case $as_dir in
20813 /*)
20814 if ("$as_dir/$as_base" -c '
20815 as_lineno_1=$LINENO
20816 as_lineno_2=$LINENO
20817 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20818 test "x$as_lineno_1" != "x$as_lineno_2" &&
20819 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20820 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20821 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20822 CONFIG_SHELL=$as_dir/$as_base
20823 export CONFIG_SHELL
20824 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20825 fi;;
20826 esac
20827 done
20828 done
20829 ;;
20830 esac
20831
20832 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20833 # uniformly replaced by the line number. The first 'sed' inserts a
20834 # line-number line before each line; the second 'sed' does the real
20835 # work. The second script uses 'N' to pair each line-number line
20836 # with the numbered line, and appends trailing '-' during
20837 # substitution so that $LINENO is not a special case at line end.
20838 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20839 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20840 sed '=' <$as_myself |
20841 sed '
20842 N
20843 s,$,-,
20844 : loop
20845 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20846 t loop
20847 s,-$,,
20848 s,^['$as_cr_digits']*\n,,
20849 ' >$as_me.lineno &&
20850 chmod +x $as_me.lineno ||
20851 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20852 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20853 { (exit 1); exit 1; }; }
20854
20855 # Don't try to exec as it changes $[0], causing all sort of problems
20856 # (the dirname of $[0] is not the place where we might find the
20857 # original and so on. Autoconf is especially sensible to this).
20858 . ./$as_me.lineno
20859 # Exit status is that of the last command.
20860 exit
20861 }
20862
20863
20864 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20865 *c*,-n*) ECHO_N= ECHO_C='
20866 ' ECHO_T=' ' ;;
20867 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20868 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20869 esac
20870
20871 if expr a : '\(a\)' >/dev/null 2>&1; then
20872 as_expr=expr
20873 else
20874 as_expr=false
20875 fi
20876
20877 rm -f conf$$ conf$$.exe conf$$.file
20878 echo >conf$$.file
20879 if ln -s conf$$.file conf$$ 2>/dev/null; then
20880 # We could just check for DJGPP; but this test a) works b) is more generic
20881 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20882 if test -f conf$$.exe; then
20883 # Don't use ln at all; we don't have any links
20884 as_ln_s='cp -p'
20885 else
20886 as_ln_s='ln -s'
20887 fi
20888 elif ln conf$$.file conf$$ 2>/dev/null; then
20889 as_ln_s=ln
20890 else
20891 as_ln_s='cp -p'
20892 fi
20893 rm -f conf$$ conf$$.exe conf$$.file
20894
20895 if mkdir -p . 2>/dev/null; then
20896 as_mkdir_p=:
20897 else
20898 test -d ./-p && rmdir ./-p
20899 as_mkdir_p=false
20900 fi
20901
20902 as_executable_p="test -f"
20903
20904 # Sed expression to map a string onto a valid CPP name.
20905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20906
20907 # Sed expression to map a string onto a valid variable name.
20908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20909
20910
20911 # IFS
20912 # We need space, tab and new line, in precisely that order.
20913 as_nl='
20914 '
20915 IFS=" $as_nl"
20916
20917 # CDPATH.
20918 $as_unset CDPATH
20919
20920 exec 6>&1
20921
20922 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20923 # report actual input values of CONFIG_FILES etc. instead of their
20924 # values after options handling. Logging --version etc. is OK.
20925 exec 5>>config.log
20926 {
20927 echo
20928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20929 ## Running $as_me. ##
20930 _ASBOX
20931 } >&5
20932 cat >&5 <<_CSEOF
20933
20934 This file was extended by xf86-input-elographics $as_me 1.2.3, which was
20935 generated by GNU Autoconf 2.59. Invocation command line was
20936
20937 CONFIG_FILES = $CONFIG_FILES
20938 CONFIG_HEADERS = $CONFIG_HEADERS
20939 CONFIG_LINKS = $CONFIG_LINKS
20940 CONFIG_COMMANDS = $CONFIG_COMMANDS
20941 $ $0 $@
20942
20943 _CSEOF
20944 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20945 echo >&5
20946 _ACEOF
20947
20948 # Files that config.status was made for.
20949 if test -n "$ac_config_files"; then
20950 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20951 fi
20952
20953 if test -n "$ac_config_headers"; then
20954 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20955 fi
20956
20957 if test -n "$ac_config_links"; then
20958 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20959 fi
20960
20961 if test -n "$ac_config_commands"; then
20962 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20963 fi
20964
20965 cat >>$CONFIG_STATUS <<\_ACEOF
20966
20967 ac_cs_usage="\
20968 \`$as_me' instantiates files from templates according to the
20969 current configuration.
20970
20971 Usage: $0 [OPTIONS] [FILE]...
20972
20973 -h, --help print this help, then exit
20974 -V, --version print version number, then exit
20975 -q, --quiet do not print progress messages
20976 -d, --debug don't remove temporary files
20977 --recheck update $as_me by reconfiguring in the same conditions
20978 --file=FILE[:TEMPLATE]
20979 instantiate the configuration file FILE
20980 --header=FILE[:TEMPLATE]
20981 instantiate the configuration header FILE
20982
20983 Configuration files:
20984 $config_files
20985
20986 Configuration headers:
20987 $config_headers
20988
20989 Configuration commands:
20990 $config_commands
20991
20992 Report bugs to <bug-autoconf@gnu.org>."
20993 _ACEOF
20994
20995 cat >>$CONFIG_STATUS <<_ACEOF
20996 ac_cs_version="\\
20997 xf86-input-elographics config.status 1.2.3
20998 configured by $0, generated by GNU Autoconf 2.59,
20999 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21000
21001 Copyright (C) 2003 Free Software Foundation, Inc.
21002 This config.status script is free software; the Free Software Foundation
21003 gives unlimited permission to copy, distribute and modify it."
21004 srcdir=$srcdir
21005 INSTALL="$INSTALL"
21006 _ACEOF
21007
21008 cat >>$CONFIG_STATUS <<\_ACEOF
21009 # If no file are specified by the user, then we need to provide default
21010 # value. By we need to know if files were specified by the user.
21011 ac_need_defaults=:
21012 while test $# != 0
21013 do
21014 case $1 in
21015 --*=*)
21016 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21017 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21018 ac_shift=:
21019 ;;
21020 -*)
21021 ac_option=$1
21022 ac_optarg=$2
21023 ac_shift=shift
21024 ;;
21025 *) # This is not an option, so the user has probably given explicit
21026 # arguments.
21027 ac_option=$1
21028 ac_need_defaults=false;;
21029 esac
21030
21031 case $ac_option in
21032 # Handling of the options.
21033 _ACEOF
21034 cat >>$CONFIG_STATUS <<\_ACEOF
21035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21036 ac_cs_recheck=: ;;
21037 --version | --vers* | -V )
21038 echo "$ac_cs_version"; exit 0 ;;
21039 --he | --h)
21040 # Conflict between --help and --header
21041 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21042 Try \`$0 --help' for more information." >&5
21043 echo "$as_me: error: ambiguous option: $1
21044 Try \`$0 --help' for more information." >&2;}
21045 { (exit 1); exit 1; }; };;
21046 --help | --hel | -h )
21047 echo "$ac_cs_usage"; exit 0 ;;
21048 --debug | --d* | -d )
21049 debug=: ;;
21050 --file | --fil | --fi | --f )
21051 $ac_shift
21052 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21053 ac_need_defaults=false;;
21054 --header | --heade | --head | --hea )
21055 $ac_shift
21056 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21057 ac_need_defaults=false;;
21058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21060 ac_cs_silent=: ;;
21061
21062 # This is an error.
21063 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21064 Try \`$0 --help' for more information." >&5
21065 echo "$as_me: error: unrecognized option: $1
21066 Try \`$0 --help' for more information." >&2;}
21067 { (exit 1); exit 1; }; } ;;
21068
21069 *) ac_config_targets="$ac_config_targets $1" ;;
21070
21071 esac
21072 shift
21073 done
21074
21075 ac_configure_extra_args=
21076
21077 if $ac_cs_silent; then
21078 exec 6>/dev/null
21079 ac_configure_extra_args="$ac_configure_extra_args --silent"
21080 fi
21081
21082 _ACEOF
21083 cat >>$CONFIG_STATUS <<_ACEOF
21084 if \$ac_cs_recheck; then
21085 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21086 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21087 fi
21088
21089 _ACEOF
21090
21091 cat >>$CONFIG_STATUS <<_ACEOF
21092 #
21093 # INIT-COMMANDS section.
21094 #
21095
21096 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21097
21098 _ACEOF
21099
21100
21101
21102 cat >>$CONFIG_STATUS <<\_ACEOF
21103 for ac_config_target in $ac_config_targets
21104 do
21105 case "$ac_config_target" in
21106 # Handling of arguments.
21107 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21108 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21109 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21110 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21111 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21112 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21113 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21114 { (exit 1); exit 1; }; };;
21115 esac
21116 done
21117
21118 # If the user did not use the arguments to specify the items to instantiate,
21119 # then the envvar interface is used. Set only those that are not.
21120 # We use the long form for the default assignment because of an extremely
21121 # bizarre bug on SunOS 4.1.3.
21122 if $ac_need_defaults; then
21123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21124 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21125 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21126 fi
21127
21128 # Have a temporary directory for convenience. Make it in the build tree
21129 # simply because there is no reason to put it here, and in addition,
21130 # creating and moving files from /tmp can sometimes cause problems.
21131 # Create a temporary directory, and hook for its removal unless debugging.
21132 $debug ||
21133 {
21134 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21135 trap '{ (exit 1); exit 1; }' 1 2 13 15
21136 }
21137
21138 # Create a (secure) tmp directory for tmp files.
21139
21140 {
21141 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21142 test -n "$tmp" && test -d "$tmp"
21143 } ||
21144 {
21145 tmp=./confstat$$-$RANDOM
21146 (umask 077 && mkdir $tmp)
21147 } ||
21148 {
21149 echo "$me: cannot create a temporary directory in ." >&2
21150 { (exit 1); exit 1; }
21151 }
21152
21153 _ACEOF
21154
21155 cat >>$CONFIG_STATUS <<_ACEOF
21156
21157 #
21158 # CONFIG_FILES section.
21159 #
21160
21161 # No need to generate the scripts if there are no CONFIG_FILES.
21162 # This happens for instance when ./config.status config.h
21163 if test -n "\$CONFIG_FILES"; then
21164 # Protect against being on the right side of a sed subst in config.status.
21165 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21166 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21167 s,@SHELL@,$SHELL,;t t
21168 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21169 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21170 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21171 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21172 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21173 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21174 s,@exec_prefix@,$exec_prefix,;t t
21175 s,@prefix@,$prefix,;t t
21176 s,@program_transform_name@,$program_transform_name,;t t
21177 s,@bindir@,$bindir,;t t
21178 s,@sbindir@,$sbindir,;t t
21179 s,@libexecdir@,$libexecdir,;t t
21180 s,@datadir@,$datadir,;t t
21181 s,@sysconfdir@,$sysconfdir,;t t
21182 s,@sharedstatedir@,$sharedstatedir,;t t
21183 s,@localstatedir@,$localstatedir,;t t
21184 s,@libdir@,$libdir,;t t
21185 s,@includedir@,$includedir,;t t
21186 s,@oldincludedir@,$oldincludedir,;t t
21187 s,@infodir@,$infodir,;t t
21188 s,@mandir@,$mandir,;t t
21189 s,@build_alias@,$build_alias,;t t
21190 s,@host_alias@,$host_alias,;t t
21191 s,@target_alias@,$target_alias,;t t
21192 s,@DEFS@,$DEFS,;t t
21193 s,@ECHO_C@,$ECHO_C,;t t
21194 s,@ECHO_N@,$ECHO_N,;t t
21195 s,@ECHO_T@,$ECHO_T,;t t
21196 s,@LIBS@,$LIBS,;t t
21197 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21198 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21199 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21200 s,@CYGPATH_W@,$CYGPATH_W,;t t
21201 s,@PACKAGE@,$PACKAGE,;t t
21202 s,@VERSION@,$VERSION,;t t
21203 s,@ACLOCAL@,$ACLOCAL,;t t
21204 s,@AUTOCONF@,$AUTOCONF,;t t
21205 s,@AUTOMAKE@,$AUTOMAKE,;t t
21206 s,@AUTOHEADER@,$AUTOHEADER,;t t
21207 s,@MAKEINFO@,$MAKEINFO,;t t
21208 s,@install_sh@,$install_sh,;t t
21209 s,@STRIP@,$STRIP,;t t
21210 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21211 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21212 s,@mkdir_p@,$mkdir_p,;t t
21213 s,@AWK@,$AWK,;t t
21214 s,@SET_MAKE@,$SET_MAKE,;t t
21215 s,@am__leading_dot@,$am__leading_dot,;t t
21216 s,@AMTAR@,$AMTAR,;t t
21217 s,@am__tar@,$am__tar,;t t
21218 s,@am__untar@,$am__untar,;t t
21219 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21220 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21221 s,@MAINT@,$MAINT,;t t
21222 s,@DRIVER_NAME@,$DRIVER_NAME,;t t
21223 s,@build@,$build,;t t
21224 s,@build_cpu@,$build_cpu,;t t
21225 s,@build_vendor@,$build_vendor,;t t
21226 s,@build_os@,$build_os,;t t
21227 s,@host@,$host,;t t
21228 s,@host_cpu@,$host_cpu,;t t
21229 s,@host_vendor@,$host_vendor,;t t
21230 s,@host_os@,$host_os,;t t
21231 s,@CC@,$CC,;t t
21232 s,@CFLAGS@,$CFLAGS,;t t
21233 s,@LDFLAGS@,$LDFLAGS,;t t
21234 s,@CPPFLAGS@,$CPPFLAGS,;t t
21235 s,@ac_ct_CC@,$ac_ct_CC,;t t
21236 s,@EXEEXT@,$EXEEXT,;t t
21237 s,@OBJEXT@,$OBJEXT,;t t
21238 s,@DEPDIR@,$DEPDIR,;t t
21239 s,@am__include@,$am__include,;t t
21240 s,@am__quote@,$am__quote,;t t
21241 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21242 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21243 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21244 s,@CCDEPMODE@,$CCDEPMODE,;t t
21245 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21246 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21247 s,@SED@,$SED,;t t
21248 s,@EGREP@,$EGREP,;t t
21249 s,@LN_S@,$LN_S,;t t
21250 s,@ECHO@,$ECHO,;t t
21251 s,@AR@,$AR,;t t
21252 s,@ac_ct_AR@,$ac_ct_AR,;t t
21253 s,@RANLIB@,$RANLIB,;t t
21254 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21255 s,@DSYMUTIL@,$DSYMUTIL,;t t
21256 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
21257 s,@NMEDIT@,$NMEDIT,;t t
21258 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
21259 s,@CPP@,$CPP,;t t
21260 s,@CXX@,$CXX,;t t
21261 s,@CXXFLAGS@,$CXXFLAGS,;t t
21262 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21263 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21264 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21265 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21266 s,@CXXCPP@,$CXXCPP,;t t
21267 s,@F77@,$F77,;t t
21268 s,@FFLAGS@,$FFLAGS,;t t
21269 s,@ac_ct_F77@,$ac_ct_F77,;t t
21270 s,@LIBTOOL@,$LIBTOOL,;t t
21271 s,@inputdir@,$inputdir,;t t
21272 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21273 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21274 s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t
21275 s,@XORG_LIBS@,$XORG_LIBS,;t t
21276 s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
21277 s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
21278 s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
21279 s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
21280 s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
21281 s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
21282 s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
21283 s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
21284 s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
21285 s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
21286 s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
21287 s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
21288 s,@LIBOBJS@,$LIBOBJS,;t t
21289 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21290 CEOF
21291
21292 _ACEOF
21293
21294 cat >>$CONFIG_STATUS <<\_ACEOF
21295 # Split the substitutions into bite-sized pieces for seds with
21296 # small command number limits, like on Digital OSF/1 and HP-UX.
21297 ac_max_sed_lines=48
21298 ac_sed_frag=1 # Number of current file.
21299 ac_beg=1 # First line for current file.
21300 ac_end=$ac_max_sed_lines # Line after last line for current file.
21301 ac_more_lines=:
21302 ac_sed_cmds=
21303 while $ac_more_lines; do
21304 if test $ac_beg -gt 1; then
21305 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21306 else
21307 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21308 fi
21309 if test ! -s $tmp/subs.frag; then
21310 ac_more_lines=false
21311 else
21312 # The purpose of the label and of the branching condition is to
21313 # speed up the sed processing (if there are no `@' at all, there
21314 # is no need to browse any of the substitutions).
21315 # These are the two extra sed commands mentioned above.
21316 (echo ':t
21317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21318 if test -z "$ac_sed_cmds"; then
21319 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21320 else
21321 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21322 fi
21323 ac_sed_frag=`expr $ac_sed_frag + 1`
21324 ac_beg=$ac_end
21325 ac_end=`expr $ac_end + $ac_max_sed_lines`
21326 fi
21327 done
21328 if test -z "$ac_sed_cmds"; then
21329 ac_sed_cmds=cat
21330 fi
21331 fi # test -n "$CONFIG_FILES"
21332
21333 _ACEOF
21334 cat >>$CONFIG_STATUS <<\_ACEOF
21335 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21336 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21337 case $ac_file in
21338 - | *:- | *:-:* ) # input from stdin
21339 cat >$tmp/stdin
21340 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21341 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21342 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21343 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21344 * ) ac_file_in=$ac_file.in ;;
21345 esac
21346
21347 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21348 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21350 X"$ac_file" : 'X\(//\)[^/]' \| \
21351 X"$ac_file" : 'X\(//\)$' \| \
21352 X"$ac_file" : 'X\(/\)' \| \
21353 . : '\(.\)' 2>/dev/null ||
21354 echo X"$ac_file" |
21355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21357 /^X\(\/\/\)$/{ s//\1/; q; }
21358 /^X\(\/\).*/{ s//\1/; q; }
21359 s/.*/./; q'`
21360 { if $as_mkdir_p; then
21361 mkdir -p "$ac_dir"
21362 else
21363 as_dir="$ac_dir"
21364 as_dirs=
21365 while test ! -d "$as_dir"; do
21366 as_dirs="$as_dir $as_dirs"
21367 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21369 X"$as_dir" : 'X\(//\)[^/]' \| \
21370 X"$as_dir" : 'X\(//\)$' \| \
21371 X"$as_dir" : 'X\(/\)' \| \
21372 . : '\(.\)' 2>/dev/null ||
21373 echo X"$as_dir" |
21374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21376 /^X\(\/\/\)$/{ s//\1/; q; }
21377 /^X\(\/\).*/{ s//\1/; q; }
21378 s/.*/./; q'`
21379 done
21380 test ! -n "$as_dirs" || mkdir $as_dirs
21381 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21382 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21383 { (exit 1); exit 1; }; }; }
21384
21385 ac_builddir=.
21386
21387 if test "$ac_dir" != .; then
21388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21389 # A "../" for each directory in $ac_dir_suffix.
21390 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21391 else
21392 ac_dir_suffix= ac_top_builddir=
21393 fi
21394
21395 case $srcdir in
21396 .) # No --srcdir option. We are building in place.
21397 ac_srcdir=.
21398 if test -z "$ac_top_builddir"; then
21399 ac_top_srcdir=.
21400 else
21401 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21402 fi ;;
21403 [\\/]* | ?:[\\/]* ) # Absolute path.
21404 ac_srcdir=$srcdir$ac_dir_suffix;
21405 ac_top_srcdir=$srcdir ;;
21406 *) # Relative path.
21407 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21408 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21409 esac
21410
21411 # Do not use `cd foo && pwd` to compute absolute paths, because
21412 # the directories may not exist.
21413 case `pwd` in
21414 .) ac_abs_builddir="$ac_dir";;
21415 *)
21416 case "$ac_dir" in
21417 .) ac_abs_builddir=`pwd`;;
21418 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21419 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21420 esac;;
21421 esac
21422 case $ac_abs_builddir in
21423 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21424 *)
21425 case ${ac_top_builddir}. in
21426 .) ac_abs_top_builddir=$ac_abs_builddir;;
21427 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21428 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21429 esac;;
21430 esac
21431 case $ac_abs_builddir in
21432 .) ac_abs_srcdir=$ac_srcdir;;
21433 *)
21434 case $ac_srcdir in
21435 .) ac_abs_srcdir=$ac_abs_builddir;;
21436 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21437 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21438 esac;;
21439 esac
21440 case $ac_abs_builddir in
21441 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21442 *)
21443 case $ac_top_srcdir in
21444 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21445 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21446 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21447 esac;;
21448 esac
21449
21450
21451 case $INSTALL in
21452 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21453 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21454 esac
21455
21456 if test x"$ac_file" != x-; then
21457 { echo "$as_me:$LINENO: creating $ac_file" >&5
21458 echo "$as_me: creating $ac_file" >&6;}
21459 rm -f "$ac_file"
21460 fi
21461 # Let's still pretend it is `configure' which instantiates (i.e., don't
21462 # use $as_me), people would be surprised to read:
21463 # /* config.h. Generated by config.status. */
21464 if test x"$ac_file" = x-; then
21465 configure_input=
21466 else
21467 configure_input="$ac_file. "
21468 fi
21469 configure_input=$configure_input"Generated from `echo $ac_file_in |
21470 sed 's,.*/,,'` by configure."
21471
21472 # First look for the input files in the build tree, otherwise in the
21473 # src tree.
21474 ac_file_inputs=`IFS=:
21475 for f in $ac_file_in; do
21476 case $f in
21477 -) echo $tmp/stdin ;;
21478 [\\/$]*)
21479 # Absolute (can't be DOS-style, as IFS=:)
21480 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21481 echo "$as_me: error: cannot find input file: $f" >&2;}
21482 { (exit 1); exit 1; }; }
21483 echo "$f";;
21484 *) # Relative
21485 if test -f "$f"; then
21486 # Build tree
21487 echo "$f"
21488 elif test -f "$srcdir/$f"; then
21489 # Source tree
21490 echo "$srcdir/$f"
21491 else
21492 # /dev/null tree
21493 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21494 echo "$as_me: error: cannot find input file: $f" >&2;}
21495 { (exit 1); exit 1; }; }
21496 fi;;
21497 esac
21498 done` || { (exit 1); exit 1; }
21499 _ACEOF
21500 cat >>$CONFIG_STATUS <<_ACEOF
21501 sed "$ac_vpsub
21502 $extrasub
21503 _ACEOF
21504 cat >>$CONFIG_STATUS <<\_ACEOF
21505 :t
21506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21507 s,@configure_input@,$configure_input,;t t
21508 s,@srcdir@,$ac_srcdir,;t t
21509 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21510 s,@top_srcdir@,$ac_top_srcdir,;t t
21511 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21512 s,@builddir@,$ac_builddir,;t t
21513 s,@abs_builddir@,$ac_abs_builddir,;t t
21514 s,@top_builddir@,$ac_top_builddir,;t t
21515 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21516 s,@INSTALL@,$ac_INSTALL,;t t
21517 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21518 rm -f $tmp/stdin
21519 if test x"$ac_file" != x-; then
21520 mv $tmp/out $ac_file
21521 else
21522 cat $tmp/out
21523 rm -f $tmp/out
21524 fi
21525
21526 done
21527 _ACEOF
21528 cat >>$CONFIG_STATUS <<\_ACEOF
21529
21530 #
21531 # CONFIG_HEADER section.
21532 #
21533
21534 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21535 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21536 #
21537 # ac_d sets the value in "#define NAME VALUE" lines.
21538 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21539 ac_dB='[ ].*$,\1#\2'
21540 ac_dC=' '
21541 ac_dD=',;t'
21542 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21543 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21544 ac_uB='$,\1#\2define\3'
21545 ac_uC=' '
21546 ac_uD=',;t'
21547
21548 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21549 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21550 case $ac_file in
21551 - | *:- | *:-:* ) # input from stdin
21552 cat >$tmp/stdin
21553 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21554 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21555 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21556 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21557 * ) ac_file_in=$ac_file.in ;;
21558 esac
21559
21560 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21561 echo "$as_me: creating $ac_file" >&6;}
21562
21563 # First look for the input files in the build tree, otherwise in the
21564 # src tree.
21565 ac_file_inputs=`IFS=:
21566 for f in $ac_file_in; do
21567 case $f in
21568 -) echo $tmp/stdin ;;
21569 [\\/$]*)
21570 # Absolute (can't be DOS-style, as IFS=:)
21571 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21572 echo "$as_me: error: cannot find input file: $f" >&2;}
21573 { (exit 1); exit 1; }; }
21574 # Do quote $f, to prevent DOS paths from being IFS'd.
21575 echo "$f";;
21576 *) # Relative
21577 if test -f "$f"; then
21578 # Build tree
21579 echo "$f"
21580 elif test -f "$srcdir/$f"; then
21581 # Source tree
21582 echo "$srcdir/$f"
21583 else
21584 # /dev/null tree
21585 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21586 echo "$as_me: error: cannot find input file: $f" >&2;}
21587 { (exit 1); exit 1; }; }
21588 fi;;
21589 esac
21590 done` || { (exit 1); exit 1; }
21591 # Remove the trailing spaces.
21592 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21593
21594 _ACEOF
21595
21596 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21597 # `conftest.undefs', that substitutes the proper values into
21598 # config.h.in to produce config.h. The first handles `#define'
21599 # templates, and the second `#undef' templates.
21600 # And first: Protect against being on the right side of a sed subst in
21601 # config.status. Protect against being in an unquoted here document
21602 # in config.status.
21603 rm -f conftest.defines conftest.undefs
21604 # Using a here document instead of a string reduces the quoting nightmare.
21605 # Putting comments in sed scripts is not portable.
21606 #
21607 # `end' is used to avoid that the second main sed command (meant for
21608 # 0-ary CPP macros) applies to n-ary macro definitions.
21609 # See the Autoconf documentation for `clear'.
21610 cat >confdef2sed.sed <<\_ACEOF
21611 s/[\\&,]/\\&/g
21612 s,[\\$`],\\&,g
21613 t clear
21614 : clear
21615 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21616 t end
21617 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21618 : end
21619 _ACEOF
21620 # If some macros were called several times there might be several times
21621 # the same #defines, which is useless. Nevertheless, we may not want to
21622 # sort them, since we want the *last* AC-DEFINE to be honored.
21623 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21624 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21625 rm -f confdef2sed.sed
21626
21627 # This sed command replaces #undef with comments. This is necessary, for
21628 # example, in the case of _POSIX_SOURCE, which is predefined and required
21629 # on some systems where configure will not decide to define it.
21630 cat >>conftest.undefs <<\_ACEOF
21631 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21632 _ACEOF
21633
21634 # Break up conftest.defines because some shells have a limit on the size
21635 # of here documents, and old seds have small limits too (100 cmds).
21636 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21637 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21638 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21639 echo ' :' >>$CONFIG_STATUS
21640 rm -f conftest.tail
21641 while grep . conftest.defines >/dev/null
21642 do
21643 # Write a limited-size here document to $tmp/defines.sed.
21644 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21645 # Speed up: don't consider the non `#define' lines.
21646 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21647 # Work around the forget-to-reset-the-flag bug.
21648 echo 't clr' >>$CONFIG_STATUS
21649 echo ': clr' >>$CONFIG_STATUS
21650 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21651 echo 'CEOF
21652 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21653 rm -f $tmp/in
21654 mv $tmp/out $tmp/in
21655 ' >>$CONFIG_STATUS
21656 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21657 rm -f conftest.defines
21658 mv conftest.tail conftest.defines
21659 done
21660 rm -f conftest.defines
21661 echo ' fi # grep' >>$CONFIG_STATUS
21662 echo >>$CONFIG_STATUS
21663
21664 # Break up conftest.undefs because some shells have a limit on the size
21665 # of here documents, and old seds have small limits too (100 cmds).
21666 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21667 rm -f conftest.tail
21668 while grep . conftest.undefs >/dev/null
21669 do
21670 # Write a limited-size here document to $tmp/undefs.sed.
21671 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21672 # Speed up: don't consider the non `#undef'
21673 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21674 # Work around the forget-to-reset-the-flag bug.
21675 echo 't clr' >>$CONFIG_STATUS
21676 echo ': clr' >>$CONFIG_STATUS
21677 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21678 echo 'CEOF
21679 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21680 rm -f $tmp/in
21681 mv $tmp/out $tmp/in
21682 ' >>$CONFIG_STATUS
21683 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21684 rm -f conftest.undefs
21685 mv conftest.tail conftest.undefs
21686 done
21687 rm -f conftest.undefs
21688
21689 cat >>$CONFIG_STATUS <<\_ACEOF
21690 # Let's still pretend it is `configure' which instantiates (i.e., don't
21691 # use $as_me), people would be surprised to read:
21692 # /* config.h. Generated by config.status. */
21693 if test x"$ac_file" = x-; then
21694 echo "/* Generated by configure. */" >$tmp/config.h
21695 else
21696 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21697 fi
21698 cat $tmp/in >>$tmp/config.h
21699 rm -f $tmp/in
21700 if test x"$ac_file" != x-; then
21701 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21702 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21703 echo "$as_me: $ac_file is unchanged" >&6;}
21704 else
21705 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21707 X"$ac_file" : 'X\(//\)[^/]' \| \
21708 X"$ac_file" : 'X\(//\)$' \| \
21709 X"$ac_file" : 'X\(/\)' \| \
21710 . : '\(.\)' 2>/dev/null ||
21711 echo X"$ac_file" |
21712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21714 /^X\(\/\/\)$/{ s//\1/; q; }
21715 /^X\(\/\).*/{ s//\1/; q; }
21716 s/.*/./; q'`
21717 { if $as_mkdir_p; then
21718 mkdir -p "$ac_dir"
21719 else
21720 as_dir="$ac_dir"
21721 as_dirs=
21722 while test ! -d "$as_dir"; do
21723 as_dirs="$as_dir $as_dirs"
21724 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21726 X"$as_dir" : 'X\(//\)[^/]' \| \
21727 X"$as_dir" : 'X\(//\)$' \| \
21728 X"$as_dir" : 'X\(/\)' \| \
21729 . : '\(.\)' 2>/dev/null ||
21730 echo X"$as_dir" |
21731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21733 /^X\(\/\/\)$/{ s//\1/; q; }
21734 /^X\(\/\).*/{ s//\1/; q; }
21735 s/.*/./; q'`
21736 done
21737 test ! -n "$as_dirs" || mkdir $as_dirs
21738 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21739 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21740 { (exit 1); exit 1; }; }; }
21741
21742 rm -f $ac_file
21743 mv $tmp/config.h $ac_file
21744 fi
21745 else
21746 cat $tmp/config.h
21747 rm -f $tmp/config.h
21748 fi
21749 # Compute $ac_file's index in $config_headers.
21750 _am_stamp_count=1
21751 for _am_header in $config_headers :; do
21752 case $_am_header in
21753 $ac_file | $ac_file:* )
21754 break ;;
21755 * )
21756 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21757 esac
21758 done
21759 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21760 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21761 X$ac_file : 'X\(//\)[^/]' \| \
21762 X$ac_file : 'X\(//\)$' \| \
21763 X$ac_file : 'X\(/\)' \| \
21764 . : '\(.\)' 2>/dev/null ||
21765 echo X$ac_file |
21766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21768 /^X\(\/\/\)$/{ s//\1/; q; }
21769 /^X\(\/\).*/{ s//\1/; q; }
21770 s/.*/./; q'`/stamp-h$_am_stamp_count
21771 done
21772 _ACEOF
21773 cat >>$CONFIG_STATUS <<\_ACEOF
21774
21775 #
21776 # CONFIG_COMMANDS section.
21777 #
21778 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21779 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21780 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21781 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21782 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21783 X"$ac_dest" : 'X\(//\)[^/]' \| \
21784 X"$ac_dest" : 'X\(//\)$' \| \
21785 X"$ac_dest" : 'X\(/\)' \| \
21786 . : '\(.\)' 2>/dev/null ||
21787 echo X"$ac_dest" |
21788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21790 /^X\(\/\/\)$/{ s//\1/; q; }
21791 /^X\(\/\).*/{ s//\1/; q; }
21792 s/.*/./; q'`
21793 { if $as_mkdir_p; then
21794 mkdir -p "$ac_dir"
21795 else
21796 as_dir="$ac_dir"
21797 as_dirs=
21798 while test ! -d "$as_dir"; do
21799 as_dirs="$as_dir $as_dirs"
21800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21802 X"$as_dir" : 'X\(//\)[^/]' \| \
21803 X"$as_dir" : 'X\(//\)$' \| \
21804 X"$as_dir" : 'X\(/\)' \| \
21805 . : '\(.\)' 2>/dev/null ||
21806 echo X"$as_dir" |
21807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21809 /^X\(\/\/\)$/{ s//\1/; q; }
21810 /^X\(\/\).*/{ s//\1/; q; }
21811 s/.*/./; q'`
21812 done
21813 test ! -n "$as_dirs" || mkdir $as_dirs
21814 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21816 { (exit 1); exit 1; }; }; }
21817
21818 ac_builddir=.
21819
21820 if test "$ac_dir" != .; then
21821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21822 # A "../" for each directory in $ac_dir_suffix.
21823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21824 else
21825 ac_dir_suffix= ac_top_builddir=
21826 fi
21827
21828 case $srcdir in
21829 .) # No --srcdir option. We are building in place.
21830 ac_srcdir=.
21831 if test -z "$ac_top_builddir"; then
21832 ac_top_srcdir=.
21833 else
21834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21835 fi ;;
21836 [\\/]* | ?:[\\/]* ) # Absolute path.
21837 ac_srcdir=$srcdir$ac_dir_suffix;
21838 ac_top_srcdir=$srcdir ;;
21839 *) # Relative path.
21840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21842 esac
21843
21844 # Do not use `cd foo && pwd` to compute absolute paths, because
21845 # the directories may not exist.
21846 case `pwd` in
21847 .) ac_abs_builddir="$ac_dir";;
21848 *)
21849 case "$ac_dir" in
21850 .) ac_abs_builddir=`pwd`;;
21851 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21852 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21853 esac;;
21854 esac
21855 case $ac_abs_builddir in
21856 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21857 *)
21858 case ${ac_top_builddir}. in
21859 .) ac_abs_top_builddir=$ac_abs_builddir;;
21860 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21861 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21862 esac;;
21863 esac
21864 case $ac_abs_builddir in
21865 .) ac_abs_srcdir=$ac_srcdir;;
21866 *)
21867 case $ac_srcdir in
21868 .) ac_abs_srcdir=$ac_abs_builddir;;
21869 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21870 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21871 esac;;
21872 esac
21873 case $ac_abs_builddir in
21874 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21875 *)
21876 case $ac_top_srcdir in
21877 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21878 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21879 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21880 esac;;
21881 esac
21882
21883
21884 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21885 echo "$as_me: executing $ac_dest commands" >&6;}
21886 case $ac_dest in
21887 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21888 # Strip MF so we end up with the name of the file.
21889 mf=`echo "$mf" | sed -e 's/:.*$//'`
21890 # Check whether this is an Automake generated Makefile or not.
21891 # We used to match only the files named `Makefile.in', but
21892 # some people rename them; so instead we look at the file content.
21893 # Grep'ing the first line is not enough: some people post-process
21894 # each Makefile.in and add a new line on top of each file to say so.
21895 # So let's grep whole file.
21896 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21897 dirpart=`(dirname "$mf") 2>/dev/null ||
21898 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21899 X"$mf" : 'X\(//\)[^/]' \| \
21900 X"$mf" : 'X\(//\)$' \| \
21901 X"$mf" : 'X\(/\)' \| \
21902 . : '\(.\)' 2>/dev/null ||
21903 echo X"$mf" |
21904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21906 /^X\(\/\/\)$/{ s//\1/; q; }
21907 /^X\(\/\).*/{ s//\1/; q; }
21908 s/.*/./; q'`
21909 else
21910 continue
21911 fi
21912 # Extract the definition of DEPDIR, am__include, and am__quote
21913 # from the Makefile without running `make'.
21914 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21915 test -z "$DEPDIR" && continue
21916 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21917 test -z "am__include" && continue
21918 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21919 # When using ansi2knr, U may be empty or an underscore; expand it
21920 U=`sed -n 's/^U = //p' < "$mf"`
21921 # Find all dependency output files, they are included files with
21922 # $(DEPDIR) in their names. We invoke sed twice because it is the
21923 # simplest approach to changing $(DEPDIR) to its actual value in the
21924 # expansion.
21925 for file in `sed -n "
21926 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21927 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21928 # Make sure the directory exists.
21929 test -f "$dirpart/$file" && continue
21930 fdir=`(dirname "$file") 2>/dev/null ||
21931 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21932 X"$file" : 'X\(//\)[^/]' \| \
21933 X"$file" : 'X\(//\)$' \| \
21934 X"$file" : 'X\(/\)' \| \
21935 . : '\(.\)' 2>/dev/null ||
21936 echo X"$file" |
21937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21939 /^X\(\/\/\)$/{ s//\1/; q; }
21940 /^X\(\/\).*/{ s//\1/; q; }
21941 s/.*/./; q'`
21942 { if $as_mkdir_p; then
21943 mkdir -p $dirpart/$fdir
21944 else
21945 as_dir=$dirpart/$fdir
21946 as_dirs=
21947 while test ! -d "$as_dir"; do
21948 as_dirs="$as_dir $as_dirs"
21949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21951 X"$as_dir" : 'X\(//\)[^/]' \| \
21952 X"$as_dir" : 'X\(//\)$' \| \
21953 X"$as_dir" : 'X\(/\)' \| \
21954 . : '\(.\)' 2>/dev/null ||
21955 echo X"$as_dir" |
21956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21958 /^X\(\/\/\)$/{ s//\1/; q; }
21959 /^X\(\/\).*/{ s//\1/; q; }
21960 s/.*/./; q'`
21961 done
21962 test ! -n "$as_dirs" || mkdir $as_dirs
21963 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21964 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21965 { (exit 1); exit 1; }; }; }
21966
21967 # echo "creating $dirpart/$file"
21968 echo '# dummy' > "$dirpart/$file"
21969 done
21970 done
21971 ;;
21972 esac
21973 done
21974 _ACEOF
21975
21976 cat >>$CONFIG_STATUS <<\_ACEOF
21977
21978 { (exit 0); exit 0; }
21979 _ACEOF
21980 chmod +x $CONFIG_STATUS
21981 ac_clean_files=$ac_clean_files_save
21982
21983
21984 # configure is writing to config.log, and then calls config.status.
21985 # config.status does its own redirection, appending to config.log.
21986 # Unfortunately, on DOS this fails, as config.log is still kept open
21987 # by configure, so config.status won't be able to write to it; its
21988 # output is simply discarded. So we exec the FD to /dev/null,
21989 # effectively closing config.log, so it can be properly (re)opened and
21990 # appended to by config.status. When coming back to configure, we
21991 # need to make the FD available again.
21992 if test "$no_create" != yes; then
21993 ac_cs_success=:
21994 ac_config_status_args=
21995 test "$silent" = yes &&
21996 ac_config_status_args="$ac_config_status_args --quiet"
21997 exec 5>/dev/null
21998 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21999 exec 5>>config.log
22000 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22001 # would make configure fail if this is the last instruction.
22002 $ac_cs_success || { (exit 1); exit 1; }
22003 fi
22004
22005