1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TI IPC 3.0.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
394 tagnames=${tagnames+${tagnames},}CXX
396 # Name of the host.
397 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
398 # so uname gets run too.
399 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401 exec 6>&1
403 #
404 # Initializations.
405 #
406 ac_default_prefix=/usr/local
407 ac_config_libobj_dir=.
408 cross_compiling=no
409 subdirs=
410 MFLAGS=
411 MAKEFLAGS=
412 SHELL=${CONFIG_SHELL-/bin/sh}
414 # Maximum number of lines to put in a shell here document.
415 # This variable seems obsolete. It should probably be removed, and
416 # only ac_max_sed_lines should be used.
417 : ${ac_max_here_lines=38}
419 # Identity of this package.
420 PACKAGE_NAME='TI IPC'
421 PACKAGE_TARNAME='ti-ipc'
422 PACKAGE_VERSION='3.0.0'
423 PACKAGE_STRING='TI IPC 3.0.0'
424 PACKAGE_BUGREPORT=''
426 ac_unique_file="packages/ti/ipc/MessageQ.h"
427 # Factoring default headers for most tests.
428 ac_includes_default="\
429 #include <stdio.h>
430 #if HAVE_SYS_TYPES_H
431 # include <sys/types.h>
432 #endif
433 #if HAVE_SYS_STAT_H
434 # include <sys/stat.h>
435 #endif
436 #if STDC_HEADERS
437 # include <stdlib.h>
438 # include <stddef.h>
439 #else
440 # if HAVE_STDLIB_H
441 # include <stdlib.h>
442 # endif
443 #endif
444 #if HAVE_STRING_H
445 # if !STDC_HEADERS && HAVE_MEMORY_H
446 # include <memory.h>
447 # endif
448 # include <string.h>
449 #endif
450 #if HAVE_STRINGS_H
451 # include <strings.h>
452 #endif
453 #if HAVE_INTTYPES_H
454 # include <inttypes.h>
455 #else
456 # if HAVE_STDINT_H
457 # include <stdint.h>
458 # endif
459 #endif
460 #if HAVE_UNISTD_H
461 # include <unistd.h>
462 #endif"
464 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 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL AM_CFLAGS AM_LDFLAGS PLATFORM CMEM_INSTALL_DIR KERNEL_INSTALL_DIR AF_RPMSG DRM_PREFIX OMAPL138_TRUE OMAPL138_FALSE C66AK2E_TRUE C66AK2E_FALSE TCI6614_TRUE TCI6614_FALSE TCI6630_TRUE TCI6630_FALSE TCI6636_TRUE TCI6636_FALSE TCI6638_TRUE TCI6638_FALSE OMAP54XX_SMP_TRUE OMAP54XX_SMP_FALSE DRA7XX_TRUE DRA7XX_FALSE CMEM_TRUE CMEM_FALSE KDIR_TRUE KDIR_FALSE KERNEL_INSTALL_DIR_TRUE KERNEL_INSTALL_DIR_FALSE DRM_TRUE DRM_FALSE AF_RPMSG_TRUE AF_RPMSG_FALSE LIBOBJS LTLIBOBJS'
465 ac_subst_files=''
467 # Initialize some variables set by options.
468 ac_init_help=
469 ac_init_version=false
470 # The variables have the same names as the options, with
471 # dashes changed to underlines.
472 cache_file=/dev/null
473 exec_prefix=NONE
474 no_create=
475 no_recursion=
476 prefix=NONE
477 program_prefix=NONE
478 program_suffix=NONE
479 program_transform_name=s,x,x,
480 silent=
481 site=
482 srcdir=
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
487 # Installation directory options.
488 # These are left unexpanded so users can "make install exec_prefix=/foo"
489 # and all the variables that are supposed to be based on exec_prefix
490 # by default will actually change.
491 # Use braces instead of parens because sh, perl, etc. also accept them.
492 bindir='${exec_prefix}/bin'
493 sbindir='${exec_prefix}/sbin'
494 libexecdir='${exec_prefix}/libexec'
495 datadir='${prefix}/share'
496 sysconfdir='${prefix}/etc'
497 sharedstatedir='${prefix}/com'
498 localstatedir='${prefix}/var'
499 libdir='${exec_prefix}/lib'
500 includedir='${prefix}/include'
501 oldincludedir='/usr/include'
502 infodir='${prefix}/info'
503 mandir='${prefix}/man'
505 ac_prev=
506 for ac_option
507 do
508 # If the previous option needs an argument, assign it.
509 if test -n "$ac_prev"; then
510 eval "$ac_prev=\$ac_option"
511 ac_prev=
512 continue
513 fi
515 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517 # Accept the important Cygnus configure options, so we can diagnose typos.
519 case $ac_option in
521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 ac_prev=bindir ;;
523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 bindir=$ac_optarg ;;
526 -build | --build | --buil | --bui | --bu)
527 ac_prev=build_alias ;;
528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
529 build_alias=$ac_optarg ;;
531 -cache-file | --cache-file | --cache-fil | --cache-fi \
532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533 ac_prev=cache_file ;;
534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536 cache_file=$ac_optarg ;;
538 --config-cache | -C)
539 cache_file=config.cache ;;
541 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 ac_prev=datadir ;;
543 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 | --da=*)
545 datadir=$ac_optarg ;;
547 -disable-* | --disable-*)
548 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
549 # Reject names that are not valid shell variable names.
550 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
552 { (exit 1); exit 1; }; }
553 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
554 eval "enable_$ac_feature=no" ;;
556 -enable-* | --enable-*)
557 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561 { (exit 1); exit 1; }; }
562 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 case $ac_option in
564 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 *) ac_optarg=yes ;;
566 esac
567 eval "enable_$ac_feature='$ac_optarg'" ;;
569 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571 | --exec | --exe | --ex)
572 ac_prev=exec_prefix ;;
573 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575 | --exec=* | --exe=* | --ex=*)
576 exec_prefix=$ac_optarg ;;
578 -gas | --gas | --ga | --g)
579 # Obsolete; use --with-gas.
580 with_gas=yes ;;
582 -help | --help | --hel | --he | -h)
583 ac_init_help=long ;;
584 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
585 ac_init_help=recursive ;;
586 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
587 ac_init_help=short ;;
589 -host | --host | --hos | --ho)
590 ac_prev=host_alias ;;
591 -host=* | --host=* | --hos=* | --ho=*)
592 host_alias=$ac_optarg ;;
594 -includedir | --includedir | --includedi | --included | --include \
595 | --includ | --inclu | --incl | --inc)
596 ac_prev=includedir ;;
597 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
598 | --includ=* | --inclu=* | --incl=* | --inc=*)
599 includedir=$ac_optarg ;;
601 -infodir | --infodir | --infodi | --infod | --info | --inf)
602 ac_prev=infodir ;;
603 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
604 infodir=$ac_optarg ;;
606 -libdir | --libdir | --libdi | --libd)
607 ac_prev=libdir ;;
608 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 libdir=$ac_optarg ;;
611 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
612 | --libexe | --libex | --libe)
613 ac_prev=libexecdir ;;
614 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
615 | --libexe=* | --libex=* | --libe=*)
616 libexecdir=$ac_optarg ;;
618 -localstatedir | --localstatedir | --localstatedi | --localstated \
619 | --localstate | --localstat | --localsta | --localst \
620 | --locals | --local | --loca | --loc | --lo)
621 ac_prev=localstatedir ;;
622 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
623 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
624 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
625 localstatedir=$ac_optarg ;;
627 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
628 ac_prev=mandir ;;
629 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 mandir=$ac_optarg ;;
632 -nfp | --nfp | --nf)
633 # Obsolete; use --without-fp.
634 with_fp=no ;;
636 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
637 | --no-cr | --no-c | -n)
638 no_create=yes ;;
640 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
641 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 no_recursion=yes ;;
644 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
645 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
646 | --oldin | --oldi | --old | --ol | --o)
647 ac_prev=oldincludedir ;;
648 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
649 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
650 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
651 oldincludedir=$ac_optarg ;;
653 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
654 ac_prev=prefix ;;
655 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 prefix=$ac_optarg ;;
658 -program-prefix | --program-prefix | --program-prefi | --program-pref \
659 | --program-pre | --program-pr | --program-p)
660 ac_prev=program_prefix ;;
661 -program-prefix=* | --program-prefix=* | --program-prefi=* \
662 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
663 program_prefix=$ac_optarg ;;
665 -program-suffix | --program-suffix | --program-suffi | --program-suff \
666 | --program-suf | --program-su | --program-s)
667 ac_prev=program_suffix ;;
668 -program-suffix=* | --program-suffix=* | --program-suffi=* \
669 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
670 program_suffix=$ac_optarg ;;
672 -program-transform-name | --program-transform-name \
673 | --program-transform-nam | --program-transform-na \
674 | --program-transform-n | --program-transform- \
675 | --program-transform | --program-transfor \
676 | --program-transfo | --program-transf \
677 | --program-trans | --program-tran \
678 | --progr-tra | --program-tr | --program-t)
679 ac_prev=program_transform_name ;;
680 -program-transform-name=* | --program-transform-name=* \
681 | --program-transform-nam=* | --program-transform-na=* \
682 | --program-transform-n=* | --program-transform-=* \
683 | --program-transform=* | --program-transfor=* \
684 | --program-transfo=* | --program-transf=* \
685 | --program-trans=* | --program-tran=* \
686 | --progr-tra=* | --program-tr=* | --program-t=*)
687 program_transform_name=$ac_optarg ;;
689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
690 | -silent | --silent | --silen | --sile | --sil)
691 silent=yes ;;
693 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
694 ac_prev=sbindir ;;
695 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
696 | --sbi=* | --sb=*)
697 sbindir=$ac_optarg ;;
699 -sharedstatedir | --sharedstatedir | --sharedstatedi \
700 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
701 | --sharedst | --shareds | --shared | --share | --shar \
702 | --sha | --sh)
703 ac_prev=sharedstatedir ;;
704 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
705 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
706 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
707 | --sha=* | --sh=*)
708 sharedstatedir=$ac_optarg ;;
710 -site | --site | --sit)
711 ac_prev=site ;;
712 -site=* | --site=* | --sit=*)
713 site=$ac_optarg ;;
715 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
716 ac_prev=srcdir ;;
717 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 srcdir=$ac_optarg ;;
720 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
721 | --syscon | --sysco | --sysc | --sys | --sy)
722 ac_prev=sysconfdir ;;
723 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
724 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
725 sysconfdir=$ac_optarg ;;
727 -target | --target | --targe | --targ | --tar | --ta | --t)
728 ac_prev=target_alias ;;
729 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
730 target_alias=$ac_optarg ;;
732 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 verbose=yes ;;
735 -version | --version | --versio | --versi | --vers | -V)
736 ac_init_version=: ;;
738 -with-* | --with-*)
739 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742 { echo "$as_me: error: invalid package name: $ac_package" >&2
743 { (exit 1); exit 1; }; }
744 ac_package=`echo $ac_package| sed 's/-/_/g'`
745 case $ac_option in
746 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 *) ac_optarg=yes ;;
748 esac
749 eval "with_$ac_package='$ac_optarg'" ;;
751 -without-* | --without-*)
752 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package | sed 's/-/_/g'`
758 eval "with_$ac_package=no" ;;
760 --x)
761 # Obsolete; use --with-x.
762 with_x=yes ;;
764 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
765 | --x-incl | --x-inc | --x-in | --x-i)
766 ac_prev=x_includes ;;
767 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
768 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
769 x_includes=$ac_optarg ;;
771 -x-libraries | --x-libraries | --x-librarie | --x-librari \
772 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
773 ac_prev=x_libraries ;;
774 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
775 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
776 x_libraries=$ac_optarg ;;
778 -*) { echo "$as_me: error: unrecognized option: $ac_option
779 Try \`$0 --help' for more information." >&2
780 { (exit 1); exit 1; }; }
781 ;;
783 *=*)
784 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
787 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
788 { (exit 1); exit 1; }; }
789 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
790 eval "$ac_envvar='$ac_optarg'"
791 export $ac_envvar ;;
793 *)
794 # FIXME: should be removed in autoconf 3.0.
795 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
796 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
797 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
798 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 ;;
801 esac
802 done
804 if test -n "$ac_prev"; then
805 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
806 { echo "$as_me: error: missing argument to $ac_option" >&2
807 { (exit 1); exit 1; }; }
808 fi
810 # Be sure to have absolute paths.
811 for ac_var in exec_prefix prefix
812 do
813 eval ac_val=$`echo $ac_var`
814 case $ac_val in
815 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
816 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
817 { (exit 1); exit 1; }; };;
818 esac
819 done
821 # Be sure to have absolute paths.
822 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
823 localstatedir libdir includedir oldincludedir infodir mandir
824 do
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831 done
833 # There might be people who depend on the old broken behavior: `$host'
834 # used to hold the argument of --host etc.
835 # FIXME: To remove some day.
836 build=$build_alias
837 host=$host_alias
838 target=$target_alias
840 # FIXME: To remove some day.
841 if test "x$host_alias" != x; then
842 if test "x$build_alias" = x; then
843 cross_compiling=maybe
844 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
845 If a cross compiler is detected then cross compile mode will be used." >&2
846 elif test "x$build_alias" != "x$host_alias"; then
847 cross_compiling=yes
848 fi
849 fi
851 ac_tool_prefix=
852 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854 test "$silent" = yes && exec 6>/dev/null
857 # Find the source files, if location was not specified.
858 if test -z "$srcdir"; then
859 ac_srcdir_defaulted=yes
860 # Try the directory containing this script, then its parent.
861 ac_confdir=`(dirname "$0") 2>/dev/null ||
862 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
863 X"$0" : 'X\(//\)[^/]' \| \
864 X"$0" : 'X\(//\)$' \| \
865 X"$0" : 'X\(/\)' \| \
866 . : '\(.\)' 2>/dev/null ||
867 echo X"$0" |
868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
870 /^X\(\/\/\)$/{ s//\1/; q; }
871 /^X\(\/\).*/{ s//\1/; q; }
872 s/.*/./; q'`
873 srcdir=$ac_confdir
874 if test ! -r $srcdir/$ac_unique_file; then
875 srcdir=..
876 fi
877 else
878 ac_srcdir_defaulted=no
879 fi
880 if test ! -r $srcdir/$ac_unique_file; then
881 if test "$ac_srcdir_defaulted" = yes; then
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
883 { (exit 1); exit 1; }; }
884 else
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
886 { (exit 1); exit 1; }; }
887 fi
888 fi
889 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
890 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
891 { (exit 1); exit 1; }; }
892 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
893 ac_env_build_alias_set=${build_alias+set}
894 ac_env_build_alias_value=$build_alias
895 ac_cv_env_build_alias_set=${build_alias+set}
896 ac_cv_env_build_alias_value=$build_alias
897 ac_env_host_alias_set=${host_alias+set}
898 ac_env_host_alias_value=$host_alias
899 ac_cv_env_host_alias_set=${host_alias+set}
900 ac_cv_env_host_alias_value=$host_alias
901 ac_env_target_alias_set=${target_alias+set}
902 ac_env_target_alias_value=$target_alias
903 ac_cv_env_target_alias_set=${target_alias+set}
904 ac_cv_env_target_alias_value=$target_alias
905 ac_env_CC_set=${CC+set}
906 ac_env_CC_value=$CC
907 ac_cv_env_CC_set=${CC+set}
908 ac_cv_env_CC_value=$CC
909 ac_env_CFLAGS_set=${CFLAGS+set}
910 ac_env_CFLAGS_value=$CFLAGS
911 ac_cv_env_CFLAGS_set=${CFLAGS+set}
912 ac_cv_env_CFLAGS_value=$CFLAGS
913 ac_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_env_LDFLAGS_value=$LDFLAGS
915 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_cv_env_LDFLAGS_value=$LDFLAGS
917 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_env_CPPFLAGS_value=$CPPFLAGS
919 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
921 ac_env_CPP_set=${CPP+set}
922 ac_env_CPP_value=$CPP
923 ac_cv_env_CPP_set=${CPP+set}
924 ac_cv_env_CPP_value=$CPP
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CXXCPP_set=${CXXCPP+set}
934 ac_env_CXXCPP_value=$CXXCPP
935 ac_cv_env_CXXCPP_set=${CXXCPP+set}
936 ac_cv_env_CXXCPP_value=$CXXCPP
937 ac_env_PLATFORM_set=${PLATFORM+set}
938 ac_env_PLATFORM_value=$PLATFORM
939 ac_cv_env_PLATFORM_set=${PLATFORM+set}
940 ac_cv_env_PLATFORM_value=$PLATFORM
941 ac_env_CMEM_INSTALL_DIR_set=${CMEM_INSTALL_DIR+set}
942 ac_env_CMEM_INSTALL_DIR_value=$CMEM_INSTALL_DIR
943 ac_cv_env_CMEM_INSTALL_DIR_set=${CMEM_INSTALL_DIR+set}
944 ac_cv_env_CMEM_INSTALL_DIR_value=$CMEM_INSTALL_DIR
945 ac_env_KERNEL_INSTALL_DIR_set=${KERNEL_INSTALL_DIR+set}
946 ac_env_KERNEL_INSTALL_DIR_value=$KERNEL_INSTALL_DIR
947 ac_cv_env_KERNEL_INSTALL_DIR_set=${KERNEL_INSTALL_DIR+set}
948 ac_cv_env_KERNEL_INSTALL_DIR_value=$KERNEL_INSTALL_DIR
949 ac_env_AF_RPMSG_set=${AF_RPMSG+set}
950 ac_env_AF_RPMSG_value=$AF_RPMSG
951 ac_cv_env_AF_RPMSG_set=${AF_RPMSG+set}
952 ac_cv_env_AF_RPMSG_value=$AF_RPMSG
953 ac_env_DRM_PREFIX_set=${DRM_PREFIX+set}
954 ac_env_DRM_PREFIX_value=$DRM_PREFIX
955 ac_cv_env_DRM_PREFIX_set=${DRM_PREFIX+set}
956 ac_cv_env_DRM_PREFIX_value=$DRM_PREFIX
958 #
959 # Report the --help message.
960 #
961 if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
964 cat <<_ACEOF
965 \`configure' configures TI IPC 3.0.0 to adapt to many kinds of systems.
967 Usage: $0 [OPTION]... [VAR=VALUE]...
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE. See below for descriptions of some of the useful variables.
972 Defaults for the options are specified in brackets.
974 Configuration:
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
985 _ACEOF
987 cat <<_ACEOF
988 Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
990 [$ac_default_prefix]
991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
992 [PREFIX]
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
999 For better control, use the options below.
1001 Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1014 _ACEOF
1016 cat <<\_ACEOF
1018 Program names:
1019 --program-prefix=PREFIX prepend PREFIX to installed program names
1020 --program-suffix=SUFFIX append SUFFIX to installed program names
1021 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1023 System types:
1024 --build=BUILD configure for building on BUILD [guessed]
1025 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1026 _ACEOF
1027 fi
1029 if test -n "$ac_init_help"; then
1030 case $ac_init_help in
1031 short | recursive ) echo "Configuration of TI IPC 3.0.0:";;
1032 esac
1033 cat <<\_ACEOF
1035 Optional Features:
1036 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-maintainer-mode enable make rules and dependencies not useful
1039 (and sometimes confusing) to the casual installer
1040 --enable-shared[=PKGS]
1041 build shared libraries [default=yes]
1042 --enable-static[=PKGS]
1043 build static libraries [default=yes]
1044 --enable-fast-install[=PKGS]
1045 optimize for fast installation [default=yes]
1046 --disable-dependency-tracking speeds up one-time build
1047 --enable-dependency-tracking do not reject slow dependency extractors
1048 --disable-libtool-lock avoid locking (might break parallel builds)
1050 Optional Packages:
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use
1055 both]
1056 --with-tags[=TAGS]
1057 include additional configurations [automatic]
1059 Some influential environment variables:
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
1066 CPP C preprocessor
1067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
1069 CXXCPP C++ preprocessor
1070 PLATFORM Platform to build. Options are: 'OMAPL138' 'OMAP54XX' '66AK2E'
1071 'TCI6630' 'TCI6636' 'TCI6638' and 'DRA7XX'. If not defined all
1072 platforms will be built.
1073 CMEM_INSTALL_DIR
1074 Installation path directory to the CMEM libraries
1075 KERNEL_INSTALL_DIR
1076 Installation path to the Linux kernel.
1077 AF_RPMSG Address Family used by the RPMSG driver
1078 DRM_PREFIX Installation location to the DRM library.
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 _ACEOF
1084 fi
1086 if test "$ac_init_help" = "recursive"; then
1087 # If there are subdirs, report their specific --help.
1088 ac_popdir=`pwd`
1089 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090 test -d $ac_dir || continue
1091 ac_builddir=.
1093 if test "$ac_dir" != .; then
1094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095 # A "../" for each directory in $ac_dir_suffix.
1096 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097 else
1098 ac_dir_suffix= ac_top_builddir=
1099 fi
1101 case $srcdir in
1102 .) # No --srcdir option. We are building in place.
1103 ac_srcdir=.
1104 if test -z "$ac_top_builddir"; then
1105 ac_top_srcdir=.
1106 else
1107 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108 fi ;;
1109 [\\/]* | ?:[\\/]* ) # Absolute path.
1110 ac_srcdir=$srcdir$ac_dir_suffix;
1111 ac_top_srcdir=$srcdir ;;
1112 *) # Relative path.
1113 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115 esac
1117 # Do not use `cd foo && pwd` to compute absolute paths, because
1118 # the directories may not exist.
1119 case `pwd` in
1120 .) ac_abs_builddir="$ac_dir";;
1121 *)
1122 case "$ac_dir" in
1123 .) ac_abs_builddir=`pwd`;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126 esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *)
1131 case ${ac_top_builddir}. in
1132 .) ac_abs_top_builddir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135 esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_srcdir=$ac_srcdir;;
1139 *)
1140 case $ac_srcdir in
1141 .) ac_abs_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144 esac;;
1145 esac
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *)
1149 case $ac_top_srcdir in
1150 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 esac;;
1154 esac
1156 cd $ac_dir
1157 # Check for guested configure; otherwise get Cygnus style configure.
1158 if test -f $ac_srcdir/configure.gnu; then
1159 echo
1160 $SHELL $ac_srcdir/configure.gnu --help=recursive
1161 elif test -f $ac_srcdir/configure; then
1162 echo
1163 $SHELL $ac_srcdir/configure --help=recursive
1164 elif test -f $ac_srcdir/configure.ac ||
1165 test -f $ac_srcdir/configure.in; then
1166 echo
1167 $ac_configure --help
1168 else
1169 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170 fi
1171 cd $ac_popdir
1172 done
1173 fi
1175 test -n "$ac_init_help" && exit 0
1176 if $ac_init_version; then
1177 cat <<\_ACEOF
1178 TI IPC configure 3.0.0
1179 generated by GNU Autoconf 2.59
1181 Copyright (C) 2003 Free Software Foundation, Inc.
1182 This configure script is free software; the Free Software Foundation
1183 gives unlimited permission to copy, distribute and modify it.
1184 _ACEOF
1185 exit 0
1186 fi
1187 exec 5>config.log
1188 cat >&5 <<_ACEOF
1189 This file contains any messages produced by compilers while
1190 running configure, to aid debugging if configure makes a mistake.
1192 It was created by TI IPC $as_me 3.0.0, which was
1193 generated by GNU Autoconf 2.59. Invocation command line was
1195 $ $0 $@
1197 _ACEOF
1198 {
1199 cat <<_ASUNAME
1200 ## --------- ##
1201 ## Platform. ##
1202 ## --------- ##
1204 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1213 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1214 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1215 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1217 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1218 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1219 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221 _ASUNAME
1223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 for as_dir in $PATH
1225 do
1226 IFS=$as_save_IFS
1227 test -z "$as_dir" && as_dir=.
1228 echo "PATH: $as_dir"
1229 done
1231 } >&5
1233 cat >&5 <<_ACEOF
1236 ## ----------- ##
1237 ## Core tests. ##
1238 ## ----------- ##
1240 _ACEOF
1243 # Keep a trace of the command line.
1244 # Strip out --no-create and --no-recursion so they do not pile up.
1245 # Strip out --silent because we don't want to record it for future runs.
1246 # Also quote any args containing shell meta-characters.
1247 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_configure_args=
1249 ac_configure_args0=
1250 ac_configure_args1=
1251 ac_sep=
1252 ac_must_keep_next=false
1253 for ac_pass in 1 2
1254 do
1255 for ac_arg
1256 do
1257 case $ac_arg in
1258 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260 | -silent | --silent | --silen | --sile | --sil)
1261 continue ;;
1262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 esac
1265 case $ac_pass in
1266 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267 2)
1268 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269 if test $ac_must_keep_next = true; then
1270 ac_must_keep_next=false # Got value, back to normal.
1271 else
1272 case $ac_arg in
1273 *=* | --config-cache | -C | -disable-* | --disable-* \
1274 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276 | -with-* | --with-* | -without-* | --without-* | --x)
1277 case "$ac_configure_args0 " in
1278 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279 esac
1280 ;;
1281 -* ) ac_must_keep_next=true ;;
1282 esac
1283 fi
1284 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285 # Get rid of the leading space.
1286 ac_sep=" "
1287 ;;
1288 esac
1289 done
1290 done
1291 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1294 # When interrupted or exit'd, cleanup temporary files, and complete
1295 # config.log. We remove comments because anyway the quotes in there
1296 # would cause problems or look ugly.
1297 # WARNING: Be sure not to use single quotes in there, as some shells,
1298 # such as our DU 5.0 friend, will then `close' the trap.
1299 trap 'exit_status=$?
1300 # Save into config.log some information that might help in debugging.
1301 {
1302 echo
1304 cat <<\_ASBOX
1305 ## ---------------- ##
1306 ## Cache variables. ##
1307 ## ---------------- ##
1308 _ASBOX
1309 echo
1310 # The following way of writing the cache mishandles newlines in values,
1311 {
1312 (set) 2>&1 |
1313 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314 *ac_space=\ *)
1315 sed -n \
1316 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318 ;;
1319 *)
1320 sed -n \
1321 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322 ;;
1323 esac;
1324 }
1325 echo
1327 cat <<\_ASBOX
1328 ## ----------------- ##
1329 ## Output variables. ##
1330 ## ----------------- ##
1331 _ASBOX
1332 echo
1333 for ac_var in $ac_subst_vars
1334 do
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1337 done | sort
1338 echo
1340 if test -n "$ac_subst_files"; then
1341 cat <<\_ASBOX
1342 ## ------------- ##
1343 ## Output files. ##
1344 ## ------------- ##
1345 _ASBOX
1346 echo
1347 for ac_var in $ac_subst_files
1348 do
1349 eval ac_val=$`echo $ac_var`
1350 echo "$ac_var='"'"'$ac_val'"'"'"
1351 done | sort
1352 echo
1353 fi
1355 if test -s confdefs.h; then
1356 cat <<\_ASBOX
1357 ## ----------- ##
1358 ## confdefs.h. ##
1359 ## ----------- ##
1360 _ASBOX
1361 echo
1362 sed "/^$/d" confdefs.h | sort
1363 echo
1364 fi
1365 test "$ac_signal" != 0 &&
1366 echo "$as_me: caught signal $ac_signal"
1367 echo "$as_me: exit $exit_status"
1368 } >&5
1369 rm -f core *.core &&
1370 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371 exit $exit_status
1372 ' 0
1373 for ac_signal in 1 2 13 15; do
1374 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375 done
1376 ac_signal=0
1378 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1379 rm -rf conftest* confdefs.h
1380 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 echo >confdefs.h
1383 # Predefined preprocessor variables.
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_NAME "$PACKAGE_NAME"
1387 _ACEOF
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392 _ACEOF
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1397 _ACEOF
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_STRING "$PACKAGE_STRING"
1402 _ACEOF
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407 _ACEOF
1410 # Let the site file select an alternate cache file if it wants to.
1411 # Prefer explicitly selected file to automatically selected ones.
1412 if test -z "$CONFIG_SITE"; then
1413 if test "x$prefix" != xNONE; then
1414 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415 else
1416 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417 fi
1418 fi
1419 for ac_site_file in $CONFIG_SITE; do
1420 if test -r "$ac_site_file"; then
1421 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422 echo "$as_me: loading site script $ac_site_file" >&6;}
1423 sed 's/^/| /' "$ac_site_file" >&5
1424 . "$ac_site_file"
1425 fi
1426 done
1428 if test -r "$cache_file"; then
1429 # Some versions of bash will fail to source /dev/null (special
1430 # files actually), so we avoid doing that.
1431 if test -f "$cache_file"; then
1432 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433 echo "$as_me: loading cache $cache_file" >&6;}
1434 case $cache_file in
1435 [\\/]* | ?:[\\/]* ) . $cache_file;;
1436 *) . ./$cache_file;;
1437 esac
1438 fi
1439 else
1440 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441 echo "$as_me: creating cache $cache_file" >&6;}
1442 >$cache_file
1443 fi
1445 # Check that the precious variables saved in the cache have kept the same
1446 # value.
1447 ac_cache_corrupted=false
1448 for ac_var in `(set) 2>&1 |
1449 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451 eval ac_new_set=\$ac_env_${ac_var}_set
1452 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453 eval ac_new_val="\$ac_env_${ac_var}_value"
1454 case $ac_old_set,$ac_new_set in
1455 set,)
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1459 ,set)
1460 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462 ac_cache_corrupted=: ;;
1463 ,);;
1464 *)
1465 if test "x$ac_old_val" != "x$ac_new_val"; then
1466 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1467 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1468 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1469 echo "$as_me: former value: $ac_old_val" >&2;}
1470 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1471 echo "$as_me: current value: $ac_new_val" >&2;}
1472 ac_cache_corrupted=:
1473 fi;;
1474 esac
1475 # Pass precious variables to config.status.
1476 if test "$ac_new_set" = set; then
1477 case $ac_new_val in
1478 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480 *) ac_arg=$ac_var=$ac_new_val ;;
1481 esac
1482 case " $ac_configure_args " in
1483 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1484 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485 esac
1486 fi
1487 done
1488 if $ac_cache_corrupted; then
1489 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493 { (exit 1); exit 1; }; }
1494 fi
1496 ac_ext=c
1497 ac_cpp='$CPP $CPPFLAGS'
1498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529 # Check common src files to ensure integrity of the package
1532 # Set auxiliary build tools directory
1533 ac_aux_dir=
1534 for ac_dir in linux/build-aux $srcdir/linux/build-aux; do
1535 if test -f $ac_dir/install-sh; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/install-sh -c"
1538 break
1539 elif test -f $ac_dir/install.sh; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/install.sh -c"
1542 break
1543 elif test -f $ac_dir/shtool; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/shtool install -c"
1546 break
1547 fi
1548 done
1549 if test -z "$ac_aux_dir"; then
1550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&5
1551 echo "$as_me: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&2;}
1552 { (exit 1); exit 1; }; }
1553 fi
1554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559 # Initilize automake
1560 am__api_version="1.9"
1561 # Find a good install program. We prefer a C program (faster),
1562 # so one script is as good as another. But avoid the broken or
1563 # incompatible versions:
1564 # SysV /etc/install, /usr/sbin/install
1565 # SunOS /usr/etc/install
1566 # IRIX /sbin/install
1567 # AIX /bin/install
1568 # AmigaOS /C/install, which installs bootblocks on floppy discs
1569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1572 # OS/2's system install, which has a completely different semantic
1573 # ./install, which can be erroneously created by make from ./install.sh.
1574 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1575 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1576 if test -z "$INSTALL"; then
1577 if test "${ac_cv_path_install+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1582 do
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
1585 # Account for people who put trailing slashes in PATH elements.
1586 case $as_dir/ in
1587 ./ | .// | /cC/* | \
1588 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1589 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1590 /usr/ucb/* ) ;;
1591 *)
1592 # OSF1 and SCO ODT 3.0 have their own names for install.
1593 # Don't use installbsd from OSF since it installs stuff as root
1594 # by default.
1595 for ac_prog in ginstall scoinst install; do
1596 for ac_exec_ext in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1598 if test $ac_prog = install &&
1599 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1600 # AIX install. It has an incompatible calling convention.
1601 :
1602 elif test $ac_prog = install &&
1603 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604 # program-specific install script used by HP pwplus--don't use.
1605 :
1606 else
1607 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1608 break 3
1609 fi
1610 fi
1611 done
1612 done
1613 ;;
1614 esac
1615 done
1618 fi
1619 if test "${ac_cv_path_install+set}" = set; then
1620 INSTALL=$ac_cv_path_install
1621 else
1622 # As a last resort, use the slow shell script. We don't cache a
1623 # path for INSTALL within a source directory, because that will
1624 # break other packages using the cache if that directory is
1625 # removed, or if the path is relative.
1626 INSTALL=$ac_install_sh
1627 fi
1628 fi
1629 echo "$as_me:$LINENO: result: $INSTALL" >&5
1630 echo "${ECHO_T}$INSTALL" >&6
1632 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1633 # It thinks the first close brace ends the variable substitution.
1634 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1636 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1638 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1640 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1641 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1642 # Just in case
1643 sleep 1
1644 echo timestamp > conftest.file
1645 # Do `set' in a subshell so we don't clobber the current shell's
1646 # arguments. Must try -L first in case configure is actually a
1647 # symlink; some systems play weird games with the mod time of symlinks
1648 # (eg FreeBSD returns the mod time of the symlink's containing
1649 # directory).
1650 if (
1651 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1652 if test "$*" = "X"; then
1653 # -L didn't work.
1654 set X `ls -t $srcdir/configure conftest.file`
1655 fi
1656 rm -f conftest.file
1657 if test "$*" != "X $srcdir/configure conftest.file" \
1658 && test "$*" != "X conftest.file $srcdir/configure"; then
1660 # If neither matched, then we have a broken ls. This can happen
1661 # if, for instance, CONFIG_SHELL is bash and it inherits a
1662 # broken ls alias from the environment. This has actually
1663 # happened. Such a system could not be considered "sane".
1664 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1665 alias in your environment" >&5
1666 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1667 alias in your environment" >&2;}
1668 { (exit 1); exit 1; }; }
1669 fi
1671 test "$2" = conftest.file
1672 )
1673 then
1674 # Ok.
1675 :
1676 else
1677 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1678 Check your system clock" >&5
1679 echo "$as_me: error: newly created file is older than distributed files!
1680 Check your system clock" >&2;}
1681 { (exit 1); exit 1; }; }
1682 fi
1683 echo "$as_me:$LINENO: result: yes" >&5
1684 echo "${ECHO_T}yes" >&6
1685 test "$program_prefix" != NONE &&
1686 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1687 # Use a double $ so make ignores it.
1688 test "$program_suffix" != NONE &&
1689 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1690 # Double any \ or $. echo might interpret backslashes.
1691 # By default was `s,x,x', remove it if useless.
1692 cat <<\_ACEOF >conftest.sed
1693 s/[\\$]/&&/g;s/;s,x,x,$//
1694 _ACEOF
1695 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1696 rm conftest.sed
1698 # expand $ac_aux_dir to an absolute path
1699 am_aux_dir=`cd $ac_aux_dir && pwd`
1701 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1702 # Use eval to expand $SHELL
1703 if eval "$MISSING --run true"; then
1704 am_missing_run="$MISSING --run "
1705 else
1706 am_missing_run=
1707 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1708 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1709 fi
1711 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1712 # We used to keeping the `.' as first argument, in order to
1713 # allow $(mkdir_p) to be used without argument. As in
1714 # $(mkdir_p) $(somedir)
1715 # where $(somedir) is conditionally defined. However this is wrong
1716 # for two reasons:
1717 # 1. if the package is installed by a user who cannot write `.'
1718 # make install will fail,
1719 # 2. the above comment should most certainly read
1720 # $(mkdir_p) $(DESTDIR)$(somedir)
1721 # so it does not work when $(somedir) is undefined and
1722 # $(DESTDIR) is not.
1723 # To support the latter case, we have to write
1724 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1725 # so the `.' trick is pointless.
1726 mkdir_p='mkdir -p --'
1727 else
1728 # On NextStep and OpenStep, the `mkdir' command does not
1729 # recognize any option. It will interpret all options as
1730 # directories to create, and then abort because `.' already
1731 # exists.
1732 for d in ./-p ./--version;
1733 do
1734 test -d $d && rmdir $d
1735 done
1736 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1737 if test -f "$ac_aux_dir/mkinstalldirs"; then
1738 mkdir_p='$(mkinstalldirs)'
1739 else
1740 mkdir_p='$(install_sh) -d'
1741 fi
1742 fi
1744 for ac_prog in gawk mawk nawk awk
1745 do
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_AWK+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$AWK"; then
1754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_AWK="$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1766 fi
1767 done
1768 done
1770 fi
1771 fi
1772 AWK=$ac_cv_prog_AWK
1773 if test -n "$AWK"; then
1774 echo "$as_me:$LINENO: result: $AWK" >&5
1775 echo "${ECHO_T}$AWK" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1781 test -n "$AWK" && break
1782 done
1784 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1785 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1786 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1787 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790 cat >conftest.make <<\_ACEOF
1791 all:
1792 @echo 'ac_maketemp="$(MAKE)"'
1793 _ACEOF
1794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1795 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1796 if test -n "$ac_maketemp"; then
1797 eval ac_cv_prog_make_${ac_make}_set=yes
1798 else
1799 eval ac_cv_prog_make_${ac_make}_set=no
1800 fi
1801 rm -f conftest.make
1802 fi
1803 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1804 echo "$as_me:$LINENO: result: yes" >&5
1805 echo "${ECHO_T}yes" >&6
1806 SET_MAKE=
1807 else
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1810 SET_MAKE="MAKE=${MAKE-make}"
1811 fi
1813 rm -rf .tst 2>/dev/null
1814 mkdir .tst 2>/dev/null
1815 if test -d .tst; then
1816 am__leading_dot=.
1817 else
1818 am__leading_dot=_
1819 fi
1820 rmdir .tst 2>/dev/null
1822 # test to see if srcdir already configured
1823 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1824 test -f $srcdir/config.status; then
1825 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1826 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1827 { (exit 1); exit 1; }; }
1828 fi
1830 # test whether we have cygpath
1831 if test -z "$CYGPATH_W"; then
1832 if (cygpath --version) >/dev/null 2>/dev/null; then
1833 CYGPATH_W='cygpath -w'
1834 else
1835 CYGPATH_W=echo
1836 fi
1837 fi
1840 # Define the identity of the package.
1841 PACKAGE='ti-ipc'
1842 VERSION='3.0.0'
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE "$PACKAGE"
1847 _ACEOF
1850 cat >>confdefs.h <<_ACEOF
1851 #define VERSION "$VERSION"
1852 _ACEOF
1854 # Some tools Automake needs.
1856 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1859 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1862 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1865 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1868 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1870 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1872 # Installed binaries are usually stripped using `strip' when the user
1873 # run `make install-strip'. However `strip' might not be the right
1874 # tool to use in cross-compilation environments, therefore Automake
1875 # will honor the `STRIP' environment variable to overrule this program.
1876 if test "$cross_compiling" != no; then
1877 if test -n "$ac_tool_prefix"; then
1878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1879 set dummy ${ac_tool_prefix}strip; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_STRIP+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test -n "$STRIP"; then
1886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1898 fi
1899 done
1900 done
1902 fi
1903 fi
1904 STRIP=$ac_cv_prog_STRIP
1905 if test -n "$STRIP"; then
1906 echo "$as_me:$LINENO: result: $STRIP" >&5
1907 echo "${ECHO_T}$STRIP" >&6
1908 else
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1913 fi
1914 if test -z "$ac_cv_prog_STRIP"; then
1915 ac_ct_STRIP=$STRIP
1916 # Extract the first word of "strip", so it can be a program name with args.
1917 set dummy strip; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 if test -n "$ac_ct_STRIP"; then
1924 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929 IFS=$as_save_IFS
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_ac_ct_STRIP="strip"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 break 2
1936 fi
1937 done
1938 done
1940 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1941 fi
1942 fi
1943 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1944 if test -n "$ac_ct_STRIP"; then
1945 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1946 echo "${ECHO_T}$ac_ct_STRIP" >&6
1947 else
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1950 fi
1952 STRIP=$ac_ct_STRIP
1953 else
1954 STRIP="$ac_cv_prog_STRIP"
1955 fi
1957 fi
1958 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1960 # We need awk for the "check" target. The system "awk" is bad on
1961 # some platforms.
1962 # Always define AMTAR for backward compatibility.
1964 AMTAR=${AMTAR-"${am_missing_run}tar"}
1966 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1973 # Disabling maintainer mode to prevent rebuild of configure script
1974 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1975 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1976 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1977 if test "${enable_maintainer_mode+set}" = set; then
1978 enableval="$enable_maintainer_mode"
1979 USE_MAINTAINER_MODE=$enableval
1980 else
1981 USE_MAINTAINER_MODE=no
1982 fi;
1983 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1984 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1987 if test $USE_MAINTAINER_MODE = yes; then
1988 MAINTAINER_MODE_TRUE=
1989 MAINTAINER_MODE_FALSE='#'
1990 else
1991 MAINTAINER_MODE_TRUE='#'
1992 MAINTAINER_MODE_FALSE=
1993 fi
1995 MAINT=$MAINTAINER_MODE_TRUE
1999 # Initalize libtool but disable fortran check
2000 # Check whether --enable-shared or --disable-shared was given.
2001 if test "${enable_shared+set}" = set; then
2002 enableval="$enable_shared"
2003 p=${PACKAGE-default}
2004 case $enableval in
2005 yes) enable_shared=yes ;;
2006 no) enable_shared=no ;;
2007 *)
2008 enable_shared=no
2009 # Look at the argument we got. We use all the common list separators.
2010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2011 for pkg in $enableval; do
2012 IFS="$lt_save_ifs"
2013 if test "X$pkg" = "X$p"; then
2014 enable_shared=yes
2015 fi
2016 done
2017 IFS="$lt_save_ifs"
2018 ;;
2019 esac
2020 else
2021 enable_shared=yes
2022 fi;
2024 # Check whether --enable-static or --disable-static was given.
2025 if test "${enable_static+set}" = set; then
2026 enableval="$enable_static"
2027 p=${PACKAGE-default}
2028 case $enableval in
2029 yes) enable_static=yes ;;
2030 no) enable_static=no ;;
2031 *)
2032 enable_static=no
2033 # Look at the argument we got. We use all the common list separators.
2034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2035 for pkg in $enableval; do
2036 IFS="$lt_save_ifs"
2037 if test "X$pkg" = "X$p"; then
2038 enable_static=yes
2039 fi
2040 done
2041 IFS="$lt_save_ifs"
2042 ;;
2043 esac
2044 else
2045 enable_static=yes
2046 fi;
2048 # Check whether --enable-fast-install or --disable-fast-install was given.
2049 if test "${enable_fast_install+set}" = set; then
2050 enableval="$enable_fast_install"
2051 p=${PACKAGE-default}
2052 case $enableval in
2053 yes) enable_fast_install=yes ;;
2054 no) enable_fast_install=no ;;
2055 *)
2056 enable_fast_install=no
2057 # Look at the argument we got. We use all the common list separators.
2058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2059 for pkg in $enableval; do
2060 IFS="$lt_save_ifs"
2061 if test "X$pkg" = "X$p"; then
2062 enable_fast_install=yes
2063 fi
2064 done
2065 IFS="$lt_save_ifs"
2066 ;;
2067 esac
2068 else
2069 enable_fast_install=yes
2070 fi;
2072 # Make sure we can run config.sub.
2073 $ac_config_sub sun4 >/dev/null 2>&1 ||
2074 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2075 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2076 { (exit 1); exit 1; }; }
2078 echo "$as_me:$LINENO: checking build system type" >&5
2079 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2080 if test "${ac_cv_build+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 ac_cv_build_alias=$build_alias
2084 test -z "$ac_cv_build_alias" &&
2085 ac_cv_build_alias=`$ac_config_guess`
2086 test -z "$ac_cv_build_alias" &&
2087 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2088 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2089 { (exit 1); exit 1; }; }
2090 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2091 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2092 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2093 { (exit 1); exit 1; }; }
2095 fi
2096 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2097 echo "${ECHO_T}$ac_cv_build" >&6
2098 build=$ac_cv_build
2099 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2100 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2101 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2104 echo "$as_me:$LINENO: checking host system type" >&5
2105 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2106 if test "${ac_cv_host+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109 ac_cv_host_alias=$host_alias
2110 test -z "$ac_cv_host_alias" &&
2111 ac_cv_host_alias=$ac_cv_build_alias
2112 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2113 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2114 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2115 { (exit 1); exit 1; }; }
2117 fi
2118 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2119 echo "${ECHO_T}$ac_cv_host" >&6
2120 host=$ac_cv_host
2121 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2122 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2123 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2126 DEPDIR="${am__leading_dot}deps"
2128 ac_config_commands="$ac_config_commands depfiles"
2131 am_make=${MAKE-make}
2132 cat > confinc << 'END'
2133 am__doit:
2134 @echo done
2135 .PHONY: am__doit
2136 END
2137 # If we don't find an include directive, just comment out the code.
2138 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2139 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2140 am__include="#"
2141 am__quote=
2142 _am_result=none
2143 # First try GNU make style include.
2144 echo "include confinc" > confmf
2145 # We grep out `Entering directory' and `Leaving directory'
2146 # messages which can occur if `w' ends up in MAKEFLAGS.
2147 # In particular we don't look at `^make:' because GNU make might
2148 # be invoked under some other name (usually "gmake"), in which
2149 # case it prints its new name instead of `make'.
2150 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2151 am__include=include
2152 am__quote=
2153 _am_result=GNU
2154 fi
2155 # Now try BSD make style include.
2156 if test "$am__include" = "#"; then
2157 echo '.include "confinc"' > confmf
2158 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2159 am__include=.include
2160 am__quote="\""
2161 _am_result=BSD
2162 fi
2163 fi
2166 echo "$as_me:$LINENO: result: $_am_result" >&5
2167 echo "${ECHO_T}$_am_result" >&6
2168 rm -f confinc confmf
2170 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2171 if test "${enable_dependency_tracking+set}" = set; then
2172 enableval="$enable_dependency_tracking"
2174 fi;
2175 if test "x$enable_dependency_tracking" != xno; then
2176 am_depcomp="$ac_aux_dir/depcomp"
2177 AMDEPBACKSLASH='\'
2178 fi
2181 if test "x$enable_dependency_tracking" != xno; then
2182 AMDEP_TRUE=
2183 AMDEP_FALSE='#'
2184 else
2185 AMDEP_TRUE='#'
2186 AMDEP_FALSE=
2187 fi
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 if test -n "$ac_tool_prefix"; then
2197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 if test -n "$CC"; then
2205 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 break 2
2217 fi
2218 done
2219 done
2221 fi
2222 fi
2223 CC=$ac_cv_prog_CC
2224 if test -n "$CC"; then
2225 echo "$as_me:$LINENO: result: $CC" >&5
2226 echo "${ECHO_T}$CC" >&6
2227 else
2228 echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2230 fi
2232 fi
2233 if test -z "$ac_cv_prog_CC"; then
2234 ac_ct_CC=$CC
2235 # Extract the first word of "gcc", so it can be a program name with args.
2236 set dummy gcc; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 if test -n "$ac_ct_CC"; then
2243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252 ac_cv_prog_ac_ct_CC="gcc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2255 fi
2256 done
2257 done
2259 fi
2260 fi
2261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262 if test -n "$ac_ct_CC"; then
2263 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264 echo "${ECHO_T}$ac_ct_CC" >&6
2265 else
2266 echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2268 fi
2270 CC=$ac_ct_CC
2271 else
2272 CC="$ac_cv_prog_CC"
2273 fi
2275 if test -z "$CC"; then
2276 if test -n "$ac_tool_prefix"; then
2277 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 break 2
2297 fi
2298 done
2299 done
2301 fi
2302 fi
2303 CC=$ac_cv_prog_CC
2304 if test -n "$CC"; then
2305 echo "$as_me:$LINENO: result: $CC" >&5
2306 echo "${ECHO_T}$CC" >&6
2307 else
2308 echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2310 fi
2312 fi
2313 if test -z "$ac_cv_prog_CC"; then
2314 ac_ct_CC=$CC
2315 # Extract the first word of "cc", so it can be a program name with args.
2316 set dummy cc; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_ac_ct_CC="cc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2335 fi
2336 done
2337 done
2339 fi
2340 fi
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2345 else
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 fi
2350 CC=$ac_ct_CC
2351 else
2352 CC="$ac_cv_prog_CC"
2353 fi
2355 fi
2356 if test -z "$CC"; then
2357 # Extract the first word of "cc", so it can be a program name with args.
2358 set dummy cc; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2366 else
2367 ac_prog_rejected=no
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2376 ac_prog_rejected=yes
2377 continue
2378 fi
2379 ac_cv_prog_CC="cc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383 done
2384 done
2386 if test $ac_prog_rejected = yes; then
2387 # We found a bogon in the path, so make sure we never use it.
2388 set dummy $ac_cv_prog_CC
2389 shift
2390 if test $# != 0; then
2391 # We chose a different compiler from the bogus one.
2392 # However, it has the same basename, so the bogon will be chosen
2393 # first if we set CC to just the basename; use the full file name.
2394 shift
2395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2396 fi
2397 fi
2398 fi
2399 fi
2400 CC=$ac_cv_prog_CC
2401 if test -n "$CC"; then
2402 echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6
2404 else
2405 echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2407 fi
2409 fi
2410 if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
2412 for ac_prog in cl
2413 do
2414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416 echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435 done
2436 done
2438 fi
2439 fi
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442 echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6
2444 else
2445 echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6
2447 fi
2449 test -n "$CC" && break
2450 done
2451 fi
2452 if test -z "$CC"; then
2453 ac_ct_CC=$CC
2454 for ac_prog in cl
2455 do
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463 if test -n "$ac_ct_CC"; then
2464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_ac_ct_CC="$ac_prog"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477 done
2478 done
2480 fi
2481 fi
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 echo "${ECHO_T}$ac_ct_CC" >&6
2486 else
2487 echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2489 fi
2491 test -n "$ac_ct_CC" && break
2492 done
2494 CC=$ac_ct_CC
2495 fi
2497 fi
2500 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: no acceptable C compiler found in \$PATH
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2506 # Provide some information about the compiler.
2507 echo "$as_me:$LINENO:" \
2508 "checking for C compiler version" >&5
2509 ac_compiler=`set X $ac_compile; echo $2`
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2511 (eval $ac_compiler --version </dev/null >&5) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2516 (eval $ac_compiler -v </dev/null >&5) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2521 (eval $ac_compiler -V </dev/null >&5) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2526 cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h. */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2533 int
2534 main ()
2535 {
2537 ;
2538 return 0;
2539 }
2540 _ACEOF
2541 ac_clean_files_save=$ac_clean_files
2542 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2543 # Try to create an executable without -o first, disregard a.out.
2544 # It will help us diagnose broken compilers, and finding out an intuition
2545 # of exeext.
2546 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2547 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2548 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2549 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2550 (eval $ac_link_default) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 # Find the output, starting from the most likely. This scheme is
2555 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2556 # resort.
2558 # Be careful to initialize this variable, since it used to be cached.
2559 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2560 ac_cv_exeext=
2561 # b.out is created by i960 compilers.
2562 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2563 do
2564 test -f "$ac_file" || continue
2565 case $ac_file in
2566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2567 ;;
2568 conftest.$ac_ext )
2569 # This is the source file.
2570 ;;
2571 [ab].out )
2572 # We found the default executable, but exeext='' is most
2573 # certainly right.
2574 break;;
2575 *.* )
2576 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2577 # FIXME: I believe we export ac_cv_exeext for Libtool,
2578 # but it would be cool to find out if it's true. Does anybody
2579 # maintain Libtool? --akim.
2580 export ac_cv_exeext
2581 break;;
2582 * )
2583 break;;
2584 esac
2585 done
2586 else
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2590 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: C compiler cannot create executables
2593 See \`config.log' for more details." >&2;}
2594 { (exit 77); exit 77; }; }
2595 fi
2597 ac_exeext=$ac_cv_exeext
2598 echo "$as_me:$LINENO: result: $ac_file" >&5
2599 echo "${ECHO_T}$ac_file" >&6
2601 # Check the compiler produces executables we can run. If not, either
2602 # the compiler is broken, or we cross compile.
2603 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2604 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2605 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2606 # If not cross compiling, check that we can run a simple program.
2607 if test "$cross_compiling" != yes; then
2608 if { ac_try='./$ac_file'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 cross_compiling=no
2615 else
2616 if test "$cross_compiling" = maybe; then
2617 cross_compiling=yes
2618 else
2619 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2620 If you meant to cross compile, use \`--host'.
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot run C compiled programs.
2623 If you meant to cross compile, use \`--host'.
2624 See \`config.log' for more details." >&2;}
2625 { (exit 1); exit 1; }; }
2626 fi
2627 fi
2628 fi
2629 echo "$as_me:$LINENO: result: yes" >&5
2630 echo "${ECHO_T}yes" >&6
2632 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2633 ac_clean_files=$ac_clean_files_save
2634 # Check the compiler produces executables we can run. If not, either
2635 # the compiler is broken, or we cross compile.
2636 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2637 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2638 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2639 echo "${ECHO_T}$cross_compiling" >&6
2641 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2642 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2644 (eval $ac_link) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; then
2648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2649 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2650 # work properly (i.e., refer to `conftest.exe'), while it won't with
2651 # `rm'.
2652 for ac_file in conftest.exe conftest conftest.*; do
2653 test -f "$ac_file" || continue
2654 case $ac_file in
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2657 export ac_cv_exeext
2658 break;;
2659 * ) break;;
2660 esac
2661 done
2662 else
2663 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2668 fi
2670 rm -f conftest$ac_cv_exeext
2671 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2672 echo "${ECHO_T}$ac_cv_exeext" >&6
2674 rm -f conftest.$ac_ext
2675 EXEEXT=$ac_cv_exeext
2676 ac_exeext=$EXEEXT
2677 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2678 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2679 if test "${ac_cv_objext+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2689 int
2690 main ()
2691 {
2693 ;
2694 return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.o conftest.obj
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; then
2703 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2704 case $ac_file in
2705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2706 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2707 break;;
2708 esac
2709 done
2710 else
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2719 fi
2721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2722 fi
2723 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2724 echo "${ECHO_T}$ac_cv_objext" >&6
2725 OBJEXT=$ac_cv_objext
2726 ac_objext=$OBJEXT
2727 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2739 int
2740 main ()
2741 {
2742 #ifndef __GNUC__
2743 choke me
2744 #endif
2746 ;
2747 return 0;
2748 }
2749 _ACEOF
2750 rm -f conftest.$ac_objext
2751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752 (eval $ac_compile) 2>conftest.er1
2753 ac_status=$?
2754 grep -v '^ *+' conftest.er1 >conftest.err
2755 rm -f conftest.er1
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -z "$ac_c_werror_flag"
2760 || test ! -s conftest.err'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2772 ac_compiler_gnu=yes
2773 else
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2777 ac_compiler_gnu=no
2778 fi
2779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2782 fi
2783 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2784 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2785 GCC=`test $ac_compiler_gnu = yes && echo yes`
2786 ac_test_CFLAGS=${CFLAGS+set}
2787 ac_save_CFLAGS=$CFLAGS
2788 CFLAGS="-g"
2789 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2790 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2791 if test "${ac_cv_prog_cc_g+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h. */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2801 int
2802 main ()
2803 {
2805 ;
2806 return 0;
2807 }
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 ac_cv_prog_cc_g=yes
2832 else
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 ac_cv_prog_cc_g=no
2837 fi
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839 fi
2840 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2841 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2842 if test "$ac_test_CFLAGS" = set; then
2843 CFLAGS=$ac_save_CFLAGS
2844 elif test $ac_cv_prog_cc_g = yes; then
2845 if test "$GCC" = yes; then
2846 CFLAGS="-g -O2"
2847 else
2848 CFLAGS="-g"
2849 fi
2850 else
2851 if test "$GCC" = yes; then
2852 CFLAGS="-O2"
2853 else
2854 CFLAGS=
2855 fi
2856 fi
2857 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2858 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 ac_cv_prog_cc_stdc=no
2863 ac_save_CC=$CC
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h. */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2870 #include <stdarg.h>
2871 #include <stdio.h>
2872 #include <sys/types.h>
2873 #include <sys/stat.h>
2874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2875 struct buf { int x; };
2876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2877 static char *e (p, i)
2878 char **p;
2879 int i;
2880 {
2881 return p[i];
2882 }
2883 static char *f (char * (*g) (char **, int), char **p, ...)
2884 {
2885 char *s;
2886 va_list v;
2887 va_start (v,p);
2888 s = g (p, va_arg (v,int));
2889 va_end (v);
2890 return s;
2891 }
2893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2894 function prototypes and stuff, but not '\xHH' hex character constants.
2895 These don't provoke an error unfortunately, instead are silently treated
2896 as 'x'. The following induces an error, until -std1 is added to get
2897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2898 array size at least. It's necessary to write '\x00'==0 to get something
2899 that's true only with -std1. */
2900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902 int test (int i, double x);
2903 struct s1 {int (*f) (int a);};
2904 struct s2 {int (*f) (double a);};
2905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2906 int argc;
2907 char **argv;
2908 int
2909 main ()
2910 {
2911 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2912 ;
2913 return 0;
2914 }
2915 _ACEOF
2916 # Don't try gcc -ansi; that turns off useful extensions and
2917 # breaks some systems' header files.
2918 # AIX -qlanglvl=ansi
2919 # Ultrix and OSF/1 -std1
2920 # HP-UX 10.20 and later -Ae
2921 # HP-UX older versions -Aa -D_HPUX_SOURCE
2922 # SVR4 -Xc -D__EXTENSIONS__
2923 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2924 do
2925 CC="$ac_save_CC $ac_arg"
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_prog_cc_stdc=$ac_arg
2949 break
2950 else
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2954 fi
2955 rm -f conftest.err conftest.$ac_objext
2956 done
2957 rm -f conftest.$ac_ext conftest.$ac_objext
2958 CC=$ac_save_CC
2960 fi
2962 case "x$ac_cv_prog_cc_stdc" in
2963 x|xno)
2964 echo "$as_me:$LINENO: result: none needed" >&5
2965 echo "${ECHO_T}none needed" >&6 ;;
2966 *)
2967 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2968 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2969 CC="$CC $ac_cv_prog_cc_stdc" ;;
2970 esac
2972 # Some people use a C++ compiler to compile C. Since we use `exit',
2973 # in C++ we need to declare it. In case someone uses the same compiler
2974 # for both compiling C and C++ we need to have the C++ compiler decide
2975 # the declaration of exit, since it's the most demanding environment.
2976 cat >conftest.$ac_ext <<_ACEOF
2977 #ifndef __cplusplus
2978 choke me
2979 #endif
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983 (eval $ac_compile) 2>conftest.er1
2984 ac_status=$?
2985 grep -v '^ *+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -z "$ac_c_werror_flag"
2991 || test ! -s conftest.err'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 (eval $ac_try) 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 for ac_declaration in \
3004 '' \
3005 'extern "C" void std::exit (int) throw (); using std::exit;' \
3006 'extern "C" void std::exit (int); using std::exit;' \
3007 'extern "C" void exit (int) throw ();' \
3008 'extern "C" void exit (int);' \
3009 'void exit (int);'
3010 do
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 $ac_declaration
3018 #include <stdlib.h>
3019 int
3020 main ()
3021 {
3022 exit (42);
3023 ;
3024 return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>conftest.er1
3030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_c_werror_flag"
3037 || test ! -s conftest.err'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 (eval $ac_try) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 (eval $ac_try) 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3049 :
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 continue
3055 fi
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063 $ac_declaration
3064 int
3065 main ()
3066 {
3067 exit (42);
3068 ;
3069 return 0;
3070 }
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3074 (eval $ac_compile) 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_c_werror_flag"
3082 || test ! -s conftest.err'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 (eval $ac_try) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 break
3095 else
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 fi
3100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3101 done
3102 rm -f conftest*
3103 if test -n "$ac_declaration"; then
3104 echo '#ifdef __cplusplus' >>confdefs.h
3105 echo $ac_declaration >>confdefs.h
3106 echo '#endif' >>confdefs.h
3107 fi
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 fi
3114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121 depcc="$CC" am_compiler_list=
3123 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3124 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3125 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3129 # We make a subdir and do the tests there. Otherwise we can end up
3130 # making bogus files that we don't know about and never remove. For
3131 # instance it was reported that on HP-UX the gcc test will end up
3132 # making a dummy file named `D' -- because `-MD' means `put the output
3133 # in D'.
3134 mkdir conftest.dir
3135 # Copy depcomp to subdir because otherwise we won't find it if we're
3136 # using a relative directory.
3137 cp "$am_depcomp" conftest.dir
3138 cd conftest.dir
3139 # We will build objects and dependencies in a subdirectory because
3140 # it helps to detect inapplicable dependency modes. For instance
3141 # both Tru64's cc and ICC support -MD to output dependencies as a
3142 # side effect of compilation, but ICC will put the dependencies in
3143 # the current directory while Tru64 will put them in the object
3144 # directory.
3145 mkdir sub
3147 am_cv_CC_dependencies_compiler_type=none
3148 if test "$am_compiler_list" = ""; then
3149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3150 fi
3151 for depmode in $am_compiler_list; do
3152 # Setup a source with many dependencies, because some compilers
3153 # like to wrap large dependency lists on column 80 (with \), and
3154 # we should not choose a depcomp mode which is confused by this.
3155 #
3156 # We need to recreate these files for each test, as the compiler may
3157 # overwrite some of them when testing with obscure command lines.
3158 # This happens at least with the AIX C compiler.
3159 : > sub/conftest.c
3160 for i in 1 2 3 4 5 6; do
3161 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3162 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3163 # Solaris 8's {/usr,}/bin/sh.
3164 touch sub/conftst$i.h
3165 done
3166 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3168 case $depmode in
3169 nosideeffect)
3170 # after this tag, mechanisms are not by side-effect, so they'll
3171 # only be used when explicitly requested
3172 if test "x$enable_dependency_tracking" = xyes; then
3173 continue
3174 else
3175 break
3176 fi
3177 ;;
3178 none) break ;;
3179 esac
3180 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3181 # mode. It turns out that the SunPro C++ compiler does not properly
3182 # handle `-M -o', and we need to detect this.
3183 if depmode=$depmode \
3184 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3185 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3186 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3187 >/dev/null 2>conftest.err &&
3188 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3189 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3190 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3191 # icc doesn't choke on unknown options, it will just issue warnings
3192 # or remarks (even with -Werror). So we grep stderr for any message
3193 # that says an option was ignored or not supported.
3194 # When given -MP, icc 7.0 and 7.1 complain thusly:
3195 # icc: Command line warning: ignoring option '-M'; no argument required
3196 # The diagnosis changed in icc 8.0:
3197 # icc: Command line remark: option '-MP' not supported
3198 if (grep 'ignoring option' conftest.err ||
3199 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3200 am_cv_CC_dependencies_compiler_type=$depmode
3201 break
3202 fi
3203 fi
3204 done
3206 cd ..
3207 rm -rf conftest.dir
3208 else
3209 am_cv_CC_dependencies_compiler_type=none
3210 fi
3212 fi
3213 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3214 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3215 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3219 if
3220 test "x$enable_dependency_tracking" != xno \
3221 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3222 am__fastdepCC_TRUE=
3223 am__fastdepCC_FALSE='#'
3224 else
3225 am__fastdepCC_TRUE='#'
3226 am__fastdepCC_FALSE=
3227 fi
3230 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3231 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3232 if test "${lt_cv_path_SED+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235 # Loop through the user's path and test for sed and gsed.
3236 # Then use that list of sed's as ones to test for truncation.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for lt_ac_prog in sed gsed; do
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3245 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3246 fi
3247 done
3248 done
3249 done
3250 lt_ac_max=0
3251 lt_ac_count=0
3252 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3253 # along with /bin/sed that truncates output.
3254 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3255 test ! -f $lt_ac_sed && continue
3256 cat /dev/null > conftest.in
3257 lt_ac_count=0
3258 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3259 # Check for GNU sed and select it if it is found.
3260 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3261 lt_cv_path_SED=$lt_ac_sed
3262 break
3263 fi
3264 while true; do
3265 cat conftest.in conftest.in >conftest.tmp
3266 mv conftest.tmp conftest.in
3267 cp conftest.in conftest.nl
3268 echo >>conftest.nl
3269 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3270 cmp -s conftest.out conftest.nl || break
3271 # 10000 chars as input seems more than enough
3272 test $lt_ac_count -gt 10 && break
3273 lt_ac_count=`expr $lt_ac_count + 1`
3274 if test $lt_ac_count -gt $lt_ac_max; then
3275 lt_ac_max=$lt_ac_count
3276 lt_cv_path_SED=$lt_ac_sed
3277 fi
3278 done
3279 done
3281 fi
3283 SED=$lt_cv_path_SED
3284 echo "$as_me:$LINENO: result: $SED" >&5
3285 echo "${ECHO_T}$SED" >&6
3287 echo "$as_me:$LINENO: checking for egrep" >&5
3288 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3289 if test "${ac_cv_prog_egrep+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3293 then ac_cv_prog_egrep='grep -E'
3294 else ac_cv_prog_egrep='egrep'
3295 fi
3296 fi
3297 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3298 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3299 EGREP=$ac_cv_prog_egrep
3303 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3304 if test "${with_gnu_ld+set}" = set; then
3305 withval="$with_gnu_ld"
3306 test "$withval" = no || with_gnu_ld=yes
3307 else
3308 with_gnu_ld=no
3309 fi;
3310 ac_prog=ld
3311 if test "$GCC" = yes; then
3312 # Check if gcc -print-prog-name=ld gives a path.
3313 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3314 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3315 case $host in
3316 *-*-mingw*)
3317 # gcc leaves a trailing carriage return which upsets mingw
3318 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3319 *)
3320 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3321 esac
3322 case $ac_prog in
3323 # Accept absolute paths.
3324 [\\/]* | ?:[\\/]*)
3325 re_direlt='/[^/][^/]*/\.\./'
3326 # Canonicalize the pathname of ld
3327 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3328 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3329 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3330 done
3331 test -z "$LD" && LD="$ac_prog"
3332 ;;
3333 "")
3334 # If it fails, then pretend we aren't using GCC.
3335 ac_prog=ld
3336 ;;
3337 *)
3338 # If it is relative, then search for the first ld in PATH.
3339 with_gnu_ld=unknown
3340 ;;
3341 esac
3342 elif test "$with_gnu_ld" = yes; then
3343 echo "$as_me:$LINENO: checking for GNU ld" >&5
3344 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3345 else
3346 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3347 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3348 fi
3349 if test "${lt_cv_path_LD+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352 if test -z "$LD"; then
3353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3354 for ac_dir in $PATH; do
3355 IFS="$lt_save_ifs"
3356 test -z "$ac_dir" && ac_dir=.
3357 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3358 lt_cv_path_LD="$ac_dir/$ac_prog"
3359 # Check to see if the program is GNU ld. I'd rather use --version,
3360 # but apparently some variants of GNU ld only accept -v.
3361 # Break only if it was the GNU/non-GNU ld that we prefer.
3362 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3363 *GNU* | *'with BFD'*)
3364 test "$with_gnu_ld" != no && break
3365 ;;
3366 *)
3367 test "$with_gnu_ld" != yes && break
3368 ;;
3369 esac
3370 fi
3371 done
3372 IFS="$lt_save_ifs"
3373 else
3374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3375 fi
3376 fi
3378 LD="$lt_cv_path_LD"
3379 if test -n "$LD"; then
3380 echo "$as_me:$LINENO: result: $LD" >&5
3381 echo "${ECHO_T}$LD" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3385 fi
3386 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3387 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3388 { (exit 1); exit 1; }; }
3389 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3390 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3395 case `$LD -v 2>&1 </dev/null` in
3396 *GNU* | *'with BFD'*)
3397 lt_cv_prog_gnu_ld=yes
3398 ;;
3399 *)
3400 lt_cv_prog_gnu_ld=no
3401 ;;
3402 esac
3403 fi
3404 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3405 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3406 with_gnu_ld=$lt_cv_prog_gnu_ld
3409 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3410 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3411 if test "${lt_cv_ld_reload_flag+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 lt_cv_ld_reload_flag='-r'
3415 fi
3416 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3417 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3418 reload_flag=$lt_cv_ld_reload_flag
3419 case $reload_flag in
3420 "" | " "*) ;;
3421 *) reload_flag=" $reload_flag" ;;
3422 esac
3423 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3424 case $host_os in
3425 darwin*)
3426 if test "$GCC" = yes; then
3427 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3428 else
3429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3430 fi
3431 ;;
3432 esac
3434 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3435 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3436 if test "${lt_cv_path_NM+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if test -n "$NM"; then
3440 # Let the user override the test.
3441 lt_cv_path_NM="$NM"
3442 else
3443 lt_nm_to_check="${ac_tool_prefix}nm"
3444 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3445 lt_nm_to_check="$lt_nm_to_check nm"
3446 fi
3447 for lt_tmp_nm in $lt_nm_to_check; do
3448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3449 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3450 IFS="$lt_save_ifs"
3451 test -z "$ac_dir" && ac_dir=.
3452 tmp_nm="$ac_dir/$lt_tmp_nm"
3453 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3454 # Check to see if the nm accepts a BSD-compat flag.
3455 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3456 # nm: unknown option "B" ignored
3457 # Tru64's nm complains that /dev/null is an invalid object file
3458 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3459 */dev/null* | *'Invalid file or object type'*)
3460 lt_cv_path_NM="$tmp_nm -B"
3461 break
3462 ;;
3463 *)
3464 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3465 */dev/null*)
3466 lt_cv_path_NM="$tmp_nm -p"
3467 break
3468 ;;
3469 *)
3470 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3471 continue # so that we can try to find one that supports BSD flags
3472 ;;
3473 esac
3474 ;;
3475 esac
3476 fi
3477 done
3478 IFS="$lt_save_ifs"
3479 done
3480 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3481 fi
3482 fi
3483 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3484 echo "${ECHO_T}$lt_cv_path_NM" >&6
3485 NM="$lt_cv_path_NM"
3487 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3489 LN_S=$as_ln_s
3490 if test "$LN_S" = "ln -s"; then
3491 echo "$as_me:$LINENO: result: yes" >&5
3492 echo "${ECHO_T}yes" >&6
3493 else
3494 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3495 echo "${ECHO_T}no, using $LN_S" >&6
3496 fi
3498 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3499 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3500 if test "${lt_cv_deplibs_check_method+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 lt_cv_file_magic_cmd='$MAGIC_CMD'
3504 lt_cv_file_magic_test_file=
3505 lt_cv_deplibs_check_method='unknown'
3506 # Need to set the preceding variable on all platforms that support
3507 # interlibrary dependencies.
3508 # 'none' -- dependencies not supported.
3509 # `unknown' -- same as none, but documents that we really don't know.
3510 # 'pass_all' -- all dependencies passed with no checks.
3511 # 'test_compile' -- check by making test program.
3512 # 'file_magic [[regex]]' -- check by looking for files in library path
3513 # which responds to the $file_magic_cmd with a given extended regex.
3514 # If you have `file' or equivalent on your system and you're not sure
3515 # whether `pass_all' will *always* work, you probably want this one.
3517 case $host_os in
3518 aix4* | aix5*)
3519 lt_cv_deplibs_check_method=pass_all
3520 ;;
3522 beos*)
3523 lt_cv_deplibs_check_method=pass_all
3524 ;;
3526 bsdi[45]*)
3527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3528 lt_cv_file_magic_cmd='/usr/bin/file -L'
3529 lt_cv_file_magic_test_file=/shlib/libc.so
3530 ;;
3532 cygwin*)
3533 # func_win32_libid is a shell function defined in ltmain.sh
3534 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3535 lt_cv_file_magic_cmd='func_win32_libid'
3536 ;;
3538 mingw* | pw32*)
3539 # Base MSYS/MinGW do not provide the 'file' command needed by
3540 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3541 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3542 lt_cv_file_magic_cmd='$OBJDUMP -f'
3543 ;;
3545 darwin* | rhapsody*)
3546 lt_cv_deplibs_check_method=pass_all
3547 ;;
3549 freebsd* | kfreebsd*-gnu | dragonfly*)
3550 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3551 case $host_cpu in
3552 i*86 )
3553 # Not sure whether the presence of OpenBSD here was a mistake.
3554 # Let's accept both of them until this is cleared up.
3555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3556 lt_cv_file_magic_cmd=/usr/bin/file
3557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3558 ;;
3559 esac
3560 else
3561 lt_cv_deplibs_check_method=pass_all
3562 fi
3563 ;;
3565 gnu*)
3566 lt_cv_deplibs_check_method=pass_all
3567 ;;
3569 hpux10.20* | hpux11*)
3570 lt_cv_file_magic_cmd=/usr/bin/file
3571 case $host_cpu in
3572 ia64*)
3573 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3574 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3575 ;;
3576 hppa*64*)
3577 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]'
3578 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3579 ;;
3580 *)
3581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3582 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3583 ;;
3584 esac
3585 ;;
3587 interix3*)
3588 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3590 ;;
3592 irix5* | irix6* | nonstopux*)
3593 case $LD in
3594 *-32|*"-32 ") libmagic=32-bit;;
3595 *-n32|*"-n32 ") libmagic=N32;;
3596 *-64|*"-64 ") libmagic=64-bit;;
3597 *) libmagic=never-match;;
3598 esac
3599 lt_cv_deplibs_check_method=pass_all
3600 ;;
3602 # This must be Linux ELF.
3603 linux*)
3604 lt_cv_deplibs_check_method=pass_all
3605 ;;
3607 netbsd*)
3608 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3610 else
3611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3612 fi
3613 ;;
3615 newos6*)
3616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3617 lt_cv_file_magic_cmd=/usr/bin/file
3618 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3619 ;;
3621 nto-qnx*)
3622 lt_cv_deplibs_check_method=unknown
3623 ;;
3625 openbsd*)
3626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3628 else
3629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3630 fi
3631 ;;
3633 osf3* | osf4* | osf5*)
3634 lt_cv_deplibs_check_method=pass_all
3635 ;;
3637 solaris*)
3638 lt_cv_deplibs_check_method=pass_all
3639 ;;
3641 sysv4 | sysv4.3*)
3642 case $host_vendor in
3643 motorola)
3644 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]'
3645 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3646 ;;
3647 ncr)
3648 lt_cv_deplibs_check_method=pass_all
3649 ;;
3650 sequent)
3651 lt_cv_file_magic_cmd='/bin/file'
3652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3653 ;;
3654 sni)
3655 lt_cv_file_magic_cmd='/bin/file'
3656 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3657 lt_cv_file_magic_test_file=/lib/libc.so
3658 ;;
3659 siemens)
3660 lt_cv_deplibs_check_method=pass_all
3661 ;;
3662 pc)
3663 lt_cv_deplibs_check_method=pass_all
3664 ;;
3665 esac
3666 ;;
3668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3669 lt_cv_deplibs_check_method=pass_all
3670 ;;
3671 esac
3673 fi
3674 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3675 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3676 file_magic_cmd=$lt_cv_file_magic_cmd
3677 deplibs_check_method=$lt_cv_deplibs_check_method
3678 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3683 # If no C compiler was specified, use CC.
3684 LTCC=${LTCC-"$CC"}
3686 # If no C compiler flags were specified, use CFLAGS.
3687 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3689 # Allow CC to be a program name with arguments.
3690 compiler=$CC
3693 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3694 if test "${enable_libtool_lock+set}" = set; then
3695 enableval="$enable_libtool_lock"
3697 fi;
3698 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3700 # Some flags need to be propagated to the compiler or linker for good
3701 # libtool support.
3702 case $host in
3703 ia64-*-hpux*)
3704 # Find out which ABI we are using.
3705 echo 'int i;' > conftest.$ac_ext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; then
3711 case `/usr/bin/file conftest.$ac_objext` in
3712 *ELF-32*)
3713 HPUX_IA64_MODE="32"
3714 ;;
3715 *ELF-64*)
3716 HPUX_IA64_MODE="64"
3717 ;;
3718 esac
3719 fi
3720 rm -rf conftest*
3721 ;;
3722 *-*-irix6*)
3723 # Find out which ABI we are using.
3724 echo '#line 3724 "configure"' > conftest.$ac_ext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726 (eval $ac_compile) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; then
3730 if test "$lt_cv_prog_gnu_ld" = yes; then
3731 case `/usr/bin/file conftest.$ac_objext` in
3732 *32-bit*)
3733 LD="${LD-ld} -melf32bsmip"
3734 ;;
3735 *N32*)
3736 LD="${LD-ld} -melf32bmipn32"
3737 ;;
3738 *64-bit*)
3739 LD="${LD-ld} -melf64bmip"
3740 ;;
3741 esac
3742 else
3743 case `/usr/bin/file conftest.$ac_objext` in
3744 *32-bit*)
3745 LD="${LD-ld} -32"
3746 ;;
3747 *N32*)
3748 LD="${LD-ld} -n32"
3749 ;;
3750 *64-bit*)
3751 LD="${LD-ld} -64"
3752 ;;
3753 esac
3754 fi
3755 fi
3756 rm -rf conftest*
3757 ;;
3759 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3760 # Find out which ABI we are using.
3761 echo 'int i;' > conftest.$ac_ext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3763 (eval $ac_compile) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; then
3767 case `/usr/bin/file conftest.o` in
3768 *32-bit*)
3769 case $host in
3770 x86_64-*linux*)
3771 LD="${LD-ld} -m elf_i386"
3772 ;;
3773 ppc64-*linux*|powerpc64-*linux*)
3774 LD="${LD-ld} -m elf32ppclinux"
3775 ;;
3776 s390x-*linux*)
3777 LD="${LD-ld} -m elf_s390"
3778 ;;
3779 sparc64-*linux*)
3780 LD="${LD-ld} -m elf32_sparc"
3781 ;;
3782 esac
3783 ;;
3784 *64-bit*)
3785 case $host in
3786 x86_64-*linux*)
3787 LD="${LD-ld} -m elf_x86_64"
3788 ;;
3789 ppc*-*linux*|powerpc*-*linux*)
3790 LD="${LD-ld} -m elf64ppc"
3791 ;;
3792 s390*-*linux*)
3793 LD="${LD-ld} -m elf64_s390"
3794 ;;
3795 sparc*-*linux*)
3796 LD="${LD-ld} -m elf64_sparc"
3797 ;;
3798 esac
3799 ;;
3800 esac
3801 fi
3802 rm -rf conftest*
3803 ;;
3805 *-*-sco3.2v5*)
3806 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3807 SAVE_CFLAGS="$CFLAGS"
3808 CFLAGS="$CFLAGS -belf"
3809 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3810 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3811 if test "${lt_cv_cc_needs_belf+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3827 int
3828 main ()
3829 {
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest.$ac_objext conftest$ac_exeext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3837 (eval $ac_link) 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_c_werror_flag"
3845 || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest$ac_exeext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 lt_cv_cc_needs_belf=yes
3858 else
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 lt_cv_cc_needs_belf=no
3863 fi
3864 rm -f conftest.err conftest.$ac_objext \
3865 conftest$ac_exeext conftest.$ac_ext
3866 ac_ext=c
3867 ac_cpp='$CPP $CPPFLAGS'
3868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872 fi
3873 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3874 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3875 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3876 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3877 CFLAGS="$SAVE_CFLAGS"
3878 fi
3879 ;;
3880 sparc*-*solaris*)
3881 # Find out which ABI we are using.
3882 echo 'int i;' > conftest.$ac_ext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; then
3888 case `/usr/bin/file conftest.o` in
3889 *64-bit*)
3890 case $lt_cv_prog_gnu_ld in
3891 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3892 *) LD="${LD-ld} -64" ;;
3893 esac
3894 ;;
3895 esac
3896 fi
3897 rm -rf conftest*
3898 ;;
3901 esac
3903 need_locks="$enable_libtool_lock"
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3912 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3913 # On Suns, sometimes $CPP names a directory.
3914 if test -n "$CPP" && test -d "$CPP"; then
3915 CPP=
3916 fi
3917 if test -z "$CPP"; then
3918 if test "${ac_cv_prog_CPP+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 # Double quotes because CPP needs to be expanded
3922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3923 do
3924 ac_preproc_ok=false
3925 for ac_c_preproc_warn_flag in '' yes
3926 do
3927 # Use a header file that comes with gcc, so configuring glibc
3928 # with a fresh cross-compiler works.
3929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3930 # <limits.h> exists even on freestanding compilers.
3931 # On the NeXT, cc -E runs the code through the compiler's parser,
3932 # not just through cpp. "Syntax error" is here to catch this case.
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 #ifdef __STDC__
3940 # include <limits.h>
3941 #else
3942 # include <assert.h>
3943 #endif
3944 Syntax error
3945 _ACEOF
3946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } >/dev/null; then
3954 if test -s conftest.err; then
3955 ac_cpp_err=$ac_c_preproc_warn_flag
3956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3957 else
3958 ac_cpp_err=
3959 fi
3960 else
3961 ac_cpp_err=yes
3962 fi
3963 if test -z "$ac_cpp_err"; then
3964 :
3965 else
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 # Broken: fails on valid input.
3970 continue
3971 fi
3972 rm -f conftest.err conftest.$ac_ext
3974 # OK, works on sane cases. Now check whether non-existent headers
3975 # can be detected and how.
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #include <ac_nonexistent.h>
3983 _ACEOF
3984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } >/dev/null; then
3992 if test -s conftest.err; then
3993 ac_cpp_err=$ac_c_preproc_warn_flag
3994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3995 else
3996 ac_cpp_err=
3997 fi
3998 else
3999 ac_cpp_err=yes
4000 fi
4001 if test -z "$ac_cpp_err"; then
4002 # Broken: success on invalid input.
4003 continue
4004 else
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 # Passes both tests.
4009 ac_preproc_ok=:
4010 break
4011 fi
4012 rm -f conftest.err conftest.$ac_ext
4014 done
4015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4016 rm -f conftest.err conftest.$ac_ext
4017 if $ac_preproc_ok; then
4018 break
4019 fi
4021 done
4022 ac_cv_prog_CPP=$CPP
4024 fi
4025 CPP=$ac_cv_prog_CPP
4026 else
4027 ac_cv_prog_CPP=$CPP
4028 fi
4029 echo "$as_me:$LINENO: result: $CPP" >&5
4030 echo "${ECHO_T}$CPP" >&6
4031 ac_preproc_ok=false
4032 for ac_c_preproc_warn_flag in '' yes
4033 do
4034 # Use a header file that comes with gcc, so configuring glibc
4035 # with a fresh cross-compiler works.
4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037 # <limits.h> exists even on freestanding compilers.
4038 # On the NeXT, cc -E runs the code through the compiler's parser,
4039 # not just through cpp. "Syntax error" is here to catch this case.
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 #ifdef __STDC__
4047 # include <limits.h>
4048 #else
4049 # include <assert.h>
4050 #endif
4051 Syntax error
4052 _ACEOF
4053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } >/dev/null; then
4061 if test -s conftest.err; then
4062 ac_cpp_err=$ac_c_preproc_warn_flag
4063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4064 else
4065 ac_cpp_err=
4066 fi
4067 else
4068 ac_cpp_err=yes
4069 fi
4070 if test -z "$ac_cpp_err"; then
4071 :
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 # Broken: fails on valid input.
4077 continue
4078 fi
4079 rm -f conftest.err conftest.$ac_ext
4081 # OK, works on sane cases. Now check whether non-existent headers
4082 # can be detected and how.
4083 cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h. */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #include <ac_nonexistent.h>
4090 _ACEOF
4091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } >/dev/null; then
4099 if test -s conftest.err; then
4100 ac_cpp_err=$ac_c_preproc_warn_flag
4101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4102 else
4103 ac_cpp_err=
4104 fi
4105 else
4106 ac_cpp_err=yes
4107 fi
4108 if test -z "$ac_cpp_err"; then
4109 # Broken: success on invalid input.
4110 continue
4111 else
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 # Passes both tests.
4116 ac_preproc_ok=:
4117 break
4118 fi
4119 rm -f conftest.err conftest.$ac_ext
4121 done
4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123 rm -f conftest.err conftest.$ac_ext
4124 if $ac_preproc_ok; then
4125 :
4126 else
4127 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4128 See \`config.log' for more details." >&5
4129 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4130 See \`config.log' for more details." >&2;}
4131 { (exit 1); exit 1; }; }
4132 fi
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4142 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4143 if test "${ac_cv_header_stdc+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h. */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 #include <stdlib.h>
4153 #include <stdarg.h>
4154 #include <string.h>
4155 #include <float.h>
4157 int
4158 main ()
4159 {
4161 ;
4162 return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167 (eval $ac_compile) 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag"
4175 || test ! -s conftest.err'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 (eval $ac_try) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 ac_cv_header_stdc=yes
4188 else
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 ac_cv_header_stdc=no
4193 fi
4194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4196 if test $ac_cv_header_stdc = yes; then
4197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #include <string.h>
4206 _ACEOF
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208 $EGREP "memchr" >/dev/null 2>&1; then
4209 :
4210 else
4211 ac_cv_header_stdc=no
4212 fi
4213 rm -f conftest*
4215 fi
4217 if test $ac_cv_header_stdc = yes; then
4218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h. */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 #include <stdlib.h>
4227 _ACEOF
4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229 $EGREP "free" >/dev/null 2>&1; then
4230 :
4231 else
4232 ac_cv_header_stdc=no
4233 fi
4234 rm -f conftest*
4236 fi
4238 if test $ac_cv_header_stdc = yes; then
4239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4240 if test "$cross_compiling" = yes; then
4241 :
4242 else
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 #include <ctype.h>
4250 #if ((' ' & 0x0FF) == 0x020)
4251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4253 #else
4254 # define ISLOWER(c) \
4255 (('a' <= (c) && (c) <= 'i') \
4256 || ('j' <= (c) && (c) <= 'r') \
4257 || ('s' <= (c) && (c) <= 'z'))
4258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4259 #endif
4261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4262 int
4263 main ()
4264 {
4265 int i;
4266 for (i = 0; i < 256; i++)
4267 if (XOR (islower (i), ISLOWER (i))
4268 || toupper (i) != TOUPPER (i))
4269 exit(2);
4270 exit (0);
4271 }
4272 _ACEOF
4273 rm -f conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275 (eval $ac_link) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 :
4285 else
4286 echo "$as_me: program exited with status $ac_status" >&5
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 ( exit $ac_status )
4291 ac_cv_header_stdc=no
4292 fi
4293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4294 fi
4295 fi
4296 fi
4297 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4298 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4299 if test $ac_cv_header_stdc = yes; then
4301 cat >>confdefs.h <<\_ACEOF
4302 #define STDC_HEADERS 1
4303 _ACEOF
4305 fi
4307 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4317 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4318 inttypes.h stdint.h unistd.h
4319 do
4320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4321 echo "$as_me:$LINENO: checking for $ac_header" >&5
4322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 $ac_includes_default
4334 #include <$ac_header>
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 eval "$as_ac_Header=yes"
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 eval "$as_ac_Header=no"
4364 fi
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 fi
4367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4370 cat >>confdefs.h <<_ACEOF
4371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4372 _ACEOF
4374 fi
4376 done
4380 for ac_header in dlfcn.h
4381 do
4382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4384 echo "$as_me:$LINENO: checking for $ac_header" >&5
4385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 fi
4389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4391 else
4392 # Is the header compilable?
4393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h. */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 $ac_includes_default
4402 #include <$ac_header>
4403 _ACEOF
4404 rm -f conftest.$ac_objext
4405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag"
4414 || test ! -s conftest.err'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; } &&
4420 { ac_try='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_header_compiler=yes
4427 else
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 ac_header_compiler=no
4432 fi
4433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4435 echo "${ECHO_T}$ac_header_compiler" >&6
4437 # Is the header present?
4438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 #include <$ac_header>
4447 _ACEOF
4448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4450 ac_status=$?
4451 grep -v '^ *+' conftest.er1 >conftest.err
4452 rm -f conftest.er1
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } >/dev/null; then
4456 if test -s conftest.err; then
4457 ac_cpp_err=$ac_c_preproc_warn_flag
4458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4459 else
4460 ac_cpp_err=
4461 fi
4462 else
4463 ac_cpp_err=yes
4464 fi
4465 if test -z "$ac_cpp_err"; then
4466 ac_header_preproc=yes
4467 else
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 ac_header_preproc=no
4472 fi
4473 rm -f conftest.err conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4475 echo "${ECHO_T}$ac_header_preproc" >&6
4477 # So? What about this header?
4478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4479 yes:no: )
4480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4484 ac_header_preproc=yes
4485 ;;
4486 no:yes:* )
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4499 (
4500 cat <<\_ASBOX
4501 ## --------------------------------- ##
4502 ## Report this to the TI IPC lists. ##
4503 ## --------------------------------- ##
4504 _ASBOX
4505 ) |
4506 sed "s/^/$as_me: WARNING: /" >&2
4507 ;;
4508 esac
4509 echo "$as_me:$LINENO: checking for $ac_header" >&5
4510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 eval "$as_ac_Header=\$ac_header_preproc"
4515 fi
4516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4519 fi
4520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4521 cat >>confdefs.h <<_ACEOF
4522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4523 _ACEOF
4525 fi
4527 done
4529 ac_ext=cc
4530 ac_cpp='$CXXCPP $CPPFLAGS'
4531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4534 if test -n "$ac_tool_prefix"; then
4535 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4536 do
4537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4539 echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541 if test "${ac_cv_prog_CXX+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 if test -n "$CXX"; then
4545 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4557 fi
4558 done
4559 done
4561 fi
4562 fi
4563 CXX=$ac_cv_prog_CXX
4564 if test -n "$CXX"; then
4565 echo "$as_me:$LINENO: result: $CXX" >&5
4566 echo "${ECHO_T}$CXX" >&6
4567 else
4568 echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6
4570 fi
4572 test -n "$CXX" && break
4573 done
4574 fi
4575 if test -z "$CXX"; then
4576 ac_ct_CXX=$CXX
4577 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4578 do
4579 # Extract the first word of "$ac_prog", so it can be a program name with args.
4580 set dummy $ac_prog; ac_word=$2
4581 echo "$as_me:$LINENO: checking for $ac_word" >&5
4582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4583 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586 if test -n "$ac_ct_CXX"; then
4587 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_prog_ac_ct_CXX="$ac_prog"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4599 fi
4600 done
4601 done
4603 fi
4604 fi
4605 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4606 if test -n "$ac_ct_CXX"; then
4607 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4608 echo "${ECHO_T}$ac_ct_CXX" >&6
4609 else
4610 echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4612 fi
4614 test -n "$ac_ct_CXX" && break
4615 done
4616 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4618 CXX=$ac_ct_CXX
4619 fi
4622 # Provide some information about the compiler.
4623 echo "$as_me:$LINENO:" \
4624 "checking for C++ compiler version" >&5
4625 ac_compiler=`set X $ac_compile; echo $2`
4626 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4627 (eval $ac_compiler --version </dev/null >&5) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }
4631 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4632 (eval $ac_compiler -v </dev/null >&5) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }
4636 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4637 (eval $ac_compiler -V </dev/null >&5) 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }
4642 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4643 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4654 int
4655 main ()
4656 {
4657 #ifndef __GNUC__
4658 choke me
4659 #endif
4661 ;
4662 return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_cxx_werror_flag"
4675 || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest.$ac_objext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 ac_compiler_gnu=yes
4688 else
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 ac_compiler_gnu=no
4693 fi
4694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4697 fi
4698 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4699 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4700 GXX=`test $ac_compiler_gnu = yes && echo yes`
4701 ac_test_CXXFLAGS=${CXXFLAGS+set}
4702 ac_save_CXXFLAGS=$CXXFLAGS
4703 CXXFLAGS="-g"
4704 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4705 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4706 if test "${ac_cv_prog_cxx_g+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4716 int
4717 main ()
4718 {
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 rm -f conftest.$ac_objext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726 (eval $ac_compile) 2>conftest.er1
4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try='test -z "$ac_cxx_werror_flag"
4734 || test ! -s conftest.err'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 (eval $ac_try) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try='test -s conftest.$ac_objext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 ac_cv_prog_cxx_g=yes
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 ac_cv_prog_cxx_g=no
4752 fi
4753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754 fi
4755 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4756 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4757 if test "$ac_test_CXXFLAGS" = set; then
4758 CXXFLAGS=$ac_save_CXXFLAGS
4759 elif test $ac_cv_prog_cxx_g = yes; then
4760 if test "$GXX" = yes; then
4761 CXXFLAGS="-g -O2"
4762 else
4763 CXXFLAGS="-g"
4764 fi
4765 else
4766 if test "$GXX" = yes; then
4767 CXXFLAGS="-O2"
4768 else
4769 CXXFLAGS=
4770 fi
4771 fi
4772 for ac_declaration in \
4773 '' \
4774 'extern "C" void std::exit (int) throw (); using std::exit;' \
4775 'extern "C" void std::exit (int); using std::exit;' \
4776 'extern "C" void exit (int) throw ();' \
4777 'extern "C" void exit (int);' \
4778 'void exit (int);'
4779 do
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 $ac_declaration
4787 #include <stdlib.h>
4788 int
4789 main ()
4790 {
4791 exit (42);
4792 ;
4793 return 0;
4794 }
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_cxx_werror_flag"
4806 || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 :
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4823 continue
4824 fi
4825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h. */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832 $ac_declaration
4833 int
4834 main ()
4835 {
4836 exit (42);
4837 ;
4838 return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -z "$ac_cxx_werror_flag"
4851 || test ! -s conftest.err'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; } &&
4857 { ac_try='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 break
4864 else
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 fi
4869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4870 done
4871 rm -f conftest*
4872 if test -n "$ac_declaration"; then
4873 echo '#ifdef __cplusplus' >>confdefs.h
4874 echo $ac_declaration >>confdefs.h
4875 echo '#endif' >>confdefs.h
4876 fi
4878 ac_ext=cc
4879 ac_cpp='$CXXCPP $CPPFLAGS'
4880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4884 depcc="$CXX" am_compiler_list=
4886 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4887 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4888 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4892 # We make a subdir and do the tests there. Otherwise we can end up
4893 # making bogus files that we don't know about and never remove. For
4894 # instance it was reported that on HP-UX the gcc test will end up
4895 # making a dummy file named `D' -- because `-MD' means `put the output
4896 # in D'.
4897 mkdir conftest.dir
4898 # Copy depcomp to subdir because otherwise we won't find it if we're
4899 # using a relative directory.
4900 cp "$am_depcomp" conftest.dir
4901 cd conftest.dir
4902 # We will build objects and dependencies in a subdirectory because
4903 # it helps to detect inapplicable dependency modes. For instance
4904 # both Tru64's cc and ICC support -MD to output dependencies as a
4905 # side effect of compilation, but ICC will put the dependencies in
4906 # the current directory while Tru64 will put them in the object
4907 # directory.
4908 mkdir sub
4910 am_cv_CXX_dependencies_compiler_type=none
4911 if test "$am_compiler_list" = ""; then
4912 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4913 fi
4914 for depmode in $am_compiler_list; do
4915 # Setup a source with many dependencies, because some compilers
4916 # like to wrap large dependency lists on column 80 (with \), and
4917 # we should not choose a depcomp mode which is confused by this.
4918 #
4919 # We need to recreate these files for each test, as the compiler may
4920 # overwrite some of them when testing with obscure command lines.
4921 # This happens at least with the AIX C compiler.
4922 : > sub/conftest.c
4923 for i in 1 2 3 4 5 6; do
4924 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4925 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4926 # Solaris 8's {/usr,}/bin/sh.
4927 touch sub/conftst$i.h
4928 done
4929 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4931 case $depmode in
4932 nosideeffect)
4933 # after this tag, mechanisms are not by side-effect, so they'll
4934 # only be used when explicitly requested
4935 if test "x$enable_dependency_tracking" = xyes; then
4936 continue
4937 else
4938 break
4939 fi
4940 ;;
4941 none) break ;;
4942 esac
4943 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4944 # mode. It turns out that the SunPro C++ compiler does not properly
4945 # handle `-M -o', and we need to detect this.
4946 if depmode=$depmode \
4947 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4948 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4949 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4950 >/dev/null 2>conftest.err &&
4951 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4952 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4953 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4954 # icc doesn't choke on unknown options, it will just issue warnings
4955 # or remarks (even with -Werror). So we grep stderr for any message
4956 # that says an option was ignored or not supported.
4957 # When given -MP, icc 7.0 and 7.1 complain thusly:
4958 # icc: Command line warning: ignoring option '-M'; no argument required
4959 # The diagnosis changed in icc 8.0:
4960 # icc: Command line remark: option '-MP' not supported
4961 if (grep 'ignoring option' conftest.err ||
4962 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4963 am_cv_CXX_dependencies_compiler_type=$depmode
4964 break
4965 fi
4966 fi
4967 done
4969 cd ..
4970 rm -rf conftest.dir
4971 else
4972 am_cv_CXX_dependencies_compiler_type=none
4973 fi
4975 fi
4976 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4977 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4978 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4982 if
4983 test "x$enable_dependency_tracking" != xno \
4984 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4985 am__fastdepCXX_TRUE=
4986 am__fastdepCXX_FALSE='#'
4987 else
4988 am__fastdepCXX_TRUE='#'
4989 am__fastdepCXX_FALSE=
4990 fi
4995 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4996 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4997 (test "X$CXX" != "Xg++"))) ; then
4998 ac_ext=cc
4999 ac_cpp='$CXXCPP $CPPFLAGS'
5000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5003 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5004 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5005 if test -z "$CXXCPP"; then
5006 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 # Double quotes because CXXCPP needs to be expanded
5010 for CXXCPP in "$CXX -E" "/lib/cpp"
5011 do
5012 ac_preproc_ok=false
5013 for ac_cxx_preproc_warn_flag in '' yes
5014 do
5015 # Use a header file that comes with gcc, so configuring glibc
5016 # with a fresh cross-compiler works.
5017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5018 # <limits.h> exists even on freestanding compilers.
5019 # On the NeXT, cc -E runs the code through the compiler's parser,
5020 # not just through cpp. "Syntax error" is here to catch this case.
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #ifdef __STDC__
5028 # include <limits.h>
5029 #else
5030 # include <assert.h>
5031 #endif
5032 Syntax error
5033 _ACEOF
5034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } >/dev/null; then
5042 if test -s conftest.err; then
5043 ac_cpp_err=$ac_cxx_preproc_warn_flag
5044 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5045 else
5046 ac_cpp_err=
5047 fi
5048 else
5049 ac_cpp_err=yes
5050 fi
5051 if test -z "$ac_cpp_err"; then
5052 :
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 # Broken: fails on valid input.
5058 continue
5059 fi
5060 rm -f conftest.err conftest.$ac_ext
5062 # OK, works on sane cases. Now check whether non-existent headers
5063 # can be detected and how.
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <ac_nonexistent.h>
5071 _ACEOF
5072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_cxx_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5083 else
5084 ac_cpp_err=
5085 fi
5086 else
5087 ac_cpp_err=yes
5088 fi
5089 if test -z "$ac_cpp_err"; then
5090 # Broken: success on invalid input.
5091 continue
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 # Passes both tests.
5097 ac_preproc_ok=:
5098 break
5099 fi
5100 rm -f conftest.err conftest.$ac_ext
5102 done
5103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5104 rm -f conftest.err conftest.$ac_ext
5105 if $ac_preproc_ok; then
5106 break
5107 fi
5109 done
5110 ac_cv_prog_CXXCPP=$CXXCPP
5112 fi
5113 CXXCPP=$ac_cv_prog_CXXCPP
5114 else
5115 ac_cv_prog_CXXCPP=$CXXCPP
5116 fi
5117 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5118 echo "${ECHO_T}$CXXCPP" >&6
5119 ac_preproc_ok=false
5120 for ac_cxx_preproc_warn_flag in '' yes
5121 do
5122 # Use a header file that comes with gcc, so configuring glibc
5123 # with a fresh cross-compiler works.
5124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5125 # <limits.h> exists even on freestanding compilers.
5126 # On the NeXT, cc -E runs the code through the compiler's parser,
5127 # not just through cpp. "Syntax error" is here to catch this case.
5128 cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h. */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 #ifdef __STDC__
5135 # include <limits.h>
5136 #else
5137 # include <assert.h>
5138 #endif
5139 Syntax error
5140 _ACEOF
5141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } >/dev/null; then
5149 if test -s conftest.err; then
5150 ac_cpp_err=$ac_cxx_preproc_warn_flag
5151 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5152 else
5153 ac_cpp_err=
5154 fi
5155 else
5156 ac_cpp_err=yes
5157 fi
5158 if test -z "$ac_cpp_err"; then
5159 :
5160 else
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 # Broken: fails on valid input.
5165 continue
5166 fi
5167 rm -f conftest.err conftest.$ac_ext
5169 # OK, works on sane cases. Now check whether non-existent headers
5170 # can be detected and how.
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h. */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 #include <ac_nonexistent.h>
5178 _ACEOF
5179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null; then
5187 if test -s conftest.err; then
5188 ac_cpp_err=$ac_cxx_preproc_warn_flag
5189 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5190 else
5191 ac_cpp_err=
5192 fi
5193 else
5194 ac_cpp_err=yes
5195 fi
5196 if test -z "$ac_cpp_err"; then
5197 # Broken: success on invalid input.
5198 continue
5199 else
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 # Passes both tests.
5204 ac_preproc_ok=:
5205 break
5206 fi
5207 rm -f conftest.err conftest.$ac_ext
5209 done
5210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5211 rm -f conftest.err conftest.$ac_ext
5212 if $ac_preproc_ok; then
5213 :
5214 else
5215 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5216 See \`config.log' for more details." >&5
5217 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5218 See \`config.log' for more details." >&2;}
5219 { (exit 1); exit 1; }; }
5220 fi
5222 ac_ext=cc
5223 ac_cpp='$CXXCPP $CPPFLAGS'
5224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5228 fi
5232 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5234 # find the maximum length of command line arguments
5235 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5236 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5237 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 i=0
5241 teststring="ABCD"
5243 case $build_os in
5244 msdosdjgpp*)
5245 # On DJGPP, this test can blow up pretty badly due to problems in libc
5246 # (any single argument exceeding 2000 bytes causes a buffer overrun
5247 # during glob expansion). Even if it were fixed, the result of this
5248 # check would be larger than it should be.
5249 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5250 ;;
5252 gnu*)
5253 # Under GNU Hurd, this test is not required because there is
5254 # no limit to the length of command line arguments.
5255 # Libtool will interpret -1 as no limit whatsoever
5256 lt_cv_sys_max_cmd_len=-1;
5257 ;;
5259 cygwin* | mingw*)
5260 # On Win9x/ME, this test blows up -- it succeeds, but takes
5261 # about 5 minutes as the teststring grows exponentially.
5262 # Worse, since 9x/ME are not pre-emptively multitasking,
5263 # you end up with a "frozen" computer, even though with patience
5264 # the test eventually succeeds (with a max line length of 256k).
5265 # Instead, let's just punt: use the minimum linelength reported by
5266 # all of the supported platforms: 8192 (on NT/2K/XP).
5267 lt_cv_sys_max_cmd_len=8192;
5268 ;;
5270 amigaos*)
5271 # On AmigaOS with pdksh, this test takes hours, literally.
5272 # So we just punt and use a minimum line length of 8192.
5273 lt_cv_sys_max_cmd_len=8192;
5274 ;;
5276 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5277 # This has been around since 386BSD, at least. Likely further.
5278 if test -x /sbin/sysctl; then
5279 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5280 elif test -x /usr/sbin/sysctl; then
5281 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5282 else
5283 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5284 fi
5285 # And add a safety zone
5286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5288 ;;
5290 interix*)
5291 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5292 lt_cv_sys_max_cmd_len=196608
5293 ;;
5295 osf*)
5296 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5297 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5298 # nice to cause kernel panics so lets avoid the loop below.
5299 # First set a reasonable default.
5300 lt_cv_sys_max_cmd_len=16384
5301 #
5302 if test -x /sbin/sysconfig; then
5303 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5304 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5305 esac
5306 fi
5307 ;;
5308 sco3.2v5*)
5309 lt_cv_sys_max_cmd_len=102400
5310 ;;
5311 sysv5* | sco5v6* | sysv4.2uw2*)
5312 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5313 if test -n "$kargmax"; then
5314 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5315 else
5316 lt_cv_sys_max_cmd_len=32768
5317 fi
5318 ;;
5319 *)
5320 # If test is not a shell built-in, we'll probably end up computing a
5321 # maximum length that is only half of the actual maximum length, but
5322 # we can't tell.
5323 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5324 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5325 = "XX$teststring") >/dev/null 2>&1 &&
5326 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5327 lt_cv_sys_max_cmd_len=$new_result &&
5328 test $i != 17 # 1/2 MB should be enough
5329 do
5330 i=`expr $i + 1`
5331 teststring=$teststring$teststring
5332 done
5333 teststring=
5334 # Add a significant safety factor because C++ compilers can tack on massive
5335 # amounts of additional arguments before passing them to the linker.
5336 # It appears as though 1/2 is a usable value.
5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5338 ;;
5339 esac
5341 fi
5343 if test -n $lt_cv_sys_max_cmd_len ; then
5344 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5345 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5346 else
5347 echo "$as_me:$LINENO: result: none" >&5
5348 echo "${ECHO_T}none" >&6
5349 fi
5354 # Check for command to grab the raw symbol name followed by C symbol from nm.
5355 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5356 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5357 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5361 # These are sane defaults that work on at least a few old systems.
5362 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5364 # Character class describing NM global symbol codes.
5365 symcode='[BCDEGRST]'
5367 # Regexp to match symbols that can be accessed directly from C.
5368 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5370 # Transform an extracted symbol line into a proper C declaration
5371 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5373 # Transform an extracted symbol line into symbol name and symbol address
5374 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'"
5376 # Define system-specific variables.
5377 case $host_os in
5378 aix*)
5379 symcode='[BCDT]'
5380 ;;
5381 cygwin* | mingw* | pw32*)
5382 symcode='[ABCDGISTW]'
5383 ;;
5384 hpux*) # Its linker distinguishes data from code symbols
5385 if test "$host_cpu" = ia64; then
5386 symcode='[ABCDEGRST]'
5387 fi
5388 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5389 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'"
5390 ;;
5391 linux*)
5392 if test "$host_cpu" = ia64; then
5393 symcode='[ABCDGIRSTW]'
5394 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5395 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'"
5396 fi
5397 ;;
5398 irix* | nonstopux*)
5399 symcode='[BCDEGRST]'
5400 ;;
5401 osf*)
5402 symcode='[BCDEGQRST]'
5403 ;;
5404 solaris*)
5405 symcode='[BDRT]'
5406 ;;
5407 sco3.2v5*)
5408 symcode='[DT]'
5409 ;;
5410 sysv4.2uw2*)
5411 symcode='[DT]'
5412 ;;
5413 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5414 symcode='[ABDT]'
5415 ;;
5416 sysv4)
5417 symcode='[DFNSTU]'
5418 ;;
5419 esac
5421 # Handle CRLF in mingw tool chain
5422 opt_cr=
5423 case $build_os in
5424 mingw*)
5425 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5426 ;;
5427 esac
5429 # If we're using GNU nm, then use its standard symbol codes.
5430 case `$NM -V 2>&1` in
5431 *GNU* | *'with BFD'*)
5432 symcode='[ABCDGIRSTW]' ;;
5433 esac
5435 # Try without a prefix undercore, then with it.
5436 for ac_symprfx in "" "_"; do
5438 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5439 symxfrm="\\1 $ac_symprfx\\2 \\2"
5441 # Write the raw and C identifiers.
5442 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5444 # Check to see that the pipe works correctly.
5445 pipe_works=no
5447 rm -f conftest*
5448 cat > conftest.$ac_ext <<EOF
5449 #ifdef __cplusplus
5450 extern "C" {
5451 #endif
5452 char nm_test_var;
5453 void nm_test_func(){}
5454 #ifdef __cplusplus
5455 }
5456 #endif
5457 int main(){nm_test_var='a';nm_test_func();return(0);}
5458 EOF
5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461 (eval $ac_compile) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; then
5465 # Now try to grab the symbols.
5466 nlist=conftest.nm
5467 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5468 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } && test -s "$nlist"; then
5472 # Try sorting and uniquifying the output.
5473 if sort "$nlist" | uniq > "$nlist"T; then
5474 mv -f "$nlist"T "$nlist"
5475 else
5476 rm -f "$nlist"T
5477 fi
5479 # Make sure that we snagged all the symbols we need.
5480 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5481 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5482 cat <<EOF > conftest.$ac_ext
5483 #ifdef __cplusplus
5484 extern "C" {
5485 #endif
5487 EOF
5488 # Now generate the symbol file.
5489 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5491 cat <<EOF >> conftest.$ac_ext
5492 #if defined (__STDC__) && __STDC__
5493 # define lt_ptr_t void *
5494 #else
5495 # define lt_ptr_t char *
5496 # define const
5497 #endif
5499 /* The mapping between symbol names and symbols. */
5500 const struct {
5501 const char *name;
5502 lt_ptr_t address;
5503 }
5504 lt_preloaded_symbols[] =
5505 {
5506 EOF
5507 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5508 cat <<\EOF >> conftest.$ac_ext
5509 {0, (lt_ptr_t) 0}
5510 };
5512 #ifdef __cplusplus
5513 }
5514 #endif
5515 EOF
5516 # Now try linking the two files.
5517 mv conftest.$ac_objext conftstm.$ac_objext
5518 lt_save_LIBS="$LIBS"
5519 lt_save_CFLAGS="$CFLAGS"
5520 LIBS="conftstm.$ac_objext"
5521 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5523 (eval $ac_link) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5527 pipe_works=yes
5528 fi
5529 LIBS="$lt_save_LIBS"
5530 CFLAGS="$lt_save_CFLAGS"
5531 else
5532 echo "cannot find nm_test_func in $nlist" >&5
5533 fi
5534 else
5535 echo "cannot find nm_test_var in $nlist" >&5
5536 fi
5537 else
5538 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5539 fi
5540 else
5541 echo "$progname: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5543 fi
5544 rm -f conftest* conftst*
5546 # Do not use the global_symbol_pipe unless it works.
5547 if test "$pipe_works" = yes; then
5548 break
5549 else
5550 lt_cv_sys_global_symbol_pipe=
5551 fi
5552 done
5554 fi
5556 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5557 lt_cv_sys_global_symbol_to_cdecl=
5558 fi
5559 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5560 echo "$as_me:$LINENO: result: failed" >&5
5561 echo "${ECHO_T}failed" >&6
5562 else
5563 echo "$as_me:$LINENO: result: ok" >&5
5564 echo "${ECHO_T}ok" >&6
5565 fi
5567 echo "$as_me:$LINENO: checking for objdir" >&5
5568 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5569 if test "${lt_cv_objdir+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572 rm -f .libs 2>/dev/null
5573 mkdir .libs 2>/dev/null
5574 if test -d .libs; then
5575 lt_cv_objdir=.libs
5576 else
5577 # MS-DOS does not allow filenames that begin with a dot.
5578 lt_cv_objdir=_libs
5579 fi
5580 rmdir .libs 2>/dev/null
5581 fi
5582 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5583 echo "${ECHO_T}$lt_cv_objdir" >&6
5584 objdir=$lt_cv_objdir
5590 case $host_os in
5591 aix3*)
5592 # AIX sometimes has problems with the GCC collect2 program. For some
5593 # reason, if we set the COLLECT_NAMES environment variable, the problems
5594 # vanish in a puff of smoke.
5595 if test "X${COLLECT_NAMES+set}" != Xset; then
5596 COLLECT_NAMES=
5597 export COLLECT_NAMES
5598 fi
5599 ;;
5600 esac
5602 # Sed substitution that helps us do robust quoting. It backslashifies
5603 # metacharacters that are still active within double-quoted strings.
5604 Xsed='sed -e 1s/^X//'
5605 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5607 # Same as above, but do not quote variable references.
5608 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5610 # Sed substitution to delay expansion of an escaped shell variable in a
5611 # double_quote_subst'ed string.
5612 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5614 # Sed substitution to avoid accidental globbing in evaled expressions
5615 no_glob_subst='s/\*/\\\*/g'
5617 # Constants:
5618 rm="rm -f"
5620 # Global variables:
5621 default_ofile=libtool
5622 can_build_shared=yes
5624 # All known linkers require a `.a' archive for static linking (except MSVC,
5625 # which needs '.lib').
5626 libext=a
5627 ltmain="$ac_aux_dir/ltmain.sh"
5628 ofile="$default_ofile"
5629 with_gnu_ld="$lt_cv_prog_gnu_ld"
5631 if test -n "$ac_tool_prefix"; then
5632 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5633 set dummy ${ac_tool_prefix}ar; ac_word=$2
5634 echo "$as_me:$LINENO: checking for $ac_word" >&5
5635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5636 if test "${ac_cv_prog_AR+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 if test -n "$AR"; then
5640 ac_cv_prog_AR="$AR" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649 ac_cv_prog_AR="${ac_tool_prefix}ar"
5650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653 done
5654 done
5656 fi
5657 fi
5658 AR=$ac_cv_prog_AR
5659 if test -n "$AR"; then
5660 echo "$as_me:$LINENO: result: $AR" >&5
5661 echo "${ECHO_T}$AR" >&6
5662 else
5663 echo "$as_me:$LINENO: result: no" >&5
5664 echo "${ECHO_T}no" >&6
5665 fi
5667 fi
5668 if test -z "$ac_cv_prog_AR"; then
5669 ac_ct_AR=$AR
5670 # Extract the first word of "ar", so it can be a program name with args.
5671 set dummy ar; ac_word=$2
5672 echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5674 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 if test -n "$ac_ct_AR"; then
5678 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5679 else
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_prog_ac_ct_AR="ar"
5688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 break 2
5690 fi
5691 done
5692 done
5694 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5695 fi
5696 fi
5697 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5698 if test -n "$ac_ct_AR"; then
5699 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5700 echo "${ECHO_T}$ac_ct_AR" >&6
5701 else
5702 echo "$as_me:$LINENO: result: no" >&5
5703 echo "${ECHO_T}no" >&6
5704 fi
5706 AR=$ac_ct_AR
5707 else
5708 AR="$ac_cv_prog_AR"
5709 fi
5711 if test -n "$ac_tool_prefix"; then
5712 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5713 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5714 echo "$as_me:$LINENO: checking for $ac_word" >&5
5715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5716 if test "${ac_cv_prog_RANLIB+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719 if test -n "$RANLIB"; then
5720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733 done
5734 done
5736 fi
5737 fi
5738 RANLIB=$ac_cv_prog_RANLIB
5739 if test -n "$RANLIB"; then
5740 echo "$as_me:$LINENO: result: $RANLIB" >&5
5741 echo "${ECHO_T}$RANLIB" >&6
5742 else
5743 echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6
5745 fi
5747 fi
5748 if test -z "$ac_cv_prog_RANLIB"; then
5749 ac_ct_RANLIB=$RANLIB
5750 # Extract the first word of "ranlib", so it can be a program name with args.
5751 set dummy ranlib; ac_word=$2
5752 echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5754 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757 if test -n "$ac_ct_RANLIB"; then
5758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_ac_ct_RANLIB="ranlib"
5768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5774 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5775 fi
5776 fi
5777 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5778 if test -n "$ac_ct_RANLIB"; then
5779 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5780 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5781 else
5782 echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6
5784 fi
5786 RANLIB=$ac_ct_RANLIB
5787 else
5788 RANLIB="$ac_cv_prog_RANLIB"
5789 fi
5791 if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}strip; ac_word=$2
5794 echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796 if test "${ac_cv_prog_STRIP+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799 if test -n "$STRIP"; then
5800 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5816 fi
5817 fi
5818 STRIP=$ac_cv_prog_STRIP
5819 if test -n "$STRIP"; then
5820 echo "$as_me:$LINENO: result: $STRIP" >&5
5821 echo "${ECHO_T}$STRIP" >&6
5822 else
5823 echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5825 fi
5827 fi
5828 if test -z "$ac_cv_prog_STRIP"; then
5829 ac_ct_STRIP=$STRIP
5830 # Extract the first word of "strip", so it can be a program name with args.
5831 set dummy strip; ac_word=$2
5832 echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 if test -n "$ac_ct_STRIP"; then
5838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_ac_ct_STRIP="strip"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851 done
5852 done
5854 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5855 fi
5856 fi
5857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5858 if test -n "$ac_ct_STRIP"; then
5859 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5860 echo "${ECHO_T}$ac_ct_STRIP" >&6
5861 else
5862 echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5864 fi
5866 STRIP=$ac_ct_STRIP
5867 else
5868 STRIP="$ac_cv_prog_STRIP"
5869 fi
5872 old_CC="$CC"
5873 old_CFLAGS="$CFLAGS"
5875 # Set sane defaults for various variables
5876 test -z "$AR" && AR=ar
5877 test -z "$AR_FLAGS" && AR_FLAGS=cru
5878 test -z "$AS" && AS=as
5879 test -z "$CC" && CC=cc
5880 test -z "$LTCC" && LTCC=$CC
5881 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5882 test -z "$DLLTOOL" && DLLTOOL=dlltool
5883 test -z "$LD" && LD=ld
5884 test -z "$LN_S" && LN_S="ln -s"
5885 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5886 test -z "$NM" && NM=nm
5887 test -z "$SED" && SED=sed
5888 test -z "$OBJDUMP" && OBJDUMP=objdump
5889 test -z "$RANLIB" && RANLIB=:
5890 test -z "$STRIP" && STRIP=:
5891 test -z "$ac_objext" && ac_objext=o
5893 # Determine commands to create old-style static archives.
5894 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5895 old_postinstall_cmds='chmod 644 $oldlib'
5896 old_postuninstall_cmds=
5898 if test -n "$RANLIB"; then
5899 case $host_os in
5900 openbsd*)
5901 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5902 ;;
5903 *)
5904 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5905 ;;
5906 esac
5907 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5908 fi
5910 for cc_temp in $compiler""; do
5911 case $cc_temp in
5912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5914 \-*) ;;
5915 *) break;;
5916 esac
5917 done
5918 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5921 # Only perform the check for file, if the check method requires it
5922 case $deplibs_check_method in
5923 file_magic*)
5924 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5925 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5926 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5927 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 case $MAGIC_CMD in
5931 [\\/*] | ?:[\\/]*)
5932 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5933 ;;
5934 *)
5935 lt_save_MAGIC_CMD="$MAGIC_CMD"
5936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5937 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5938 for ac_dir in $ac_dummy; do
5939 IFS="$lt_save_ifs"
5940 test -z "$ac_dir" && ac_dir=.
5941 if test -f $ac_dir/${ac_tool_prefix}file; then
5942 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5943 if test -n "$file_magic_test_file"; then
5944 case $deplibs_check_method in
5945 "file_magic "*)
5946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5949 $EGREP "$file_magic_regex" > /dev/null; then
5950 :
5951 else
5952 cat <<EOF 1>&2
5954 *** Warning: the command libtool uses to detect shared libraries,
5955 *** $file_magic_cmd, produces output that libtool cannot recognize.
5956 *** The result is that libtool may fail to recognize shared libraries
5957 *** as such. This will affect the creation of libtool libraries that
5958 *** depend on shared libraries, but programs linked with such libtool
5959 *** libraries will work regardless of this problem. Nevertheless, you
5960 *** may want to report the problem to your system manager and/or to
5961 *** bug-libtool@gnu.org
5963 EOF
5964 fi ;;
5965 esac
5966 fi
5967 break
5968 fi
5969 done
5970 IFS="$lt_save_ifs"
5971 MAGIC_CMD="$lt_save_MAGIC_CMD"
5972 ;;
5973 esac
5974 fi
5976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5977 if test -n "$MAGIC_CMD"; then
5978 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5979 echo "${ECHO_T}$MAGIC_CMD" >&6
5980 else
5981 echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6
5983 fi
5985 if test -z "$lt_cv_path_MAGIC_CMD"; then
5986 if test -n "$ac_tool_prefix"; then
5987 echo "$as_me:$LINENO: checking for file" >&5
5988 echo $ECHO_N "checking for file... $ECHO_C" >&6
5989 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 case $MAGIC_CMD in
5993 [\\/*] | ?:[\\/]*)
5994 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5995 ;;
5996 *)
5997 lt_save_MAGIC_CMD="$MAGIC_CMD"
5998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5999 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6000 for ac_dir in $ac_dummy; do
6001 IFS="$lt_save_ifs"
6002 test -z "$ac_dir" && ac_dir=.
6003 if test -f $ac_dir/file; then
6004 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6005 if test -n "$file_magic_test_file"; then
6006 case $deplibs_check_method in
6007 "file_magic "*)
6008 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6010 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6011 $EGREP "$file_magic_regex" > /dev/null; then
6012 :
6013 else
6014 cat <<EOF 1>&2
6016 *** Warning: the command libtool uses to detect shared libraries,
6017 *** $file_magic_cmd, produces output that libtool cannot recognize.
6018 *** The result is that libtool may fail to recognize shared libraries
6019 *** as such. This will affect the creation of libtool libraries that
6020 *** depend on shared libraries, but programs linked with such libtool
6021 *** libraries will work regardless of this problem. Nevertheless, you
6022 *** may want to report the problem to your system manager and/or to
6023 *** bug-libtool@gnu.org
6025 EOF
6026 fi ;;
6027 esac
6028 fi
6029 break
6030 fi
6031 done
6032 IFS="$lt_save_ifs"
6033 MAGIC_CMD="$lt_save_MAGIC_CMD"
6034 ;;
6035 esac
6036 fi
6038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6039 if test -n "$MAGIC_CMD"; then
6040 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6041 echo "${ECHO_T}$MAGIC_CMD" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6
6045 fi
6047 else
6048 MAGIC_CMD=:
6049 fi
6050 fi
6052 fi
6053 ;;
6054 esac
6056 enable_dlopen=no
6057 enable_win32_dll=no
6059 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6060 if test "${enable_libtool_lock+set}" = set; then
6061 enableval="$enable_libtool_lock"
6063 fi;
6064 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6067 # Check whether --with-pic or --without-pic was given.
6068 if test "${with_pic+set}" = set; then
6069 withval="$with_pic"
6070 pic_mode="$withval"
6071 else
6072 pic_mode=default
6073 fi;
6074 test -z "$pic_mode" && pic_mode=default
6076 # Use C for the default configuration in the libtool script
6077 tagname=
6078 lt_save_CC="$CC"
6079 ac_ext=c
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086 # Source file extension for C test sources.
6087 ac_ext=c
6089 # Object file extension for compiled C test sources.
6090 objext=o
6091 objext=$objext
6093 # Code to be used in simple compile tests
6094 lt_simple_compile_test_code="int some_variable = 0;\n"
6096 # Code to be used in simple link tests
6097 lt_simple_link_test_code='int main(){return(0);}\n'
6100 # If no C compiler was specified, use CC.
6101 LTCC=${LTCC-"$CC"}
6103 # If no C compiler flags were specified, use CFLAGS.
6104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6106 # Allow CC to be a program name with arguments.
6107 compiler=$CC
6110 # save warnings/boilerplate of simple test code
6111 ac_outfile=conftest.$ac_objext
6112 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6114 _lt_compiler_boilerplate=`cat conftest.err`
6115 $rm conftest*
6117 ac_outfile=conftest.$ac_objext
6118 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6120 _lt_linker_boilerplate=`cat conftest.err`
6121 $rm conftest*
6125 lt_prog_compiler_no_builtin_flag=
6127 if test "$GCC" = yes; then
6128 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6131 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6132 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 lt_cv_prog_compiler_rtti_exceptions=no
6137 ac_outfile=conftest.$ac_objext
6138 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6139 lt_compiler_flag="-fno-rtti -fno-exceptions"
6140 # Insert the option either (1) after the last *FLAGS variable, or
6141 # (2) before a word containing "conftest.", or (3) at the end.
6142 # Note that $ac_compile itself does not contain backslashes and begins
6143 # with a dollar sign (not a hyphen), so the echo should work correctly.
6144 # The option is referenced via a variable to avoid confusing sed.
6145 lt_compile=`echo "$ac_compile" | $SED \
6146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6148 -e 's:$: $lt_compiler_flag:'`
6149 (eval echo "\"\$as_me:6149: $lt_compile\"" >&5)
6150 (eval "$lt_compile" 2>conftest.err)
6151 ac_status=$?
6152 cat conftest.err >&5
6153 echo "$as_me:6153: \$? = $ac_status" >&5
6154 if (exit $ac_status) && test -s "$ac_outfile"; then
6155 # The compiler can only warn and ignore the option if not recognized
6156 # So say no if there are warnings other than the usual output.
6157 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6160 lt_cv_prog_compiler_rtti_exceptions=yes
6161 fi
6162 fi
6163 $rm conftest*
6165 fi
6166 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6167 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6170 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6171 else
6172 :
6173 fi
6175 fi
6177 lt_prog_compiler_wl=
6178 lt_prog_compiler_pic=
6179 lt_prog_compiler_static=
6181 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6182 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6184 if test "$GCC" = yes; then
6185 lt_prog_compiler_wl='-Wl,'
6186 lt_prog_compiler_static='-static'
6188 case $host_os in
6189 aix*)
6190 # All AIX code is PIC.
6191 if test "$host_cpu" = ia64; then
6192 # AIX 5 now supports IA64 processor
6193 lt_prog_compiler_static='-Bstatic'
6194 fi
6195 ;;
6197 amigaos*)
6198 # FIXME: we need at least 68020 code to build shared libraries, but
6199 # adding the `-m68020' flag to GCC prevents building anything better,
6200 # like `-m68040'.
6201 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6202 ;;
6204 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6205 # PIC is the default for these OSes.
6206 ;;
6208 mingw* | pw32* | os2*)
6209 # This hack is so that the source file can tell whether it is being
6210 # built for inclusion in a dll (and should export symbols for example).
6211 lt_prog_compiler_pic='-DDLL_EXPORT'
6212 ;;
6214 darwin* | rhapsody*)
6215 # PIC is the default on this platform
6216 # Common symbols not allowed in MH_DYLIB files
6217 lt_prog_compiler_pic='-fno-common'
6218 ;;
6220 interix3*)
6221 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6222 # Instead, we relocate shared libraries at runtime.
6223 ;;
6225 msdosdjgpp*)
6226 # Just because we use GCC doesn't mean we suddenly get shared libraries
6227 # on systems that don't support them.
6228 lt_prog_compiler_can_build_shared=no
6229 enable_shared=no
6230 ;;
6232 sysv4*MP*)
6233 if test -d /usr/nec; then
6234 lt_prog_compiler_pic=-Kconform_pic
6235 fi
6236 ;;
6238 hpux*)
6239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6240 # not for PA HP-UX.
6241 case $host_cpu in
6242 hppa*64*|ia64*)
6243 # +Z the default
6244 ;;
6245 *)
6246 lt_prog_compiler_pic='-fPIC'
6247 ;;
6248 esac
6249 ;;
6251 *)
6252 lt_prog_compiler_pic='-fPIC'
6253 ;;
6254 esac
6255 else
6256 # PORTME Check for flag to pass linker flags through the system compiler.
6257 case $host_os in
6258 aix*)
6259 lt_prog_compiler_wl='-Wl,'
6260 if test "$host_cpu" = ia64; then
6261 # AIX 5 now supports IA64 processor
6262 lt_prog_compiler_static='-Bstatic'
6263 else
6264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6265 fi
6266 ;;
6267 darwin*)
6268 # PIC is the default on this platform
6269 # Common symbols not allowed in MH_DYLIB files
6270 case $cc_basename in
6271 xlc*)
6272 lt_prog_compiler_pic='-qnocommon'
6273 lt_prog_compiler_wl='-Wl,'
6274 ;;
6275 esac
6276 ;;
6278 mingw* | pw32* | os2*)
6279 # This hack is so that the source file can tell whether it is being
6280 # built for inclusion in a dll (and should export symbols for example).
6281 lt_prog_compiler_pic='-DDLL_EXPORT'
6282 ;;
6284 hpux9* | hpux10* | hpux11*)
6285 lt_prog_compiler_wl='-Wl,'
6286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6287 # not for PA HP-UX.
6288 case $host_cpu in
6289 hppa*64*|ia64*)
6290 # +Z the default
6291 ;;
6292 *)
6293 lt_prog_compiler_pic='+Z'
6294 ;;
6295 esac
6296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6297 lt_prog_compiler_static='${wl}-a ${wl}archive'
6298 ;;
6300 irix5* | irix6* | nonstopux*)
6301 lt_prog_compiler_wl='-Wl,'
6302 # PIC (with -KPIC) is the default.
6303 lt_prog_compiler_static='-non_shared'
6304 ;;
6306 newsos6)
6307 lt_prog_compiler_pic='-KPIC'
6308 lt_prog_compiler_static='-Bstatic'
6309 ;;
6311 linux*)
6312 case $cc_basename in
6313 icc* | ecc*)
6314 lt_prog_compiler_wl='-Wl,'
6315 lt_prog_compiler_pic='-KPIC'
6316 lt_prog_compiler_static='-static'
6317 ;;
6318 pgcc* | pgf77* | pgf90* | pgf95*)
6319 # Portland Group compilers (*not* the Pentium gcc compiler,
6320 # which looks to be a dead project)
6321 lt_prog_compiler_wl='-Wl,'
6322 lt_prog_compiler_pic='-fpic'
6323 lt_prog_compiler_static='-Bstatic'
6324 ;;
6325 ccc*)
6326 lt_prog_compiler_wl='-Wl,'
6327 # All Alpha code is PIC.
6328 lt_prog_compiler_static='-non_shared'
6329 ;;
6330 esac
6331 ;;
6333 osf3* | osf4* | osf5*)
6334 lt_prog_compiler_wl='-Wl,'
6335 # All OSF/1 code is PIC.
6336 lt_prog_compiler_static='-non_shared'
6337 ;;
6339 solaris*)
6340 lt_prog_compiler_pic='-KPIC'
6341 lt_prog_compiler_static='-Bstatic'
6342 case $cc_basename in
6343 f77* | f90* | f95*)
6344 lt_prog_compiler_wl='-Qoption ld ';;
6345 *)
6346 lt_prog_compiler_wl='-Wl,';;
6347 esac
6348 ;;
6350 sunos4*)
6351 lt_prog_compiler_wl='-Qoption ld '
6352 lt_prog_compiler_pic='-PIC'
6353 lt_prog_compiler_static='-Bstatic'
6354 ;;
6356 sysv4 | sysv4.2uw2* | sysv4.3*)
6357 lt_prog_compiler_wl='-Wl,'
6358 lt_prog_compiler_pic='-KPIC'
6359 lt_prog_compiler_static='-Bstatic'
6360 ;;
6362 sysv4*MP*)
6363 if test -d /usr/nec ;then
6364 lt_prog_compiler_pic='-Kconform_pic'
6365 lt_prog_compiler_static='-Bstatic'
6366 fi
6367 ;;
6369 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6370 lt_prog_compiler_wl='-Wl,'
6371 lt_prog_compiler_pic='-KPIC'
6372 lt_prog_compiler_static='-Bstatic'
6373 ;;
6375 unicos*)
6376 lt_prog_compiler_wl='-Wl,'
6377 lt_prog_compiler_can_build_shared=no
6378 ;;
6380 uts4*)
6381 lt_prog_compiler_pic='-pic'
6382 lt_prog_compiler_static='-Bstatic'
6383 ;;
6385 *)
6386 lt_prog_compiler_can_build_shared=no
6387 ;;
6388 esac
6389 fi
6391 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6392 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6394 #
6395 # Check to make sure the PIC flag actually works.
6396 #
6397 if test -n "$lt_prog_compiler_pic"; then
6399 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6400 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6401 if test "${lt_prog_compiler_pic_works+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404 lt_prog_compiler_pic_works=no
6405 ac_outfile=conftest.$ac_objext
6406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6407 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6408 # Insert the option either (1) after the last *FLAGS variable, or
6409 # (2) before a word containing "conftest.", or (3) at the end.
6410 # Note that $ac_compile itself does not contain backslashes and begins
6411 # with a dollar sign (not a hyphen), so the echo should work correctly.
6412 # The option is referenced via a variable to avoid confusing sed.
6413 lt_compile=`echo "$ac_compile" | $SED \
6414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6416 -e 's:$: $lt_compiler_flag:'`
6417 (eval echo "\"\$as_me:6417: $lt_compile\"" >&5)
6418 (eval "$lt_compile" 2>conftest.err)
6419 ac_status=$?
6420 cat conftest.err >&5
6421 echo "$as_me:6421: \$? = $ac_status" >&5
6422 if (exit $ac_status) && test -s "$ac_outfile"; then
6423 # The compiler can only warn and ignore the option if not recognized
6424 # So say no if there are warnings other than the usual output.
6425 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6428 lt_prog_compiler_pic_works=yes
6429 fi
6430 fi
6431 $rm conftest*
6433 fi
6434 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6435 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6437 if test x"$lt_prog_compiler_pic_works" = xyes; then
6438 case $lt_prog_compiler_pic in
6439 "" | " "*) ;;
6440 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6441 esac
6442 else
6443 lt_prog_compiler_pic=
6444 lt_prog_compiler_can_build_shared=no
6445 fi
6447 fi
6448 case $host_os in
6449 # For platforms which do not support PIC, -DPIC is meaningless:
6450 *djgpp*)
6451 lt_prog_compiler_pic=
6452 ;;
6453 *)
6454 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6455 ;;
6456 esac
6458 #
6459 # Check to make sure the static flag actually works.
6460 #
6461 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6462 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6463 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6464 if test "${lt_prog_compiler_static_works+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 lt_prog_compiler_static_works=no
6468 save_LDFLAGS="$LDFLAGS"
6469 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6470 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6472 # The linker can only warn and ignore the option if not recognized
6473 # So say no if there are warnings
6474 if test -s conftest.err; then
6475 # Append any errors to the config.log.
6476 cat conftest.err 1>&5
6477 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6479 if diff conftest.exp conftest.er2 >/dev/null; then
6480 lt_prog_compiler_static_works=yes
6481 fi
6482 else
6483 lt_prog_compiler_static_works=yes
6484 fi
6485 fi
6486 $rm conftest*
6487 LDFLAGS="$save_LDFLAGS"
6489 fi
6490 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6491 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6493 if test x"$lt_prog_compiler_static_works" = xyes; then
6494 :
6495 else
6496 lt_prog_compiler_static=
6497 fi
6500 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6501 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6502 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 lt_cv_prog_compiler_c_o=no
6506 $rm -r conftest 2>/dev/null
6507 mkdir conftest
6508 cd conftest
6509 mkdir out
6510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6512 lt_compiler_flag="-o out/conftest2.$ac_objext"
6513 # Insert the option either (1) after the last *FLAGS variable, or
6514 # (2) before a word containing "conftest.", or (3) at the end.
6515 # Note that $ac_compile itself does not contain backslashes and begins
6516 # with a dollar sign (not a hyphen), so the echo should work correctly.
6517 lt_compile=`echo "$ac_compile" | $SED \
6518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6520 -e 's:$: $lt_compiler_flag:'`
6521 (eval echo "\"\$as_me:6521: $lt_compile\"" >&5)
6522 (eval "$lt_compile" 2>out/conftest.err)
6523 ac_status=$?
6524 cat out/conftest.err >&5
6525 echo "$as_me:6525: \$? = $ac_status" >&5
6526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6527 then
6528 # The compiler can only warn and ignore the option if not recognized
6529 # So say no if there are warnings
6530 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6533 lt_cv_prog_compiler_c_o=yes
6534 fi
6535 fi
6536 chmod u+w . 2>&5
6537 $rm conftest*
6538 # SGI C++ compiler will create directory out/ii_files/ for
6539 # template instantiation
6540 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6541 $rm out/* && rmdir out
6542 cd ..
6543 rmdir conftest
6544 $rm conftest*
6546 fi
6547 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6548 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6551 hard_links="nottested"
6552 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6553 # do not overwrite the value of need_locks provided by the user
6554 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6555 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6556 hard_links=yes
6557 $rm conftest*
6558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6559 touch conftest.a
6560 ln conftest.a conftest.b 2>&5 || hard_links=no
6561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6562 echo "$as_me:$LINENO: result: $hard_links" >&5
6563 echo "${ECHO_T}$hard_links" >&6
6564 if test "$hard_links" = no; then
6565 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6566 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6567 need_locks=warn
6568 fi
6569 else
6570 need_locks=no
6571 fi
6573 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6574 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6576 runpath_var=
6577 allow_undefined_flag=
6578 enable_shared_with_static_runtimes=no
6579 archive_cmds=
6580 archive_expsym_cmds=
6581 old_archive_From_new_cmds=
6582 old_archive_from_expsyms_cmds=
6583 export_dynamic_flag_spec=
6584 whole_archive_flag_spec=
6585 thread_safe_flag_spec=
6586 hardcode_libdir_flag_spec=
6587 hardcode_libdir_flag_spec_ld=
6588 hardcode_libdir_separator=
6589 hardcode_direct=no
6590 hardcode_minus_L=no
6591 hardcode_shlibpath_var=unsupported
6592 link_all_deplibs=unknown
6593 hardcode_automatic=no
6594 module_cmds=
6595 module_expsym_cmds=
6596 always_export_symbols=no
6597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6598 # include_expsyms should be a list of space-separated symbols to be *always*
6599 # included in the symbol list
6600 include_expsyms=
6601 # exclude_expsyms can be an extended regexp of symbols to exclude
6602 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6603 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6604 # as well as any symbol that contains `d'.
6605 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6606 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6607 # platforms (ab)use it in PIC code, but their linkers get confused if
6608 # the symbol is explicitly referenced. Since portable code cannot
6609 # rely on this symbol name, it's probably fine to never include it in
6610 # preloaded symbol tables.
6611 extract_expsyms_cmds=
6612 # Just being paranoid about ensuring that cc_basename is set.
6613 for cc_temp in $compiler""; do
6614 case $cc_temp in
6615 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6616 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6617 \-*) ;;
6618 *) break;;
6619 esac
6620 done
6621 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6623 case $host_os in
6624 cygwin* | mingw* | pw32*)
6625 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6626 # When not using gcc, we currently assume that we are using
6627 # Microsoft Visual C++.
6628 if test "$GCC" != yes; then
6629 with_gnu_ld=no
6630 fi
6631 ;;
6632 interix*)
6633 # we just hope/assume this is gcc and not c89 (= MSVC++)
6634 with_gnu_ld=yes
6635 ;;
6636 openbsd*)
6637 with_gnu_ld=no
6638 ;;
6639 esac
6641 ld_shlibs=yes
6642 if test "$with_gnu_ld" = yes; then
6643 # If archive_cmds runs LD, not CC, wlarc should be empty
6644 wlarc='${wl}'
6646 # Set some defaults for GNU ld with shared library support. These
6647 # are reset later if shared libraries are not supported. Putting them
6648 # here allows them to be overridden if necessary.
6649 runpath_var=LD_RUN_PATH
6650 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6651 export_dynamic_flag_spec='${wl}--export-dynamic'
6652 # ancient GNU ld didn't support --whole-archive et. al.
6653 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6654 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6655 else
6656 whole_archive_flag_spec=
6657 fi
6658 supports_anon_versioning=no
6659 case `$LD -v 2>/dev/null` in
6660 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6661 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6662 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6663 *\ 2.11.*) ;; # other 2.11 versions
6664 *) supports_anon_versioning=yes ;;
6665 esac
6667 # See if GNU ld supports shared libraries.
6668 case $host_os in
6669 aix3* | aix4* | aix5*)
6670 # On AIX/PPC, the GNU linker is very broken
6671 if test "$host_cpu" != ia64; then
6672 ld_shlibs=no
6673 cat <<EOF 1>&2
6675 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6676 *** to be unable to reliably create shared libraries on AIX.
6677 *** Therefore, libtool is disabling shared libraries support. If you
6678 *** really care for shared libraries, you may want to modify your PATH
6679 *** so that a non-GNU linker is found, and then restart.
6681 EOF
6682 fi
6683 ;;
6685 amigaos*)
6686 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)'
6687 hardcode_libdir_flag_spec='-L$libdir'
6688 hardcode_minus_L=yes
6690 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6691 # that the semantics of dynamic libraries on AmigaOS, at least up
6692 # to version 4, is to share data among multiple programs linked
6693 # with the same dynamic library. Since this doesn't match the
6694 # behavior of shared libraries on other platforms, we can't use
6695 # them.
6696 ld_shlibs=no
6697 ;;
6699 beos*)
6700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6701 allow_undefined_flag=unsupported
6702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6703 # support --undefined. This deserves some investigation. FIXME
6704 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6705 else
6706 ld_shlibs=no
6707 fi
6708 ;;
6710 cygwin* | mingw* | pw32*)
6711 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6712 # as there is no search path for DLLs.
6713 hardcode_libdir_flag_spec='-L$libdir'
6714 allow_undefined_flag=unsupported
6715 always_export_symbols=no
6716 enable_shared_with_static_runtimes=yes
6717 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6719 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6721 # If the export-symbols file already is a .def file (1st line
6722 # is EXPORTS), use it as is; otherwise, prepend...
6723 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6724 cp $export_symbols $output_objdir/$soname.def;
6725 else
6726 echo EXPORTS > $output_objdir/$soname.def;
6727 cat $export_symbols >> $output_objdir/$soname.def;
6728 fi~
6729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6730 else
6731 ld_shlibs=no
6732 fi
6733 ;;
6735 interix3*)
6736 hardcode_direct=no
6737 hardcode_shlibpath_var=no
6738 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6739 export_dynamic_flag_spec='${wl}-E'
6740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6741 # Instead, shared libraries are loaded at an image base (0x10000000 by
6742 # default) and relocated if they conflict, which is a slow very memory
6743 # consuming and fragmenting process. To avoid this, we pick a random,
6744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6745 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6747 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'
6748 ;;
6750 linux*)
6751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6752 tmp_addflag=
6753 case $cc_basename,$host_cpu in
6754 pgcc*) # Portland Group C compiler
6755 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'
6756 tmp_addflag=' $pic_flag'
6757 ;;
6758 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6759 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'
6760 tmp_addflag=' $pic_flag -Mnomain' ;;
6761 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6762 tmp_addflag=' -i_dynamic' ;;
6763 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6764 tmp_addflag=' -i_dynamic -nofor_main' ;;
6765 ifc* | ifort*) # Intel Fortran compiler
6766 tmp_addflag=' -nofor_main' ;;
6767 esac
6768 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6770 if test $supports_anon_versioning = yes; then
6771 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6773 $echo "local: *; };" >> $output_objdir/$libname.ver~
6774 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6775 fi
6776 else
6777 ld_shlibs=no
6778 fi
6779 ;;
6781 netbsd*)
6782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6783 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6784 wlarc=
6785 else
6786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6788 fi
6789 ;;
6791 solaris*)
6792 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6793 ld_shlibs=no
6794 cat <<EOF 1>&2
6796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6797 *** create shared libraries on Solaris systems. Therefore, libtool
6798 *** is disabling shared libraries support. We urge you to upgrade GNU
6799 *** binutils to release 2.9.1 or newer. Another option is to modify
6800 *** your PATH or compiler configuration so that the native linker is
6801 *** used, and then restart.
6803 EOF
6804 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6807 else
6808 ld_shlibs=no
6809 fi
6810 ;;
6812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6813 case `$LD -v 2>&1` in
6814 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6815 ld_shlibs=no
6816 cat <<_LT_EOF 1>&2
6818 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6819 *** reliably create shared libraries on SCO systems. Therefore, libtool
6820 *** is disabling shared libraries support. We urge you to upgrade GNU
6821 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6822 *** your PATH or compiler configuration so that the native linker is
6823 *** used, and then restart.
6825 _LT_EOF
6826 ;;
6827 *)
6828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6829 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6832 else
6833 ld_shlibs=no
6834 fi
6835 ;;
6836 esac
6837 ;;
6839 sunos4*)
6840 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6841 wlarc=
6842 hardcode_direct=yes
6843 hardcode_shlibpath_var=no
6844 ;;
6846 *)
6847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6850 else
6851 ld_shlibs=no
6852 fi
6853 ;;
6854 esac
6856 if test "$ld_shlibs" = no; then
6857 runpath_var=
6858 hardcode_libdir_flag_spec=
6859 export_dynamic_flag_spec=
6860 whole_archive_flag_spec=
6861 fi
6862 else
6863 # PORTME fill in a description of your system's linker (not GNU ld)
6864 case $host_os in
6865 aix3*)
6866 allow_undefined_flag=unsupported
6867 always_export_symbols=yes
6868 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'
6869 # Note: this linker hardcodes the directories in LIBPATH if there
6870 # are no directories specified by -L.
6871 hardcode_minus_L=yes
6872 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6873 # Neither direct hardcoding nor static linking is supported with a
6874 # broken collect2.
6875 hardcode_direct=unsupported
6876 fi
6877 ;;
6879 aix4* | aix5*)
6880 if test "$host_cpu" = ia64; then
6881 # On IA64, the linker does run time linking by default, so we don't
6882 # have to do anything special.
6883 aix_use_runtimelinking=no
6884 exp_sym_flag='-Bexport'
6885 no_entry_flag=""
6886 else
6887 # If we're using GNU nm, then we don't want the "-C" option.
6888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6889 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6890 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'
6891 else
6892 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'
6893 fi
6894 aix_use_runtimelinking=no
6896 # Test if we are trying to use run time linking or normal
6897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6898 # need to do runtime linking.
6899 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6900 for ld_flag in $LDFLAGS; do
6901 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6902 aix_use_runtimelinking=yes
6903 break
6904 fi
6905 done
6906 ;;
6907 esac
6909 exp_sym_flag='-bexport'
6910 no_entry_flag='-bnoentry'
6911 fi
6913 # When large executables or shared objects are built, AIX ld can
6914 # have problems creating the table of contents. If linking a library
6915 # or program results in "error TOC overflow" add -mminimal-toc to
6916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6919 archive_cmds=''
6920 hardcode_direct=yes
6921 hardcode_libdir_separator=':'
6922 link_all_deplibs=yes
6924 if test "$GCC" = yes; then
6925 case $host_os in aix4.[012]|aix4.[012].*)
6926 # We only want to do this on AIX 4.2 and lower, the check
6927 # below for broken collect2 doesn't work under 4.3+
6928 collect2name=`${CC} -print-prog-name=collect2`
6929 if test -f "$collect2name" && \
6930 strings "$collect2name" | grep resolve_lib_name >/dev/null
6931 then
6932 # We have reworked collect2
6933 hardcode_direct=yes
6934 else
6935 # We have old collect2
6936 hardcode_direct=unsupported
6937 # It fails to find uninstalled libraries when the uninstalled
6938 # path is not listed in the libpath. Setting hardcode_minus_L
6939 # to unsupported forces relinking
6940 hardcode_minus_L=yes
6941 hardcode_libdir_flag_spec='-L$libdir'
6942 hardcode_libdir_separator=
6943 fi
6944 ;;
6945 esac
6946 shared_flag='-shared'
6947 if test "$aix_use_runtimelinking" = yes; then
6948 shared_flag="$shared_flag "'${wl}-G'
6949 fi
6950 else
6951 # not using gcc
6952 if test "$host_cpu" = ia64; then
6953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6954 # chokes on -Wl,-G. The following line is correct:
6955 shared_flag='-G'
6956 else
6957 if test "$aix_use_runtimelinking" = yes; then
6958 shared_flag='${wl}-G'
6959 else
6960 shared_flag='${wl}-bM:SRE'
6961 fi
6962 fi
6963 fi
6965 # It seems that -bexpall does not export symbols beginning with
6966 # underscore (_), so it is better to generate a list of symbols to export.
6967 always_export_symbols=yes
6968 if test "$aix_use_runtimelinking" = yes; then
6969 # Warning - without using the other runtime loading flags (-brtl),
6970 # -berok will link without error, but may produce a broken library.
6971 allow_undefined_flag='-berok'
6972 # Determine the default libpath from the value encoded in an empty executable.
6973 cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h. */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6980 int
6981 main ()
6982 {
6984 ;
6985 return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest.$ac_objext conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990 (eval $ac_link) 2>conftest.er1
6991 ac_status=$?
6992 grep -v '^ *+' conftest.er1 >conftest.err
6993 rm -f conftest.er1
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } &&
6997 { ac_try='test -z "$ac_c_werror_flag"
6998 || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try='test -s conftest$ac_exeext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7012 }'`
7013 # Check for a 64-bit object if we didn't find anything.
7014 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7015 }'`; fi
7016 else
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 fi
7021 rm -f conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7025 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7026 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"
7027 else
7028 if test "$host_cpu" = ia64; then
7029 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7030 allow_undefined_flag="-z nodefs"
7031 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"
7032 else
7033 # Determine the default libpath from the value encoded in an empty executable.
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h. */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7041 int
7042 main ()
7043 {
7045 ;
7046 return 0;
7047 }
7048 _ACEOF
7049 rm -f conftest.$ac_objext conftest$ac_exeext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } &&
7058 { ac_try='test -z "$ac_c_werror_flag"
7059 || test ! -s conftest.err'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; } &&
7065 { ac_try='test -s conftest$ac_exeext'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 (eval $ac_try) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7073 }'`
7074 # Check for a 64-bit object if we didn't find anything.
7075 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7076 }'`; fi
7077 else
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7081 fi
7082 rm -f conftest.err conftest.$ac_objext \
7083 conftest$ac_exeext conftest.$ac_ext
7084 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7086 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7087 # Warning - without using the other run time loading flags,
7088 # -berok will link without error, but may produce a broken library.
7089 no_undefined_flag=' ${wl}-bernotok'
7090 allow_undefined_flag=' ${wl}-berok'
7091 # Exported symbols can be pulled into shared objects from archives
7092 whole_archive_flag_spec='$convenience'
7093 archive_cmds_need_lc=yes
7094 # This is similar to how AIX traditionally builds its shared libraries.
7095 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'
7096 fi
7097 fi
7098 ;;
7100 amigaos*)
7101 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)'
7102 hardcode_libdir_flag_spec='-L$libdir'
7103 hardcode_minus_L=yes
7104 # see comment about different semantics on the GNU ld section
7105 ld_shlibs=no
7106 ;;
7108 bsdi[45]*)
7109 export_dynamic_flag_spec=-rdynamic
7110 ;;
7112 cygwin* | mingw* | pw32*)
7113 # When not using gcc, we currently assume that we are using
7114 # Microsoft Visual C++.
7115 # hardcode_libdir_flag_spec is actually meaningless, as there is
7116 # no search path for DLLs.
7117 hardcode_libdir_flag_spec=' '
7118 allow_undefined_flag=unsupported
7119 # Tell ltmain to make .lib files, not .a files.
7120 libext=lib
7121 # Tell ltmain to make .dll files, not .so files.
7122 shrext_cmds=".dll"
7123 # FIXME: Setting linknames here is a bad hack.
7124 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7125 # The linker will automatically build a .lib file if we build a DLL.
7126 old_archive_From_new_cmds='true'
7127 # FIXME: Should let the user specify the lib program.
7128 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7129 fix_srcfile_path='`cygpath -w "$srcfile"`'
7130 enable_shared_with_static_runtimes=yes
7131 ;;
7133 darwin* | rhapsody*)
7134 case $host_os in
7135 rhapsody* | darwin1.[012])
7136 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7137 ;;
7138 *) # Darwin 1.3 on
7139 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7140 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7141 else
7142 case ${MACOSX_DEPLOYMENT_TARGET} in
7143 10.[012])
7144 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7145 ;;
7146 10.*)
7147 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7148 ;;
7149 esac
7150 fi
7151 ;;
7152 esac
7153 archive_cmds_need_lc=no
7154 hardcode_direct=no
7155 hardcode_automatic=yes
7156 hardcode_shlibpath_var=unsupported
7157 whole_archive_flag_spec=''
7158 link_all_deplibs=yes
7159 if test "$GCC" = yes ; then
7160 output_verbose_link_cmd='echo'
7161 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7162 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7163 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7164 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7165 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}'
7166 else
7167 case $cc_basename in
7168 xlc*)
7169 output_verbose_link_cmd='echo'
7170 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7171 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7173 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7174 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}'
7175 ;;
7176 *)
7177 ld_shlibs=no
7178 ;;
7179 esac
7180 fi
7181 ;;
7183 dgux*)
7184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7185 hardcode_libdir_flag_spec='-L$libdir'
7186 hardcode_shlibpath_var=no
7187 ;;
7189 freebsd1*)
7190 ld_shlibs=no
7191 ;;
7193 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7194 # support. Future versions do this automatically, but an explicit c++rt0.o
7195 # does not break anything, and helps significantly (at the cost of a little
7196 # extra space).
7197 freebsd2.2*)
7198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7199 hardcode_libdir_flag_spec='-R$libdir'
7200 hardcode_direct=yes
7201 hardcode_shlibpath_var=no
7202 ;;
7204 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7205 freebsd2*)
7206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7207 hardcode_direct=yes
7208 hardcode_minus_L=yes
7209 hardcode_shlibpath_var=no
7210 ;;
7212 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7213 freebsd* | kfreebsd*-gnu | dragonfly*)
7214 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7215 hardcode_libdir_flag_spec='-R$libdir'
7216 hardcode_direct=yes
7217 hardcode_shlibpath_var=no
7218 ;;
7220 hpux9*)
7221 if test "$GCC" = yes; then
7222 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'
7223 else
7224 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'
7225 fi
7226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7227 hardcode_libdir_separator=:
7228 hardcode_direct=yes
7230 # hardcode_minus_L: Not really in the search PATH,
7231 # but as the default location of the library.
7232 hardcode_minus_L=yes
7233 export_dynamic_flag_spec='${wl}-E'
7234 ;;
7236 hpux10*)
7237 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7238 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7239 else
7240 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7241 fi
7242 if test "$with_gnu_ld" = no; then
7243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7244 hardcode_libdir_separator=:
7246 hardcode_direct=yes
7247 export_dynamic_flag_spec='${wl}-E'
7249 # hardcode_minus_L: Not really in the search PATH,
7250 # but as the default location of the library.
7251 hardcode_minus_L=yes
7252 fi
7253 ;;
7255 hpux11*)
7256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7257 case $host_cpu in
7258 hppa*64*)
7259 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7260 ;;
7261 ia64*)
7262 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7263 ;;
7264 *)
7265 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7266 ;;
7267 esac
7268 else
7269 case $host_cpu in
7270 hppa*64*)
7271 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7272 ;;
7273 ia64*)
7274 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7275 ;;
7276 *)
7277 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7278 ;;
7279 esac
7280 fi
7281 if test "$with_gnu_ld" = no; then
7282 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7283 hardcode_libdir_separator=:
7285 case $host_cpu in
7286 hppa*64*|ia64*)
7287 hardcode_libdir_flag_spec_ld='+b $libdir'
7288 hardcode_direct=no
7289 hardcode_shlibpath_var=no
7290 ;;
7291 *)
7292 hardcode_direct=yes
7293 export_dynamic_flag_spec='${wl}-E'
7295 # hardcode_minus_L: Not really in the search PATH,
7296 # but as the default location of the library.
7297 hardcode_minus_L=yes
7298 ;;
7299 esac
7300 fi
7301 ;;
7303 irix5* | irix6* | nonstopux*)
7304 if test "$GCC" = yes; then
7305 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'
7306 else
7307 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'
7308 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7309 fi
7310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7311 hardcode_libdir_separator=:
7312 link_all_deplibs=yes
7313 ;;
7315 netbsd*)
7316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7318 else
7319 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7320 fi
7321 hardcode_libdir_flag_spec='-R$libdir'
7322 hardcode_direct=yes
7323 hardcode_shlibpath_var=no
7324 ;;
7326 newsos6)
7327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328 hardcode_direct=yes
7329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7330 hardcode_libdir_separator=:
7331 hardcode_shlibpath_var=no
7332 ;;
7334 openbsd*)
7335 hardcode_direct=yes
7336 hardcode_shlibpath_var=no
7337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7339 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7341 export_dynamic_flag_spec='${wl}-E'
7342 else
7343 case $host_os in
7344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7346 hardcode_libdir_flag_spec='-R$libdir'
7347 ;;
7348 *)
7349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7351 ;;
7352 esac
7353 fi
7354 ;;
7356 os2*)
7357 hardcode_libdir_flag_spec='-L$libdir'
7358 hardcode_minus_L=yes
7359 allow_undefined_flag=unsupported
7360 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'
7361 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7362 ;;
7364 osf3*)
7365 if test "$GCC" = yes; then
7366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7367 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'
7368 else
7369 allow_undefined_flag=' -expect_unresolved \*'
7370 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'
7371 fi
7372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7373 hardcode_libdir_separator=:
7374 ;;
7376 osf4* | osf5*) # as osf3* with the addition of -msym flag
7377 if test "$GCC" = yes; then
7378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7379 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'
7380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7381 else
7382 allow_undefined_flag=' -expect_unresolved \*'
7383 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'
7384 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7385 $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'
7387 # Both c and cxx compiler support -rpath directly
7388 hardcode_libdir_flag_spec='-rpath $libdir'
7389 fi
7390 hardcode_libdir_separator=:
7391 ;;
7393 solaris*)
7394 no_undefined_flag=' -z text'
7395 if test "$GCC" = yes; then
7396 wlarc='${wl}'
7397 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7398 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7399 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7400 else
7401 wlarc=''
7402 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7405 fi
7406 hardcode_libdir_flag_spec='-R$libdir'
7407 hardcode_shlibpath_var=no
7408 case $host_os in
7409 solaris2.[0-5] | solaris2.[0-5].*) ;;
7410 *)
7411 # The compiler driver will combine linker options so we
7412 # cannot just pass the convience library names through
7413 # without $wl, iff we do not link with $LD.
7414 # Luckily, gcc supports the same syntax we need for Sun Studio.
7415 # Supported since Solaris 2.6 (maybe 2.5.1?)
7416 case $wlarc in
7417 '')
7418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7419 *)
7420 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7421 esac ;;
7422 esac
7423 link_all_deplibs=yes
7424 ;;
7426 sunos4*)
7427 if test "x$host_vendor" = xsequent; then
7428 # Use $CC to link under sequent, because it throws in some extra .o
7429 # files that make .init and .fini sections work.
7430 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7431 else
7432 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7433 fi
7434 hardcode_libdir_flag_spec='-L$libdir'
7435 hardcode_direct=yes
7436 hardcode_minus_L=yes
7437 hardcode_shlibpath_var=no
7438 ;;
7440 sysv4)
7441 case $host_vendor in
7442 sni)
7443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7444 hardcode_direct=yes # is this really true???
7445 ;;
7446 siemens)
7447 ## LD is ld it makes a PLAMLIB
7448 ## CC just makes a GrossModule.
7449 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7450 reload_cmds='$CC -r -o $output$reload_objs'
7451 hardcode_direct=no
7452 ;;
7453 motorola)
7454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7456 ;;
7457 esac
7458 runpath_var='LD_RUN_PATH'
7459 hardcode_shlibpath_var=no
7460 ;;
7462 sysv4.3*)
7463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464 hardcode_shlibpath_var=no
7465 export_dynamic_flag_spec='-Bexport'
7466 ;;
7468 sysv4*MP*)
7469 if test -d /usr/nec; then
7470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7471 hardcode_shlibpath_var=no
7472 runpath_var=LD_RUN_PATH
7473 hardcode_runpath_var=yes
7474 ld_shlibs=yes
7475 fi
7476 ;;
7478 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7479 no_undefined_flag='${wl}-z,text'
7480 archive_cmds_need_lc=no
7481 hardcode_shlibpath_var=no
7482 runpath_var='LD_RUN_PATH'
7484 if test "$GCC" = yes; then
7485 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7486 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7487 else
7488 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7489 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7490 fi
7491 ;;
7493 sysv5* | sco3.2v5* | sco5v6*)
7494 # Note: We can NOT use -z defs as we might desire, because we do not
7495 # link with -lc, and that would cause any symbols used from libc to
7496 # always be unresolved, which means just about no library would
7497 # ever link correctly. If we're not using GNU ld we use -z text
7498 # though, which does catch some bad symbols but isn't as heavy-handed
7499 # as -z defs.
7500 no_undefined_flag='${wl}-z,text'
7501 allow_undefined_flag='${wl}-z,nodefs'
7502 archive_cmds_need_lc=no
7503 hardcode_shlibpath_var=no
7504 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7505 hardcode_libdir_separator=':'
7506 link_all_deplibs=yes
7507 export_dynamic_flag_spec='${wl}-Bexport'
7508 runpath_var='LD_RUN_PATH'
7510 if test "$GCC" = yes; then
7511 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7512 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7513 else
7514 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7515 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7516 fi
7517 ;;
7519 uts4*)
7520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7521 hardcode_libdir_flag_spec='-L$libdir'
7522 hardcode_shlibpath_var=no
7523 ;;
7525 *)
7526 ld_shlibs=no
7527 ;;
7528 esac
7529 fi
7531 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7532 echo "${ECHO_T}$ld_shlibs" >&6
7533 test "$ld_shlibs" = no && can_build_shared=no
7535 #
7536 # Do we need to explicitly link libc?
7537 #
7538 case "x$archive_cmds_need_lc" in
7539 x|xyes)
7540 # Assume -lc should be added
7541 archive_cmds_need_lc=yes
7543 if test "$enable_shared" = yes && test "$GCC" = yes; then
7544 case $archive_cmds in
7545 *'~'*)
7546 # FIXME: we may have to deal with multi-command sequences.
7547 ;;
7548 '$CC '*)
7549 # Test whether the compiler implicitly links with -lc since on some
7550 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7551 # to ld, don't add -lc before -lgcc.
7552 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7553 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7554 $rm conftest*
7555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558 (eval $ac_compile) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } 2>conftest.err; then
7562 soname=conftest
7563 lib=conftest
7564 libobjs=conftest.$ac_objext
7565 deplibs=
7566 wl=$lt_prog_compiler_wl
7567 pic_flag=$lt_prog_compiler_pic
7568 compiler_flags=-v
7569 linker_flags=-v
7570 verstring=
7571 output_objdir=.
7572 libname=conftest
7573 lt_save_allow_undefined_flag=$allow_undefined_flag
7574 allow_undefined_flag=
7575 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7576 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }
7580 then
7581 archive_cmds_need_lc=no
7582 else
7583 archive_cmds_need_lc=yes
7584 fi
7585 allow_undefined_flag=$lt_save_allow_undefined_flag
7586 else
7587 cat conftest.err 1>&5
7588 fi
7589 $rm conftest*
7590 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7591 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7592 ;;
7593 esac
7594 fi
7595 ;;
7596 esac
7598 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7600 library_names_spec=
7601 libname_spec='lib$name'
7602 soname_spec=
7603 shrext_cmds=".so"
7604 postinstall_cmds=
7605 postuninstall_cmds=
7606 finish_cmds=
7607 finish_eval=
7608 shlibpath_var=
7609 shlibpath_overrides_runpath=unknown
7610 version_type=none
7611 dynamic_linker="$host_os ld.so"
7612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7613 if test "$GCC" = yes; then
7614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7615 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7616 # if the path contains ";" then we assume it to be the separator
7617 # otherwise default to the standard path separator (i.e. ":") - it is
7618 # assumed that no part of a normal pathname contains ";" but that should
7619 # okay in the real world where ";" in dirpaths is itself problematic.
7620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7621 else
7622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7623 fi
7624 else
7625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7626 fi
7627 need_lib_prefix=unknown
7628 hardcode_into_libs=no
7630 # when you set need_version to no, make sure it does not cause -set_version
7631 # flags to be left without arguments
7632 need_version=unknown
7634 case $host_os in
7635 aix3*)
7636 version_type=linux
7637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7638 shlibpath_var=LIBPATH
7640 # AIX 3 has no versioning support, so we append a major version to the name.
7641 soname_spec='${libname}${release}${shared_ext}$major'
7642 ;;
7644 aix4* | aix5*)
7645 version_type=linux
7646 need_lib_prefix=no
7647 need_version=no
7648 hardcode_into_libs=yes
7649 if test "$host_cpu" = ia64; then
7650 # AIX 5 supports IA64
7651 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7652 shlibpath_var=LD_LIBRARY_PATH
7653 else
7654 # With GCC up to 2.95.x, collect2 would create an import file
7655 # for dependence libraries. The import file would start with
7656 # the line `#! .'. This would cause the generated library to
7657 # depend on `.', always an invalid library. This was fixed in
7658 # development snapshots of GCC prior to 3.0.
7659 case $host_os in
7660 aix4 | aix4.[01] | aix4.[01].*)
7661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7662 echo ' yes '
7663 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7664 :
7665 else
7666 can_build_shared=no
7667 fi
7668 ;;
7669 esac
7670 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7671 # soname into executable. Probably we can add versioning support to
7672 # collect2, so additional links can be useful in future.
7673 if test "$aix_use_runtimelinking" = yes; then
7674 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7675 # instead of lib<name>.a to let people know that these are not
7676 # typical AIX shared libraries.
7677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678 else
7679 # We preserve .a as extension for shared libraries through AIX4.2
7680 # and later when we are not doing run time linking.
7681 library_names_spec='${libname}${release}.a $libname.a'
7682 soname_spec='${libname}${release}${shared_ext}$major'
7683 fi
7684 shlibpath_var=LIBPATH
7685 fi
7686 ;;
7688 amigaos*)
7689 library_names_spec='$libname.ixlibrary $libname.a'
7690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7691 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'
7692 ;;
7694 beos*)
7695 library_names_spec='${libname}${shared_ext}'
7696 dynamic_linker="$host_os ld.so"
7697 shlibpath_var=LIBRARY_PATH
7698 ;;
7700 bsdi[45]*)
7701 version_type=linux
7702 need_version=no
7703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7704 soname_spec='${libname}${release}${shared_ext}$major'
7705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7706 shlibpath_var=LD_LIBRARY_PATH
7707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7709 # the default ld.so.conf also contains /usr/contrib/lib and
7710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7711 # libtool to hard-code these into programs
7712 ;;
7714 cygwin* | mingw* | pw32*)
7715 version_type=windows
7716 shrext_cmds=".dll"
7717 need_version=no
7718 need_lib_prefix=no
7720 case $GCC,$host_os in
7721 yes,cygwin* | yes,mingw* | yes,pw32*)
7722 library_names_spec='$libname.dll.a'
7723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7724 postinstall_cmds='base_file=`basename \${file}`~
7725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7726 dldir=$destdir/`dirname \$dlpath`~
7727 test -d \$dldir || mkdir -p \$dldir~
7728 $install_prog $dir/$dlname \$dldir/$dlname~
7729 chmod a+x \$dldir/$dlname'
7730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7731 dlpath=$dir/\$dldll~
7732 $rm \$dlpath'
7733 shlibpath_overrides_runpath=yes
7735 case $host_os in
7736 cygwin*)
7737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7739 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7740 ;;
7741 mingw*)
7742 # MinGW DLLs use traditional 'lib' prefix
7743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7744 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7745 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7746 # It is most probably a Windows format PATH printed by
7747 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7748 # path with ; separators, and with drive letters. We can handle the
7749 # drive letters (cygwin fileutils understands them), so leave them,
7750 # especially as we might pass files found there to a mingw objdump,
7751 # which wouldn't understand a cygwinified path. Ahh.
7752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7753 else
7754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7755 fi
7756 ;;
7757 pw32*)
7758 # pw32 DLLs use 'pw' prefix rather than 'lib'
7759 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7760 ;;
7761 esac
7762 ;;
7764 *)
7765 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7766 ;;
7767 esac
7768 dynamic_linker='Win32 ld.exe'
7769 # FIXME: first we should search . and the directory the executable is in
7770 shlibpath_var=PATH
7771 ;;
7773 darwin* | rhapsody*)
7774 dynamic_linker="$host_os dyld"
7775 version_type=darwin
7776 need_lib_prefix=no
7777 need_version=no
7778 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7779 soname_spec='${libname}${release}${major}$shared_ext'
7780 shlibpath_overrides_runpath=yes
7781 shlibpath_var=DYLD_LIBRARY_PATH
7782 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7783 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7784 if test "$GCC" = yes; then
7785 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7786 else
7787 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7788 fi
7789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7790 ;;
7792 dgux*)
7793 version_type=linux
7794 need_lib_prefix=no
7795 need_version=no
7796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7797 soname_spec='${libname}${release}${shared_ext}$major'
7798 shlibpath_var=LD_LIBRARY_PATH
7799 ;;
7801 freebsd1*)
7802 dynamic_linker=no
7803 ;;
7805 kfreebsd*-gnu)
7806 version_type=linux
7807 need_lib_prefix=no
7808 need_version=no
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7810 soname_spec='${libname}${release}${shared_ext}$major'
7811 shlibpath_var=LD_LIBRARY_PATH
7812 shlibpath_overrides_runpath=no
7813 hardcode_into_libs=yes
7814 dynamic_linker='GNU ld.so'
7815 ;;
7817 freebsd* | dragonfly*)
7818 # DragonFly does not have aout. When/if they implement a new
7819 # versioning mechanism, adjust this.
7820 if test -x /usr/bin/objformat; then
7821 objformat=`/usr/bin/objformat`
7822 else
7823 case $host_os in
7824 freebsd[123]*) objformat=aout ;;
7825 *) objformat=elf ;;
7826 esac
7827 fi
7828 version_type=freebsd-$objformat
7829 case $version_type in
7830 freebsd-elf*)
7831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7832 need_version=no
7833 need_lib_prefix=no
7834 ;;
7835 freebsd-*)
7836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7837 need_version=yes
7838 ;;
7839 esac
7840 shlibpath_var=LD_LIBRARY_PATH
7841 case $host_os in
7842 freebsd2*)
7843 shlibpath_overrides_runpath=yes
7844 ;;
7845 freebsd3.[01]* | freebsdelf3.[01]*)
7846 shlibpath_overrides_runpath=yes
7847 hardcode_into_libs=yes
7848 ;;
7849 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7850 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7851 shlibpath_overrides_runpath=no
7852 hardcode_into_libs=yes
7853 ;;
7854 freebsd*) # from 4.6 on
7855 shlibpath_overrides_runpath=yes
7856 hardcode_into_libs=yes
7857 ;;
7858 esac
7859 ;;
7861 gnu*)
7862 version_type=linux
7863 need_lib_prefix=no
7864 need_version=no
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7866 soname_spec='${libname}${release}${shared_ext}$major'
7867 shlibpath_var=LD_LIBRARY_PATH
7868 hardcode_into_libs=yes
7869 ;;
7871 hpux9* | hpux10* | hpux11*)
7872 # Give a soname corresponding to the major version so that dld.sl refuses to
7873 # link against other versions.
7874 version_type=sunos
7875 need_lib_prefix=no
7876 need_version=no
7877 case $host_cpu in
7878 ia64*)
7879 shrext_cmds='.so'
7880 hardcode_into_libs=yes
7881 dynamic_linker="$host_os dld.so"
7882 shlibpath_var=LD_LIBRARY_PATH
7883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7885 soname_spec='${libname}${release}${shared_ext}$major'
7886 if test "X$HPUX_IA64_MODE" = X32; then
7887 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7888 else
7889 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7890 fi
7891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7892 ;;
7893 hppa*64*)
7894 shrext_cmds='.sl'
7895 hardcode_into_libs=yes
7896 dynamic_linker="$host_os dld.sl"
7897 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900 soname_spec='${libname}${release}${shared_ext}$major'
7901 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7903 ;;
7904 *)
7905 shrext_cmds='.sl'
7906 dynamic_linker="$host_os dld.sl"
7907 shlibpath_var=SHLIB_PATH
7908 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7910 soname_spec='${libname}${release}${shared_ext}$major'
7911 ;;
7912 esac
7913 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7914 postinstall_cmds='chmod 555 $lib'
7915 ;;
7917 interix3*)
7918 version_type=linux
7919 need_lib_prefix=no
7920 need_version=no
7921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7922 soname_spec='${libname}${release}${shared_ext}$major'
7923 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7924 shlibpath_var=LD_LIBRARY_PATH
7925 shlibpath_overrides_runpath=no
7926 hardcode_into_libs=yes
7927 ;;
7929 irix5* | irix6* | nonstopux*)
7930 case $host_os in
7931 nonstopux*) version_type=nonstopux ;;
7932 *)
7933 if test "$lt_cv_prog_gnu_ld" = yes; then
7934 version_type=linux
7935 else
7936 version_type=irix
7937 fi ;;
7938 esac
7939 need_lib_prefix=no
7940 need_version=no
7941 soname_spec='${libname}${release}${shared_ext}$major'
7942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7943 case $host_os in
7944 irix5* | nonstopux*)
7945 libsuff= shlibsuff=
7946 ;;
7947 *)
7948 case $LD in # libtool.m4 will add one of these switches to LD
7949 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7950 libsuff= shlibsuff= libmagic=32-bit;;
7951 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7952 libsuff=32 shlibsuff=N32 libmagic=N32;;
7953 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7954 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7955 *) libsuff= shlibsuff= libmagic=never-match;;
7956 esac
7957 ;;
7958 esac
7959 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7960 shlibpath_overrides_runpath=no
7961 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7962 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7963 hardcode_into_libs=yes
7964 ;;
7966 # No shared lib support for Linux oldld, aout, or coff.
7967 linux*oldld* | linux*aout* | linux*coff*)
7968 dynamic_linker=no
7969 ;;
7971 # This must be Linux ELF.
7972 linux*)
7973 version_type=linux
7974 need_lib_prefix=no
7975 need_version=no
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7977 soname_spec='${libname}${release}${shared_ext}$major'
7978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7979 shlibpath_var=LD_LIBRARY_PATH
7980 shlibpath_overrides_runpath=no
7981 # This implies no fast_install, which is unacceptable.
7982 # Some rework will be needed to allow for fast_install
7983 # before this can be enabled.
7984 hardcode_into_libs=yes
7986 # Append ld.so.conf contents to the search path
7987 if test -f /etc/ld.so.conf; then
7988 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7989 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7990 fi
7992 # We used to test for /lib/ld.so.1 and disable shared libraries on
7993 # powerpc, because MkLinux only supported shared libraries with the
7994 # GNU dynamic linker. Since this was broken with cross compilers,
7995 # most powerpc-linux boxes support dynamic linking these days and
7996 # people can always --disable-shared, the test was removed, and we
7997 # assume the GNU/Linux dynamic linker is in use.
7998 dynamic_linker='GNU/Linux ld.so'
7999 ;;
8001 knetbsd*-gnu)
8002 version_type=linux
8003 need_lib_prefix=no
8004 need_version=no
8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8006 soname_spec='${libname}${release}${shared_ext}$major'
8007 shlibpath_var=LD_LIBRARY_PATH
8008 shlibpath_overrides_runpath=no
8009 hardcode_into_libs=yes
8010 dynamic_linker='GNU ld.so'
8011 ;;
8013 netbsd*)
8014 version_type=sunos
8015 need_lib_prefix=no
8016 need_version=no
8017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8020 dynamic_linker='NetBSD (a.out) ld.so'
8021 else
8022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8023 soname_spec='${libname}${release}${shared_ext}$major'
8024 dynamic_linker='NetBSD ld.elf_so'
8025 fi
8026 shlibpath_var=LD_LIBRARY_PATH
8027 shlibpath_overrides_runpath=yes
8028 hardcode_into_libs=yes
8029 ;;
8031 newsos6)
8032 version_type=linux
8033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8034 shlibpath_var=LD_LIBRARY_PATH
8035 shlibpath_overrides_runpath=yes
8036 ;;
8038 nto-qnx*)
8039 version_type=linux
8040 need_lib_prefix=no
8041 need_version=no
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8043 soname_spec='${libname}${release}${shared_ext}$major'
8044 shlibpath_var=LD_LIBRARY_PATH
8045 shlibpath_overrides_runpath=yes
8046 ;;
8048 openbsd*)
8049 version_type=sunos
8050 sys_lib_dlsearch_path_spec="/usr/lib"
8051 need_lib_prefix=no
8052 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8053 case $host_os in
8054 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8055 *) need_version=no ;;
8056 esac
8057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8059 shlibpath_var=LD_LIBRARY_PATH
8060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8061 case $host_os in
8062 openbsd2.[89] | openbsd2.[89].*)
8063 shlibpath_overrides_runpath=no
8064 ;;
8065 *)
8066 shlibpath_overrides_runpath=yes
8067 ;;
8068 esac
8069 else
8070 shlibpath_overrides_runpath=yes
8071 fi
8072 ;;
8074 os2*)
8075 libname_spec='$name'
8076 shrext_cmds=".dll"
8077 need_lib_prefix=no
8078 library_names_spec='$libname${shared_ext} $libname.a'
8079 dynamic_linker='OS/2 ld.exe'
8080 shlibpath_var=LIBPATH
8081 ;;
8083 osf3* | osf4* | osf5*)
8084 version_type=osf
8085 need_lib_prefix=no
8086 need_version=no
8087 soname_spec='${libname}${release}${shared_ext}$major'
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8089 shlibpath_var=LD_LIBRARY_PATH
8090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8092 ;;
8094 solaris*)
8095 version_type=linux
8096 need_lib_prefix=no
8097 need_version=no
8098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8099 soname_spec='${libname}${release}${shared_ext}$major'
8100 shlibpath_var=LD_LIBRARY_PATH
8101 shlibpath_overrides_runpath=yes
8102 hardcode_into_libs=yes
8103 # ldd complains unless libraries are executable
8104 postinstall_cmds='chmod +x $lib'
8105 ;;
8107 sunos4*)
8108 version_type=sunos
8109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8110 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8111 shlibpath_var=LD_LIBRARY_PATH
8112 shlibpath_overrides_runpath=yes
8113 if test "$with_gnu_ld" = yes; then
8114 need_lib_prefix=no
8115 fi
8116 need_version=yes
8117 ;;
8119 sysv4 | sysv4.3*)
8120 version_type=linux
8121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8122 soname_spec='${libname}${release}${shared_ext}$major'
8123 shlibpath_var=LD_LIBRARY_PATH
8124 case $host_vendor in
8125 sni)
8126 shlibpath_overrides_runpath=no
8127 need_lib_prefix=no
8128 export_dynamic_flag_spec='${wl}-Blargedynsym'
8129 runpath_var=LD_RUN_PATH
8130 ;;
8131 siemens)
8132 need_lib_prefix=no
8133 ;;
8134 motorola)
8135 need_lib_prefix=no
8136 need_version=no
8137 shlibpath_overrides_runpath=no
8138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8139 ;;
8140 esac
8141 ;;
8143 sysv4*MP*)
8144 if test -d /usr/nec ;then
8145 version_type=linux
8146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8147 soname_spec='$libname${shared_ext}.$major'
8148 shlibpath_var=LD_LIBRARY_PATH
8149 fi
8150 ;;
8152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8153 version_type=freebsd-elf
8154 need_lib_prefix=no
8155 need_version=no
8156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8157 soname_spec='${libname}${release}${shared_ext}$major'
8158 shlibpath_var=LD_LIBRARY_PATH
8159 hardcode_into_libs=yes
8160 if test "$with_gnu_ld" = yes; then
8161 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8162 shlibpath_overrides_runpath=no
8163 else
8164 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8165 shlibpath_overrides_runpath=yes
8166 case $host_os in
8167 sco3.2v5*)
8168 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8169 ;;
8170 esac
8171 fi
8172 sys_lib_dlsearch_path_spec='/usr/lib'
8173 ;;
8175 uts4*)
8176 version_type=linux
8177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8178 soname_spec='${libname}${release}${shared_ext}$major'
8179 shlibpath_var=LD_LIBRARY_PATH
8180 ;;
8182 *)
8183 dynamic_linker=no
8184 ;;
8185 esac
8186 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8187 echo "${ECHO_T}$dynamic_linker" >&6
8188 test "$dynamic_linker" = no && can_build_shared=no
8190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8191 if test "$GCC" = yes; then
8192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8193 fi
8195 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8196 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8197 hardcode_action=
8198 if test -n "$hardcode_libdir_flag_spec" || \
8199 test -n "$runpath_var" || \
8200 test "X$hardcode_automatic" = "Xyes" ; then
8202 # We can hardcode non-existant directories.
8203 if test "$hardcode_direct" != no &&
8204 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8205 # have to relink, otherwise we might link with an installed library
8206 # when we should be linking with a yet-to-be-installed one
8207 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8208 test "$hardcode_minus_L" != no; then
8209 # Linking always hardcodes the temporary library directory.
8210 hardcode_action=relink
8211 else
8212 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8213 hardcode_action=immediate
8214 fi
8215 else
8216 # We cannot hardcode anything, or else we can only hardcode existing
8217 # directories.
8218 hardcode_action=unsupported
8219 fi
8220 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8221 echo "${ECHO_T}$hardcode_action" >&6
8223 if test "$hardcode_action" = relink; then
8224 # Fast installation is not supported
8225 enable_fast_install=no
8226 elif test "$shlibpath_overrides_runpath" = yes ||
8227 test "$enable_shared" = no; then
8228 # Fast installation is not necessary
8229 enable_fast_install=needless
8230 fi
8232 striplib=
8233 old_striplib=
8234 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8235 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8236 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8237 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8238 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8239 echo "$as_me:$LINENO: result: yes" >&5
8240 echo "${ECHO_T}yes" >&6
8241 else
8242 # FIXME - insert some real tests, host_os isn't really good enough
8243 case $host_os in
8244 darwin*)
8245 if test -n "$STRIP" ; then
8246 striplib="$STRIP -x"
8247 echo "$as_me:$LINENO: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8249 else
8250 echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6
8252 fi
8253 ;;
8254 *)
8255 echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8257 ;;
8258 esac
8259 fi
8261 if test "x$enable_dlopen" != xyes; then
8262 enable_dlopen=unknown
8263 enable_dlopen_self=unknown
8264 enable_dlopen_self_static=unknown
8265 else
8266 lt_cv_dlopen=no
8267 lt_cv_dlopen_libs=
8269 case $host_os in
8270 beos*)
8271 lt_cv_dlopen="load_add_on"
8272 lt_cv_dlopen_libs=
8273 lt_cv_dlopen_self=yes
8274 ;;
8276 mingw* | pw32*)
8277 lt_cv_dlopen="LoadLibrary"
8278 lt_cv_dlopen_libs=
8279 ;;
8281 cygwin*)
8282 lt_cv_dlopen="dlopen"
8283 lt_cv_dlopen_libs=
8284 ;;
8286 darwin*)
8287 # if libdl is installed we need to link against it
8288 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8289 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8290 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293 ac_check_lib_save_LIBS=$LIBS
8294 LIBS="-ldl $LIBS"
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8302 /* Override any gcc2 internal prototype to avoid an error. */
8303 #ifdef __cplusplus
8304 extern "C"
8305 #endif
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8308 char dlopen ();
8309 int
8310 main ()
8311 {
8312 dlopen ();
8313 ;
8314 return 0;
8315 }
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_lib_dl_dlopen=yes
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_lib_dl_dlopen=no
8345 fi
8346 rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 LIBS=$ac_check_lib_save_LIBS
8349 fi
8350 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8351 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8352 if test $ac_cv_lib_dl_dlopen = yes; then
8353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8354 else
8356 lt_cv_dlopen="dyld"
8357 lt_cv_dlopen_libs=
8358 lt_cv_dlopen_self=yes
8360 fi
8362 ;;
8364 *)
8365 echo "$as_me:$LINENO: checking for shl_load" >&5
8366 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8367 if test "${ac_cv_func_shl_load+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8378 #define shl_load innocuous_shl_load
8380 /* System header to define __stub macros and hopefully few prototypes,
8381 which can conflict with char shl_load (); below.
8382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8383 <limits.h> exists even on freestanding compilers. */
8385 #ifdef __STDC__
8386 # include <limits.h>
8387 #else
8388 # include <assert.h>
8389 #endif
8391 #undef shl_load
8393 /* Override any gcc2 internal prototype to avoid an error. */
8394 #ifdef __cplusplus
8395 extern "C"
8396 {
8397 #endif
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8400 char shl_load ();
8401 /* The GNU C library defines this for functions which it implements
8402 to always fail with ENOSYS. Some functions are actually named
8403 something starting with __ and the normal name is an alias. */
8404 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8405 choke me
8406 #else
8407 char (*f) () = shl_load;
8408 #endif
8409 #ifdef __cplusplus
8410 }
8411 #endif
8413 int
8414 main ()
8415 {
8416 return f != shl_load;
8417 ;
8418 return 0;
8419 }
8420 _ACEOF
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>conftest.er1
8424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -z "$ac_c_werror_flag"
8431 || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_func_shl_load=yes
8444 else
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 ac_cv_func_shl_load=no
8449 fi
8450 rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 fi
8453 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8454 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8455 if test $ac_cv_func_shl_load = yes; then
8456 lt_cv_dlopen="shl_load"
8457 else
8458 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8459 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8460 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463 ac_check_lib_save_LIBS=$LIBS
8464 LIBS="-ldld $LIBS"
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8472 /* Override any gcc2 internal prototype to avoid an error. */
8473 #ifdef __cplusplus
8474 extern "C"
8475 #endif
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8478 char shl_load ();
8479 int
8480 main ()
8481 {
8482 shl_load ();
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489 (eval $ac_link) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_lib_dld_shl_load=yes
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_cv_lib_dld_shl_load=no
8515 fi
8516 rm -f conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 LIBS=$ac_check_lib_save_LIBS
8519 fi
8520 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8521 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8522 if test $ac_cv_lib_dld_shl_load = yes; then
8523 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8524 else
8525 echo "$as_me:$LINENO: checking for dlopen" >&5
8526 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8527 if test "${ac_cv_func_dlopen+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h. */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8538 #define dlopen innocuous_dlopen
8540 /* System header to define __stub macros and hopefully few prototypes,
8541 which can conflict with char dlopen (); below.
8542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8543 <limits.h> exists even on freestanding compilers. */
8545 #ifdef __STDC__
8546 # include <limits.h>
8547 #else
8548 # include <assert.h>
8549 #endif
8551 #undef dlopen
8553 /* Override any gcc2 internal prototype to avoid an error. */
8554 #ifdef __cplusplus
8555 extern "C"
8556 {
8557 #endif
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8560 char dlopen ();
8561 /* The GNU C library defines this for functions which it implements
8562 to always fail with ENOSYS. Some functions are actually named
8563 something starting with __ and the normal name is an alias. */
8564 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8565 choke me
8566 #else
8567 char (*f) () = dlopen;
8568 #endif
8569 #ifdef __cplusplus
8570 }
8571 #endif
8573 int
8574 main ()
8575 {
8576 return f != dlopen;
8577 ;
8578 return 0;
8579 }
8580 _ACEOF
8581 rm -f conftest.$ac_objext conftest$ac_exeext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8583 (eval $ac_link) 2>conftest.er1
8584 ac_status=$?
8585 grep -v '^ *+' conftest.er1 >conftest.err
8586 rm -f conftest.er1
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -z "$ac_c_werror_flag"
8591 || test ! -s conftest.err'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest$ac_exeext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 ac_cv_func_dlopen=yes
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_cv_func_dlopen=no
8609 fi
8610 rm -f conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8612 fi
8613 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8615 if test $ac_cv_func_dlopen = yes; then
8616 lt_cv_dlopen="dlopen"
8617 else
8618 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 ac_check_lib_save_LIBS=$LIBS
8624 LIBS="-ldl $LIBS"
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 #ifdef __cplusplus
8634 extern "C"
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char dlopen ();
8639 int
8640 main ()
8641 {
8642 dlopen ();
8643 ;
8644 return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 (eval $ac_try) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_dl_dlopen=yes
8670 else
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_cv_lib_dl_dlopen=no
8675 fi
8676 rm -f conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8679 fi
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8681 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8682 if test $ac_cv_lib_dl_dlopen = yes; then
8683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8684 else
8685 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8686 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8687 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690 ac_check_lib_save_LIBS=$LIBS
8691 LIBS="-lsvld $LIBS"
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 /* Override any gcc2 internal prototype to avoid an error. */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8705 char dlopen ();
8706 int
8707 main ()
8708 {
8709 dlopen ();
8710 ;
8711 return 0;
8712 }
8713 _ACEOF
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716 (eval $ac_link) 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_c_werror_flag"
8724 || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_lib_svld_dlopen=yes
8737 else
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_cv_lib_svld_dlopen=no
8742 fi
8743 rm -f conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8746 fi
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8748 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8749 if test $ac_cv_lib_svld_dlopen = yes; then
8750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8751 else
8752 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8753 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8754 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757 ac_check_lib_save_LIBS=$LIBS
8758 LIBS="-ldld $LIBS"
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8766 /* Override any gcc2 internal prototype to avoid an error. */
8767 #ifdef __cplusplus
8768 extern "C"
8769 #endif
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8772 char dld_link ();
8773 int
8774 main ()
8775 {
8776 dld_link ();
8777 ;
8778 return 0;
8779 }
8780 _ACEOF
8781 rm -f conftest.$ac_objext conftest$ac_exeext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8783 (eval $ac_link) 2>conftest.er1
8784 ac_status=$?
8785 grep -v '^ *+' conftest.er1 >conftest.err
8786 rm -f conftest.er1
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } &&
8790 { ac_try='test -z "$ac_c_werror_flag"
8791 || test ! -s conftest.err'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try='test -s conftest$ac_exeext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_cv_lib_dld_dld_link=yes
8804 else
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 ac_cv_lib_dld_dld_link=no
8809 fi
8810 rm -f conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812 LIBS=$ac_check_lib_save_LIBS
8813 fi
8814 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8815 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8816 if test $ac_cv_lib_dld_dld_link = yes; then
8817 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8818 fi
8821 fi
8824 fi
8827 fi
8830 fi
8833 fi
8835 ;;
8836 esac
8838 if test "x$lt_cv_dlopen" != xno; then
8839 enable_dlopen=yes
8840 else
8841 enable_dlopen=no
8842 fi
8844 case $lt_cv_dlopen in
8845 dlopen)
8846 save_CPPFLAGS="$CPPFLAGS"
8847 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8849 save_LDFLAGS="$LDFLAGS"
8850 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8852 save_LIBS="$LIBS"
8853 LIBS="$lt_cv_dlopen_libs $LIBS"
8855 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8856 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8857 if test "${lt_cv_dlopen_self+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 if test "$cross_compiling" = yes; then :
8861 lt_cv_dlopen_self=cross
8862 else
8863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8864 lt_status=$lt_dlunknown
8865 cat > conftest.$ac_ext <<EOF
8866 #line 8866 "configure"
8867 #include "confdefs.h"
8869 #if HAVE_DLFCN_H
8870 #include <dlfcn.h>
8871 #endif
8873 #include <stdio.h>
8875 #ifdef RTLD_GLOBAL
8876 # define LT_DLGLOBAL RTLD_GLOBAL
8877 #else
8878 # ifdef DL_GLOBAL
8879 # define LT_DLGLOBAL DL_GLOBAL
8880 # else
8881 # define LT_DLGLOBAL 0
8882 # endif
8883 #endif
8885 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8886 find out it does not work in some platform. */
8887 #ifndef LT_DLLAZY_OR_NOW
8888 # ifdef RTLD_LAZY
8889 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8890 # else
8891 # ifdef DL_LAZY
8892 # define LT_DLLAZY_OR_NOW DL_LAZY
8893 # else
8894 # ifdef RTLD_NOW
8895 # define LT_DLLAZY_OR_NOW RTLD_NOW
8896 # else
8897 # ifdef DL_NOW
8898 # define LT_DLLAZY_OR_NOW DL_NOW
8899 # else
8900 # define LT_DLLAZY_OR_NOW 0
8901 # endif
8902 # endif
8903 # endif
8904 # endif
8905 #endif
8907 #ifdef __cplusplus
8908 extern "C" void exit (int);
8909 #endif
8911 void fnord() { int i=42;}
8912 int main ()
8913 {
8914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8915 int status = $lt_dlunknown;
8917 if (self)
8918 {
8919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8920 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8921 /* dlclose (self); */
8922 }
8923 else
8924 puts (dlerror ());
8926 exit (status);
8927 }
8928 EOF
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930 (eval $ac_link) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8934 (./conftest; exit; ) >&5 2>/dev/null
8935 lt_status=$?
8936 case x$lt_status in
8937 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8938 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8939 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8940 esac
8941 else :
8942 # compilation failed
8943 lt_cv_dlopen_self=no
8944 fi
8945 fi
8946 rm -fr conftest*
8949 fi
8950 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8951 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8953 if test "x$lt_cv_dlopen_self" = xyes; then
8954 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8955 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8956 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8957 if test "${lt_cv_dlopen_self_static+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960 if test "$cross_compiling" = yes; then :
8961 lt_cv_dlopen_self_static=cross
8962 else
8963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8964 lt_status=$lt_dlunknown
8965 cat > conftest.$ac_ext <<EOF
8966 #line 8966 "configure"
8967 #include "confdefs.h"
8969 #if HAVE_DLFCN_H
8970 #include <dlfcn.h>
8971 #endif
8973 #include <stdio.h>
8975 #ifdef RTLD_GLOBAL
8976 # define LT_DLGLOBAL RTLD_GLOBAL
8977 #else
8978 # ifdef DL_GLOBAL
8979 # define LT_DLGLOBAL DL_GLOBAL
8980 # else
8981 # define LT_DLGLOBAL 0
8982 # endif
8983 #endif
8985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8986 find out it does not work in some platform. */
8987 #ifndef LT_DLLAZY_OR_NOW
8988 # ifdef RTLD_LAZY
8989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8990 # else
8991 # ifdef DL_LAZY
8992 # define LT_DLLAZY_OR_NOW DL_LAZY
8993 # else
8994 # ifdef RTLD_NOW
8995 # define LT_DLLAZY_OR_NOW RTLD_NOW
8996 # else
8997 # ifdef DL_NOW
8998 # define LT_DLLAZY_OR_NOW DL_NOW
8999 # else
9000 # define LT_DLLAZY_OR_NOW 0
9001 # endif
9002 # endif
9003 # endif
9004 # endif
9005 #endif
9007 #ifdef __cplusplus
9008 extern "C" void exit (int);
9009 #endif
9011 void fnord() { int i=42;}
9012 int main ()
9013 {
9014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9015 int status = $lt_dlunknown;
9017 if (self)
9018 {
9019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9021 /* dlclose (self); */
9022 }
9023 else
9024 puts (dlerror ());
9026 exit (status);
9027 }
9028 EOF
9029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030 (eval $ac_link) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9034 (./conftest; exit; ) >&5 2>/dev/null
9035 lt_status=$?
9036 case x$lt_status in
9037 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9038 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9039 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9040 esac
9041 else :
9042 # compilation failed
9043 lt_cv_dlopen_self_static=no
9044 fi
9045 fi
9046 rm -fr conftest*
9049 fi
9050 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9051 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9052 fi
9054 CPPFLAGS="$save_CPPFLAGS"
9055 LDFLAGS="$save_LDFLAGS"
9056 LIBS="$save_LIBS"
9057 ;;
9058 esac
9060 case $lt_cv_dlopen_self in
9061 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9062 *) enable_dlopen_self=unknown ;;
9063 esac
9065 case $lt_cv_dlopen_self_static in
9066 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9067 *) enable_dlopen_self_static=unknown ;;
9068 esac
9069 fi
9072 # Report which library types will actually be built
9073 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9074 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9075 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9076 echo "${ECHO_T}$can_build_shared" >&6
9078 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9079 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9080 test "$can_build_shared" = "no" && enable_shared=no
9082 # On AIX, shared libraries and static libraries use the same namespace, and
9083 # are all built from PIC.
9084 case $host_os in
9085 aix3*)
9086 test "$enable_shared" = yes && enable_static=no
9087 if test -n "$RANLIB"; then
9088 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9089 postinstall_cmds='$RANLIB $lib'
9090 fi
9091 ;;
9093 aix4* | aix5*)
9094 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9095 test "$enable_shared" = yes && enable_static=no
9096 fi
9097 ;;
9098 esac
9099 echo "$as_me:$LINENO: result: $enable_shared" >&5
9100 echo "${ECHO_T}$enable_shared" >&6
9102 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9103 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9104 # Make sure either enable_shared or enable_static is yes.
9105 test "$enable_shared" = yes || enable_static=yes
9106 echo "$as_me:$LINENO: result: $enable_static" >&5
9107 echo "${ECHO_T}$enable_static" >&6
9109 # The else clause should only fire when bootstrapping the
9110 # libtool distribution, otherwise you forgot to ship ltmain.sh
9111 # with your package, and you will get complaints that there are
9112 # no rules to generate ltmain.sh.
9113 if test -f "$ltmain"; then
9114 # See if we are running on zsh, and set the options which allow our commands through
9115 # without removal of \ escapes.
9116 if test -n "${ZSH_VERSION+set}" ; then
9117 setopt NO_GLOB_SUBST
9118 fi
9119 # Now quote all the things that may contain metacharacters while being
9120 # careful not to overquote the AC_SUBSTed values. We take copies of the
9121 # variables and quote the copies for generation of the libtool script.
9122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9123 SED SHELL STRIP \
9124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9126 deplibs_check_method reload_flag reload_cmds need_locks \
9127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9128 lt_cv_sys_global_symbol_to_c_name_address \
9129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9130 old_postinstall_cmds old_postuninstall_cmds \
9131 compiler \
9132 CC \
9133 LD \
9134 lt_prog_compiler_wl \
9135 lt_prog_compiler_pic \
9136 lt_prog_compiler_static \
9137 lt_prog_compiler_no_builtin_flag \
9138 export_dynamic_flag_spec \
9139 thread_safe_flag_spec \
9140 whole_archive_flag_spec \
9141 enable_shared_with_static_runtimes \
9142 old_archive_cmds \
9143 old_archive_from_new_cmds \
9144 predep_objects \
9145 postdep_objects \
9146 predeps \
9147 postdeps \
9148 compiler_lib_search_path \
9149 archive_cmds \
9150 archive_expsym_cmds \
9151 postinstall_cmds \
9152 postuninstall_cmds \
9153 old_archive_from_expsyms_cmds \
9154 allow_undefined_flag \
9155 no_undefined_flag \
9156 export_symbols_cmds \
9157 hardcode_libdir_flag_spec \
9158 hardcode_libdir_flag_spec_ld \
9159 hardcode_libdir_separator \
9160 hardcode_automatic \
9161 module_cmds \
9162 module_expsym_cmds \
9163 lt_cv_prog_compiler_c_o \
9164 exclude_expsyms \
9165 include_expsyms; do
9167 case $var in
9168 old_archive_cmds | \
9169 old_archive_from_new_cmds | \
9170 archive_cmds | \
9171 archive_expsym_cmds | \
9172 module_cmds | \
9173 module_expsym_cmds | \
9174 old_archive_from_expsyms_cmds | \
9175 export_symbols_cmds | \
9176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9177 postinstall_cmds | postuninstall_cmds | \
9178 old_postinstall_cmds | old_postuninstall_cmds | \
9179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9180 # Double-quote double-evaled strings.
9181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9182 ;;
9183 *)
9184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9185 ;;
9186 esac
9187 done
9189 case $lt_echo in
9190 *'\$0 --fallback-echo"')
9191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9192 ;;
9193 esac
9195 cfgfile="${ofile}T"
9196 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9197 $rm -f "$cfgfile"
9198 { echo "$as_me:$LINENO: creating $ofile" >&5
9199 echo "$as_me: creating $ofile" >&6;}
9201 cat <<__EOF__ >> "$cfgfile"
9202 #! $SHELL
9204 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9205 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9206 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9207 #
9208 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9209 # Free Software Foundation, Inc.
9210 #
9211 # This file is part of GNU Libtool:
9212 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9213 #
9214 # This program is free software; you can redistribute it and/or modify
9215 # it under the terms of the GNU General Public License as published by
9216 # the Free Software Foundation; either version 2 of the License, or
9217 # (at your option) any later version.
9218 #
9219 # This program is distributed in the hope that it will be useful, but
9220 # WITHOUT ANY WARRANTY; without even the implied warranty of
9221 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9222 # General Public License for more details.
9223 #
9224 # You should have received a copy of the GNU General Public License
9225 # along with this program; if not, write to the Free Software
9226 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9227 #
9228 # As a special exception to the GNU General Public License, if you
9229 # distribute this file as part of a program that contains a
9230 # configuration script generated by Autoconf, you may include it under
9231 # the same distribution terms that you use for the rest of that program.
9233 # A sed program that does not truncate output.
9234 SED=$lt_SED
9236 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9237 Xsed="$SED -e 1s/^X//"
9239 # The HP-UX ksh and POSIX shell print the target directory to stdout
9240 # if CDPATH is set.
9241 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9243 # The names of the tagged configurations supported by this script.
9244 available_tags=
9246 # ### BEGIN LIBTOOL CONFIG
9248 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9250 # Shell to use when invoking shell scripts.
9251 SHELL=$lt_SHELL
9253 # Whether or not to build shared libraries.
9254 build_libtool_libs=$enable_shared
9256 # Whether or not to build static libraries.
9257 build_old_libs=$enable_static
9259 # Whether or not to add -lc for building shared libraries.
9260 build_libtool_need_lc=$archive_cmds_need_lc
9262 # Whether or not to disallow shared libs when runtime libs are static
9263 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9265 # Whether or not to optimize for fast installation.
9266 fast_install=$enable_fast_install
9268 # The host system.
9269 host_alias=$host_alias
9270 host=$host
9271 host_os=$host_os
9273 # The build system.
9274 build_alias=$build_alias
9275 build=$build
9276 build_os=$build_os
9278 # An echo program that does not interpret backslashes.
9279 echo=$lt_echo
9281 # The archiver.
9282 AR=$lt_AR
9283 AR_FLAGS=$lt_AR_FLAGS
9285 # A C compiler.
9286 LTCC=$lt_LTCC
9288 # LTCC compiler flags.
9289 LTCFLAGS=$lt_LTCFLAGS
9291 # A language-specific compiler.
9292 CC=$lt_compiler
9294 # Is the compiler the GNU C compiler?
9295 with_gcc=$GCC
9297 # An ERE matcher.
9298 EGREP=$lt_EGREP
9300 # The linker used to build libraries.
9301 LD=$lt_LD
9303 # Whether we need hard or soft links.
9304 LN_S=$lt_LN_S
9306 # A BSD-compatible nm program.
9307 NM=$lt_NM
9309 # A symbol stripping program
9310 STRIP=$lt_STRIP
9312 # Used to examine libraries when file_magic_cmd begins "file"
9313 MAGIC_CMD=$MAGIC_CMD
9315 # Used on cygwin: DLL creation program.
9316 DLLTOOL="$DLLTOOL"
9318 # Used on cygwin: object dumper.
9319 OBJDUMP="$OBJDUMP"
9321 # Used on cygwin: assembler.
9322 AS="$AS"
9324 # The name of the directory that contains temporary libtool files.
9325 objdir=$objdir
9327 # How to create reloadable object files.
9328 reload_flag=$lt_reload_flag
9329 reload_cmds=$lt_reload_cmds
9331 # How to pass a linker flag through the compiler.
9332 wl=$lt_lt_prog_compiler_wl
9334 # Object file suffix (normally "o").
9335 objext="$ac_objext"
9337 # Old archive suffix (normally "a").
9338 libext="$libext"
9340 # Shared library suffix (normally ".so").
9341 shrext_cmds='$shrext_cmds'
9343 # Executable file suffix (normally "").
9344 exeext="$exeext"
9346 # Additional compiler flags for building library objects.
9347 pic_flag=$lt_lt_prog_compiler_pic
9348 pic_mode=$pic_mode
9350 # What is the maximum length of a command?
9351 max_cmd_len=$lt_cv_sys_max_cmd_len
9353 # Does compiler simultaneously support -c and -o options?
9354 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9356 # Must we lock files when doing compilation?
9357 need_locks=$lt_need_locks
9359 # Do we need the lib prefix for modules?
9360 need_lib_prefix=$need_lib_prefix
9362 # Do we need a version for libraries?
9363 need_version=$need_version
9365 # Whether dlopen is supported.
9366 dlopen_support=$enable_dlopen
9368 # Whether dlopen of programs is supported.
9369 dlopen_self=$enable_dlopen_self
9371 # Whether dlopen of statically linked programs is supported.
9372 dlopen_self_static=$enable_dlopen_self_static
9374 # Compiler flag to prevent dynamic linking.
9375 link_static_flag=$lt_lt_prog_compiler_static
9377 # Compiler flag to turn off builtin functions.
9378 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9380 # Compiler flag to allow reflexive dlopens.
9381 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9383 # Compiler flag to generate shared objects directly from archives.
9384 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9386 # Compiler flag to generate thread-safe objects.
9387 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9389 # Library versioning type.
9390 version_type=$version_type
9392 # Format of library name prefix.
9393 libname_spec=$lt_libname_spec
9395 # List of archive names. First name is the real one, the rest are links.
9396 # The last name is the one that the linker finds with -lNAME.
9397 library_names_spec=$lt_library_names_spec
9399 # The coded name of the library, if different from the real name.
9400 soname_spec=$lt_soname_spec
9402 # Commands used to build and install an old-style archive.
9403 RANLIB=$lt_RANLIB
9404 old_archive_cmds=$lt_old_archive_cmds
9405 old_postinstall_cmds=$lt_old_postinstall_cmds
9406 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9408 # Create an old-style archive from a shared archive.
9409 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9411 # Create a temporary old-style archive to link instead of a shared archive.
9412 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9414 # Commands used to build and install a shared archive.
9415 archive_cmds=$lt_archive_cmds
9416 archive_expsym_cmds=$lt_archive_expsym_cmds
9417 postinstall_cmds=$lt_postinstall_cmds
9418 postuninstall_cmds=$lt_postuninstall_cmds
9420 # Commands used to build a loadable module (assumed same as above if empty)
9421 module_cmds=$lt_module_cmds
9422 module_expsym_cmds=$lt_module_expsym_cmds
9424 # Commands to strip libraries.
9425 old_striplib=$lt_old_striplib
9426 striplib=$lt_striplib
9428 # Dependencies to place before the objects being linked to create a
9429 # shared library.
9430 predep_objects=$lt_predep_objects
9432 # Dependencies to place after the objects being linked to create a
9433 # shared library.
9434 postdep_objects=$lt_postdep_objects
9436 # Dependencies to place before the objects being linked to create a
9437 # shared library.
9438 predeps=$lt_predeps
9440 # Dependencies to place after the objects being linked to create a
9441 # shared library.
9442 postdeps=$lt_postdeps
9444 # The library search path used internally by the compiler when linking
9445 # a shared library.
9446 compiler_lib_search_path=$lt_compiler_lib_search_path
9448 # Method to check whether dependent libraries are shared objects.
9449 deplibs_check_method=$lt_deplibs_check_method
9451 # Command to use when deplibs_check_method == file_magic.
9452 file_magic_cmd=$lt_file_magic_cmd
9454 # Flag that allows shared libraries with undefined symbols to be built.
9455 allow_undefined_flag=$lt_allow_undefined_flag
9457 # Flag that forces no undefined symbols.
9458 no_undefined_flag=$lt_no_undefined_flag
9460 # Commands used to finish a libtool library installation in a directory.
9461 finish_cmds=$lt_finish_cmds
9463 # Same as above, but a single script fragment to be evaled but not shown.
9464 finish_eval=$lt_finish_eval
9466 # Take the output of nm and produce a listing of raw symbols and C names.
9467 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9469 # Transform the output of nm in a proper C declaration
9470 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9472 # Transform the output of nm in a C name address pair
9473 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9475 # This is the shared library runtime path variable.
9476 runpath_var=$runpath_var
9478 # This is the shared library path variable.
9479 shlibpath_var=$shlibpath_var
9481 # Is shlibpath searched before the hard-coded library search path?
9482 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9484 # How to hardcode a shared library path into an executable.
9485 hardcode_action=$hardcode_action
9487 # Whether we should hardcode library paths into libraries.
9488 hardcode_into_libs=$hardcode_into_libs
9490 # Flag to hardcode \$libdir into a binary during linking.
9491 # This must work even if \$libdir does not exist.
9492 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9494 # If ld is used when linking, flag to hardcode \$libdir into
9495 # a binary during linking. This must work even if \$libdir does
9496 # not exist.
9497 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9499 # Whether we need a single -rpath flag with a separated argument.
9500 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9502 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9503 # resulting binary.
9504 hardcode_direct=$hardcode_direct
9506 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9507 # resulting binary.
9508 hardcode_minus_L=$hardcode_minus_L
9510 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9511 # the resulting binary.
9512 hardcode_shlibpath_var=$hardcode_shlibpath_var
9514 # Set to yes if building a shared library automatically hardcodes DIR into the library
9515 # and all subsequent libraries and executables linked against it.
9516 hardcode_automatic=$hardcode_automatic
9518 # Variables whose values should be saved in libtool wrapper scripts and
9519 # restored at relink time.
9520 variables_saved_for_relink="$variables_saved_for_relink"
9522 # Whether libtool must link a program against all its dependency libraries.
9523 link_all_deplibs=$link_all_deplibs
9525 # Compile-time system search path for libraries
9526 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9528 # Run-time system search path for libraries
9529 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9531 # Fix the shell variable \$srcfile for the compiler.
9532 fix_srcfile_path="$fix_srcfile_path"
9534 # Set to yes if exported symbols are required.
9535 always_export_symbols=$always_export_symbols
9537 # The commands to list exported symbols.
9538 export_symbols_cmds=$lt_export_symbols_cmds
9540 # The commands to extract the exported symbol list from a shared archive.
9541 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9543 # Symbols that should not be listed in the preloaded symbols.
9544 exclude_expsyms=$lt_exclude_expsyms
9546 # Symbols that must always be exported.
9547 include_expsyms=$lt_include_expsyms
9549 # ### END LIBTOOL CONFIG
9551 __EOF__
9554 case $host_os in
9555 aix3*)
9556 cat <<\EOF >> "$cfgfile"
9558 # AIX sometimes has problems with the GCC collect2 program. For some
9559 # reason, if we set the COLLECT_NAMES environment variable, the problems
9560 # vanish in a puff of smoke.
9561 if test "X${COLLECT_NAMES+set}" != Xset; then
9562 COLLECT_NAMES=
9563 export COLLECT_NAMES
9564 fi
9565 EOF
9566 ;;
9567 esac
9569 # We use sed instead of cat because bash on DJGPP gets confused if
9570 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9571 # text mode, it properly converts lines to CR/LF. This bash problem
9572 # is reportedly fixed, but why not run on old versions too?
9573 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9575 mv -f "$cfgfile" "$ofile" || \
9576 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9577 chmod +x "$ofile"
9579 else
9580 # If there is no Makefile yet, we rely on a make rule to execute
9581 # `config.status --recheck' to rerun these tests and create the
9582 # libtool script then.
9583 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9584 if test -f "$ltmain_in"; then
9585 test -f Makefile && make "$ltmain"
9586 fi
9587 fi
9590 ac_ext=c
9591 ac_cpp='$CPP $CPPFLAGS'
9592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9596 CC="$lt_save_CC"
9599 # Check whether --with-tags or --without-tags was given.
9600 if test "${with_tags+set}" = set; then
9601 withval="$with_tags"
9602 tagnames="$withval"
9603 fi;
9605 if test -f "$ltmain" && test -n "$tagnames"; then
9606 if test ! -f "${ofile}"; then
9607 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9608 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9609 fi
9611 if test -z "$LTCC"; then
9612 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9613 if test -z "$LTCC"; then
9614 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9615 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9616 else
9617 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9618 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9619 fi
9620 fi
9621 if test -z "$LTCFLAGS"; then
9622 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9623 fi
9625 # Extract list of available tagged configurations in $ofile.
9626 # Note that this assumes the entire list is on one line.
9627 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9629 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9630 for tagname in $tagnames; do
9631 IFS="$lt_save_ifs"
9632 # Check whether tagname contains only valid characters
9633 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9634 "") ;;
9635 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9636 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9637 { (exit 1); exit 1; }; }
9638 ;;
9639 esac
9641 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9642 then
9643 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9644 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9645 { (exit 1); exit 1; }; }
9646 fi
9648 # Update the list of available tags.
9649 if test -n "$tagname"; then
9650 echo appending configuration tag \"$tagname\" to $ofile
9652 case $tagname in
9653 CXX)
9654 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9655 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9656 (test "X$CXX" != "Xg++"))) ; then
9657 ac_ext=cc
9658 ac_cpp='$CXXCPP $CPPFLAGS'
9659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9666 archive_cmds_need_lc_CXX=no
9667 allow_undefined_flag_CXX=
9668 always_export_symbols_CXX=no
9669 archive_expsym_cmds_CXX=
9670 export_dynamic_flag_spec_CXX=
9671 hardcode_direct_CXX=no
9672 hardcode_libdir_flag_spec_CXX=
9673 hardcode_libdir_flag_spec_ld_CXX=
9674 hardcode_libdir_separator_CXX=
9675 hardcode_minus_L_CXX=no
9676 hardcode_shlibpath_var_CXX=unsupported
9677 hardcode_automatic_CXX=no
9678 module_cmds_CXX=
9679 module_expsym_cmds_CXX=
9680 link_all_deplibs_CXX=unknown
9681 old_archive_cmds_CXX=$old_archive_cmds
9682 no_undefined_flag_CXX=
9683 whole_archive_flag_spec_CXX=
9684 enable_shared_with_static_runtimes_CXX=no
9686 # Dependencies to place before and after the object being linked:
9687 predep_objects_CXX=
9688 postdep_objects_CXX=
9689 predeps_CXX=
9690 postdeps_CXX=
9691 compiler_lib_search_path_CXX=
9693 # Source file extension for C++ test sources.
9694 ac_ext=cpp
9696 # Object file extension for compiled C++ test sources.
9697 objext=o
9698 objext_CXX=$objext
9700 # Code to be used in simple compile tests
9701 lt_simple_compile_test_code="int some_variable = 0;\n"
9703 # Code to be used in simple link tests
9704 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9706 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9708 # If no C compiler was specified, use CC.
9709 LTCC=${LTCC-"$CC"}
9711 # If no C compiler flags were specified, use CFLAGS.
9712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9714 # Allow CC to be a program name with arguments.
9715 compiler=$CC
9718 # save warnings/boilerplate of simple test code
9719 ac_outfile=conftest.$ac_objext
9720 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9722 _lt_compiler_boilerplate=`cat conftest.err`
9723 $rm conftest*
9725 ac_outfile=conftest.$ac_objext
9726 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9728 _lt_linker_boilerplate=`cat conftest.err`
9729 $rm conftest*
9732 # Allow CC to be a program name with arguments.
9733 lt_save_CC=$CC
9734 lt_save_LD=$LD
9735 lt_save_GCC=$GCC
9736 GCC=$GXX
9737 lt_save_with_gnu_ld=$with_gnu_ld
9738 lt_save_path_LD=$lt_cv_path_LD
9739 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9740 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9741 else
9742 $as_unset lt_cv_prog_gnu_ld
9743 fi
9744 if test -n "${lt_cv_path_LDCXX+set}"; then
9745 lt_cv_path_LD=$lt_cv_path_LDCXX
9746 else
9747 $as_unset lt_cv_path_LD
9748 fi
9749 test -z "${LDCXX+set}" || LD=$LDCXX
9750 CC=${CXX-"c++"}
9751 compiler=$CC
9752 compiler_CXX=$CC
9753 for cc_temp in $compiler""; do
9754 case $cc_temp in
9755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9757 \-*) ;;
9758 *) break;;
9759 esac
9760 done
9761 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9764 # We don't want -fno-exception wen compiling C++ code, so set the
9765 # no_builtin_flag separately
9766 if test "$GXX" = yes; then
9767 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9768 else
9769 lt_prog_compiler_no_builtin_flag_CXX=
9770 fi
9772 if test "$GXX" = yes; then
9773 # Set up default GNU C++ configuration
9776 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9777 if test "${with_gnu_ld+set}" = set; then
9778 withval="$with_gnu_ld"
9779 test "$withval" = no || with_gnu_ld=yes
9780 else
9781 with_gnu_ld=no
9782 fi;
9783 ac_prog=ld
9784 if test "$GCC" = yes; then
9785 # Check if gcc -print-prog-name=ld gives a path.
9786 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9787 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9788 case $host in
9789 *-*-mingw*)
9790 # gcc leaves a trailing carriage return which upsets mingw
9791 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9792 *)
9793 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9794 esac
9795 case $ac_prog in
9796 # Accept absolute paths.
9797 [\\/]* | ?:[\\/]*)
9798 re_direlt='/[^/][^/]*/\.\./'
9799 # Canonicalize the pathname of ld
9800 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9801 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9802 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9803 done
9804 test -z "$LD" && LD="$ac_prog"
9805 ;;
9806 "")
9807 # If it fails, then pretend we aren't using GCC.
9808 ac_prog=ld
9809 ;;
9810 *)
9811 # If it is relative, then search for the first ld in PATH.
9812 with_gnu_ld=unknown
9813 ;;
9814 esac
9815 elif test "$with_gnu_ld" = yes; then
9816 echo "$as_me:$LINENO: checking for GNU ld" >&5
9817 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9818 else
9819 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9820 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9821 fi
9822 if test "${lt_cv_path_LD+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 if test -z "$LD"; then
9826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9827 for ac_dir in $PATH; do
9828 IFS="$lt_save_ifs"
9829 test -z "$ac_dir" && ac_dir=.
9830 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9831 lt_cv_path_LD="$ac_dir/$ac_prog"
9832 # Check to see if the program is GNU ld. I'd rather use --version,
9833 # but apparently some variants of GNU ld only accept -v.
9834 # Break only if it was the GNU/non-GNU ld that we prefer.
9835 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9836 *GNU* | *'with BFD'*)
9837 test "$with_gnu_ld" != no && break
9838 ;;
9839 *)
9840 test "$with_gnu_ld" != yes && break
9841 ;;
9842 esac
9843 fi
9844 done
9845 IFS="$lt_save_ifs"
9846 else
9847 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9848 fi
9849 fi
9851 LD="$lt_cv_path_LD"
9852 if test -n "$LD"; then
9853 echo "$as_me:$LINENO: result: $LD" >&5
9854 echo "${ECHO_T}$LD" >&6
9855 else
9856 echo "$as_me:$LINENO: result: no" >&5
9857 echo "${ECHO_T}no" >&6
9858 fi
9859 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9860 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9861 { (exit 1); exit 1; }; }
9862 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9863 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9864 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9868 case `$LD -v 2>&1 </dev/null` in
9869 *GNU* | *'with BFD'*)
9870 lt_cv_prog_gnu_ld=yes
9871 ;;
9872 *)
9873 lt_cv_prog_gnu_ld=no
9874 ;;
9875 esac
9876 fi
9877 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9878 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9879 with_gnu_ld=$lt_cv_prog_gnu_ld
9883 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9884 # archiving commands below assume that GNU ld is being used.
9885 if test "$with_gnu_ld" = yes; then
9886 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9887 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'
9889 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9892 # If archive_cmds runs LD, not CC, wlarc should be empty
9893 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9894 # investigate it a little bit more. (MM)
9895 wlarc='${wl}'
9897 # ancient GNU ld didn't support --whole-archive et. al.
9898 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9899 grep 'no-whole-archive' > /dev/null; then
9900 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9901 else
9902 whole_archive_flag_spec_CXX=
9903 fi
9904 else
9905 with_gnu_ld=no
9906 wlarc=
9908 # A generic and very simple default shared library creation
9909 # command for GNU C++ for the case where it uses the native
9910 # linker, instead of GNU ld. If possible, this setting should
9911 # overridden to take advantage of the native linker features on
9912 # the platform it is being used on.
9913 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9914 fi
9916 # Commands to make compiler produce verbose output that lists
9917 # what "hidden" libraries, object files and flags are used when
9918 # linking a shared library.
9919 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9921 else
9922 GXX=no
9923 with_gnu_ld=no
9924 wlarc=
9925 fi
9927 # PORTME: fill in a description of your system's C++ link characteristics
9928 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9929 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9930 ld_shlibs_CXX=yes
9931 case $host_os in
9932 aix3*)
9933 # FIXME: insert proper C++ library support
9934 ld_shlibs_CXX=no
9935 ;;
9936 aix4* | aix5*)
9937 if test "$host_cpu" = ia64; then
9938 # On IA64, the linker does run time linking by default, so we don't
9939 # have to do anything special.
9940 aix_use_runtimelinking=no
9941 exp_sym_flag='-Bexport'
9942 no_entry_flag=""
9943 else
9944 aix_use_runtimelinking=no
9946 # Test if we are trying to use run time linking or normal
9947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9948 # need to do runtime linking.
9949 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9950 for ld_flag in $LDFLAGS; do
9951 case $ld_flag in
9952 *-brtl*)
9953 aix_use_runtimelinking=yes
9954 break
9955 ;;
9956 esac
9957 done
9958 ;;
9959 esac
9961 exp_sym_flag='-bexport'
9962 no_entry_flag='-bnoentry'
9963 fi
9965 # When large executables or shared objects are built, AIX ld can
9966 # have problems creating the table of contents. If linking a library
9967 # or program results in "error TOC overflow" add -mminimal-toc to
9968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9971 archive_cmds_CXX=''
9972 hardcode_direct_CXX=yes
9973 hardcode_libdir_separator_CXX=':'
9974 link_all_deplibs_CXX=yes
9976 if test "$GXX" = yes; then
9977 case $host_os in aix4.[012]|aix4.[012].*)
9978 # We only want to do this on AIX 4.2 and lower, the check
9979 # below for broken collect2 doesn't work under 4.3+
9980 collect2name=`${CC} -print-prog-name=collect2`
9981 if test -f "$collect2name" && \
9982 strings "$collect2name" | grep resolve_lib_name >/dev/null
9983 then
9984 # We have reworked collect2
9985 hardcode_direct_CXX=yes
9986 else
9987 # We have old collect2
9988 hardcode_direct_CXX=unsupported
9989 # It fails to find uninstalled libraries when the uninstalled
9990 # path is not listed in the libpath. Setting hardcode_minus_L
9991 # to unsupported forces relinking
9992 hardcode_minus_L_CXX=yes
9993 hardcode_libdir_flag_spec_CXX='-L$libdir'
9994 hardcode_libdir_separator_CXX=
9995 fi
9996 ;;
9997 esac
9998 shared_flag='-shared'
9999 if test "$aix_use_runtimelinking" = yes; then
10000 shared_flag="$shared_flag "'${wl}-G'
10001 fi
10002 else
10003 # not using gcc
10004 if test "$host_cpu" = ia64; then
10005 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10006 # chokes on -Wl,-G. The following line is correct:
10007 shared_flag='-G'
10008 else
10009 if test "$aix_use_runtimelinking" = yes; then
10010 shared_flag='${wl}-G'
10011 else
10012 shared_flag='${wl}-bM:SRE'
10013 fi
10014 fi
10015 fi
10017 # It seems that -bexpall does not export symbols beginning with
10018 # underscore (_), so it is better to generate a list of symbols to export.
10019 always_export_symbols_CXX=yes
10020 if test "$aix_use_runtimelinking" = yes; then
10021 # Warning - without using the other runtime loading flags (-brtl),
10022 # -berok will link without error, but may produce a broken library.
10023 allow_undefined_flag_CXX='-berok'
10024 # Determine the default libpath from the value encoded in an empty executable.
10025 cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h. */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10032 int
10033 main ()
10034 {
10036 ;
10037 return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042 (eval $ac_link) 2>conftest.er1
10043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try='test -z "$ac_cxx_werror_flag"
10050 || test ! -s conftest.err'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; } &&
10056 { ac_try='test -s conftest$ac_exeext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10064 }'`
10065 # Check for a 64-bit object if we didn't find anything.
10066 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10067 }'`; fi
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 fi
10073 rm -f conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10077 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10079 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"
10080 else
10081 if test "$host_cpu" = ia64; then
10082 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10083 allow_undefined_flag_CXX="-z nodefs"
10084 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"
10085 else
10086 # Determine the default libpath from the value encoded in an empty executable.
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h. */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10094 int
10095 main ()
10096 {
10098 ;
10099 return 0;
10100 }
10101 _ACEOF
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10104 (eval $ac_link) 2>conftest.er1
10105 ac_status=$?
10106 grep -v '^ *+' conftest.er1 >conftest.err
10107 rm -f conftest.er1
10108 cat conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -z "$ac_cxx_werror_flag"
10112 || test ! -s conftest.err'
10113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10126 }'`
10127 # Check for a 64-bit object if we didn't find anything.
10128 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10129 }'`; fi
10130 else
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 fi
10135 rm -f conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10139 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10140 # Warning - without using the other run time loading flags,
10141 # -berok will link without error, but may produce a broken library.
10142 no_undefined_flag_CXX=' ${wl}-bernotok'
10143 allow_undefined_flag_CXX=' ${wl}-berok'
10144 # Exported symbols can be pulled into shared objects from archives
10145 whole_archive_flag_spec_CXX='$convenience'
10146 archive_cmds_need_lc_CXX=yes
10147 # This is similar to how AIX traditionally builds its shared libraries.
10148 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'
10149 fi
10150 fi
10151 ;;
10153 beos*)
10154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10155 allow_undefined_flag_CXX=unsupported
10156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10157 # support --undefined. This deserves some investigation. FIXME
10158 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159 else
10160 ld_shlibs_CXX=no
10161 fi
10162 ;;
10164 chorus*)
10165 case $cc_basename in
10166 *)
10167 # FIXME: insert proper C++ library support
10168 ld_shlibs_CXX=no
10169 ;;
10170 esac
10171 ;;
10173 cygwin* | mingw* | pw32*)
10174 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10175 # as there is no search path for DLLs.
10176 hardcode_libdir_flag_spec_CXX='-L$libdir'
10177 allow_undefined_flag_CXX=unsupported
10178 always_export_symbols_CXX=no
10179 enable_shared_with_static_runtimes_CXX=yes
10181 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10182 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'
10183 # If the export-symbols file already is a .def file (1st line
10184 # is EXPORTS), use it as is; otherwise, prepend...
10185 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10186 cp $export_symbols $output_objdir/$soname.def;
10187 else
10188 echo EXPORTS > $output_objdir/$soname.def;
10189 cat $export_symbols >> $output_objdir/$soname.def;
10190 fi~
10191 $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'
10192 else
10193 ld_shlibs_CXX=no
10194 fi
10195 ;;
10196 darwin* | rhapsody*)
10197 case $host_os in
10198 rhapsody* | darwin1.[012])
10199 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10200 ;;
10201 *) # Darwin 1.3 on
10202 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10203 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10204 else
10205 case ${MACOSX_DEPLOYMENT_TARGET} in
10206 10.[012])
10207 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10208 ;;
10209 10.*)
10210 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10211 ;;
10212 esac
10213 fi
10214 ;;
10215 esac
10216 archive_cmds_need_lc_CXX=no
10217 hardcode_direct_CXX=no
10218 hardcode_automatic_CXX=yes
10219 hardcode_shlibpath_var_CXX=unsupported
10220 whole_archive_flag_spec_CXX=''
10221 link_all_deplibs_CXX=yes
10223 if test "$GXX" = yes ; then
10224 lt_int_apple_cc_single_mod=no
10225 output_verbose_link_cmd='echo'
10226 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10227 lt_int_apple_cc_single_mod=yes
10228 fi
10229 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10230 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10231 else
10232 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'
10233 fi
10234 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10235 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10236 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10237 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10238 else
10239 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10240 fi
10241 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}'
10242 else
10243 case $cc_basename in
10244 xlc*)
10245 output_verbose_link_cmd='echo'
10246 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10247 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10248 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10249 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10250 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}'
10251 ;;
10252 *)
10253 ld_shlibs_CXX=no
10254 ;;
10255 esac
10256 fi
10257 ;;
10259 dgux*)
10260 case $cc_basename in
10261 ec++*)
10262 # FIXME: insert proper C++ library support
10263 ld_shlibs_CXX=no
10264 ;;
10265 ghcx*)
10266 # Green Hills C++ Compiler
10267 # FIXME: insert proper C++ library support
10268 ld_shlibs_CXX=no
10269 ;;
10270 *)
10271 # FIXME: insert proper C++ library support
10272 ld_shlibs_CXX=no
10273 ;;
10274 esac
10275 ;;
10276 freebsd[12]*)
10277 # C++ shared libraries reported to be fairly broken before switch to ELF
10278 ld_shlibs_CXX=no
10279 ;;
10280 freebsd-elf*)
10281 archive_cmds_need_lc_CXX=no
10282 ;;
10283 freebsd* | kfreebsd*-gnu | dragonfly*)
10284 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10285 # conventions
10286 ld_shlibs_CXX=yes
10287 ;;
10288 gnu*)
10289 ;;
10290 hpux9*)
10291 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10292 hardcode_libdir_separator_CXX=:
10293 export_dynamic_flag_spec_CXX='${wl}-E'
10294 hardcode_direct_CXX=yes
10295 hardcode_minus_L_CXX=yes # Not in the search PATH,
10296 # but as the default
10297 # location of the library.
10299 case $cc_basename in
10300 CC*)
10301 # FIXME: insert proper C++ library support
10302 ld_shlibs_CXX=no
10303 ;;
10304 aCC*)
10305 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'
10306 # Commands to make compiler produce verbose output that lists
10307 # what "hidden" libraries, object files and flags are used when
10308 # linking a shared library.
10309 #
10310 # There doesn't appear to be a way to prevent this compiler from
10311 # explicitly linking system object files so we need to strip them
10312 # from the output so that they don't get included in the library
10313 # dependencies.
10314 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'
10315 ;;
10316 *)
10317 if test "$GXX" = yes; then
10318 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'
10319 else
10320 # FIXME: insert proper C++ library support
10321 ld_shlibs_CXX=no
10322 fi
10323 ;;
10324 esac
10325 ;;
10326 hpux10*|hpux11*)
10327 if test $with_gnu_ld = no; then
10328 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10329 hardcode_libdir_separator_CXX=:
10331 case $host_cpu in
10332 hppa*64*|ia64*)
10333 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10334 ;;
10335 *)
10336 export_dynamic_flag_spec_CXX='${wl}-E'
10337 ;;
10338 esac
10339 fi
10340 case $host_cpu in
10341 hppa*64*|ia64*)
10342 hardcode_direct_CXX=no
10343 hardcode_shlibpath_var_CXX=no
10344 ;;
10345 *)
10346 hardcode_direct_CXX=yes
10347 hardcode_minus_L_CXX=yes # Not in the search PATH,
10348 # but as the default
10349 # location of the library.
10350 ;;
10351 esac
10353 case $cc_basename in
10354 CC*)
10355 # FIXME: insert proper C++ library support
10356 ld_shlibs_CXX=no
10357 ;;
10358 aCC*)
10359 case $host_cpu in
10360 hppa*64*)
10361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10362 ;;
10363 ia64*)
10364 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10365 ;;
10366 *)
10367 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10368 ;;
10369 esac
10370 # Commands to make compiler produce verbose output that lists
10371 # what "hidden" libraries, object files and flags are used when
10372 # linking a shared library.
10373 #
10374 # There doesn't appear to be a way to prevent this compiler from
10375 # explicitly linking system object files so we need to strip them
10376 # from the output so that they don't get included in the library
10377 # dependencies.
10378 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'
10379 ;;
10380 *)
10381 if test "$GXX" = yes; then
10382 if test $with_gnu_ld = no; then
10383 case $host_cpu in
10384 hppa*64*)
10385 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10386 ;;
10387 ia64*)
10388 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10389 ;;
10390 *)
10391 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'
10392 ;;
10393 esac
10394 fi
10395 else
10396 # FIXME: insert proper C++ library support
10397 ld_shlibs_CXX=no
10398 fi
10399 ;;
10400 esac
10401 ;;
10402 interix3*)
10403 hardcode_direct_CXX=no
10404 hardcode_shlibpath_var_CXX=no
10405 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10406 export_dynamic_flag_spec_CXX='${wl}-E'
10407 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10408 # Instead, shared libraries are loaded at an image base (0x10000000 by
10409 # default) and relocated if they conflict, which is a slow very memory
10410 # consuming and fragmenting process. To avoid this, we pick a random,
10411 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10412 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10413 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'
10414 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'
10415 ;;
10416 irix5* | irix6*)
10417 case $cc_basename in
10418 CC*)
10419 # SGI C++
10420 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'
10422 # Archives containing C++ object files must be created using
10423 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10424 # necessary to make sure instantiated templates are included
10425 # in the archive.
10426 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10427 ;;
10428 *)
10429 if test "$GXX" = yes; then
10430 if test "$with_gnu_ld" = no; then
10431 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'
10432 else
10433 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'
10434 fi
10435 fi
10436 link_all_deplibs_CXX=yes
10437 ;;
10438 esac
10439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10440 hardcode_libdir_separator_CXX=:
10441 ;;
10442 linux*)
10443 case $cc_basename in
10444 KCC*)
10445 # Kuck and Associates, Inc. (KAI) C++ Compiler
10447 # KCC will only create a shared library if the output file
10448 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10449 # to its proper name (with version) after linking.
10450 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'
10451 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'
10452 # Commands to make compiler produce verbose output that lists
10453 # what "hidden" libraries, object files and flags are used when
10454 # linking a shared library.
10455 #
10456 # There doesn't appear to be a way to prevent this compiler from
10457 # explicitly linking system object files so we need to strip them
10458 # from the output so that they don't get included in the library
10459 # dependencies.
10460 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'
10462 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10463 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10465 # Archives containing C++ object files must be created using
10466 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10467 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10468 ;;
10469 icpc*)
10470 # Intel C++
10471 with_gnu_ld=yes
10472 # version 8.0 and above of icpc choke on multiply defined symbols
10473 # if we add $predep_objects and $postdep_objects, however 7.1 and
10474 # earlier do not add the objects themselves.
10475 case `$CC -V 2>&1` in
10476 *"Version 7."*)
10477 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10478 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'
10479 ;;
10480 *) # Version 8.0 or newer
10481 tmp_idyn=
10482 case $host_cpu in
10483 ia64*) tmp_idyn=' -i_dynamic';;
10484 esac
10485 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10486 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'
10487 ;;
10488 esac
10489 archive_cmds_need_lc_CXX=no
10490 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10491 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10492 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10493 ;;
10494 pgCC*)
10495 # Portland Group C++ compiler
10496 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10497 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'
10499 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10501 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'
10502 ;;
10503 cxx*)
10504 # Compaq C++
10505 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10506 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'
10508 runpath_var=LD_RUN_PATH
10509 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10510 hardcode_libdir_separator_CXX=:
10512 # Commands to make compiler produce verbose output that lists
10513 # what "hidden" libraries, object files and flags are used when
10514 # linking a shared library.
10515 #
10516 # There doesn't appear to be a way to prevent this compiler from
10517 # explicitly linking system object files so we need to strip them
10518 # from the output so that they don't get included in the library
10519 # dependencies.
10520 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'
10521 ;;
10522 esac
10523 ;;
10524 lynxos*)
10525 # FIXME: insert proper C++ library support
10526 ld_shlibs_CXX=no
10527 ;;
10528 m88k*)
10529 # FIXME: insert proper C++ library support
10530 ld_shlibs_CXX=no
10531 ;;
10532 mvs*)
10533 case $cc_basename in
10534 cxx*)
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10537 ;;
10538 *)
10539 # FIXME: insert proper C++ library support
10540 ld_shlibs_CXX=no
10541 ;;
10542 esac
10543 ;;
10544 netbsd*)
10545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10546 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10547 wlarc=
10548 hardcode_libdir_flag_spec_CXX='-R$libdir'
10549 hardcode_direct_CXX=yes
10550 hardcode_shlibpath_var_CXX=no
10551 fi
10552 # Workaround some broken pre-1.5 toolchains
10553 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10554 ;;
10555 openbsd2*)
10556 # C++ shared libraries are fairly broken
10557 ld_shlibs_CXX=no
10558 ;;
10559 openbsd*)
10560 hardcode_direct_CXX=yes
10561 hardcode_shlibpath_var_CXX=no
10562 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10563 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10564 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10565 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10566 export_dynamic_flag_spec_CXX='${wl}-E'
10567 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10568 fi
10569 output_verbose_link_cmd='echo'
10570 ;;
10571 osf3*)
10572 case $cc_basename in
10573 KCC*)
10574 # Kuck and Associates, Inc. (KAI) C++ Compiler
10576 # KCC will only create a shared library if the output file
10577 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10578 # to its proper name (with version) after linking.
10579 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10581 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10582 hardcode_libdir_separator_CXX=:
10584 # Archives containing C++ object files must be created using
10585 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10586 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10588 ;;
10589 RCC*)
10590 # Rational C++ 2.4.1
10591 # FIXME: insert proper C++ library support
10592 ld_shlibs_CXX=no
10593 ;;
10594 cxx*)
10595 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10596 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'
10598 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10599 hardcode_libdir_separator_CXX=:
10601 # Commands to make compiler produce verbose output that lists
10602 # what "hidden" libraries, object files and flags are used when
10603 # linking a shared library.
10604 #
10605 # There doesn't appear to be a way to prevent this compiler from
10606 # explicitly linking system object files so we need to strip them
10607 # from the output so that they don't get included in the library
10608 # dependencies.
10609 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'
10610 ;;
10611 *)
10612 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10613 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10614 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'
10616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10617 hardcode_libdir_separator_CXX=:
10619 # Commands to make compiler produce verbose output that lists
10620 # what "hidden" libraries, object files and flags are used when
10621 # linking a shared library.
10622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10624 else
10625 # FIXME: insert proper C++ library support
10626 ld_shlibs_CXX=no
10627 fi
10628 ;;
10629 esac
10630 ;;
10631 osf4* | osf5*)
10632 case $cc_basename in
10633 KCC*)
10634 # Kuck and Associates, Inc. (KAI) C++ Compiler
10636 # KCC will only create a shared library if the output file
10637 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10638 # to its proper name (with version) after linking.
10639 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'
10641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10642 hardcode_libdir_separator_CXX=:
10644 # Archives containing C++ object files must be created using
10645 # the KAI C++ compiler.
10646 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10647 ;;
10648 RCC*)
10649 # Rational C++ 2.4.1
10650 # FIXME: insert proper C++ library support
10651 ld_shlibs_CXX=no
10652 ;;
10653 cxx*)
10654 allow_undefined_flag_CXX=' -expect_unresolved \*'
10655 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'
10656 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10657 echo "-hidden">> $lib.exp~
10658 $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~
10659 $rm $lib.exp'
10661 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10662 hardcode_libdir_separator_CXX=:
10664 # Commands to make compiler produce verbose output that lists
10665 # what "hidden" libraries, object files and flags are used when
10666 # linking a shared library.
10667 #
10668 # There doesn't appear to be a way to prevent this compiler from
10669 # explicitly linking system object files so we need to strip them
10670 # from the output so that they don't get included in the library
10671 # dependencies.
10672 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'
10673 ;;
10674 *)
10675 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10676 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10677 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'
10679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10680 hardcode_libdir_separator_CXX=:
10682 # Commands to make compiler produce verbose output that lists
10683 # what "hidden" libraries, object files and flags are used when
10684 # linking a shared library.
10685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10687 else
10688 # FIXME: insert proper C++ library support
10689 ld_shlibs_CXX=no
10690 fi
10691 ;;
10692 esac
10693 ;;
10694 psos*)
10695 # FIXME: insert proper C++ library support
10696 ld_shlibs_CXX=no
10697 ;;
10698 sunos4*)
10699 case $cc_basename in
10700 CC*)
10701 # Sun C++ 4.x
10702 # FIXME: insert proper C++ library support
10703 ld_shlibs_CXX=no
10704 ;;
10705 lcc*)
10706 # Lucid
10707 # FIXME: insert proper C++ library support
10708 ld_shlibs_CXX=no
10709 ;;
10710 *)
10711 # FIXME: insert proper C++ library support
10712 ld_shlibs_CXX=no
10713 ;;
10714 esac
10715 ;;
10716 solaris*)
10717 case $cc_basename in
10718 CC*)
10719 # Sun C++ 4.2, 5.x and Centerline C++
10720 archive_cmds_need_lc_CXX=yes
10721 no_undefined_flag_CXX=' -zdefs'
10722 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10723 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10724 $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'
10726 hardcode_libdir_flag_spec_CXX='-R$libdir'
10727 hardcode_shlibpath_var_CXX=no
10728 case $host_os in
10729 solaris2.[0-5] | solaris2.[0-5].*) ;;
10730 *)
10731 # The C++ compiler is used as linker so we must use $wl
10732 # flag to pass the commands to the underlying system
10733 # linker. We must also pass each convience library through
10734 # to the system linker between allextract/defaultextract.
10735 # The C++ compiler will combine linker options so we
10736 # cannot just pass the convience library names through
10737 # without $wl.
10738 # Supported since Solaris 2.6 (maybe 2.5.1?)
10739 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10740 ;;
10741 esac
10742 link_all_deplibs_CXX=yes
10744 output_verbose_link_cmd='echo'
10746 # Archives containing C++ object files must be created using
10747 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10748 # necessary to make sure instantiated templates are included
10749 # in the archive.
10750 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10751 ;;
10752 gcx*)
10753 # Green Hills C++ Compiler
10754 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10756 # The C++ compiler must be used to create the archive.
10757 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10758 ;;
10759 *)
10760 # GNU C++ compiler with Solaris linker
10761 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10762 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10763 if $CC --version | grep -v '^2\.7' > /dev/null; then
10764 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10765 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10766 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10768 # Commands to make compiler produce verbose output that lists
10769 # what "hidden" libraries, object files and flags are used when
10770 # linking a shared library.
10771 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10772 else
10773 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10774 # platform.
10775 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10776 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10777 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10779 # Commands to make compiler produce verbose output that lists
10780 # what "hidden" libraries, object files and flags are used when
10781 # linking a shared library.
10782 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10783 fi
10785 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10786 fi
10787 ;;
10788 esac
10789 ;;
10790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10791 no_undefined_flag_CXX='${wl}-z,text'
10792 archive_cmds_need_lc_CXX=no
10793 hardcode_shlibpath_var_CXX=no
10794 runpath_var='LD_RUN_PATH'
10796 case $cc_basename in
10797 CC*)
10798 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10800 ;;
10801 *)
10802 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10803 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 ;;
10805 esac
10806 ;;
10807 sysv5* | sco3.2v5* | sco5v6*)
10808 # Note: We can NOT use -z defs as we might desire, because we do not
10809 # link with -lc, and that would cause any symbols used from libc to
10810 # always be unresolved, which means just about no library would
10811 # ever link correctly. If we're not using GNU ld we use -z text
10812 # though, which does catch some bad symbols but isn't as heavy-handed
10813 # as -z defs.
10814 # For security reasons, it is highly recommended that you always
10815 # use absolute paths for naming shared libraries, and exclude the
10816 # DT_RUNPATH tag from executables and libraries. But doing so
10817 # requires that you compile everything twice, which is a pain.
10818 # So that behaviour is only enabled if SCOABSPATH is set to a
10819 # non-empty value in the environment. Most likely only useful for
10820 # creating official distributions of packages.
10821 # This is a hack until libtool officially supports absolute path
10822 # names for shared libraries.
10823 no_undefined_flag_CXX='${wl}-z,text'
10824 allow_undefined_flag_CXX='${wl}-z,nodefs'
10825 archive_cmds_need_lc_CXX=no
10826 hardcode_shlibpath_var_CXX=no
10827 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10828 hardcode_libdir_separator_CXX=':'
10829 link_all_deplibs_CXX=yes
10830 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10831 runpath_var='LD_RUN_PATH'
10833 case $cc_basename in
10834 CC*)
10835 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10836 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10837 ;;
10838 *)
10839 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10840 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10841 ;;
10842 esac
10843 ;;
10844 tandem*)
10845 case $cc_basename in
10846 NCC*)
10847 # NonStop-UX NCC 3.20
10848 # FIXME: insert proper C++ library support
10849 ld_shlibs_CXX=no
10850 ;;
10851 *)
10852 # FIXME: insert proper C++ library support
10853 ld_shlibs_CXX=no
10854 ;;
10855 esac
10856 ;;
10857 vxworks*)
10858 # FIXME: insert proper C++ library support
10859 ld_shlibs_CXX=no
10860 ;;
10861 *)
10862 # FIXME: insert proper C++ library support
10863 ld_shlibs_CXX=no
10864 ;;
10865 esac
10866 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10867 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10868 test "$ld_shlibs_CXX" = no && can_build_shared=no
10870 GCC_CXX="$GXX"
10871 LD_CXX="$LD"
10874 cat > conftest.$ac_ext <<EOF
10875 class Foo
10876 {
10877 public:
10878 Foo (void) { a = 0; }
10879 private:
10880 int a;
10881 };
10882 EOF
10884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10885 (eval $ac_compile) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; then
10889 # Parse the compiler output and extract the necessary
10890 # objects, libraries and library flags.
10892 # Sentinel used to keep track of whether or not we are before
10893 # the conftest object file.
10894 pre_test_object_deps_done=no
10896 # The `*' in the case matches for architectures that use `case' in
10897 # $output_verbose_cmd can trigger glob expansion during the loop
10898 # eval without this substitution.
10899 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10901 for p in `eval $output_verbose_link_cmd`; do
10902 case $p in
10904 -L* | -R* | -l*)
10905 # Some compilers place space between "-{L,R}" and the path.
10906 # Remove the space.
10907 if test $p = "-L" \
10908 || test $p = "-R"; then
10909 prev=$p
10910 continue
10911 else
10912 prev=
10913 fi
10915 if test "$pre_test_object_deps_done" = no; then
10916 case $p in
10917 -L* | -R*)
10918 # Internal compiler library paths should come after those
10919 # provided the user. The postdeps already come after the
10920 # user supplied libs so there is no need to process them.
10921 if test -z "$compiler_lib_search_path_CXX"; then
10922 compiler_lib_search_path_CXX="${prev}${p}"
10923 else
10924 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10925 fi
10926 ;;
10927 # The "-l" case would never come before the object being
10928 # linked, so don't bother handling this case.
10929 esac
10930 else
10931 if test -z "$postdeps_CXX"; then
10932 postdeps_CXX="${prev}${p}"
10933 else
10934 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10935 fi
10936 fi
10937 ;;
10939 *.$objext)
10940 # This assumes that the test object file only shows up
10941 # once in the compiler output.
10942 if test "$p" = "conftest.$objext"; then
10943 pre_test_object_deps_done=yes
10944 continue
10945 fi
10947 if test "$pre_test_object_deps_done" = no; then
10948 if test -z "$predep_objects_CXX"; then
10949 predep_objects_CXX="$p"
10950 else
10951 predep_objects_CXX="$predep_objects_CXX $p"
10952 fi
10953 else
10954 if test -z "$postdep_objects_CXX"; then
10955 postdep_objects_CXX="$p"
10956 else
10957 postdep_objects_CXX="$postdep_objects_CXX $p"
10958 fi
10959 fi
10960 ;;
10962 *) ;; # Ignore the rest.
10964 esac
10965 done
10967 # Clean up.
10968 rm -f a.out a.exe
10969 else
10970 echo "libtool.m4: error: problem compiling CXX test program"
10971 fi
10973 $rm -f confest.$objext
10975 # PORTME: override above test on systems where it is broken
10976 case $host_os in
10977 interix3*)
10978 # Interix 3.5 installs completely hosed .la files for C++, so rather than
10979 # hack all around it, let's just trust "g++" to DTRT.
10980 predep_objects_CXX=
10981 postdep_objects_CXX=
10982 postdeps_CXX=
10983 ;;
10985 solaris*)
10986 case $cc_basename in
10987 CC*)
10988 # Adding this requires a known-good setup of shared libraries for
10989 # Sun compiler versions before 5.6, else PIC objects from an old
10990 # archive will be linked into the output, leading to subtle bugs.
10991 postdeps_CXX='-lCstd -lCrun'
10992 ;;
10993 esac
10994 ;;
10995 esac
10998 case " $postdeps_CXX " in
10999 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11000 esac
11002 lt_prog_compiler_wl_CXX=
11003 lt_prog_compiler_pic_CXX=
11004 lt_prog_compiler_static_CXX=
11006 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11007 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11009 # C++ specific cases for pic, static, wl, etc.
11010 if test "$GXX" = yes; then
11011 lt_prog_compiler_wl_CXX='-Wl,'
11012 lt_prog_compiler_static_CXX='-static'
11014 case $host_os in
11015 aix*)
11016 # All AIX code is PIC.
11017 if test "$host_cpu" = ia64; then
11018 # AIX 5 now supports IA64 processor
11019 lt_prog_compiler_static_CXX='-Bstatic'
11020 fi
11021 ;;
11022 amigaos*)
11023 # FIXME: we need at least 68020 code to build shared libraries, but
11024 # adding the `-m68020' flag to GCC prevents building anything better,
11025 # like `-m68040'.
11026 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11027 ;;
11028 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11029 # PIC is the default for these OSes.
11030 ;;
11031 mingw* | os2* | pw32*)
11032 # This hack is so that the source file can tell whether it is being
11033 # built for inclusion in a dll (and should export symbols for example).
11034 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11035 ;;
11036 darwin* | rhapsody*)
11037 # PIC is the default on this platform
11038 # Common symbols not allowed in MH_DYLIB files
11039 lt_prog_compiler_pic_CXX='-fno-common'
11040 ;;
11041 *djgpp*)
11042 # DJGPP does not support shared libraries at all
11043 lt_prog_compiler_pic_CXX=
11044 ;;
11045 interix3*)
11046 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11047 # Instead, we relocate shared libraries at runtime.
11048 ;;
11049 sysv4*MP*)
11050 if test -d /usr/nec; then
11051 lt_prog_compiler_pic_CXX=-Kconform_pic
11052 fi
11053 ;;
11054 hpux*)
11055 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11056 # not for PA HP-UX.
11057 case $host_cpu in
11058 hppa*64*|ia64*)
11059 ;;
11060 *)
11061 lt_prog_compiler_pic_CXX='-fPIC'
11062 ;;
11063 esac
11064 ;;
11065 *)
11066 lt_prog_compiler_pic_CXX='-fPIC'
11067 ;;
11068 esac
11069 else
11070 case $host_os in
11071 aix4* | aix5*)
11072 # All AIX code is PIC.
11073 if test "$host_cpu" = ia64; then
11074 # AIX 5 now supports IA64 processor
11075 lt_prog_compiler_static_CXX='-Bstatic'
11076 else
11077 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11078 fi
11079 ;;
11080 chorus*)
11081 case $cc_basename in
11082 cxch68*)
11083 # Green Hills C++ Compiler
11084 # _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"
11085 ;;
11086 esac
11087 ;;
11088 darwin*)
11089 # PIC is the default on this platform
11090 # Common symbols not allowed in MH_DYLIB files
11091 case $cc_basename in
11092 xlc*)
11093 lt_prog_compiler_pic_CXX='-qnocommon'
11094 lt_prog_compiler_wl_CXX='-Wl,'
11095 ;;
11096 esac
11097 ;;
11098 dgux*)
11099 case $cc_basename in
11100 ec++*)
11101 lt_prog_compiler_pic_CXX='-KPIC'
11102 ;;
11103 ghcx*)
11104 # Green Hills C++ Compiler
11105 lt_prog_compiler_pic_CXX='-pic'
11106 ;;
11107 *)
11108 ;;
11109 esac
11110 ;;
11111 freebsd* | kfreebsd*-gnu | dragonfly*)
11112 # FreeBSD uses GNU C++
11113 ;;
11114 hpux9* | hpux10* | hpux11*)
11115 case $cc_basename in
11116 CC*)
11117 lt_prog_compiler_wl_CXX='-Wl,'
11118 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11119 if test "$host_cpu" != ia64; then
11120 lt_prog_compiler_pic_CXX='+Z'
11121 fi
11122 ;;
11123 aCC*)
11124 lt_prog_compiler_wl_CXX='-Wl,'
11125 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11126 case $host_cpu in
11127 hppa*64*|ia64*)
11128 # +Z the default
11129 ;;
11130 *)
11131 lt_prog_compiler_pic_CXX='+Z'
11132 ;;
11133 esac
11134 ;;
11135 *)
11136 ;;
11137 esac
11138 ;;
11139 interix*)
11140 # This is c89, which is MS Visual C++ (no shared libs)
11141 # Anyone wants to do a port?
11142 ;;
11143 irix5* | irix6* | nonstopux*)
11144 case $cc_basename in
11145 CC*)
11146 lt_prog_compiler_wl_CXX='-Wl,'
11147 lt_prog_compiler_static_CXX='-non_shared'
11148 # CC pic flag -KPIC is the default.
11149 ;;
11150 *)
11151 ;;
11152 esac
11153 ;;
11154 linux*)
11155 case $cc_basename in
11156 KCC*)
11157 # KAI C++ Compiler
11158 lt_prog_compiler_wl_CXX='--backend -Wl,'
11159 lt_prog_compiler_pic_CXX='-fPIC'
11160 ;;
11161 icpc* | ecpc*)
11162 # Intel C++
11163 lt_prog_compiler_wl_CXX='-Wl,'
11164 lt_prog_compiler_pic_CXX='-KPIC'
11165 lt_prog_compiler_static_CXX='-static'
11166 ;;
11167 pgCC*)
11168 # Portland Group C++ compiler.
11169 lt_prog_compiler_wl_CXX='-Wl,'
11170 lt_prog_compiler_pic_CXX='-fpic'
11171 lt_prog_compiler_static_CXX='-Bstatic'
11172 ;;
11173 cxx*)
11174 # Compaq C++
11175 # Make sure the PIC flag is empty. It appears that all Alpha
11176 # Linux and Compaq Tru64 Unix objects are PIC.
11177 lt_prog_compiler_pic_CXX=
11178 lt_prog_compiler_static_CXX='-non_shared'
11179 ;;
11180 *)
11181 ;;
11182 esac
11183 ;;
11184 lynxos*)
11185 ;;
11186 m88k*)
11187 ;;
11188 mvs*)
11189 case $cc_basename in
11190 cxx*)
11191 lt_prog_compiler_pic_CXX='-W c,exportall'
11192 ;;
11193 *)
11194 ;;
11195 esac
11196 ;;
11197 netbsd*)
11198 ;;
11199 osf3* | osf4* | osf5*)
11200 case $cc_basename in
11201 KCC*)
11202 lt_prog_compiler_wl_CXX='--backend -Wl,'
11203 ;;
11204 RCC*)
11205 # Rational C++ 2.4.1
11206 lt_prog_compiler_pic_CXX='-pic'
11207 ;;
11208 cxx*)
11209 # Digital/Compaq C++
11210 lt_prog_compiler_wl_CXX='-Wl,'
11211 # Make sure the PIC flag is empty. It appears that all Alpha
11212 # Linux and Compaq Tru64 Unix objects are PIC.
11213 lt_prog_compiler_pic_CXX=
11214 lt_prog_compiler_static_CXX='-non_shared'
11215 ;;
11216 *)
11217 ;;
11218 esac
11219 ;;
11220 psos*)
11221 ;;
11222 solaris*)
11223 case $cc_basename in
11224 CC*)
11225 # Sun C++ 4.2, 5.x and Centerline C++
11226 lt_prog_compiler_pic_CXX='-KPIC'
11227 lt_prog_compiler_static_CXX='-Bstatic'
11228 lt_prog_compiler_wl_CXX='-Qoption ld '
11229 ;;
11230 gcx*)
11231 # Green Hills C++ Compiler
11232 lt_prog_compiler_pic_CXX='-PIC'
11233 ;;
11234 *)
11235 ;;
11236 esac
11237 ;;
11238 sunos4*)
11239 case $cc_basename in
11240 CC*)
11241 # Sun C++ 4.x
11242 lt_prog_compiler_pic_CXX='-pic'
11243 lt_prog_compiler_static_CXX='-Bstatic'
11244 ;;
11245 lcc*)
11246 # Lucid
11247 lt_prog_compiler_pic_CXX='-pic'
11248 ;;
11249 *)
11250 ;;
11251 esac
11252 ;;
11253 tandem*)
11254 case $cc_basename in
11255 NCC*)
11256 # NonStop-UX NCC 3.20
11257 lt_prog_compiler_pic_CXX='-KPIC'
11258 ;;
11259 *)
11260 ;;
11261 esac
11262 ;;
11263 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11264 case $cc_basename in
11265 CC*)
11266 lt_prog_compiler_wl_CXX='-Wl,'
11267 lt_prog_compiler_pic_CXX='-KPIC'
11268 lt_prog_compiler_static_CXX='-Bstatic'
11269 ;;
11270 esac
11271 ;;
11272 vxworks*)
11273 ;;
11274 *)
11275 lt_prog_compiler_can_build_shared_CXX=no
11276 ;;
11277 esac
11278 fi
11280 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11281 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11283 #
11284 # Check to make sure the PIC flag actually works.
11285 #
11286 if test -n "$lt_prog_compiler_pic_CXX"; then
11288 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11289 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11290 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293 lt_prog_compiler_pic_works_CXX=no
11294 ac_outfile=conftest.$ac_objext
11295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11296 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11297 # Insert the option either (1) after the last *FLAGS variable, or
11298 # (2) before a word containing "conftest.", or (3) at the end.
11299 # Note that $ac_compile itself does not contain backslashes and begins
11300 # with a dollar sign (not a hyphen), so the echo should work correctly.
11301 # The option is referenced via a variable to avoid confusing sed.
11302 lt_compile=`echo "$ac_compile" | $SED \
11303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11305 -e 's:$: $lt_compiler_flag:'`
11306 (eval echo "\"\$as_me:11306: $lt_compile\"" >&5)
11307 (eval "$lt_compile" 2>conftest.err)
11308 ac_status=$?
11309 cat conftest.err >&5
11310 echo "$as_me:11310: \$? = $ac_status" >&5
11311 if (exit $ac_status) && test -s "$ac_outfile"; then
11312 # The compiler can only warn and ignore the option if not recognized
11313 # So say no if there are warnings other than the usual output.
11314 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11317 lt_prog_compiler_pic_works_CXX=yes
11318 fi
11319 fi
11320 $rm conftest*
11322 fi
11323 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11324 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11326 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11327 case $lt_prog_compiler_pic_CXX in
11328 "" | " "*) ;;
11329 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11330 esac
11331 else
11332 lt_prog_compiler_pic_CXX=
11333 lt_prog_compiler_can_build_shared_CXX=no
11334 fi
11336 fi
11337 case $host_os in
11338 # For platforms which do not support PIC, -DPIC is meaningless:
11339 *djgpp*)
11340 lt_prog_compiler_pic_CXX=
11341 ;;
11342 *)
11343 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11344 ;;
11345 esac
11347 #
11348 # Check to make sure the static flag actually works.
11349 #
11350 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11351 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11352 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11353 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356 lt_prog_compiler_static_works_CXX=no
11357 save_LDFLAGS="$LDFLAGS"
11358 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11359 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11360 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11361 # The linker can only warn and ignore the option if not recognized
11362 # So say no if there are warnings
11363 if test -s conftest.err; then
11364 # Append any errors to the config.log.
11365 cat conftest.err 1>&5
11366 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11368 if diff conftest.exp conftest.er2 >/dev/null; then
11369 lt_prog_compiler_static_works_CXX=yes
11370 fi
11371 else
11372 lt_prog_compiler_static_works_CXX=yes
11373 fi
11374 fi
11375 $rm conftest*
11376 LDFLAGS="$save_LDFLAGS"
11378 fi
11379 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11380 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11382 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11383 :
11384 else
11385 lt_prog_compiler_static_CXX=
11386 fi
11389 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11390 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11391 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394 lt_cv_prog_compiler_c_o_CXX=no
11395 $rm -r conftest 2>/dev/null
11396 mkdir conftest
11397 cd conftest
11398 mkdir out
11399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11401 lt_compiler_flag="-o out/conftest2.$ac_objext"
11402 # Insert the option either (1) after the last *FLAGS variable, or
11403 # (2) before a word containing "conftest.", or (3) at the end.
11404 # Note that $ac_compile itself does not contain backslashes and begins
11405 # with a dollar sign (not a hyphen), so the echo should work correctly.
11406 lt_compile=`echo "$ac_compile" | $SED \
11407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11409 -e 's:$: $lt_compiler_flag:'`
11410 (eval echo "\"\$as_me:11410: $lt_compile\"" >&5)
11411 (eval "$lt_compile" 2>out/conftest.err)
11412 ac_status=$?
11413 cat out/conftest.err >&5
11414 echo "$as_me:11414: \$? = $ac_status" >&5
11415 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11416 then
11417 # The compiler can only warn and ignore the option if not recognized
11418 # So say no if there are warnings
11419 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11420 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11421 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11422 lt_cv_prog_compiler_c_o_CXX=yes
11423 fi
11424 fi
11425 chmod u+w . 2>&5
11426 $rm conftest*
11427 # SGI C++ compiler will create directory out/ii_files/ for
11428 # template instantiation
11429 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11430 $rm out/* && rmdir out
11431 cd ..
11432 rmdir conftest
11433 $rm conftest*
11435 fi
11436 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11437 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11440 hard_links="nottested"
11441 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11442 # do not overwrite the value of need_locks provided by the user
11443 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11444 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11445 hard_links=yes
11446 $rm conftest*
11447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11448 touch conftest.a
11449 ln conftest.a conftest.b 2>&5 || hard_links=no
11450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11451 echo "$as_me:$LINENO: result: $hard_links" >&5
11452 echo "${ECHO_T}$hard_links" >&6
11453 if test "$hard_links" = no; then
11454 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11455 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11456 need_locks=warn
11457 fi
11458 else
11459 need_locks=no
11460 fi
11462 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11463 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11465 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11466 case $host_os in
11467 aix4* | aix5*)
11468 # If we're using GNU nm, then we don't want the "-C" option.
11469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11470 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11471 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'
11472 else
11473 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'
11474 fi
11475 ;;
11476 pw32*)
11477 export_symbols_cmds_CXX="$ltdll_cmds"
11478 ;;
11479 cygwin* | mingw*)
11480 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'
11481 ;;
11482 *)
11483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11484 ;;
11485 esac
11487 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11488 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11489 test "$ld_shlibs_CXX" = no && can_build_shared=no
11491 #
11492 # Do we need to explicitly link libc?
11493 #
11494 case "x$archive_cmds_need_lc_CXX" in
11495 x|xyes)
11496 # Assume -lc should be added
11497 archive_cmds_need_lc_CXX=yes
11499 if test "$enable_shared" = yes && test "$GCC" = yes; then
11500 case $archive_cmds_CXX in
11501 *'~'*)
11502 # FIXME: we may have to deal with multi-command sequences.
11503 ;;
11504 '$CC '*)
11505 # Test whether the compiler implicitly links with -lc since on some
11506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11507 # to ld, don't add -lc before -lgcc.
11508 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11509 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11510 $rm conftest*
11511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } 2>conftest.err; then
11518 soname=conftest
11519 lib=conftest
11520 libobjs=conftest.$ac_objext
11521 deplibs=
11522 wl=$lt_prog_compiler_wl_CXX
11523 pic_flag=$lt_prog_compiler_pic_CXX
11524 compiler_flags=-v
11525 linker_flags=-v
11526 verstring=
11527 output_objdir=.
11528 libname=conftest
11529 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11530 allow_undefined_flag_CXX=
11531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11532 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }
11536 then
11537 archive_cmds_need_lc_CXX=no
11538 else
11539 archive_cmds_need_lc_CXX=yes
11540 fi
11541 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11542 else
11543 cat conftest.err 1>&5
11544 fi
11545 $rm conftest*
11546 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11547 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11548 ;;
11549 esac
11550 fi
11551 ;;
11552 esac
11554 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11555 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11556 library_names_spec=
11557 libname_spec='lib$name'
11558 soname_spec=
11559 shrext_cmds=".so"
11560 postinstall_cmds=
11561 postuninstall_cmds=
11562 finish_cmds=
11563 finish_eval=
11564 shlibpath_var=
11565 shlibpath_overrides_runpath=unknown
11566 version_type=none
11567 dynamic_linker="$host_os ld.so"
11568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11569 if test "$GCC" = yes; then
11570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11571 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11572 # if the path contains ";" then we assume it to be the separator
11573 # otherwise default to the standard path separator (i.e. ":") - it is
11574 # assumed that no part of a normal pathname contains ";" but that should
11575 # okay in the real world where ";" in dirpaths is itself problematic.
11576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11577 else
11578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11579 fi
11580 else
11581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11582 fi
11583 need_lib_prefix=unknown
11584 hardcode_into_libs=no
11586 # when you set need_version to no, make sure it does not cause -set_version
11587 # flags to be left without arguments
11588 need_version=unknown
11590 case $host_os in
11591 aix3*)
11592 version_type=linux
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11594 shlibpath_var=LIBPATH
11596 # AIX 3 has no versioning support, so we append a major version to the name.
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 ;;
11600 aix4* | aix5*)
11601 version_type=linux
11602 need_lib_prefix=no
11603 need_version=no
11604 hardcode_into_libs=yes
11605 if test "$host_cpu" = ia64; then
11606 # AIX 5 supports IA64
11607 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 else
11610 # With GCC up to 2.95.x, collect2 would create an import file
11611 # for dependence libraries. The import file would start with
11612 # the line `#! .'. This would cause the generated library to
11613 # depend on `.', always an invalid library. This was fixed in
11614 # development snapshots of GCC prior to 3.0.
11615 case $host_os in
11616 aix4 | aix4.[01] | aix4.[01].*)
11617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11618 echo ' yes '
11619 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11620 :
11621 else
11622 can_build_shared=no
11623 fi
11624 ;;
11625 esac
11626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11627 # soname into executable. Probably we can add versioning support to
11628 # collect2, so additional links can be useful in future.
11629 if test "$aix_use_runtimelinking" = yes; then
11630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11631 # instead of lib<name>.a to let people know that these are not
11632 # typical AIX shared libraries.
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 else
11635 # We preserve .a as extension for shared libraries through AIX4.2
11636 # and later when we are not doing run time linking.
11637 library_names_spec='${libname}${release}.a $libname.a'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 fi
11640 shlibpath_var=LIBPATH
11641 fi
11642 ;;
11644 amigaos*)
11645 library_names_spec='$libname.ixlibrary $libname.a'
11646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11647 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'
11648 ;;
11650 beos*)
11651 library_names_spec='${libname}${shared_ext}'
11652 dynamic_linker="$host_os ld.so"
11653 shlibpath_var=LIBRARY_PATH
11654 ;;
11656 bsdi[45]*)
11657 version_type=linux
11658 need_version=no
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11660 soname_spec='${libname}${release}${shared_ext}$major'
11661 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11664 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11665 # the default ld.so.conf also contains /usr/contrib/lib and
11666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11667 # libtool to hard-code these into programs
11668 ;;
11670 cygwin* | mingw* | pw32*)
11671 version_type=windows
11672 shrext_cmds=".dll"
11673 need_version=no
11674 need_lib_prefix=no
11676 case $GCC,$host_os in
11677 yes,cygwin* | yes,mingw* | yes,pw32*)
11678 library_names_spec='$libname.dll.a'
11679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11680 postinstall_cmds='base_file=`basename \${file}`~
11681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11682 dldir=$destdir/`dirname \$dlpath`~
11683 test -d \$dldir || mkdir -p \$dldir~
11684 $install_prog $dir/$dlname \$dldir/$dlname~
11685 chmod a+x \$dldir/$dlname'
11686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11687 dlpath=$dir/\$dldll~
11688 $rm \$dlpath'
11689 shlibpath_overrides_runpath=yes
11691 case $host_os in
11692 cygwin*)
11693 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11694 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11695 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11696 ;;
11697 mingw*)
11698 # MinGW DLLs use traditional 'lib' prefix
11699 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11701 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11702 # It is most probably a Windows format PATH printed by
11703 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11704 # path with ; separators, and with drive letters. We can handle the
11705 # drive letters (cygwin fileutils understands them), so leave them,
11706 # especially as we might pass files found there to a mingw objdump,
11707 # which wouldn't understand a cygwinified path. Ahh.
11708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11709 else
11710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11711 fi
11712 ;;
11713 pw32*)
11714 # pw32 DLLs use 'pw' prefix rather than 'lib'
11715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11716 ;;
11717 esac
11718 ;;
11720 *)
11721 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11722 ;;
11723 esac
11724 dynamic_linker='Win32 ld.exe'
11725 # FIXME: first we should search . and the directory the executable is in
11726 shlibpath_var=PATH
11727 ;;
11729 darwin* | rhapsody*)
11730 dynamic_linker="$host_os dyld"
11731 version_type=darwin
11732 need_lib_prefix=no
11733 need_version=no
11734 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11735 soname_spec='${libname}${release}${major}$shared_ext'
11736 shlibpath_overrides_runpath=yes
11737 shlibpath_var=DYLD_LIBRARY_PATH
11738 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11740 if test "$GCC" = yes; then
11741 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11742 else
11743 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11744 fi
11745 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11746 ;;
11748 dgux*)
11749 version_type=linux
11750 need_lib_prefix=no
11751 need_version=no
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11753 soname_spec='${libname}${release}${shared_ext}$major'
11754 shlibpath_var=LD_LIBRARY_PATH
11755 ;;
11757 freebsd1*)
11758 dynamic_linker=no
11759 ;;
11761 kfreebsd*-gnu)
11762 version_type=linux
11763 need_lib_prefix=no
11764 need_version=no
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11766 soname_spec='${libname}${release}${shared_ext}$major'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 shlibpath_overrides_runpath=no
11769 hardcode_into_libs=yes
11770 dynamic_linker='GNU ld.so'
11771 ;;
11773 freebsd* | dragonfly*)
11774 # DragonFly does not have aout. When/if they implement a new
11775 # versioning mechanism, adjust this.
11776 if test -x /usr/bin/objformat; then
11777 objformat=`/usr/bin/objformat`
11778 else
11779 case $host_os in
11780 freebsd[123]*) objformat=aout ;;
11781 *) objformat=elf ;;
11782 esac
11783 fi
11784 version_type=freebsd-$objformat
11785 case $version_type in
11786 freebsd-elf*)
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11788 need_version=no
11789 need_lib_prefix=no
11790 ;;
11791 freebsd-*)
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11793 need_version=yes
11794 ;;
11795 esac
11796 shlibpath_var=LD_LIBRARY_PATH
11797 case $host_os in
11798 freebsd2*)
11799 shlibpath_overrides_runpath=yes
11800 ;;
11801 freebsd3.[01]* | freebsdelf3.[01]*)
11802 shlibpath_overrides_runpath=yes
11803 hardcode_into_libs=yes
11804 ;;
11805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11807 shlibpath_overrides_runpath=no
11808 hardcode_into_libs=yes
11809 ;;
11810 freebsd*) # from 4.6 on
11811 shlibpath_overrides_runpath=yes
11812 hardcode_into_libs=yes
11813 ;;
11814 esac
11815 ;;
11817 gnu*)
11818 version_type=linux
11819 need_lib_prefix=no
11820 need_version=no
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 hardcode_into_libs=yes
11825 ;;
11827 hpux9* | hpux10* | hpux11*)
11828 # Give a soname corresponding to the major version so that dld.sl refuses to
11829 # link against other versions.
11830 version_type=sunos
11831 need_lib_prefix=no
11832 need_version=no
11833 case $host_cpu in
11834 ia64*)
11835 shrext_cmds='.so'
11836 hardcode_into_libs=yes
11837 dynamic_linker="$host_os dld.so"
11838 shlibpath_var=LD_LIBRARY_PATH
11839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 if test "X$HPUX_IA64_MODE" = X32; then
11843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11844 else
11845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11846 fi
11847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11848 ;;
11849 hppa*64*)
11850 shrext_cmds='.sl'
11851 hardcode_into_libs=yes
11852 dynamic_linker="$host_os dld.sl"
11853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856 soname_spec='${libname}${release}${shared_ext}$major'
11857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11859 ;;
11860 *)
11861 shrext_cmds='.sl'
11862 dynamic_linker="$host_os dld.sl"
11863 shlibpath_var=SHLIB_PATH
11864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 ;;
11868 esac
11869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11870 postinstall_cmds='chmod 555 $lib'
11871 ;;
11873 interix3*)
11874 version_type=linux
11875 need_lib_prefix=no
11876 need_version=no
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11878 soname_spec='${libname}${release}${shared_ext}$major'
11879 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=no
11882 hardcode_into_libs=yes
11883 ;;
11885 irix5* | irix6* | nonstopux*)
11886 case $host_os in
11887 nonstopux*) version_type=nonstopux ;;
11888 *)
11889 if test "$lt_cv_prog_gnu_ld" = yes; then
11890 version_type=linux
11891 else
11892 version_type=irix
11893 fi ;;
11894 esac
11895 need_lib_prefix=no
11896 need_version=no
11897 soname_spec='${libname}${release}${shared_ext}$major'
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11899 case $host_os in
11900 irix5* | nonstopux*)
11901 libsuff= shlibsuff=
11902 ;;
11903 *)
11904 case $LD in # libtool.m4 will add one of these switches to LD
11905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11906 libsuff= shlibsuff= libmagic=32-bit;;
11907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11908 libsuff=32 shlibsuff=N32 libmagic=N32;;
11909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11910 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11911 *) libsuff= shlibsuff= libmagic=never-match;;
11912 esac
11913 ;;
11914 esac
11915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11916 shlibpath_overrides_runpath=no
11917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11919 hardcode_into_libs=yes
11920 ;;
11922 # No shared lib support for Linux oldld, aout, or coff.
11923 linux*oldld* | linux*aout* | linux*coff*)
11924 dynamic_linker=no
11925 ;;
11927 # This must be Linux ELF.
11928 linux*)
11929 version_type=linux
11930 need_lib_prefix=no
11931 need_version=no
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11935 shlibpath_var=LD_LIBRARY_PATH
11936 shlibpath_overrides_runpath=no
11937 # This implies no fast_install, which is unacceptable.
11938 # Some rework will be needed to allow for fast_install
11939 # before this can be enabled.
11940 hardcode_into_libs=yes
11942 # Append ld.so.conf contents to the search path
11943 if test -f /etc/ld.so.conf; then
11944 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11945 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11946 fi
11948 # We used to test for /lib/ld.so.1 and disable shared libraries on
11949 # powerpc, because MkLinux only supported shared libraries with the
11950 # GNU dynamic linker. Since this was broken with cross compilers,
11951 # most powerpc-linux boxes support dynamic linking these days and
11952 # people can always --disable-shared, the test was removed, and we
11953 # assume the GNU/Linux dynamic linker is in use.
11954 dynamic_linker='GNU/Linux ld.so'
11955 ;;
11957 knetbsd*-gnu)
11958 version_type=linux
11959 need_lib_prefix=no
11960 need_version=no
11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11962 soname_spec='${libname}${release}${shared_ext}$major'
11963 shlibpath_var=LD_LIBRARY_PATH
11964 shlibpath_overrides_runpath=no
11965 hardcode_into_libs=yes
11966 dynamic_linker='GNU ld.so'
11967 ;;
11969 netbsd*)
11970 version_type=sunos
11971 need_lib_prefix=no
11972 need_version=no
11973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11976 dynamic_linker='NetBSD (a.out) ld.so'
11977 else
11978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11979 soname_spec='${libname}${release}${shared_ext}$major'
11980 dynamic_linker='NetBSD ld.elf_so'
11981 fi
11982 shlibpath_var=LD_LIBRARY_PATH
11983 shlibpath_overrides_runpath=yes
11984 hardcode_into_libs=yes
11985 ;;
11987 newsos6)
11988 version_type=linux
11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11990 shlibpath_var=LD_LIBRARY_PATH
11991 shlibpath_overrides_runpath=yes
11992 ;;
11994 nto-qnx*)
11995 version_type=linux
11996 need_lib_prefix=no
11997 need_version=no
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11999 soname_spec='${libname}${release}${shared_ext}$major'
12000 shlibpath_var=LD_LIBRARY_PATH
12001 shlibpath_overrides_runpath=yes
12002 ;;
12004 openbsd*)
12005 version_type=sunos
12006 sys_lib_dlsearch_path_spec="/usr/lib"
12007 need_lib_prefix=no
12008 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12009 case $host_os in
12010 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12011 *) need_version=no ;;
12012 esac
12013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12015 shlibpath_var=LD_LIBRARY_PATH
12016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12017 case $host_os in
12018 openbsd2.[89] | openbsd2.[89].*)
12019 shlibpath_overrides_runpath=no
12020 ;;
12021 *)
12022 shlibpath_overrides_runpath=yes
12023 ;;
12024 esac
12025 else
12026 shlibpath_overrides_runpath=yes
12027 fi
12028 ;;
12030 os2*)
12031 libname_spec='$name'
12032 shrext_cmds=".dll"
12033 need_lib_prefix=no
12034 library_names_spec='$libname${shared_ext} $libname.a'
12035 dynamic_linker='OS/2 ld.exe'
12036 shlibpath_var=LIBPATH
12037 ;;
12039 osf3* | osf4* | osf5*)
12040 version_type=osf
12041 need_lib_prefix=no
12042 need_version=no
12043 soname_spec='${libname}${release}${shared_ext}$major'
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12045 shlibpath_var=LD_LIBRARY_PATH
12046 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12047 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12048 ;;
12050 solaris*)
12051 version_type=linux
12052 need_lib_prefix=no
12053 need_version=no
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055 soname_spec='${libname}${release}${shared_ext}$major'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 shlibpath_overrides_runpath=yes
12058 hardcode_into_libs=yes
12059 # ldd complains unless libraries are executable
12060 postinstall_cmds='chmod +x $lib'
12061 ;;
12063 sunos4*)
12064 version_type=sunos
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12066 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12067 shlibpath_var=LD_LIBRARY_PATH
12068 shlibpath_overrides_runpath=yes
12069 if test "$with_gnu_ld" = yes; then
12070 need_lib_prefix=no
12071 fi
12072 need_version=yes
12073 ;;
12075 sysv4 | sysv4.3*)
12076 version_type=linux
12077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12078 soname_spec='${libname}${release}${shared_ext}$major'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 case $host_vendor in
12081 sni)
12082 shlibpath_overrides_runpath=no
12083 need_lib_prefix=no
12084 export_dynamic_flag_spec='${wl}-Blargedynsym'
12085 runpath_var=LD_RUN_PATH
12086 ;;
12087 siemens)
12088 need_lib_prefix=no
12089 ;;
12090 motorola)
12091 need_lib_prefix=no
12092 need_version=no
12093 shlibpath_overrides_runpath=no
12094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12095 ;;
12096 esac
12097 ;;
12099 sysv4*MP*)
12100 if test -d /usr/nec ;then
12101 version_type=linux
12102 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12103 soname_spec='$libname${shared_ext}.$major'
12104 shlibpath_var=LD_LIBRARY_PATH
12105 fi
12106 ;;
12108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12109 version_type=freebsd-elf
12110 need_lib_prefix=no
12111 need_version=no
12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12113 soname_spec='${libname}${release}${shared_ext}$major'
12114 shlibpath_var=LD_LIBRARY_PATH
12115 hardcode_into_libs=yes
12116 if test "$with_gnu_ld" = yes; then
12117 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12118 shlibpath_overrides_runpath=no
12119 else
12120 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12121 shlibpath_overrides_runpath=yes
12122 case $host_os in
12123 sco3.2v5*)
12124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12125 ;;
12126 esac
12127 fi
12128 sys_lib_dlsearch_path_spec='/usr/lib'
12129 ;;
12131 uts4*)
12132 version_type=linux
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134 soname_spec='${libname}${release}${shared_ext}$major'
12135 shlibpath_var=LD_LIBRARY_PATH
12136 ;;
12138 *)
12139 dynamic_linker=no
12140 ;;
12141 esac
12142 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12143 echo "${ECHO_T}$dynamic_linker" >&6
12144 test "$dynamic_linker" = no && can_build_shared=no
12146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12147 if test "$GCC" = yes; then
12148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12149 fi
12151 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12152 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12153 hardcode_action_CXX=
12154 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12155 test -n "$runpath_var_CXX" || \
12156 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12158 # We can hardcode non-existant directories.
12159 if test "$hardcode_direct_CXX" != no &&
12160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12161 # have to relink, otherwise we might link with an installed library
12162 # when we should be linking with a yet-to-be-installed one
12163 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12164 test "$hardcode_minus_L_CXX" != no; then
12165 # Linking always hardcodes the temporary library directory.
12166 hardcode_action_CXX=relink
12167 else
12168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12169 hardcode_action_CXX=immediate
12170 fi
12171 else
12172 # We cannot hardcode anything, or else we can only hardcode existing
12173 # directories.
12174 hardcode_action_CXX=unsupported
12175 fi
12176 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12177 echo "${ECHO_T}$hardcode_action_CXX" >&6
12179 if test "$hardcode_action_CXX" = relink; then
12180 # Fast installation is not supported
12181 enable_fast_install=no
12182 elif test "$shlibpath_overrides_runpath" = yes ||
12183 test "$enable_shared" = no; then
12184 # Fast installation is not necessary
12185 enable_fast_install=needless
12186 fi
12189 # The else clause should only fire when bootstrapping the
12190 # libtool distribution, otherwise you forgot to ship ltmain.sh
12191 # with your package, and you will get complaints that there are
12192 # no rules to generate ltmain.sh.
12193 if test -f "$ltmain"; then
12194 # See if we are running on zsh, and set the options which allow our commands through
12195 # without removal of \ escapes.
12196 if test -n "${ZSH_VERSION+set}" ; then
12197 setopt NO_GLOB_SUBST
12198 fi
12199 # Now quote all the things that may contain metacharacters while being
12200 # careful not to overquote the AC_SUBSTed values. We take copies of the
12201 # variables and quote the copies for generation of the libtool script.
12202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12203 SED SHELL STRIP \
12204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12206 deplibs_check_method reload_flag reload_cmds need_locks \
12207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12208 lt_cv_sys_global_symbol_to_c_name_address \
12209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12210 old_postinstall_cmds old_postuninstall_cmds \
12211 compiler_CXX \
12212 CC_CXX \
12213 LD_CXX \
12214 lt_prog_compiler_wl_CXX \
12215 lt_prog_compiler_pic_CXX \
12216 lt_prog_compiler_static_CXX \
12217 lt_prog_compiler_no_builtin_flag_CXX \
12218 export_dynamic_flag_spec_CXX \
12219 thread_safe_flag_spec_CXX \
12220 whole_archive_flag_spec_CXX \
12221 enable_shared_with_static_runtimes_CXX \
12222 old_archive_cmds_CXX \
12223 old_archive_from_new_cmds_CXX \
12224 predep_objects_CXX \
12225 postdep_objects_CXX \
12226 predeps_CXX \
12227 postdeps_CXX \
12228 compiler_lib_search_path_CXX \
12229 archive_cmds_CXX \
12230 archive_expsym_cmds_CXX \
12231 postinstall_cmds_CXX \
12232 postuninstall_cmds_CXX \
12233 old_archive_from_expsyms_cmds_CXX \
12234 allow_undefined_flag_CXX \
12235 no_undefined_flag_CXX \
12236 export_symbols_cmds_CXX \
12237 hardcode_libdir_flag_spec_CXX \
12238 hardcode_libdir_flag_spec_ld_CXX \
12239 hardcode_libdir_separator_CXX \
12240 hardcode_automatic_CXX \
12241 module_cmds_CXX \
12242 module_expsym_cmds_CXX \
12243 lt_cv_prog_compiler_c_o_CXX \
12244 exclude_expsyms_CXX \
12245 include_expsyms_CXX; do
12247 case $var in
12248 old_archive_cmds_CXX | \
12249 old_archive_from_new_cmds_CXX | \
12250 archive_cmds_CXX | \
12251 archive_expsym_cmds_CXX | \
12252 module_cmds_CXX | \
12253 module_expsym_cmds_CXX | \
12254 old_archive_from_expsyms_cmds_CXX | \
12255 export_symbols_cmds_CXX | \
12256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12257 postinstall_cmds | postuninstall_cmds | \
12258 old_postinstall_cmds | old_postuninstall_cmds | \
12259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12260 # Double-quote double-evaled strings.
12261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12262 ;;
12263 *)
12264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12265 ;;
12266 esac
12267 done
12269 case $lt_echo in
12270 *'\$0 --fallback-echo"')
12271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12272 ;;
12273 esac
12275 cfgfile="$ofile"
12277 cat <<__EOF__ >> "$cfgfile"
12278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12282 # Shell to use when invoking shell scripts.
12283 SHELL=$lt_SHELL
12285 # Whether or not to build shared libraries.
12286 build_libtool_libs=$enable_shared
12288 # Whether or not to build static libraries.
12289 build_old_libs=$enable_static
12291 # Whether or not to add -lc for building shared libraries.
12292 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12294 # Whether or not to disallow shared libs when runtime libs are static
12295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12297 # Whether or not to optimize for fast installation.
12298 fast_install=$enable_fast_install
12300 # The host system.
12301 host_alias=$host_alias
12302 host=$host
12303 host_os=$host_os
12305 # The build system.
12306 build_alias=$build_alias
12307 build=$build
12308 build_os=$build_os
12310 # An echo program that does not interpret backslashes.
12311 echo=$lt_echo
12313 # The archiver.
12314 AR=$lt_AR
12315 AR_FLAGS=$lt_AR_FLAGS
12317 # A C compiler.
12318 LTCC=$lt_LTCC
12320 # LTCC compiler flags.
12321 LTCFLAGS=$lt_LTCFLAGS
12323 # A language-specific compiler.
12324 CC=$lt_compiler_CXX
12326 # Is the compiler the GNU C compiler?
12327 with_gcc=$GCC_CXX
12329 # An ERE matcher.
12330 EGREP=$lt_EGREP
12332 # The linker used to build libraries.
12333 LD=$lt_LD_CXX
12335 # Whether we need hard or soft links.
12336 LN_S=$lt_LN_S
12338 # A BSD-compatible nm program.
12339 NM=$lt_NM
12341 # A symbol stripping program
12342 STRIP=$lt_STRIP
12344 # Used to examine libraries when file_magic_cmd begins "file"
12345 MAGIC_CMD=$MAGIC_CMD
12347 # Used on cygwin: DLL creation program.
12348 DLLTOOL="$DLLTOOL"
12350 # Used on cygwin: object dumper.
12351 OBJDUMP="$OBJDUMP"
12353 # Used on cygwin: assembler.
12354 AS="$AS"
12356 # The name of the directory that contains temporary libtool files.
12357 objdir=$objdir
12359 # How to create reloadable object files.
12360 reload_flag=$lt_reload_flag
12361 reload_cmds=$lt_reload_cmds
12363 # How to pass a linker flag through the compiler.
12364 wl=$lt_lt_prog_compiler_wl_CXX
12366 # Object file suffix (normally "o").
12367 objext="$ac_objext"
12369 # Old archive suffix (normally "a").
12370 libext="$libext"
12372 # Shared library suffix (normally ".so").
12373 shrext_cmds='$shrext_cmds'
12375 # Executable file suffix (normally "").
12376 exeext="$exeext"
12378 # Additional compiler flags for building library objects.
12379 pic_flag=$lt_lt_prog_compiler_pic_CXX
12380 pic_mode=$pic_mode
12382 # What is the maximum length of a command?
12383 max_cmd_len=$lt_cv_sys_max_cmd_len
12385 # Does compiler simultaneously support -c and -o options?
12386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12388 # Must we lock files when doing compilation?
12389 need_locks=$lt_need_locks
12391 # Do we need the lib prefix for modules?
12392 need_lib_prefix=$need_lib_prefix
12394 # Do we need a version for libraries?
12395 need_version=$need_version
12397 # Whether dlopen is supported.
12398 dlopen_support=$enable_dlopen
12400 # Whether dlopen of programs is supported.
12401 dlopen_self=$enable_dlopen_self
12403 # Whether dlopen of statically linked programs is supported.
12404 dlopen_self_static=$enable_dlopen_self_static
12406 # Compiler flag to prevent dynamic linking.
12407 link_static_flag=$lt_lt_prog_compiler_static_CXX
12409 # Compiler flag to turn off builtin functions.
12410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12412 # Compiler flag to allow reflexive dlopens.
12413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12415 # Compiler flag to generate shared objects directly from archives.
12416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12418 # Compiler flag to generate thread-safe objects.
12419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12421 # Library versioning type.
12422 version_type=$version_type
12424 # Format of library name prefix.
12425 libname_spec=$lt_libname_spec
12427 # List of archive names. First name is the real one, the rest are links.
12428 # The last name is the one that the linker finds with -lNAME.
12429 library_names_spec=$lt_library_names_spec
12431 # The coded name of the library, if different from the real name.
12432 soname_spec=$lt_soname_spec
12434 # Commands used to build and install an old-style archive.
12435 RANLIB=$lt_RANLIB
12436 old_archive_cmds=$lt_old_archive_cmds_CXX
12437 old_postinstall_cmds=$lt_old_postinstall_cmds
12438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12440 # Create an old-style archive from a shared archive.
12441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12443 # Create a temporary old-style archive to link instead of a shared archive.
12444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12446 # Commands used to build and install a shared archive.
12447 archive_cmds=$lt_archive_cmds_CXX
12448 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12449 postinstall_cmds=$lt_postinstall_cmds
12450 postuninstall_cmds=$lt_postuninstall_cmds
12452 # Commands used to build a loadable module (assumed same as above if empty)
12453 module_cmds=$lt_module_cmds_CXX
12454 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12456 # Commands to strip libraries.
12457 old_striplib=$lt_old_striplib
12458 striplib=$lt_striplib
12460 # Dependencies to place before the objects being linked to create a
12461 # shared library.
12462 predep_objects=$lt_predep_objects_CXX
12464 # Dependencies to place after the objects being linked to create a
12465 # shared library.
12466 postdep_objects=$lt_postdep_objects_CXX
12468 # Dependencies to place before the objects being linked to create a
12469 # shared library.
12470 predeps=$lt_predeps_CXX
12472 # Dependencies to place after the objects being linked to create a
12473 # shared library.
12474 postdeps=$lt_postdeps_CXX
12476 # The library search path used internally by the compiler when linking
12477 # a shared library.
12478 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12480 # Method to check whether dependent libraries are shared objects.
12481 deplibs_check_method=$lt_deplibs_check_method
12483 # Command to use when deplibs_check_method == file_magic.
12484 file_magic_cmd=$lt_file_magic_cmd
12486 # Flag that allows shared libraries with undefined symbols to be built.
12487 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12489 # Flag that forces no undefined symbols.
12490 no_undefined_flag=$lt_no_undefined_flag_CXX
12492 # Commands used to finish a libtool library installation in a directory.
12493 finish_cmds=$lt_finish_cmds
12495 # Same as above, but a single script fragment to be evaled but not shown.
12496 finish_eval=$lt_finish_eval
12498 # Take the output of nm and produce a listing of raw symbols and C names.
12499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12501 # Transform the output of nm in a proper C declaration
12502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12504 # Transform the output of nm in a C name address pair
12505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12507 # This is the shared library runtime path variable.
12508 runpath_var=$runpath_var
12510 # This is the shared library path variable.
12511 shlibpath_var=$shlibpath_var
12513 # Is shlibpath searched before the hard-coded library search path?
12514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12516 # How to hardcode a shared library path into an executable.
12517 hardcode_action=$hardcode_action_CXX
12519 # Whether we should hardcode library paths into libraries.
12520 hardcode_into_libs=$hardcode_into_libs
12522 # Flag to hardcode \$libdir into a binary during linking.
12523 # This must work even if \$libdir does not exist.
12524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12526 # If ld is used when linking, flag to hardcode \$libdir into
12527 # a binary during linking. This must work even if \$libdir does
12528 # not exist.
12529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12531 # Whether we need a single -rpath flag with a separated argument.
12532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12535 # resulting binary.
12536 hardcode_direct=$hardcode_direct_CXX
12538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12539 # resulting binary.
12540 hardcode_minus_L=$hardcode_minus_L_CXX
12542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12543 # the resulting binary.
12544 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12546 # Set to yes if building a shared library automatically hardcodes DIR into the library
12547 # and all subsequent libraries and executables linked against it.
12548 hardcode_automatic=$hardcode_automatic_CXX
12550 # Variables whose values should be saved in libtool wrapper scripts and
12551 # restored at relink time.
12552 variables_saved_for_relink="$variables_saved_for_relink"
12554 # Whether libtool must link a program against all its dependency libraries.
12555 link_all_deplibs=$link_all_deplibs_CXX
12557 # Compile-time system search path for libraries
12558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12560 # Run-time system search path for libraries
12561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12563 # Fix the shell variable \$srcfile for the compiler.
12564 fix_srcfile_path="$fix_srcfile_path_CXX"
12566 # Set to yes if exported symbols are required.
12567 always_export_symbols=$always_export_symbols_CXX
12569 # The commands to list exported symbols.
12570 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12572 # The commands to extract the exported symbol list from a shared archive.
12573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12575 # Symbols that should not be listed in the preloaded symbols.
12576 exclude_expsyms=$lt_exclude_expsyms_CXX
12578 # Symbols that must always be exported.
12579 include_expsyms=$lt_include_expsyms_CXX
12581 # ### END LIBTOOL TAG CONFIG: $tagname
12583 __EOF__
12586 else
12587 # If there is no Makefile yet, we rely on a make rule to execute
12588 # `config.status --recheck' to rerun these tests and create the
12589 # libtool script then.
12590 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12591 if test -f "$ltmain_in"; then
12592 test -f Makefile && make "$ltmain"
12593 fi
12594 fi
12597 ac_ext=c
12598 ac_cpp='$CPP $CPPFLAGS'
12599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12603 CC=$lt_save_CC
12604 LDCXX=$LD
12605 LD=$lt_save_LD
12606 GCC=$lt_save_GCC
12607 with_gnu_ldcxx=$with_gnu_ld
12608 with_gnu_ld=$lt_save_with_gnu_ld
12609 lt_cv_path_LDCXX=$lt_cv_path_LD
12610 lt_cv_path_LD=$lt_save_path_LD
12611 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12612 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12614 else
12615 tagname=""
12616 fi
12617 ;;
12619 F77)
12620 if test -n "$F77" && test "X$F77" != "Xno"; then
12621 :
12622 else
12623 tagname=""
12624 fi
12625 ;;
12627 GCJ)
12628 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12632 # Source file extension for Java test sources.
12633 ac_ext=java
12635 # Object file extension for compiled Java test sources.
12636 objext=o
12637 objext_GCJ=$objext
12639 # Code to be used in simple compile tests
12640 lt_simple_compile_test_code="class foo {}\n"
12642 # Code to be used in simple link tests
12643 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
12645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12647 # If no C compiler was specified, use CC.
12648 LTCC=${LTCC-"$CC"}
12650 # If no C compiler flags were specified, use CFLAGS.
12651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12653 # Allow CC to be a program name with arguments.
12654 compiler=$CC
12657 # save warnings/boilerplate of simple test code
12658 ac_outfile=conftest.$ac_objext
12659 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12661 _lt_compiler_boilerplate=`cat conftest.err`
12662 $rm conftest*
12664 ac_outfile=conftest.$ac_objext
12665 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12667 _lt_linker_boilerplate=`cat conftest.err`
12668 $rm conftest*
12671 # Allow CC to be a program name with arguments.
12672 lt_save_CC="$CC"
12673 CC=${GCJ-"gcj"}
12674 compiler=$CC
12675 compiler_GCJ=$CC
12676 for cc_temp in $compiler""; do
12677 case $cc_temp in
12678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12680 \-*) ;;
12681 *) break;;
12682 esac
12683 done
12684 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12687 # GCJ did not exist at the time GCC didn't implicitly link libc in.
12688 archive_cmds_need_lc_GCJ=no
12690 old_archive_cmds_GCJ=$old_archive_cmds
12693 lt_prog_compiler_no_builtin_flag_GCJ=
12695 if test "$GCC" = yes; then
12696 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
12699 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12700 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12701 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704 lt_cv_prog_compiler_rtti_exceptions=no
12705 ac_outfile=conftest.$ac_objext
12706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12707 lt_compiler_flag="-fno-rtti -fno-exceptions"
12708 # Insert the option either (1) after the last *FLAGS variable, or
12709 # (2) before a word containing "conftest.", or (3) at the end.
12710 # Note that $ac_compile itself does not contain backslashes and begins
12711 # with a dollar sign (not a hyphen), so the echo should work correctly.
12712 # The option is referenced via a variable to avoid confusing sed.
12713 lt_compile=`echo "$ac_compile" | $SED \
12714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12716 -e 's:$: $lt_compiler_flag:'`
12717 (eval echo "\"\$as_me:12717: $lt_compile\"" >&5)
12718 (eval "$lt_compile" 2>conftest.err)
12719 ac_status=$?
12720 cat conftest.err >&5
12721 echo "$as_me:12721: \$? = $ac_status" >&5
12722 if (exit $ac_status) && test -s "$ac_outfile"; then
12723 # The compiler can only warn and ignore the option if not recognized
12724 # So say no if there are warnings other than the usual output.
12725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12728 lt_cv_prog_compiler_rtti_exceptions=yes
12729 fi
12730 fi
12731 $rm conftest*
12733 fi
12734 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12735 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12737 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12738 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
12739 else
12740 :
12741 fi
12743 fi
12745 lt_prog_compiler_wl_GCJ=
12746 lt_prog_compiler_pic_GCJ=
12747 lt_prog_compiler_static_GCJ=
12749 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12750 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12752 if test "$GCC" = yes; then
12753 lt_prog_compiler_wl_GCJ='-Wl,'
12754 lt_prog_compiler_static_GCJ='-static'
12756 case $host_os in
12757 aix*)
12758 # All AIX code is PIC.
12759 if test "$host_cpu" = ia64; then
12760 # AIX 5 now supports IA64 processor
12761 lt_prog_compiler_static_GCJ='-Bstatic'
12762 fi
12763 ;;
12765 amigaos*)
12766 # FIXME: we need at least 68020 code to build shared libraries, but
12767 # adding the `-m68020' flag to GCC prevents building anything better,
12768 # like `-m68040'.
12769 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
12770 ;;
12772 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12773 # PIC is the default for these OSes.
12774 ;;
12776 mingw* | pw32* | os2*)
12777 # This hack is so that the source file can tell whether it is being
12778 # built for inclusion in a dll (and should export symbols for example).
12779 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12780 ;;
12782 darwin* | rhapsody*)
12783 # PIC is the default on this platform
12784 # Common symbols not allowed in MH_DYLIB files
12785 lt_prog_compiler_pic_GCJ='-fno-common'
12786 ;;
12788 interix3*)
12789 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12790 # Instead, we relocate shared libraries at runtime.
12791 ;;
12793 msdosdjgpp*)
12794 # Just because we use GCC doesn't mean we suddenly get shared libraries
12795 # on systems that don't support them.
12796 lt_prog_compiler_can_build_shared_GCJ=no
12797 enable_shared=no
12798 ;;
12800 sysv4*MP*)
12801 if test -d /usr/nec; then
12802 lt_prog_compiler_pic_GCJ=-Kconform_pic
12803 fi
12804 ;;
12806 hpux*)
12807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12808 # not for PA HP-UX.
12809 case $host_cpu in
12810 hppa*64*|ia64*)
12811 # +Z the default
12812 ;;
12813 *)
12814 lt_prog_compiler_pic_GCJ='-fPIC'
12815 ;;
12816 esac
12817 ;;
12819 *)
12820 lt_prog_compiler_pic_GCJ='-fPIC'
12821 ;;
12822 esac
12823 else
12824 # PORTME Check for flag to pass linker flags through the system compiler.
12825 case $host_os in
12826 aix*)
12827 lt_prog_compiler_wl_GCJ='-Wl,'
12828 if test "$host_cpu" = ia64; then
12829 # AIX 5 now supports IA64 processor
12830 lt_prog_compiler_static_GCJ='-Bstatic'
12831 else
12832 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
12833 fi
12834 ;;
12835 darwin*)
12836 # PIC is the default on this platform
12837 # Common symbols not allowed in MH_DYLIB files
12838 case $cc_basename in
12839 xlc*)
12840 lt_prog_compiler_pic_GCJ='-qnocommon'
12841 lt_prog_compiler_wl_GCJ='-Wl,'
12842 ;;
12843 esac
12844 ;;
12846 mingw* | pw32* | os2*)
12847 # This hack is so that the source file can tell whether it is being
12848 # built for inclusion in a dll (and should export symbols for example).
12849 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12850 ;;
12852 hpux9* | hpux10* | hpux11*)
12853 lt_prog_compiler_wl_GCJ='-Wl,'
12854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12855 # not for PA HP-UX.
12856 case $host_cpu in
12857 hppa*64*|ia64*)
12858 # +Z the default
12859 ;;
12860 *)
12861 lt_prog_compiler_pic_GCJ='+Z'
12862 ;;
12863 esac
12864 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12865 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
12866 ;;
12868 irix5* | irix6* | nonstopux*)
12869 lt_prog_compiler_wl_GCJ='-Wl,'
12870 # PIC (with -KPIC) is the default.
12871 lt_prog_compiler_static_GCJ='-non_shared'
12872 ;;
12874 newsos6)
12875 lt_prog_compiler_pic_GCJ='-KPIC'
12876 lt_prog_compiler_static_GCJ='-Bstatic'
12877 ;;
12879 linux*)
12880 case $cc_basename in
12881 icc* | ecc*)
12882 lt_prog_compiler_wl_GCJ='-Wl,'
12883 lt_prog_compiler_pic_GCJ='-KPIC'
12884 lt_prog_compiler_static_GCJ='-static'
12885 ;;
12886 pgcc* | pgf77* | pgf90* | pgf95*)
12887 # Portland Group compilers (*not* the Pentium gcc compiler,
12888 # which looks to be a dead project)
12889 lt_prog_compiler_wl_GCJ='-Wl,'
12890 lt_prog_compiler_pic_GCJ='-fpic'
12891 lt_prog_compiler_static_GCJ='-Bstatic'
12892 ;;
12893 ccc*)
12894 lt_prog_compiler_wl_GCJ='-Wl,'
12895 # All Alpha code is PIC.
12896 lt_prog_compiler_static_GCJ='-non_shared'
12897 ;;
12898 esac
12899 ;;
12901 osf3* | osf4* | osf5*)
12902 lt_prog_compiler_wl_GCJ='-Wl,'
12903 # All OSF/1 code is PIC.
12904 lt_prog_compiler_static_GCJ='-non_shared'
12905 ;;
12907 solaris*)
12908 lt_prog_compiler_pic_GCJ='-KPIC'
12909 lt_prog_compiler_static_GCJ='-Bstatic'
12910 case $cc_basename in
12911 f77* | f90* | f95*)
12912 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
12913 *)
12914 lt_prog_compiler_wl_GCJ='-Wl,';;
12915 esac
12916 ;;
12918 sunos4*)
12919 lt_prog_compiler_wl_GCJ='-Qoption ld '
12920 lt_prog_compiler_pic_GCJ='-PIC'
12921 lt_prog_compiler_static_GCJ='-Bstatic'
12922 ;;
12924 sysv4 | sysv4.2uw2* | sysv4.3*)
12925 lt_prog_compiler_wl_GCJ='-Wl,'
12926 lt_prog_compiler_pic_GCJ='-KPIC'
12927 lt_prog_compiler_static_GCJ='-Bstatic'
12928 ;;
12930 sysv4*MP*)
12931 if test -d /usr/nec ;then
12932 lt_prog_compiler_pic_GCJ='-Kconform_pic'
12933 lt_prog_compiler_static_GCJ='-Bstatic'
12934 fi
12935 ;;
12937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12938 lt_prog_compiler_wl_GCJ='-Wl,'
12939 lt_prog_compiler_pic_GCJ='-KPIC'
12940 lt_prog_compiler_static_GCJ='-Bstatic'
12941 ;;
12943 unicos*)
12944 lt_prog_compiler_wl_GCJ='-Wl,'
12945 lt_prog_compiler_can_build_shared_GCJ=no
12946 ;;
12948 uts4*)
12949 lt_prog_compiler_pic_GCJ='-pic'
12950 lt_prog_compiler_static_GCJ='-Bstatic'
12951 ;;
12953 *)
12954 lt_prog_compiler_can_build_shared_GCJ=no
12955 ;;
12956 esac
12957 fi
12959 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
12960 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
12962 #
12963 # Check to make sure the PIC flag actually works.
12964 #
12965 if test -n "$lt_prog_compiler_pic_GCJ"; then
12967 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12968 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
12969 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 else
12972 lt_prog_compiler_pic_works_GCJ=no
12973 ac_outfile=conftest.$ac_objext
12974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12975 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
12976 # Insert the option either (1) after the last *FLAGS variable, or
12977 # (2) before a word containing "conftest.", or (3) at the end.
12978 # Note that $ac_compile itself does not contain backslashes and begins
12979 # with a dollar sign (not a hyphen), so the echo should work correctly.
12980 # The option is referenced via a variable to avoid confusing sed.
12981 lt_compile=`echo "$ac_compile" | $SED \
12982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12984 -e 's:$: $lt_compiler_flag:'`
12985 (eval echo "\"\$as_me:12985: $lt_compile\"" >&5)
12986 (eval "$lt_compile" 2>conftest.err)
12987 ac_status=$?
12988 cat conftest.err >&5
12989 echo "$as_me:12989: \$? = $ac_status" >&5
12990 if (exit $ac_status) && test -s "$ac_outfile"; then
12991 # The compiler can only warn and ignore the option if not recognized
12992 # So say no if there are warnings other than the usual output.
12993 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12996 lt_prog_compiler_pic_works_GCJ=yes
12997 fi
12998 fi
12999 $rm conftest*
13001 fi
13002 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
13003 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
13005 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
13006 case $lt_prog_compiler_pic_GCJ in
13007 "" | " "*) ;;
13008 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
13009 esac
13010 else
13011 lt_prog_compiler_pic_GCJ=
13012 lt_prog_compiler_can_build_shared_GCJ=no
13013 fi
13015 fi
13016 case $host_os in
13017 # For platforms which do not support PIC, -DPIC is meaningless:
13018 *djgpp*)
13019 lt_prog_compiler_pic_GCJ=
13020 ;;
13021 *)
13022 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
13023 ;;
13024 esac
13026 #
13027 # Check to make sure the static flag actually works.
13028 #
13029 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
13030 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13031 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13032 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 lt_prog_compiler_static_works_GCJ=no
13036 save_LDFLAGS="$LDFLAGS"
13037 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13038 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13040 # The linker can only warn and ignore the option if not recognized
13041 # So say no if there are warnings
13042 if test -s conftest.err; then
13043 # Append any errors to the config.log.
13044 cat conftest.err 1>&5
13045 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13047 if diff conftest.exp conftest.er2 >/dev/null; then
13048 lt_prog_compiler_static_works_GCJ=yes
13049 fi
13050 else
13051 lt_prog_compiler_static_works_GCJ=yes
13052 fi
13053 fi
13054 $rm conftest*
13055 LDFLAGS="$save_LDFLAGS"
13057 fi
13058 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
13059 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
13061 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
13062 :
13063 else
13064 lt_prog_compiler_static_GCJ=
13065 fi
13068 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13069 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13070 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073 lt_cv_prog_compiler_c_o_GCJ=no
13074 $rm -r conftest 2>/dev/null
13075 mkdir conftest
13076 cd conftest
13077 mkdir out
13078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13080 lt_compiler_flag="-o out/conftest2.$ac_objext"
13081 # Insert the option either (1) after the last *FLAGS variable, or
13082 # (2) before a word containing "conftest.", or (3) at the end.
13083 # Note that $ac_compile itself does not contain backslashes and begins
13084 # with a dollar sign (not a hyphen), so the echo should work correctly.
13085 lt_compile=`echo "$ac_compile" | $SED \
13086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13088 -e 's:$: $lt_compiler_flag:'`
13089 (eval echo "\"\$as_me:13089: $lt_compile\"" >&5)
13090 (eval "$lt_compile" 2>out/conftest.err)
13091 ac_status=$?
13092 cat out/conftest.err >&5
13093 echo "$as_me:13093: \$? = $ac_status" >&5
13094 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13095 then
13096 # The compiler can only warn and ignore the option if not recognized
13097 # So say no if there are warnings
13098 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13101 lt_cv_prog_compiler_c_o_GCJ=yes
13102 fi
13103 fi
13104 chmod u+w . 2>&5
13105 $rm conftest*
13106 # SGI C++ compiler will create directory out/ii_files/ for
13107 # template instantiation
13108 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13109 $rm out/* && rmdir out
13110 cd ..
13111 rmdir conftest
13112 $rm conftest*
13114 fi
13115 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
13116 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
13119 hard_links="nottested"
13120 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
13121 # do not overwrite the value of need_locks provided by the user
13122 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13123 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13124 hard_links=yes
13125 $rm conftest*
13126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13127 touch conftest.a
13128 ln conftest.a conftest.b 2>&5 || hard_links=no
13129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13130 echo "$as_me:$LINENO: result: $hard_links" >&5
13131 echo "${ECHO_T}$hard_links" >&6
13132 if test "$hard_links" = no; then
13133 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13134 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13135 need_locks=warn
13136 fi
13137 else
13138 need_locks=no
13139 fi
13141 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13142 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13144 runpath_var=
13145 allow_undefined_flag_GCJ=
13146 enable_shared_with_static_runtimes_GCJ=no
13147 archive_cmds_GCJ=
13148 archive_expsym_cmds_GCJ=
13149 old_archive_From_new_cmds_GCJ=
13150 old_archive_from_expsyms_cmds_GCJ=
13151 export_dynamic_flag_spec_GCJ=
13152 whole_archive_flag_spec_GCJ=
13153 thread_safe_flag_spec_GCJ=
13154 hardcode_libdir_flag_spec_GCJ=
13155 hardcode_libdir_flag_spec_ld_GCJ=
13156 hardcode_libdir_separator_GCJ=
13157 hardcode_direct_GCJ=no
13158 hardcode_minus_L_GCJ=no
13159 hardcode_shlibpath_var_GCJ=unsupported
13160 link_all_deplibs_GCJ=unknown
13161 hardcode_automatic_GCJ=no
13162 module_cmds_GCJ=
13163 module_expsym_cmds_GCJ=
13164 always_export_symbols_GCJ=no
13165 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13166 # include_expsyms should be a list of space-separated symbols to be *always*
13167 # included in the symbol list
13168 include_expsyms_GCJ=
13169 # exclude_expsyms can be an extended regexp of symbols to exclude
13170 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13171 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13172 # as well as any symbol that contains `d'.
13173 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
13174 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13175 # platforms (ab)use it in PIC code, but their linkers get confused if
13176 # the symbol is explicitly referenced. Since portable code cannot
13177 # rely on this symbol name, it's probably fine to never include it in
13178 # preloaded symbol tables.
13179 extract_expsyms_cmds=
13180 # Just being paranoid about ensuring that cc_basename is set.
13181 for cc_temp in $compiler""; do
13182 case $cc_temp in
13183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13185 \-*) ;;
13186 *) break;;
13187 esac
13188 done
13189 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13191 case $host_os in
13192 cygwin* | mingw* | pw32*)
13193 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13194 # When not using gcc, we currently assume that we are using
13195 # Microsoft Visual C++.
13196 if test "$GCC" != yes; then
13197 with_gnu_ld=no
13198 fi
13199 ;;
13200 interix*)
13201 # we just hope/assume this is gcc and not c89 (= MSVC++)
13202 with_gnu_ld=yes
13203 ;;
13204 openbsd*)
13205 with_gnu_ld=no
13206 ;;
13207 esac
13209 ld_shlibs_GCJ=yes
13210 if test "$with_gnu_ld" = yes; then
13211 # If archive_cmds runs LD, not CC, wlarc should be empty
13212 wlarc='${wl}'
13214 # Set some defaults for GNU ld with shared library support. These
13215 # are reset later if shared libraries are not supported. Putting them
13216 # here allows them to be overridden if necessary.
13217 runpath_var=LD_RUN_PATH
13218 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
13219 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
13220 # ancient GNU ld didn't support --whole-archive et. al.
13221 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13222 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13223 else
13224 whole_archive_flag_spec_GCJ=
13225 fi
13226 supports_anon_versioning=no
13227 case `$LD -v 2>/dev/null` in
13228 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13229 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13230 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13231 *\ 2.11.*) ;; # other 2.11 versions
13232 *) supports_anon_versioning=yes ;;
13233 esac
13235 # See if GNU ld supports shared libraries.
13236 case $host_os in
13237 aix3* | aix4* | aix5*)
13238 # On AIX/PPC, the GNU linker is very broken
13239 if test "$host_cpu" != ia64; then
13240 ld_shlibs_GCJ=no
13241 cat <<EOF 1>&2
13243 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13244 *** to be unable to reliably create shared libraries on AIX.
13245 *** Therefore, libtool is disabling shared libraries support. If you
13246 *** really care for shared libraries, you may want to modify your PATH
13247 *** so that a non-GNU linker is found, and then restart.
13249 EOF
13250 fi
13251 ;;
13253 amigaos*)
13254 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)'
13255 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13256 hardcode_minus_L_GCJ=yes
13258 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13259 # that the semantics of dynamic libraries on AmigaOS, at least up
13260 # to version 4, is to share data among multiple programs linked
13261 # with the same dynamic library. Since this doesn't match the
13262 # behavior of shared libraries on other platforms, we can't use
13263 # them.
13264 ld_shlibs_GCJ=no
13265 ;;
13267 beos*)
13268 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13269 allow_undefined_flag_GCJ=unsupported
13270 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13271 # support --undefined. This deserves some investigation. FIXME
13272 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13273 else
13274 ld_shlibs_GCJ=no
13275 fi
13276 ;;
13278 cygwin* | mingw* | pw32*)
13279 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
13280 # as there is no search path for DLLs.
13281 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13282 allow_undefined_flag_GCJ=unsupported
13283 always_export_symbols_GCJ=no
13284 enable_shared_with_static_runtimes_GCJ=yes
13285 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13287 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13288 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13289 # If the export-symbols file already is a .def file (1st line
13290 # is EXPORTS), use it as is; otherwise, prepend...
13291 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13292 cp $export_symbols $output_objdir/$soname.def;
13293 else
13294 echo EXPORTS > $output_objdir/$soname.def;
13295 cat $export_symbols >> $output_objdir/$soname.def;
13296 fi~
13297 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13298 else
13299 ld_shlibs_GCJ=no
13300 fi
13301 ;;
13303 interix3*)
13304 hardcode_direct_GCJ=no
13305 hardcode_shlibpath_var_GCJ=no
13306 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13307 export_dynamic_flag_spec_GCJ='${wl}-E'
13308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13309 # Instead, shared libraries are loaded at an image base (0x10000000 by
13310 # default) and relocated if they conflict, which is a slow very memory
13311 # consuming and fragmenting process. To avoid this, we pick a random,
13312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13314 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'
13315 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'
13316 ;;
13318 linux*)
13319 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13320 tmp_addflag=
13321 case $cc_basename,$host_cpu in
13322 pgcc*) # Portland Group C compiler
13323 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'
13324 tmp_addflag=' $pic_flag'
13325 ;;
13326 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13327 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'
13328 tmp_addflag=' $pic_flag -Mnomain' ;;
13329 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13330 tmp_addflag=' -i_dynamic' ;;
13331 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13332 tmp_addflag=' -i_dynamic -nofor_main' ;;
13333 ifc* | ifort*) # Intel Fortran compiler
13334 tmp_addflag=' -nofor_main' ;;
13335 esac
13336 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13338 if test $supports_anon_versioning = yes; then
13339 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
13340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13341 $echo "local: *; };" >> $output_objdir/$libname.ver~
13342 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13343 fi
13344 else
13345 ld_shlibs_GCJ=no
13346 fi
13347 ;;
13349 netbsd*)
13350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13351 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13352 wlarc=
13353 else
13354 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13356 fi
13357 ;;
13359 solaris*)
13360 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13361 ld_shlibs_GCJ=no
13362 cat <<EOF 1>&2
13364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13365 *** create shared libraries on Solaris systems. Therefore, libtool
13366 *** is disabling shared libraries support. We urge you to upgrade GNU
13367 *** binutils to release 2.9.1 or newer. Another option is to modify
13368 *** your PATH or compiler configuration so that the native linker is
13369 *** used, and then restart.
13371 EOF
13372 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13373 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13374 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13375 else
13376 ld_shlibs_GCJ=no
13377 fi
13378 ;;
13380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13381 case `$LD -v 2>&1` in
13382 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13383 ld_shlibs_GCJ=no
13384 cat <<_LT_EOF 1>&2
13386 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13387 *** reliably create shared libraries on SCO systems. Therefore, libtool
13388 *** is disabling shared libraries support. We urge you to upgrade GNU
13389 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13390 *** your PATH or compiler configuration so that the native linker is
13391 *** used, and then restart.
13393 _LT_EOF
13394 ;;
13395 *)
13396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13397 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13398 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13399 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13400 else
13401 ld_shlibs_GCJ=no
13402 fi
13403 ;;
13404 esac
13405 ;;
13407 sunos4*)
13408 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13409 wlarc=
13410 hardcode_direct_GCJ=yes
13411 hardcode_shlibpath_var_GCJ=no
13412 ;;
13414 *)
13415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13416 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13417 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13418 else
13419 ld_shlibs_GCJ=no
13420 fi
13421 ;;
13422 esac
13424 if test "$ld_shlibs_GCJ" = no; then
13425 runpath_var=
13426 hardcode_libdir_flag_spec_GCJ=
13427 export_dynamic_flag_spec_GCJ=
13428 whole_archive_flag_spec_GCJ=
13429 fi
13430 else
13431 # PORTME fill in a description of your system's linker (not GNU ld)
13432 case $host_os in
13433 aix3*)
13434 allow_undefined_flag_GCJ=unsupported
13435 always_export_symbols_GCJ=yes
13436 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'
13437 # Note: this linker hardcodes the directories in LIBPATH if there
13438 # are no directories specified by -L.
13439 hardcode_minus_L_GCJ=yes
13440 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13441 # Neither direct hardcoding nor static linking is supported with a
13442 # broken collect2.
13443 hardcode_direct_GCJ=unsupported
13444 fi
13445 ;;
13447 aix4* | aix5*)
13448 if test "$host_cpu" = ia64; then
13449 # On IA64, the linker does run time linking by default, so we don't
13450 # have to do anything special.
13451 aix_use_runtimelinking=no
13452 exp_sym_flag='-Bexport'
13453 no_entry_flag=""
13454 else
13455 # If we're using GNU nm, then we don't want the "-C" option.
13456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13457 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13458 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'
13459 else
13460 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'
13461 fi
13462 aix_use_runtimelinking=no
13464 # Test if we are trying to use run time linking or normal
13465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13466 # need to do runtime linking.
13467 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13468 for ld_flag in $LDFLAGS; do
13469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13470 aix_use_runtimelinking=yes
13471 break
13472 fi
13473 done
13474 ;;
13475 esac
13477 exp_sym_flag='-bexport'
13478 no_entry_flag='-bnoentry'
13479 fi
13481 # When large executables or shared objects are built, AIX ld can
13482 # have problems creating the table of contents. If linking a library
13483 # or program results in "error TOC overflow" add -mminimal-toc to
13484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13487 archive_cmds_GCJ=''
13488 hardcode_direct_GCJ=yes
13489 hardcode_libdir_separator_GCJ=':'
13490 link_all_deplibs_GCJ=yes
13492 if test "$GCC" = yes; then
13493 case $host_os in aix4.[012]|aix4.[012].*)
13494 # We only want to do this on AIX 4.2 and lower, the check
13495 # below for broken collect2 doesn't work under 4.3+
13496 collect2name=`${CC} -print-prog-name=collect2`
13497 if test -f "$collect2name" && \
13498 strings "$collect2name" | grep resolve_lib_name >/dev/null
13499 then
13500 # We have reworked collect2
13501 hardcode_direct_GCJ=yes
13502 else
13503 # We have old collect2
13504 hardcode_direct_GCJ=unsupported
13505 # It fails to find uninstalled libraries when the uninstalled
13506 # path is not listed in the libpath. Setting hardcode_minus_L
13507 # to unsupported forces relinking
13508 hardcode_minus_L_GCJ=yes
13509 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13510 hardcode_libdir_separator_GCJ=
13511 fi
13512 ;;
13513 esac
13514 shared_flag='-shared'
13515 if test "$aix_use_runtimelinking" = yes; then
13516 shared_flag="$shared_flag "'${wl}-G'
13517 fi
13518 else
13519 # not using gcc
13520 if test "$host_cpu" = ia64; then
13521 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13522 # chokes on -Wl,-G. The following line is correct:
13523 shared_flag='-G'
13524 else
13525 if test "$aix_use_runtimelinking" = yes; then
13526 shared_flag='${wl}-G'
13527 else
13528 shared_flag='${wl}-bM:SRE'
13529 fi
13530 fi
13531 fi
13533 # It seems that -bexpall does not export symbols beginning with
13534 # underscore (_), so it is better to generate a list of symbols to export.
13535 always_export_symbols_GCJ=yes
13536 if test "$aix_use_runtimelinking" = yes; then
13537 # Warning - without using the other runtime loading flags (-brtl),
13538 # -berok will link without error, but may produce a broken library.
13539 allow_undefined_flag_GCJ='-berok'
13540 # Determine the default libpath from the value encoded in an empty executable.
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 int
13549 main ()
13550 {
13552 ;
13553 return 0;
13554 }
13555 _ACEOF
13556 rm -f conftest.$ac_objext conftest$ac_exeext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13558 (eval $ac_link) 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest$ac_exeext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13580 }'`
13581 # Check for a 64-bit object if we didn't find anything.
13582 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13583 }'`; fi
13584 else
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 fi
13589 rm -f conftest.err conftest.$ac_objext \
13590 conftest$ac_exeext conftest.$ac_ext
13591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13593 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13594 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"
13595 else
13596 if test "$host_cpu" = ia64; then
13597 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
13598 allow_undefined_flag_GCJ="-z nodefs"
13599 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"
13600 else
13601 # Determine the default libpath from the value encoded in an empty executable.
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h. */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13609 int
13610 main ()
13611 {
13613 ;
13614 return 0;
13615 }
13616 _ACEOF
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619 (eval $ac_link) 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_c_werror_flag"
13627 || test ! -s conftest.err'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest$ac_exeext'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13641 }'`
13642 # Check for a 64-bit object if we didn't find anything.
13643 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13644 }'`; fi
13645 else
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13649 fi
13650 rm -f conftest.err conftest.$ac_objext \
13651 conftest$ac_exeext conftest.$ac_ext
13652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13654 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13655 # Warning - without using the other run time loading flags,
13656 # -berok will link without error, but may produce a broken library.
13657 no_undefined_flag_GCJ=' ${wl}-bernotok'
13658 allow_undefined_flag_GCJ=' ${wl}-berok'
13659 # Exported symbols can be pulled into shared objects from archives
13660 whole_archive_flag_spec_GCJ='$convenience'
13661 archive_cmds_need_lc_GCJ=yes
13662 # This is similar to how AIX traditionally builds its shared libraries.
13663 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'
13664 fi
13665 fi
13666 ;;
13668 amigaos*)
13669 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)'
13670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13671 hardcode_minus_L_GCJ=yes
13672 # see comment about different semantics on the GNU ld section
13673 ld_shlibs_GCJ=no
13674 ;;
13676 bsdi[45]*)
13677 export_dynamic_flag_spec_GCJ=-rdynamic
13678 ;;
13680 cygwin* | mingw* | pw32*)
13681 # When not using gcc, we currently assume that we are using
13682 # Microsoft Visual C++.
13683 # hardcode_libdir_flag_spec is actually meaningless, as there is
13684 # no search path for DLLs.
13685 hardcode_libdir_flag_spec_GCJ=' '
13686 allow_undefined_flag_GCJ=unsupported
13687 # Tell ltmain to make .lib files, not .a files.
13688 libext=lib
13689 # Tell ltmain to make .dll files, not .so files.
13690 shrext_cmds=".dll"
13691 # FIXME: Setting linknames here is a bad hack.
13692 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13693 # The linker will automatically build a .lib file if we build a DLL.
13694 old_archive_From_new_cmds_GCJ='true'
13695 # FIXME: Should let the user specify the lib program.
13696 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
13697 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
13698 enable_shared_with_static_runtimes_GCJ=yes
13699 ;;
13701 darwin* | rhapsody*)
13702 case $host_os in
13703 rhapsody* | darwin1.[012])
13704 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
13705 ;;
13706 *) # Darwin 1.3 on
13707 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13708 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13709 else
13710 case ${MACOSX_DEPLOYMENT_TARGET} in
13711 10.[012])
13712 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13713 ;;
13714 10.*)
13715 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
13716 ;;
13717 esac
13718 fi
13719 ;;
13720 esac
13721 archive_cmds_need_lc_GCJ=no
13722 hardcode_direct_GCJ=no
13723 hardcode_automatic_GCJ=yes
13724 hardcode_shlibpath_var_GCJ=unsupported
13725 whole_archive_flag_spec_GCJ=''
13726 link_all_deplibs_GCJ=yes
13727 if test "$GCC" = yes ; then
13728 output_verbose_link_cmd='echo'
13729 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13730 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13732 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13733 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}'
13734 else
13735 case $cc_basename in
13736 xlc*)
13737 output_verbose_link_cmd='echo'
13738 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13739 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13741 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13742 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}'
13743 ;;
13744 *)
13745 ld_shlibs_GCJ=no
13746 ;;
13747 esac
13748 fi
13749 ;;
13751 dgux*)
13752 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13754 hardcode_shlibpath_var_GCJ=no
13755 ;;
13757 freebsd1*)
13758 ld_shlibs_GCJ=no
13759 ;;
13761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13762 # support. Future versions do this automatically, but an explicit c++rt0.o
13763 # does not break anything, and helps significantly (at the cost of a little
13764 # extra space).
13765 freebsd2.2*)
13766 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13767 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13768 hardcode_direct_GCJ=yes
13769 hardcode_shlibpath_var_GCJ=no
13770 ;;
13772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13773 freebsd2*)
13774 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13775 hardcode_direct_GCJ=yes
13776 hardcode_minus_L_GCJ=yes
13777 hardcode_shlibpath_var_GCJ=no
13778 ;;
13780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13781 freebsd* | kfreebsd*-gnu | dragonfly*)
13782 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13783 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13784 hardcode_direct_GCJ=yes
13785 hardcode_shlibpath_var_GCJ=no
13786 ;;
13788 hpux9*)
13789 if test "$GCC" = yes; then
13790 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'
13791 else
13792 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'
13793 fi
13794 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13795 hardcode_libdir_separator_GCJ=:
13796 hardcode_direct_GCJ=yes
13798 # hardcode_minus_L: Not really in the search PATH,
13799 # but as the default location of the library.
13800 hardcode_minus_L_GCJ=yes
13801 export_dynamic_flag_spec_GCJ='${wl}-E'
13802 ;;
13804 hpux10*)
13805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13806 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13807 else
13808 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13809 fi
13810 if test "$with_gnu_ld" = no; then
13811 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13812 hardcode_libdir_separator_GCJ=:
13814 hardcode_direct_GCJ=yes
13815 export_dynamic_flag_spec_GCJ='${wl}-E'
13817 # hardcode_minus_L: Not really in the search PATH,
13818 # but as the default location of the library.
13819 hardcode_minus_L_GCJ=yes
13820 fi
13821 ;;
13823 hpux11*)
13824 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13825 case $host_cpu in
13826 hppa*64*)
13827 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 ;;
13829 ia64*)
13830 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13831 ;;
13832 *)
13833 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13834 ;;
13835 esac
13836 else
13837 case $host_cpu in
13838 hppa*64*)
13839 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 ;;
13841 ia64*)
13842 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13843 ;;
13844 *)
13845 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13846 ;;
13847 esac
13848 fi
13849 if test "$with_gnu_ld" = no; then
13850 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13851 hardcode_libdir_separator_GCJ=:
13853 case $host_cpu in
13854 hppa*64*|ia64*)
13855 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
13856 hardcode_direct_GCJ=no
13857 hardcode_shlibpath_var_GCJ=no
13858 ;;
13859 *)
13860 hardcode_direct_GCJ=yes
13861 export_dynamic_flag_spec_GCJ='${wl}-E'
13863 # hardcode_minus_L: Not really in the search PATH,
13864 # but as the default location of the library.
13865 hardcode_minus_L_GCJ=yes
13866 ;;
13867 esac
13868 fi
13869 ;;
13871 irix5* | irix6* | nonstopux*)
13872 if test "$GCC" = yes; then
13873 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'
13874 else
13875 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'
13876 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
13877 fi
13878 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13879 hardcode_libdir_separator_GCJ=:
13880 link_all_deplibs_GCJ=yes
13881 ;;
13883 netbsd*)
13884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13885 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13886 else
13887 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13888 fi
13889 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13890 hardcode_direct_GCJ=yes
13891 hardcode_shlibpath_var_GCJ=no
13892 ;;
13894 newsos6)
13895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13896 hardcode_direct_GCJ=yes
13897 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13898 hardcode_libdir_separator_GCJ=:
13899 hardcode_shlibpath_var_GCJ=no
13900 ;;
13902 openbsd*)
13903 hardcode_direct_GCJ=yes
13904 hardcode_shlibpath_var_GCJ=no
13905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13906 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13907 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13908 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13909 export_dynamic_flag_spec_GCJ='${wl}-E'
13910 else
13911 case $host_os in
13912 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13913 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13914 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13915 ;;
13916 *)
13917 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13918 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13919 ;;
13920 esac
13921 fi
13922 ;;
13924 os2*)
13925 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13926 hardcode_minus_L_GCJ=yes
13927 allow_undefined_flag_GCJ=unsupported
13928 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'
13929 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13930 ;;
13932 osf3*)
13933 if test "$GCC" = yes; then
13934 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13935 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'
13936 else
13937 allow_undefined_flag_GCJ=' -expect_unresolved \*'
13938 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'
13939 fi
13940 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13941 hardcode_libdir_separator_GCJ=:
13942 ;;
13944 osf4* | osf5*) # as osf3* with the addition of -msym flag
13945 if test "$GCC" = yes; then
13946 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13947 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'
13948 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13949 else
13950 allow_undefined_flag_GCJ=' -expect_unresolved \*'
13951 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'
13952 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~
13953 $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'
13955 # Both c and cxx compiler support -rpath directly
13956 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
13957 fi
13958 hardcode_libdir_separator_GCJ=:
13959 ;;
13961 solaris*)
13962 no_undefined_flag_GCJ=' -z text'
13963 if test "$GCC" = yes; then
13964 wlarc='${wl}'
13965 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13966 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13967 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13968 else
13969 wlarc=''
13970 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13973 fi
13974 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13975 hardcode_shlibpath_var_GCJ=no
13976 case $host_os in
13977 solaris2.[0-5] | solaris2.[0-5].*) ;;
13978 *)
13979 # The compiler driver will combine linker options so we
13980 # cannot just pass the convience library names through
13981 # without $wl, iff we do not link with $LD.
13982 # Luckily, gcc supports the same syntax we need for Sun Studio.
13983 # Supported since Solaris 2.6 (maybe 2.5.1?)
13984 case $wlarc in
13985 '')
13986 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
13987 *)
13988 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13989 esac ;;
13990 esac
13991 link_all_deplibs_GCJ=yes
13992 ;;
13994 sunos4*)
13995 if test "x$host_vendor" = xsequent; then
13996 # Use $CC to link under sequent, because it throws in some extra .o
13997 # files that make .init and .fini sections work.
13998 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13999 else
14000 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14001 fi
14002 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14003 hardcode_direct_GCJ=yes
14004 hardcode_minus_L_GCJ=yes
14005 hardcode_shlibpath_var_GCJ=no
14006 ;;
14008 sysv4)
14009 case $host_vendor in
14010 sni)
14011 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012 hardcode_direct_GCJ=yes # is this really true???
14013 ;;
14014 siemens)
14015 ## LD is ld it makes a PLAMLIB
14016 ## CC just makes a GrossModule.
14017 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14018 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
14019 hardcode_direct_GCJ=no
14020 ;;
14021 motorola)
14022 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14023 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
14024 ;;
14025 esac
14026 runpath_var='LD_RUN_PATH'
14027 hardcode_shlibpath_var_GCJ=no
14028 ;;
14030 sysv4.3*)
14031 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14032 hardcode_shlibpath_var_GCJ=no
14033 export_dynamic_flag_spec_GCJ='-Bexport'
14034 ;;
14036 sysv4*MP*)
14037 if test -d /usr/nec; then
14038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039 hardcode_shlibpath_var_GCJ=no
14040 runpath_var=LD_RUN_PATH
14041 hardcode_runpath_var=yes
14042 ld_shlibs_GCJ=yes
14043 fi
14044 ;;
14046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14047 no_undefined_flag_GCJ='${wl}-z,text'
14048 archive_cmds_need_lc_GCJ=no
14049 hardcode_shlibpath_var_GCJ=no
14050 runpath_var='LD_RUN_PATH'
14052 if test "$GCC" = yes; then
14053 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14055 else
14056 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14058 fi
14059 ;;
14061 sysv5* | sco3.2v5* | sco5v6*)
14062 # Note: We can NOT use -z defs as we might desire, because we do not
14063 # link with -lc, and that would cause any symbols used from libc to
14064 # always be unresolved, which means just about no library would
14065 # ever link correctly. If we're not using GNU ld we use -z text
14066 # though, which does catch some bad symbols but isn't as heavy-handed
14067 # as -z defs.
14068 no_undefined_flag_GCJ='${wl}-z,text'
14069 allow_undefined_flag_GCJ='${wl}-z,nodefs'
14070 archive_cmds_need_lc_GCJ=no
14071 hardcode_shlibpath_var_GCJ=no
14072 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14073 hardcode_libdir_separator_GCJ=':'
14074 link_all_deplibs_GCJ=yes
14075 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
14076 runpath_var='LD_RUN_PATH'
14078 if test "$GCC" = yes; then
14079 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14080 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14081 else
14082 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14083 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14084 fi
14085 ;;
14087 uts4*)
14088 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14089 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14090 hardcode_shlibpath_var_GCJ=no
14091 ;;
14093 *)
14094 ld_shlibs_GCJ=no
14095 ;;
14096 esac
14097 fi
14099 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
14100 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
14101 test "$ld_shlibs_GCJ" = no && can_build_shared=no
14103 #
14104 # Do we need to explicitly link libc?
14105 #
14106 case "x$archive_cmds_need_lc_GCJ" in
14107 x|xyes)
14108 # Assume -lc should be added
14109 archive_cmds_need_lc_GCJ=yes
14111 if test "$enable_shared" = yes && test "$GCC" = yes; then
14112 case $archive_cmds_GCJ in
14113 *'~'*)
14114 # FIXME: we may have to deal with multi-command sequences.
14115 ;;
14116 '$CC '*)
14117 # Test whether the compiler implicitly links with -lc since on some
14118 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14119 # to ld, don't add -lc before -lgcc.
14120 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14121 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14122 $rm conftest*
14123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } 2>conftest.err; then
14130 soname=conftest
14131 lib=conftest
14132 libobjs=conftest.$ac_objext
14133 deplibs=
14134 wl=$lt_prog_compiler_wl_GCJ
14135 pic_flag=$lt_prog_compiler_pic_GCJ
14136 compiler_flags=-v
14137 linker_flags=-v
14138 verstring=
14139 output_objdir=.
14140 libname=conftest
14141 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14142 allow_undefined_flag_GCJ=
14143 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14144 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }
14148 then
14149 archive_cmds_need_lc_GCJ=no
14150 else
14151 archive_cmds_need_lc_GCJ=yes
14152 fi
14153 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14154 else
14155 cat conftest.err 1>&5
14156 fi
14157 $rm conftest*
14158 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
14159 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
14160 ;;
14161 esac
14162 fi
14163 ;;
14164 esac
14166 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14168 library_names_spec=
14169 libname_spec='lib$name'
14170 soname_spec=
14171 shrext_cmds=".so"
14172 postinstall_cmds=
14173 postuninstall_cmds=
14174 finish_cmds=
14175 finish_eval=
14176 shlibpath_var=
14177 shlibpath_overrides_runpath=unknown
14178 version_type=none
14179 dynamic_linker="$host_os ld.so"
14180 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14181 if test "$GCC" = yes; then
14182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14183 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14184 # if the path contains ";" then we assume it to be the separator
14185 # otherwise default to the standard path separator (i.e. ":") - it is
14186 # assumed that no part of a normal pathname contains ";" but that should
14187 # okay in the real world where ";" in dirpaths is itself problematic.
14188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14189 else
14190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14191 fi
14192 else
14193 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14194 fi
14195 need_lib_prefix=unknown
14196 hardcode_into_libs=no
14198 # when you set need_version to no, make sure it does not cause -set_version
14199 # flags to be left without arguments
14200 need_version=unknown
14202 case $host_os in
14203 aix3*)
14204 version_type=linux
14205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14206 shlibpath_var=LIBPATH
14208 # AIX 3 has no versioning support, so we append a major version to the name.
14209 soname_spec='${libname}${release}${shared_ext}$major'
14210 ;;
14212 aix4* | aix5*)
14213 version_type=linux
14214 need_lib_prefix=no
14215 need_version=no
14216 hardcode_into_libs=yes
14217 if test "$host_cpu" = ia64; then
14218 # AIX 5 supports IA64
14219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14220 shlibpath_var=LD_LIBRARY_PATH
14221 else
14222 # With GCC up to 2.95.x, collect2 would create an import file
14223 # for dependence libraries. The import file would start with
14224 # the line `#! .'. This would cause the generated library to
14225 # depend on `.', always an invalid library. This was fixed in
14226 # development snapshots of GCC prior to 3.0.
14227 case $host_os in
14228 aix4 | aix4.[01] | aix4.[01].*)
14229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14230 echo ' yes '
14231 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14232 :
14233 else
14234 can_build_shared=no
14235 fi
14236 ;;
14237 esac
14238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14239 # soname into executable. Probably we can add versioning support to
14240 # collect2, so additional links can be useful in future.
14241 if test "$aix_use_runtimelinking" = yes; then
14242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14243 # instead of lib<name>.a to let people know that these are not
14244 # typical AIX shared libraries.
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246 else
14247 # We preserve .a as extension for shared libraries through AIX4.2
14248 # and later when we are not doing run time linking.
14249 library_names_spec='${libname}${release}.a $libname.a'
14250 soname_spec='${libname}${release}${shared_ext}$major'
14251 fi
14252 shlibpath_var=LIBPATH
14253 fi
14254 ;;
14256 amigaos*)
14257 library_names_spec='$libname.ixlibrary $libname.a'
14258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14259 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'
14260 ;;
14262 beos*)
14263 library_names_spec='${libname}${shared_ext}'
14264 dynamic_linker="$host_os ld.so"
14265 shlibpath_var=LIBRARY_PATH
14266 ;;
14268 bsdi[45]*)
14269 version_type=linux
14270 need_version=no
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14272 soname_spec='${libname}${release}${shared_ext}$major'
14273 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14274 shlibpath_var=LD_LIBRARY_PATH
14275 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14276 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14277 # the default ld.so.conf also contains /usr/contrib/lib and
14278 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14279 # libtool to hard-code these into programs
14280 ;;
14282 cygwin* | mingw* | pw32*)
14283 version_type=windows
14284 shrext_cmds=".dll"
14285 need_version=no
14286 need_lib_prefix=no
14288 case $GCC,$host_os in
14289 yes,cygwin* | yes,mingw* | yes,pw32*)
14290 library_names_spec='$libname.dll.a'
14291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14292 postinstall_cmds='base_file=`basename \${file}`~
14293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14294 dldir=$destdir/`dirname \$dlpath`~
14295 test -d \$dldir || mkdir -p \$dldir~
14296 $install_prog $dir/$dlname \$dldir/$dlname~
14297 chmod a+x \$dldir/$dlname'
14298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14299 dlpath=$dir/\$dldll~
14300 $rm \$dlpath'
14301 shlibpath_overrides_runpath=yes
14303 case $host_os in
14304 cygwin*)
14305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14307 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14308 ;;
14309 mingw*)
14310 # MinGW DLLs use traditional 'lib' prefix
14311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14313 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14314 # It is most probably a Windows format PATH printed by
14315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14316 # path with ; separators, and with drive letters. We can handle the
14317 # drive letters (cygwin fileutils understands them), so leave them,
14318 # especially as we might pass files found there to a mingw objdump,
14319 # which wouldn't understand a cygwinified path. Ahh.
14320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14321 else
14322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14323 fi
14324 ;;
14325 pw32*)
14326 # pw32 DLLs use 'pw' prefix rather than 'lib'
14327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14328 ;;
14329 esac
14330 ;;
14332 *)
14333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14334 ;;
14335 esac
14336 dynamic_linker='Win32 ld.exe'
14337 # FIXME: first we should search . and the directory the executable is in
14338 shlibpath_var=PATH
14339 ;;
14341 darwin* | rhapsody*)
14342 dynamic_linker="$host_os dyld"
14343 version_type=darwin
14344 need_lib_prefix=no
14345 need_version=no
14346 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14347 soname_spec='${libname}${release}${major}$shared_ext'
14348 shlibpath_overrides_runpath=yes
14349 shlibpath_var=DYLD_LIBRARY_PATH
14350 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14351 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14352 if test "$GCC" = yes; then
14353 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14354 else
14355 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14356 fi
14357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14358 ;;
14360 dgux*)
14361 version_type=linux
14362 need_lib_prefix=no
14363 need_version=no
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14365 soname_spec='${libname}${release}${shared_ext}$major'
14366 shlibpath_var=LD_LIBRARY_PATH
14367 ;;
14369 freebsd1*)
14370 dynamic_linker=no
14371 ;;
14373 kfreebsd*-gnu)
14374 version_type=linux
14375 need_lib_prefix=no
14376 need_version=no
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14378 soname_spec='${libname}${release}${shared_ext}$major'
14379 shlibpath_var=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath=no
14381 hardcode_into_libs=yes
14382 dynamic_linker='GNU ld.so'
14383 ;;
14385 freebsd* | dragonfly*)
14386 # DragonFly does not have aout. When/if they implement a new
14387 # versioning mechanism, adjust this.
14388 if test -x /usr/bin/objformat; then
14389 objformat=`/usr/bin/objformat`
14390 else
14391 case $host_os in
14392 freebsd[123]*) objformat=aout ;;
14393 *) objformat=elf ;;
14394 esac
14395 fi
14396 version_type=freebsd-$objformat
14397 case $version_type in
14398 freebsd-elf*)
14399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14400 need_version=no
14401 need_lib_prefix=no
14402 ;;
14403 freebsd-*)
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14405 need_version=yes
14406 ;;
14407 esac
14408 shlibpath_var=LD_LIBRARY_PATH
14409 case $host_os in
14410 freebsd2*)
14411 shlibpath_overrides_runpath=yes
14412 ;;
14413 freebsd3.[01]* | freebsdelf3.[01]*)
14414 shlibpath_overrides_runpath=yes
14415 hardcode_into_libs=yes
14416 ;;
14417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14419 shlibpath_overrides_runpath=no
14420 hardcode_into_libs=yes
14421 ;;
14422 freebsd*) # from 4.6 on
14423 shlibpath_overrides_runpath=yes
14424 hardcode_into_libs=yes
14425 ;;
14426 esac
14427 ;;
14429 gnu*)
14430 version_type=linux
14431 need_lib_prefix=no
14432 need_version=no
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 hardcode_into_libs=yes
14437 ;;
14439 hpux9* | hpux10* | hpux11*)
14440 # Give a soname corresponding to the major version so that dld.sl refuses to
14441 # link against other versions.
14442 version_type=sunos
14443 need_lib_prefix=no
14444 need_version=no
14445 case $host_cpu in
14446 ia64*)
14447 shrext_cmds='.so'
14448 hardcode_into_libs=yes
14449 dynamic_linker="$host_os dld.so"
14450 shlibpath_var=LD_LIBRARY_PATH
14451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 if test "X$HPUX_IA64_MODE" = X32; then
14455 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14456 else
14457 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14458 fi
14459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14460 ;;
14461 hppa*64*)
14462 shrext_cmds='.sl'
14463 hardcode_into_libs=yes
14464 dynamic_linker="$host_os dld.sl"
14465 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14471 ;;
14472 *)
14473 shrext_cmds='.sl'
14474 dynamic_linker="$host_os dld.sl"
14475 shlibpath_var=SHLIB_PATH
14476 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 ;;
14480 esac
14481 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14482 postinstall_cmds='chmod 555 $lib'
14483 ;;
14485 interix3*)
14486 version_type=linux
14487 need_lib_prefix=no
14488 need_version=no
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14492 shlibpath_var=LD_LIBRARY_PATH
14493 shlibpath_overrides_runpath=no
14494 hardcode_into_libs=yes
14495 ;;
14497 irix5* | irix6* | nonstopux*)
14498 case $host_os in
14499 nonstopux*) version_type=nonstopux ;;
14500 *)
14501 if test "$lt_cv_prog_gnu_ld" = yes; then
14502 version_type=linux
14503 else
14504 version_type=irix
14505 fi ;;
14506 esac
14507 need_lib_prefix=no
14508 need_version=no
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14511 case $host_os in
14512 irix5* | nonstopux*)
14513 libsuff= shlibsuff=
14514 ;;
14515 *)
14516 case $LD in # libtool.m4 will add one of these switches to LD
14517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14518 libsuff= shlibsuff= libmagic=32-bit;;
14519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14520 libsuff=32 shlibsuff=N32 libmagic=N32;;
14521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14522 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14523 *) libsuff= shlibsuff= libmagic=never-match;;
14524 esac
14525 ;;
14526 esac
14527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14528 shlibpath_overrides_runpath=no
14529 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14530 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14531 hardcode_into_libs=yes
14532 ;;
14534 # No shared lib support for Linux oldld, aout, or coff.
14535 linux*oldld* | linux*aout* | linux*coff*)
14536 dynamic_linker=no
14537 ;;
14539 # This must be Linux ELF.
14540 linux*)
14541 version_type=linux
14542 need_lib_prefix=no
14543 need_version=no
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=no
14549 # This implies no fast_install, which is unacceptable.
14550 # Some rework will be needed to allow for fast_install
14551 # before this can be enabled.
14552 hardcode_into_libs=yes
14554 # Append ld.so.conf contents to the search path
14555 if test -f /etc/ld.so.conf; then
14556 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14557 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14558 fi
14560 # We used to test for /lib/ld.so.1 and disable shared libraries on
14561 # powerpc, because MkLinux only supported shared libraries with the
14562 # GNU dynamic linker. Since this was broken with cross compilers,
14563 # most powerpc-linux boxes support dynamic linking these days and
14564 # people can always --disable-shared, the test was removed, and we
14565 # assume the GNU/Linux dynamic linker is in use.
14566 dynamic_linker='GNU/Linux ld.so'
14567 ;;
14569 knetbsd*-gnu)
14570 version_type=linux
14571 need_lib_prefix=no
14572 need_version=no
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 shlibpath_overrides_runpath=no
14577 hardcode_into_libs=yes
14578 dynamic_linker='GNU ld.so'
14579 ;;
14581 netbsd*)
14582 version_type=sunos
14583 need_lib_prefix=no
14584 need_version=no
14585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14588 dynamic_linker='NetBSD (a.out) ld.so'
14589 else
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 dynamic_linker='NetBSD ld.elf_so'
14593 fi
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes
14596 hardcode_into_libs=yes
14597 ;;
14599 newsos6)
14600 version_type=linux
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=yes
14604 ;;
14606 nto-qnx*)
14607 version_type=linux
14608 need_lib_prefix=no
14609 need_version=no
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes
14614 ;;
14616 openbsd*)
14617 version_type=sunos
14618 sys_lib_dlsearch_path_spec="/usr/lib"
14619 need_lib_prefix=no
14620 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14621 case $host_os in
14622 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14623 *) need_version=no ;;
14624 esac
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14629 case $host_os in
14630 openbsd2.[89] | openbsd2.[89].*)
14631 shlibpath_overrides_runpath=no
14632 ;;
14633 *)
14634 shlibpath_overrides_runpath=yes
14635 ;;
14636 esac
14637 else
14638 shlibpath_overrides_runpath=yes
14639 fi
14640 ;;
14642 os2*)
14643 libname_spec='$name'
14644 shrext_cmds=".dll"
14645 need_lib_prefix=no
14646 library_names_spec='$libname${shared_ext} $libname.a'
14647 dynamic_linker='OS/2 ld.exe'
14648 shlibpath_var=LIBPATH
14649 ;;
14651 osf3* | osf4* | osf5*)
14652 version_type=osf
14653 need_lib_prefix=no
14654 need_version=no
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 shlibpath_var=LD_LIBRARY_PATH
14658 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14659 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14660 ;;
14662 solaris*)
14663 version_type=linux
14664 need_lib_prefix=no
14665 need_version=no
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 shlibpath_overrides_runpath=yes
14670 hardcode_into_libs=yes
14671 # ldd complains unless libraries are executable
14672 postinstall_cmds='chmod +x $lib'
14673 ;;
14675 sunos4*)
14676 version_type=sunos
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14678 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14679 shlibpath_var=LD_LIBRARY_PATH
14680 shlibpath_overrides_runpath=yes
14681 if test "$with_gnu_ld" = yes; then
14682 need_lib_prefix=no
14683 fi
14684 need_version=yes
14685 ;;
14687 sysv4 | sysv4.3*)
14688 version_type=linux
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 case $host_vendor in
14693 sni)
14694 shlibpath_overrides_runpath=no
14695 need_lib_prefix=no
14696 export_dynamic_flag_spec='${wl}-Blargedynsym'
14697 runpath_var=LD_RUN_PATH
14698 ;;
14699 siemens)
14700 need_lib_prefix=no
14701 ;;
14702 motorola)
14703 need_lib_prefix=no
14704 need_version=no
14705 shlibpath_overrides_runpath=no
14706 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14707 ;;
14708 esac
14709 ;;
14711 sysv4*MP*)
14712 if test -d /usr/nec ;then
14713 version_type=linux
14714 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14715 soname_spec='$libname${shared_ext}.$major'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 fi
14718 ;;
14720 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14721 version_type=freebsd-elf
14722 need_lib_prefix=no
14723 need_version=no
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 hardcode_into_libs=yes
14728 if test "$with_gnu_ld" = yes; then
14729 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14730 shlibpath_overrides_runpath=no
14731 else
14732 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14733 shlibpath_overrides_runpath=yes
14734 case $host_os in
14735 sco3.2v5*)
14736 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14737 ;;
14738 esac
14739 fi
14740 sys_lib_dlsearch_path_spec='/usr/lib'
14741 ;;
14743 uts4*)
14744 version_type=linux
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 ;;
14750 *)
14751 dynamic_linker=no
14752 ;;
14753 esac
14754 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14755 echo "${ECHO_T}$dynamic_linker" >&6
14756 test "$dynamic_linker" = no && can_build_shared=no
14758 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14759 if test "$GCC" = yes; then
14760 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14761 fi
14763 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14764 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14765 hardcode_action_GCJ=
14766 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14767 test -n "$runpath_var_GCJ" || \
14768 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
14770 # We can hardcode non-existant directories.
14771 if test "$hardcode_direct_GCJ" != no &&
14772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14773 # have to relink, otherwise we might link with an installed library
14774 # when we should be linking with a yet-to-be-installed one
14775 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14776 test "$hardcode_minus_L_GCJ" != no; then
14777 # Linking always hardcodes the temporary library directory.
14778 hardcode_action_GCJ=relink
14779 else
14780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14781 hardcode_action_GCJ=immediate
14782 fi
14783 else
14784 # We cannot hardcode anything, or else we can only hardcode existing
14785 # directories.
14786 hardcode_action_GCJ=unsupported
14787 fi
14788 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
14789 echo "${ECHO_T}$hardcode_action_GCJ" >&6
14791 if test "$hardcode_action_GCJ" = relink; then
14792 # Fast installation is not supported
14793 enable_fast_install=no
14794 elif test "$shlibpath_overrides_runpath" = yes ||
14795 test "$enable_shared" = no; then
14796 # Fast installation is not necessary
14797 enable_fast_install=needless
14798 fi
14801 # The else clause should only fire when bootstrapping the
14802 # libtool distribution, otherwise you forgot to ship ltmain.sh
14803 # with your package, and you will get complaints that there are
14804 # no rules to generate ltmain.sh.
14805 if test -f "$ltmain"; then
14806 # See if we are running on zsh, and set the options which allow our commands through
14807 # without removal of \ escapes.
14808 if test -n "${ZSH_VERSION+set}" ; then
14809 setopt NO_GLOB_SUBST
14810 fi
14811 # Now quote all the things that may contain metacharacters while being
14812 # careful not to overquote the AC_SUBSTed values. We take copies of the
14813 # variables and quote the copies for generation of the libtool script.
14814 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14815 SED SHELL STRIP \
14816 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14817 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14818 deplibs_check_method reload_flag reload_cmds need_locks \
14819 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14820 lt_cv_sys_global_symbol_to_c_name_address \
14821 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14822 old_postinstall_cmds old_postuninstall_cmds \
14823 compiler_GCJ \
14824 CC_GCJ \
14825 LD_GCJ \
14826 lt_prog_compiler_wl_GCJ \
14827 lt_prog_compiler_pic_GCJ \
14828 lt_prog_compiler_static_GCJ \
14829 lt_prog_compiler_no_builtin_flag_GCJ \
14830 export_dynamic_flag_spec_GCJ \
14831 thread_safe_flag_spec_GCJ \
14832 whole_archive_flag_spec_GCJ \
14833 enable_shared_with_static_runtimes_GCJ \
14834 old_archive_cmds_GCJ \
14835 old_archive_from_new_cmds_GCJ \
14836 predep_objects_GCJ \
14837 postdep_objects_GCJ \
14838 predeps_GCJ \
14839 postdeps_GCJ \
14840 compiler_lib_search_path_GCJ \
14841 archive_cmds_GCJ \
14842 archive_expsym_cmds_GCJ \
14843 postinstall_cmds_GCJ \
14844 postuninstall_cmds_GCJ \
14845 old_archive_from_expsyms_cmds_GCJ \
14846 allow_undefined_flag_GCJ \
14847 no_undefined_flag_GCJ \
14848 export_symbols_cmds_GCJ \
14849 hardcode_libdir_flag_spec_GCJ \
14850 hardcode_libdir_flag_spec_ld_GCJ \
14851 hardcode_libdir_separator_GCJ \
14852 hardcode_automatic_GCJ \
14853 module_cmds_GCJ \
14854 module_expsym_cmds_GCJ \
14855 lt_cv_prog_compiler_c_o_GCJ \
14856 exclude_expsyms_GCJ \
14857 include_expsyms_GCJ; do
14859 case $var in
14860 old_archive_cmds_GCJ | \
14861 old_archive_from_new_cmds_GCJ | \
14862 archive_cmds_GCJ | \
14863 archive_expsym_cmds_GCJ | \
14864 module_cmds_GCJ | \
14865 module_expsym_cmds_GCJ | \
14866 old_archive_from_expsyms_cmds_GCJ | \
14867 export_symbols_cmds_GCJ | \
14868 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14869 postinstall_cmds | postuninstall_cmds | \
14870 old_postinstall_cmds | old_postuninstall_cmds | \
14871 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14872 # Double-quote double-evaled strings.
14873 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14874 ;;
14875 *)
14876 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14877 ;;
14878 esac
14879 done
14881 case $lt_echo in
14882 *'\$0 --fallback-echo"')
14883 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14884 ;;
14885 esac
14887 cfgfile="$ofile"
14889 cat <<__EOF__ >> "$cfgfile"
14890 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14892 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14894 # Shell to use when invoking shell scripts.
14895 SHELL=$lt_SHELL
14897 # Whether or not to build shared libraries.
14898 build_libtool_libs=$enable_shared
14900 # Whether or not to build static libraries.
14901 build_old_libs=$enable_static
14903 # Whether or not to add -lc for building shared libraries.
14904 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14906 # Whether or not to disallow shared libs when runtime libs are static
14907 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
14909 # Whether or not to optimize for fast installation.
14910 fast_install=$enable_fast_install
14912 # The host system.
14913 host_alias=$host_alias
14914 host=$host
14915 host_os=$host_os
14917 # The build system.
14918 build_alias=$build_alias
14919 build=$build
14920 build_os=$build_os
14922 # An echo program that does not interpret backslashes.
14923 echo=$lt_echo
14925 # The archiver.
14926 AR=$lt_AR
14927 AR_FLAGS=$lt_AR_FLAGS
14929 # A C compiler.
14930 LTCC=$lt_LTCC
14932 # LTCC compiler flags.
14933 LTCFLAGS=$lt_LTCFLAGS
14935 # A language-specific compiler.
14936 CC=$lt_compiler_GCJ
14938 # Is the compiler the GNU C compiler?
14939 with_gcc=$GCC_GCJ
14941 # An ERE matcher.
14942 EGREP=$lt_EGREP
14944 # The linker used to build libraries.
14945 LD=$lt_LD_GCJ
14947 # Whether we need hard or soft links.
14948 LN_S=$lt_LN_S
14950 # A BSD-compatible nm program.
14951 NM=$lt_NM
14953 # A symbol stripping program
14954 STRIP=$lt_STRIP
14956 # Used to examine libraries when file_magic_cmd begins "file"
14957 MAGIC_CMD=$MAGIC_CMD
14959 # Used on cygwin: DLL creation program.
14960 DLLTOOL="$DLLTOOL"
14962 # Used on cygwin: object dumper.
14963 OBJDUMP="$OBJDUMP"
14965 # Used on cygwin: assembler.
14966 AS="$AS"
14968 # The name of the directory that contains temporary libtool files.
14969 objdir=$objdir
14971 # How to create reloadable object files.
14972 reload_flag=$lt_reload_flag
14973 reload_cmds=$lt_reload_cmds
14975 # How to pass a linker flag through the compiler.
14976 wl=$lt_lt_prog_compiler_wl_GCJ
14978 # Object file suffix (normally "o").
14979 objext="$ac_objext"
14981 # Old archive suffix (normally "a").
14982 libext="$libext"
14984 # Shared library suffix (normally ".so").
14985 shrext_cmds='$shrext_cmds'
14987 # Executable file suffix (normally "").
14988 exeext="$exeext"
14990 # Additional compiler flags for building library objects.
14991 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14992 pic_mode=$pic_mode
14994 # What is the maximum length of a command?
14995 max_cmd_len=$lt_cv_sys_max_cmd_len
14997 # Does compiler simultaneously support -c and -o options?
14998 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
15000 # Must we lock files when doing compilation?
15001 need_locks=$lt_need_locks
15003 # Do we need the lib prefix for modules?
15004 need_lib_prefix=$need_lib_prefix
15006 # Do we need a version for libraries?
15007 need_version=$need_version
15009 # Whether dlopen is supported.
15010 dlopen_support=$enable_dlopen
15012 # Whether dlopen of programs is supported.
15013 dlopen_self=$enable_dlopen_self
15015 # Whether dlopen of statically linked programs is supported.
15016 dlopen_self_static=$enable_dlopen_self_static
15018 # Compiler flag to prevent dynamic linking.
15019 link_static_flag=$lt_lt_prog_compiler_static_GCJ
15021 # Compiler flag to turn off builtin functions.
15022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
15024 # Compiler flag to allow reflexive dlopens.
15025 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
15027 # Compiler flag to generate shared objects directly from archives.
15028 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
15030 # Compiler flag to generate thread-safe objects.
15031 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
15033 # Library versioning type.
15034 version_type=$version_type
15036 # Format of library name prefix.
15037 libname_spec=$lt_libname_spec
15039 # List of archive names. First name is the real one, the rest are links.
15040 # The last name is the one that the linker finds with -lNAME.
15041 library_names_spec=$lt_library_names_spec
15043 # The coded name of the library, if different from the real name.
15044 soname_spec=$lt_soname_spec
15046 # Commands used to build and install an old-style archive.
15047 RANLIB=$lt_RANLIB
15048 old_archive_cmds=$lt_old_archive_cmds_GCJ
15049 old_postinstall_cmds=$lt_old_postinstall_cmds
15050 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15052 # Create an old-style archive from a shared archive.
15053 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15055 # Create a temporary old-style archive to link instead of a shared archive.
15056 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15058 # Commands used to build and install a shared archive.
15059 archive_cmds=$lt_archive_cmds_GCJ
15060 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15061 postinstall_cmds=$lt_postinstall_cmds
15062 postuninstall_cmds=$lt_postuninstall_cmds
15064 # Commands used to build a loadable module (assumed same as above if empty)
15065 module_cmds=$lt_module_cmds_GCJ
15066 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15068 # Commands to strip libraries.
15069 old_striplib=$lt_old_striplib
15070 striplib=$lt_striplib
15072 # Dependencies to place before the objects being linked to create a
15073 # shared library.
15074 predep_objects=$lt_predep_objects_GCJ
15076 # Dependencies to place after the objects being linked to create a
15077 # shared library.
15078 postdep_objects=$lt_postdep_objects_GCJ
15080 # Dependencies to place before the objects being linked to create a
15081 # shared library.
15082 predeps=$lt_predeps_GCJ
15084 # Dependencies to place after the objects being linked to create a
15085 # shared library.
15086 postdeps=$lt_postdeps_GCJ
15088 # The library search path used internally by the compiler when linking
15089 # a shared library.
15090 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15092 # Method to check whether dependent libraries are shared objects.
15093 deplibs_check_method=$lt_deplibs_check_method
15095 # Command to use when deplibs_check_method == file_magic.
15096 file_magic_cmd=$lt_file_magic_cmd
15098 # Flag that allows shared libraries with undefined symbols to be built.
15099 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15101 # Flag that forces no undefined symbols.
15102 no_undefined_flag=$lt_no_undefined_flag_GCJ
15104 # Commands used to finish a libtool library installation in a directory.
15105 finish_cmds=$lt_finish_cmds
15107 # Same as above, but a single script fragment to be evaled but not shown.
15108 finish_eval=$lt_finish_eval
15110 # Take the output of nm and produce a listing of raw symbols and C names.
15111 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15113 # Transform the output of nm in a proper C declaration
15114 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15116 # Transform the output of nm in a C name address pair
15117 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15119 # This is the shared library runtime path variable.
15120 runpath_var=$runpath_var
15122 # This is the shared library path variable.
15123 shlibpath_var=$shlibpath_var
15125 # Is shlibpath searched before the hard-coded library search path?
15126 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15128 # How to hardcode a shared library path into an executable.
15129 hardcode_action=$hardcode_action_GCJ
15131 # Whether we should hardcode library paths into libraries.
15132 hardcode_into_libs=$hardcode_into_libs
15134 # Flag to hardcode \$libdir into a binary during linking.
15135 # This must work even if \$libdir does not exist.
15136 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15138 # If ld is used when linking, flag to hardcode \$libdir into
15139 # a binary during linking. This must work even if \$libdir does
15140 # not exist.
15141 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
15143 # Whether we need a single -rpath flag with a separated argument.
15144 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15146 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15147 # resulting binary.
15148 hardcode_direct=$hardcode_direct_GCJ
15150 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15151 # resulting binary.
15152 hardcode_minus_L=$hardcode_minus_L_GCJ
15154 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15155 # the resulting binary.
15156 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15158 # Set to yes if building a shared library automatically hardcodes DIR into the library
15159 # and all subsequent libraries and executables linked against it.
15160 hardcode_automatic=$hardcode_automatic_GCJ
15162 # Variables whose values should be saved in libtool wrapper scripts and
15163 # restored at relink time.
15164 variables_saved_for_relink="$variables_saved_for_relink"
15166 # Whether libtool must link a program against all its dependency libraries.
15167 link_all_deplibs=$link_all_deplibs_GCJ
15169 # Compile-time system search path for libraries
15170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15172 # Run-time system search path for libraries
15173 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15175 # Fix the shell variable \$srcfile for the compiler.
15176 fix_srcfile_path="$fix_srcfile_path_GCJ"
15178 # Set to yes if exported symbols are required.
15179 always_export_symbols=$always_export_symbols_GCJ
15181 # The commands to list exported symbols.
15182 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15184 # The commands to extract the exported symbol list from a shared archive.
15185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15187 # Symbols that should not be listed in the preloaded symbols.
15188 exclude_expsyms=$lt_exclude_expsyms_GCJ
15190 # Symbols that must always be exported.
15191 include_expsyms=$lt_include_expsyms_GCJ
15193 # ### END LIBTOOL TAG CONFIG: $tagname
15195 __EOF__
15198 else
15199 # If there is no Makefile yet, we rely on a make rule to execute
15200 # `config.status --recheck' to rerun these tests and create the
15201 # libtool script then.
15202 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15203 if test -f "$ltmain_in"; then
15204 test -f Makefile && make "$ltmain"
15205 fi
15206 fi
15209 ac_ext=c
15210 ac_cpp='$CPP $CPPFLAGS'
15211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15215 CC="$lt_save_CC"
15217 else
15218 tagname=""
15219 fi
15220 ;;
15222 RC)
15226 # Source file extension for RC test sources.
15227 ac_ext=rc
15229 # Object file extension for compiled RC test sources.
15230 objext=o
15231 objext_RC=$objext
15233 # Code to be used in simple compile tests
15234 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
15236 # Code to be used in simple link tests
15237 lt_simple_link_test_code="$lt_simple_compile_test_code"
15239 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15241 # If no C compiler was specified, use CC.
15242 LTCC=${LTCC-"$CC"}
15244 # If no C compiler flags were specified, use CFLAGS.
15245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15247 # Allow CC to be a program name with arguments.
15248 compiler=$CC
15251 # save warnings/boilerplate of simple test code
15252 ac_outfile=conftest.$ac_objext
15253 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15254 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15255 _lt_compiler_boilerplate=`cat conftest.err`
15256 $rm conftest*
15258 ac_outfile=conftest.$ac_objext
15259 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15260 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15261 _lt_linker_boilerplate=`cat conftest.err`
15262 $rm conftest*
15265 # Allow CC to be a program name with arguments.
15266 lt_save_CC="$CC"
15267 CC=${RC-"windres"}
15268 compiler=$CC
15269 compiler_RC=$CC
15270 for cc_temp in $compiler""; do
15271 case $cc_temp in
15272 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15273 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15274 \-*) ;;
15275 *) break;;
15276 esac
15277 done
15278 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15280 lt_cv_prog_compiler_c_o_RC=yes
15282 # The else clause should only fire when bootstrapping the
15283 # libtool distribution, otherwise you forgot to ship ltmain.sh
15284 # with your package, and you will get complaints that there are
15285 # no rules to generate ltmain.sh.
15286 if test -f "$ltmain"; then
15287 # See if we are running on zsh, and set the options which allow our commands through
15288 # without removal of \ escapes.
15289 if test -n "${ZSH_VERSION+set}" ; then
15290 setopt NO_GLOB_SUBST
15291 fi
15292 # Now quote all the things that may contain metacharacters while being
15293 # careful not to overquote the AC_SUBSTed values. We take copies of the
15294 # variables and quote the copies for generation of the libtool script.
15295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15296 SED SHELL STRIP \
15297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15299 deplibs_check_method reload_flag reload_cmds need_locks \
15300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15301 lt_cv_sys_global_symbol_to_c_name_address \
15302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15303 old_postinstall_cmds old_postuninstall_cmds \
15304 compiler_RC \
15305 CC_RC \
15306 LD_RC \
15307 lt_prog_compiler_wl_RC \
15308 lt_prog_compiler_pic_RC \
15309 lt_prog_compiler_static_RC \
15310 lt_prog_compiler_no_builtin_flag_RC \
15311 export_dynamic_flag_spec_RC \
15312 thread_safe_flag_spec_RC \
15313 whole_archive_flag_spec_RC \
15314 enable_shared_with_static_runtimes_RC \
15315 old_archive_cmds_RC \
15316 old_archive_from_new_cmds_RC \
15317 predep_objects_RC \
15318 postdep_objects_RC \
15319 predeps_RC \
15320 postdeps_RC \
15321 compiler_lib_search_path_RC \
15322 archive_cmds_RC \
15323 archive_expsym_cmds_RC \
15324 postinstall_cmds_RC \
15325 postuninstall_cmds_RC \
15326 old_archive_from_expsyms_cmds_RC \
15327 allow_undefined_flag_RC \
15328 no_undefined_flag_RC \
15329 export_symbols_cmds_RC \
15330 hardcode_libdir_flag_spec_RC \
15331 hardcode_libdir_flag_spec_ld_RC \
15332 hardcode_libdir_separator_RC \
15333 hardcode_automatic_RC \
15334 module_cmds_RC \
15335 module_expsym_cmds_RC \
15336 lt_cv_prog_compiler_c_o_RC \
15337 exclude_expsyms_RC \
15338 include_expsyms_RC; do
15340 case $var in
15341 old_archive_cmds_RC | \
15342 old_archive_from_new_cmds_RC | \
15343 archive_cmds_RC | \
15344 archive_expsym_cmds_RC | \
15345 module_cmds_RC | \
15346 module_expsym_cmds_RC | \
15347 old_archive_from_expsyms_cmds_RC | \
15348 export_symbols_cmds_RC | \
15349 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15350 postinstall_cmds | postuninstall_cmds | \
15351 old_postinstall_cmds | old_postuninstall_cmds | \
15352 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15353 # Double-quote double-evaled strings.
15354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15355 ;;
15356 *)
15357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15358 ;;
15359 esac
15360 done
15362 case $lt_echo in
15363 *'\$0 --fallback-echo"')
15364 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15365 ;;
15366 esac
15368 cfgfile="$ofile"
15370 cat <<__EOF__ >> "$cfgfile"
15371 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15373 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15375 # Shell to use when invoking shell scripts.
15376 SHELL=$lt_SHELL
15378 # Whether or not to build shared libraries.
15379 build_libtool_libs=$enable_shared
15381 # Whether or not to build static libraries.
15382 build_old_libs=$enable_static
15384 # Whether or not to add -lc for building shared libraries.
15385 build_libtool_need_lc=$archive_cmds_need_lc_RC
15387 # Whether or not to disallow shared libs when runtime libs are static
15388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
15390 # Whether or not to optimize for fast installation.
15391 fast_install=$enable_fast_install
15393 # The host system.
15394 host_alias=$host_alias
15395 host=$host
15396 host_os=$host_os
15398 # The build system.
15399 build_alias=$build_alias
15400 build=$build
15401 build_os=$build_os
15403 # An echo program that does not interpret backslashes.
15404 echo=$lt_echo
15406 # The archiver.
15407 AR=$lt_AR
15408 AR_FLAGS=$lt_AR_FLAGS
15410 # A C compiler.
15411 LTCC=$lt_LTCC
15413 # LTCC compiler flags.
15414 LTCFLAGS=$lt_LTCFLAGS
15416 # A language-specific compiler.
15417 CC=$lt_compiler_RC
15419 # Is the compiler the GNU C compiler?
15420 with_gcc=$GCC_RC
15422 # An ERE matcher.
15423 EGREP=$lt_EGREP
15425 # The linker used to build libraries.
15426 LD=$lt_LD_RC
15428 # Whether we need hard or soft links.
15429 LN_S=$lt_LN_S
15431 # A BSD-compatible nm program.
15432 NM=$lt_NM
15434 # A symbol stripping program
15435 STRIP=$lt_STRIP
15437 # Used to examine libraries when file_magic_cmd begins "file"
15438 MAGIC_CMD=$MAGIC_CMD
15440 # Used on cygwin: DLL creation program.
15441 DLLTOOL="$DLLTOOL"
15443 # Used on cygwin: object dumper.
15444 OBJDUMP="$OBJDUMP"
15446 # Used on cygwin: assembler.
15447 AS="$AS"
15449 # The name of the directory that contains temporary libtool files.
15450 objdir=$objdir
15452 # How to create reloadable object files.
15453 reload_flag=$lt_reload_flag
15454 reload_cmds=$lt_reload_cmds
15456 # How to pass a linker flag through the compiler.
15457 wl=$lt_lt_prog_compiler_wl_RC
15459 # Object file suffix (normally "o").
15460 objext="$ac_objext"
15462 # Old archive suffix (normally "a").
15463 libext="$libext"
15465 # Shared library suffix (normally ".so").
15466 shrext_cmds='$shrext_cmds'
15468 # Executable file suffix (normally "").
15469 exeext="$exeext"
15471 # Additional compiler flags for building library objects.
15472 pic_flag=$lt_lt_prog_compiler_pic_RC
15473 pic_mode=$pic_mode
15475 # What is the maximum length of a command?
15476 max_cmd_len=$lt_cv_sys_max_cmd_len
15478 # Does compiler simultaneously support -c and -o options?
15479 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
15481 # Must we lock files when doing compilation?
15482 need_locks=$lt_need_locks
15484 # Do we need the lib prefix for modules?
15485 need_lib_prefix=$need_lib_prefix
15487 # Do we need a version for libraries?
15488 need_version=$need_version
15490 # Whether dlopen is supported.
15491 dlopen_support=$enable_dlopen
15493 # Whether dlopen of programs is supported.
15494 dlopen_self=$enable_dlopen_self
15496 # Whether dlopen of statically linked programs is supported.
15497 dlopen_self_static=$enable_dlopen_self_static
15499 # Compiler flag to prevent dynamic linking.
15500 link_static_flag=$lt_lt_prog_compiler_static_RC
15502 # Compiler flag to turn off builtin functions.
15503 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
15505 # Compiler flag to allow reflexive dlopens.
15506 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
15508 # Compiler flag to generate shared objects directly from archives.
15509 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
15511 # Compiler flag to generate thread-safe objects.
15512 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
15514 # Library versioning type.
15515 version_type=$version_type
15517 # Format of library name prefix.
15518 libname_spec=$lt_libname_spec
15520 # List of archive names. First name is the real one, the rest are links.
15521 # The last name is the one that the linker finds with -lNAME.
15522 library_names_spec=$lt_library_names_spec
15524 # The coded name of the library, if different from the real name.
15525 soname_spec=$lt_soname_spec
15527 # Commands used to build and install an old-style archive.
15528 RANLIB=$lt_RANLIB
15529 old_archive_cmds=$lt_old_archive_cmds_RC
15530 old_postinstall_cmds=$lt_old_postinstall_cmds
15531 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15533 # Create an old-style archive from a shared archive.
15534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
15536 # Create a temporary old-style archive to link instead of a shared archive.
15537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
15539 # Commands used to build and install a shared archive.
15540 archive_cmds=$lt_archive_cmds_RC
15541 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
15542 postinstall_cmds=$lt_postinstall_cmds
15543 postuninstall_cmds=$lt_postuninstall_cmds
15545 # Commands used to build a loadable module (assumed same as above if empty)
15546 module_cmds=$lt_module_cmds_RC
15547 module_expsym_cmds=$lt_module_expsym_cmds_RC
15549 # Commands to strip libraries.
15550 old_striplib=$lt_old_striplib
15551 striplib=$lt_striplib
15553 # Dependencies to place before the objects being linked to create a
15554 # shared library.
15555 predep_objects=$lt_predep_objects_RC
15557 # Dependencies to place after the objects being linked to create a
15558 # shared library.
15559 postdep_objects=$lt_postdep_objects_RC
15561 # Dependencies to place before the objects being linked to create a
15562 # shared library.
15563 predeps=$lt_predeps_RC
15565 # Dependencies to place after the objects being linked to create a
15566 # shared library.
15567 postdeps=$lt_postdeps_RC
15569 # The library search path used internally by the compiler when linking
15570 # a shared library.
15571 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
15573 # Method to check whether dependent libraries are shared objects.
15574 deplibs_check_method=$lt_deplibs_check_method
15576 # Command to use when deplibs_check_method == file_magic.
15577 file_magic_cmd=$lt_file_magic_cmd
15579 # Flag that allows shared libraries with undefined symbols to be built.
15580 allow_undefined_flag=$lt_allow_undefined_flag_RC
15582 # Flag that forces no undefined symbols.
15583 no_undefined_flag=$lt_no_undefined_flag_RC
15585 # Commands used to finish a libtool library installation in a directory.
15586 finish_cmds=$lt_finish_cmds
15588 # Same as above, but a single script fragment to be evaled but not shown.
15589 finish_eval=$lt_finish_eval
15591 # Take the output of nm and produce a listing of raw symbols and C names.
15592 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15594 # Transform the output of nm in a proper C declaration
15595 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15597 # Transform the output of nm in a C name address pair
15598 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15600 # This is the shared library runtime path variable.
15601 runpath_var=$runpath_var
15603 # This is the shared library path variable.
15604 shlibpath_var=$shlibpath_var
15606 # Is shlibpath searched before the hard-coded library search path?
15607 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15609 # How to hardcode a shared library path into an executable.
15610 hardcode_action=$hardcode_action_RC
15612 # Whether we should hardcode library paths into libraries.
15613 hardcode_into_libs=$hardcode_into_libs
15615 # Flag to hardcode \$libdir into a binary during linking.
15616 # This must work even if \$libdir does not exist.
15617 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
15619 # If ld is used when linking, flag to hardcode \$libdir into
15620 # a binary during linking. This must work even if \$libdir does
15621 # not exist.
15622 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
15624 # Whether we need a single -rpath flag with a separated argument.
15625 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
15627 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15628 # resulting binary.
15629 hardcode_direct=$hardcode_direct_RC
15631 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15632 # resulting binary.
15633 hardcode_minus_L=$hardcode_minus_L_RC
15635 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15636 # the resulting binary.
15637 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
15639 # Set to yes if building a shared library automatically hardcodes DIR into the library
15640 # and all subsequent libraries and executables linked against it.
15641 hardcode_automatic=$hardcode_automatic_RC
15643 # Variables whose values should be saved in libtool wrapper scripts and
15644 # restored at relink time.
15645 variables_saved_for_relink="$variables_saved_for_relink"
15647 # Whether libtool must link a program against all its dependency libraries.
15648 link_all_deplibs=$link_all_deplibs_RC
15650 # Compile-time system search path for libraries
15651 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15653 # Run-time system search path for libraries
15654 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15656 # Fix the shell variable \$srcfile for the compiler.
15657 fix_srcfile_path="$fix_srcfile_path_RC"
15659 # Set to yes if exported symbols are required.
15660 always_export_symbols=$always_export_symbols_RC
15662 # The commands to list exported symbols.
15663 export_symbols_cmds=$lt_export_symbols_cmds_RC
15665 # The commands to extract the exported symbol list from a shared archive.
15666 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15668 # Symbols that should not be listed in the preloaded symbols.
15669 exclude_expsyms=$lt_exclude_expsyms_RC
15671 # Symbols that must always be exported.
15672 include_expsyms=$lt_include_expsyms_RC
15674 # ### END LIBTOOL TAG CONFIG: $tagname
15676 __EOF__
15679 else
15680 # If there is no Makefile yet, we rely on a make rule to execute
15681 # `config.status --recheck' to rerun these tests and create the
15682 # libtool script then.
15683 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15684 if test -f "$ltmain_in"; then
15685 test -f Makefile && make "$ltmain"
15686 fi
15687 fi
15690 ac_ext=c
15691 ac_cpp='$CPP $CPPFLAGS'
15692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15696 CC="$lt_save_CC"
15698 ;;
15700 *)
15701 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
15702 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
15703 { (exit 1); exit 1; }; }
15704 ;;
15705 esac
15707 # Append the new tag name to the list of available tags.
15708 if test -n "$tagname" ; then
15709 available_tags="$available_tags $tagname"
15710 fi
15711 fi
15712 done
15713 IFS="$lt_save_ifs"
15715 # Now substitute the updated list of available tags.
15716 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
15717 mv "${ofile}T" "$ofile"
15718 chmod +x "$ofile"
15719 else
15720 rm -f "${ofile}T"
15721 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
15722 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
15723 { (exit 1); exit 1; }; }
15724 fi
15725 fi
15729 # This can be used to rebuild libtool when needed
15730 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
15732 # Always use our own libtool.
15733 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15735 # Prevent multiple expansion
15752 # Checks for programs.
15753 ac_ext=c
15754 ac_cpp='$CPP $CPPFLAGS'
15755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15758 if test -n "$ac_tool_prefix"; then
15759 for ac_prog in gcc
15760 do
15761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15763 echo "$as_me:$LINENO: checking for $ac_word" >&5
15764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15765 if test "${ac_cv_prog_CC+set}" = set; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 else
15768 if test -n "$CC"; then
15769 ac_cv_prog_CC="$CC" # Let the user override the test.
15770 else
15771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15772 for as_dir in $PATH
15773 do
15774 IFS=$as_save_IFS
15775 test -z "$as_dir" && as_dir=.
15776 for ac_exec_ext in '' $ac_executable_extensions; do
15777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15780 break 2
15781 fi
15782 done
15783 done
15785 fi
15786 fi
15787 CC=$ac_cv_prog_CC
15788 if test -n "$CC"; then
15789 echo "$as_me:$LINENO: result: $CC" >&5
15790 echo "${ECHO_T}$CC" >&6
15791 else
15792 echo "$as_me:$LINENO: result: no" >&5
15793 echo "${ECHO_T}no" >&6
15794 fi
15796 test -n "$CC" && break
15797 done
15798 fi
15799 if test -z "$CC"; then
15800 ac_ct_CC=$CC
15801 for ac_prog in gcc
15802 do
15803 # Extract the first word of "$ac_prog", so it can be a program name with args.
15804 set dummy $ac_prog; ac_word=$2
15805 echo "$as_me:$LINENO: checking for $ac_word" >&5
15806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 else
15810 if test -n "$ac_ct_CC"; then
15811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15812 else
15813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15814 for as_dir in $PATH
15815 do
15816 IFS=$as_save_IFS
15817 test -z "$as_dir" && as_dir=.
15818 for ac_exec_ext in '' $ac_executable_extensions; do
15819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15820 ac_cv_prog_ac_ct_CC="$ac_prog"
15821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15822 break 2
15823 fi
15824 done
15825 done
15827 fi
15828 fi
15829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15830 if test -n "$ac_ct_CC"; then
15831 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15832 echo "${ECHO_T}$ac_ct_CC" >&6
15833 else
15834 echo "$as_me:$LINENO: result: no" >&5
15835 echo "${ECHO_T}no" >&6
15836 fi
15838 test -n "$ac_ct_CC" && break
15839 done
15841 CC=$ac_ct_CC
15842 fi
15845 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15846 See \`config.log' for more details." >&5
15847 echo "$as_me: error: no acceptable C compiler found in \$PATH
15848 See \`config.log' for more details." >&2;}
15849 { (exit 1); exit 1; }; }
15851 # Provide some information about the compiler.
15852 echo "$as_me:$LINENO:" \
15853 "checking for C compiler version" >&5
15854 ac_compiler=`set X $ac_compile; echo $2`
15855 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15856 (eval $ac_compiler --version </dev/null >&5) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }
15860 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15861 (eval $ac_compiler -v </dev/null >&5) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }
15865 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15866 (eval $ac_compiler -V </dev/null >&5) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }
15871 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15872 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
15873 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15883 int
15884 main ()
15885 {
15886 #ifndef __GNUC__
15887 choke me
15888 #endif
15890 ;
15891 return 0;
15892 }
15893 _ACEOF
15894 rm -f conftest.$ac_objext
15895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15896 (eval $ac_compile) 2>conftest.er1
15897 ac_status=$?
15898 grep -v '^ *+' conftest.er1 >conftest.err
15899 rm -f conftest.er1
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } &&
15903 { ac_try='test -z "$ac_c_werror_flag"
15904 || test ! -s conftest.err'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try='test -s conftest.$ac_objext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_compiler_gnu=yes
15917 else
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 ac_compiler_gnu=no
15922 fi
15923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15924 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15926 fi
15927 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15928 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
15929 GCC=`test $ac_compiler_gnu = yes && echo yes`
15930 ac_test_CFLAGS=${CFLAGS+set}
15931 ac_save_CFLAGS=$CFLAGS
15932 CFLAGS="-g"
15933 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15934 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
15935 if test "${ac_cv_prog_cc_g+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15937 else
15938 cat >conftest.$ac_ext <<_ACEOF
15939 /* confdefs.h. */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15945 int
15946 main ()
15947 {
15949 ;
15950 return 0;
15951 }
15952 _ACEOF
15953 rm -f conftest.$ac_objext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15955 (eval $ac_compile) 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag"
15963 || test ! -s conftest.err'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; } &&
15969 { ac_try='test -s conftest.$ac_objext'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 ac_cv_prog_cc_g=yes
15976 else
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15980 ac_cv_prog_cc_g=no
15981 fi
15982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15983 fi
15984 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15985 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
15986 if test "$ac_test_CFLAGS" = set; then
15987 CFLAGS=$ac_save_CFLAGS
15988 elif test $ac_cv_prog_cc_g = yes; then
15989 if test "$GCC" = yes; then
15990 CFLAGS="-g -O2"
15991 else
15992 CFLAGS="-g"
15993 fi
15994 else
15995 if test "$GCC" = yes; then
15996 CFLAGS="-O2"
15997 else
15998 CFLAGS=
15999 fi
16000 fi
16001 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
16002 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
16003 if test "${ac_cv_prog_cc_stdc+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006 ac_cv_prog_cc_stdc=no
16007 ac_save_CC=$CC
16008 cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h. */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 #include <stdarg.h>
16015 #include <stdio.h>
16016 #include <sys/types.h>
16017 #include <sys/stat.h>
16018 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16019 struct buf { int x; };
16020 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16021 static char *e (p, i)
16022 char **p;
16023 int i;
16024 {
16025 return p[i];
16026 }
16027 static char *f (char * (*g) (char **, int), char **p, ...)
16028 {
16029 char *s;
16030 va_list v;
16031 va_start (v,p);
16032 s = g (p, va_arg (v,int));
16033 va_end (v);
16034 return s;
16035 }
16037 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16038 function prototypes and stuff, but not '\xHH' hex character constants.
16039 These don't provoke an error unfortunately, instead are silently treated
16040 as 'x'. The following induces an error, until -std1 is added to get
16041 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16042 array size at least. It's necessary to write '\x00'==0 to get something
16043 that's true only with -std1. */
16044 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16046 int test (int i, double x);
16047 struct s1 {int (*f) (int a);};
16048 struct s2 {int (*f) (double a);};
16049 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16050 int argc;
16051 char **argv;
16052 int
16053 main ()
16054 {
16055 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16056 ;
16057 return 0;
16058 }
16059 _ACEOF
16060 # Don't try gcc -ansi; that turns off useful extensions and
16061 # breaks some systems' header files.
16062 # AIX -qlanglvl=ansi
16063 # Ultrix and OSF/1 -std1
16064 # HP-UX 10.20 and later -Ae
16065 # HP-UX older versions -Aa -D_HPUX_SOURCE
16066 # SVR4 -Xc -D__EXTENSIONS__
16067 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16068 do
16069 CC="$ac_save_CC $ac_arg"
16070 rm -f conftest.$ac_objext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16072 (eval $ac_compile) 2>conftest.er1
16073 ac_status=$?
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest.$ac_objext'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_cv_prog_cc_stdc=$ac_arg
16093 break
16094 else
16095 echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16098 fi
16099 rm -f conftest.err conftest.$ac_objext
16100 done
16101 rm -f conftest.$ac_ext conftest.$ac_objext
16102 CC=$ac_save_CC
16104 fi
16106 case "x$ac_cv_prog_cc_stdc" in
16107 x|xno)
16108 echo "$as_me:$LINENO: result: none needed" >&5
16109 echo "${ECHO_T}none needed" >&6 ;;
16110 *)
16111 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
16112 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
16113 CC="$CC $ac_cv_prog_cc_stdc" ;;
16114 esac
16116 # Some people use a C++ compiler to compile C. Since we use `exit',
16117 # in C++ we need to declare it. In case someone uses the same compiler
16118 # for both compiling C and C++ we need to have the C++ compiler decide
16119 # the declaration of exit, since it's the most demanding environment.
16120 cat >conftest.$ac_ext <<_ACEOF
16121 #ifndef __cplusplus
16122 choke me
16123 #endif
16124 _ACEOF
16125 rm -f conftest.$ac_objext
16126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16127 (eval $ac_compile) 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
16134 { ac_try='test -z "$ac_c_werror_flag"
16135 || test ! -s conftest.err'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try='test -s conftest.$ac_objext'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; }; then
16147 for ac_declaration in \
16148 '' \
16149 'extern "C" void std::exit (int) throw (); using std::exit;' \
16150 'extern "C" void std::exit (int); using std::exit;' \
16151 'extern "C" void exit (int) throw ();' \
16152 'extern "C" void exit (int);' \
16153 'void exit (int);'
16154 do
16155 cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h. */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 $ac_declaration
16162 #include <stdlib.h>
16163 int
16164 main ()
16165 {
16166 exit (42);
16167 ;
16168 return 0;
16169 }
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>conftest.er1
16174 ac_status=$?
16175 grep -v '^ *+' conftest.er1 >conftest.err
16176 rm -f conftest.er1
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -z "$ac_c_werror_flag"
16181 || test ! -s conftest.err'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try='test -s conftest.$ac_objext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 :
16194 else
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 continue
16199 fi
16200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h. */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 $ac_declaration
16208 int
16209 main ()
16210 {
16211 exit (42);
16212 ;
16213 return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext
16217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16218 (eval $ac_compile) 2>conftest.er1
16219 ac_status=$?
16220 grep -v '^ *+' conftest.er1 >conftest.err
16221 rm -f conftest.er1
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
16225 { ac_try='test -z "$ac_c_werror_flag"
16226 || test ! -s conftest.err'
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try='test -s conftest.$ac_objext'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 break
16239 else
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 fi
16244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16245 done
16246 rm -f conftest*
16247 if test -n "$ac_declaration"; then
16248 echo '#ifdef __cplusplus' >>confdefs.h
16249 echo $ac_declaration >>confdefs.h
16250 echo '#endif' >>confdefs.h
16251 fi
16253 else
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 fi
16258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16259 ac_ext=c
16260 ac_cpp='$CPP $CPPFLAGS'
16261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16265 depcc="$CC" am_compiler_list=
16267 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16268 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16269 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16271 else
16272 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16273 # We make a subdir and do the tests there. Otherwise we can end up
16274 # making bogus files that we don't know about and never remove. For
16275 # instance it was reported that on HP-UX the gcc test will end up
16276 # making a dummy file named `D' -- because `-MD' means `put the output
16277 # in D'.
16278 mkdir conftest.dir
16279 # Copy depcomp to subdir because otherwise we won't find it if we're
16280 # using a relative directory.
16281 cp "$am_depcomp" conftest.dir
16282 cd conftest.dir
16283 # We will build objects and dependencies in a subdirectory because
16284 # it helps to detect inapplicable dependency modes. For instance
16285 # both Tru64's cc and ICC support -MD to output dependencies as a
16286 # side effect of compilation, but ICC will put the dependencies in
16287 # the current directory while Tru64 will put them in the object
16288 # directory.
16289 mkdir sub
16291 am_cv_CC_dependencies_compiler_type=none
16292 if test "$am_compiler_list" = ""; then
16293 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16294 fi
16295 for depmode in $am_compiler_list; do
16296 # Setup a source with many dependencies, because some compilers
16297 # like to wrap large dependency lists on column 80 (with \), and
16298 # we should not choose a depcomp mode which is confused by this.
16299 #
16300 # We need to recreate these files for each test, as the compiler may
16301 # overwrite some of them when testing with obscure command lines.
16302 # This happens at least with the AIX C compiler.
16303 : > sub/conftest.c
16304 for i in 1 2 3 4 5 6; do
16305 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16306 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16307 # Solaris 8's {/usr,}/bin/sh.
16308 touch sub/conftst$i.h
16309 done
16310 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16312 case $depmode in
16313 nosideeffect)
16314 # after this tag, mechanisms are not by side-effect, so they'll
16315 # only be used when explicitly requested
16316 if test "x$enable_dependency_tracking" = xyes; then
16317 continue
16318 else
16319 break
16320 fi
16321 ;;
16322 none) break ;;
16323 esac
16324 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16325 # mode. It turns out that the SunPro C++ compiler does not properly
16326 # handle `-M -o', and we need to detect this.
16327 if depmode=$depmode \
16328 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16329 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16330 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16331 >/dev/null 2>conftest.err &&
16332 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16333 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16334 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16335 # icc doesn't choke on unknown options, it will just issue warnings
16336 # or remarks (even with -Werror). So we grep stderr for any message
16337 # that says an option was ignored or not supported.
16338 # When given -MP, icc 7.0 and 7.1 complain thusly:
16339 # icc: Command line warning: ignoring option '-M'; no argument required
16340 # The diagnosis changed in icc 8.0:
16341 # icc: Command line remark: option '-MP' not supported
16342 if (grep 'ignoring option' conftest.err ||
16343 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16344 am_cv_CC_dependencies_compiler_type=$depmode
16345 break
16346 fi
16347 fi
16348 done
16350 cd ..
16351 rm -rf conftest.dir
16352 else
16353 am_cv_CC_dependencies_compiler_type=none
16354 fi
16356 fi
16357 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
16358 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
16359 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16363 if
16364 test "x$enable_dependency_tracking" != xno \
16365 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16366 am__fastdepCC_TRUE=
16367 am__fastdepCC_FALSE='#'
16368 else
16369 am__fastdepCC_TRUE='#'
16370 am__fastdepCC_FALSE=
16371 fi
16374 # Find a good install program. We prefer a C program (faster),
16375 # so one script is as good as another. But avoid the broken or
16376 # incompatible versions:
16377 # SysV /etc/install, /usr/sbin/install
16378 # SunOS /usr/etc/install
16379 # IRIX /sbin/install
16380 # AIX /bin/install
16381 # AmigaOS /C/install, which installs bootblocks on floppy discs
16382 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16385 # OS/2's system install, which has a completely different semantic
16386 # ./install, which can be erroneously created by make from ./install.sh.
16387 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16388 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
16389 if test -z "$INSTALL"; then
16390 if test "${ac_cv_path_install+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16394 for as_dir in $PATH
16395 do
16396 IFS=$as_save_IFS
16397 test -z "$as_dir" && as_dir=.
16398 # Account for people who put trailing slashes in PATH elements.
16399 case $as_dir/ in
16400 ./ | .// | /cC/* | \
16401 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16402 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16403 /usr/ucb/* ) ;;
16404 *)
16405 # OSF1 and SCO ODT 3.0 have their own names for install.
16406 # Don't use installbsd from OSF since it installs stuff as root
16407 # by default.
16408 for ac_prog in ginstall scoinst install; do
16409 for ac_exec_ext in '' $ac_executable_extensions; do
16410 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16411 if test $ac_prog = install &&
16412 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16413 # AIX install. It has an incompatible calling convention.
16414 :
16415 elif test $ac_prog = install &&
16416 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16417 # program-specific install script used by HP pwplus--don't use.
16418 :
16419 else
16420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16421 break 3
16422 fi
16423 fi
16424 done
16425 done
16426 ;;
16427 esac
16428 done
16431 fi
16432 if test "${ac_cv_path_install+set}" = set; then
16433 INSTALL=$ac_cv_path_install
16434 else
16435 # As a last resort, use the slow shell script. We don't cache a
16436 # path for INSTALL within a source directory, because that will
16437 # break other packages using the cache if that directory is
16438 # removed, or if the path is relative.
16439 INSTALL=$ac_install_sh
16440 fi
16441 fi
16442 echo "$as_me:$LINENO: result: $INSTALL" >&5
16443 echo "${ECHO_T}$INSTALL" >&6
16445 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16446 # It thinks the first close brace ends the variable substitution.
16447 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16449 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16451 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16454 # Checks for header files.
16455 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16456 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16457 if test "${ac_cv_header_stdc+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460 cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h. */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 #include <stdlib.h>
16467 #include <stdarg.h>
16468 #include <string.h>
16469 #include <float.h>
16471 int
16472 main ()
16473 {
16475 ;
16476 return 0;
16477 }
16478 _ACEOF
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481 (eval $ac_compile) 2>conftest.er1
16482 ac_status=$?
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_cv_header_stdc=yes
16502 else
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 ac_cv_header_stdc=no
16507 fi
16508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16510 if test $ac_cv_header_stdc = yes; then
16511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 #include <string.h>
16520 _ACEOF
16521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16522 $EGREP "memchr" >/dev/null 2>&1; then
16523 :
16524 else
16525 ac_cv_header_stdc=no
16526 fi
16527 rm -f conftest*
16529 fi
16531 if test $ac_cv_header_stdc = yes; then
16532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16533 cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h. */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 #include <stdlib.h>
16541 _ACEOF
16542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16543 $EGREP "free" >/dev/null 2>&1; then
16544 :
16545 else
16546 ac_cv_header_stdc=no
16547 fi
16548 rm -f conftest*
16550 fi
16552 if test $ac_cv_header_stdc = yes; then
16553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16554 if test "$cross_compiling" = yes; then
16555 :
16556 else
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h. */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 #include <ctype.h>
16564 #if ((' ' & 0x0FF) == 0x020)
16565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16567 #else
16568 # define ISLOWER(c) \
16569 (('a' <= (c) && (c) <= 'i') \
16570 || ('j' <= (c) && (c) <= 'r') \
16571 || ('s' <= (c) && (c) <= 'z'))
16572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16573 #endif
16575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16576 int
16577 main ()
16578 {
16579 int i;
16580 for (i = 0; i < 256; i++)
16581 if (XOR (islower (i), ISLOWER (i))
16582 || toupper (i) != TOUPPER (i))
16583 exit(2);
16584 exit (0);
16585 }
16586 _ACEOF
16587 rm -f conftest$ac_exeext
16588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16589 (eval $ac_link) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; }; then
16598 :
16599 else
16600 echo "$as_me: program exited with status $ac_status" >&5
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16604 ( exit $ac_status )
16605 ac_cv_header_stdc=no
16606 fi
16607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16608 fi
16609 fi
16610 fi
16611 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16612 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16613 if test $ac_cv_header_stdc = yes; then
16615 cat >>confdefs.h <<\_ACEOF
16616 #define STDC_HEADERS 1
16617 _ACEOF
16619 fi
16628 for ac_header in fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h
16629 do
16630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16632 echo "$as_me:$LINENO: checking for $ac_header" >&5
16633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 fi
16637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16639 else
16640 # Is the header compilable?
16641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16643 cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h. */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16649 $ac_includes_default
16650 #include <$ac_header>
16651 _ACEOF
16652 rm -f conftest.$ac_objext
16653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16654 (eval $ac_compile) 2>conftest.er1
16655 ac_status=$?
16656 grep -v '^ *+' conftest.er1 >conftest.err
16657 rm -f conftest.er1
16658 cat conftest.err >&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
16661 { ac_try='test -z "$ac_c_werror_flag"
16662 || test ! -s conftest.err'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } &&
16668 { ac_try='test -s conftest.$ac_objext'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 ac_header_compiler=yes
16675 else
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 ac_header_compiler=no
16680 fi
16681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16683 echo "${ECHO_T}$ac_header_compiler" >&6
16685 # Is the header present?
16686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 #include <$ac_header>
16695 _ACEOF
16696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } >/dev/null; then
16704 if test -s conftest.err; then
16705 ac_cpp_err=$ac_c_preproc_warn_flag
16706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16707 else
16708 ac_cpp_err=
16709 fi
16710 else
16711 ac_cpp_err=yes
16712 fi
16713 if test -z "$ac_cpp_err"; then
16714 ac_header_preproc=yes
16715 else
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_header_preproc=no
16720 fi
16721 rm -f conftest.err conftest.$ac_ext
16722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16723 echo "${ECHO_T}$ac_header_preproc" >&6
16725 # So? What about this header?
16726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16727 yes:no: )
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16732 ac_header_preproc=yes
16733 ;;
16734 no:yes:* )
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16747 (
16748 cat <<\_ASBOX
16749 ## --------------------------------- ##
16750 ## Report this to the TI IPC lists. ##
16751 ## --------------------------------- ##
16752 _ASBOX
16753 ) |
16754 sed "s/^/$as_me: WARNING: /" >&2
16755 ;;
16756 esac
16757 echo "$as_me:$LINENO: checking for $ac_header" >&5
16758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762 eval "$as_ac_Header=\$ac_header_preproc"
16763 fi
16764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16767 fi
16768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16769 cat >>confdefs.h <<_ACEOF
16770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16771 _ACEOF
16773 fi
16775 done
16778 # Export CFLAGS and LDFLAGS to Makefile(s)
16782 # Add config variables/options and check them
16783 # Note that 6614 isn't documented and, though it may work, is planned for removal
16790 # Test platform variable for setting
16791 if test "x$PLATFORM" = "xOMAPL138"; then
16792 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16793 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16794 else
16795 if test "x$PLATFORM" = "x66AK2E"; then
16796 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16797 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16798 else
16799 if test "x$PLATFORM" = "xTCI6614"; then
16800 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16801 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16802 else
16803 if test "x$PLATFORM" = "xTCI6630"; then
16804 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16805 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16806 else
16807 if test "x$PLATFORM" = "xTCI6636"; then
16808 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16809 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16810 else
16811 if test "x$PLATFORM" = "xTCI6638"; then
16812 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16813 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16814 else
16815 if test "x$PLATFORM" = "xOMAP54XX"; then
16816 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16817 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16818 else
16819 if test "x$PLATFORM" = "xDRA7XX"; then
16820 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16821 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16822 else
16823 if test "x$PLATFORM" = "x"; then
16824 { echo "$as_me:$LINENO: PLATFORM is not set. All supported platforms will be built ...." >&5
16825 echo "$as_me: PLATFORM is not set. All supported platforms will be built ...." >&6;}
16826 else
16827 { { echo "$as_me:$LINENO: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&5
16828 echo "$as_me: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&2;}
16829 { (exit 1); exit 1; }; }
16830 fi
16832 fi
16834 fi
16836 fi
16838 fi
16840 fi
16842 fi
16844 fi
16846 fi
16849 # If platform is specified, make sure at least one of
16850 # KERNEL_INSTALL_DIR or AF_MSG are set.
16851 if test -n "$PLATFORM" -a -z "$KERNEL_INSTALL_DIR" -a -z "$AF_RPMSG"; then
16852 { { echo "$as_me:$LINENO: error: Must set at least one of KERNEL_INSTALL_DIR or AF_RPMSG" >&5
16853 echo "$as_me: error: Must set at least one of KERNEL_INSTALL_DIR or AF_RPMSG" >&2;}
16854 { (exit 1); exit 1; }; }
16855 fi
16858 # Ignore KERNEL path when no platform is set
16859 if test "x$PLATFORM" = "x"; then
16860 KERNEL_INSTALL_DIR=
16861 fi
16863 if test "x$PLATFORM" = "x"; then
16864 DRM_PREFIX=
16865 fi
16867 if test "x$PLATFORM" = "x"; then
16868 CMEM_INSTALL_DIR=
16869 fi
16872 # Export optional user variable to Makefile(s)
16879 # Define specific variables to be used in Makefile.am
16882 if test "x$PLATFORM" = "xOMAPL138"; then
16883 OMAPL138_TRUE=
16884 OMAPL138_FALSE='#'
16885 else
16886 OMAPL138_TRUE='#'
16887 OMAPL138_FALSE=
16888 fi
16892 if test "x$PLATFORM" = "x66AK2E"; then
16893 C66AK2E_TRUE=
16894 C66AK2E_FALSE='#'
16895 else
16896 C66AK2E_TRUE='#'
16897 C66AK2E_FALSE=
16898 fi
16902 if test "x$PLATFORM" = "xTCI6614"; then
16903 TCI6614_TRUE=
16904 TCI6614_FALSE='#'
16905 else
16906 TCI6614_TRUE='#'
16907 TCI6614_FALSE=
16908 fi
16912 if test "x$PLATFORM" = "xTCI6630"; then
16913 TCI6630_TRUE=
16914 TCI6630_FALSE='#'
16915 else
16916 TCI6630_TRUE='#'
16917 TCI6630_FALSE=
16918 fi
16922 if test "x$PLATFORM" = "xTCI6636"; then
16923 TCI6636_TRUE=
16924 TCI6636_FALSE='#'
16925 else
16926 TCI6636_TRUE='#'
16927 TCI6636_FALSE=
16928 fi
16932 if test "x$PLATFORM" = "xTCI6638"; then
16933 TCI6638_TRUE=
16934 TCI6638_FALSE='#'
16935 else
16936 TCI6638_TRUE='#'
16937 TCI6638_FALSE=
16938 fi
16942 if test "x$PLATFORM" = "xOMAP54XX"; then
16943 OMAP54XX_SMP_TRUE=
16944 OMAP54XX_SMP_FALSE='#'
16945 else
16946 OMAP54XX_SMP_TRUE='#'
16947 OMAP54XX_SMP_FALSE=
16948 fi
16952 if test "x$PLATFORM" = "xDRA7XX"; then
16953 DRA7XX_TRUE=
16954 DRA7XX_FALSE='#'
16955 else
16956 DRA7XX_TRUE='#'
16957 DRA7XX_FALSE=
16958 fi
16962 if test "x$CMEM_INSTALL_DIR" != "x"; then
16963 CMEM_TRUE=
16964 CMEM_FALSE='#'
16965 else
16966 CMEM_TRUE='#'
16967 CMEM_FALSE=
16968 fi
16972 if test "x$KERNEL_INSTALL_DIR" != "x"; then
16973 KDIR_TRUE=
16974 KDIR_FALSE='#'
16975 else
16976 KDIR_TRUE='#'
16977 KDIR_FALSE=
16978 fi
16982 if test -n "$KERNEL_INSTALL_DIR"; then
16983 KERNEL_INSTALL_DIR_TRUE=
16984 KERNEL_INSTALL_DIR_FALSE='#'
16985 else
16986 KERNEL_INSTALL_DIR_TRUE='#'
16987 KERNEL_INSTALL_DIR_FALSE=
16988 fi
16992 if test "x$DRM_PREFIX" != "x"; then
16993 DRM_TRUE=
16994 DRM_FALSE='#'
16995 else
16996 DRM_TRUE='#'
16997 DRM_FALSE=
16998 fi
17002 if test -n "$AF_RPMSG"; then
17003 AF_RPMSG_TRUE=
17004 AF_RPMSG_FALSE='#'
17005 else
17006 AF_RPMSG_TRUE='#'
17007 AF_RPMSG_FALSE=
17008 fi
17011 # Generate Makefile(s)
17012 ac_config_files="$ac_config_files Makefile"
17014 ac_config_files="$ac_config_files linux/etc/Makefile"
17016 ac_config_files="$ac_config_files linux/src/utils/Makefile"
17018 ac_config_files="$ac_config_files linux/src/utils/libtiipcutils.pc"
17020 ac_config_files="$ac_config_files linux/src/api/Makefile"
17022 ac_config_files="$ac_config_files linux/src/api/libtiipc.pc"
17024 ac_config_files="$ac_config_files linux/src/mm/Makefile"
17026 ac_config_files="$ac_config_files linux/src/mm/libmmrpc.pc"
17028 ac_config_files="$ac_config_files linux/src/daemon/Makefile"
17030 ac_config_files="$ac_config_files linux/src/tests/Makefile"
17032 ac_config_files="$ac_config_files linux/src/transport/Makefile"
17034 cat >confcache <<\_ACEOF
17035 # This file is a shell script that caches the results of configure
17036 # tests run on this system so they can be shared between configure
17037 # scripts and configure runs, see configure's option --config-cache.
17038 # It is not useful on other systems. If it contains results you don't
17039 # want to keep, you may remove or edit it.
17040 #
17041 # config.status only pays attention to the cache file if you give it
17042 # the --recheck option to rerun configure.
17043 #
17044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17046 # following values.
17048 _ACEOF
17050 # The following way of writing the cache mishandles newlines in values,
17051 # but we know of no workaround that is simple, portable, and efficient.
17052 # So, don't put newlines in cache variables' values.
17053 # Ultrix sh set writes to stderr and can't be redirected directly,
17054 # and sets the high bit in the cache file unless we assign to the vars.
17055 {
17056 (set) 2>&1 |
17057 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17058 *ac_space=\ *)
17059 # `set' does not quote correctly, so add quotes (double-quote
17060 # substitution turns \\\\ into \\, and sed turns \\ into \).
17061 sed -n \
17062 "s/'/'\\\\''/g;
17063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17064 ;;
17065 *)
17066 # `set' quotes correctly as required by POSIX, so do not add quotes.
17067 sed -n \
17068 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17069 ;;
17070 esac;
17071 } |
17072 sed '
17073 t clear
17074 : clear
17075 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17076 t end
17077 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17078 : end' >>confcache
17079 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17080 if test -w $cache_file; then
17081 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17082 cat confcache >$cache_file
17083 else
17084 echo "not updating unwritable cache $cache_file"
17085 fi
17086 fi
17087 rm -f confcache
17089 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17090 # Let make expand exec_prefix.
17091 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17093 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17094 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17095 # trailing colons and then remove the whole line if VPATH becomes empty
17096 # (actually we leave an empty line to preserve line numbers).
17097 if test "x$srcdir" = x.; then
17098 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17099 s/:*\$(srcdir):*/:/;
17100 s/:*\${srcdir}:*/:/;
17101 s/:*@srcdir@:*/:/;
17102 s/^\([^=]*=[ ]*\):*/\1/;
17103 s/:*$//;
17104 s/^[^=]*=[ ]*$//;
17105 }'
17106 fi
17108 # Transform confdefs.h into DEFS.
17109 # Protect against shell expansion while executing Makefile rules.
17110 # Protect against Makefile macro expansion.
17111 #
17112 # If the first sed substitution is executed (which looks for macros that
17113 # take arguments), then we branch to the quote section. Otherwise,
17114 # look for a macro that doesn't take arguments.
17115 cat >confdef2opt.sed <<\_ACEOF
17116 t clear
17117 : clear
17118 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
17119 t quote
17120 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
17121 t quote
17122 d
17123 : quote
17124 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
17125 s,\[,\\&,g
17126 s,\],\\&,g
17127 s,\$,$$,g
17128 p
17129 _ACEOF
17130 # We use echo to avoid assuming a particular line-breaking character.
17131 # The extra dot is to prevent the shell from consuming trailing
17132 # line-breaks from the sub-command output. A line-break within
17133 # single-quotes doesn't work because, if this script is created in a
17134 # platform that uses two characters for line-breaks (e.g., DOS), tr
17135 # would break.
17136 ac_LF_and_DOT=`echo; echo .`
17137 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
17138 rm -f confdef2opt.sed
17141 ac_libobjs=
17142 ac_ltlibobjs=
17143 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17144 # 1. Remove the extension, and $U if already installed.
17145 ac_i=`echo "$ac_i" |
17146 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17147 # 2. Add them.
17148 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17149 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17150 done
17151 LIBOBJS=$ac_libobjs
17153 LTLIBOBJS=$ac_ltlibobjs
17156 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17157 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17158 Usually this means the macro was only invoked conditionally." >&5
17159 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17160 Usually this means the macro was only invoked conditionally." >&2;}
17161 { (exit 1); exit 1; }; }
17162 fi
17163 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17164 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17165 Usually this means the macro was only invoked conditionally." >&5
17166 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17167 Usually this means the macro was only invoked conditionally." >&2;}
17168 { (exit 1); exit 1; }; }
17169 fi
17170 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17171 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17172 Usually this means the macro was only invoked conditionally." >&5
17173 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17174 Usually this means the macro was only invoked conditionally." >&2;}
17175 { (exit 1); exit 1; }; }
17176 fi
17177 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17178 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17179 Usually this means the macro was only invoked conditionally." >&5
17180 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17181 Usually this means the macro was only invoked conditionally." >&2;}
17182 { (exit 1); exit 1; }; }
17183 fi
17184 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17185 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17186 Usually this means the macro was only invoked conditionally." >&5
17187 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17188 Usually this means the macro was only invoked conditionally." >&2;}
17189 { (exit 1); exit 1; }; }
17190 fi
17191 if test -z "${OMAPL138_TRUE}" && test -z "${OMAPL138_FALSE}"; then
17192 { { echo "$as_me:$LINENO: error: conditional \"OMAPL138\" was never defined.
17193 Usually this means the macro was only invoked conditionally." >&5
17194 echo "$as_me: error: conditional \"OMAPL138\" was never defined.
17195 Usually this means the macro was only invoked conditionally." >&2;}
17196 { (exit 1); exit 1; }; }
17197 fi
17198 if test -z "${C66AK2E_TRUE}" && test -z "${C66AK2E_FALSE}"; then
17199 { { echo "$as_me:$LINENO: error: conditional \"C66AK2E\" was never defined.
17200 Usually this means the macro was only invoked conditionally." >&5
17201 echo "$as_me: error: conditional \"C66AK2E\" was never defined.
17202 Usually this means the macro was only invoked conditionally." >&2;}
17203 { (exit 1); exit 1; }; }
17204 fi
17205 if test -z "${TCI6614_TRUE}" && test -z "${TCI6614_FALSE}"; then
17206 { { echo "$as_me:$LINENO: error: conditional \"TCI6614\" was never defined.
17207 Usually this means the macro was only invoked conditionally." >&5
17208 echo "$as_me: error: conditional \"TCI6614\" was never defined.
17209 Usually this means the macro was only invoked conditionally." >&2;}
17210 { (exit 1); exit 1; }; }
17211 fi
17212 if test -z "${TCI6630_TRUE}" && test -z "${TCI6630_FALSE}"; then
17213 { { echo "$as_me:$LINENO: error: conditional \"TCI6630\" was never defined.
17214 Usually this means the macro was only invoked conditionally." >&5
17215 echo "$as_me: error: conditional \"TCI6630\" was never defined.
17216 Usually this means the macro was only invoked conditionally." >&2;}
17217 { (exit 1); exit 1; }; }
17218 fi
17219 if test -z "${TCI6636_TRUE}" && test -z "${TCI6636_FALSE}"; then
17220 { { echo "$as_me:$LINENO: error: conditional \"TCI6636\" was never defined.
17221 Usually this means the macro was only invoked conditionally." >&5
17222 echo "$as_me: error: conditional \"TCI6636\" was never defined.
17223 Usually this means the macro was only invoked conditionally." >&2;}
17224 { (exit 1); exit 1; }; }
17225 fi
17226 if test -z "${TCI6638_TRUE}" && test -z "${TCI6638_FALSE}"; then
17227 { { echo "$as_me:$LINENO: error: conditional \"TCI6638\" was never defined.
17228 Usually this means the macro was only invoked conditionally." >&5
17229 echo "$as_me: error: conditional \"TCI6638\" was never defined.
17230 Usually this means the macro was only invoked conditionally." >&2;}
17231 { (exit 1); exit 1; }; }
17232 fi
17233 if test -z "${OMAP54XX_SMP_TRUE}" && test -z "${OMAP54XX_SMP_FALSE}"; then
17234 { { echo "$as_me:$LINENO: error: conditional \"OMAP54XX_SMP\" was never defined.
17235 Usually this means the macro was only invoked conditionally." >&5
17236 echo "$as_me: error: conditional \"OMAP54XX_SMP\" was never defined.
17237 Usually this means the macro was only invoked conditionally." >&2;}
17238 { (exit 1); exit 1; }; }
17239 fi
17240 if test -z "${DRA7XX_TRUE}" && test -z "${DRA7XX_FALSE}"; then
17241 { { echo "$as_me:$LINENO: error: conditional \"DRA7XX\" was never defined.
17242 Usually this means the macro was only invoked conditionally." >&5
17243 echo "$as_me: error: conditional \"DRA7XX\" was never defined.
17244 Usually this means the macro was only invoked conditionally." >&2;}
17245 { (exit 1); exit 1; }; }
17246 fi
17247 if test -z "${CMEM_TRUE}" && test -z "${CMEM_FALSE}"; then
17248 { { echo "$as_me:$LINENO: error: conditional \"CMEM\" was never defined.
17249 Usually this means the macro was only invoked conditionally." >&5
17250 echo "$as_me: error: conditional \"CMEM\" was never defined.
17251 Usually this means the macro was only invoked conditionally." >&2;}
17252 { (exit 1); exit 1; }; }
17253 fi
17254 if test -z "${KDIR_TRUE}" && test -z "${KDIR_FALSE}"; then
17255 { { echo "$as_me:$LINENO: error: conditional \"KDIR\" was never defined.
17256 Usually this means the macro was only invoked conditionally." >&5
17257 echo "$as_me: error: conditional \"KDIR\" was never defined.
17258 Usually this means the macro was only invoked conditionally." >&2;}
17259 { (exit 1); exit 1; }; }
17260 fi
17261 if test -z "${KERNEL_INSTALL_DIR_TRUE}" && test -z "${KERNEL_INSTALL_DIR_FALSE}"; then
17262 { { echo "$as_me:$LINENO: error: conditional \"KERNEL_INSTALL_DIR\" was never defined.
17263 Usually this means the macro was only invoked conditionally." >&5
17264 echo "$as_me: error: conditional \"KERNEL_INSTALL_DIR\" was never defined.
17265 Usually this means the macro was only invoked conditionally." >&2;}
17266 { (exit 1); exit 1; }; }
17267 fi
17268 if test -z "${DRM_TRUE}" && test -z "${DRM_FALSE}"; then
17269 { { echo "$as_me:$LINENO: error: conditional \"DRM\" was never defined.
17270 Usually this means the macro was only invoked conditionally." >&5
17271 echo "$as_me: error: conditional \"DRM\" was never defined.
17272 Usually this means the macro was only invoked conditionally." >&2;}
17273 { (exit 1); exit 1; }; }
17274 fi
17275 if test -z "${AF_RPMSG_TRUE}" && test -z "${AF_RPMSG_FALSE}"; then
17276 { { echo "$as_me:$LINENO: error: conditional \"AF_RPMSG\" was never defined.
17277 Usually this means the macro was only invoked conditionally." >&5
17278 echo "$as_me: error: conditional \"AF_RPMSG\" was never defined.
17279 Usually this means the macro was only invoked conditionally." >&2;}
17280 { (exit 1); exit 1; }; }
17281 fi
17283 : ${CONFIG_STATUS=./config.status}
17284 ac_clean_files_save=$ac_clean_files
17285 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17286 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17287 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17288 cat >$CONFIG_STATUS <<_ACEOF
17289 #! $SHELL
17290 # Generated by $as_me.
17291 # Run this file to recreate the current configuration.
17292 # Compiler output produced by configure, useful for debugging
17293 # configure, is in config.log if it exists.
17295 debug=false
17296 ac_cs_recheck=false
17297 ac_cs_silent=false
17298 SHELL=\${CONFIG_SHELL-$SHELL}
17299 _ACEOF
17301 cat >>$CONFIG_STATUS <<\_ACEOF
17302 ## --------------------- ##
17303 ## M4sh Initialization. ##
17304 ## --------------------- ##
17306 # Be Bourne compatible
17307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17308 emulate sh
17309 NULLCMD=:
17310 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17311 # is contrary to our usage. Disable this feature.
17312 alias -g '${1+"$@"}'='"$@"'
17313 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17314 set -o posix
17315 fi
17316 DUALCASE=1; export DUALCASE # for MKS sh
17318 # Support unset when possible.
17319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17320 as_unset=unset
17321 else
17322 as_unset=false
17323 fi
17326 # Work around bugs in pre-3.0 UWIN ksh.
17327 $as_unset ENV MAIL MAILPATH
17328 PS1='$ '
17329 PS2='> '
17330 PS4='+ '
17332 # NLS nuisances.
17333 for as_var in \
17334 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17335 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17336 LC_TELEPHONE LC_TIME
17337 do
17338 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17339 eval $as_var=C; export $as_var
17340 else
17341 $as_unset $as_var
17342 fi
17343 done
17345 # Required to use basename.
17346 if expr a : '\(a\)' >/dev/null 2>&1; then
17347 as_expr=expr
17348 else
17349 as_expr=false
17350 fi
17352 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17353 as_basename=basename
17354 else
17355 as_basename=false
17356 fi
17359 # Name of the executable.
17360 as_me=`$as_basename "$0" ||
17361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17362 X"$0" : 'X\(//\)$' \| \
17363 X"$0" : 'X\(/\)$' \| \
17364 . : '\(.\)' 2>/dev/null ||
17365 echo X/"$0" |
17366 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17367 /^X\/\(\/\/\)$/{ s//\1/; q; }
17368 /^X\/\(\/\).*/{ s//\1/; q; }
17369 s/.*/./; q'`
17372 # PATH needs CR, and LINENO needs CR and PATH.
17373 # Avoid depending upon Character Ranges.
17374 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17377 as_cr_digits='0123456789'
17378 as_cr_alnum=$as_cr_Letters$as_cr_digits
17380 # The user is always right.
17381 if test "${PATH_SEPARATOR+set}" != set; then
17382 echo "#! /bin/sh" >conf$$.sh
17383 echo "exit 0" >>conf$$.sh
17384 chmod +x conf$$.sh
17385 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17386 PATH_SEPARATOR=';'
17387 else
17388 PATH_SEPARATOR=:
17389 fi
17390 rm -f conf$$.sh
17391 fi
17394 as_lineno_1=$LINENO
17395 as_lineno_2=$LINENO
17396 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17397 test "x$as_lineno_1" != "x$as_lineno_2" &&
17398 test "x$as_lineno_3" = "x$as_lineno_2" || {
17399 # Find who we are. Look in the path if we contain no path at all
17400 # relative or not.
17401 case $0 in
17402 *[\\/]* ) as_myself=$0 ;;
17403 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17404 for as_dir in $PATH
17405 do
17406 IFS=$as_save_IFS
17407 test -z "$as_dir" && as_dir=.
17408 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17409 done
17411 ;;
17412 esac
17413 # We did not find ourselves, most probably we were run as `sh COMMAND'
17414 # in which case we are not to be found in the path.
17415 if test "x$as_myself" = x; then
17416 as_myself=$0
17417 fi
17418 if test ! -f "$as_myself"; then
17419 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17420 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17421 { (exit 1); exit 1; }; }
17422 fi
17423 case $CONFIG_SHELL in
17424 '')
17425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17426 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17427 do
17428 IFS=$as_save_IFS
17429 test -z "$as_dir" && as_dir=.
17430 for as_base in sh bash ksh sh5; do
17431 case $as_dir in
17432 /*)
17433 if ("$as_dir/$as_base" -c '
17434 as_lineno_1=$LINENO
17435 as_lineno_2=$LINENO
17436 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17437 test "x$as_lineno_1" != "x$as_lineno_2" &&
17438 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17439 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17440 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17441 CONFIG_SHELL=$as_dir/$as_base
17442 export CONFIG_SHELL
17443 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17444 fi;;
17445 esac
17446 done
17447 done
17448 ;;
17449 esac
17451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17452 # uniformly replaced by the line number. The first 'sed' inserts a
17453 # line-number line before each line; the second 'sed' does the real
17454 # work. The second script uses 'N' to pair each line-number line
17455 # with the numbered line, and appends trailing '-' during
17456 # substitution so that $LINENO is not a special case at line end.
17457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17458 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17459 sed '=' <$as_myself |
17460 sed '
17461 N
17462 s,$,-,
17463 : loop
17464 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17465 t loop
17466 s,-$,,
17467 s,^['$as_cr_digits']*\n,,
17468 ' >$as_me.lineno &&
17469 chmod +x $as_me.lineno ||
17470 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17471 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17472 { (exit 1); exit 1; }; }
17474 # Don't try to exec as it changes $[0], causing all sort of problems
17475 # (the dirname of $[0] is not the place where we might find the
17476 # original and so on. Autoconf is especially sensible to this).
17477 . ./$as_me.lineno
17478 # Exit status is that of the last command.
17479 exit
17480 }
17483 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17484 *c*,-n*) ECHO_N= ECHO_C='
17485 ' ECHO_T=' ' ;;
17486 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17487 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17488 esac
17490 if expr a : '\(a\)' >/dev/null 2>&1; then
17491 as_expr=expr
17492 else
17493 as_expr=false
17494 fi
17496 rm -f conf$$ conf$$.exe conf$$.file
17497 echo >conf$$.file
17498 if ln -s conf$$.file conf$$ 2>/dev/null; then
17499 # We could just check for DJGPP; but this test a) works b) is more generic
17500 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17501 if test -f conf$$.exe; then
17502 # Don't use ln at all; we don't have any links
17503 as_ln_s='cp -p'
17504 else
17505 as_ln_s='ln -s'
17506 fi
17507 elif ln conf$$.file conf$$ 2>/dev/null; then
17508 as_ln_s=ln
17509 else
17510 as_ln_s='cp -p'
17511 fi
17512 rm -f conf$$ conf$$.exe conf$$.file
17514 if mkdir -p . 2>/dev/null; then
17515 as_mkdir_p=:
17516 else
17517 test -d ./-p && rmdir ./-p
17518 as_mkdir_p=false
17519 fi
17521 as_executable_p="test -f"
17523 # Sed expression to map a string onto a valid CPP name.
17524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17526 # Sed expression to map a string onto a valid variable name.
17527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17530 # IFS
17531 # We need space, tab and new line, in precisely that order.
17532 as_nl='
17533 '
17534 IFS=" $as_nl"
17536 # CDPATH.
17537 $as_unset CDPATH
17539 exec 6>&1
17541 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17542 # report actual input values of CONFIG_FILES etc. instead of their
17543 # values after options handling. Logging --version etc. is OK.
17544 exec 5>>config.log
17545 {
17546 echo
17547 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17548 ## Running $as_me. ##
17549 _ASBOX
17550 } >&5
17551 cat >&5 <<_CSEOF
17553 This file was extended by TI IPC $as_me 3.0.0, which was
17554 generated by GNU Autoconf 2.59. Invocation command line was
17556 CONFIG_FILES = $CONFIG_FILES
17557 CONFIG_HEADERS = $CONFIG_HEADERS
17558 CONFIG_LINKS = $CONFIG_LINKS
17559 CONFIG_COMMANDS = $CONFIG_COMMANDS
17560 $ $0 $@
17562 _CSEOF
17563 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17564 echo >&5
17565 _ACEOF
17567 # Files that config.status was made for.
17568 if test -n "$ac_config_files"; then
17569 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17570 fi
17572 if test -n "$ac_config_headers"; then
17573 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17574 fi
17576 if test -n "$ac_config_links"; then
17577 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17578 fi
17580 if test -n "$ac_config_commands"; then
17581 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17582 fi
17584 cat >>$CONFIG_STATUS <<\_ACEOF
17586 ac_cs_usage="\
17587 \`$as_me' instantiates files from templates according to the
17588 current configuration.
17590 Usage: $0 [OPTIONS] [FILE]...
17592 -h, --help print this help, then exit
17593 -V, --version print version number, then exit
17594 -q, --quiet do not print progress messages
17595 -d, --debug don't remove temporary files
17596 --recheck update $as_me by reconfiguring in the same conditions
17597 --file=FILE[:TEMPLATE]
17598 instantiate the configuration file FILE
17600 Configuration files:
17601 $config_files
17603 Configuration commands:
17604 $config_commands
17606 Report bugs to <bug-autoconf@gnu.org>."
17607 _ACEOF
17609 cat >>$CONFIG_STATUS <<_ACEOF
17610 ac_cs_version="\\
17611 TI IPC config.status 3.0.0
17612 configured by $0, generated by GNU Autoconf 2.59,
17613 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17615 Copyright (C) 2003 Free Software Foundation, Inc.
17616 This config.status script is free software; the Free Software Foundation
17617 gives unlimited permission to copy, distribute and modify it."
17618 srcdir=$srcdir
17619 INSTALL="$INSTALL"
17620 _ACEOF
17622 cat >>$CONFIG_STATUS <<\_ACEOF
17623 # If no file are specified by the user, then we need to provide default
17624 # value. By we need to know if files were specified by the user.
17625 ac_need_defaults=:
17626 while test $# != 0
17627 do
17628 case $1 in
17629 --*=*)
17630 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17631 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17632 ac_shift=:
17633 ;;
17634 -*)
17635 ac_option=$1
17636 ac_optarg=$2
17637 ac_shift=shift
17638 ;;
17639 *) # This is not an option, so the user has probably given explicit
17640 # arguments.
17641 ac_option=$1
17642 ac_need_defaults=false;;
17643 esac
17645 case $ac_option in
17646 # Handling of the options.
17647 _ACEOF
17648 cat >>$CONFIG_STATUS <<\_ACEOF
17649 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17650 ac_cs_recheck=: ;;
17651 --version | --vers* | -V )
17652 echo "$ac_cs_version"; exit 0 ;;
17653 --he | --h)
17654 # Conflict between --help and --header
17655 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17656 Try \`$0 --help' for more information." >&5
17657 echo "$as_me: error: ambiguous option: $1
17658 Try \`$0 --help' for more information." >&2;}
17659 { (exit 1); exit 1; }; };;
17660 --help | --hel | -h )
17661 echo "$ac_cs_usage"; exit 0 ;;
17662 --debug | --d* | -d )
17663 debug=: ;;
17664 --file | --fil | --fi | --f )
17665 $ac_shift
17666 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17667 ac_need_defaults=false;;
17668 --header | --heade | --head | --hea )
17669 $ac_shift
17670 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17671 ac_need_defaults=false;;
17672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17673 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17674 ac_cs_silent=: ;;
17676 # This is an error.
17677 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17678 Try \`$0 --help' for more information." >&5
17679 echo "$as_me: error: unrecognized option: $1
17680 Try \`$0 --help' for more information." >&2;}
17681 { (exit 1); exit 1; }; } ;;
17683 *) ac_config_targets="$ac_config_targets $1" ;;
17685 esac
17686 shift
17687 done
17689 ac_configure_extra_args=
17691 if $ac_cs_silent; then
17692 exec 6>/dev/null
17693 ac_configure_extra_args="$ac_configure_extra_args --silent"
17694 fi
17696 _ACEOF
17697 cat >>$CONFIG_STATUS <<_ACEOF
17698 if \$ac_cs_recheck; then
17699 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17700 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17701 fi
17703 _ACEOF
17705 cat >>$CONFIG_STATUS <<_ACEOF
17706 #
17707 # INIT-COMMANDS section.
17708 #
17710 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17712 _ACEOF
17716 cat >>$CONFIG_STATUS <<\_ACEOF
17717 for ac_config_target in $ac_config_targets
17718 do
17719 case "$ac_config_target" in
17720 # Handling of arguments.
17721 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17722 "linux/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/etc/Makefile" ;;
17723 "linux/src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/utils/Makefile" ;;
17724 "linux/src/utils/libtiipcutils.pc" ) CONFIG_FILES="$CONFIG_FILES linux/src/utils/libtiipcutils.pc" ;;
17725 "linux/src/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/api/Makefile" ;;
17726 "linux/src/api/libtiipc.pc" ) CONFIG_FILES="$CONFIG_FILES linux/src/api/libtiipc.pc" ;;
17727 "linux/src/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/mm/Makefile" ;;
17728 "linux/src/mm/libmmrpc.pc" ) CONFIG_FILES="$CONFIG_FILES linux/src/mm/libmmrpc.pc" ;;
17729 "linux/src/daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/daemon/Makefile" ;;
17730 "linux/src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/tests/Makefile" ;;
17731 "linux/src/transport/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/transport/Makefile" ;;
17732 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17733 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17734 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17735 { (exit 1); exit 1; }; };;
17736 esac
17737 done
17739 # If the user did not use the arguments to specify the items to instantiate,
17740 # then the envvar interface is used. Set only those that are not.
17741 # We use the long form for the default assignment because of an extremely
17742 # bizarre bug on SunOS 4.1.3.
17743 if $ac_need_defaults; then
17744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17746 fi
17748 # Have a temporary directory for convenience. Make it in the build tree
17749 # simply because there is no reason to put it here, and in addition,
17750 # creating and moving files from /tmp can sometimes cause problems.
17751 # Create a temporary directory, and hook for its removal unless debugging.
17752 $debug ||
17753 {
17754 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17755 trap '{ (exit 1); exit 1; }' 1 2 13 15
17756 }
17758 # Create a (secure) tmp directory for tmp files.
17760 {
17761 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17762 test -n "$tmp" && test -d "$tmp"
17763 } ||
17764 {
17765 tmp=./confstat$$-$RANDOM
17766 (umask 077 && mkdir $tmp)
17767 } ||
17768 {
17769 echo "$me: cannot create a temporary directory in ." >&2
17770 { (exit 1); exit 1; }
17771 }
17773 _ACEOF
17775 cat >>$CONFIG_STATUS <<_ACEOF
17777 #
17778 # CONFIG_FILES section.
17779 #
17781 # No need to generate the scripts if there are no CONFIG_FILES.
17782 # This happens for instance when ./config.status config.h
17783 if test -n "\$CONFIG_FILES"; then
17784 # Protect against being on the right side of a sed subst in config.status.
17785 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17786 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17787 s,@SHELL@,$SHELL,;t t
17788 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17789 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17790 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17791 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17792 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17793 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17794 s,@exec_prefix@,$exec_prefix,;t t
17795 s,@prefix@,$prefix,;t t
17796 s,@program_transform_name@,$program_transform_name,;t t
17797 s,@bindir@,$bindir,;t t
17798 s,@sbindir@,$sbindir,;t t
17799 s,@libexecdir@,$libexecdir,;t t
17800 s,@datadir@,$datadir,;t t
17801 s,@sysconfdir@,$sysconfdir,;t t
17802 s,@sharedstatedir@,$sharedstatedir,;t t
17803 s,@localstatedir@,$localstatedir,;t t
17804 s,@libdir@,$libdir,;t t
17805 s,@includedir@,$includedir,;t t
17806 s,@oldincludedir@,$oldincludedir,;t t
17807 s,@infodir@,$infodir,;t t
17808 s,@mandir@,$mandir,;t t
17809 s,@build_alias@,$build_alias,;t t
17810 s,@host_alias@,$host_alias,;t t
17811 s,@target_alias@,$target_alias,;t t
17812 s,@DEFS@,$DEFS,;t t
17813 s,@ECHO_C@,$ECHO_C,;t t
17814 s,@ECHO_N@,$ECHO_N,;t t
17815 s,@ECHO_T@,$ECHO_T,;t t
17816 s,@LIBS@,$LIBS,;t t
17817 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17818 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17819 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17820 s,@CYGPATH_W@,$CYGPATH_W,;t t
17821 s,@PACKAGE@,$PACKAGE,;t t
17822 s,@VERSION@,$VERSION,;t t
17823 s,@ACLOCAL@,$ACLOCAL,;t t
17824 s,@AUTOCONF@,$AUTOCONF,;t t
17825 s,@AUTOMAKE@,$AUTOMAKE,;t t
17826 s,@AUTOHEADER@,$AUTOHEADER,;t t
17827 s,@MAKEINFO@,$MAKEINFO,;t t
17828 s,@install_sh@,$install_sh,;t t
17829 s,@STRIP@,$STRIP,;t t
17830 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17831 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17832 s,@mkdir_p@,$mkdir_p,;t t
17833 s,@AWK@,$AWK,;t t
17834 s,@SET_MAKE@,$SET_MAKE,;t t
17835 s,@am__leading_dot@,$am__leading_dot,;t t
17836 s,@AMTAR@,$AMTAR,;t t
17837 s,@am__tar@,$am__tar,;t t
17838 s,@am__untar@,$am__untar,;t t
17839 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17840 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17841 s,@MAINT@,$MAINT,;t t
17842 s,@build@,$build,;t t
17843 s,@build_cpu@,$build_cpu,;t t
17844 s,@build_vendor@,$build_vendor,;t t
17845 s,@build_os@,$build_os,;t t
17846 s,@host@,$host,;t t
17847 s,@host_cpu@,$host_cpu,;t t
17848 s,@host_vendor@,$host_vendor,;t t
17849 s,@host_os@,$host_os,;t t
17850 s,@CC@,$CC,;t t
17851 s,@CFLAGS@,$CFLAGS,;t t
17852 s,@LDFLAGS@,$LDFLAGS,;t t
17853 s,@CPPFLAGS@,$CPPFLAGS,;t t
17854 s,@ac_ct_CC@,$ac_ct_CC,;t t
17855 s,@EXEEXT@,$EXEEXT,;t t
17856 s,@OBJEXT@,$OBJEXT,;t t
17857 s,@DEPDIR@,$DEPDIR,;t t
17858 s,@am__include@,$am__include,;t t
17859 s,@am__quote@,$am__quote,;t t
17860 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17861 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17862 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17863 s,@CCDEPMODE@,$CCDEPMODE,;t t
17864 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17865 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17866 s,@EGREP@,$EGREP,;t t
17867 s,@LN_S@,$LN_S,;t t
17868 s,@ECHO@,$ECHO,;t t
17869 s,@AR@,$AR,;t t
17870 s,@ac_ct_AR@,$ac_ct_AR,;t t
17871 s,@RANLIB@,$RANLIB,;t t
17872 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17873 s,@CPP@,$CPP,;t t
17874 s,@CXX@,$CXX,;t t
17875 s,@CXXFLAGS@,$CXXFLAGS,;t t
17876 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17877 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17878 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17879 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17880 s,@CXXCPP@,$CXXCPP,;t t
17881 s,@LIBTOOL@,$LIBTOOL,;t t
17882 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
17883 s,@AM_LDFLAGS@,$AM_LDFLAGS,;t t
17884 s,@PLATFORM@,$PLATFORM,;t t
17885 s,@CMEM_INSTALL_DIR@,$CMEM_INSTALL_DIR,;t t
17886 s,@KERNEL_INSTALL_DIR@,$KERNEL_INSTALL_DIR,;t t
17887 s,@AF_RPMSG@,$AF_RPMSG,;t t
17888 s,@DRM_PREFIX@,$DRM_PREFIX,;t t
17889 s,@OMAPL138_TRUE@,$OMAPL138_TRUE,;t t
17890 s,@OMAPL138_FALSE@,$OMAPL138_FALSE,;t t
17891 s,@C66AK2E_TRUE@,$C66AK2E_TRUE,;t t
17892 s,@C66AK2E_FALSE@,$C66AK2E_FALSE,;t t
17893 s,@TCI6614_TRUE@,$TCI6614_TRUE,;t t
17894 s,@TCI6614_FALSE@,$TCI6614_FALSE,;t t
17895 s,@TCI6630_TRUE@,$TCI6630_TRUE,;t t
17896 s,@TCI6630_FALSE@,$TCI6630_FALSE,;t t
17897 s,@TCI6636_TRUE@,$TCI6636_TRUE,;t t
17898 s,@TCI6636_FALSE@,$TCI6636_FALSE,;t t
17899 s,@TCI6638_TRUE@,$TCI6638_TRUE,;t t
17900 s,@TCI6638_FALSE@,$TCI6638_FALSE,;t t
17901 s,@OMAP54XX_SMP_TRUE@,$OMAP54XX_SMP_TRUE,;t t
17902 s,@OMAP54XX_SMP_FALSE@,$OMAP54XX_SMP_FALSE,;t t
17903 s,@DRA7XX_TRUE@,$DRA7XX_TRUE,;t t
17904 s,@DRA7XX_FALSE@,$DRA7XX_FALSE,;t t
17905 s,@CMEM_TRUE@,$CMEM_TRUE,;t t
17906 s,@CMEM_FALSE@,$CMEM_FALSE,;t t
17907 s,@KDIR_TRUE@,$KDIR_TRUE,;t t
17908 s,@KDIR_FALSE@,$KDIR_FALSE,;t t
17909 s,@KERNEL_INSTALL_DIR_TRUE@,$KERNEL_INSTALL_DIR_TRUE,;t t
17910 s,@KERNEL_INSTALL_DIR_FALSE@,$KERNEL_INSTALL_DIR_FALSE,;t t
17911 s,@DRM_TRUE@,$DRM_TRUE,;t t
17912 s,@DRM_FALSE@,$DRM_FALSE,;t t
17913 s,@AF_RPMSG_TRUE@,$AF_RPMSG_TRUE,;t t
17914 s,@AF_RPMSG_FALSE@,$AF_RPMSG_FALSE,;t t
17915 s,@LIBOBJS@,$LIBOBJS,;t t
17916 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17917 CEOF
17919 _ACEOF
17921 cat >>$CONFIG_STATUS <<\_ACEOF
17922 # Split the substitutions into bite-sized pieces for seds with
17923 # small command number limits, like on Digital OSF/1 and HP-UX.
17924 ac_max_sed_lines=48
17925 ac_sed_frag=1 # Number of current file.
17926 ac_beg=1 # First line for current file.
17927 ac_end=$ac_max_sed_lines # Line after last line for current file.
17928 ac_more_lines=:
17929 ac_sed_cmds=
17930 while $ac_more_lines; do
17931 if test $ac_beg -gt 1; then
17932 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17933 else
17934 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17935 fi
17936 if test ! -s $tmp/subs.frag; then
17937 ac_more_lines=false
17938 else
17939 # The purpose of the label and of the branching condition is to
17940 # speed up the sed processing (if there are no `@' at all, there
17941 # is no need to browse any of the substitutions).
17942 # These are the two extra sed commands mentioned above.
17943 (echo ':t
17944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17945 if test -z "$ac_sed_cmds"; then
17946 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17947 else
17948 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17949 fi
17950 ac_sed_frag=`expr $ac_sed_frag + 1`
17951 ac_beg=$ac_end
17952 ac_end=`expr $ac_end + $ac_max_sed_lines`
17953 fi
17954 done
17955 if test -z "$ac_sed_cmds"; then
17956 ac_sed_cmds=cat
17957 fi
17958 fi # test -n "$CONFIG_FILES"
17960 _ACEOF
17961 cat >>$CONFIG_STATUS <<\_ACEOF
17962 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17963 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17964 case $ac_file in
17965 - | *:- | *:-:* ) # input from stdin
17966 cat >$tmp/stdin
17967 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17968 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17969 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17970 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17971 * ) ac_file_in=$ac_file.in ;;
17972 esac
17974 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17975 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17977 X"$ac_file" : 'X\(//\)[^/]' \| \
17978 X"$ac_file" : 'X\(//\)$' \| \
17979 X"$ac_file" : 'X\(/\)' \| \
17980 . : '\(.\)' 2>/dev/null ||
17981 echo X"$ac_file" |
17982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17984 /^X\(\/\/\)$/{ s//\1/; q; }
17985 /^X\(\/\).*/{ s//\1/; q; }
17986 s/.*/./; q'`
17987 { if $as_mkdir_p; then
17988 mkdir -p "$ac_dir"
17989 else
17990 as_dir="$ac_dir"
17991 as_dirs=
17992 while test ! -d "$as_dir"; do
17993 as_dirs="$as_dir $as_dirs"
17994 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17996 X"$as_dir" : 'X\(//\)[^/]' \| \
17997 X"$as_dir" : 'X\(//\)$' \| \
17998 X"$as_dir" : 'X\(/\)' \| \
17999 . : '\(.\)' 2>/dev/null ||
18000 echo X"$as_dir" |
18001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18003 /^X\(\/\/\)$/{ s//\1/; q; }
18004 /^X\(\/\).*/{ s//\1/; q; }
18005 s/.*/./; q'`
18006 done
18007 test ! -n "$as_dirs" || mkdir $as_dirs
18008 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18010 { (exit 1); exit 1; }; }; }
18012 ac_builddir=.
18014 if test "$ac_dir" != .; then
18015 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18016 # A "../" for each directory in $ac_dir_suffix.
18017 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18018 else
18019 ac_dir_suffix= ac_top_builddir=
18020 fi
18022 case $srcdir in
18023 .) # No --srcdir option. We are building in place.
18024 ac_srcdir=.
18025 if test -z "$ac_top_builddir"; then
18026 ac_top_srcdir=.
18027 else
18028 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18029 fi ;;
18030 [\\/]* | ?:[\\/]* ) # Absolute path.
18031 ac_srcdir=$srcdir$ac_dir_suffix;
18032 ac_top_srcdir=$srcdir ;;
18033 *) # Relative path.
18034 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18035 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18036 esac
18038 # Do not use `cd foo && pwd` to compute absolute paths, because
18039 # the directories may not exist.
18040 case `pwd` in
18041 .) ac_abs_builddir="$ac_dir";;
18042 *)
18043 case "$ac_dir" in
18044 .) ac_abs_builddir=`pwd`;;
18045 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18046 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18047 esac;;
18048 esac
18049 case $ac_abs_builddir in
18050 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18051 *)
18052 case ${ac_top_builddir}. in
18053 .) ac_abs_top_builddir=$ac_abs_builddir;;
18054 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18055 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18056 esac;;
18057 esac
18058 case $ac_abs_builddir in
18059 .) ac_abs_srcdir=$ac_srcdir;;
18060 *)
18061 case $ac_srcdir in
18062 .) ac_abs_srcdir=$ac_abs_builddir;;
18063 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18064 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18065 esac;;
18066 esac
18067 case $ac_abs_builddir in
18068 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18069 *)
18070 case $ac_top_srcdir in
18071 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18072 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18073 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18074 esac;;
18075 esac
18078 case $INSTALL in
18079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18080 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18081 esac
18083 if test x"$ac_file" != x-; then
18084 { echo "$as_me:$LINENO: creating $ac_file" >&5
18085 echo "$as_me: creating $ac_file" >&6;}
18086 rm -f "$ac_file"
18087 fi
18088 # Let's still pretend it is `configure' which instantiates (i.e., don't
18089 # use $as_me), people would be surprised to read:
18090 # /* config.h. Generated by config.status. */
18091 if test x"$ac_file" = x-; then
18092 configure_input=
18093 else
18094 configure_input="$ac_file. "
18095 fi
18096 configure_input=$configure_input"Generated from `echo $ac_file_in |
18097 sed 's,.*/,,'` by configure."
18099 # First look for the input files in the build tree, otherwise in the
18100 # src tree.
18101 ac_file_inputs=`IFS=:
18102 for f in $ac_file_in; do
18103 case $f in
18104 -) echo $tmp/stdin ;;
18105 [\\/$]*)
18106 # Absolute (can't be DOS-style, as IFS=:)
18107 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18108 echo "$as_me: error: cannot find input file: $f" >&2;}
18109 { (exit 1); exit 1; }; }
18110 echo "$f";;
18111 *) # Relative
18112 if test -f "$f"; then
18113 # Build tree
18114 echo "$f"
18115 elif test -f "$srcdir/$f"; then
18116 # Source tree
18117 echo "$srcdir/$f"
18118 else
18119 # /dev/null tree
18120 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18121 echo "$as_me: error: cannot find input file: $f" >&2;}
18122 { (exit 1); exit 1; }; }
18123 fi;;
18124 esac
18125 done` || { (exit 1); exit 1; }
18126 _ACEOF
18127 cat >>$CONFIG_STATUS <<_ACEOF
18128 sed "$ac_vpsub
18129 $extrasub
18130 _ACEOF
18131 cat >>$CONFIG_STATUS <<\_ACEOF
18132 :t
18133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18134 s,@configure_input@,$configure_input,;t t
18135 s,@srcdir@,$ac_srcdir,;t t
18136 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18137 s,@top_srcdir@,$ac_top_srcdir,;t t
18138 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18139 s,@builddir@,$ac_builddir,;t t
18140 s,@abs_builddir@,$ac_abs_builddir,;t t
18141 s,@top_builddir@,$ac_top_builddir,;t t
18142 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18143 s,@INSTALL@,$ac_INSTALL,;t t
18144 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18145 rm -f $tmp/stdin
18146 if test x"$ac_file" != x-; then
18147 mv $tmp/out $ac_file
18148 else
18149 cat $tmp/out
18150 rm -f $tmp/out
18151 fi
18153 done
18154 _ACEOF
18155 cat >>$CONFIG_STATUS <<\_ACEOF
18157 #
18158 # CONFIG_COMMANDS section.
18159 #
18160 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18161 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18162 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18163 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18164 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18165 X"$ac_dest" : 'X\(//\)[^/]' \| \
18166 X"$ac_dest" : 'X\(//\)$' \| \
18167 X"$ac_dest" : 'X\(/\)' \| \
18168 . : '\(.\)' 2>/dev/null ||
18169 echo X"$ac_dest" |
18170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18172 /^X\(\/\/\)$/{ s//\1/; q; }
18173 /^X\(\/\).*/{ s//\1/; q; }
18174 s/.*/./; q'`
18175 { if $as_mkdir_p; then
18176 mkdir -p "$ac_dir"
18177 else
18178 as_dir="$ac_dir"
18179 as_dirs=
18180 while test ! -d "$as_dir"; do
18181 as_dirs="$as_dir $as_dirs"
18182 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18184 X"$as_dir" : 'X\(//\)[^/]' \| \
18185 X"$as_dir" : 'X\(//\)$' \| \
18186 X"$as_dir" : 'X\(/\)' \| \
18187 . : '\(.\)' 2>/dev/null ||
18188 echo X"$as_dir" |
18189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18191 /^X\(\/\/\)$/{ s//\1/; q; }
18192 /^X\(\/\).*/{ s//\1/; q; }
18193 s/.*/./; q'`
18194 done
18195 test ! -n "$as_dirs" || mkdir $as_dirs
18196 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18197 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18198 { (exit 1); exit 1; }; }; }
18200 ac_builddir=.
18202 if test "$ac_dir" != .; then
18203 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18204 # A "../" for each directory in $ac_dir_suffix.
18205 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18206 else
18207 ac_dir_suffix= ac_top_builddir=
18208 fi
18210 case $srcdir in
18211 .) # No --srcdir option. We are building in place.
18212 ac_srcdir=.
18213 if test -z "$ac_top_builddir"; then
18214 ac_top_srcdir=.
18215 else
18216 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18217 fi ;;
18218 [\\/]* | ?:[\\/]* ) # Absolute path.
18219 ac_srcdir=$srcdir$ac_dir_suffix;
18220 ac_top_srcdir=$srcdir ;;
18221 *) # Relative path.
18222 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18223 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18224 esac
18226 # Do not use `cd foo && pwd` to compute absolute paths, because
18227 # the directories may not exist.
18228 case `pwd` in
18229 .) ac_abs_builddir="$ac_dir";;
18230 *)
18231 case "$ac_dir" in
18232 .) ac_abs_builddir=`pwd`;;
18233 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18234 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18235 esac;;
18236 esac
18237 case $ac_abs_builddir in
18238 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18239 *)
18240 case ${ac_top_builddir}. in
18241 .) ac_abs_top_builddir=$ac_abs_builddir;;
18242 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18243 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18244 esac;;
18245 esac
18246 case $ac_abs_builddir in
18247 .) ac_abs_srcdir=$ac_srcdir;;
18248 *)
18249 case $ac_srcdir in
18250 .) ac_abs_srcdir=$ac_abs_builddir;;
18251 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18252 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18253 esac;;
18254 esac
18255 case $ac_abs_builddir in
18256 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18257 *)
18258 case $ac_top_srcdir in
18259 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18260 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18261 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18262 esac;;
18263 esac
18266 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18267 echo "$as_me: executing $ac_dest commands" >&6;}
18268 case $ac_dest in
18269 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18270 # Strip MF so we end up with the name of the file.
18271 mf=`echo "$mf" | sed -e 's/:.*$//'`
18272 # Check whether this is an Automake generated Makefile or not.
18273 # We used to match only the files named `Makefile.in', but
18274 # some people rename them; so instead we look at the file content.
18275 # Grep'ing the first line is not enough: some people post-process
18276 # each Makefile.in and add a new line on top of each file to say so.
18277 # So let's grep whole file.
18278 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18279 dirpart=`(dirname "$mf") 2>/dev/null ||
18280 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18281 X"$mf" : 'X\(//\)[^/]' \| \
18282 X"$mf" : 'X\(//\)$' \| \
18283 X"$mf" : 'X\(/\)' \| \
18284 . : '\(.\)' 2>/dev/null ||
18285 echo X"$mf" |
18286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18288 /^X\(\/\/\)$/{ s//\1/; q; }
18289 /^X\(\/\).*/{ s//\1/; q; }
18290 s/.*/./; q'`
18291 else
18292 continue
18293 fi
18294 # Extract the definition of DEPDIR, am__include, and am__quote
18295 # from the Makefile without running `make'.
18296 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18297 test -z "$DEPDIR" && continue
18298 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18299 test -z "am__include" && continue
18300 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18301 # When using ansi2knr, U may be empty or an underscore; expand it
18302 U=`sed -n 's/^U = //p' < "$mf"`
18303 # Find all dependency output files, they are included files with
18304 # $(DEPDIR) in their names. We invoke sed twice because it is the
18305 # simplest approach to changing $(DEPDIR) to its actual value in the
18306 # expansion.
18307 for file in `sed -n "
18308 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18309 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18310 # Make sure the directory exists.
18311 test -f "$dirpart/$file" && continue
18312 fdir=`(dirname "$file") 2>/dev/null ||
18313 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18314 X"$file" : 'X\(//\)[^/]' \| \
18315 X"$file" : 'X\(//\)$' \| \
18316 X"$file" : 'X\(/\)' \| \
18317 . : '\(.\)' 2>/dev/null ||
18318 echo X"$file" |
18319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18321 /^X\(\/\/\)$/{ s//\1/; q; }
18322 /^X\(\/\).*/{ s//\1/; q; }
18323 s/.*/./; q'`
18324 { if $as_mkdir_p; then
18325 mkdir -p $dirpart/$fdir
18326 else
18327 as_dir=$dirpart/$fdir
18328 as_dirs=
18329 while test ! -d "$as_dir"; do
18330 as_dirs="$as_dir $as_dirs"
18331 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18333 X"$as_dir" : 'X\(//\)[^/]' \| \
18334 X"$as_dir" : 'X\(//\)$' \| \
18335 X"$as_dir" : 'X\(/\)' \| \
18336 . : '\(.\)' 2>/dev/null ||
18337 echo X"$as_dir" |
18338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18340 /^X\(\/\/\)$/{ s//\1/; q; }
18341 /^X\(\/\).*/{ s//\1/; q; }
18342 s/.*/./; q'`
18343 done
18344 test ! -n "$as_dirs" || mkdir $as_dirs
18345 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18346 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18347 { (exit 1); exit 1; }; }; }
18349 # echo "creating $dirpart/$file"
18350 echo '# dummy' > "$dirpart/$file"
18351 done
18352 done
18353 ;;
18354 esac
18355 done
18356 _ACEOF
18358 cat >>$CONFIG_STATUS <<\_ACEOF
18360 { (exit 0); exit 0; }
18361 _ACEOF
18362 chmod +x $CONFIG_STATUS
18363 ac_clean_files=$ac_clean_files_save
18366 # configure is writing to config.log, and then calls config.status.
18367 # config.status does its own redirection, appending to config.log.
18368 # Unfortunately, on DOS this fails, as config.log is still kept open
18369 # by configure, so config.status won't be able to write to it; its
18370 # output is simply discarded. So we exec the FD to /dev/null,
18371 # effectively closing config.log, so it can be properly (re)opened and
18372 # appended to by config.status. When coming back to configure, we
18373 # need to make the FD available again.
18374 if test "$no_create" != yes; then
18375 ac_cs_success=:
18376 ac_config_status_args=
18377 test "$silent" = yes &&
18378 ac_config_status_args="$ac_config_status_args --quiet"
18379 exec 5>/dev/null
18380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18381 exec 5>>config.log
18382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18383 # would make configure fail if this is the last instruction.
18384 $ac_cs_success || { (exit 1); exit 1; }
18385 fi
18388 echo \
18389 "-----------------------------------------------------------
18391 Thank you for installing the Linux ${PACKAGE_NAME} package
18393 Installation directory prefix: '${prefix}'.
18394 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
18396 You have configured to build for the '${PLATFORM}' platform
18398 Your KERNEL installation directory is set to:
18399 '${KERNEL_INSTALL_DIR}'
18401 Your DRM installation directory is set to:
18402 '${DRM_PREFIX}'
18404 Your CMEM installation directory is set to:
18405 '${CMEM_INSTALL_DIR}'
18407 Now type 'make; sudo make install' to generate the program
18408 and install it to your system.
18410 ------------------------------------------------------------"