]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - configure
Added new TDA3xx platform.
[ipc/ipcdev.git] / configure
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
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='
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
404 # Initializations.
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 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 DRM_TRUE DRM_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_DRM_PREFIX_set=${DRM_PREFIX+set}
950 ac_env_DRM_PREFIX_value=$DRM_PREFIX
951 ac_cv_env_DRM_PREFIX_set=${DRM_PREFIX+set}
952 ac_cv_env_DRM_PREFIX_value=$DRM_PREFIX
955 # Report the --help message.
957 if test "$ac_init_help" = "long"; then
958   # Omit some internal or obsolete options to make the list less imposing.
959   # This message is too long to be a string in the A/UX 3.1 sh.
960   cat <<_ACEOF
961 \`configure' configures TI IPC 3.0.0 to adapt to many kinds of systems.
963 Usage: $0 [OPTION]... [VAR=VALUE]...
965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
966 VAR=VALUE.  See below for descriptions of some of the useful variables.
968 Defaults for the options are specified in brackets.
970 Configuration:
971   -h, --help              display this help and exit
972       --help=short        display options specific to this package
973       --help=recursive    display the short help of all the included packages
974   -V, --version           display version information and exit
975   -q, --quiet, --silent   do not print \`checking...' messages
976       --cache-file=FILE   cache test results in FILE [disabled]
977   -C, --config-cache      alias for \`--cache-file=config.cache'
978   -n, --no-create         do not create output files
979       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
981 _ACEOF
983   cat <<_ACEOF
984 Installation directories:
985   --prefix=PREFIX         install architecture-independent files in PREFIX
986                           [$ac_default_prefix]
987   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
988                           [PREFIX]
990 By default, \`make install' will install all the files in
991 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
992 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
993 for instance \`--prefix=\$HOME'.
995 For better control, use the options below.
997 Fine tuning of the installation directories:
998   --bindir=DIR           user executables [EPREFIX/bin]
999   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1000   --libexecdir=DIR       program executables [EPREFIX/libexec]
1001   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1002   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1003   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1004   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1005   --libdir=DIR           object code libraries [EPREFIX/lib]
1006   --includedir=DIR       C header files [PREFIX/include]
1007   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1008   --infodir=DIR          info documentation [PREFIX/info]
1009   --mandir=DIR           man documentation [PREFIX/man]
1010 _ACEOF
1012   cat <<\_ACEOF
1014 Program names:
1015   --program-prefix=PREFIX            prepend PREFIX to installed program names
1016   --program-suffix=SUFFIX            append SUFFIX to installed program names
1017   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1019 System types:
1020   --build=BUILD     configure for building on BUILD [guessed]
1021   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1022 _ACEOF
1023 fi
1025 if test -n "$ac_init_help"; then
1026   case $ac_init_help in
1027      short | recursive ) echo "Configuration of TI IPC 3.0.0:";;
1028    esac
1029   cat <<\_ACEOF
1031 Optional Features:
1032   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1033   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1034   --enable-maintainer-mode  enable make rules and dependencies not useful
1035                           (and sometimes confusing) to the casual installer
1036   --enable-shared[=PKGS]
1037                           build shared libraries [default=yes]
1038   --enable-static[=PKGS]
1039                           build static libraries [default=yes]
1040   --enable-fast-install[=PKGS]
1041                           optimize for fast installation [default=yes]
1042   --disable-dependency-tracking  speeds up one-time build
1043   --enable-dependency-tracking   do not reject slow dependency extractors
1044   --disable-libtool-lock  avoid locking (might break parallel builds)
1046 Optional Packages:
1047   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1048   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1049   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1050   --with-pic              try to use only PIC/non-PIC objects [default=use
1051                           both]
1052   --with-tags[=TAGS]
1053                           include additional configurations [automatic]
1055 Some influential environment variables:
1056   CC          C compiler command
1057   CFLAGS      C compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CPP         C preprocessor
1063   CXX         C++ compiler command
1064   CXXFLAGS    C++ compiler flags
1065   CXXCPP      C++ preprocessor
1066   PLATFORM    Platform to build. Options are: 'OMAPL138' 'OMAP54XX' '66AK2E'
1067               'TCI6630' 'TCI6636' 'TCI6638' and 'DRA7XX'. If not defined all
1068               platforms will be built.
1069   CMEM_INSTALL_DIR
1070               Installation path directory to the CMEM libraries
1071   KERNEL_INSTALL_DIR
1072               Installation path to the Linux kernel.
1073   DRM_PREFIX  Installation location to the DRM library.
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1078 _ACEOF
1079 fi
1081 if test "$ac_init_help" = "recursive"; then
1082   # If there are subdirs, report their specific --help.
1083   ac_popdir=`pwd`
1084   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085     test -d $ac_dir || continue
1086     ac_builddir=.
1088 if test "$ac_dir" != .; then
1089   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090   # A "../" for each directory in $ac_dir_suffix.
1091   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 else
1093   ac_dir_suffix= ac_top_builddir=
1094 fi
1096 case $srcdir in
1097   .)  # No --srcdir option.  We are building in place.
1098     ac_srcdir=.
1099     if test -z "$ac_top_builddir"; then
1100        ac_top_srcdir=.
1101     else
1102        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103     fi ;;
1104   [\\/]* | ?:[\\/]* )  # Absolute path.
1105     ac_srcdir=$srcdir$ac_dir_suffix;
1106     ac_top_srcdir=$srcdir ;;
1107   *) # Relative path.
1108     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 esac
1112 # Do not use `cd foo && pwd` to compute absolute paths, because
1113 # the directories may not exist.
1114 case `pwd` in
1115 .) ac_abs_builddir="$ac_dir";;
1116 *)
1117   case "$ac_dir" in
1118   .) ac_abs_builddir=`pwd`;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121   esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *)
1126   case ${ac_top_builddir}. in
1127   .) ac_abs_top_builddir=$ac_abs_builddir;;
1128   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130   esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1134 *)
1135   case $ac_srcdir in
1136   .) ac_abs_srcdir=$ac_abs_builddir;;
1137   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139   esac;;
1140 esac
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *)
1144   case $ac_top_srcdir in
1145   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148   esac;;
1149 esac
1151     cd $ac_dir
1152     # Check for guested configure; otherwise get Cygnus style configure.
1153     if test -f $ac_srcdir/configure.gnu; then
1154       echo
1155       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1156     elif test -f $ac_srcdir/configure; then
1157       echo
1158       $SHELL $ac_srcdir/configure  --help=recursive
1159     elif test -f $ac_srcdir/configure.ac ||
1160            test -f $ac_srcdir/configure.in; then
1161       echo
1162       $ac_configure --help
1163     else
1164       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165     fi
1166     cd $ac_popdir
1167   done
1168 fi
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1172   cat <<\_ACEOF
1173 TI IPC configure 3.0.0
1174 generated by GNU Autoconf 2.59
1176 Copyright (C) 2003 Free Software Foundation, Inc.
1177 This configure script is free software; the Free Software Foundation
1178 gives unlimited permission to copy, distribute and modify it.
1179 _ACEOF
1180   exit 0
1181 fi
1182 exec 5>config.log
1183 cat >&5 <<_ACEOF
1184 This file contains any messages produced by compilers while
1185 running configure, to aid debugging if configure makes a mistake.
1187 It was created by TI IPC $as_me 3.0.0, which was
1188 generated by GNU Autoconf 2.59.  Invocation command line was
1190   $ $0 $@
1192 _ACEOF
1194 cat <<_ASUNAME
1195 ## --------- ##
1196 ## Platform. ##
1197 ## --------- ##
1199 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1208 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1209 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1210 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1212 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1213 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1214 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1216 _ASUNAME
1218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219 for as_dir in $PATH
1220 do
1221   IFS=$as_save_IFS
1222   test -z "$as_dir" && as_dir=.
1223   echo "PATH: $as_dir"
1224 done
1226 } >&5
1228 cat >&5 <<_ACEOF
1231 ## ----------- ##
1232 ## Core tests. ##
1233 ## ----------- ##
1235 _ACEOF
1238 # Keep a trace of the command line.
1239 # Strip out --no-create and --no-recursion so they do not pile up.
1240 # Strip out --silent because we don't want to record it for future runs.
1241 # Also quote any args containing shell meta-characters.
1242 # Make two passes to allow for proper duplicate-argument suppression.
1243 ac_configure_args=
1244 ac_configure_args0=
1245 ac_configure_args1=
1246 ac_sep=
1247 ac_must_keep_next=false
1248 for ac_pass in 1 2
1249 do
1250   for ac_arg
1251   do
1252     case $ac_arg in
1253     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255     | -silent | --silent | --silen | --sile | --sil)
1256       continue ;;
1257     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259     esac
1260     case $ac_pass in
1261     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262     2)
1263       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264       if test $ac_must_keep_next = true; then
1265         ac_must_keep_next=false # Got value, back to normal.
1266       else
1267         case $ac_arg in
1268           *=* | --config-cache | -C | -disable-* | --disable-* \
1269           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271           | -with-* | --with-* | -without-* | --without-* | --x)
1272             case "$ac_configure_args0 " in
1273               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274             esac
1275             ;;
1276           -* ) ac_must_keep_next=true ;;
1277         esac
1278       fi
1279       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280       # Get rid of the leading space.
1281       ac_sep=" "
1282       ;;
1283     esac
1284   done
1285 done
1286 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289 # When interrupted or exit'd, cleanup temporary files, and complete
1290 # config.log.  We remove comments because anyway the quotes in there
1291 # would cause problems or look ugly.
1292 # WARNING: Be sure not to use single quotes in there, as some shells,
1293 # such as our DU 5.0 friend, will then `close' the trap.
1294 trap 'exit_status=$?
1295   # Save into config.log some information that might help in debugging.
1296   {
1297     echo
1299     cat <<\_ASBOX
1300 ## ---------------- ##
1301 ## Cache variables. ##
1302 ## ---------------- ##
1303 _ASBOX
1304     echo
1305     # The following way of writing the cache mishandles newlines in values,
1307   (set) 2>&1 |
1308     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309     *ac_space=\ *)
1310       sed -n \
1311         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1313       ;;
1314     *)
1315       sed -n \
1316         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317       ;;
1318     esac;
1320     echo
1322     cat <<\_ASBOX
1323 ## ----------------- ##
1324 ## Output variables. ##
1325 ## ----------------- ##
1326 _ASBOX
1327     echo
1328     for ac_var in $ac_subst_vars
1329     do
1330       eval ac_val=$`echo $ac_var`
1331       echo "$ac_var='"'"'$ac_val'"'"'"
1332     done | sort
1333     echo
1335     if test -n "$ac_subst_files"; then
1336       cat <<\_ASBOX
1337 ## ------------- ##
1338 ## Output files. ##
1339 ## ------------- ##
1340 _ASBOX
1341       echo
1342       for ac_var in $ac_subst_files
1343       do
1344         eval ac_val=$`echo $ac_var`
1345         echo "$ac_var='"'"'$ac_val'"'"'"
1346       done | sort
1347       echo
1348     fi
1350     if test -s confdefs.h; then
1351       cat <<\_ASBOX
1352 ## ----------- ##
1353 ## confdefs.h. ##
1354 ## ----------- ##
1355 _ASBOX
1356       echo
1357       sed "/^$/d" confdefs.h | sort
1358       echo
1359     fi
1360     test "$ac_signal" != 0 &&
1361       echo "$as_me: caught signal $ac_signal"
1362     echo "$as_me: exit $exit_status"
1363   } >&5
1364   rm -f core *.core &&
1365   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366     exit $exit_status
1367      ' 0
1368 for ac_signal in 1 2 13 15; do
1369   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370 done
1371 ac_signal=0
1373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1374 rm -rf conftest* confdefs.h
1375 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376 echo >confdefs.h
1378 # Predefined preprocessor variables.
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_NAME "$PACKAGE_NAME"
1382 _ACEOF
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387 _ACEOF
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1392 _ACEOF
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_STRING "$PACKAGE_STRING"
1397 _ACEOF
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402 _ACEOF
1405 # Let the site file select an alternate cache file if it wants to.
1406 # Prefer explicitly selected file to automatically selected ones.
1407 if test -z "$CONFIG_SITE"; then
1408   if test "x$prefix" != xNONE; then
1409     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410   else
1411     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412   fi
1413 fi
1414 for ac_site_file in $CONFIG_SITE; do
1415   if test -r "$ac_site_file"; then
1416     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417 echo "$as_me: loading site script $ac_site_file" >&6;}
1418     sed 's/^/| /' "$ac_site_file" >&5
1419     . "$ac_site_file"
1420   fi
1421 done
1423 if test -r "$cache_file"; then
1424   # Some versions of bash will fail to source /dev/null (special
1425   # files actually), so we avoid doing that.
1426   if test -f "$cache_file"; then
1427     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428 echo "$as_me: loading cache $cache_file" >&6;}
1429     case $cache_file in
1430       [\\/]* | ?:[\\/]* ) . $cache_file;;
1431       *)                      . ./$cache_file;;
1432     esac
1433   fi
1434 else
1435   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436 echo "$as_me: creating cache $cache_file" >&6;}
1437   >$cache_file
1438 fi
1440 # Check that the precious variables saved in the cache have kept the same
1441 # value.
1442 ac_cache_corrupted=false
1443 for ac_var in `(set) 2>&1 |
1444                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1445   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446   eval ac_new_set=\$ac_env_${ac_var}_set
1447   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448   eval ac_new_val="\$ac_env_${ac_var}_value"
1449   case $ac_old_set,$ac_new_set in
1450     set,)
1451       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453       ac_cache_corrupted=: ;;
1454     ,set)
1455       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457       ac_cache_corrupted=: ;;
1458     ,);;
1459     *)
1460       if test "x$ac_old_val" != "x$ac_new_val"; then
1461         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1462 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1463         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1464 echo "$as_me:   former value:  $ac_old_val" >&2;}
1465         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1466 echo "$as_me:   current value: $ac_new_val" >&2;}
1467         ac_cache_corrupted=:
1468       fi;;
1469   esac
1470   # Pass precious variables to config.status.
1471   if test "$ac_new_set" = set; then
1472     case $ac_new_val in
1473     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475     *) ac_arg=$ac_var=$ac_new_val ;;
1476     esac
1477     case " $ac_configure_args " in
1478       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1479       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480     esac
1481   fi
1482 done
1483 if $ac_cache_corrupted; then
1484   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488    { (exit 1); exit 1; }; }
1489 fi
1491 ac_ext=c
1492 ac_cpp='$CPP $CPPFLAGS'
1493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 # Check common src files to ensure integrity of the package
1527 # Set auxiliary build tools directory
1528 ac_aux_dir=
1529 for ac_dir in linux/build-aux $srcdir/linux/build-aux; do
1530   if test -f $ac_dir/install-sh; then
1531     ac_aux_dir=$ac_dir
1532     ac_install_sh="$ac_aux_dir/install-sh -c"
1533     break
1534   elif test -f $ac_dir/install.sh; then
1535     ac_aux_dir=$ac_dir
1536     ac_install_sh="$ac_aux_dir/install.sh -c"
1537     break
1538   elif test -f $ac_dir/shtool; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/shtool install -c"
1541     break
1542   fi
1543 done
1544 if test -z "$ac_aux_dir"; then
1545   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&5
1546 echo "$as_me: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&2;}
1547    { (exit 1); exit 1; }; }
1548 fi
1549 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554 # Initilize automake
1555 am__api_version="1.9"
1556 # Find a good install program.  We prefer a C program (faster),
1557 # so one script is as good as another.  But avoid the broken or
1558 # incompatible versions:
1559 # SysV /etc/install, /usr/sbin/install
1560 # SunOS /usr/etc/install
1561 # IRIX /sbin/install
1562 # AIX /bin/install
1563 # AmigaOS /C/install, which installs bootblocks on floppy discs
1564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1567 # OS/2's system install, which has a completely different semantic
1568 # ./install, which can be erroneously created by make from ./install.sh.
1569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1571 if test -z "$INSTALL"; then
1572 if test "${ac_cv_path_install+set}" = set; then
1573   echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   # Account for people who put trailing slashes in PATH elements.
1581 case $as_dir/ in
1582   ./ | .// | /cC/* | \
1583   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1584   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1585   /usr/ucb/* ) ;;
1586   *)
1587     # OSF1 and SCO ODT 3.0 have their own names for install.
1588     # Don't use installbsd from OSF since it installs stuff as root
1589     # by default.
1590     for ac_prog in ginstall scoinst install; do
1591       for ac_exec_ext in '' $ac_executable_extensions; do
1592         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1593           if test $ac_prog = install &&
1594             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1595             # AIX install.  It has an incompatible calling convention.
1596             :
1597           elif test $ac_prog = install &&
1598             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599             # program-specific install script used by HP pwplus--don't use.
1600             :
1601           else
1602             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1603             break 3
1604           fi
1605         fi
1606       done
1607     done
1608     ;;
1609 esac
1610 done
1613 fi
1614   if test "${ac_cv_path_install+set}" = set; then
1615     INSTALL=$ac_cv_path_install
1616   else
1617     # As a last resort, use the slow shell script.  We don't cache a
1618     # path for INSTALL within a source directory, because that will
1619     # break other packages using the cache if that directory is
1620     # removed, or if the path is relative.
1621     INSTALL=$ac_install_sh
1622   fi
1623 fi
1624 echo "$as_me:$LINENO: result: $INSTALL" >&5
1625 echo "${ECHO_T}$INSTALL" >&6
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1628 # It thinks the first close brace ends the variable substitution.
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1637 # Just in case
1638 sleep 1
1639 echo timestamp > conftest.file
1640 # Do `set' in a subshell so we don't clobber the current shell's
1641 # arguments.  Must try -L first in case configure is actually a
1642 # symlink; some systems play weird games with the mod time of symlinks
1643 # (eg FreeBSD returns the mod time of the symlink's containing
1644 # directory).
1645 if (
1646    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1647    if test "$*" = "X"; then
1648       # -L didn't work.
1649       set X `ls -t $srcdir/configure conftest.file`
1650    fi
1651    rm -f conftest.file
1652    if test "$*" != "X $srcdir/configure conftest.file" \
1653       && test "$*" != "X conftest.file $srcdir/configure"; then
1655       # If neither matched, then we have a broken ls.  This can happen
1656       # if, for instance, CONFIG_SHELL is bash and it inherits a
1657       # broken ls alias from the environment.  This has actually
1658       # happened.  Such a system could not be considered "sane".
1659       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1660 alias in your environment" >&5
1661 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1662 alias in your environment" >&2;}
1663    { (exit 1); exit 1; }; }
1664    fi
1666    test "$2" = conftest.file
1667    )
1668 then
1669    # Ok.
1670    :
1671 else
1672    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1673 Check your system clock" >&5
1674 echo "$as_me: error: newly created file is older than distributed files!
1675 Check your system clock" >&2;}
1676    { (exit 1); exit 1; }; }
1677 fi
1678 echo "$as_me:$LINENO: result: yes" >&5
1679 echo "${ECHO_T}yes" >&6
1680 test "$program_prefix" != NONE &&
1681   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1682 # Use a double $ so make ignores it.
1683 test "$program_suffix" != NONE &&
1684   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1685 # Double any \ or $.  echo might interpret backslashes.
1686 # By default was `s,x,x', remove it if useless.
1687 cat <<\_ACEOF >conftest.sed
1688 s/[\\$]/&&/g;s/;s,x,x,$//
1689 _ACEOF
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1691 rm conftest.sed
1693 # expand $ac_aux_dir to an absolute path
1694 am_aux_dir=`cd $ac_aux_dir && pwd`
1696 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1697 # Use eval to expand $SHELL
1698 if eval "$MISSING --run true"; then
1699   am_missing_run="$MISSING --run "
1700 else
1701   am_missing_run=
1702   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1703 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1704 fi
1706 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1707   # We used to keeping the `.' as first argument, in order to
1708   # allow $(mkdir_p) to be used without argument.  As in
1709   #   $(mkdir_p) $(somedir)
1710   # where $(somedir) is conditionally defined.  However this is wrong
1711   # for two reasons:
1712   #  1. if the package is installed by a user who cannot write `.'
1713   #     make install will fail,
1714   #  2. the above comment should most certainly read
1715   #     $(mkdir_p) $(DESTDIR)$(somedir)
1716   #     so it does not work when $(somedir) is undefined and
1717   #     $(DESTDIR) is not.
1718   #  To support the latter case, we have to write
1719   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1720   #  so the `.' trick is pointless.
1721   mkdir_p='mkdir -p --'
1722 else
1723   # On NextStep and OpenStep, the `mkdir' command does not
1724   # recognize any option.  It will interpret all options as
1725   # directories to create, and then abort because `.' already
1726   # exists.
1727   for d in ./-p ./--version;
1728   do
1729     test -d $d && rmdir $d
1730   done
1731   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1732   if test -f "$ac_aux_dir/mkinstalldirs"; then
1733     mkdir_p='$(mkinstalldirs)'
1734   else
1735     mkdir_p='$(install_sh) -d'
1736   fi
1737 fi
1739 for ac_prog in gawk mawk nawk awk
1740 do
1741   # Extract the first word of "$ac_prog", so it can be a program name with args.
1742 set dummy $ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_AWK+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$AWK"; then
1749   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_AWK="$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1765 fi
1766 fi
1767 AWK=$ac_cv_prog_AWK
1768 if test -n "$AWK"; then
1769   echo "$as_me:$LINENO: result: $AWK" >&5
1770 echo "${ECHO_T}$AWK" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1776   test -n "$AWK" && break
1777 done
1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1783   echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785   cat >conftest.make <<\_ACEOF
1786 all:
1787         @echo 'ac_maketemp="$(MAKE)"'
1788 _ACEOF
1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1791 if test -n "$ac_maketemp"; then
1792   eval ac_cv_prog_make_${ac_make}_set=yes
1793 else
1794   eval ac_cv_prog_make_${ac_make}_set=no
1795 fi
1796 rm -f conftest.make
1797 fi
1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1799   echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801   SET_MAKE=
1802 else
1803   echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805   SET_MAKE="MAKE=${MAKE-make}"
1806 fi
1808 rm -rf .tst 2>/dev/null
1809 mkdir .tst 2>/dev/null
1810 if test -d .tst; then
1811   am__leading_dot=.
1812 else
1813   am__leading_dot=_
1814 fi
1815 rmdir .tst 2>/dev/null
1817 # test to see if srcdir already configured
1818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1819    test -f $srcdir/config.status; then
1820   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1822    { (exit 1); exit 1; }; }
1823 fi
1825 # test whether we have cygpath
1826 if test -z "$CYGPATH_W"; then
1827   if (cygpath --version) >/dev/null 2>/dev/null; then
1828     CYGPATH_W='cygpath -w'
1829   else
1830     CYGPATH_W=echo
1831   fi
1832 fi
1835 # Define the identity of the package.
1836  PACKAGE='ti-ipc'
1837  VERSION='3.0.0'
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE "$PACKAGE"
1842 _ACEOF
1845 cat >>confdefs.h <<_ACEOF
1846 #define VERSION "$VERSION"
1847 _ACEOF
1849 # Some tools Automake needs.
1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1865 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1867 # Installed binaries are usually stripped using `strip' when the user
1868 # run `make install-strip'.  However `strip' might not be the right
1869 # tool to use in cross-compilation environments, therefore Automake
1870 # will honor the `STRIP' environment variable to overrule this program.
1871 if test "$cross_compiling" != no; then
1872   if test -n "$ac_tool_prefix"; then
1873   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}strip; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_STRIP+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   if test -n "$STRIP"; then
1881   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886   IFS=$as_save_IFS
1887   test -z "$as_dir" && as_dir=.
1888   for ac_exec_ext in '' $ac_executable_extensions; do
1889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1897 fi
1898 fi
1899 STRIP=$ac_cv_prog_STRIP
1900 if test -n "$STRIP"; then
1901   echo "$as_me:$LINENO: result: $STRIP" >&5
1902 echo "${ECHO_T}$STRIP" >&6
1903 else
1904   echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1908 fi
1909 if test -z "$ac_cv_prog_STRIP"; then
1910   ac_ct_STRIP=$STRIP
1911   # Extract the first word of "strip", so it can be a program name with args.
1912 set dummy strip; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   if test -n "$ac_ct_STRIP"; then
1919   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924   IFS=$as_save_IFS
1925   test -z "$as_dir" && as_dir=.
1926   for ac_exec_ext in '' $ac_executable_extensions; do
1927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928     ac_cv_prog_ac_ct_STRIP="strip"
1929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930     break 2
1931   fi
1932 done
1933 done
1935   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1936 fi
1937 fi
1938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1939 if test -n "$ac_ct_STRIP"; then
1940   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1941 echo "${ECHO_T}$ac_ct_STRIP" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1947   STRIP=$ac_ct_STRIP
1948 else
1949   STRIP="$ac_cv_prog_STRIP"
1950 fi
1952 fi
1953 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1955 # We need awk for the "check" target.  The system "awk" is bad on
1956 # some platforms.
1957 # Always define AMTAR for backward compatibility.
1959 AMTAR=${AMTAR-"${am_missing_run}tar"}
1961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1968 # Disabling maintainer mode to prevent rebuild of configure script
1969 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1970 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1971     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1972 if test "${enable_maintainer_mode+set}" = set; then
1973   enableval="$enable_maintainer_mode"
1974   USE_MAINTAINER_MODE=$enableval
1975 else
1976   USE_MAINTAINER_MODE=no
1977 fi;
1978   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1979 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1982 if test $USE_MAINTAINER_MODE = yes; then
1983   MAINTAINER_MODE_TRUE=
1984   MAINTAINER_MODE_FALSE='#'
1985 else
1986   MAINTAINER_MODE_TRUE='#'
1987   MAINTAINER_MODE_FALSE=
1988 fi
1990   MAINT=$MAINTAINER_MODE_TRUE
1994 # Initalize libtool but disable fortran check
1995 # Check whether --enable-shared or --disable-shared was given.
1996 if test "${enable_shared+set}" = set; then
1997   enableval="$enable_shared"
1998   p=${PACKAGE-default}
1999     case $enableval in
2000     yes) enable_shared=yes ;;
2001     no) enable_shared=no ;;
2002     *)
2003       enable_shared=no
2004       # Look at the argument we got.  We use all the common list separators.
2005       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2006       for pkg in $enableval; do
2007         IFS="$lt_save_ifs"
2008         if test "X$pkg" = "X$p"; then
2009           enable_shared=yes
2010         fi
2011       done
2012       IFS="$lt_save_ifs"
2013       ;;
2014     esac
2015 else
2016   enable_shared=yes
2017 fi;
2019 # Check whether --enable-static or --disable-static was given.
2020 if test "${enable_static+set}" = set; then
2021   enableval="$enable_static"
2022   p=${PACKAGE-default}
2023     case $enableval in
2024     yes) enable_static=yes ;;
2025     no) enable_static=no ;;
2026     *)
2027      enable_static=no
2028       # Look at the argument we got.  We use all the common list separators.
2029       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2030       for pkg in $enableval; do
2031         IFS="$lt_save_ifs"
2032         if test "X$pkg" = "X$p"; then
2033           enable_static=yes
2034         fi
2035       done
2036       IFS="$lt_save_ifs"
2037       ;;
2038     esac
2039 else
2040   enable_static=yes
2041 fi;
2043 # Check whether --enable-fast-install or --disable-fast-install was given.
2044 if test "${enable_fast_install+set}" = set; then
2045   enableval="$enable_fast_install"
2046   p=${PACKAGE-default}
2047     case $enableval in
2048     yes) enable_fast_install=yes ;;
2049     no) enable_fast_install=no ;;
2050     *)
2051       enable_fast_install=no
2052       # Look at the argument we got.  We use all the common list separators.
2053       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2054       for pkg in $enableval; do
2055         IFS="$lt_save_ifs"
2056         if test "X$pkg" = "X$p"; then
2057           enable_fast_install=yes
2058         fi
2059       done
2060       IFS="$lt_save_ifs"
2061       ;;
2062     esac
2063 else
2064   enable_fast_install=yes
2065 fi;
2067 # Make sure we can run config.sub.
2068 $ac_config_sub sun4 >/dev/null 2>&1 ||
2069   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2070 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2071    { (exit 1); exit 1; }; }
2073 echo "$as_me:$LINENO: checking build system type" >&5
2074 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2075 if test "${ac_cv_build+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   ac_cv_build_alias=$build_alias
2079 test -z "$ac_cv_build_alias" &&
2080   ac_cv_build_alias=`$ac_config_guess`
2081 test -z "$ac_cv_build_alias" &&
2082   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2083 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2084    { (exit 1); exit 1; }; }
2085 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2086   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2087 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2088    { (exit 1); exit 1; }; }
2090 fi
2091 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2092 echo "${ECHO_T}$ac_cv_build" >&6
2093 build=$ac_cv_build
2094 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2095 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2096 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2099 echo "$as_me:$LINENO: checking host system type" >&5
2100 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2101 if test "${ac_cv_host+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   ac_cv_host_alias=$host_alias
2105 test -z "$ac_cv_host_alias" &&
2106   ac_cv_host_alias=$ac_cv_build_alias
2107 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2108   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2109 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2110    { (exit 1); exit 1; }; }
2112 fi
2113 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2114 echo "${ECHO_T}$ac_cv_host" >&6
2115 host=$ac_cv_host
2116 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2117 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2118 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2121 DEPDIR="${am__leading_dot}deps"
2123           ac_config_commands="$ac_config_commands depfiles"
2126 am_make=${MAKE-make}
2127 cat > confinc << 'END'
2128 am__doit:
2129         @echo done
2130 .PHONY: am__doit
2131 END
2132 # If we don't find an include directive, just comment out the code.
2133 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2134 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2135 am__include="#"
2136 am__quote=
2137 _am_result=none
2138 # First try GNU make style include.
2139 echo "include confinc" > confmf
2140 # We grep out `Entering directory' and `Leaving directory'
2141 # messages which can occur if `w' ends up in MAKEFLAGS.
2142 # In particular we don't look at `^make:' because GNU make might
2143 # be invoked under some other name (usually "gmake"), in which
2144 # case it prints its new name instead of `make'.
2145 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2146    am__include=include
2147    am__quote=
2148    _am_result=GNU
2149 fi
2150 # Now try BSD make style include.
2151 if test "$am__include" = "#"; then
2152    echo '.include "confinc"' > confmf
2153    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2154       am__include=.include
2155       am__quote="\""
2156       _am_result=BSD
2157    fi
2158 fi
2161 echo "$as_me:$LINENO: result: $_am_result" >&5
2162 echo "${ECHO_T}$_am_result" >&6
2163 rm -f confinc confmf
2165 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2166 if test "${enable_dependency_tracking+set}" = set; then
2167   enableval="$enable_dependency_tracking"
2169 fi;
2170 if test "x$enable_dependency_tracking" != xno; then
2171   am_depcomp="$ac_aux_dir/depcomp"
2172   AMDEPBACKSLASH='\'
2173 fi
2176 if test "x$enable_dependency_tracking" != xno; then
2177   AMDEP_TRUE=
2178   AMDEP_FALSE='#'
2179 else
2180   AMDEP_TRUE='#'
2181   AMDEP_FALSE=
2182 fi
2186 ac_ext=c
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 if test -n "$ac_tool_prefix"; then
2192   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test -n "$CC"; then
2200   ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
2206   test -z "$as_dir" && as_dir=.
2207   for ac_exec_ext in '' $ac_executable_extensions; do
2208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211     break 2
2212   fi
2213 done
2214 done
2216 fi
2217 fi
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220   echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2222 else
2223   echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2227 fi
2228 if test -z "$ac_cv_prog_CC"; then
2229   ac_ct_CC=$CC
2230   # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$ac_ct_CC"; then
2238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247     ac_cv_prog_ac_ct_CC="gcc"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2254 fi
2255 fi
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2260 else
2261   echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2263 fi
2265   CC=$ac_ct_CC
2266 else
2267   CC="$ac_cv_prog_CC"
2268 fi
2270 if test -z "$CC"; then
2271   if test -n "$ac_tool_prefix"; then
2272   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$CC"; then
2280   ac_cv_prog_CC="$CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285   IFS=$as_save_IFS
2286   test -z "$as_dir" && as_dir=.
2287   for ac_exec_ext in '' $ac_executable_extensions; do
2288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289     ac_cv_prog_CC="${ac_tool_prefix}cc"
2290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291     break 2
2292   fi
2293 done
2294 done
2296 fi
2297 fi
2298 CC=$ac_cv_prog_CC
2299 if test -n "$CC"; then
2300   echo "$as_me:$LINENO: result: $CC" >&5
2301 echo "${ECHO_T}$CC" >&6
2302 else
2303   echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2305 fi
2307 fi
2308 if test -z "$ac_cv_prog_CC"; then
2309   ac_ct_CC=$CC
2310   # Extract the first word of "cc", so it can be a program name with args.
2311 set dummy cc; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   if test -n "$ac_ct_CC"; then
2318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327     ac_cv_prog_ac_ct_CC="cc"
2328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332 done
2334 fi
2335 fi
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2340 else
2341   echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2343 fi
2345   CC=$ac_ct_CC
2346 else
2347   CC="$ac_cv_prog_CC"
2348 fi
2350 fi
2351 if test -z "$CC"; then
2352   # Extract the first word of "cc", so it can be a program name with args.
2353 set dummy cc; ac_word=$2
2354 echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   if test -n "$CC"; then
2360   ac_cv_prog_CC="$CC" # Let the user override the test.
2361 else
2362   ac_prog_rejected=no
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2371        ac_prog_rejected=yes
2372        continue
2373      fi
2374     ac_cv_prog_CC="cc"
2375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376     break 2
2377   fi
2378 done
2379 done
2381 if test $ac_prog_rejected = yes; then
2382   # We found a bogon in the path, so make sure we never use it.
2383   set dummy $ac_cv_prog_CC
2384   shift
2385   if test $# != 0; then
2386     # We chose a different compiler from the bogus one.
2387     # However, it has the same basename, so the bogon will be chosen
2388     # first if we set CC to just the basename; use the full file name.
2389     shift
2390     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2391   fi
2392 fi
2393 fi
2394 fi
2395 CC=$ac_cv_prog_CC
2396 if test -n "$CC"; then
2397   echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2399 else
2400   echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2402 fi
2404 fi
2405 if test -z "$CC"; then
2406   if test -n "$ac_tool_prefix"; then
2407   for ac_prog in cl
2408   do
2409     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411 echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   if test -n "$CC"; then
2417   ac_cv_prog_CC="$CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424   for ac_exec_ext in '' $ac_executable_extensions; do
2425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431 done
2433 fi
2434 fi
2435 CC=$ac_cv_prog_CC
2436 if test -n "$CC"; then
2437   echo "$as_me:$LINENO: result: $CC" >&5
2438 echo "${ECHO_T}$CC" >&6
2439 else
2440   echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6
2442 fi
2444     test -n "$CC" && break
2445   done
2446 fi
2447 if test -z "$CC"; then
2448   ac_ct_CC=$CC
2449   for ac_prog in cl
2450 do
2451   # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   if test -n "$ac_ct_CC"; then
2459   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_exec_ext in '' $ac_executable_extensions; do
2467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468     ac_cv_prog_ac_ct_CC="$ac_prog"
2469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473 done
2475 fi
2476 fi
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480 echo "${ECHO_T}$ac_ct_CC" >&6
2481 else
2482   echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6
2484 fi
2486   test -n "$ac_ct_CC" && break
2487 done
2489   CC=$ac_ct_CC
2490 fi
2492 fi
2495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: no acceptable C compiler found in \$PATH
2498 See \`config.log' for more details." >&2;}
2499    { (exit 1); exit 1; }; }
2501 # Provide some information about the compiler.
2502 echo "$as_me:$LINENO:" \
2503      "checking for C compiler version" >&5
2504 ac_compiler=`set X $ac_compile; echo $2`
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2506   (eval $ac_compiler --version </dev/null >&5) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2511   (eval $ac_compiler -v </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); }
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2528 int
2529 main ()
2532   ;
2533   return 0;
2535 _ACEOF
2536 ac_clean_files_save=$ac_clean_files
2537 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2538 # Try to create an executable without -o first, disregard a.out.
2539 # It will help us diagnose broken compilers, and finding out an intuition
2540 # of exeext.
2541 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2542 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2543 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2545   (eval $ac_link_default) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; then
2549   # Find the output, starting from the most likely.  This scheme is
2550 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2551 # resort.
2553 # Be careful to initialize this variable, since it used to be cached.
2554 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2555 ac_cv_exeext=
2556 # b.out is created by i960 compilers.
2557 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2558 do
2559   test -f "$ac_file" || continue
2560   case $ac_file in
2561     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2562         ;;
2563     conftest.$ac_ext )
2564         # This is the source file.
2565         ;;
2566     [ab].out )
2567         # We found the default executable, but exeext='' is most
2568         # certainly right.
2569         break;;
2570     *.* )
2571         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572         # FIXME: I believe we export ac_cv_exeext for Libtool,
2573         # but it would be cool to find out if it's true.  Does anybody
2574         # maintain Libtool? --akim.
2575         export ac_cv_exeext
2576         break;;
2577     * )
2578         break;;
2579   esac
2580 done
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: C compiler cannot create executables
2588 See \`config.log' for more details." >&2;}
2589    { (exit 77); exit 77; }; }
2590 fi
2592 ac_exeext=$ac_cv_exeext
2593 echo "$as_me:$LINENO: result: $ac_file" >&5
2594 echo "${ECHO_T}$ac_file" >&6
2596 # Check the compiler produces executables we can run.  If not, either
2597 # the compiler is broken, or we cross compile.
2598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601 # If not cross compiling, check that we can run a simple program.
2602 if test "$cross_compiling" != yes; then
2603   if { ac_try='./$ac_file'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609     cross_compiling=no
2610   else
2611     if test "$cross_compiling" = maybe; then
2612         cross_compiling=yes
2613     else
2614         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot run C compiled programs.
2618 If you meant to cross compile, use \`--host'.
2619 See \`config.log' for more details." >&2;}
2620    { (exit 1); exit 1; }; }
2621     fi
2622   fi
2623 fi
2624 echo "$as_me:$LINENO: result: yes" >&5
2625 echo "${ECHO_T}yes" >&6
2627 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2628 ac_clean_files=$ac_clean_files_save
2629 # Check the compiler produces executables we can run.  If not, either
2630 # the compiler is broken, or we cross compile.
2631 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2632 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2633 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2634 echo "${ECHO_T}$cross_compiling" >&6
2636 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2637 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639   (eval $ac_link) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; then
2643   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2646 # `rm'.
2647 for ac_file in conftest.exe conftest conftest.*; do
2648   test -f "$ac_file" || continue
2649   case $ac_file in
2650     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2651     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652           export ac_cv_exeext
2653           break;;
2654     * ) break;;
2655   esac
2656 done
2657 else
2658   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2661 See \`config.log' for more details." >&2;}
2662    { (exit 1); exit 1; }; }
2663 fi
2665 rm -f conftest$ac_cv_exeext
2666 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2667 echo "${ECHO_T}$ac_cv_exeext" >&6
2669 rm -f conftest.$ac_ext
2670 EXEEXT=$ac_cv_exeext
2671 ac_exeext=$EXEEXT
2672 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2673 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2674 if test "${ac_cv_objext+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2684 int
2685 main ()
2688   ;
2689   return 0;
2691 _ACEOF
2692 rm -f conftest.o conftest.obj
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; then
2698   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2699   case $ac_file in
2700     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2701     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702        break;;
2703   esac
2704 done
2705 else
2706   echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713    { (exit 1); exit 1; }; }
2714 fi
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 fi
2718 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6
2720 OBJEXT=$ac_cv_objext
2721 ac_objext=$OBJEXT
2722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725   echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727   cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2734 int
2735 main ()
2737 #ifndef __GNUC__
2738        choke me
2739 #endif
2741   ;
2742   return 0;
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747   (eval $ac_compile) 2>conftest.er1
2748   ac_status=$?
2749   grep -v '^ *+' conftest.er1 >conftest.err
2750   rm -f conftest.er1
2751   cat conftest.err >&5
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } &&
2754          { ac_try='test -z "$ac_c_werror_flag"
2755                          || test ! -s conftest.err'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; } &&
2761          { ac_try='test -s conftest.$ac_objext'
2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; }; then
2767   ac_compiler_gnu=yes
2768 else
2769   echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2772 ac_compiler_gnu=no
2773 fi
2774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2777 fi
2778 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2780 GCC=`test $ac_compiler_gnu = yes && echo yes`
2781 ac_test_CFLAGS=${CFLAGS+set}
2782 ac_save_CFLAGS=$CFLAGS
2783 CFLAGS="-g"
2784 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2786 if test "${ac_cv_prog_cc_g+set}" = set; then
2787   echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789   cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2796 int
2797 main ()
2800   ;
2801   return 0;
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806   (eval $ac_compile) 2>conftest.er1
2807   ac_status=$?
2808   grep -v '^ *+' conftest.er1 >conftest.err
2809   rm -f conftest.er1
2810   cat conftest.err >&5
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); } &&
2813          { ac_try='test -z "$ac_c_werror_flag"
2814                          || test ! -s conftest.err'
2815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816   (eval $ac_try) 2>&5
2817   ac_status=$?
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); }; } &&
2820          { ac_try='test -s conftest.$ac_objext'
2821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); }; }; then
2826   ac_cv_prog_cc_g=yes
2827 else
2828   echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 ac_cv_prog_cc_g=no
2832 fi
2833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 fi
2835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2836 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2837 if test "$ac_test_CFLAGS" = set; then
2838   CFLAGS=$ac_save_CFLAGS
2839 elif test $ac_cv_prog_cc_g = yes; then
2840   if test "$GCC" = yes; then
2841     CFLAGS="-g -O2"
2842   else
2843     CFLAGS="-g"
2844   fi
2845 else
2846   if test "$GCC" = yes; then
2847     CFLAGS="-O2"
2848   else
2849     CFLAGS=
2850   fi
2851 fi
2852 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2853 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2854 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   ac_cv_prog_cc_stdc=no
2858 ac_save_CC=$CC
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h.  */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h.  */
2865 #include <stdarg.h>
2866 #include <stdio.h>
2867 #include <sys/types.h>
2868 #include <sys/stat.h>
2869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2870 struct buf { int x; };
2871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2872 static char *e (p, i)
2873      char **p;
2874      int i;
2876   return p[i];
2878 static char *f (char * (*g) (char **, int), char **p, ...)
2880   char *s;
2881   va_list v;
2882   va_start (v,p);
2883   s = g (p, va_arg (v,int));
2884   va_end (v);
2885   return s;
2888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2889    function prototypes and stuff, but not '\xHH' hex character constants.
2890    These don't provoke an error unfortunately, instead are silently treated
2891    as 'x'.  The following induces an error, until -std1 is added to get
2892    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2893    array size at least.  It's necessary to write '\x00'==0 to get something
2894    that's true only with -std1.  */
2895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2897 int test (int i, double x);
2898 struct s1 {int (*f) (int a);};
2899 struct s2 {int (*f) (double a);};
2900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2901 int argc;
2902 char **argv;
2903 int
2904 main ()
2906 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2907   ;
2908   return 0;
2910 _ACEOF
2911 # Don't try gcc -ansi; that turns off useful extensions and
2912 # breaks some systems' header files.
2913 # AIX                   -qlanglvl=ansi
2914 # Ultrix and OSF/1      -std1
2915 # HP-UX 10.20 and later -Ae
2916 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2917 # SVR4                  -Xc -D__EXTENSIONS__
2918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2919 do
2920   CC="$ac_save_CC $ac_arg"
2921   rm -f conftest.$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923   (eval $ac_compile) 2>conftest.er1
2924   ac_status=$?
2925   grep -v '^ *+' conftest.er1 >conftest.err
2926   rm -f conftest.er1
2927   cat conftest.err >&5
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); } &&
2930          { ac_try='test -z "$ac_c_werror_flag"
2931                          || test ! -s conftest.err'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; } &&
2937          { ac_try='test -s conftest.$ac_objext'
2938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939   (eval $ac_try) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; }; then
2943   ac_cv_prog_cc_stdc=$ac_arg
2944 break
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 fi
2950 rm -f conftest.err conftest.$ac_objext
2951 done
2952 rm -f conftest.$ac_ext conftest.$ac_objext
2953 CC=$ac_save_CC
2955 fi
2957 case "x$ac_cv_prog_cc_stdc" in
2958   x|xno)
2959     echo "$as_me:$LINENO: result: none needed" >&5
2960 echo "${ECHO_T}none needed" >&6 ;;
2961   *)
2962     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2963 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2964     CC="$CC $ac_cv_prog_cc_stdc" ;;
2965 esac
2967 # Some people use a C++ compiler to compile C.  Since we use `exit',
2968 # in C++ we need to declare it.  In case someone uses the same compiler
2969 # for both compiling C and C++ we need to have the C++ compiler decide
2970 # the declaration of exit, since it's the most demanding environment.
2971 cat >conftest.$ac_ext <<_ACEOF
2972 #ifndef __cplusplus
2973   choke me
2974 #endif
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978   (eval $ac_compile) 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -z "$ac_c_werror_flag"
2986                          || test ! -s conftest.err'
2987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988   (eval $ac_try) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }; } &&
2992          { ac_try='test -s conftest.$ac_objext'
2993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994   (eval $ac_try) 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; }; then
2998   for ac_declaration in \
2999    '' \
3000    'extern "C" void std::exit (int) throw (); using std::exit;' \
3001    'extern "C" void std::exit (int); using std::exit;' \
3002    'extern "C" void exit (int) throw ();' \
3003    'extern "C" void exit (int);' \
3004    'void exit (int);'
3005 do
3006   cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012 $ac_declaration
3013 #include <stdlib.h>
3014 int
3015 main ()
3017 exit (42);
3018   ;
3019   return 0;
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024   (eval $ac_compile) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } &&
3031          { ac_try='test -z "$ac_c_werror_flag"
3032                          || test ! -s conftest.err'
3033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034   (eval $ac_try) 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; } &&
3038          { ac_try='test -s conftest.$ac_objext'
3039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040   (eval $ac_try) 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; }; then
3044   :
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 continue
3050 fi
3051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3052   cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h.  */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h.  */
3058 $ac_declaration
3059 int
3060 main ()
3062 exit (42);
3063   ;
3064   return 0;
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069   (eval $ac_compile) 2>conftest.er1
3070   ac_status=$?
3071   grep -v '^ *+' conftest.er1 >conftest.err
3072   rm -f conftest.er1
3073   cat conftest.err >&5
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } &&
3076          { ac_try='test -z "$ac_c_werror_flag"
3077                          || test ! -s conftest.err'
3078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079   (eval $ac_try) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); }; } &&
3083          { ac_try='test -s conftest.$ac_objext'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; }; then
3089   break
3090 else
3091   echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 fi
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096 done
3097 rm -f conftest*
3098 if test -n "$ac_declaration"; then
3099   echo '#ifdef __cplusplus' >>confdefs.h
3100   echo $ac_declaration      >>confdefs.h
3101   echo '#endif'             >>confdefs.h
3102 fi
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 fi
3109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116 depcc="$CC"   am_compiler_list=
3118 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3119 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3120 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3124   # We make a subdir and do the tests there.  Otherwise we can end up
3125   # making bogus files that we don't know about and never remove.  For
3126   # instance it was reported that on HP-UX the gcc test will end up
3127   # making a dummy file named `D' -- because `-MD' means `put the output
3128   # in D'.
3129   mkdir conftest.dir
3130   # Copy depcomp to subdir because otherwise we won't find it if we're
3131   # using a relative directory.
3132   cp "$am_depcomp" conftest.dir
3133   cd conftest.dir
3134   # We will build objects and dependencies in a subdirectory because
3135   # it helps to detect inapplicable dependency modes.  For instance
3136   # both Tru64's cc and ICC support -MD to output dependencies as a
3137   # side effect of compilation, but ICC will put the dependencies in
3138   # the current directory while Tru64 will put them in the object
3139   # directory.
3140   mkdir sub
3142   am_cv_CC_dependencies_compiler_type=none
3143   if test "$am_compiler_list" = ""; then
3144      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3145   fi
3146   for depmode in $am_compiler_list; do
3147     # Setup a source with many dependencies, because some compilers
3148     # like to wrap large dependency lists on column 80 (with \), and
3149     # we should not choose a depcomp mode which is confused by this.
3150     #
3151     # We need to recreate these files for each test, as the compiler may
3152     # overwrite some of them when testing with obscure command lines.
3153     # This happens at least with the AIX C compiler.
3154     : > sub/conftest.c
3155     for i in 1 2 3 4 5 6; do
3156       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3157       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3158       # Solaris 8's {/usr,}/bin/sh.
3159       touch sub/conftst$i.h
3160     done
3161     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3163     case $depmode in
3164     nosideeffect)
3165       # after this tag, mechanisms are not by side-effect, so they'll
3166       # only be used when explicitly requested
3167       if test "x$enable_dependency_tracking" = xyes; then
3168         continue
3169       else
3170         break
3171       fi
3172       ;;
3173     none) break ;;
3174     esac
3175     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3176     # mode.  It turns out that the SunPro C++ compiler does not properly
3177     # handle `-M -o', and we need to detect this.
3178     if depmode=$depmode \
3179        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3180        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3181        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3182          >/dev/null 2>conftest.err &&
3183        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3184        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3185        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3186       # icc doesn't choke on unknown options, it will just issue warnings
3187       # or remarks (even with -Werror).  So we grep stderr for any message
3188       # that says an option was ignored or not supported.
3189       # When given -MP, icc 7.0 and 7.1 complain thusly:
3190       #   icc: Command line warning: ignoring option '-M'; no argument required
3191       # The diagnosis changed in icc 8.0:
3192       #   icc: Command line remark: option '-MP' not supported
3193       if (grep 'ignoring option' conftest.err ||
3194           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3195         am_cv_CC_dependencies_compiler_type=$depmode
3196         break
3197       fi
3198     fi
3199   done
3201   cd ..
3202   rm -rf conftest.dir
3203 else
3204   am_cv_CC_dependencies_compiler_type=none
3205 fi
3207 fi
3208 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3209 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3210 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3214 if
3215   test "x$enable_dependency_tracking" != xno \
3216   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3217   am__fastdepCC_TRUE=
3218   am__fastdepCC_FALSE='#'
3219 else
3220   am__fastdepCC_TRUE='#'
3221   am__fastdepCC_FALSE=
3222 fi
3225 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3226 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3227 if test "${lt_cv_path_SED+set}" = set; then
3228   echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230   # Loop through the user's path and test for sed and gsed.
3231 # Then use that list of sed's as ones to test for truncation.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235   IFS=$as_save_IFS
3236   test -z "$as_dir" && as_dir=.
3237   for lt_ac_prog in sed gsed; do
3238     for ac_exec_ext in '' $ac_executable_extensions; do
3239       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3240         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3241       fi
3242     done
3243   done
3244 done
3245 lt_ac_max=0
3246 lt_ac_count=0
3247 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3248 # along with /bin/sed that truncates output.
3249 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3250   test ! -f $lt_ac_sed && continue
3251   cat /dev/null > conftest.in
3252   lt_ac_count=0
3253   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3254   # Check for GNU sed and select it if it is found.
3255   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3256     lt_cv_path_SED=$lt_ac_sed
3257     break
3258   fi
3259   while true; do
3260     cat conftest.in conftest.in >conftest.tmp
3261     mv conftest.tmp conftest.in
3262     cp conftest.in conftest.nl
3263     echo >>conftest.nl
3264     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3265     cmp -s conftest.out conftest.nl || break
3266     # 10000 chars as input seems more than enough
3267     test $lt_ac_count -gt 10 && break
3268     lt_ac_count=`expr $lt_ac_count + 1`
3269     if test $lt_ac_count -gt $lt_ac_max; then
3270       lt_ac_max=$lt_ac_count
3271       lt_cv_path_SED=$lt_ac_sed
3272     fi
3273   done
3274 done
3276 fi
3278 SED=$lt_cv_path_SED
3279 echo "$as_me:$LINENO: result: $SED" >&5
3280 echo "${ECHO_T}$SED" >&6
3282 echo "$as_me:$LINENO: checking for egrep" >&5
3283 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3284 if test "${ac_cv_prog_egrep+set}" = set; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3288     then ac_cv_prog_egrep='grep -E'
3289     else ac_cv_prog_egrep='egrep'
3290     fi
3291 fi
3292 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3293 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3294  EGREP=$ac_cv_prog_egrep
3298 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3299 if test "${with_gnu_ld+set}" = set; then
3300   withval="$with_gnu_ld"
3301   test "$withval" = no || with_gnu_ld=yes
3302 else
3303   with_gnu_ld=no
3304 fi;
3305 ac_prog=ld
3306 if test "$GCC" = yes; then
3307   # Check if gcc -print-prog-name=ld gives a path.
3308   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3309 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3310   case $host in
3311   *-*-mingw*)
3312     # gcc leaves a trailing carriage return which upsets mingw
3313     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3314   *)
3315     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3316   esac
3317   case $ac_prog in
3318     # Accept absolute paths.
3319     [\\/]* | ?:[\\/]*)
3320       re_direlt='/[^/][^/]*/\.\./'
3321       # Canonicalize the pathname of ld
3322       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3323       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3324         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3325       done
3326       test -z "$LD" && LD="$ac_prog"
3327       ;;
3328   "")
3329     # If it fails, then pretend we aren't using GCC.
3330     ac_prog=ld
3331     ;;
3332   *)
3333     # If it is relative, then search for the first ld in PATH.
3334     with_gnu_ld=unknown
3335     ;;
3336   esac
3337 elif test "$with_gnu_ld" = yes; then
3338   echo "$as_me:$LINENO: checking for GNU ld" >&5
3339 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3340 else
3341   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3342 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3343 fi
3344 if test "${lt_cv_path_LD+set}" = set; then
3345   echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347   if test -z "$LD"; then
3348   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3349   for ac_dir in $PATH; do
3350     IFS="$lt_save_ifs"
3351     test -z "$ac_dir" && ac_dir=.
3352     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3353       lt_cv_path_LD="$ac_dir/$ac_prog"
3354       # Check to see if the program is GNU ld.  I'd rather use --version,
3355       # but apparently some variants of GNU ld only accept -v.
3356       # Break only if it was the GNU/non-GNU ld that we prefer.
3357       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3358       *GNU* | *'with BFD'*)
3359         test "$with_gnu_ld" != no && break
3360         ;;
3361       *)
3362         test "$with_gnu_ld" != yes && break
3363         ;;
3364       esac
3365     fi
3366   done
3367   IFS="$lt_save_ifs"
3368 else
3369   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3370 fi
3371 fi
3373 LD="$lt_cv_path_LD"
3374 if test -n "$LD"; then
3375   echo "$as_me:$LINENO: result: $LD" >&5
3376 echo "${ECHO_T}$LD" >&6
3377 else
3378   echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6
3380 fi
3381 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3382 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3383    { (exit 1); exit 1; }; }
3384 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3385 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3386 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3387   echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3390 case `$LD -v 2>&1 </dev/null` in
3391 *GNU* | *'with BFD'*)
3392   lt_cv_prog_gnu_ld=yes
3393   ;;
3394 *)
3395   lt_cv_prog_gnu_ld=no
3396   ;;
3397 esac
3398 fi
3399 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3400 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3401 with_gnu_ld=$lt_cv_prog_gnu_ld
3404 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3405 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3406 if test "${lt_cv_ld_reload_flag+set}" = set; then
3407   echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409   lt_cv_ld_reload_flag='-r'
3410 fi
3411 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3412 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3413 reload_flag=$lt_cv_ld_reload_flag
3414 case $reload_flag in
3415 "" | " "*) ;;
3416 *) reload_flag=" $reload_flag" ;;
3417 esac
3418 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3419 case $host_os in
3420   darwin*)
3421     if test "$GCC" = yes; then
3422       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3423     else
3424       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3425     fi
3426     ;;
3427 esac
3429 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3430 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3431 if test "${lt_cv_path_NM+set}" = set; then
3432   echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434   if test -n "$NM"; then
3435   # Let the user override the test.
3436   lt_cv_path_NM="$NM"
3437 else
3438   lt_nm_to_check="${ac_tool_prefix}nm"
3439   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3440     lt_nm_to_check="$lt_nm_to_check nm"
3441   fi
3442   for lt_tmp_nm in $lt_nm_to_check; do
3443     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3444     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3445       IFS="$lt_save_ifs"
3446       test -z "$ac_dir" && ac_dir=.
3447       tmp_nm="$ac_dir/$lt_tmp_nm"
3448       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3449         # Check to see if the nm accepts a BSD-compat flag.
3450         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3451         #   nm: unknown option "B" ignored
3452         # Tru64's nm complains that /dev/null is an invalid object file
3453         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3454         */dev/null* | *'Invalid file or object type'*)
3455           lt_cv_path_NM="$tmp_nm -B"
3456           break
3457           ;;
3458         *)
3459           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3460           */dev/null*)
3461             lt_cv_path_NM="$tmp_nm -p"
3462             break
3463             ;;
3464           *)
3465             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3466             continue # so that we can try to find one that supports BSD flags
3467             ;;
3468           esac
3469           ;;
3470         esac
3471       fi
3472     done
3473     IFS="$lt_save_ifs"
3474   done
3475   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3476 fi
3477 fi
3478 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3479 echo "${ECHO_T}$lt_cv_path_NM" >&6
3480 NM="$lt_cv_path_NM"
3482 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3483 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3484 LN_S=$as_ln_s
3485 if test "$LN_S" = "ln -s"; then
3486   echo "$as_me:$LINENO: result: yes" >&5
3487 echo "${ECHO_T}yes" >&6
3488 else
3489   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3490 echo "${ECHO_T}no, using $LN_S" >&6
3491 fi
3493 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3494 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3495 if test "${lt_cv_deplibs_check_method+set}" = set; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   lt_cv_file_magic_cmd='$MAGIC_CMD'
3499 lt_cv_file_magic_test_file=
3500 lt_cv_deplibs_check_method='unknown'
3501 # Need to set the preceding variable on all platforms that support
3502 # interlibrary dependencies.
3503 # 'none' -- dependencies not supported.
3504 # `unknown' -- same as none, but documents that we really don't know.
3505 # 'pass_all' -- all dependencies passed with no checks.
3506 # 'test_compile' -- check by making test program.
3507 # 'file_magic [[regex]]' -- check by looking for files in library path
3508 # which responds to the $file_magic_cmd with a given extended regex.
3509 # If you have `file' or equivalent on your system and you're not sure
3510 # whether `pass_all' will *always* work, you probably want this one.
3512 case $host_os in
3513 aix4* | aix5*)
3514   lt_cv_deplibs_check_method=pass_all
3515   ;;
3517 beos*)
3518   lt_cv_deplibs_check_method=pass_all
3519   ;;
3521 bsdi[45]*)
3522   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3523   lt_cv_file_magic_cmd='/usr/bin/file -L'
3524   lt_cv_file_magic_test_file=/shlib/libc.so
3525   ;;
3527 cygwin*)
3528   # func_win32_libid is a shell function defined in ltmain.sh
3529   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3530   lt_cv_file_magic_cmd='func_win32_libid'
3531   ;;
3533 mingw* | pw32*)
3534   # Base MSYS/MinGW do not provide the 'file' command needed by
3535   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3536   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3537   lt_cv_file_magic_cmd='$OBJDUMP -f'
3538   ;;
3540 darwin* | rhapsody*)
3541   lt_cv_deplibs_check_method=pass_all
3542   ;;
3544 freebsd* | kfreebsd*-gnu | dragonfly*)
3545   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3546     case $host_cpu in
3547     i*86 )
3548       # Not sure whether the presence of OpenBSD here was a mistake.
3549       # Let's accept both of them until this is cleared up.
3550       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3551       lt_cv_file_magic_cmd=/usr/bin/file
3552       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3553       ;;
3554     esac
3555   else
3556     lt_cv_deplibs_check_method=pass_all
3557   fi
3558   ;;
3560 gnu*)
3561   lt_cv_deplibs_check_method=pass_all
3562   ;;
3564 hpux10.20* | hpux11*)
3565   lt_cv_file_magic_cmd=/usr/bin/file
3566   case $host_cpu in
3567   ia64*)
3568     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3569     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3570     ;;
3571   hppa*64*)
3572     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]'
3573     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3574     ;;
3575   *)
3576     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3577     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3578     ;;
3579   esac
3580   ;;
3582 interix3*)
3583   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3584   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3585   ;;
3587 irix5* | irix6* | nonstopux*)
3588   case $LD in
3589   *-32|*"-32 ") libmagic=32-bit;;
3590   *-n32|*"-n32 ") libmagic=N32;;
3591   *-64|*"-64 ") libmagic=64-bit;;
3592   *) libmagic=never-match;;
3593   esac
3594   lt_cv_deplibs_check_method=pass_all
3595   ;;
3597 # This must be Linux ELF.
3598 linux*)
3599   lt_cv_deplibs_check_method=pass_all
3600   ;;
3602 netbsd*)
3603   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3604     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3605   else
3606     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3607   fi
3608   ;;
3610 newos6*)
3611   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3612   lt_cv_file_magic_cmd=/usr/bin/file
3613   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3614   ;;
3616 nto-qnx*)
3617   lt_cv_deplibs_check_method=unknown
3618   ;;
3620 openbsd*)
3621   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3622     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3623   else
3624     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3625   fi
3626   ;;
3628 osf3* | osf4* | osf5*)
3629   lt_cv_deplibs_check_method=pass_all
3630   ;;
3632 solaris*)
3633   lt_cv_deplibs_check_method=pass_all
3634   ;;
3636 sysv4 | sysv4.3*)
3637   case $host_vendor in
3638   motorola)
3639     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]'
3640     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3641     ;;
3642   ncr)
3643     lt_cv_deplibs_check_method=pass_all
3644     ;;
3645   sequent)
3646     lt_cv_file_magic_cmd='/bin/file'
3647     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3648     ;;
3649   sni)
3650     lt_cv_file_magic_cmd='/bin/file'
3651     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3652     lt_cv_file_magic_test_file=/lib/libc.so
3653     ;;
3654   siemens)
3655     lt_cv_deplibs_check_method=pass_all
3656     ;;
3657   pc)
3658     lt_cv_deplibs_check_method=pass_all
3659     ;;
3660   esac
3661   ;;
3663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3664   lt_cv_deplibs_check_method=pass_all
3665   ;;
3666 esac
3668 fi
3669 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3670 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3671 file_magic_cmd=$lt_cv_file_magic_cmd
3672 deplibs_check_method=$lt_cv_deplibs_check_method
3673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3678 # If no C compiler was specified, use CC.
3679 LTCC=${LTCC-"$CC"}
3681 # If no C compiler flags were specified, use CFLAGS.
3682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3684 # Allow CC to be a program name with arguments.
3685 compiler=$CC
3688 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3689 if test "${enable_libtool_lock+set}" = set; then
3690   enableval="$enable_libtool_lock"
3692 fi;
3693 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3695 # Some flags need to be propagated to the compiler or linker for good
3696 # libtool support.
3697 case $host in
3698 ia64-*-hpux*)
3699   # Find out which ABI we are using.
3700   echo 'int i;' > conftest.$ac_ext
3701   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702   (eval $ac_compile) 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }; then
3706     case `/usr/bin/file conftest.$ac_objext` in
3707     *ELF-32*)
3708       HPUX_IA64_MODE="32"
3709       ;;
3710     *ELF-64*)
3711       HPUX_IA64_MODE="64"
3712       ;;
3713     esac
3714   fi
3715   rm -rf conftest*
3716   ;;
3717 *-*-irix6*)
3718   # Find out which ABI we are using.
3719   echo '#line 3719 "configure"' > conftest.$ac_ext
3720   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3721   (eval $ac_compile) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; then
3725    if test "$lt_cv_prog_gnu_ld" = yes; then
3726     case `/usr/bin/file conftest.$ac_objext` in
3727     *32-bit*)
3728       LD="${LD-ld} -melf32bsmip"
3729       ;;
3730     *N32*)
3731       LD="${LD-ld} -melf32bmipn32"
3732       ;;
3733     *64-bit*)
3734       LD="${LD-ld} -melf64bmip"
3735       ;;
3736     esac
3737    else
3738     case `/usr/bin/file conftest.$ac_objext` in
3739     *32-bit*)
3740       LD="${LD-ld} -32"
3741       ;;
3742     *N32*)
3743       LD="${LD-ld} -n32"
3744       ;;
3745     *64-bit*)
3746       LD="${LD-ld} -64"
3747       ;;
3748     esac
3749    fi
3750   fi
3751   rm -rf conftest*
3752   ;;
3754 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3755   # Find out which ABI we are using.
3756   echo 'int i;' > conftest.$ac_ext
3757   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758   (eval $ac_compile) 2>&5
3759   ac_status=$?
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); }; then
3762     case `/usr/bin/file conftest.o` in
3763     *32-bit*)
3764       case $host in
3765         x86_64-*linux*)
3766           LD="${LD-ld} -m elf_i386"
3767           ;;
3768         ppc64-*linux*|powerpc64-*linux*)
3769           LD="${LD-ld} -m elf32ppclinux"
3770           ;;
3771         s390x-*linux*)
3772           LD="${LD-ld} -m elf_s390"
3773           ;;
3774         sparc64-*linux*)
3775           LD="${LD-ld} -m elf32_sparc"
3776           ;;
3777       esac
3778       ;;
3779     *64-bit*)
3780       case $host in
3781         x86_64-*linux*)
3782           LD="${LD-ld} -m elf_x86_64"
3783           ;;
3784         ppc*-*linux*|powerpc*-*linux*)
3785           LD="${LD-ld} -m elf64ppc"
3786           ;;
3787         s390*-*linux*)
3788           LD="${LD-ld} -m elf64_s390"
3789           ;;
3790         sparc*-*linux*)
3791           LD="${LD-ld} -m elf64_sparc"
3792           ;;
3793       esac
3794       ;;
3795     esac
3796   fi
3797   rm -rf conftest*
3798   ;;
3800 *-*-sco3.2v5*)
3801   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3802   SAVE_CFLAGS="$CFLAGS"
3803   CFLAGS="$CFLAGS -belf"
3804   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3805 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3806 if test "${lt_cv_cc_needs_belf+set}" = set; then
3807   echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809   ac_ext=c
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815      cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h.  */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h.  */
3822 int
3823 main ()
3826   ;
3827   return 0;
3829 _ACEOF
3830 rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832   (eval $ac_link) 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } &&
3839          { ac_try='test -z "$ac_c_werror_flag"
3840                          || test ! -s conftest.err'
3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842   (eval $ac_try) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }; } &&
3846          { ac_try='test -s conftest$ac_exeext'
3847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848   (eval $ac_try) 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); }; }; then
3852   lt_cv_cc_needs_belf=yes
3853 else
3854   echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 lt_cv_cc_needs_belf=no
3858 fi
3859 rm -f conftest.err conftest.$ac_objext \
3860       conftest$ac_exeext conftest.$ac_ext
3861      ac_ext=c
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 fi
3868 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3869 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3870   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3871     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3872     CFLAGS="$SAVE_CFLAGS"
3873   fi
3874   ;;
3875 sparc*-*solaris*)
3876   # Find out which ABI we are using.
3877   echo 'int i;' > conftest.$ac_ext
3878   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879   (eval $ac_compile) 2>&5
3880   ac_status=$?
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); }; then
3883     case `/usr/bin/file conftest.o` in
3884     *64-bit*)
3885       case $lt_cv_prog_gnu_ld in
3886       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3887       *)    LD="${LD-ld} -64" ;;
3888       esac
3889       ;;
3890     esac
3891   fi
3892   rm -rf conftest*
3893   ;;
3896 esac
3898 need_locks="$enable_libtool_lock"
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3907 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3908 # On Suns, sometimes $CPP names a directory.
3909 if test -n "$CPP" && test -d "$CPP"; then
3910   CPP=
3911 fi
3912 if test -z "$CPP"; then
3913   if test "${ac_cv_prog_CPP+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916       # Double quotes because CPP needs to be expanded
3917     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3918     do
3919       ac_preproc_ok=false
3920 for ac_c_preproc_warn_flag in '' yes
3921 do
3922   # Use a header file that comes with gcc, so configuring glibc
3923   # with a fresh cross-compiler works.
3924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925   # <limits.h> exists even on freestanding compilers.
3926   # On the NeXT, cc -E runs the code through the compiler's parser,
3927   # not just through cpp. "Syntax error" is here to catch this case.
3928   cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h.  */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h.  */
3934 #ifdef __STDC__
3935 # include <limits.h>
3936 #else
3937 # include <assert.h>
3938 #endif
3939                      Syntax error
3940 _ACEOF
3941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } >/dev/null; then
3949   if test -s conftest.err; then
3950     ac_cpp_err=$ac_c_preproc_warn_flag
3951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3952   else
3953     ac_cpp_err=
3954   fi
3955 else
3956   ac_cpp_err=yes
3957 fi
3958 if test -z "$ac_cpp_err"; then
3959   :
3960 else
3961   echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3964   # Broken: fails on valid input.
3965 continue
3966 fi
3967 rm -f conftest.err conftest.$ac_ext
3969   # OK, works on sane cases.  Now check whether non-existent headers
3970   # can be detected and how.
3971   cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h.  */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h.  */
3977 #include <ac_nonexistent.h>
3978 _ACEOF
3979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981   ac_status=$?
3982   grep -v '^ *+' conftest.er1 >conftest.err
3983   rm -f conftest.er1
3984   cat conftest.err >&5
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } >/dev/null; then
3987   if test -s conftest.err; then
3988     ac_cpp_err=$ac_c_preproc_warn_flag
3989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3990   else
3991     ac_cpp_err=
3992   fi
3993 else
3994   ac_cpp_err=yes
3995 fi
3996 if test -z "$ac_cpp_err"; then
3997   # Broken: success on invalid input.
3998 continue
3999 else
4000   echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003   # Passes both tests.
4004 ac_preproc_ok=:
4005 break
4006 fi
4007 rm -f conftest.err conftest.$ac_ext
4009 done
4010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011 rm -f conftest.err conftest.$ac_ext
4012 if $ac_preproc_ok; then
4013   break
4014 fi
4016     done
4017     ac_cv_prog_CPP=$CPP
4019 fi
4020   CPP=$ac_cv_prog_CPP
4021 else
4022   ac_cv_prog_CPP=$CPP
4023 fi
4024 echo "$as_me:$LINENO: result: $CPP" >&5
4025 echo "${ECHO_T}$CPP" >&6
4026 ac_preproc_ok=false
4027 for ac_c_preproc_warn_flag in '' yes
4028 do
4029   # Use a header file that comes with gcc, so configuring glibc
4030   # with a fresh cross-compiler works.
4031   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032   # <limits.h> exists even on freestanding compilers.
4033   # On the NeXT, cc -E runs the code through the compiler's parser,
4034   # not just through cpp. "Syntax error" is here to catch this case.
4035   cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h.  */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h.  */
4041 #ifdef __STDC__
4042 # include <limits.h>
4043 #else
4044 # include <assert.h>
4045 #endif
4046                      Syntax error
4047 _ACEOF
4048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050   ac_status=$?
4051   grep -v '^ *+' conftest.er1 >conftest.err
4052   rm -f conftest.er1
4053   cat conftest.err >&5
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); } >/dev/null; then
4056   if test -s conftest.err; then
4057     ac_cpp_err=$ac_c_preproc_warn_flag
4058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4059   else
4060     ac_cpp_err=
4061   fi
4062 else
4063   ac_cpp_err=yes
4064 fi
4065 if test -z "$ac_cpp_err"; then
4066   :
4067 else
4068   echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071   # Broken: fails on valid input.
4072 continue
4073 fi
4074 rm -f conftest.err conftest.$ac_ext
4076   # OK, works on sane cases.  Now check whether non-existent headers
4077   # can be detected and how.
4078   cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084 #include <ac_nonexistent.h>
4085 _ACEOF
4086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } >/dev/null; then
4094   if test -s conftest.err; then
4095     ac_cpp_err=$ac_c_preproc_warn_flag
4096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097   else
4098     ac_cpp_err=
4099   fi
4100 else
4101   ac_cpp_err=yes
4102 fi
4103 if test -z "$ac_cpp_err"; then
4104   # Broken: success on invalid input.
4105 continue
4106 else
4107   echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4110   # Passes both tests.
4111 ac_preproc_ok=:
4112 break
4113 fi
4114 rm -f conftest.err conftest.$ac_ext
4116 done
4117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4118 rm -f conftest.err conftest.$ac_ext
4119 if $ac_preproc_ok; then
4120   :
4121 else
4122   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4123 See \`config.log' for more details." >&5
4124 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4125 See \`config.log' for more details." >&2;}
4126    { (exit 1); exit 1; }; }
4127 fi
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4137 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4138 if test "${ac_cv_header_stdc+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 #include <stdlib.h>
4148 #include <stdarg.h>
4149 #include <string.h>
4150 #include <float.h>
4152 int
4153 main ()
4156   ;
4157   return 0;
4159 _ACEOF
4160 rm -f conftest.$ac_objext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162   (eval $ac_compile) 2>conftest.er1
4163   ac_status=$?
4164   grep -v '^ *+' conftest.er1 >conftest.err
4165   rm -f conftest.er1
4166   cat conftest.err >&5
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); } &&
4169          { ac_try='test -z "$ac_c_werror_flag"
4170                          || test ! -s conftest.err'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; } &&
4176          { ac_try='test -s conftest.$ac_objext'
4177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178   (eval $ac_try) 2>&5
4179   ac_status=$?
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); }; }; then
4182   ac_cv_header_stdc=yes
4183 else
4184   echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4187 ac_cv_header_stdc=no
4188 fi
4189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4191 if test $ac_cv_header_stdc = yes; then
4192   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4193   cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 #include <string.h>
4201 _ACEOF
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203   $EGREP "memchr" >/dev/null 2>&1; then
4204   :
4205 else
4206   ac_cv_header_stdc=no
4207 fi
4208 rm -f conftest*
4210 fi
4212 if test $ac_cv_header_stdc = yes; then
4213   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4214   cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4220 #include <stdlib.h>
4222 _ACEOF
4223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4224   $EGREP "free" >/dev/null 2>&1; then
4225   :
4226 else
4227   ac_cv_header_stdc=no
4228 fi
4229 rm -f conftest*
4231 fi
4233 if test $ac_cv_header_stdc = yes; then
4234   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4235   if test "$cross_compiling" = yes; then
4236   :
4237 else
4238   cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h.  */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h.  */
4244 #include <ctype.h>
4245 #if ((' ' & 0x0FF) == 0x020)
4246 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4247 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4248 #else
4249 # define ISLOWER(c) \
4250                    (('a' <= (c) && (c) <= 'i') \
4251                      || ('j' <= (c) && (c) <= 'r') \
4252                      || ('s' <= (c) && (c) <= 'z'))
4253 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4254 #endif
4256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4257 int
4258 main ()
4260   int i;
4261   for (i = 0; i < 256; i++)
4262     if (XOR (islower (i), ISLOWER (i))
4263         || toupper (i) != TOUPPER (i))
4264       exit(2);
4265   exit (0);
4267 _ACEOF
4268 rm -f conftest$ac_exeext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270   (eval $ac_link) 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275   (eval $ac_try) 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }; }; then
4279   :
4280 else
4281   echo "$as_me: program exited with status $ac_status" >&5
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4285 ( exit $ac_status )
4286 ac_cv_header_stdc=no
4287 fi
4288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4289 fi
4290 fi
4291 fi
4292 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4293 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4294 if test $ac_cv_header_stdc = yes; then
4296 cat >>confdefs.h <<\_ACEOF
4297 #define STDC_HEADERS 1
4298 _ACEOF
4300 fi
4302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4313                   inttypes.h stdint.h unistd.h
4314 do
4315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4316 echo "$as_me:$LINENO: checking for $ac_header" >&5
4317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327 $ac_includes_default
4329 #include <$ac_header>
4330 _ACEOF
4331 rm -f conftest.$ac_objext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333   (eval $ac_compile) 2>conftest.er1
4334   ac_status=$?
4335   grep -v '^ *+' conftest.er1 >conftest.err
4336   rm -f conftest.er1
4337   cat conftest.err >&5
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } &&
4340          { ac_try='test -z "$ac_c_werror_flag"
4341                          || test ! -s conftest.err'
4342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343   (eval $ac_try) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; } &&
4347          { ac_try='test -s conftest.$ac_objext'
4348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349   (eval $ac_try) 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); }; }; then
4353   eval "$as_ac_Header=yes"
4354 else
4355   echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 eval "$as_ac_Header=no"
4359 fi
4360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361 fi
4362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4365   cat >>confdefs.h <<_ACEOF
4366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4367 _ACEOF
4369 fi
4371 done
4375 for ac_header in dlfcn.h
4376 do
4377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4379   echo "$as_me:$LINENO: checking for $ac_header" >&5
4380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 fi
4384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4386 else
4387   # Is the header compilable?
4388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4390 cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h.  */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h.  */
4396 $ac_includes_default
4397 #include <$ac_header>
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401   (eval $ac_compile) 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -z "$ac_c_werror_flag"
4409                          || test ! -s conftest.err'
4410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; } &&
4415          { ac_try='test -s conftest.$ac_objext'
4416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417   (eval $ac_try) 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; }; then
4421   ac_header_compiler=yes
4422 else
4423   echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4426 ac_header_compiler=no
4427 fi
4428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4430 echo "${ECHO_T}$ac_header_compiler" >&6
4432 # Is the header present?
4433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h.  */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h.  */
4441 #include <$ac_header>
4442 _ACEOF
4443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4445   ac_status=$?
4446   grep -v '^ *+' conftest.er1 >conftest.err
4447   rm -f conftest.er1
4448   cat conftest.err >&5
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); } >/dev/null; then
4451   if test -s conftest.err; then
4452     ac_cpp_err=$ac_c_preproc_warn_flag
4453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4454   else
4455     ac_cpp_err=
4456   fi
4457 else
4458   ac_cpp_err=yes
4459 fi
4460 if test -z "$ac_cpp_err"; then
4461   ac_header_preproc=yes
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466   ac_header_preproc=no
4467 fi
4468 rm -f conftest.err conftest.$ac_ext
4469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4470 echo "${ECHO_T}$ac_header_preproc" >&6
4472 # So?  What about this header?
4473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4474   yes:no: )
4475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4479     ac_header_preproc=yes
4480     ;;
4481   no:yes:* )
4482     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4484     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4485 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4486     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4488     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4489 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4492     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4494     (
4495       cat <<\_ASBOX
4496 ## --------------------------------- ##
4497 ## Report this to the TI IPC lists.  ##
4498 ## --------------------------------- ##
4499 _ASBOX
4500     ) |
4501       sed "s/^/$as_me: WARNING:     /" >&2
4502     ;;
4503 esac
4504 echo "$as_me:$LINENO: checking for $ac_header" >&5
4505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4507   echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509   eval "$as_ac_Header=\$ac_header_preproc"
4510 fi
4511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4514 fi
4515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516   cat >>confdefs.h <<_ACEOF
4517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518 _ACEOF
4520 fi
4522 done
4524 ac_ext=cc
4525 ac_cpp='$CXXCPP $CPPFLAGS'
4526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4529 if test -n "$ac_tool_prefix"; then
4530   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4531   do
4532     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4534 echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4536 if test "${ac_cv_prog_CXX+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   if test -n "$CXX"; then
4540   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545   IFS=$as_save_IFS
4546   test -z "$as_dir" && as_dir=.
4547   for ac_exec_ext in '' $ac_executable_extensions; do
4548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551     break 2
4552   fi
4553 done
4554 done
4556 fi
4557 fi
4558 CXX=$ac_cv_prog_CXX
4559 if test -n "$CXX"; then
4560   echo "$as_me:$LINENO: result: $CXX" >&5
4561 echo "${ECHO_T}$CXX" >&6
4562 else
4563   echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6
4565 fi
4567     test -n "$CXX" && break
4568   done
4569 fi
4570 if test -z "$CXX"; then
4571   ac_ct_CXX=$CXX
4572   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4573 do
4574   # Extract the first word of "$ac_prog", so it can be a program name with args.
4575 set dummy $ac_prog; ac_word=$2
4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   if test -n "$ac_ct_CXX"; then
4582   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589   for ac_exec_ext in '' $ac_executable_extensions; do
4590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591     ac_cv_prog_ac_ct_CXX="$ac_prog"
4592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593     break 2
4594   fi
4595 done
4596 done
4598 fi
4599 fi
4600 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4601 if test -n "$ac_ct_CXX"; then
4602   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4603 echo "${ECHO_T}$ac_ct_CXX" >&6
4604 else
4605   echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4607 fi
4609   test -n "$ac_ct_CXX" && break
4610 done
4611 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4613   CXX=$ac_ct_CXX
4614 fi
4617 # Provide some information about the compiler.
4618 echo "$as_me:$LINENO:" \
4619      "checking for C++ compiler version" >&5
4620 ac_compiler=`set X $ac_compile; echo $2`
4621 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4622   (eval $ac_compiler --version </dev/null >&5) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }
4626 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4627   (eval $ac_compiler -v </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); }
4637 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4638 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4639 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642   cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4649 int
4650 main ()
4652 #ifndef __GNUC__
4653        choke me
4654 #endif
4656   ;
4657   return 0;
4659 _ACEOF
4660 rm -f conftest.$ac_objext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662   (eval $ac_compile) 2>conftest.er1
4663   ac_status=$?
4664   grep -v '^ *+' conftest.er1 >conftest.err
4665   rm -f conftest.er1
4666   cat conftest.err >&5
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); } &&
4669          { ac_try='test -z "$ac_cxx_werror_flag"
4670                          || test ! -s conftest.err'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; } &&
4676          { ac_try='test -s conftest.$ac_objext'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; }; then
4682   ac_compiler_gnu=yes
4683 else
4684   echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 ac_compiler_gnu=no
4688 fi
4689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4690 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4692 fi
4693 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4694 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4695 GXX=`test $ac_compiler_gnu = yes && echo yes`
4696 ac_test_CXXFLAGS=${CXXFLAGS+set}
4697 ac_save_CXXFLAGS=$CXXFLAGS
4698 CXXFLAGS="-g"
4699 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4700 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4701 if test "${ac_cv_prog_cxx_g+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4711 int
4712 main ()
4715   ;
4716   return 0;
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721   (eval $ac_compile) 2>conftest.er1
4722   ac_status=$?
4723   grep -v '^ *+' conftest.er1 >conftest.err
4724   rm -f conftest.er1
4725   cat conftest.err >&5
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); } &&
4728          { ac_try='test -z "$ac_cxx_werror_flag"
4729                          || test ! -s conftest.err'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; } &&
4735          { ac_try='test -s conftest.$ac_objext'
4736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737   (eval $ac_try) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; }; then
4741   ac_cv_prog_cxx_g=yes
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 ac_cv_prog_cxx_g=no
4747 fi
4748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4749 fi
4750 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4751 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4752 if test "$ac_test_CXXFLAGS" = set; then
4753   CXXFLAGS=$ac_save_CXXFLAGS
4754 elif test $ac_cv_prog_cxx_g = yes; then
4755   if test "$GXX" = yes; then
4756     CXXFLAGS="-g -O2"
4757   else
4758     CXXFLAGS="-g"
4759   fi
4760 else
4761   if test "$GXX" = yes; then
4762     CXXFLAGS="-O2"
4763   else
4764     CXXFLAGS=
4765   fi
4766 fi
4767 for ac_declaration in \
4768    '' \
4769    'extern "C" void std::exit (int) throw (); using std::exit;' \
4770    'extern "C" void std::exit (int); using std::exit;' \
4771    'extern "C" void exit (int) throw ();' \
4772    'extern "C" void exit (int);' \
4773    'void exit (int);'
4774 do
4775   cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781 $ac_declaration
4782 #include <stdlib.h>
4783 int
4784 main ()
4786 exit (42);
4787   ;
4788   return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793   (eval $ac_compile) 2>conftest.er1
4794   ac_status=$?
4795   grep -v '^ *+' conftest.er1 >conftest.err
4796   rm -f conftest.er1
4797   cat conftest.err >&5
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); } &&
4800          { ac_try='test -z "$ac_cxx_werror_flag"
4801                          || test ! -s conftest.err'
4802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803   (eval $ac_try) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; } &&
4807          { ac_try='test -s conftest.$ac_objext'
4808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; }; then
4813   :
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 continue
4819 fi
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821   cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h.  */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h.  */
4827 $ac_declaration
4828 int
4829 main ()
4831 exit (42);
4832   ;
4833   return 0;
4835 _ACEOF
4836 rm -f conftest.$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838   (eval $ac_compile) 2>conftest.er1
4839   ac_status=$?
4840   grep -v '^ *+' conftest.er1 >conftest.err
4841   rm -f conftest.er1
4842   cat conftest.err >&5
4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844   (exit $ac_status); } &&
4845          { ac_try='test -z "$ac_cxx_werror_flag"
4846                          || test ! -s conftest.err'
4847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848   (eval $ac_try) 2>&5
4849   ac_status=$?
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); }; } &&
4852          { ac_try='test -s conftest.$ac_objext'
4853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854   (eval $ac_try) 2>&5
4855   ac_status=$?
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); }; }; then
4858   break
4859 else
4860   echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 fi
4864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4865 done
4866 rm -f conftest*
4867 if test -n "$ac_declaration"; then
4868   echo '#ifdef __cplusplus' >>confdefs.h
4869   echo $ac_declaration      >>confdefs.h
4870   echo '#endif'             >>confdefs.h
4871 fi
4873 ac_ext=cc
4874 ac_cpp='$CXXCPP $CPPFLAGS'
4875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4879 depcc="$CXX"  am_compiler_list=
4881 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4882 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4883 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4887   # We make a subdir and do the tests there.  Otherwise we can end up
4888   # making bogus files that we don't know about and never remove.  For
4889   # instance it was reported that on HP-UX the gcc test will end up
4890   # making a dummy file named `D' -- because `-MD' means `put the output
4891   # in D'.
4892   mkdir conftest.dir
4893   # Copy depcomp to subdir because otherwise we won't find it if we're
4894   # using a relative directory.
4895   cp "$am_depcomp" conftest.dir
4896   cd conftest.dir
4897   # We will build objects and dependencies in a subdirectory because
4898   # it helps to detect inapplicable dependency modes.  For instance
4899   # both Tru64's cc and ICC support -MD to output dependencies as a
4900   # side effect of compilation, but ICC will put the dependencies in
4901   # the current directory while Tru64 will put them in the object
4902   # directory.
4903   mkdir sub
4905   am_cv_CXX_dependencies_compiler_type=none
4906   if test "$am_compiler_list" = ""; then
4907      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4908   fi
4909   for depmode in $am_compiler_list; do
4910     # Setup a source with many dependencies, because some compilers
4911     # like to wrap large dependency lists on column 80 (with \), and
4912     # we should not choose a depcomp mode which is confused by this.
4913     #
4914     # We need to recreate these files for each test, as the compiler may
4915     # overwrite some of them when testing with obscure command lines.
4916     # This happens at least with the AIX C compiler.
4917     : > sub/conftest.c
4918     for i in 1 2 3 4 5 6; do
4919       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4920       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4921       # Solaris 8's {/usr,}/bin/sh.
4922       touch sub/conftst$i.h
4923     done
4924     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4926     case $depmode in
4927     nosideeffect)
4928       # after this tag, mechanisms are not by side-effect, so they'll
4929       # only be used when explicitly requested
4930       if test "x$enable_dependency_tracking" = xyes; then
4931         continue
4932       else
4933         break
4934       fi
4935       ;;
4936     none) break ;;
4937     esac
4938     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4939     # mode.  It turns out that the SunPro C++ compiler does not properly
4940     # handle `-M -o', and we need to detect this.
4941     if depmode=$depmode \
4942        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4943        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4944        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4945          >/dev/null 2>conftest.err &&
4946        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4947        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4948        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4949       # icc doesn't choke on unknown options, it will just issue warnings
4950       # or remarks (even with -Werror).  So we grep stderr for any message
4951       # that says an option was ignored or not supported.
4952       # When given -MP, icc 7.0 and 7.1 complain thusly:
4953       #   icc: Command line warning: ignoring option '-M'; no argument required
4954       # The diagnosis changed in icc 8.0:
4955       #   icc: Command line remark: option '-MP' not supported
4956       if (grep 'ignoring option' conftest.err ||
4957           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4958         am_cv_CXX_dependencies_compiler_type=$depmode
4959         break
4960       fi
4961     fi
4962   done
4964   cd ..
4965   rm -rf conftest.dir
4966 else
4967   am_cv_CXX_dependencies_compiler_type=none
4968 fi
4970 fi
4971 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4972 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4973 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4977 if
4978   test "x$enable_dependency_tracking" != xno \
4979   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4980   am__fastdepCXX_TRUE=
4981   am__fastdepCXX_FALSE='#'
4982 else
4983   am__fastdepCXX_TRUE='#'
4984   am__fastdepCXX_FALSE=
4985 fi
4990 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4991     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4992     (test "X$CXX" != "Xg++"))) ; then
4993   ac_ext=cc
4994 ac_cpp='$CXXCPP $CPPFLAGS'
4995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4998 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4999 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5000 if test -z "$CXXCPP"; then
5001   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5002   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004       # Double quotes because CXXCPP needs to be expanded
5005     for CXXCPP in "$CXX -E" "/lib/cpp"
5006     do
5007       ac_preproc_ok=false
5008 for ac_cxx_preproc_warn_flag in '' yes
5009 do
5010   # Use a header file that comes with gcc, so configuring glibc
5011   # with a fresh cross-compiler works.
5012   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5013   # <limits.h> exists even on freestanding compilers.
5014   # On the NeXT, cc -E runs the code through the compiler's parser,
5015   # not just through cpp. "Syntax error" is here to catch this case.
5016   cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022 #ifdef __STDC__
5023 # include <limits.h>
5024 #else
5025 # include <assert.h>
5026 #endif
5027                      Syntax error
5028 _ACEOF
5029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5031   ac_status=$?
5032   grep -v '^ *+' conftest.er1 >conftest.err
5033   rm -f conftest.er1
5034   cat conftest.err >&5
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); } >/dev/null; then
5037   if test -s conftest.err; then
5038     ac_cpp_err=$ac_cxx_preproc_warn_flag
5039     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5040   else
5041     ac_cpp_err=
5042   fi
5043 else
5044   ac_cpp_err=yes
5045 fi
5046 if test -z "$ac_cpp_err"; then
5047   :
5048 else
5049   echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5052   # Broken: fails on valid input.
5053 continue
5054 fi
5055 rm -f conftest.err conftest.$ac_ext
5057   # OK, works on sane cases.  Now check whether non-existent headers
5058   # can be detected and how.
5059   cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h.  */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h.  */
5065 #include <ac_nonexistent.h>
5066 _ACEOF
5067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5069   ac_status=$?
5070   grep -v '^ *+' conftest.er1 >conftest.err
5071   rm -f conftest.er1
5072   cat conftest.err >&5
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } >/dev/null; then
5075   if test -s conftest.err; then
5076     ac_cpp_err=$ac_cxx_preproc_warn_flag
5077     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5078   else
5079     ac_cpp_err=
5080   fi
5081 else
5082   ac_cpp_err=yes
5083 fi
5084 if test -z "$ac_cpp_err"; then
5085   # Broken: success on invalid input.
5086 continue
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091   # Passes both tests.
5092 ac_preproc_ok=:
5093 break
5094 fi
5095 rm -f conftest.err conftest.$ac_ext
5097 done
5098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5099 rm -f conftest.err conftest.$ac_ext
5100 if $ac_preproc_ok; then
5101   break
5102 fi
5104     done
5105     ac_cv_prog_CXXCPP=$CXXCPP
5107 fi
5108   CXXCPP=$ac_cv_prog_CXXCPP
5109 else
5110   ac_cv_prog_CXXCPP=$CXXCPP
5111 fi
5112 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5113 echo "${ECHO_T}$CXXCPP" >&6
5114 ac_preproc_ok=false
5115 for ac_cxx_preproc_warn_flag in '' yes
5116 do
5117   # Use a header file that comes with gcc, so configuring glibc
5118   # with a fresh cross-compiler works.
5119   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5120   # <limits.h> exists even on freestanding compilers.
5121   # On the NeXT, cc -E runs the code through the compiler's parser,
5122   # not just through cpp. "Syntax error" is here to catch this case.
5123   cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 #ifdef __STDC__
5130 # include <limits.h>
5131 #else
5132 # include <assert.h>
5133 #endif
5134                      Syntax error
5135 _ACEOF
5136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5138   ac_status=$?
5139   grep -v '^ *+' conftest.er1 >conftest.err
5140   rm -f conftest.er1
5141   cat conftest.err >&5
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } >/dev/null; then
5144   if test -s conftest.err; then
5145     ac_cpp_err=$ac_cxx_preproc_warn_flag
5146     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5147   else
5148     ac_cpp_err=
5149   fi
5150 else
5151   ac_cpp_err=yes
5152 fi
5153 if test -z "$ac_cpp_err"; then
5154   :
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159   # Broken: fails on valid input.
5160 continue
5161 fi
5162 rm -f conftest.err conftest.$ac_ext
5164   # OK, works on sane cases.  Now check whether non-existent headers
5165   # can be detected and how.
5166   cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h.  */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h.  */
5172 #include <ac_nonexistent.h>
5173 _ACEOF
5174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5176   ac_status=$?
5177   grep -v '^ *+' conftest.er1 >conftest.err
5178   rm -f conftest.er1
5179   cat conftest.err >&5
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } >/dev/null; then
5182   if test -s conftest.err; then
5183     ac_cpp_err=$ac_cxx_preproc_warn_flag
5184     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5185   else
5186     ac_cpp_err=
5187   fi
5188 else
5189   ac_cpp_err=yes
5190 fi
5191 if test -z "$ac_cpp_err"; then
5192   # Broken: success on invalid input.
5193 continue
5194 else
5195   echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198   # Passes both tests.
5199 ac_preproc_ok=:
5200 break
5201 fi
5202 rm -f conftest.err conftest.$ac_ext
5204 done
5205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5206 rm -f conftest.err conftest.$ac_ext
5207 if $ac_preproc_ok; then
5208   :
5209 else
5210   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5211 See \`config.log' for more details." >&5
5212 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5213 See \`config.log' for more details." >&2;}
5214    { (exit 1); exit 1; }; }
5215 fi
5217 ac_ext=cc
5218 ac_cpp='$CXXCPP $CPPFLAGS'
5219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5223 fi
5227 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5229 # find the maximum length of command line arguments
5230 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5231 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5232 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235     i=0
5236   teststring="ABCD"
5238   case $build_os in
5239   msdosdjgpp*)
5240     # On DJGPP, this test can blow up pretty badly due to problems in libc
5241     # (any single argument exceeding 2000 bytes causes a buffer overrun
5242     # during glob expansion).  Even if it were fixed, the result of this
5243     # check would be larger than it should be.
5244     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5245     ;;
5247   gnu*)
5248     # Under GNU Hurd, this test is not required because there is
5249     # no limit to the length of command line arguments.
5250     # Libtool will interpret -1 as no limit whatsoever
5251     lt_cv_sys_max_cmd_len=-1;
5252     ;;
5254   cygwin* | mingw*)
5255     # On Win9x/ME, this test blows up -- it succeeds, but takes
5256     # about 5 minutes as the teststring grows exponentially.
5257     # Worse, since 9x/ME are not pre-emptively multitasking,
5258     # you end up with a "frozen" computer, even though with patience
5259     # the test eventually succeeds (with a max line length of 256k).
5260     # Instead, let's just punt: use the minimum linelength reported by
5261     # all of the supported platforms: 8192 (on NT/2K/XP).
5262     lt_cv_sys_max_cmd_len=8192;
5263     ;;
5265   amigaos*)
5266     # On AmigaOS with pdksh, this test takes hours, literally.
5267     # So we just punt and use a minimum line length of 8192.
5268     lt_cv_sys_max_cmd_len=8192;
5269     ;;
5271   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5272     # This has been around since 386BSD, at least.  Likely further.
5273     if test -x /sbin/sysctl; then
5274       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5275     elif test -x /usr/sbin/sysctl; then
5276       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5277     else
5278       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5279     fi
5280     # And add a safety zone
5281     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5282     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5283     ;;
5285   interix*)
5286     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5287     lt_cv_sys_max_cmd_len=196608
5288     ;;
5290   osf*)
5291     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5292     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5293     # nice to cause kernel panics so lets avoid the loop below.
5294     # First set a reasonable default.
5295     lt_cv_sys_max_cmd_len=16384
5296     #
5297     if test -x /sbin/sysconfig; then
5298       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5299         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5300       esac
5301     fi
5302     ;;
5303   sco3.2v5*)
5304     lt_cv_sys_max_cmd_len=102400
5305     ;;
5306   sysv5* | sco5v6* | sysv4.2uw2*)
5307     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5308     if test -n "$kargmax"; then
5309       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5310     else
5311       lt_cv_sys_max_cmd_len=32768
5312     fi
5313     ;;
5314   *)
5315     # If test is not a shell built-in, we'll probably end up computing a
5316     # maximum length that is only half of the actual maximum length, but
5317     # we can't tell.
5318     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5319     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5320                = "XX$teststring") >/dev/null 2>&1 &&
5321             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5322             lt_cv_sys_max_cmd_len=$new_result &&
5323             test $i != 17 # 1/2 MB should be enough
5324     do
5325       i=`expr $i + 1`
5326       teststring=$teststring$teststring
5327     done
5328     teststring=
5329     # Add a significant safety factor because C++ compilers can tack on massive
5330     # amounts of additional arguments before passing them to the linker.
5331     # It appears as though 1/2 is a usable value.
5332     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5333     ;;
5334   esac
5336 fi
5338 if test -n $lt_cv_sys_max_cmd_len ; then
5339   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5340 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5341 else
5342   echo "$as_me:$LINENO: result: none" >&5
5343 echo "${ECHO_T}none" >&6
5344 fi
5349 # Check for command to grab the raw symbol name followed by C symbol from nm.
5350 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5351 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5352 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5353   echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5356 # These are sane defaults that work on at least a few old systems.
5357 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5359 # Character class describing NM global symbol codes.
5360 symcode='[BCDEGRST]'
5362 # Regexp to match symbols that can be accessed directly from C.
5363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5365 # Transform an extracted symbol line into a proper C declaration
5366 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5368 # Transform an extracted symbol line into symbol name and symbol address
5369 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'"
5371 # Define system-specific variables.
5372 case $host_os in
5373 aix*)
5374   symcode='[BCDT]'
5375   ;;
5376 cygwin* | mingw* | pw32*)
5377   symcode='[ABCDGISTW]'
5378   ;;
5379 hpux*) # Its linker distinguishes data from code symbols
5380   if test "$host_cpu" = ia64; then
5381     symcode='[ABCDEGRST]'
5382   fi
5383   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5384   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'"
5385   ;;
5386 linux*)
5387   if test "$host_cpu" = ia64; then
5388     symcode='[ABCDGIRSTW]'
5389     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5390     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'"
5391   fi
5392   ;;
5393 irix* | nonstopux*)
5394   symcode='[BCDEGRST]'
5395   ;;
5396 osf*)
5397   symcode='[BCDEGQRST]'
5398   ;;
5399 solaris*)
5400   symcode='[BDRT]'
5401   ;;
5402 sco3.2v5*)
5403   symcode='[DT]'
5404   ;;
5405 sysv4.2uw2*)
5406   symcode='[DT]'
5407   ;;
5408 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5409   symcode='[ABDT]'
5410   ;;
5411 sysv4)
5412   symcode='[DFNSTU]'
5413   ;;
5414 esac
5416 # Handle CRLF in mingw tool chain
5417 opt_cr=
5418 case $build_os in
5419 mingw*)
5420   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5421   ;;
5422 esac
5424 # If we're using GNU nm, then use its standard symbol codes.
5425 case `$NM -V 2>&1` in
5426 *GNU* | *'with BFD'*)
5427   symcode='[ABCDGIRSTW]' ;;
5428 esac
5430 # Try without a prefix undercore, then with it.
5431 for ac_symprfx in "" "_"; do
5433   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5434   symxfrm="\\1 $ac_symprfx\\2 \\2"
5436   # Write the raw and C identifiers.
5437   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5439   # Check to see that the pipe works correctly.
5440   pipe_works=no
5442   rm -f conftest*
5443   cat > conftest.$ac_ext <<EOF
5444 #ifdef __cplusplus
5445 extern "C" {
5446 #endif
5447 char nm_test_var;
5448 void nm_test_func(){}
5449 #ifdef __cplusplus
5451 #endif
5452 int main(){nm_test_var='a';nm_test_func();return(0);}
5453 EOF
5455   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456   (eval $ac_compile) 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; then
5460     # Now try to grab the symbols.
5461     nlist=conftest.nm
5462     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5463   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); } && test -s "$nlist"; then
5467       # Try sorting and uniquifying the output.
5468       if sort "$nlist" | uniq > "$nlist"T; then
5469         mv -f "$nlist"T "$nlist"
5470       else
5471         rm -f "$nlist"T
5472       fi
5474       # Make sure that we snagged all the symbols we need.
5475       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5476         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5477           cat <<EOF > conftest.$ac_ext
5478 #ifdef __cplusplus
5479 extern "C" {
5480 #endif
5482 EOF
5483           # Now generate the symbol file.
5484           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5486           cat <<EOF >> conftest.$ac_ext
5487 #if defined (__STDC__) && __STDC__
5488 # define lt_ptr_t void *
5489 #else
5490 # define lt_ptr_t char *
5491 # define const
5492 #endif
5494 /* The mapping between symbol names and symbols. */
5495 const struct {
5496   const char *name;
5497   lt_ptr_t address;
5499 lt_preloaded_symbols[] =
5501 EOF
5502           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5503           cat <<\EOF >> conftest.$ac_ext
5504   {0, (lt_ptr_t) 0}
5505 };
5507 #ifdef __cplusplus
5509 #endif
5510 EOF
5511           # Now try linking the two files.
5512           mv conftest.$ac_objext conftstm.$ac_objext
5513           lt_save_LIBS="$LIBS"
5514           lt_save_CFLAGS="$CFLAGS"
5515           LIBS="conftstm.$ac_objext"
5516           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5517           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5518   (eval $ac_link) 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5522             pipe_works=yes
5523           fi
5524           LIBS="$lt_save_LIBS"
5525           CFLAGS="$lt_save_CFLAGS"
5526         else
5527           echo "cannot find nm_test_func in $nlist" >&5
5528         fi
5529       else
5530         echo "cannot find nm_test_var in $nlist" >&5
5531       fi
5532     else
5533       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5534     fi
5535   else
5536     echo "$progname: failed program was:" >&5
5537     cat conftest.$ac_ext >&5
5538   fi
5539   rm -f conftest* conftst*
5541   # Do not use the global_symbol_pipe unless it works.
5542   if test "$pipe_works" = yes; then
5543     break
5544   else
5545     lt_cv_sys_global_symbol_pipe=
5546   fi
5547 done
5549 fi
5551 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5552   lt_cv_sys_global_symbol_to_cdecl=
5553 fi
5554 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5555   echo "$as_me:$LINENO: result: failed" >&5
5556 echo "${ECHO_T}failed" >&6
5557 else
5558   echo "$as_me:$LINENO: result: ok" >&5
5559 echo "${ECHO_T}ok" >&6
5560 fi
5562 echo "$as_me:$LINENO: checking for objdir" >&5
5563 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5564 if test "${lt_cv_objdir+set}" = set; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567   rm -f .libs 2>/dev/null
5568 mkdir .libs 2>/dev/null
5569 if test -d .libs; then
5570   lt_cv_objdir=.libs
5571 else
5572   # MS-DOS does not allow filenames that begin with a dot.
5573   lt_cv_objdir=_libs
5574 fi
5575 rmdir .libs 2>/dev/null
5576 fi
5577 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5578 echo "${ECHO_T}$lt_cv_objdir" >&6
5579 objdir=$lt_cv_objdir
5585 case $host_os in
5586 aix3*)
5587   # AIX sometimes has problems with the GCC collect2 program.  For some
5588   # reason, if we set the COLLECT_NAMES environment variable, the problems
5589   # vanish in a puff of smoke.
5590   if test "X${COLLECT_NAMES+set}" != Xset; then
5591     COLLECT_NAMES=
5592     export COLLECT_NAMES
5593   fi
5594   ;;
5595 esac
5597 # Sed substitution that helps us do robust quoting.  It backslashifies
5598 # metacharacters that are still active within double-quoted strings.
5599 Xsed='sed -e 1s/^X//'
5600 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5602 # Same as above, but do not quote variable references.
5603 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5605 # Sed substitution to delay expansion of an escaped shell variable in a
5606 # double_quote_subst'ed string.
5607 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5609 # Sed substitution to avoid accidental globbing in evaled expressions
5610 no_glob_subst='s/\*/\\\*/g'
5612 # Constants:
5613 rm="rm -f"
5615 # Global variables:
5616 default_ofile=libtool
5617 can_build_shared=yes
5619 # All known linkers require a `.a' archive for static linking (except MSVC,
5620 # which needs '.lib').
5621 libext=a
5622 ltmain="$ac_aux_dir/ltmain.sh"
5623 ofile="$default_ofile"
5624 with_gnu_ld="$lt_cv_prog_gnu_ld"
5626 if test -n "$ac_tool_prefix"; then
5627   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5628 set dummy ${ac_tool_prefix}ar; ac_word=$2
5629 echo "$as_me:$LINENO: checking for $ac_word" >&5
5630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5631 if test "${ac_cv_prog_AR+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   if test -n "$AR"; then
5635   ac_cv_prog_AR="$AR" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640   IFS=$as_save_IFS
5641   test -z "$as_dir" && as_dir=.
5642   for ac_exec_ext in '' $ac_executable_extensions; do
5643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644     ac_cv_prog_AR="${ac_tool_prefix}ar"
5645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646     break 2
5647   fi
5648 done
5649 done
5651 fi
5652 fi
5653 AR=$ac_cv_prog_AR
5654 if test -n "$AR"; then
5655   echo "$as_me:$LINENO: result: $AR" >&5
5656 echo "${ECHO_T}$AR" >&6
5657 else
5658   echo "$as_me:$LINENO: result: no" >&5
5659 echo "${ECHO_T}no" >&6
5660 fi
5662 fi
5663 if test -z "$ac_cv_prog_AR"; then
5664   ac_ct_AR=$AR
5665   # Extract the first word of "ar", so it can be a program name with args.
5666 set dummy ar; ac_word=$2
5667 echo "$as_me:$LINENO: checking for $ac_word" >&5
5668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5669 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   if test -n "$ac_ct_AR"; then
5673   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678   IFS=$as_save_IFS
5679   test -z "$as_dir" && as_dir=.
5680   for ac_exec_ext in '' $ac_executable_extensions; do
5681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682     ac_cv_prog_ac_ct_AR="ar"
5683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684     break 2
5685   fi
5686 done
5687 done
5689   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5690 fi
5691 fi
5692 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5693 if test -n "$ac_ct_AR"; then
5694   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5695 echo "${ECHO_T}$ac_ct_AR" >&6
5696 else
5697   echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6
5699 fi
5701   AR=$ac_ct_AR
5702 else
5703   AR="$ac_cv_prog_AR"
5704 fi
5706 if test -n "$ac_tool_prefix"; then
5707   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5709 echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5711 if test "${ac_cv_prog_RANLIB+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   if test -n "$RANLIB"; then
5715   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722   for ac_exec_ext in '' $ac_executable_extensions; do
5723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729 done
5731 fi
5732 fi
5733 RANLIB=$ac_cv_prog_RANLIB
5734 if test -n "$RANLIB"; then
5735   echo "$as_me:$LINENO: result: $RANLIB" >&5
5736 echo "${ECHO_T}$RANLIB" >&6
5737 else
5738   echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6
5740 fi
5742 fi
5743 if test -z "$ac_cv_prog_RANLIB"; then
5744   ac_ct_RANLIB=$RANLIB
5745   # Extract the first word of "ranlib", so it can be a program name with args.
5746 set dummy ranlib; ac_word=$2
5747 echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5749 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$ac_ct_RANLIB"; then
5753   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760   for ac_exec_ext in '' $ac_executable_extensions; do
5761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762     ac_cv_prog_ac_ct_RANLIB="ranlib"
5763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767 done
5769   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5770 fi
5771 fi
5772 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5773 if test -n "$ac_ct_RANLIB"; then
5774   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5775 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5776 else
5777   echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5779 fi
5781   RANLIB=$ac_ct_RANLIB
5782 else
5783   RANLIB="$ac_cv_prog_RANLIB"
5784 fi
5786 if test -n "$ac_tool_prefix"; then
5787   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5788 set dummy ${ac_tool_prefix}strip; ac_word=$2
5789 echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5791 if test "${ac_cv_prog_STRIP+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   if test -n "$STRIP"; then
5795   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800   IFS=$as_save_IFS
5801   test -z "$as_dir" && as_dir=.
5802   for ac_exec_ext in '' $ac_executable_extensions; do
5803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806     break 2
5807   fi
5808 done
5809 done
5811 fi
5812 fi
5813 STRIP=$ac_cv_prog_STRIP
5814 if test -n "$STRIP"; then
5815   echo "$as_me:$LINENO: result: $STRIP" >&5
5816 echo "${ECHO_T}$STRIP" >&6
5817 else
5818   echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5820 fi
5822 fi
5823 if test -z "$ac_cv_prog_STRIP"; then
5824   ac_ct_STRIP=$STRIP
5825   # Extract the first word of "strip", so it can be a program name with args.
5826 set dummy strip; ac_word=$2
5827 echo "$as_me:$LINENO: checking for $ac_word" >&5
5828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5829 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   if test -n "$ac_ct_STRIP"; then
5833   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840   for ac_exec_ext in '' $ac_executable_extensions; do
5841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842     ac_cv_prog_ac_ct_STRIP="strip"
5843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847 done
5849   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5850 fi
5851 fi
5852 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5853 if test -n "$ac_ct_STRIP"; then
5854   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5855 echo "${ECHO_T}$ac_ct_STRIP" >&6
5856 else
5857   echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5859 fi
5861   STRIP=$ac_ct_STRIP
5862 else
5863   STRIP="$ac_cv_prog_STRIP"
5864 fi
5867 old_CC="$CC"
5868 old_CFLAGS="$CFLAGS"
5870 # Set sane defaults for various variables
5871 test -z "$AR" && AR=ar
5872 test -z "$AR_FLAGS" && AR_FLAGS=cru
5873 test -z "$AS" && AS=as
5874 test -z "$CC" && CC=cc
5875 test -z "$LTCC" && LTCC=$CC
5876 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5877 test -z "$DLLTOOL" && DLLTOOL=dlltool
5878 test -z "$LD" && LD=ld
5879 test -z "$LN_S" && LN_S="ln -s"
5880 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5881 test -z "$NM" && NM=nm
5882 test -z "$SED" && SED=sed
5883 test -z "$OBJDUMP" && OBJDUMP=objdump
5884 test -z "$RANLIB" && RANLIB=:
5885 test -z "$STRIP" && STRIP=:
5886 test -z "$ac_objext" && ac_objext=o
5888 # Determine commands to create old-style static archives.
5889 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5890 old_postinstall_cmds='chmod 644 $oldlib'
5891 old_postuninstall_cmds=
5893 if test -n "$RANLIB"; then
5894   case $host_os in
5895   openbsd*)
5896     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5897     ;;
5898   *)
5899     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5900     ;;
5901   esac
5902   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5903 fi
5905 for cc_temp in $compiler""; do
5906   case $cc_temp in
5907     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5908     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5909     \-*) ;;
5910     *) break;;
5911   esac
5912 done
5913 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5916 # Only perform the check for file, if the check method requires it
5917 case $deplibs_check_method in
5918 file_magic*)
5919   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5920     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5921 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5922 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   case $MAGIC_CMD in
5926 [\\/*] |  ?:[\\/]*)
5927   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5928   ;;
5929 *)
5930   lt_save_MAGIC_CMD="$MAGIC_CMD"
5931   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5932   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5933   for ac_dir in $ac_dummy; do
5934     IFS="$lt_save_ifs"
5935     test -z "$ac_dir" && ac_dir=.
5936     if test -f $ac_dir/${ac_tool_prefix}file; then
5937       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5938       if test -n "$file_magic_test_file"; then
5939         case $deplibs_check_method in
5940         "file_magic "*)
5941           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5942           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5943           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5944             $EGREP "$file_magic_regex" > /dev/null; then
5945             :
5946           else
5947             cat <<EOF 1>&2
5949 *** Warning: the command libtool uses to detect shared libraries,
5950 *** $file_magic_cmd, produces output that libtool cannot recognize.
5951 *** The result is that libtool may fail to recognize shared libraries
5952 *** as such.  This will affect the creation of libtool libraries that
5953 *** depend on shared libraries, but programs linked with such libtool
5954 *** libraries will work regardless of this problem.  Nevertheless, you
5955 *** may want to report the problem to your system manager and/or to
5956 *** bug-libtool@gnu.org
5958 EOF
5959           fi ;;
5960         esac
5961       fi
5962       break
5963     fi
5964   done
5965   IFS="$lt_save_ifs"
5966   MAGIC_CMD="$lt_save_MAGIC_CMD"
5967   ;;
5968 esac
5969 fi
5971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5972 if test -n "$MAGIC_CMD"; then
5973   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5974 echo "${ECHO_T}$MAGIC_CMD" >&6
5975 else
5976   echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5978 fi
5980 if test -z "$lt_cv_path_MAGIC_CMD"; then
5981   if test -n "$ac_tool_prefix"; then
5982     echo "$as_me:$LINENO: checking for file" >&5
5983 echo $ECHO_N "checking for file... $ECHO_C" >&6
5984 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   case $MAGIC_CMD in
5988 [\\/*] |  ?:[\\/]*)
5989   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5990   ;;
5991 *)
5992   lt_save_MAGIC_CMD="$MAGIC_CMD"
5993   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5994   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5995   for ac_dir in $ac_dummy; do
5996     IFS="$lt_save_ifs"
5997     test -z "$ac_dir" && ac_dir=.
5998     if test -f $ac_dir/file; then
5999       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6000       if test -n "$file_magic_test_file"; then
6001         case $deplibs_check_method in
6002         "file_magic "*)
6003           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6004           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6005           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6006             $EGREP "$file_magic_regex" > /dev/null; then
6007             :
6008           else
6009             cat <<EOF 1>&2
6011 *** Warning: the command libtool uses to detect shared libraries,
6012 *** $file_magic_cmd, produces output that libtool cannot recognize.
6013 *** The result is that libtool may fail to recognize shared libraries
6014 *** as such.  This will affect the creation of libtool libraries that
6015 *** depend on shared libraries, but programs linked with such libtool
6016 *** libraries will work regardless of this problem.  Nevertheless, you
6017 *** may want to report the problem to your system manager and/or to
6018 *** bug-libtool@gnu.org
6020 EOF
6021           fi ;;
6022         esac
6023       fi
6024       break
6025     fi
6026   done
6027   IFS="$lt_save_ifs"
6028   MAGIC_CMD="$lt_save_MAGIC_CMD"
6029   ;;
6030 esac
6031 fi
6033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6034 if test -n "$MAGIC_CMD"; then
6035   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6036 echo "${ECHO_T}$MAGIC_CMD" >&6
6037 else
6038   echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6040 fi
6042   else
6043     MAGIC_CMD=:
6044   fi
6045 fi
6047   fi
6048   ;;
6049 esac
6051 enable_dlopen=no
6052 enable_win32_dll=no
6054 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6055 if test "${enable_libtool_lock+set}" = set; then
6056   enableval="$enable_libtool_lock"
6058 fi;
6059 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6062 # Check whether --with-pic or --without-pic was given.
6063 if test "${with_pic+set}" = set; then
6064   withval="$with_pic"
6065   pic_mode="$withval"
6066 else
6067   pic_mode=default
6068 fi;
6069 test -z "$pic_mode" && pic_mode=default
6071 # Use C for the default configuration in the libtool script
6072 tagname=
6073 lt_save_CC="$CC"
6074 ac_ext=c
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6081 # Source file extension for C test sources.
6082 ac_ext=c
6084 # Object file extension for compiled C test sources.
6085 objext=o
6086 objext=$objext
6088 # Code to be used in simple compile tests
6089 lt_simple_compile_test_code="int some_variable = 0;\n"
6091 # Code to be used in simple link tests
6092 lt_simple_link_test_code='int main(){return(0);}\n'
6095 # If no C compiler was specified, use CC.
6096 LTCC=${LTCC-"$CC"}
6098 # If no C compiler flags were specified, use CFLAGS.
6099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6101 # Allow CC to be a program name with arguments.
6102 compiler=$CC
6105 # save warnings/boilerplate of simple test code
6106 ac_outfile=conftest.$ac_objext
6107 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6109 _lt_compiler_boilerplate=`cat conftest.err`
6110 $rm conftest*
6112 ac_outfile=conftest.$ac_objext
6113 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6115 _lt_linker_boilerplate=`cat conftest.err`
6116 $rm conftest*
6120 lt_prog_compiler_no_builtin_flag=
6122 if test "$GCC" = yes; then
6123   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6126 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6127 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6128 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6129   echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131   lt_cv_prog_compiler_rtti_exceptions=no
6132   ac_outfile=conftest.$ac_objext
6133    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6134    lt_compiler_flag="-fno-rtti -fno-exceptions"
6135    # Insert the option either (1) after the last *FLAGS variable, or
6136    # (2) before a word containing "conftest.", or (3) at the end.
6137    # Note that $ac_compile itself does not contain backslashes and begins
6138    # with a dollar sign (not a hyphen), so the echo should work correctly.
6139    # The option is referenced via a variable to avoid confusing sed.
6140    lt_compile=`echo "$ac_compile" | $SED \
6141    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6142    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6143    -e 's:$: $lt_compiler_flag:'`
6144    (eval echo "\"\$as_me:6144: $lt_compile\"" >&5)
6145    (eval "$lt_compile" 2>conftest.err)
6146    ac_status=$?
6147    cat conftest.err >&5
6148    echo "$as_me:6148: \$? = $ac_status" >&5
6149    if (exit $ac_status) && test -s "$ac_outfile"; then
6150      # The compiler can only warn and ignore the option if not recognized
6151      # So say no if there are warnings other than the usual output.
6152      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6153      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6154      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6155        lt_cv_prog_compiler_rtti_exceptions=yes
6156      fi
6157    fi
6158    $rm conftest*
6160 fi
6161 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6162 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6164 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6165     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6166 else
6167     :
6168 fi
6170 fi
6172 lt_prog_compiler_wl=
6173 lt_prog_compiler_pic=
6174 lt_prog_compiler_static=
6176 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6177 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6179   if test "$GCC" = yes; then
6180     lt_prog_compiler_wl='-Wl,'
6181     lt_prog_compiler_static='-static'
6183     case $host_os in
6184       aix*)
6185       # All AIX code is PIC.
6186       if test "$host_cpu" = ia64; then
6187         # AIX 5 now supports IA64 processor
6188         lt_prog_compiler_static='-Bstatic'
6189       fi
6190       ;;
6192     amigaos*)
6193       # FIXME: we need at least 68020 code to build shared libraries, but
6194       # adding the `-m68020' flag to GCC prevents building anything better,
6195       # like `-m68040'.
6196       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6197       ;;
6199     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6200       # PIC is the default for these OSes.
6201       ;;
6203     mingw* | pw32* | os2*)
6204       # This hack is so that the source file can tell whether it is being
6205       # built for inclusion in a dll (and should export symbols for example).
6206       lt_prog_compiler_pic='-DDLL_EXPORT'
6207       ;;
6209     darwin* | rhapsody*)
6210       # PIC is the default on this platform
6211       # Common symbols not allowed in MH_DYLIB files
6212       lt_prog_compiler_pic='-fno-common'
6213       ;;
6215     interix3*)
6216       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6217       # Instead, we relocate shared libraries at runtime.
6218       ;;
6220     msdosdjgpp*)
6221       # Just because we use GCC doesn't mean we suddenly get shared libraries
6222       # on systems that don't support them.
6223       lt_prog_compiler_can_build_shared=no
6224       enable_shared=no
6225       ;;
6227     sysv4*MP*)
6228       if test -d /usr/nec; then
6229         lt_prog_compiler_pic=-Kconform_pic
6230       fi
6231       ;;
6233     hpux*)
6234       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6235       # not for PA HP-UX.
6236       case $host_cpu in
6237       hppa*64*|ia64*)
6238         # +Z the default
6239         ;;
6240       *)
6241         lt_prog_compiler_pic='-fPIC'
6242         ;;
6243       esac
6244       ;;
6246     *)
6247       lt_prog_compiler_pic='-fPIC'
6248       ;;
6249     esac
6250   else
6251     # PORTME Check for flag to pass linker flags through the system compiler.
6252     case $host_os in
6253     aix*)
6254       lt_prog_compiler_wl='-Wl,'
6255       if test "$host_cpu" = ia64; then
6256         # AIX 5 now supports IA64 processor
6257         lt_prog_compiler_static='-Bstatic'
6258       else
6259         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6260       fi
6261       ;;
6262       darwin*)
6263         # PIC is the default on this platform
6264         # Common symbols not allowed in MH_DYLIB files
6265        case $cc_basename in
6266          xlc*)
6267          lt_prog_compiler_pic='-qnocommon'
6268          lt_prog_compiler_wl='-Wl,'
6269          ;;
6270        esac
6271        ;;
6273     mingw* | pw32* | os2*)
6274       # This hack is so that the source file can tell whether it is being
6275       # built for inclusion in a dll (and should export symbols for example).
6276       lt_prog_compiler_pic='-DDLL_EXPORT'
6277       ;;
6279     hpux9* | hpux10* | hpux11*)
6280       lt_prog_compiler_wl='-Wl,'
6281       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6282       # not for PA HP-UX.
6283       case $host_cpu in
6284       hppa*64*|ia64*)
6285         # +Z the default
6286         ;;
6287       *)
6288         lt_prog_compiler_pic='+Z'
6289         ;;
6290       esac
6291       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6292       lt_prog_compiler_static='${wl}-a ${wl}archive'
6293       ;;
6295     irix5* | irix6* | nonstopux*)
6296       lt_prog_compiler_wl='-Wl,'
6297       # PIC (with -KPIC) is the default.
6298       lt_prog_compiler_static='-non_shared'
6299       ;;
6301     newsos6)
6302       lt_prog_compiler_pic='-KPIC'
6303       lt_prog_compiler_static='-Bstatic'
6304       ;;
6306     linux*)
6307       case $cc_basename in
6308       icc* | ecc*)
6309         lt_prog_compiler_wl='-Wl,'
6310         lt_prog_compiler_pic='-KPIC'
6311         lt_prog_compiler_static='-static'
6312         ;;
6313       pgcc* | pgf77* | pgf90* | pgf95*)
6314         # Portland Group compilers (*not* the Pentium gcc compiler,
6315         # which looks to be a dead project)
6316         lt_prog_compiler_wl='-Wl,'
6317         lt_prog_compiler_pic='-fpic'
6318         lt_prog_compiler_static='-Bstatic'
6319         ;;
6320       ccc*)
6321         lt_prog_compiler_wl='-Wl,'
6322         # All Alpha code is PIC.
6323         lt_prog_compiler_static='-non_shared'
6324         ;;
6325       esac
6326       ;;
6328     osf3* | osf4* | osf5*)
6329       lt_prog_compiler_wl='-Wl,'
6330       # All OSF/1 code is PIC.
6331       lt_prog_compiler_static='-non_shared'
6332       ;;
6334     solaris*)
6335       lt_prog_compiler_pic='-KPIC'
6336       lt_prog_compiler_static='-Bstatic'
6337       case $cc_basename in
6338       f77* | f90* | f95*)
6339         lt_prog_compiler_wl='-Qoption ld ';;
6340       *)
6341         lt_prog_compiler_wl='-Wl,';;
6342       esac
6343       ;;
6345     sunos4*)
6346       lt_prog_compiler_wl='-Qoption ld '
6347       lt_prog_compiler_pic='-PIC'
6348       lt_prog_compiler_static='-Bstatic'
6349       ;;
6351     sysv4 | sysv4.2uw2* | sysv4.3*)
6352       lt_prog_compiler_wl='-Wl,'
6353       lt_prog_compiler_pic='-KPIC'
6354       lt_prog_compiler_static='-Bstatic'
6355       ;;
6357     sysv4*MP*)
6358       if test -d /usr/nec ;then
6359         lt_prog_compiler_pic='-Kconform_pic'
6360         lt_prog_compiler_static='-Bstatic'
6361       fi
6362       ;;
6364     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6365       lt_prog_compiler_wl='-Wl,'
6366       lt_prog_compiler_pic='-KPIC'
6367       lt_prog_compiler_static='-Bstatic'
6368       ;;
6370     unicos*)
6371       lt_prog_compiler_wl='-Wl,'
6372       lt_prog_compiler_can_build_shared=no
6373       ;;
6375     uts4*)
6376       lt_prog_compiler_pic='-pic'
6377       lt_prog_compiler_static='-Bstatic'
6378       ;;
6380     *)
6381       lt_prog_compiler_can_build_shared=no
6382       ;;
6383     esac
6384   fi
6386 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6387 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6390 # Check to make sure the PIC flag actually works.
6392 if test -n "$lt_prog_compiler_pic"; then
6394 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6396 if test "${lt_prog_compiler_pic_works+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   lt_prog_compiler_pic_works=no
6400   ac_outfile=conftest.$ac_objext
6401    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6402    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6403    # Insert the option either (1) after the last *FLAGS variable, or
6404    # (2) before a word containing "conftest.", or (3) at the end.
6405    # Note that $ac_compile itself does not contain backslashes and begins
6406    # with a dollar sign (not a hyphen), so the echo should work correctly.
6407    # The option is referenced via a variable to avoid confusing sed.
6408    lt_compile=`echo "$ac_compile" | $SED \
6409    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6410    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6411    -e 's:$: $lt_compiler_flag:'`
6412    (eval echo "\"\$as_me:6412: $lt_compile\"" >&5)
6413    (eval "$lt_compile" 2>conftest.err)
6414    ac_status=$?
6415    cat conftest.err >&5
6416    echo "$as_me:6416: \$? = $ac_status" >&5
6417    if (exit $ac_status) && test -s "$ac_outfile"; then
6418      # The compiler can only warn and ignore the option if not recognized
6419      # So say no if there are warnings other than the usual output.
6420      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6421      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6422      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6423        lt_prog_compiler_pic_works=yes
6424      fi
6425    fi
6426    $rm conftest*
6428 fi
6429 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6430 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6432 if test x"$lt_prog_compiler_pic_works" = xyes; then
6433     case $lt_prog_compiler_pic in
6434      "" | " "*) ;;
6435      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6436      esac
6437 else
6438     lt_prog_compiler_pic=
6439      lt_prog_compiler_can_build_shared=no
6440 fi
6442 fi
6443 case $host_os in
6444   # For platforms which do not support PIC, -DPIC is meaningless:
6445   *djgpp*)
6446     lt_prog_compiler_pic=
6447     ;;
6448   *)
6449     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6450     ;;
6451 esac
6454 # Check to make sure the static flag actually works.
6456 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6457 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6458 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6459 if test "${lt_prog_compiler_static_works+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   lt_prog_compiler_static_works=no
6463    save_LDFLAGS="$LDFLAGS"
6464    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6465    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6466    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6467      # The linker can only warn and ignore the option if not recognized
6468      # So say no if there are warnings
6469      if test -s conftest.err; then
6470        # Append any errors to the config.log.
6471        cat conftest.err 1>&5
6472        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6473        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6474        if diff conftest.exp conftest.er2 >/dev/null; then
6475          lt_prog_compiler_static_works=yes
6476        fi
6477      else
6478        lt_prog_compiler_static_works=yes
6479      fi
6480    fi
6481    $rm conftest*
6482    LDFLAGS="$save_LDFLAGS"
6484 fi
6485 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6486 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6488 if test x"$lt_prog_compiler_static_works" = xyes; then
6489     :
6490 else
6491     lt_prog_compiler_static=
6492 fi
6495 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6496 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6497 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6498   echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500   lt_cv_prog_compiler_c_o=no
6501    $rm -r conftest 2>/dev/null
6502    mkdir conftest
6503    cd conftest
6504    mkdir out
6505    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6507    lt_compiler_flag="-o out/conftest2.$ac_objext"
6508    # Insert the option either (1) after the last *FLAGS variable, or
6509    # (2) before a word containing "conftest.", or (3) at the end.
6510    # Note that $ac_compile itself does not contain backslashes and begins
6511    # with a dollar sign (not a hyphen), so the echo should work correctly.
6512    lt_compile=`echo "$ac_compile" | $SED \
6513    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6514    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6515    -e 's:$: $lt_compiler_flag:'`
6516    (eval echo "\"\$as_me:6516: $lt_compile\"" >&5)
6517    (eval "$lt_compile" 2>out/conftest.err)
6518    ac_status=$?
6519    cat out/conftest.err >&5
6520    echo "$as_me:6520: \$? = $ac_status" >&5
6521    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6522    then
6523      # The compiler can only warn and ignore the option if not recognized
6524      # So say no if there are warnings
6525      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6526      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6527      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6528        lt_cv_prog_compiler_c_o=yes
6529      fi
6530    fi
6531    chmod u+w . 2>&5
6532    $rm conftest*
6533    # SGI C++ compiler will create directory out/ii_files/ for
6534    # template instantiation
6535    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6536    $rm out/* && rmdir out
6537    cd ..
6538    rmdir conftest
6539    $rm conftest*
6541 fi
6542 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6543 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6546 hard_links="nottested"
6547 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6548   # do not overwrite the value of need_locks provided by the user
6549   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6550 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6551   hard_links=yes
6552   $rm conftest*
6553   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6554   touch conftest.a
6555   ln conftest.a conftest.b 2>&5 || hard_links=no
6556   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6557   echo "$as_me:$LINENO: result: $hard_links" >&5
6558 echo "${ECHO_T}$hard_links" >&6
6559   if test "$hard_links" = no; then
6560     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6561 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6562     need_locks=warn
6563   fi
6564 else
6565   need_locks=no
6566 fi
6568 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6569 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6571   runpath_var=
6572   allow_undefined_flag=
6573   enable_shared_with_static_runtimes=no
6574   archive_cmds=
6575   archive_expsym_cmds=
6576   old_archive_From_new_cmds=
6577   old_archive_from_expsyms_cmds=
6578   export_dynamic_flag_spec=
6579   whole_archive_flag_spec=
6580   thread_safe_flag_spec=
6581   hardcode_libdir_flag_spec=
6582   hardcode_libdir_flag_spec_ld=
6583   hardcode_libdir_separator=
6584   hardcode_direct=no
6585   hardcode_minus_L=no
6586   hardcode_shlibpath_var=unsupported
6587   link_all_deplibs=unknown
6588   hardcode_automatic=no
6589   module_cmds=
6590   module_expsym_cmds=
6591   always_export_symbols=no
6592   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6593   # include_expsyms should be a list of space-separated symbols to be *always*
6594   # included in the symbol list
6595   include_expsyms=
6596   # exclude_expsyms can be an extended regexp of symbols to exclude
6597   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6598   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6599   # as well as any symbol that contains `d'.
6600   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6601   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6602   # platforms (ab)use it in PIC code, but their linkers get confused if
6603   # the symbol is explicitly referenced.  Since portable code cannot
6604   # rely on this symbol name, it's probably fine to never include it in
6605   # preloaded symbol tables.
6606   extract_expsyms_cmds=
6607   # Just being paranoid about ensuring that cc_basename is set.
6608   for cc_temp in $compiler""; do
6609   case $cc_temp in
6610     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6611     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6612     \-*) ;;
6613     *) break;;
6614   esac
6615 done
6616 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6618   case $host_os in
6619   cygwin* | mingw* | pw32*)
6620     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6621     # When not using gcc, we currently assume that we are using
6622     # Microsoft Visual C++.
6623     if test "$GCC" != yes; then
6624       with_gnu_ld=no
6625     fi
6626     ;;
6627   interix*)
6628     # we just hope/assume this is gcc and not c89 (= MSVC++)
6629     with_gnu_ld=yes
6630     ;;
6631   openbsd*)
6632     with_gnu_ld=no
6633     ;;
6634   esac
6636   ld_shlibs=yes
6637   if test "$with_gnu_ld" = yes; then
6638     # If archive_cmds runs LD, not CC, wlarc should be empty
6639     wlarc='${wl}'
6641     # Set some defaults for GNU ld with shared library support. These
6642     # are reset later if shared libraries are not supported. Putting them
6643     # here allows them to be overridden if necessary.
6644     runpath_var=LD_RUN_PATH
6645     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6646     export_dynamic_flag_spec='${wl}--export-dynamic'
6647     # ancient GNU ld didn't support --whole-archive et. al.
6648     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6649         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6650       else
6651         whole_archive_flag_spec=
6652     fi
6653     supports_anon_versioning=no
6654     case `$LD -v 2>/dev/null` in
6655       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6656       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6657       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6658       *\ 2.11.*) ;; # other 2.11 versions
6659       *) supports_anon_versioning=yes ;;
6660     esac
6662     # See if GNU ld supports shared libraries.
6663     case $host_os in
6664     aix3* | aix4* | aix5*)
6665       # On AIX/PPC, the GNU linker is very broken
6666       if test "$host_cpu" != ia64; then
6667         ld_shlibs=no
6668         cat <<EOF 1>&2
6670 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6671 *** to be unable to reliably create shared libraries on AIX.
6672 *** Therefore, libtool is disabling shared libraries support.  If you
6673 *** really care for shared libraries, you may want to modify your PATH
6674 *** so that a non-GNU linker is found, and then restart.
6676 EOF
6677       fi
6678       ;;
6680     amigaos*)
6681       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)'
6682       hardcode_libdir_flag_spec='-L$libdir'
6683       hardcode_minus_L=yes
6685       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6686       # that the semantics of dynamic libraries on AmigaOS, at least up
6687       # to version 4, is to share data among multiple programs linked
6688       # with the same dynamic library.  Since this doesn't match the
6689       # behavior of shared libraries on other platforms, we can't use
6690       # them.
6691       ld_shlibs=no
6692       ;;
6694     beos*)
6695       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6696         allow_undefined_flag=unsupported
6697         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6698         # support --undefined.  This deserves some investigation.  FIXME
6699         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6700       else
6701         ld_shlibs=no
6702       fi
6703       ;;
6705     cygwin* | mingw* | pw32*)
6706       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6707       # as there is no search path for DLLs.
6708       hardcode_libdir_flag_spec='-L$libdir'
6709       allow_undefined_flag=unsupported
6710       always_export_symbols=no
6711       enable_shared_with_static_runtimes=yes
6712       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6714       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6715         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6716         # If the export-symbols file already is a .def file (1st line
6717         # is EXPORTS), use it as is; otherwise, prepend...
6718         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6719           cp $export_symbols $output_objdir/$soname.def;
6720         else
6721           echo EXPORTS > $output_objdir/$soname.def;
6722           cat $export_symbols >> $output_objdir/$soname.def;
6723         fi~
6724         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6725       else
6726         ld_shlibs=no
6727       fi
6728       ;;
6730     interix3*)
6731       hardcode_direct=no
6732       hardcode_shlibpath_var=no
6733       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6734       export_dynamic_flag_spec='${wl}-E'
6735       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6736       # Instead, shared libraries are loaded at an image base (0x10000000 by
6737       # default) and relocated if they conflict, which is a slow very memory
6738       # consuming and fragmenting process.  To avoid this, we pick a random,
6739       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6740       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6741       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6742       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'
6743       ;;
6745     linux*)
6746       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6747         tmp_addflag=
6748         case $cc_basename,$host_cpu in
6749         pgcc*)                          # Portland Group C compiler
6750           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'
6751           tmp_addflag=' $pic_flag'
6752           ;;
6753         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6754           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'
6755           tmp_addflag=' $pic_flag -Mnomain' ;;
6756         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6757           tmp_addflag=' -i_dynamic' ;;
6758         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6759           tmp_addflag=' -i_dynamic -nofor_main' ;;
6760         ifc* | ifort*)                  # Intel Fortran compiler
6761           tmp_addflag=' -nofor_main' ;;
6762         esac
6763         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6765         if test $supports_anon_versioning = yes; then
6766           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6767   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6768   $echo "local: *; };" >> $output_objdir/$libname.ver~
6769           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6770         fi
6771       else
6772         ld_shlibs=no
6773       fi
6774       ;;
6776     netbsd*)
6777       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6778         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6779         wlarc=
6780       else
6781         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6782         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6783       fi
6784       ;;
6786     solaris*)
6787       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6788         ld_shlibs=no
6789         cat <<EOF 1>&2
6791 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6792 *** create shared libraries on Solaris systems.  Therefore, libtool
6793 *** is disabling shared libraries support.  We urge you to upgrade GNU
6794 *** binutils to release 2.9.1 or newer.  Another option is to modify
6795 *** your PATH or compiler configuration so that the native linker is
6796 *** used, and then restart.
6798 EOF
6799       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6800         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6801         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6802       else
6803         ld_shlibs=no
6804       fi
6805       ;;
6807     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6808       case `$LD -v 2>&1` in
6809         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6810         ld_shlibs=no
6811         cat <<_LT_EOF 1>&2
6813 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6814 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6815 *** is disabling shared libraries support.  We urge you to upgrade GNU
6816 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6817 *** your PATH or compiler configuration so that the native linker is
6818 *** used, and then restart.
6820 _LT_EOF
6821         ;;
6822         *)
6823           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6824             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6825             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6826             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6827           else
6828             ld_shlibs=no
6829           fi
6830         ;;
6831       esac
6832       ;;
6834     sunos4*)
6835       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6836       wlarc=
6837       hardcode_direct=yes
6838       hardcode_shlibpath_var=no
6839       ;;
6841     *)
6842       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6843         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6844         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6845       else
6846         ld_shlibs=no
6847       fi
6848       ;;
6849     esac
6851     if test "$ld_shlibs" = no; then
6852       runpath_var=
6853       hardcode_libdir_flag_spec=
6854       export_dynamic_flag_spec=
6855       whole_archive_flag_spec=
6856     fi
6857   else
6858     # PORTME fill in a description of your system's linker (not GNU ld)
6859     case $host_os in
6860     aix3*)
6861       allow_undefined_flag=unsupported
6862       always_export_symbols=yes
6863       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'
6864       # Note: this linker hardcodes the directories in LIBPATH if there
6865       # are no directories specified by -L.
6866       hardcode_minus_L=yes
6867       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6868         # Neither direct hardcoding nor static linking is supported with a
6869         # broken collect2.
6870         hardcode_direct=unsupported
6871       fi
6872       ;;
6874     aix4* | aix5*)
6875       if test "$host_cpu" = ia64; then
6876         # On IA64, the linker does run time linking by default, so we don't
6877         # have to do anything special.
6878         aix_use_runtimelinking=no
6879         exp_sym_flag='-Bexport'
6880         no_entry_flag=""
6881       else
6882         # If we're using GNU nm, then we don't want the "-C" option.
6883         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6884         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6885           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'
6886         else
6887           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'
6888         fi
6889         aix_use_runtimelinking=no
6891         # Test if we are trying to use run time linking or normal
6892         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6893         # need to do runtime linking.
6894         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6895           for ld_flag in $LDFLAGS; do
6896           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6897             aix_use_runtimelinking=yes
6898             break
6899           fi
6900           done
6901           ;;
6902         esac
6904         exp_sym_flag='-bexport'
6905         no_entry_flag='-bnoentry'
6906       fi
6908       # When large executables or shared objects are built, AIX ld can
6909       # have problems creating the table of contents.  If linking a library
6910       # or program results in "error TOC overflow" add -mminimal-toc to
6911       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6912       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6914       archive_cmds=''
6915       hardcode_direct=yes
6916       hardcode_libdir_separator=':'
6917       link_all_deplibs=yes
6919       if test "$GCC" = yes; then
6920         case $host_os in aix4.[012]|aix4.[012].*)
6921         # We only want to do this on AIX 4.2 and lower, the check
6922         # below for broken collect2 doesn't work under 4.3+
6923           collect2name=`${CC} -print-prog-name=collect2`
6924           if test -f "$collect2name" && \
6925            strings "$collect2name" | grep resolve_lib_name >/dev/null
6926           then
6927           # We have reworked collect2
6928           hardcode_direct=yes
6929           else
6930           # We have old collect2
6931           hardcode_direct=unsupported
6932           # It fails to find uninstalled libraries when the uninstalled
6933           # path is not listed in the libpath.  Setting hardcode_minus_L
6934           # to unsupported forces relinking
6935           hardcode_minus_L=yes
6936           hardcode_libdir_flag_spec='-L$libdir'
6937           hardcode_libdir_separator=
6938           fi
6939           ;;
6940         esac
6941         shared_flag='-shared'
6942         if test "$aix_use_runtimelinking" = yes; then
6943           shared_flag="$shared_flag "'${wl}-G'
6944         fi
6945       else
6946         # not using gcc
6947         if test "$host_cpu" = ia64; then
6948         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6949         # chokes on -Wl,-G. The following line is correct:
6950           shared_flag='-G'
6951         else
6952           if test "$aix_use_runtimelinking" = yes; then
6953             shared_flag='${wl}-G'
6954           else
6955             shared_flag='${wl}-bM:SRE'
6956           fi
6957         fi
6958       fi
6960       # It seems that -bexpall does not export symbols beginning with
6961       # underscore (_), so it is better to generate a list of symbols to export.
6962       always_export_symbols=yes
6963       if test "$aix_use_runtimelinking" = yes; then
6964         # Warning - without using the other runtime loading flags (-brtl),
6965         # -berok will link without error, but may produce a broken library.
6966         allow_undefined_flag='-berok'
6967        # Determine the default libpath from the value encoded in an empty executable.
6968        cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6975 int
6976 main ()
6979   ;
6980   return 0;
6982 _ACEOF
6983 rm -f conftest.$ac_objext conftest$ac_exeext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6985   (eval $ac_link) 2>conftest.er1
6986   ac_status=$?
6987   grep -v '^ *+' conftest.er1 >conftest.err
6988   rm -f conftest.er1
6989   cat conftest.err >&5
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); } &&
6992          { ac_try='test -z "$ac_c_werror_flag"
6993                          || test ! -s conftest.err'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; } &&
6999          { ac_try='test -s conftest$ac_exeext'
7000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001   (eval $ac_try) 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); }; }; then
7006 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7007 }'`
7008 # Check for a 64-bit object if we didn't find anything.
7009 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; }
7010 }'`; fi
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 fi
7016 rm -f conftest.err conftest.$ac_objext \
7017       conftest$ac_exeext conftest.$ac_ext
7018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7020        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7021         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"
7022        else
7023         if test "$host_cpu" = ia64; then
7024           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7025           allow_undefined_flag="-z nodefs"
7026           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"
7027         else
7028          # Determine the default libpath from the value encoded in an empty executable.
7029          cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h.  */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h.  */
7036 int
7037 main ()
7040   ;
7041   return 0;
7043 _ACEOF
7044 rm -f conftest.$ac_objext conftest$ac_exeext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046   (eval $ac_link) 2>conftest.er1
7047   ac_status=$?
7048   grep -v '^ *+' conftest.er1 >conftest.err
7049   rm -f conftest.er1
7050   cat conftest.err >&5
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); } &&
7053          { ac_try='test -z "$ac_c_werror_flag"
7054                          || test ! -s conftest.err'
7055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056   (eval $ac_try) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); }; } &&
7060          { ac_try='test -s conftest$ac_exeext'
7061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062   (eval $ac_try) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; }; then
7067 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7068 }'`
7069 # Check for a 64-bit object if we didn't find anything.
7070 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; }
7071 }'`; fi
7072 else
7073   echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7076 fi
7077 rm -f conftest.err conftest.$ac_objext \
7078       conftest$ac_exeext conftest.$ac_ext
7079 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7081          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7082           # Warning - without using the other run time loading flags,
7083           # -berok will link without error, but may produce a broken library.
7084           no_undefined_flag=' ${wl}-bernotok'
7085           allow_undefined_flag=' ${wl}-berok'
7086           # Exported symbols can be pulled into shared objects from archives
7087           whole_archive_flag_spec='$convenience'
7088           archive_cmds_need_lc=yes
7089           # This is similar to how AIX traditionally builds its shared libraries.
7090           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'
7091         fi
7092       fi
7093       ;;
7095     amigaos*)
7096       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)'
7097       hardcode_libdir_flag_spec='-L$libdir'
7098       hardcode_minus_L=yes
7099       # see comment about different semantics on the GNU ld section
7100       ld_shlibs=no
7101       ;;
7103     bsdi[45]*)
7104       export_dynamic_flag_spec=-rdynamic
7105       ;;
7107     cygwin* | mingw* | pw32*)
7108       # When not using gcc, we currently assume that we are using
7109       # Microsoft Visual C++.
7110       # hardcode_libdir_flag_spec is actually meaningless, as there is
7111       # no search path for DLLs.
7112       hardcode_libdir_flag_spec=' '
7113       allow_undefined_flag=unsupported
7114       # Tell ltmain to make .lib files, not .a files.
7115       libext=lib
7116       # Tell ltmain to make .dll files, not .so files.
7117       shrext_cmds=".dll"
7118       # FIXME: Setting linknames here is a bad hack.
7119       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7120       # The linker will automatically build a .lib file if we build a DLL.
7121       old_archive_From_new_cmds='true'
7122       # FIXME: Should let the user specify the lib program.
7123       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7124       fix_srcfile_path='`cygpath -w "$srcfile"`'
7125       enable_shared_with_static_runtimes=yes
7126       ;;
7128     darwin* | rhapsody*)
7129       case $host_os in
7130         rhapsody* | darwin1.[012])
7131          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7132          ;;
7133        *) # Darwin 1.3 on
7134          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7135            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7136          else
7137            case ${MACOSX_DEPLOYMENT_TARGET} in
7138              10.[012])
7139                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7140                ;;
7141              10.*)
7142                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7143                ;;
7144            esac
7145          fi
7146          ;;
7147       esac
7148       archive_cmds_need_lc=no
7149       hardcode_direct=no
7150       hardcode_automatic=yes
7151       hardcode_shlibpath_var=unsupported
7152       whole_archive_flag_spec=''
7153       link_all_deplibs=yes
7154     if test "$GCC" = yes ; then
7155         output_verbose_link_cmd='echo'
7156         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7157       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7158       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7159       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}'
7160       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}'
7161     else
7162       case $cc_basename in
7163         xlc*)
7164          output_verbose_link_cmd='echo'
7165          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7166          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7167           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7168          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}'
7169           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}'
7170           ;;
7171        *)
7172          ld_shlibs=no
7173           ;;
7174       esac
7175     fi
7176       ;;
7178     dgux*)
7179       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7180       hardcode_libdir_flag_spec='-L$libdir'
7181       hardcode_shlibpath_var=no
7182       ;;
7184     freebsd1*)
7185       ld_shlibs=no
7186       ;;
7188     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7189     # support.  Future versions do this automatically, but an explicit c++rt0.o
7190     # does not break anything, and helps significantly (at the cost of a little
7191     # extra space).
7192     freebsd2.2*)
7193       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7194       hardcode_libdir_flag_spec='-R$libdir'
7195       hardcode_direct=yes
7196       hardcode_shlibpath_var=no
7197       ;;
7199     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7200     freebsd2*)
7201       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7202       hardcode_direct=yes
7203       hardcode_minus_L=yes
7204       hardcode_shlibpath_var=no
7205       ;;
7207     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7208     freebsd* | kfreebsd*-gnu | dragonfly*)
7209       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7210       hardcode_libdir_flag_spec='-R$libdir'
7211       hardcode_direct=yes
7212       hardcode_shlibpath_var=no
7213       ;;
7215     hpux9*)
7216       if test "$GCC" = yes; then
7217         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'
7218       else
7219         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'
7220       fi
7221       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7222       hardcode_libdir_separator=:
7223       hardcode_direct=yes
7225       # hardcode_minus_L: Not really in the search PATH,
7226       # but as the default location of the library.
7227       hardcode_minus_L=yes
7228       export_dynamic_flag_spec='${wl}-E'
7229       ;;
7231     hpux10*)
7232       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7233         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7234       else
7235         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7236       fi
7237       if test "$with_gnu_ld" = no; then
7238         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7239         hardcode_libdir_separator=:
7241         hardcode_direct=yes
7242         export_dynamic_flag_spec='${wl}-E'
7244         # hardcode_minus_L: Not really in the search PATH,
7245         # but as the default location of the library.
7246         hardcode_minus_L=yes
7247       fi
7248       ;;
7250     hpux11*)
7251       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7252         case $host_cpu in
7253         hppa*64*)
7254           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7255           ;;
7256         ia64*)
7257           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7258           ;;
7259         *)
7260           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7261           ;;
7262         esac
7263       else
7264         case $host_cpu in
7265         hppa*64*)
7266           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7267           ;;
7268         ia64*)
7269           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7270           ;;
7271         *)
7272           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7273           ;;
7274         esac
7275       fi
7276       if test "$with_gnu_ld" = no; then
7277         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7278         hardcode_libdir_separator=:
7280         case $host_cpu in
7281         hppa*64*|ia64*)
7282           hardcode_libdir_flag_spec_ld='+b $libdir'
7283           hardcode_direct=no
7284           hardcode_shlibpath_var=no
7285           ;;
7286         *)
7287           hardcode_direct=yes
7288           export_dynamic_flag_spec='${wl}-E'
7290           # hardcode_minus_L: Not really in the search PATH,
7291           # but as the default location of the library.
7292           hardcode_minus_L=yes
7293           ;;
7294         esac
7295       fi
7296       ;;
7298     irix5* | irix6* | nonstopux*)
7299       if test "$GCC" = yes; then
7300         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'
7301       else
7302         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'
7303         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7304       fi
7305       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7306       hardcode_libdir_separator=:
7307       link_all_deplibs=yes
7308       ;;
7310     netbsd*)
7311       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7312         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7313       else
7314         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7315       fi
7316       hardcode_libdir_flag_spec='-R$libdir'
7317       hardcode_direct=yes
7318       hardcode_shlibpath_var=no
7319       ;;
7321     newsos6)
7322       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7323       hardcode_direct=yes
7324       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7325       hardcode_libdir_separator=:
7326       hardcode_shlibpath_var=no
7327       ;;
7329     openbsd*)
7330       hardcode_direct=yes
7331       hardcode_shlibpath_var=no
7332       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7333         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7334         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7335         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7336         export_dynamic_flag_spec='${wl}-E'
7337       else
7338        case $host_os in
7339          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7340            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7341            hardcode_libdir_flag_spec='-R$libdir'
7342            ;;
7343          *)
7344            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7345            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7346            ;;
7347        esac
7348       fi
7349       ;;
7351     os2*)
7352       hardcode_libdir_flag_spec='-L$libdir'
7353       hardcode_minus_L=yes
7354       allow_undefined_flag=unsupported
7355       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'
7356       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7357       ;;
7359     osf3*)
7360       if test "$GCC" = yes; then
7361         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7362         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'
7363       else
7364         allow_undefined_flag=' -expect_unresolved \*'
7365         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'
7366       fi
7367       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7368       hardcode_libdir_separator=:
7369       ;;
7371     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7372       if test "$GCC" = yes; then
7373         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7374         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'
7375         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7376       else
7377         allow_undefined_flag=' -expect_unresolved \*'
7378         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'
7379         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7380         $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'
7382         # Both c and cxx compiler support -rpath directly
7383         hardcode_libdir_flag_spec='-rpath $libdir'
7384       fi
7385       hardcode_libdir_separator=:
7386       ;;
7388     solaris*)
7389       no_undefined_flag=' -z text'
7390       if test "$GCC" = yes; then
7391         wlarc='${wl}'
7392         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7393         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7394           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7395       else
7396         wlarc=''
7397         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7398         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7399         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7400       fi
7401       hardcode_libdir_flag_spec='-R$libdir'
7402       hardcode_shlibpath_var=no
7403       case $host_os in
7404       solaris2.[0-5] | solaris2.[0-5].*) ;;
7405       *)
7406         # The compiler driver will combine linker options so we
7407         # cannot just pass the convience library names through
7408         # without $wl, iff we do not link with $LD.
7409         # Luckily, gcc supports the same syntax we need for Sun Studio.
7410         # Supported since Solaris 2.6 (maybe 2.5.1?)
7411         case $wlarc in
7412         '')
7413           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7414         *)
7415           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' ;;
7416         esac ;;
7417       esac
7418       link_all_deplibs=yes
7419       ;;
7421     sunos4*)
7422       if test "x$host_vendor" = xsequent; then
7423         # Use $CC to link under sequent, because it throws in some extra .o
7424         # files that make .init and .fini sections work.
7425         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7426       else
7427         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7428       fi
7429       hardcode_libdir_flag_spec='-L$libdir'
7430       hardcode_direct=yes
7431       hardcode_minus_L=yes
7432       hardcode_shlibpath_var=no
7433       ;;
7435     sysv4)
7436       case $host_vendor in
7437         sni)
7438           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7439           hardcode_direct=yes # is this really true???
7440         ;;
7441         siemens)
7442           ## LD is ld it makes a PLAMLIB
7443           ## CC just makes a GrossModule.
7444           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7445           reload_cmds='$CC -r -o $output$reload_objs'
7446           hardcode_direct=no
7447         ;;
7448         motorola)
7449           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7450           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7451         ;;
7452       esac
7453       runpath_var='LD_RUN_PATH'
7454       hardcode_shlibpath_var=no
7455       ;;
7457     sysv4.3*)
7458       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459       hardcode_shlibpath_var=no
7460       export_dynamic_flag_spec='-Bexport'
7461       ;;
7463     sysv4*MP*)
7464       if test -d /usr/nec; then
7465         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7466         hardcode_shlibpath_var=no
7467         runpath_var=LD_RUN_PATH
7468         hardcode_runpath_var=yes
7469         ld_shlibs=yes
7470       fi
7471       ;;
7473     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7474       no_undefined_flag='${wl}-z,text'
7475       archive_cmds_need_lc=no
7476       hardcode_shlibpath_var=no
7477       runpath_var='LD_RUN_PATH'
7479       if test "$GCC" = yes; then
7480         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7481         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7482       else
7483         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7484         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7485       fi
7486       ;;
7488     sysv5* | sco3.2v5* | sco5v6*)
7489       # Note: We can NOT use -z defs as we might desire, because we do not
7490       # link with -lc, and that would cause any symbols used from libc to
7491       # always be unresolved, which means just about no library would
7492       # ever link correctly.  If we're not using GNU ld we use -z text
7493       # though, which does catch some bad symbols but isn't as heavy-handed
7494       # as -z defs.
7495       no_undefined_flag='${wl}-z,text'
7496       allow_undefined_flag='${wl}-z,nodefs'
7497       archive_cmds_need_lc=no
7498       hardcode_shlibpath_var=no
7499       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7500       hardcode_libdir_separator=':'
7501       link_all_deplibs=yes
7502       export_dynamic_flag_spec='${wl}-Bexport'
7503       runpath_var='LD_RUN_PATH'
7505       if test "$GCC" = yes; then
7506         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7507         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7508       else
7509         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7510         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7511       fi
7512       ;;
7514     uts4*)
7515       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7516       hardcode_libdir_flag_spec='-L$libdir'
7517       hardcode_shlibpath_var=no
7518       ;;
7520     *)
7521       ld_shlibs=no
7522       ;;
7523     esac
7524   fi
7526 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7527 echo "${ECHO_T}$ld_shlibs" >&6
7528 test "$ld_shlibs" = no && can_build_shared=no
7531 # Do we need to explicitly link libc?
7533 case "x$archive_cmds_need_lc" in
7534 x|xyes)
7535   # Assume -lc should be added
7536   archive_cmds_need_lc=yes
7538   if test "$enable_shared" = yes && test "$GCC" = yes; then
7539     case $archive_cmds in
7540     *'~'*)
7541       # FIXME: we may have to deal with multi-command sequences.
7542       ;;
7543     '$CC '*)
7544       # Test whether the compiler implicitly links with -lc since on some
7545       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7546       # to ld, don't add -lc before -lgcc.
7547       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7548 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7549       $rm conftest*
7550       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7552       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7553   (eval $ac_compile) 2>&5
7554   ac_status=$?
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } 2>conftest.err; then
7557         soname=conftest
7558         lib=conftest
7559         libobjs=conftest.$ac_objext
7560         deplibs=
7561         wl=$lt_prog_compiler_wl
7562         pic_flag=$lt_prog_compiler_pic
7563         compiler_flags=-v
7564         linker_flags=-v
7565         verstring=
7566         output_objdir=.
7567         libname=conftest
7568         lt_save_allow_undefined_flag=$allow_undefined_flag
7569         allow_undefined_flag=
7570         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7571   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7572   ac_status=$?
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); }
7575         then
7576           archive_cmds_need_lc=no
7577         else
7578           archive_cmds_need_lc=yes
7579         fi
7580         allow_undefined_flag=$lt_save_allow_undefined_flag
7581       else
7582         cat conftest.err 1>&5
7583       fi
7584       $rm conftest*
7585       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7586 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7587       ;;
7588     esac
7589   fi
7590   ;;
7591 esac
7593 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7594 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7595 library_names_spec=
7596 libname_spec='lib$name'
7597 soname_spec=
7598 shrext_cmds=".so"
7599 postinstall_cmds=
7600 postuninstall_cmds=
7601 finish_cmds=
7602 finish_eval=
7603 shlibpath_var=
7604 shlibpath_overrides_runpath=unknown
7605 version_type=none
7606 dynamic_linker="$host_os ld.so"
7607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7608 if test "$GCC" = yes; then
7609   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7610   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7611     # if the path contains ";" then we assume it to be the separator
7612     # otherwise default to the standard path separator (i.e. ":") - it is
7613     # assumed that no part of a normal pathname contains ";" but that should
7614     # okay in the real world where ";" in dirpaths is itself problematic.
7615     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7616   else
7617     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7618   fi
7619 else
7620   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7621 fi
7622 need_lib_prefix=unknown
7623 hardcode_into_libs=no
7625 # when you set need_version to no, make sure it does not cause -set_version
7626 # flags to be left without arguments
7627 need_version=unknown
7629 case $host_os in
7630 aix3*)
7631   version_type=linux
7632   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7633   shlibpath_var=LIBPATH
7635   # AIX 3 has no versioning support, so we append a major version to the name.
7636   soname_spec='${libname}${release}${shared_ext}$major'
7637   ;;
7639 aix4* | aix5*)
7640   version_type=linux
7641   need_lib_prefix=no
7642   need_version=no
7643   hardcode_into_libs=yes
7644   if test "$host_cpu" = ia64; then
7645     # AIX 5 supports IA64
7646     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7647     shlibpath_var=LD_LIBRARY_PATH
7648   else
7649     # With GCC up to 2.95.x, collect2 would create an import file
7650     # for dependence libraries.  The import file would start with
7651     # the line `#! .'.  This would cause the generated library to
7652     # depend on `.', always an invalid library.  This was fixed in
7653     # development snapshots of GCC prior to 3.0.
7654     case $host_os in
7655       aix4 | aix4.[01] | aix4.[01].*)
7656       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7657            echo ' yes '
7658            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7659         :
7660       else
7661         can_build_shared=no
7662       fi
7663       ;;
7664     esac
7665     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7666     # soname into executable. Probably we can add versioning support to
7667     # collect2, so additional links can be useful in future.
7668     if test "$aix_use_runtimelinking" = yes; then
7669       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7670       # instead of lib<name>.a to let people know that these are not
7671       # typical AIX shared libraries.
7672       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7673     else
7674       # We preserve .a as extension for shared libraries through AIX4.2
7675       # and later when we are not doing run time linking.
7676       library_names_spec='${libname}${release}.a $libname.a'
7677       soname_spec='${libname}${release}${shared_ext}$major'
7678     fi
7679     shlibpath_var=LIBPATH
7680   fi
7681   ;;
7683 amigaos*)
7684   library_names_spec='$libname.ixlibrary $libname.a'
7685   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7686   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'
7687   ;;
7689 beos*)
7690   library_names_spec='${libname}${shared_ext}'
7691   dynamic_linker="$host_os ld.so"
7692   shlibpath_var=LIBRARY_PATH
7693   ;;
7695 bsdi[45]*)
7696   version_type=linux
7697   need_version=no
7698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7699   soname_spec='${libname}${release}${shared_ext}$major'
7700   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7701   shlibpath_var=LD_LIBRARY_PATH
7702   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7703   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7704   # the default ld.so.conf also contains /usr/contrib/lib and
7705   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7706   # libtool to hard-code these into programs
7707   ;;
7709 cygwin* | mingw* | pw32*)
7710   version_type=windows
7711   shrext_cmds=".dll"
7712   need_version=no
7713   need_lib_prefix=no
7715   case $GCC,$host_os in
7716   yes,cygwin* | yes,mingw* | yes,pw32*)
7717     library_names_spec='$libname.dll.a'
7718     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7719     postinstall_cmds='base_file=`basename \${file}`~
7720       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7721       dldir=$destdir/`dirname \$dlpath`~
7722       test -d \$dldir || mkdir -p \$dldir~
7723       $install_prog $dir/$dlname \$dldir/$dlname~
7724       chmod a+x \$dldir/$dlname'
7725     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7726       dlpath=$dir/\$dldll~
7727        $rm \$dlpath'
7728     shlibpath_overrides_runpath=yes
7730     case $host_os in
7731     cygwin*)
7732       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7733       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7734       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7735       ;;
7736     mingw*)
7737       # MinGW DLLs use traditional 'lib' prefix
7738       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7739       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7740       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7741         # It is most probably a Windows format PATH printed by
7742         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7743         # path with ; separators, and with drive letters. We can handle the
7744         # drive letters (cygwin fileutils understands them), so leave them,
7745         # especially as we might pass files found there to a mingw objdump,
7746         # which wouldn't understand a cygwinified path. Ahh.
7747         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7748       else
7749         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7750       fi
7751       ;;
7752     pw32*)
7753       # pw32 DLLs use 'pw' prefix rather than 'lib'
7754       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7755       ;;
7756     esac
7757     ;;
7759   *)
7760     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7761     ;;
7762   esac
7763   dynamic_linker='Win32 ld.exe'
7764   # FIXME: first we should search . and the directory the executable is in
7765   shlibpath_var=PATH
7766   ;;
7768 darwin* | rhapsody*)
7769   dynamic_linker="$host_os dyld"
7770   version_type=darwin
7771   need_lib_prefix=no
7772   need_version=no
7773   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7774   soname_spec='${libname}${release}${major}$shared_ext'
7775   shlibpath_overrides_runpath=yes
7776   shlibpath_var=DYLD_LIBRARY_PATH
7777   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7778   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7779   if test "$GCC" = yes; then
7780     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"`
7781   else
7782     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7783   fi
7784   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7785   ;;
7787 dgux*)
7788   version_type=linux
7789   need_lib_prefix=no
7790   need_version=no
7791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7792   soname_spec='${libname}${release}${shared_ext}$major'
7793   shlibpath_var=LD_LIBRARY_PATH
7794   ;;
7796 freebsd1*)
7797   dynamic_linker=no
7798   ;;
7800 kfreebsd*-gnu)
7801   version_type=linux
7802   need_lib_prefix=no
7803   need_version=no
7804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7805   soname_spec='${libname}${release}${shared_ext}$major'
7806   shlibpath_var=LD_LIBRARY_PATH
7807   shlibpath_overrides_runpath=no
7808   hardcode_into_libs=yes
7809   dynamic_linker='GNU ld.so'
7810   ;;
7812 freebsd* | dragonfly*)
7813   # DragonFly does not have aout.  When/if they implement a new
7814   # versioning mechanism, adjust this.
7815   if test -x /usr/bin/objformat; then
7816     objformat=`/usr/bin/objformat`
7817   else
7818     case $host_os in
7819     freebsd[123]*) objformat=aout ;;
7820     *) objformat=elf ;;
7821     esac
7822   fi
7823   version_type=freebsd-$objformat
7824   case $version_type in
7825     freebsd-elf*)
7826       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7827       need_version=no
7828       need_lib_prefix=no
7829       ;;
7830     freebsd-*)
7831       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7832       need_version=yes
7833       ;;
7834   esac
7835   shlibpath_var=LD_LIBRARY_PATH
7836   case $host_os in
7837   freebsd2*)
7838     shlibpath_overrides_runpath=yes
7839     ;;
7840   freebsd3.[01]* | freebsdelf3.[01]*)
7841     shlibpath_overrides_runpath=yes
7842     hardcode_into_libs=yes
7843     ;;
7844   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7845   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7846     shlibpath_overrides_runpath=no
7847     hardcode_into_libs=yes
7848     ;;
7849   freebsd*) # from 4.6 on
7850     shlibpath_overrides_runpath=yes
7851     hardcode_into_libs=yes
7852     ;;
7853   esac
7854   ;;
7856 gnu*)
7857   version_type=linux
7858   need_lib_prefix=no
7859   need_version=no
7860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7861   soname_spec='${libname}${release}${shared_ext}$major'
7862   shlibpath_var=LD_LIBRARY_PATH
7863   hardcode_into_libs=yes
7864   ;;
7866 hpux9* | hpux10* | hpux11*)
7867   # Give a soname corresponding to the major version so that dld.sl refuses to
7868   # link against other versions.
7869   version_type=sunos
7870   need_lib_prefix=no
7871   need_version=no
7872   case $host_cpu in
7873   ia64*)
7874     shrext_cmds='.so'
7875     hardcode_into_libs=yes
7876     dynamic_linker="$host_os dld.so"
7877     shlibpath_var=LD_LIBRARY_PATH
7878     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7880     soname_spec='${libname}${release}${shared_ext}$major'
7881     if test "X$HPUX_IA64_MODE" = X32; then
7882       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7883     else
7884       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7885     fi
7886     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7887     ;;
7888    hppa*64*)
7889      shrext_cmds='.sl'
7890      hardcode_into_libs=yes
7891      dynamic_linker="$host_os dld.sl"
7892      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7893      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7894      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7895      soname_spec='${libname}${release}${shared_ext}$major'
7896      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7897      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7898      ;;
7899    *)
7900     shrext_cmds='.sl'
7901     dynamic_linker="$host_os dld.sl"
7902     shlibpath_var=SHLIB_PATH
7903     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7905     soname_spec='${libname}${release}${shared_ext}$major'
7906     ;;
7907   esac
7908   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7909   postinstall_cmds='chmod 555 $lib'
7910   ;;
7912 interix3*)
7913   version_type=linux
7914   need_lib_prefix=no
7915   need_version=no
7916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7917   soname_spec='${libname}${release}${shared_ext}$major'
7918   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7919   shlibpath_var=LD_LIBRARY_PATH
7920   shlibpath_overrides_runpath=no
7921   hardcode_into_libs=yes
7922   ;;
7924 irix5* | irix6* | nonstopux*)
7925   case $host_os in
7926     nonstopux*) version_type=nonstopux ;;
7927     *)
7928         if test "$lt_cv_prog_gnu_ld" = yes; then
7929                 version_type=linux
7930         else
7931                 version_type=irix
7932         fi ;;
7933   esac
7934   need_lib_prefix=no
7935   need_version=no
7936   soname_spec='${libname}${release}${shared_ext}$major'
7937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7938   case $host_os in
7939   irix5* | nonstopux*)
7940     libsuff= shlibsuff=
7941     ;;
7942   *)
7943     case $LD in # libtool.m4 will add one of these switches to LD
7944     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7945       libsuff= shlibsuff= libmagic=32-bit;;
7946     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7947       libsuff=32 shlibsuff=N32 libmagic=N32;;
7948     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7949       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7950     *) libsuff= shlibsuff= libmagic=never-match;;
7951     esac
7952     ;;
7953   esac
7954   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7955   shlibpath_overrides_runpath=no
7956   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7957   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7958   hardcode_into_libs=yes
7959   ;;
7961 # No shared lib support for Linux oldld, aout, or coff.
7962 linux*oldld* | linux*aout* | linux*coff*)
7963   dynamic_linker=no
7964   ;;
7966 # This must be Linux ELF.
7967 linux*)
7968   version_type=linux
7969   need_lib_prefix=no
7970   need_version=no
7971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7972   soname_spec='${libname}${release}${shared_ext}$major'
7973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7974   shlibpath_var=LD_LIBRARY_PATH
7975   shlibpath_overrides_runpath=no
7976   # This implies no fast_install, which is unacceptable.
7977   # Some rework will be needed to allow for fast_install
7978   # before this can be enabled.
7979   hardcode_into_libs=yes
7981   # Append ld.so.conf contents to the search path
7982   if test -f /etc/ld.so.conf; then
7983     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' ' '`
7984     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7985   fi
7987   # We used to test for /lib/ld.so.1 and disable shared libraries on
7988   # powerpc, because MkLinux only supported shared libraries with the
7989   # GNU dynamic linker.  Since this was broken with cross compilers,
7990   # most powerpc-linux boxes support dynamic linking these days and
7991   # people can always --disable-shared, the test was removed, and we
7992   # assume the GNU/Linux dynamic linker is in use.
7993   dynamic_linker='GNU/Linux ld.so'
7994   ;;
7996 knetbsd*-gnu)
7997   version_type=linux
7998   need_lib_prefix=no
7999   need_version=no
8000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8001   soname_spec='${libname}${release}${shared_ext}$major'
8002   shlibpath_var=LD_LIBRARY_PATH
8003   shlibpath_overrides_runpath=no
8004   hardcode_into_libs=yes
8005   dynamic_linker='GNU ld.so'
8006   ;;
8008 netbsd*)
8009   version_type=sunos
8010   need_lib_prefix=no
8011   need_version=no
8012   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8014     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8015     dynamic_linker='NetBSD (a.out) ld.so'
8016   else
8017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8018     soname_spec='${libname}${release}${shared_ext}$major'
8019     dynamic_linker='NetBSD ld.elf_so'
8020   fi
8021   shlibpath_var=LD_LIBRARY_PATH
8022   shlibpath_overrides_runpath=yes
8023   hardcode_into_libs=yes
8024   ;;
8026 newsos6)
8027   version_type=linux
8028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8029   shlibpath_var=LD_LIBRARY_PATH
8030   shlibpath_overrides_runpath=yes
8031   ;;
8033 nto-qnx*)
8034   version_type=linux
8035   need_lib_prefix=no
8036   need_version=no
8037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8038   soname_spec='${libname}${release}${shared_ext}$major'
8039   shlibpath_var=LD_LIBRARY_PATH
8040   shlibpath_overrides_runpath=yes
8041   ;;
8043 openbsd*)
8044   version_type=sunos
8045   sys_lib_dlsearch_path_spec="/usr/lib"
8046   need_lib_prefix=no
8047   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8048   case $host_os in
8049     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8050     *)                         need_version=no  ;;
8051   esac
8052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8053   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8054   shlibpath_var=LD_LIBRARY_PATH
8055   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8056     case $host_os in
8057       openbsd2.[89] | openbsd2.[89].*)
8058         shlibpath_overrides_runpath=no
8059         ;;
8060       *)
8061         shlibpath_overrides_runpath=yes
8062         ;;
8063       esac
8064   else
8065     shlibpath_overrides_runpath=yes
8066   fi
8067   ;;
8069 os2*)
8070   libname_spec='$name'
8071   shrext_cmds=".dll"
8072   need_lib_prefix=no
8073   library_names_spec='$libname${shared_ext} $libname.a'
8074   dynamic_linker='OS/2 ld.exe'
8075   shlibpath_var=LIBPATH
8076   ;;
8078 osf3* | osf4* | osf5*)
8079   version_type=osf
8080   need_lib_prefix=no
8081   need_version=no
8082   soname_spec='${libname}${release}${shared_ext}$major'
8083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084   shlibpath_var=LD_LIBRARY_PATH
8085   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8086   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8087   ;;
8089 solaris*)
8090   version_type=linux
8091   need_lib_prefix=no
8092   need_version=no
8093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8094   soname_spec='${libname}${release}${shared_ext}$major'
8095   shlibpath_var=LD_LIBRARY_PATH
8096   shlibpath_overrides_runpath=yes
8097   hardcode_into_libs=yes
8098   # ldd complains unless libraries are executable
8099   postinstall_cmds='chmod +x $lib'
8100   ;;
8102 sunos4*)
8103   version_type=sunos
8104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8105   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8106   shlibpath_var=LD_LIBRARY_PATH
8107   shlibpath_overrides_runpath=yes
8108   if test "$with_gnu_ld" = yes; then
8109     need_lib_prefix=no
8110   fi
8111   need_version=yes
8112   ;;
8114 sysv4 | sysv4.3*)
8115   version_type=linux
8116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8117   soname_spec='${libname}${release}${shared_ext}$major'
8118   shlibpath_var=LD_LIBRARY_PATH
8119   case $host_vendor in
8120     sni)
8121       shlibpath_overrides_runpath=no
8122       need_lib_prefix=no
8123       export_dynamic_flag_spec='${wl}-Blargedynsym'
8124       runpath_var=LD_RUN_PATH
8125       ;;
8126     siemens)
8127       need_lib_prefix=no
8128       ;;
8129     motorola)
8130       need_lib_prefix=no
8131       need_version=no
8132       shlibpath_overrides_runpath=no
8133       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8134       ;;
8135   esac
8136   ;;
8138 sysv4*MP*)
8139   if test -d /usr/nec ;then
8140     version_type=linux
8141     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8142     soname_spec='$libname${shared_ext}.$major'
8143     shlibpath_var=LD_LIBRARY_PATH
8144   fi
8145   ;;
8147 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8148   version_type=freebsd-elf
8149   need_lib_prefix=no
8150   need_version=no
8151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8152   soname_spec='${libname}${release}${shared_ext}$major'
8153   shlibpath_var=LD_LIBRARY_PATH
8154   hardcode_into_libs=yes
8155   if test "$with_gnu_ld" = yes; then
8156     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8157     shlibpath_overrides_runpath=no
8158   else
8159     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8160     shlibpath_overrides_runpath=yes
8161     case $host_os in
8162       sco3.2v5*)
8163         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8164         ;;
8165     esac
8166   fi
8167   sys_lib_dlsearch_path_spec='/usr/lib'
8168   ;;
8170 uts4*)
8171   version_type=linux
8172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8173   soname_spec='${libname}${release}${shared_ext}$major'
8174   shlibpath_var=LD_LIBRARY_PATH
8175   ;;
8177 *)
8178   dynamic_linker=no
8179   ;;
8180 esac
8181 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8182 echo "${ECHO_T}$dynamic_linker" >&6
8183 test "$dynamic_linker" = no && can_build_shared=no
8185 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8186 if test "$GCC" = yes; then
8187   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8188 fi
8190 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8191 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8192 hardcode_action=
8193 if test -n "$hardcode_libdir_flag_spec" || \
8194    test -n "$runpath_var" || \
8195    test "X$hardcode_automatic" = "Xyes" ; then
8197   # We can hardcode non-existant directories.
8198   if test "$hardcode_direct" != no &&
8199      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8200      # have to relink, otherwise we might link with an installed library
8201      # when we should be linking with a yet-to-be-installed one
8202      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8203      test "$hardcode_minus_L" != no; then
8204     # Linking always hardcodes the temporary library directory.
8205     hardcode_action=relink
8206   else
8207     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8208     hardcode_action=immediate
8209   fi
8210 else
8211   # We cannot hardcode anything, or else we can only hardcode existing
8212   # directories.
8213   hardcode_action=unsupported
8214 fi
8215 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8216 echo "${ECHO_T}$hardcode_action" >&6
8218 if test "$hardcode_action" = relink; then
8219   # Fast installation is not supported
8220   enable_fast_install=no
8221 elif test "$shlibpath_overrides_runpath" = yes ||
8222      test "$enable_shared" = no; then
8223   # Fast installation is not necessary
8224   enable_fast_install=needless
8225 fi
8227 striplib=
8228 old_striplib=
8229 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8230 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8231 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8232   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8233   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8234   echo "$as_me:$LINENO: result: yes" >&5
8235 echo "${ECHO_T}yes" >&6
8236 else
8237 # FIXME - insert some real tests, host_os isn't really good enough
8238   case $host_os in
8239    darwin*)
8240        if test -n "$STRIP" ; then
8241          striplib="$STRIP -x"
8242          echo "$as_me:$LINENO: result: yes" >&5
8243 echo "${ECHO_T}yes" >&6
8244        else
8245   echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6
8247 fi
8248        ;;
8249    *)
8250   echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6
8252     ;;
8253   esac
8254 fi
8256 if test "x$enable_dlopen" != xyes; then
8257   enable_dlopen=unknown
8258   enable_dlopen_self=unknown
8259   enable_dlopen_self_static=unknown
8260 else
8261   lt_cv_dlopen=no
8262   lt_cv_dlopen_libs=
8264   case $host_os in
8265   beos*)
8266     lt_cv_dlopen="load_add_on"
8267     lt_cv_dlopen_libs=
8268     lt_cv_dlopen_self=yes
8269     ;;
8271   mingw* | pw32*)
8272     lt_cv_dlopen="LoadLibrary"
8273     lt_cv_dlopen_libs=
8274    ;;
8276   cygwin*)
8277     lt_cv_dlopen="dlopen"
8278     lt_cv_dlopen_libs=
8279    ;;
8281   darwin*)
8282   # if libdl is installed we need to link against it
8283     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8284 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8285 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288   ac_check_lib_save_LIBS=$LIBS
8289 LIBS="-ldl  $LIBS"
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h.  */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h.  */
8297 /* Override any gcc2 internal prototype to avoid an error.  */
8298 #ifdef __cplusplus
8299 extern "C"
8300 #endif
8301 /* We use char because int might match the return type of a gcc2
8302    builtin and then its argument prototype would still apply.  */
8303 char dlopen ();
8304 int
8305 main ()
8307 dlopen ();
8308   ;
8309   return 0;
8311 _ACEOF
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314   (eval $ac_link) 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } &&
8321          { ac_try='test -z "$ac_c_werror_flag"
8322                          || test ! -s conftest.err'
8323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324   (eval $ac_try) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; } &&
8328          { ac_try='test -s conftest$ac_exeext'
8329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330   (eval $ac_try) 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; }; then
8334   ac_cv_lib_dl_dlopen=yes
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 ac_cv_lib_dl_dlopen=no
8340 fi
8341 rm -f conftest.err conftest.$ac_objext \
8342       conftest$ac_exeext conftest.$ac_ext
8343 LIBS=$ac_check_lib_save_LIBS
8344 fi
8345 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8346 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8347 if test $ac_cv_lib_dl_dlopen = yes; then
8348   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8349 else
8351     lt_cv_dlopen="dyld"
8352     lt_cv_dlopen_libs=
8353     lt_cv_dlopen_self=yes
8355 fi
8357    ;;
8359   *)
8360     echo "$as_me:$LINENO: checking for shl_load" >&5
8361 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8362 if test "${ac_cv_func_shl_load+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h.  */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h.  */
8371 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8373 #define shl_load innocuous_shl_load
8375 /* System header to define __stub macros and hopefully few prototypes,
8376     which can conflict with char shl_load (); below.
8377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8378     <limits.h> exists even on freestanding compilers.  */
8380 #ifdef __STDC__
8381 # include <limits.h>
8382 #else
8383 # include <assert.h>
8384 #endif
8386 #undef shl_load
8388 /* Override any gcc2 internal prototype to avoid an error.  */
8389 #ifdef __cplusplus
8390 extern "C"
8392 #endif
8393 /* We use char because int might match the return type of a gcc2
8394    builtin and then its argument prototype would still apply.  */
8395 char shl_load ();
8396 /* The GNU C library defines this for functions which it implements
8397     to always fail with ENOSYS.  Some functions are actually named
8398     something starting with __ and the normal name is an alias.  */
8399 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8400 choke me
8401 #else
8402 char (*f) () = shl_load;
8403 #endif
8404 #ifdef __cplusplus
8406 #endif
8408 int
8409 main ()
8411 return f != shl_load;
8412   ;
8413   return 0;
8415 _ACEOF
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418   (eval $ac_link) 2>conftest.er1
8419   ac_status=$?
8420   grep -v '^ *+' conftest.er1 >conftest.err
8421   rm -f conftest.er1
8422   cat conftest.err >&5
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); } &&
8425          { ac_try='test -z "$ac_c_werror_flag"
8426                          || test ! -s conftest.err'
8427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428   (eval $ac_try) 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); }; } &&
8432          { ac_try='test -s conftest$ac_exeext'
8433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434   (eval $ac_try) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); }; }; then
8438   ac_cv_func_shl_load=yes
8439 else
8440   echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 ac_cv_func_shl_load=no
8444 fi
8445 rm -f conftest.err conftest.$ac_objext \
8446       conftest$ac_exeext conftest.$ac_ext
8447 fi
8448 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8449 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8450 if test $ac_cv_func_shl_load = yes; then
8451   lt_cv_dlopen="shl_load"
8452 else
8453   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8454 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8455 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458   ac_check_lib_save_LIBS=$LIBS
8459 LIBS="-ldld  $LIBS"
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h.  */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h.  */
8467 /* Override any gcc2 internal prototype to avoid an error.  */
8468 #ifdef __cplusplus
8469 extern "C"
8470 #endif
8471 /* We use char because int might match the return type of a gcc2
8472    builtin and then its argument prototype would still apply.  */
8473 char shl_load ();
8474 int
8475 main ()
8477 shl_load ();
8478   ;
8479   return 0;
8481 _ACEOF
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484   (eval $ac_link) 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag"
8492                          || test ! -s conftest.err'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; } &&
8498          { ac_try='test -s conftest$ac_exeext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_cv_lib_dld_shl_load=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_cv_lib_dld_shl_load=no
8510 fi
8511 rm -f conftest.err conftest.$ac_objext \
8512       conftest$ac_exeext conftest.$ac_ext
8513 LIBS=$ac_check_lib_save_LIBS
8514 fi
8515 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8516 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8517 if test $ac_cv_lib_dld_shl_load = yes; then
8518   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8519 else
8520   echo "$as_me:$LINENO: checking for dlopen" >&5
8521 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8522 if test "${ac_cv_func_dlopen+set}" = set; then
8523   echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525   cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8533 #define dlopen innocuous_dlopen
8535 /* System header to define __stub macros and hopefully few prototypes,
8536     which can conflict with char dlopen (); below.
8537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8538     <limits.h> exists even on freestanding compilers.  */
8540 #ifdef __STDC__
8541 # include <limits.h>
8542 #else
8543 # include <assert.h>
8544 #endif
8546 #undef dlopen
8548 /* Override any gcc2 internal prototype to avoid an error.  */
8549 #ifdef __cplusplus
8550 extern "C"
8552 #endif
8553 /* We use char because int might match the return type of a gcc2
8554    builtin and then its argument prototype would still apply.  */
8555 char dlopen ();
8556 /* The GNU C library defines this for functions which it implements
8557     to always fail with ENOSYS.  Some functions are actually named
8558     something starting with __ and the normal name is an alias.  */
8559 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8560 choke me
8561 #else
8562 char (*f) () = dlopen;
8563 #endif
8564 #ifdef __cplusplus
8566 #endif
8568 int
8569 main ()
8571 return f != dlopen;
8572   ;
8573   return 0;
8575 _ACEOF
8576 rm -f conftest.$ac_objext conftest$ac_exeext
8577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8578   (eval $ac_link) 2>conftest.er1
8579   ac_status=$?
8580   grep -v '^ *+' conftest.er1 >conftest.err
8581   rm -f conftest.er1
8582   cat conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } &&
8585          { ac_try='test -z "$ac_c_werror_flag"
8586                          || test ! -s conftest.err'
8587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588   (eval $ac_try) 2>&5
8589   ac_status=$?
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); }; } &&
8592          { ac_try='test -s conftest$ac_exeext'
8593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594   (eval $ac_try) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; }; then
8598   ac_cv_func_dlopen=yes
8599 else
8600   echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 ac_cv_func_dlopen=no
8604 fi
8605 rm -f conftest.err conftest.$ac_objext \
8606       conftest$ac_exeext conftest.$ac_ext
8607 fi
8608 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8609 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8610 if test $ac_cv_func_dlopen = yes; then
8611   lt_cv_dlopen="dlopen"
8612 else
8613   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8614 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8615 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8616   echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618   ac_check_lib_save_LIBS=$LIBS
8619 LIBS="-ldl  $LIBS"
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h.  */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h.  */
8627 /* Override any gcc2 internal prototype to avoid an error.  */
8628 #ifdef __cplusplus
8629 extern "C"
8630 #endif
8631 /* We use char because int might match the return type of a gcc2
8632    builtin and then its argument prototype would still apply.  */
8633 char dlopen ();
8634 int
8635 main ()
8637 dlopen ();
8638   ;
8639   return 0;
8641 _ACEOF
8642 rm -f conftest.$ac_objext conftest$ac_exeext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8644   (eval $ac_link) 2>conftest.er1
8645   ac_status=$?
8646   grep -v '^ *+' conftest.er1 >conftest.err
8647   rm -f conftest.er1
8648   cat conftest.err >&5
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); } &&
8651          { ac_try='test -z "$ac_c_werror_flag"
8652                          || test ! -s conftest.err'
8653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654   (eval $ac_try) 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; } &&
8658          { ac_try='test -s conftest$ac_exeext'
8659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660   (eval $ac_try) 2>&5
8661   ac_status=$?
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); }; }; then
8664   ac_cv_lib_dl_dlopen=yes
8665 else
8666   echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 ac_cv_lib_dl_dlopen=no
8670 fi
8671 rm -f conftest.err conftest.$ac_objext \
8672       conftest$ac_exeext conftest.$ac_ext
8673 LIBS=$ac_check_lib_save_LIBS
8674 fi
8675 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8676 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8677 if test $ac_cv_lib_dl_dlopen = yes; then
8678   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8679 else
8680   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8681 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8682 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8683   echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685   ac_check_lib_save_LIBS=$LIBS
8686 LIBS="-lsvld  $LIBS"
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8694 /* Override any gcc2 internal prototype to avoid an error.  */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699    builtin and then its argument prototype would still apply.  */
8700 char dlopen ();
8701 int
8702 main ()
8704 dlopen ();
8705   ;
8706   return 0;
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711   (eval $ac_link) 2>conftest.er1
8712   ac_status=$?
8713   grep -v '^ *+' conftest.er1 >conftest.err
8714   rm -f conftest.er1
8715   cat conftest.err >&5
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } &&
8718          { ac_try='test -z "$ac_c_werror_flag"
8719                          || test ! -s conftest.err'
8720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721   (eval $ac_try) 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); }; } &&
8725          { ac_try='test -s conftest$ac_exeext'
8726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727   (eval $ac_try) 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; }; then
8731   ac_cv_lib_svld_dlopen=yes
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 ac_cv_lib_svld_dlopen=no
8737 fi
8738 rm -f conftest.err conftest.$ac_objext \
8739       conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8743 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8744 if test $ac_cv_lib_svld_dlopen = yes; then
8745   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8746 else
8747   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8748 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8749 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   ac_check_lib_save_LIBS=$LIBS
8753 LIBS="-ldld  $LIBS"
8754 cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h.  */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h.  */
8761 /* Override any gcc2 internal prototype to avoid an error.  */
8762 #ifdef __cplusplus
8763 extern "C"
8764 #endif
8765 /* We use char because int might match the return type of a gcc2
8766    builtin and then its argument prototype would still apply.  */
8767 char dld_link ();
8768 int
8769 main ()
8771 dld_link ();
8772   ;
8773   return 0;
8775 _ACEOF
8776 rm -f conftest.$ac_objext conftest$ac_exeext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8778   (eval $ac_link) 2>conftest.er1
8779   ac_status=$?
8780   grep -v '^ *+' conftest.er1 >conftest.err
8781   rm -f conftest.er1
8782   cat conftest.err >&5
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } &&
8785          { ac_try='test -z "$ac_c_werror_flag"
8786                          || test ! -s conftest.err'
8787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788   (eval $ac_try) 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }; } &&
8792          { ac_try='test -s conftest$ac_exeext'
8793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794   (eval $ac_try) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; }; then
8798   ac_cv_lib_dld_dld_link=yes
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 ac_cv_lib_dld_dld_link=no
8804 fi
8805 rm -f conftest.err conftest.$ac_objext \
8806       conftest$ac_exeext conftest.$ac_ext
8807 LIBS=$ac_check_lib_save_LIBS
8808 fi
8809 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8810 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8811 if test $ac_cv_lib_dld_dld_link = yes; then
8812   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8813 fi
8816 fi
8819 fi
8822 fi
8825 fi
8828 fi
8830     ;;
8831   esac
8833   if test "x$lt_cv_dlopen" != xno; then
8834     enable_dlopen=yes
8835   else
8836     enable_dlopen=no
8837   fi
8839   case $lt_cv_dlopen in
8840   dlopen)
8841     save_CPPFLAGS="$CPPFLAGS"
8842     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8844     save_LDFLAGS="$LDFLAGS"
8845     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8847     save_LIBS="$LIBS"
8848     LIBS="$lt_cv_dlopen_libs $LIBS"
8850     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8851 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8852 if test "${lt_cv_dlopen_self+set}" = set; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855           if test "$cross_compiling" = yes; then :
8856   lt_cv_dlopen_self=cross
8857 else
8858   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8859   lt_status=$lt_dlunknown
8860   cat > conftest.$ac_ext <<EOF
8861 #line 8861 "configure"
8862 #include "confdefs.h"
8864 #if HAVE_DLFCN_H
8865 #include <dlfcn.h>
8866 #endif
8868 #include <stdio.h>
8870 #ifdef RTLD_GLOBAL
8871 #  define LT_DLGLOBAL           RTLD_GLOBAL
8872 #else
8873 #  ifdef DL_GLOBAL
8874 #    define LT_DLGLOBAL         DL_GLOBAL
8875 #  else
8876 #    define LT_DLGLOBAL         0
8877 #  endif
8878 #endif
8880 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8881    find out it does not work in some platform. */
8882 #ifndef LT_DLLAZY_OR_NOW
8883 #  ifdef RTLD_LAZY
8884 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8885 #  else
8886 #    ifdef DL_LAZY
8887 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8888 #    else
8889 #      ifdef RTLD_NOW
8890 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8891 #      else
8892 #        ifdef DL_NOW
8893 #          define LT_DLLAZY_OR_NOW      DL_NOW
8894 #        else
8895 #          define LT_DLLAZY_OR_NOW      0
8896 #        endif
8897 #      endif
8898 #    endif
8899 #  endif
8900 #endif
8902 #ifdef __cplusplus
8903 extern "C" void exit (int);
8904 #endif
8906 void fnord() { int i=42;}
8907 int main ()
8909   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8910   int status = $lt_dlunknown;
8912   if (self)
8913     {
8914       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8915       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8916       /* dlclose (self); */
8917     }
8918   else
8919     puts (dlerror ());
8921     exit (status);
8923 EOF
8924   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8925   (eval $ac_link) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8929     (./conftest; exit; ) >&5 2>/dev/null
8930     lt_status=$?
8931     case x$lt_status in
8932       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8933       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8934       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8935     esac
8936   else :
8937     # compilation failed
8938     lt_cv_dlopen_self=no
8939   fi
8940 fi
8941 rm -fr conftest*
8944 fi
8945 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8946 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8948     if test "x$lt_cv_dlopen_self" = xyes; then
8949       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8950       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8951 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8952 if test "${lt_cv_dlopen_self_static+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955           if test "$cross_compiling" = yes; then :
8956   lt_cv_dlopen_self_static=cross
8957 else
8958   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8959   lt_status=$lt_dlunknown
8960   cat > conftest.$ac_ext <<EOF
8961 #line 8961 "configure"
8962 #include "confdefs.h"
8964 #if HAVE_DLFCN_H
8965 #include <dlfcn.h>
8966 #endif
8968 #include <stdio.h>
8970 #ifdef RTLD_GLOBAL
8971 #  define LT_DLGLOBAL           RTLD_GLOBAL
8972 #else
8973 #  ifdef DL_GLOBAL
8974 #    define LT_DLGLOBAL         DL_GLOBAL
8975 #  else
8976 #    define LT_DLGLOBAL         0
8977 #  endif
8978 #endif
8980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8981    find out it does not work in some platform. */
8982 #ifndef LT_DLLAZY_OR_NOW
8983 #  ifdef RTLD_LAZY
8984 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8985 #  else
8986 #    ifdef DL_LAZY
8987 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8988 #    else
8989 #      ifdef RTLD_NOW
8990 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8991 #      else
8992 #        ifdef DL_NOW
8993 #          define LT_DLLAZY_OR_NOW      DL_NOW
8994 #        else
8995 #          define LT_DLLAZY_OR_NOW      0
8996 #        endif
8997 #      endif
8998 #    endif
8999 #  endif
9000 #endif
9002 #ifdef __cplusplus
9003 extern "C" void exit (int);
9004 #endif
9006 void fnord() { int i=42;}
9007 int main ()
9009   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9010   int status = $lt_dlunknown;
9012   if (self)
9013     {
9014       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9015       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9016       /* dlclose (self); */
9017     }
9018   else
9019     puts (dlerror ());
9021     exit (status);
9023 EOF
9024   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9025   (eval $ac_link) 2>&5
9026   ac_status=$?
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9029     (./conftest; exit; ) >&5 2>/dev/null
9030     lt_status=$?
9031     case x$lt_status in
9032       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9033       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9034       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9035     esac
9036   else :
9037     # compilation failed
9038     lt_cv_dlopen_self_static=no
9039   fi
9040 fi
9041 rm -fr conftest*
9044 fi
9045 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9046 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9047     fi
9049     CPPFLAGS="$save_CPPFLAGS"
9050     LDFLAGS="$save_LDFLAGS"
9051     LIBS="$save_LIBS"
9052     ;;
9053   esac
9055   case $lt_cv_dlopen_self in
9056   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9057   *) enable_dlopen_self=unknown ;;
9058   esac
9060   case $lt_cv_dlopen_self_static in
9061   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9062   *) enable_dlopen_self_static=unknown ;;
9063   esac
9064 fi
9067 # Report which library types will actually be built
9068 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9069 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9070 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9071 echo "${ECHO_T}$can_build_shared" >&6
9073 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9074 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9075 test "$can_build_shared" = "no" && enable_shared=no
9077 # On AIX, shared libraries and static libraries use the same namespace, and
9078 # are all built from PIC.
9079 case $host_os in
9080 aix3*)
9081   test "$enable_shared" = yes && enable_static=no
9082   if test -n "$RANLIB"; then
9083     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9084     postinstall_cmds='$RANLIB $lib'
9085   fi
9086   ;;
9088 aix4* | aix5*)
9089   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9090     test "$enable_shared" = yes && enable_static=no
9091   fi
9092     ;;
9093 esac
9094 echo "$as_me:$LINENO: result: $enable_shared" >&5
9095 echo "${ECHO_T}$enable_shared" >&6
9097 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9098 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9099 # Make sure either enable_shared or enable_static is yes.
9100 test "$enable_shared" = yes || enable_static=yes
9101 echo "$as_me:$LINENO: result: $enable_static" >&5
9102 echo "${ECHO_T}$enable_static" >&6
9104 # The else clause should only fire when bootstrapping the
9105 # libtool distribution, otherwise you forgot to ship ltmain.sh
9106 # with your package, and you will get complaints that there are
9107 # no rules to generate ltmain.sh.
9108 if test -f "$ltmain"; then
9109   # See if we are running on zsh, and set the options which allow our commands through
9110   # without removal of \ escapes.
9111   if test -n "${ZSH_VERSION+set}" ; then
9112     setopt NO_GLOB_SUBST
9113   fi
9114   # Now quote all the things that may contain metacharacters while being
9115   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9116   # variables and quote the copies for generation of the libtool script.
9117   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9118     SED SHELL STRIP \
9119     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9120     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9121     deplibs_check_method reload_flag reload_cmds need_locks \
9122     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9123     lt_cv_sys_global_symbol_to_c_name_address \
9124     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9125     old_postinstall_cmds old_postuninstall_cmds \
9126     compiler \
9127     CC \
9128     LD \
9129     lt_prog_compiler_wl \
9130     lt_prog_compiler_pic \
9131     lt_prog_compiler_static \
9132     lt_prog_compiler_no_builtin_flag \
9133     export_dynamic_flag_spec \
9134     thread_safe_flag_spec \
9135     whole_archive_flag_spec \
9136     enable_shared_with_static_runtimes \
9137     old_archive_cmds \
9138     old_archive_from_new_cmds \
9139     predep_objects \
9140     postdep_objects \
9141     predeps \
9142     postdeps \
9143     compiler_lib_search_path \
9144     archive_cmds \
9145     archive_expsym_cmds \
9146     postinstall_cmds \
9147     postuninstall_cmds \
9148     old_archive_from_expsyms_cmds \
9149     allow_undefined_flag \
9150     no_undefined_flag \
9151     export_symbols_cmds \
9152     hardcode_libdir_flag_spec \
9153     hardcode_libdir_flag_spec_ld \
9154     hardcode_libdir_separator \
9155     hardcode_automatic \
9156     module_cmds \
9157     module_expsym_cmds \
9158     lt_cv_prog_compiler_c_o \
9159     exclude_expsyms \
9160     include_expsyms; do
9162     case $var in
9163     old_archive_cmds | \
9164     old_archive_from_new_cmds | \
9165     archive_cmds | \
9166     archive_expsym_cmds | \
9167     module_cmds | \
9168     module_expsym_cmds | \
9169     old_archive_from_expsyms_cmds | \
9170     export_symbols_cmds | \
9171     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9172     postinstall_cmds | postuninstall_cmds | \
9173     old_postinstall_cmds | old_postuninstall_cmds | \
9174     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9175       # Double-quote double-evaled strings.
9176       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9177       ;;
9178     *)
9179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9180       ;;
9181     esac
9182   done
9184   case $lt_echo in
9185   *'\$0 --fallback-echo"')
9186     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9187     ;;
9188   esac
9190 cfgfile="${ofile}T"
9191   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9192   $rm -f "$cfgfile"
9193   { echo "$as_me:$LINENO: creating $ofile" >&5
9194 echo "$as_me: creating $ofile" >&6;}
9196   cat <<__EOF__ >> "$cfgfile"
9197 #! $SHELL
9199 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9200 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9201 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9203 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9204 # Free Software Foundation, Inc.
9206 # This file is part of GNU Libtool:
9207 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9209 # This program is free software; you can redistribute it and/or modify
9210 # it under the terms of the GNU General Public License as published by
9211 # the Free Software Foundation; either version 2 of the License, or
9212 # (at your option) any later version.
9214 # This program is distributed in the hope that it will be useful, but
9215 # WITHOUT ANY WARRANTY; without even the implied warranty of
9216 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9217 # General Public License for more details.
9219 # You should have received a copy of the GNU General Public License
9220 # along with this program; if not, write to the Free Software
9221 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9223 # As a special exception to the GNU General Public License, if you
9224 # distribute this file as part of a program that contains a
9225 # configuration script generated by Autoconf, you may include it under
9226 # the same distribution terms that you use for the rest of that program.
9228 # A sed program that does not truncate output.
9229 SED=$lt_SED
9231 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9232 Xsed="$SED -e 1s/^X//"
9234 # The HP-UX ksh and POSIX shell print the target directory to stdout
9235 # if CDPATH is set.
9236 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9238 # The names of the tagged configurations supported by this script.
9239 available_tags=
9241 # ### BEGIN LIBTOOL CONFIG
9243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9245 # Shell to use when invoking shell scripts.
9246 SHELL=$lt_SHELL
9248 # Whether or not to build shared libraries.
9249 build_libtool_libs=$enable_shared
9251 # Whether or not to build static libraries.
9252 build_old_libs=$enable_static
9254 # Whether or not to add -lc for building shared libraries.
9255 build_libtool_need_lc=$archive_cmds_need_lc
9257 # Whether or not to disallow shared libs when runtime libs are static
9258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9260 # Whether or not to optimize for fast installation.
9261 fast_install=$enable_fast_install
9263 # The host system.
9264 host_alias=$host_alias
9265 host=$host
9266 host_os=$host_os
9268 # The build system.
9269 build_alias=$build_alias
9270 build=$build
9271 build_os=$build_os
9273 # An echo program that does not interpret backslashes.
9274 echo=$lt_echo
9276 # The archiver.
9277 AR=$lt_AR
9278 AR_FLAGS=$lt_AR_FLAGS
9280 # A C compiler.
9281 LTCC=$lt_LTCC
9283 # LTCC compiler flags.
9284 LTCFLAGS=$lt_LTCFLAGS
9286 # A language-specific compiler.
9287 CC=$lt_compiler
9289 # Is the compiler the GNU C compiler?
9290 with_gcc=$GCC
9292 # An ERE matcher.
9293 EGREP=$lt_EGREP
9295 # The linker used to build libraries.
9296 LD=$lt_LD
9298 # Whether we need hard or soft links.
9299 LN_S=$lt_LN_S
9301 # A BSD-compatible nm program.
9302 NM=$lt_NM
9304 # A symbol stripping program
9305 STRIP=$lt_STRIP
9307 # Used to examine libraries when file_magic_cmd begins "file"
9308 MAGIC_CMD=$MAGIC_CMD
9310 # Used on cygwin: DLL creation program.
9311 DLLTOOL="$DLLTOOL"
9313 # Used on cygwin: object dumper.
9314 OBJDUMP="$OBJDUMP"
9316 # Used on cygwin: assembler.
9317 AS="$AS"
9319 # The name of the directory that contains temporary libtool files.
9320 objdir=$objdir
9322 # How to create reloadable object files.
9323 reload_flag=$lt_reload_flag
9324 reload_cmds=$lt_reload_cmds
9326 # How to pass a linker flag through the compiler.
9327 wl=$lt_lt_prog_compiler_wl
9329 # Object file suffix (normally "o").
9330 objext="$ac_objext"
9332 # Old archive suffix (normally "a").
9333 libext="$libext"
9335 # Shared library suffix (normally ".so").
9336 shrext_cmds='$shrext_cmds'
9338 # Executable file suffix (normally "").
9339 exeext="$exeext"
9341 # Additional compiler flags for building library objects.
9342 pic_flag=$lt_lt_prog_compiler_pic
9343 pic_mode=$pic_mode
9345 # What is the maximum length of a command?
9346 max_cmd_len=$lt_cv_sys_max_cmd_len
9348 # Does compiler simultaneously support -c and -o options?
9349 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9351 # Must we lock files when doing compilation?
9352 need_locks=$lt_need_locks
9354 # Do we need the lib prefix for modules?
9355 need_lib_prefix=$need_lib_prefix
9357 # Do we need a version for libraries?
9358 need_version=$need_version
9360 # Whether dlopen is supported.
9361 dlopen_support=$enable_dlopen
9363 # Whether dlopen of programs is supported.
9364 dlopen_self=$enable_dlopen_self
9366 # Whether dlopen of statically linked programs is supported.
9367 dlopen_self_static=$enable_dlopen_self_static
9369 # Compiler flag to prevent dynamic linking.
9370 link_static_flag=$lt_lt_prog_compiler_static
9372 # Compiler flag to turn off builtin functions.
9373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9375 # Compiler flag to allow reflexive dlopens.
9376 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9378 # Compiler flag to generate shared objects directly from archives.
9379 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9381 # Compiler flag to generate thread-safe objects.
9382 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9384 # Library versioning type.
9385 version_type=$version_type
9387 # Format of library name prefix.
9388 libname_spec=$lt_libname_spec
9390 # List of archive names.  First name is the real one, the rest are links.
9391 # The last name is the one that the linker finds with -lNAME.
9392 library_names_spec=$lt_library_names_spec
9394 # The coded name of the library, if different from the real name.
9395 soname_spec=$lt_soname_spec
9397 # Commands used to build and install an old-style archive.
9398 RANLIB=$lt_RANLIB
9399 old_archive_cmds=$lt_old_archive_cmds
9400 old_postinstall_cmds=$lt_old_postinstall_cmds
9401 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9403 # Create an old-style archive from a shared archive.
9404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9406 # Create a temporary old-style archive to link instead of a shared archive.
9407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9409 # Commands used to build and install a shared archive.
9410 archive_cmds=$lt_archive_cmds
9411 archive_expsym_cmds=$lt_archive_expsym_cmds
9412 postinstall_cmds=$lt_postinstall_cmds
9413 postuninstall_cmds=$lt_postuninstall_cmds
9415 # Commands used to build a loadable module (assumed same as above if empty)
9416 module_cmds=$lt_module_cmds
9417 module_expsym_cmds=$lt_module_expsym_cmds
9419 # Commands to strip libraries.
9420 old_striplib=$lt_old_striplib
9421 striplib=$lt_striplib
9423 # Dependencies to place before the objects being linked to create a
9424 # shared library.
9425 predep_objects=$lt_predep_objects
9427 # Dependencies to place after the objects being linked to create a
9428 # shared library.
9429 postdep_objects=$lt_postdep_objects
9431 # Dependencies to place before the objects being linked to create a
9432 # shared library.
9433 predeps=$lt_predeps
9435 # Dependencies to place after the objects being linked to create a
9436 # shared library.
9437 postdeps=$lt_postdeps
9439 # The library search path used internally by the compiler when linking
9440 # a shared library.
9441 compiler_lib_search_path=$lt_compiler_lib_search_path
9443 # Method to check whether dependent libraries are shared objects.
9444 deplibs_check_method=$lt_deplibs_check_method
9446 # Command to use when deplibs_check_method == file_magic.
9447 file_magic_cmd=$lt_file_magic_cmd
9449 # Flag that allows shared libraries with undefined symbols to be built.
9450 allow_undefined_flag=$lt_allow_undefined_flag
9452 # Flag that forces no undefined symbols.
9453 no_undefined_flag=$lt_no_undefined_flag
9455 # Commands used to finish a libtool library installation in a directory.
9456 finish_cmds=$lt_finish_cmds
9458 # Same as above, but a single script fragment to be evaled but not shown.
9459 finish_eval=$lt_finish_eval
9461 # Take the output of nm and produce a listing of raw symbols and C names.
9462 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9464 # Transform the output of nm in a proper C declaration
9465 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9467 # Transform the output of nm in a C name address pair
9468 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9470 # This is the shared library runtime path variable.
9471 runpath_var=$runpath_var
9473 # This is the shared library path variable.
9474 shlibpath_var=$shlibpath_var
9476 # Is shlibpath searched before the hard-coded library search path?
9477 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9479 # How to hardcode a shared library path into an executable.
9480 hardcode_action=$hardcode_action
9482 # Whether we should hardcode library paths into libraries.
9483 hardcode_into_libs=$hardcode_into_libs
9485 # Flag to hardcode \$libdir into a binary during linking.
9486 # This must work even if \$libdir does not exist.
9487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9489 # If ld is used when linking, flag to hardcode \$libdir into
9490 # a binary during linking. This must work even if \$libdir does
9491 # not exist.
9492 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9494 # Whether we need a single -rpath flag with a separated argument.
9495 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9497 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9498 # resulting binary.
9499 hardcode_direct=$hardcode_direct
9501 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9502 # resulting binary.
9503 hardcode_minus_L=$hardcode_minus_L
9505 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9506 # the resulting binary.
9507 hardcode_shlibpath_var=$hardcode_shlibpath_var
9509 # Set to yes if building a shared library automatically hardcodes DIR into the library
9510 # and all subsequent libraries and executables linked against it.
9511 hardcode_automatic=$hardcode_automatic
9513 # Variables whose values should be saved in libtool wrapper scripts and
9514 # restored at relink time.
9515 variables_saved_for_relink="$variables_saved_for_relink"
9517 # Whether libtool must link a program against all its dependency libraries.
9518 link_all_deplibs=$link_all_deplibs
9520 # Compile-time system search path for libraries
9521 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9523 # Run-time system search path for libraries
9524 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9526 # Fix the shell variable \$srcfile for the compiler.
9527 fix_srcfile_path="$fix_srcfile_path"
9529 # Set to yes if exported symbols are required.
9530 always_export_symbols=$always_export_symbols
9532 # The commands to list exported symbols.
9533 export_symbols_cmds=$lt_export_symbols_cmds
9535 # The commands to extract the exported symbol list from a shared archive.
9536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9538 # Symbols that should not be listed in the preloaded symbols.
9539 exclude_expsyms=$lt_exclude_expsyms
9541 # Symbols that must always be exported.
9542 include_expsyms=$lt_include_expsyms
9544 # ### END LIBTOOL CONFIG
9546 __EOF__
9549   case $host_os in
9550   aix3*)
9551     cat <<\EOF >> "$cfgfile"
9553 # AIX sometimes has problems with the GCC collect2 program.  For some
9554 # reason, if we set the COLLECT_NAMES environment variable, the problems
9555 # vanish in a puff of smoke.
9556 if test "X${COLLECT_NAMES+set}" != Xset; then
9557   COLLECT_NAMES=
9558   export COLLECT_NAMES
9559 fi
9560 EOF
9561     ;;
9562   esac
9564   # We use sed instead of cat because bash on DJGPP gets confused if
9565   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9566   # text mode, it properly converts lines to CR/LF.  This bash problem
9567   # is reportedly fixed, but why not run on old versions too?
9568   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9570   mv -f "$cfgfile" "$ofile" || \
9571     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9572   chmod +x "$ofile"
9574 else
9575   # If there is no Makefile yet, we rely on a make rule to execute
9576   # `config.status --recheck' to rerun these tests and create the
9577   # libtool script then.
9578   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9579   if test -f "$ltmain_in"; then
9580     test -f Makefile && make "$ltmain"
9581   fi
9582 fi
9585 ac_ext=c
9586 ac_cpp='$CPP $CPPFLAGS'
9587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9591 CC="$lt_save_CC"
9594 # Check whether --with-tags or --without-tags was given.
9595 if test "${with_tags+set}" = set; then
9596   withval="$with_tags"
9597   tagnames="$withval"
9598 fi;
9600 if test -f "$ltmain" && test -n "$tagnames"; then
9601   if test ! -f "${ofile}"; then
9602     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9603 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9604   fi
9606   if test -z "$LTCC"; then
9607     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9608     if test -z "$LTCC"; then
9609       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9610 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9611     else
9612       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9613 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9614     fi
9615   fi
9616   if test -z "$LTCFLAGS"; then
9617     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9618   fi
9620   # Extract list of available tagged configurations in $ofile.
9621   # Note that this assumes the entire list is on one line.
9622   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9624   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9625   for tagname in $tagnames; do
9626     IFS="$lt_save_ifs"
9627     # Check whether tagname contains only valid characters
9628     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9629     "") ;;
9630     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9631 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9632    { (exit 1); exit 1; }; }
9633         ;;
9634     esac
9636     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9637     then
9638       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9639 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9640    { (exit 1); exit 1; }; }
9641     fi
9643     # Update the list of available tags.
9644     if test -n "$tagname"; then
9645       echo appending configuration tag \"$tagname\" to $ofile
9647       case $tagname in
9648       CXX)
9649         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9650             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9651             (test "X$CXX" != "Xg++"))) ; then
9652           ac_ext=cc
9653 ac_cpp='$CXXCPP $CPPFLAGS'
9654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9661 archive_cmds_need_lc_CXX=no
9662 allow_undefined_flag_CXX=
9663 always_export_symbols_CXX=no
9664 archive_expsym_cmds_CXX=
9665 export_dynamic_flag_spec_CXX=
9666 hardcode_direct_CXX=no
9667 hardcode_libdir_flag_spec_CXX=
9668 hardcode_libdir_flag_spec_ld_CXX=
9669 hardcode_libdir_separator_CXX=
9670 hardcode_minus_L_CXX=no
9671 hardcode_shlibpath_var_CXX=unsupported
9672 hardcode_automatic_CXX=no
9673 module_cmds_CXX=
9674 module_expsym_cmds_CXX=
9675 link_all_deplibs_CXX=unknown
9676 old_archive_cmds_CXX=$old_archive_cmds
9677 no_undefined_flag_CXX=
9678 whole_archive_flag_spec_CXX=
9679 enable_shared_with_static_runtimes_CXX=no
9681 # Dependencies to place before and after the object being linked:
9682 predep_objects_CXX=
9683 postdep_objects_CXX=
9684 predeps_CXX=
9685 postdeps_CXX=
9686 compiler_lib_search_path_CXX=
9688 # Source file extension for C++ test sources.
9689 ac_ext=cpp
9691 # Object file extension for compiled C++ test sources.
9692 objext=o
9693 objext_CXX=$objext
9695 # Code to be used in simple compile tests
9696 lt_simple_compile_test_code="int some_variable = 0;\n"
9698 # Code to be used in simple link tests
9699 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9701 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9703 # If no C compiler was specified, use CC.
9704 LTCC=${LTCC-"$CC"}
9706 # If no C compiler flags were specified, use CFLAGS.
9707 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9709 # Allow CC to be a program name with arguments.
9710 compiler=$CC
9713 # save warnings/boilerplate of simple test code
9714 ac_outfile=conftest.$ac_objext
9715 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9716 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9717 _lt_compiler_boilerplate=`cat conftest.err`
9718 $rm conftest*
9720 ac_outfile=conftest.$ac_objext
9721 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9722 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9723 _lt_linker_boilerplate=`cat conftest.err`
9724 $rm conftest*
9727 # Allow CC to be a program name with arguments.
9728 lt_save_CC=$CC
9729 lt_save_LD=$LD
9730 lt_save_GCC=$GCC
9731 GCC=$GXX
9732 lt_save_with_gnu_ld=$with_gnu_ld
9733 lt_save_path_LD=$lt_cv_path_LD
9734 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9735   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9736 else
9737   $as_unset lt_cv_prog_gnu_ld
9738 fi
9739 if test -n "${lt_cv_path_LDCXX+set}"; then
9740   lt_cv_path_LD=$lt_cv_path_LDCXX
9741 else
9742   $as_unset lt_cv_path_LD
9743 fi
9744 test -z "${LDCXX+set}" || LD=$LDCXX
9745 CC=${CXX-"c++"}
9746 compiler=$CC
9747 compiler_CXX=$CC
9748 for cc_temp in $compiler""; do
9749   case $cc_temp in
9750     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9751     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9752     \-*) ;;
9753     *) break;;
9754   esac
9755 done
9756 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9759 # We don't want -fno-exception wen compiling C++ code, so set the
9760 # no_builtin_flag separately
9761 if test "$GXX" = yes; then
9762   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9763 else
9764   lt_prog_compiler_no_builtin_flag_CXX=
9765 fi
9767 if test "$GXX" = yes; then
9768   # Set up default GNU C++ configuration
9771 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9772 if test "${with_gnu_ld+set}" = set; then
9773   withval="$with_gnu_ld"
9774   test "$withval" = no || with_gnu_ld=yes
9775 else
9776   with_gnu_ld=no
9777 fi;
9778 ac_prog=ld
9779 if test "$GCC" = yes; then
9780   # Check if gcc -print-prog-name=ld gives a path.
9781   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9782 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9783   case $host in
9784   *-*-mingw*)
9785     # gcc leaves a trailing carriage return which upsets mingw
9786     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9787   *)
9788     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9789   esac
9790   case $ac_prog in
9791     # Accept absolute paths.
9792     [\\/]* | ?:[\\/]*)
9793       re_direlt='/[^/][^/]*/\.\./'
9794       # Canonicalize the pathname of ld
9795       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9796       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9797         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9798       done
9799       test -z "$LD" && LD="$ac_prog"
9800       ;;
9801   "")
9802     # If it fails, then pretend we aren't using GCC.
9803     ac_prog=ld
9804     ;;
9805   *)
9806     # If it is relative, then search for the first ld in PATH.
9807     with_gnu_ld=unknown
9808     ;;
9809   esac
9810 elif test "$with_gnu_ld" = yes; then
9811   echo "$as_me:$LINENO: checking for GNU ld" >&5
9812 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9813 else
9814   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9815 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9816 fi
9817 if test "${lt_cv_path_LD+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   if test -z "$LD"; then
9821   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9822   for ac_dir in $PATH; do
9823     IFS="$lt_save_ifs"
9824     test -z "$ac_dir" && ac_dir=.
9825     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9826       lt_cv_path_LD="$ac_dir/$ac_prog"
9827       # Check to see if the program is GNU ld.  I'd rather use --version,
9828       # but apparently some variants of GNU ld only accept -v.
9829       # Break only if it was the GNU/non-GNU ld that we prefer.
9830       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9831       *GNU* | *'with BFD'*)
9832         test "$with_gnu_ld" != no && break
9833         ;;
9834       *)
9835         test "$with_gnu_ld" != yes && break
9836         ;;
9837       esac
9838     fi
9839   done
9840   IFS="$lt_save_ifs"
9841 else
9842   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9843 fi
9844 fi
9846 LD="$lt_cv_path_LD"
9847 if test -n "$LD"; then
9848   echo "$as_me:$LINENO: result: $LD" >&5
9849 echo "${ECHO_T}$LD" >&6
9850 else
9851   echo "$as_me:$LINENO: result: no" >&5
9852 echo "${ECHO_T}no" >&6
9853 fi
9854 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9855 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9856    { (exit 1); exit 1; }; }
9857 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9858 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9859 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9860   echo $ECHO_N "(cached) $ECHO_C" >&6
9861 else
9862   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9863 case `$LD -v 2>&1 </dev/null` in
9864 *GNU* | *'with BFD'*)
9865   lt_cv_prog_gnu_ld=yes
9866   ;;
9867 *)
9868   lt_cv_prog_gnu_ld=no
9869   ;;
9870 esac
9871 fi
9872 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9873 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9874 with_gnu_ld=$lt_cv_prog_gnu_ld
9878   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9879   # archiving commands below assume that GNU ld is being used.
9880   if test "$with_gnu_ld" = yes; then
9881     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9882     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'
9884     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9885     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9887     # If archive_cmds runs LD, not CC, wlarc should be empty
9888     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9889     #     investigate it a little bit more. (MM)
9890     wlarc='${wl}'
9892     # ancient GNU ld didn't support --whole-archive et. al.
9893     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9894         grep 'no-whole-archive' > /dev/null; then
9895       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9896     else
9897       whole_archive_flag_spec_CXX=
9898     fi
9899   else
9900     with_gnu_ld=no
9901     wlarc=
9903     # A generic and very simple default shared library creation
9904     # command for GNU C++ for the case where it uses the native
9905     # linker, instead of GNU ld.  If possible, this setting should
9906     # overridden to take advantage of the native linker features on
9907     # the platform it is being used on.
9908     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9909   fi
9911   # Commands to make compiler produce verbose output that lists
9912   # what "hidden" libraries, object files and flags are used when
9913   # linking a shared library.
9914   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9916 else
9917   GXX=no
9918   with_gnu_ld=no
9919   wlarc=
9920 fi
9922 # PORTME: fill in a description of your system's C++ link characteristics
9923 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9924 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9925 ld_shlibs_CXX=yes
9926 case $host_os in
9927   aix3*)
9928     # FIXME: insert proper C++ library support
9929     ld_shlibs_CXX=no
9930     ;;
9931   aix4* | aix5*)
9932     if test "$host_cpu" = ia64; then
9933       # On IA64, the linker does run time linking by default, so we don't
9934       # have to do anything special.
9935       aix_use_runtimelinking=no
9936       exp_sym_flag='-Bexport'
9937       no_entry_flag=""
9938     else
9939       aix_use_runtimelinking=no
9941       # Test if we are trying to use run time linking or normal
9942       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9943       # need to do runtime linking.
9944       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9945         for ld_flag in $LDFLAGS; do
9946           case $ld_flag in
9947           *-brtl*)
9948             aix_use_runtimelinking=yes
9949             break
9950             ;;
9951           esac
9952         done
9953         ;;
9954       esac
9956       exp_sym_flag='-bexport'
9957       no_entry_flag='-bnoentry'
9958     fi
9960     # When large executables or shared objects are built, AIX ld can
9961     # have problems creating the table of contents.  If linking a library
9962     # or program results in "error TOC overflow" add -mminimal-toc to
9963     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9964     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9966     archive_cmds_CXX=''
9967     hardcode_direct_CXX=yes
9968     hardcode_libdir_separator_CXX=':'
9969     link_all_deplibs_CXX=yes
9971     if test "$GXX" = yes; then
9972       case $host_os in aix4.[012]|aix4.[012].*)
9973       # We only want to do this on AIX 4.2 and lower, the check
9974       # below for broken collect2 doesn't work under 4.3+
9975         collect2name=`${CC} -print-prog-name=collect2`
9976         if test -f "$collect2name" && \
9977            strings "$collect2name" | grep resolve_lib_name >/dev/null
9978         then
9979           # We have reworked collect2
9980           hardcode_direct_CXX=yes
9981         else
9982           # We have old collect2
9983           hardcode_direct_CXX=unsupported
9984           # It fails to find uninstalled libraries when the uninstalled
9985           # path is not listed in the libpath.  Setting hardcode_minus_L
9986           # to unsupported forces relinking
9987           hardcode_minus_L_CXX=yes
9988           hardcode_libdir_flag_spec_CXX='-L$libdir'
9989           hardcode_libdir_separator_CXX=
9990         fi
9991         ;;
9992       esac
9993       shared_flag='-shared'
9994       if test "$aix_use_runtimelinking" = yes; then
9995         shared_flag="$shared_flag "'${wl}-G'
9996       fi
9997     else
9998       # not using gcc
9999       if test "$host_cpu" = ia64; then
10000         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10001         # chokes on -Wl,-G. The following line is correct:
10002         shared_flag='-G'
10003       else
10004         if test "$aix_use_runtimelinking" = yes; then
10005           shared_flag='${wl}-G'
10006         else
10007           shared_flag='${wl}-bM:SRE'
10008         fi
10009       fi
10010     fi
10012     # It seems that -bexpall does not export symbols beginning with
10013     # underscore (_), so it is better to generate a list of symbols to export.
10014     always_export_symbols_CXX=yes
10015     if test "$aix_use_runtimelinking" = yes; then
10016       # Warning - without using the other runtime loading flags (-brtl),
10017       # -berok will link without error, but may produce a broken library.
10018       allow_undefined_flag_CXX='-berok'
10019       # Determine the default libpath from the value encoded in an empty executable.
10020       cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10027 int
10028 main ()
10031   ;
10032   return 0;
10034 _ACEOF
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037   (eval $ac_link) 2>conftest.er1
10038   ac_status=$?
10039   grep -v '^ *+' conftest.er1 >conftest.err
10040   rm -f conftest.er1
10041   cat conftest.err >&5
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); } &&
10044          { ac_try='test -z "$ac_cxx_werror_flag"
10045                          || test ! -s conftest.err'
10046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047   (eval $ac_try) 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); }; } &&
10051          { ac_try='test -s conftest$ac_exeext'
10052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053   (eval $ac_try) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); }; }; then
10058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10059 }'`
10060 # Check for a 64-bit object if we didn't find anything.
10061 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; }
10062 }'`; fi
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10068 rm -f conftest.err conftest.$ac_objext \
10069       conftest$ac_exeext conftest.$ac_ext
10070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10072       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10074       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"
10075      else
10076       if test "$host_cpu" = ia64; then
10077         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10078         allow_undefined_flag_CXX="-z nodefs"
10079         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"
10080       else
10081         # Determine the default libpath from the value encoded in an empty executable.
10082         cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10089 int
10090 main ()
10093   ;
10094   return 0;
10096 _ACEOF
10097 rm -f conftest.$ac_objext conftest$ac_exeext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10099   (eval $ac_link) 2>conftest.er1
10100   ac_status=$?
10101   grep -v '^ *+' conftest.er1 >conftest.err
10102   rm -f conftest.er1
10103   cat conftest.err >&5
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); } &&
10106          { ac_try='test -z "$ac_cxx_werror_flag"
10107                          || test ! -s conftest.err'
10108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109   (eval $ac_try) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; } &&
10113          { ac_try='test -s conftest$ac_exeext'
10114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115   (eval $ac_try) 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; }; then
10120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10121 }'`
10122 # Check for a 64-bit object if we didn't find anything.
10123 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; }
10124 }'`; fi
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10130 rm -f conftest.err conftest.$ac_objext \
10131       conftest$ac_exeext conftest.$ac_ext
10132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10134         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10135         # Warning - without using the other run time loading flags,
10136         # -berok will link without error, but may produce a broken library.
10137         no_undefined_flag_CXX=' ${wl}-bernotok'
10138         allow_undefined_flag_CXX=' ${wl}-berok'
10139         # Exported symbols can be pulled into shared objects from archives
10140         whole_archive_flag_spec_CXX='$convenience'
10141         archive_cmds_need_lc_CXX=yes
10142         # This is similar to how AIX traditionally builds its shared libraries.
10143         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'
10144       fi
10145     fi
10146     ;;
10148   beos*)
10149     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10150       allow_undefined_flag_CXX=unsupported
10151       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10152       # support --undefined.  This deserves some investigation.  FIXME
10153       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10154     else
10155       ld_shlibs_CXX=no
10156     fi
10157     ;;
10159   chorus*)
10160     case $cc_basename in
10161       *)
10162         # FIXME: insert proper C++ library support
10163         ld_shlibs_CXX=no
10164         ;;
10165     esac
10166     ;;
10168   cygwin* | mingw* | pw32*)
10169     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10170     # as there is no search path for DLLs.
10171     hardcode_libdir_flag_spec_CXX='-L$libdir'
10172     allow_undefined_flag_CXX=unsupported
10173     always_export_symbols_CXX=no
10174     enable_shared_with_static_runtimes_CXX=yes
10176     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10177       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'
10178       # If the export-symbols file already is a .def file (1st line
10179       # is EXPORTS), use it as is; otherwise, prepend...
10180       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10181         cp $export_symbols $output_objdir/$soname.def;
10182       else
10183         echo EXPORTS > $output_objdir/$soname.def;
10184         cat $export_symbols >> $output_objdir/$soname.def;
10185       fi~
10186       $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'
10187     else
10188       ld_shlibs_CXX=no
10189     fi
10190   ;;
10191       darwin* | rhapsody*)
10192         case $host_os in
10193         rhapsody* | darwin1.[012])
10194          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10195          ;;
10196        *) # Darwin 1.3 on
10197          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10198            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10199          else
10200            case ${MACOSX_DEPLOYMENT_TARGET} in
10201              10.[012])
10202                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10203                ;;
10204              10.*)
10205                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10206                ;;
10207            esac
10208          fi
10209          ;;
10210         esac
10211       archive_cmds_need_lc_CXX=no
10212       hardcode_direct_CXX=no
10213       hardcode_automatic_CXX=yes
10214       hardcode_shlibpath_var_CXX=unsupported
10215       whole_archive_flag_spec_CXX=''
10216       link_all_deplibs_CXX=yes
10218     if test "$GXX" = yes ; then
10219       lt_int_apple_cc_single_mod=no
10220       output_verbose_link_cmd='echo'
10221       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10222        lt_int_apple_cc_single_mod=yes
10223       fi
10224       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10225        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10226       else
10227           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'
10228         fi
10229         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10230         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10231           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10232             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}'
10233           else
10234             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}'
10235           fi
10236             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}'
10237       else
10238       case $cc_basename in
10239         xlc*)
10240          output_verbose_link_cmd='echo'
10241           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'
10242           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10243           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10244           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}'
10245           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}'
10246           ;;
10247        *)
10248          ld_shlibs_CXX=no
10249           ;;
10250       esac
10251       fi
10252         ;;
10254   dgux*)
10255     case $cc_basename in
10256       ec++*)
10257         # FIXME: insert proper C++ library support
10258         ld_shlibs_CXX=no
10259         ;;
10260       ghcx*)
10261         # Green Hills C++ Compiler
10262         # FIXME: insert proper C++ library support
10263         ld_shlibs_CXX=no
10264         ;;
10265       *)
10266         # FIXME: insert proper C++ library support
10267         ld_shlibs_CXX=no
10268         ;;
10269     esac
10270     ;;
10271   freebsd[12]*)
10272     # C++ shared libraries reported to be fairly broken before switch to ELF
10273     ld_shlibs_CXX=no
10274     ;;
10275   freebsd-elf*)
10276     archive_cmds_need_lc_CXX=no
10277     ;;
10278   freebsd* | kfreebsd*-gnu | dragonfly*)
10279     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10280     # conventions
10281     ld_shlibs_CXX=yes
10282     ;;
10283   gnu*)
10284     ;;
10285   hpux9*)
10286     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10287     hardcode_libdir_separator_CXX=:
10288     export_dynamic_flag_spec_CXX='${wl}-E'
10289     hardcode_direct_CXX=yes
10290     hardcode_minus_L_CXX=yes # Not in the search PATH,
10291                                 # but as the default
10292                                 # location of the library.
10294     case $cc_basename in
10295     CC*)
10296       # FIXME: insert proper C++ library support
10297       ld_shlibs_CXX=no
10298       ;;
10299     aCC*)
10300       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'
10301       # Commands to make compiler produce verbose output that lists
10302       # what "hidden" libraries, object files and flags are used when
10303       # linking a shared library.
10304       #
10305       # There doesn't appear to be a way to prevent this compiler from
10306       # explicitly linking system object files so we need to strip them
10307       # from the output so that they don't get included in the library
10308       # dependencies.
10309       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'
10310       ;;
10311     *)
10312       if test "$GXX" = yes; then
10313         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'
10314       else
10315         # FIXME: insert proper C++ library support
10316         ld_shlibs_CXX=no
10317       fi
10318       ;;
10319     esac
10320     ;;
10321   hpux10*|hpux11*)
10322     if test $with_gnu_ld = no; then
10323       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10324       hardcode_libdir_separator_CXX=:
10326       case $host_cpu in
10327       hppa*64*|ia64*)
10328         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10329         ;;
10330       *)
10331         export_dynamic_flag_spec_CXX='${wl}-E'
10332         ;;
10333       esac
10334     fi
10335     case $host_cpu in
10336     hppa*64*|ia64*)
10337       hardcode_direct_CXX=no
10338       hardcode_shlibpath_var_CXX=no
10339       ;;
10340     *)
10341       hardcode_direct_CXX=yes
10342       hardcode_minus_L_CXX=yes # Not in the search PATH,
10343                                               # but as the default
10344                                               # location of the library.
10345       ;;
10346     esac
10348     case $cc_basename in
10349       CC*)
10350         # FIXME: insert proper C++ library support
10351         ld_shlibs_CXX=no
10352         ;;
10353       aCC*)
10354         case $host_cpu in
10355         hppa*64*)
10356           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10357           ;;
10358         ia64*)
10359           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10360           ;;
10361         *)
10362           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10363           ;;
10364         esac
10365         # Commands to make compiler produce verbose output that lists
10366         # what "hidden" libraries, object files and flags are used when
10367         # linking a shared library.
10368         #
10369         # There doesn't appear to be a way to prevent this compiler from
10370         # explicitly linking system object files so we need to strip them
10371         # from the output so that they don't get included in the library
10372         # dependencies.
10373         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'
10374         ;;
10375       *)
10376         if test "$GXX" = yes; then
10377           if test $with_gnu_ld = no; then
10378             case $host_cpu in
10379             hppa*64*)
10380               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10381               ;;
10382             ia64*)
10383               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10384               ;;
10385             *)
10386               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'
10387               ;;
10388             esac
10389           fi
10390         else
10391           # FIXME: insert proper C++ library support
10392           ld_shlibs_CXX=no
10393         fi
10394         ;;
10395     esac
10396     ;;
10397   interix3*)
10398     hardcode_direct_CXX=no
10399     hardcode_shlibpath_var_CXX=no
10400     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10401     export_dynamic_flag_spec_CXX='${wl}-E'
10402     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10403     # Instead, shared libraries are loaded at an image base (0x10000000 by
10404     # default) and relocated if they conflict, which is a slow very memory
10405     # consuming and fragmenting process.  To avoid this, we pick a random,
10406     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10407     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10408     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'
10409     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'
10410     ;;
10411   irix5* | irix6*)
10412     case $cc_basename in
10413       CC*)
10414         # SGI C++
10415         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'
10417         # Archives containing C++ object files must be created using
10418         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10419         # necessary to make sure instantiated templates are included
10420         # in the archive.
10421         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10422         ;;
10423       *)
10424         if test "$GXX" = yes; then
10425           if test "$with_gnu_ld" = no; then
10426             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'
10427           else
10428             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'
10429           fi
10430         fi
10431         link_all_deplibs_CXX=yes
10432         ;;
10433     esac
10434     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10435     hardcode_libdir_separator_CXX=:
10436     ;;
10437   linux*)
10438     case $cc_basename in
10439       KCC*)
10440         # Kuck and Associates, Inc. (KAI) C++ Compiler
10442         # KCC will only create a shared library if the output file
10443         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10444         # to its proper name (with version) after linking.
10445         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'
10446         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'
10447         # Commands to make compiler produce verbose output that lists
10448         # what "hidden" libraries, object files and flags are used when
10449         # linking a shared library.
10450         #
10451         # There doesn't appear to be a way to prevent this compiler from
10452         # explicitly linking system object files so we need to strip them
10453         # from the output so that they don't get included in the library
10454         # dependencies.
10455         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'
10457         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10458         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10460         # Archives containing C++ object files must be created using
10461         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10462         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10463         ;;
10464       icpc*)
10465         # Intel C++
10466         with_gnu_ld=yes
10467         # version 8.0 and above of icpc choke on multiply defined symbols
10468         # if we add $predep_objects and $postdep_objects, however 7.1 and
10469         # earlier do not add the objects themselves.
10470         case `$CC -V 2>&1` in
10471         *"Version 7."*)
10472           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10473           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'
10474           ;;
10475         *)  # Version 8.0 or newer
10476           tmp_idyn=
10477           case $host_cpu in
10478             ia64*) tmp_idyn=' -i_dynamic';;
10479           esac
10480           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10481           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'
10482           ;;
10483         esac
10484         archive_cmds_need_lc_CXX=no
10485         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10486         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10487         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10488         ;;
10489       pgCC*)
10490         # Portland Group C++ compiler
10491         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10492         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'
10494         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10495         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10496         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'
10497         ;;
10498       cxx*)
10499         # Compaq C++
10500         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10501         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'
10503         runpath_var=LD_RUN_PATH
10504         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10505         hardcode_libdir_separator_CXX=:
10507         # Commands to make compiler produce verbose output that lists
10508         # what "hidden" libraries, object files and flags are used when
10509         # linking a shared library.
10510         #
10511         # There doesn't appear to be a way to prevent this compiler from
10512         # explicitly linking system object files so we need to strip them
10513         # from the output so that they don't get included in the library
10514         # dependencies.
10515         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'
10516         ;;
10517     esac
10518     ;;
10519   lynxos*)
10520     # FIXME: insert proper C++ library support
10521     ld_shlibs_CXX=no
10522     ;;
10523   m88k*)
10524     # FIXME: insert proper C++ library support
10525     ld_shlibs_CXX=no
10526     ;;
10527   mvs*)
10528     case $cc_basename in
10529       cxx*)
10530         # FIXME: insert proper C++ library support
10531         ld_shlibs_CXX=no
10532         ;;
10533       *)
10534         # FIXME: insert proper C++ library support
10535         ld_shlibs_CXX=no
10536         ;;
10537     esac
10538     ;;
10539   netbsd*)
10540     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10541       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10542       wlarc=
10543       hardcode_libdir_flag_spec_CXX='-R$libdir'
10544       hardcode_direct_CXX=yes
10545       hardcode_shlibpath_var_CXX=no
10546     fi
10547     # Workaround some broken pre-1.5 toolchains
10548     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10549     ;;
10550   openbsd2*)
10551     # C++ shared libraries are fairly broken
10552     ld_shlibs_CXX=no
10553     ;;
10554   openbsd*)
10555     hardcode_direct_CXX=yes
10556     hardcode_shlibpath_var_CXX=no
10557     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10558     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10559     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10560       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10561       export_dynamic_flag_spec_CXX='${wl}-E'
10562       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10563     fi
10564     output_verbose_link_cmd='echo'
10565     ;;
10566   osf3*)
10567     case $cc_basename in
10568       KCC*)
10569         # Kuck and Associates, Inc. (KAI) C++ Compiler
10571         # KCC will only create a shared library if the output file
10572         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10573         # to its proper name (with version) after linking.
10574         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'
10576         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10577         hardcode_libdir_separator_CXX=:
10579         # Archives containing C++ object files must be created using
10580         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10581         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10583         ;;
10584       RCC*)
10585         # Rational C++ 2.4.1
10586         # FIXME: insert proper C++ library support
10587         ld_shlibs_CXX=no
10588         ;;
10589       cxx*)
10590         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10591         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'
10593         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10594         hardcode_libdir_separator_CXX=:
10596         # Commands to make compiler produce verbose output that lists
10597         # what "hidden" libraries, object files and flags are used when
10598         # linking a shared library.
10599         #
10600         # There doesn't appear to be a way to prevent this compiler from
10601         # explicitly linking system object files so we need to strip them
10602         # from the output so that they don't get included in the library
10603         # dependencies.
10604         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'
10605         ;;
10606       *)
10607         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10608           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10609           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'
10611           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10612           hardcode_libdir_separator_CXX=:
10614           # Commands to make compiler produce verbose output that lists
10615           # what "hidden" libraries, object files and flags are used when
10616           # linking a shared library.
10617           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10619         else
10620           # FIXME: insert proper C++ library support
10621           ld_shlibs_CXX=no
10622         fi
10623         ;;
10624     esac
10625     ;;
10626   osf4* | osf5*)
10627     case $cc_basename in
10628       KCC*)
10629         # Kuck and Associates, Inc. (KAI) C++ Compiler
10631         # KCC will only create a shared library if the output file
10632         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10633         # to its proper name (with version) after linking.
10634         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'
10636         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10637         hardcode_libdir_separator_CXX=:
10639         # Archives containing C++ object files must be created using
10640         # the KAI C++ compiler.
10641         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10642         ;;
10643       RCC*)
10644         # Rational C++ 2.4.1
10645         # FIXME: insert proper C++ library support
10646         ld_shlibs_CXX=no
10647         ;;
10648       cxx*)
10649         allow_undefined_flag_CXX=' -expect_unresolved \*'
10650         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'
10651         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10652           echo "-hidden">> $lib.exp~
10653           $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~
10654           $rm $lib.exp'
10656         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10657         hardcode_libdir_separator_CXX=:
10659         # Commands to make compiler produce verbose output that lists
10660         # what "hidden" libraries, object files and flags are used when
10661         # linking a shared library.
10662         #
10663         # There doesn't appear to be a way to prevent this compiler from
10664         # explicitly linking system object files so we need to strip them
10665         # from the output so that they don't get included in the library
10666         # dependencies.
10667         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'
10668         ;;
10669       *)
10670         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10671           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10672          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'
10674           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10675           hardcode_libdir_separator_CXX=:
10677           # Commands to make compiler produce verbose output that lists
10678           # what "hidden" libraries, object files and flags are used when
10679           # linking a shared library.
10680           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10682         else
10683           # FIXME: insert proper C++ library support
10684           ld_shlibs_CXX=no
10685         fi
10686         ;;
10687     esac
10688     ;;
10689   psos*)
10690     # FIXME: insert proper C++ library support
10691     ld_shlibs_CXX=no
10692     ;;
10693   sunos4*)
10694     case $cc_basename in
10695       CC*)
10696         # Sun C++ 4.x
10697         # FIXME: insert proper C++ library support
10698         ld_shlibs_CXX=no
10699         ;;
10700       lcc*)
10701         # Lucid
10702         # FIXME: insert proper C++ library support
10703         ld_shlibs_CXX=no
10704         ;;
10705       *)
10706         # FIXME: insert proper C++ library support
10707         ld_shlibs_CXX=no
10708         ;;
10709     esac
10710     ;;
10711   solaris*)
10712     case $cc_basename in
10713       CC*)
10714         # Sun C++ 4.2, 5.x and Centerline C++
10715         archive_cmds_need_lc_CXX=yes
10716         no_undefined_flag_CXX=' -zdefs'
10717         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10718         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10719         $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'
10721         hardcode_libdir_flag_spec_CXX='-R$libdir'
10722         hardcode_shlibpath_var_CXX=no
10723         case $host_os in
10724           solaris2.[0-5] | solaris2.[0-5].*) ;;
10725           *)
10726             # The C++ compiler is used as linker so we must use $wl
10727             # flag to pass the commands to the underlying system
10728             # linker. We must also pass each convience library through
10729             # to the system linker between allextract/defaultextract.
10730             # The C++ compiler will combine linker options so we
10731             # cannot just pass the convience library names through
10732             # without $wl.
10733             # Supported since Solaris 2.6 (maybe 2.5.1?)
10734             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'
10735             ;;
10736         esac
10737         link_all_deplibs_CXX=yes
10739         output_verbose_link_cmd='echo'
10741         # Archives containing C++ object files must be created using
10742         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10743         # necessary to make sure instantiated templates are included
10744         # in the archive.
10745         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10746         ;;
10747       gcx*)
10748         # Green Hills C++ Compiler
10749         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10751         # The C++ compiler must be used to create the archive.
10752         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10753         ;;
10754       *)
10755         # GNU C++ compiler with Solaris linker
10756         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10757           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10758           if $CC --version | grep -v '^2\.7' > /dev/null; then
10759             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10760             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10761                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10763             # Commands to make compiler produce verbose output that lists
10764             # what "hidden" libraries, object files and flags are used when
10765             # linking a shared library.
10766             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10767           else
10768             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10769             # platform.
10770             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10771             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10772                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10774             # Commands to make compiler produce verbose output that lists
10775             # what "hidden" libraries, object files and flags are used when
10776             # linking a shared library.
10777             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10778           fi
10780           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10781         fi
10782         ;;
10783     esac
10784     ;;
10785   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10786     no_undefined_flag_CXX='${wl}-z,text'
10787     archive_cmds_need_lc_CXX=no
10788     hardcode_shlibpath_var_CXX=no
10789     runpath_var='LD_RUN_PATH'
10791     case $cc_basename in
10792       CC*)
10793         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795         ;;
10796       *)
10797         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10798         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799         ;;
10800     esac
10801     ;;
10802   sysv5* | sco3.2v5* | sco5v6*)
10803     # Note: We can NOT use -z defs as we might desire, because we do not
10804     # link with -lc, and that would cause any symbols used from libc to
10805     # always be unresolved, which means just about no library would
10806     # ever link correctly.  If we're not using GNU ld we use -z text
10807     # though, which does catch some bad symbols but isn't as heavy-handed
10808     # as -z defs.
10809     # For security reasons, it is highly recommended that you always
10810     # use absolute paths for naming shared libraries, and exclude the
10811     # DT_RUNPATH tag from executables and libraries.  But doing so
10812     # requires that you compile everything twice, which is a pain.
10813     # So that behaviour is only enabled if SCOABSPATH is set to a
10814     # non-empty value in the environment.  Most likely only useful for
10815     # creating official distributions of packages.
10816     # This is a hack until libtool officially supports absolute path
10817     # names for shared libraries.
10818     no_undefined_flag_CXX='${wl}-z,text'
10819     allow_undefined_flag_CXX='${wl}-z,nodefs'
10820     archive_cmds_need_lc_CXX=no
10821     hardcode_shlibpath_var_CXX=no
10822     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10823     hardcode_libdir_separator_CXX=':'
10824     link_all_deplibs_CXX=yes
10825     export_dynamic_flag_spec_CXX='${wl}-Bexport'
10826     runpath_var='LD_RUN_PATH'
10828     case $cc_basename in
10829       CC*)
10830         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10831         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10832         ;;
10833       *)
10834         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10835         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10836         ;;
10837     esac
10838     ;;
10839   tandem*)
10840     case $cc_basename in
10841       NCC*)
10842         # NonStop-UX NCC 3.20
10843         # FIXME: insert proper C++ library support
10844         ld_shlibs_CXX=no
10845         ;;
10846       *)
10847         # FIXME: insert proper C++ library support
10848         ld_shlibs_CXX=no
10849         ;;
10850     esac
10851     ;;
10852   vxworks*)
10853     # FIXME: insert proper C++ library support
10854     ld_shlibs_CXX=no
10855     ;;
10856   *)
10857     # FIXME: insert proper C++ library support
10858     ld_shlibs_CXX=no
10859     ;;
10860 esac
10861 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10862 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10863 test "$ld_shlibs_CXX" = no && can_build_shared=no
10865 GCC_CXX="$GXX"
10866 LD_CXX="$LD"
10869 cat > conftest.$ac_ext <<EOF
10870 class Foo
10872 public:
10873   Foo (void) { a = 0; }
10874 private:
10875   int a;
10877 EOF
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880   (eval $ac_compile) 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; then
10884   # Parse the compiler output and extract the necessary
10885   # objects, libraries and library flags.
10887   # Sentinel used to keep track of whether or not we are before
10888   # the conftest object file.
10889   pre_test_object_deps_done=no
10891   # The `*' in the case matches for architectures that use `case' in
10892   # $output_verbose_cmd can trigger glob expansion during the loop
10893   # eval without this substitution.
10894   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10896   for p in `eval $output_verbose_link_cmd`; do
10897     case $p in
10899     -L* | -R* | -l*)
10900        # Some compilers place space between "-{L,R}" and the path.
10901        # Remove the space.
10902        if test $p = "-L" \
10903           || test $p = "-R"; then
10904          prev=$p
10905          continue
10906        else
10907          prev=
10908        fi
10910        if test "$pre_test_object_deps_done" = no; then
10911          case $p in
10912          -L* | -R*)
10913            # Internal compiler library paths should come after those
10914            # provided the user.  The postdeps already come after the
10915            # user supplied libs so there is no need to process them.
10916            if test -z "$compiler_lib_search_path_CXX"; then
10917              compiler_lib_search_path_CXX="${prev}${p}"
10918            else
10919              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10920            fi
10921            ;;
10922          # The "-l" case would never come before the object being
10923          # linked, so don't bother handling this case.
10924          esac
10925        else
10926          if test -z "$postdeps_CXX"; then
10927            postdeps_CXX="${prev}${p}"
10928          else
10929            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10930          fi
10931        fi
10932        ;;
10934     *.$objext)
10935        # This assumes that the test object file only shows up
10936        # once in the compiler output.
10937        if test "$p" = "conftest.$objext"; then
10938          pre_test_object_deps_done=yes
10939          continue
10940        fi
10942        if test "$pre_test_object_deps_done" = no; then
10943          if test -z "$predep_objects_CXX"; then
10944            predep_objects_CXX="$p"
10945          else
10946            predep_objects_CXX="$predep_objects_CXX $p"
10947          fi
10948        else
10949          if test -z "$postdep_objects_CXX"; then
10950            postdep_objects_CXX="$p"
10951          else
10952            postdep_objects_CXX="$postdep_objects_CXX $p"
10953          fi
10954        fi
10955        ;;
10957     *) ;; # Ignore the rest.
10959     esac
10960   done
10962   # Clean up.
10963   rm -f a.out a.exe
10964 else
10965   echo "libtool.m4: error: problem compiling CXX test program"
10968 $rm -f confest.$objext
10970 # PORTME: override above test on systems where it is broken
10971 case $host_os in
10972 interix3*)
10973   # Interix 3.5 installs completely hosed .la files for C++, so rather than
10974   # hack all around it, let's just trust "g++" to DTRT.
10975   predep_objects_CXX=
10976   postdep_objects_CXX=
10977   postdeps_CXX=
10978   ;;
10980 solaris*)
10981   case $cc_basename in
10982   CC*)
10983     # Adding this requires a known-good setup of shared libraries for
10984     # Sun compiler versions before 5.6, else PIC objects from an old
10985     # archive will be linked into the output, leading to subtle bugs.
10986     postdeps_CXX='-lCstd -lCrun'
10987     ;;
10988   esac
10989   ;;
10990 esac
10993 case " $postdeps_CXX " in
10994 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10995 esac
10997 lt_prog_compiler_wl_CXX=
10998 lt_prog_compiler_pic_CXX=
10999 lt_prog_compiler_static_CXX=
11001 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11002 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11004   # C++ specific cases for pic, static, wl, etc.
11005   if test "$GXX" = yes; then
11006     lt_prog_compiler_wl_CXX='-Wl,'
11007     lt_prog_compiler_static_CXX='-static'
11009     case $host_os in
11010     aix*)
11011       # All AIX code is PIC.
11012       if test "$host_cpu" = ia64; then
11013         # AIX 5 now supports IA64 processor
11014         lt_prog_compiler_static_CXX='-Bstatic'
11015       fi
11016       ;;
11017     amigaos*)
11018       # FIXME: we need at least 68020 code to build shared libraries, but
11019       # adding the `-m68020' flag to GCC prevents building anything better,
11020       # like `-m68040'.
11021       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11022       ;;
11023     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11024       # PIC is the default for these OSes.
11025       ;;
11026     mingw* | os2* | pw32*)
11027       # This hack is so that the source file can tell whether it is being
11028       # built for inclusion in a dll (and should export symbols for example).
11029       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11030       ;;
11031     darwin* | rhapsody*)
11032       # PIC is the default on this platform
11033       # Common symbols not allowed in MH_DYLIB files
11034       lt_prog_compiler_pic_CXX='-fno-common'
11035       ;;
11036     *djgpp*)
11037       # DJGPP does not support shared libraries at all
11038       lt_prog_compiler_pic_CXX=
11039       ;;
11040     interix3*)
11041       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11042       # Instead, we relocate shared libraries at runtime.
11043       ;;
11044     sysv4*MP*)
11045       if test -d /usr/nec; then
11046         lt_prog_compiler_pic_CXX=-Kconform_pic
11047       fi
11048       ;;
11049     hpux*)
11050       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11051       # not for PA HP-UX.
11052       case $host_cpu in
11053       hppa*64*|ia64*)
11054         ;;
11055       *)
11056         lt_prog_compiler_pic_CXX='-fPIC'
11057         ;;
11058       esac
11059       ;;
11060     *)
11061       lt_prog_compiler_pic_CXX='-fPIC'
11062       ;;
11063     esac
11064   else
11065     case $host_os in
11066       aix4* | aix5*)
11067         # All AIX code is PIC.
11068         if test "$host_cpu" = ia64; then
11069           # AIX 5 now supports IA64 processor
11070           lt_prog_compiler_static_CXX='-Bstatic'
11071         else
11072           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11073         fi
11074         ;;
11075       chorus*)
11076         case $cc_basename in
11077         cxch68*)
11078           # Green Hills C++ Compiler
11079           # _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"
11080           ;;
11081         esac
11082         ;;
11083        darwin*)
11084          # PIC is the default on this platform
11085          # Common symbols not allowed in MH_DYLIB files
11086          case $cc_basename in
11087            xlc*)
11088            lt_prog_compiler_pic_CXX='-qnocommon'
11089            lt_prog_compiler_wl_CXX='-Wl,'
11090            ;;
11091          esac
11092        ;;
11093       dgux*)
11094         case $cc_basename in
11095           ec++*)
11096             lt_prog_compiler_pic_CXX='-KPIC'
11097             ;;
11098           ghcx*)
11099             # Green Hills C++ Compiler
11100             lt_prog_compiler_pic_CXX='-pic'
11101             ;;
11102           *)
11103             ;;
11104         esac
11105         ;;
11106       freebsd* | kfreebsd*-gnu | dragonfly*)
11107         # FreeBSD uses GNU C++
11108         ;;
11109       hpux9* | hpux10* | hpux11*)
11110         case $cc_basename in
11111           CC*)
11112             lt_prog_compiler_wl_CXX='-Wl,'
11113             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11114             if test "$host_cpu" != ia64; then
11115               lt_prog_compiler_pic_CXX='+Z'
11116             fi
11117             ;;
11118           aCC*)
11119             lt_prog_compiler_wl_CXX='-Wl,'
11120             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11121             case $host_cpu in
11122             hppa*64*|ia64*)
11123               # +Z the default
11124               ;;
11125             *)
11126               lt_prog_compiler_pic_CXX='+Z'
11127               ;;
11128             esac
11129             ;;
11130           *)
11131             ;;
11132         esac
11133         ;;
11134       interix*)
11135         # This is c89, which is MS Visual C++ (no shared libs)
11136         # Anyone wants to do a port?
11137         ;;
11138       irix5* | irix6* | nonstopux*)
11139         case $cc_basename in
11140           CC*)
11141             lt_prog_compiler_wl_CXX='-Wl,'
11142             lt_prog_compiler_static_CXX='-non_shared'
11143             # CC pic flag -KPIC is the default.
11144             ;;
11145           *)
11146             ;;
11147         esac
11148         ;;
11149       linux*)
11150         case $cc_basename in
11151           KCC*)
11152             # KAI C++ Compiler
11153             lt_prog_compiler_wl_CXX='--backend -Wl,'
11154             lt_prog_compiler_pic_CXX='-fPIC'
11155             ;;
11156           icpc* | ecpc*)
11157             # Intel C++
11158             lt_prog_compiler_wl_CXX='-Wl,'
11159             lt_prog_compiler_pic_CXX='-KPIC'
11160             lt_prog_compiler_static_CXX='-static'
11161             ;;
11162           pgCC*)
11163             # Portland Group C++ compiler.
11164             lt_prog_compiler_wl_CXX='-Wl,'
11165             lt_prog_compiler_pic_CXX='-fpic'
11166             lt_prog_compiler_static_CXX='-Bstatic'
11167             ;;
11168           cxx*)
11169             # Compaq C++
11170             # Make sure the PIC flag is empty.  It appears that all Alpha
11171             # Linux and Compaq Tru64 Unix objects are PIC.
11172             lt_prog_compiler_pic_CXX=
11173             lt_prog_compiler_static_CXX='-non_shared'
11174             ;;
11175           *)
11176             ;;
11177         esac
11178         ;;
11179       lynxos*)
11180         ;;
11181       m88k*)
11182         ;;
11183       mvs*)
11184         case $cc_basename in
11185           cxx*)
11186             lt_prog_compiler_pic_CXX='-W c,exportall'
11187             ;;
11188           *)
11189             ;;
11190         esac
11191         ;;
11192       netbsd*)
11193         ;;
11194       osf3* | osf4* | osf5*)
11195         case $cc_basename in
11196           KCC*)
11197             lt_prog_compiler_wl_CXX='--backend -Wl,'
11198             ;;
11199           RCC*)
11200             # Rational C++ 2.4.1
11201             lt_prog_compiler_pic_CXX='-pic'
11202             ;;
11203           cxx*)
11204             # Digital/Compaq C++
11205             lt_prog_compiler_wl_CXX='-Wl,'
11206             # Make sure the PIC flag is empty.  It appears that all Alpha
11207             # Linux and Compaq Tru64 Unix objects are PIC.
11208             lt_prog_compiler_pic_CXX=
11209             lt_prog_compiler_static_CXX='-non_shared'
11210             ;;
11211           *)
11212             ;;
11213         esac
11214         ;;
11215       psos*)
11216         ;;
11217       solaris*)
11218         case $cc_basename in
11219           CC*)
11220             # Sun C++ 4.2, 5.x and Centerline C++
11221             lt_prog_compiler_pic_CXX='-KPIC'
11222             lt_prog_compiler_static_CXX='-Bstatic'
11223             lt_prog_compiler_wl_CXX='-Qoption ld '
11224             ;;
11225           gcx*)
11226             # Green Hills C++ Compiler
11227             lt_prog_compiler_pic_CXX='-PIC'
11228             ;;
11229           *)
11230             ;;
11231         esac
11232         ;;
11233       sunos4*)
11234         case $cc_basename in
11235           CC*)
11236             # Sun C++ 4.x
11237             lt_prog_compiler_pic_CXX='-pic'
11238             lt_prog_compiler_static_CXX='-Bstatic'
11239             ;;
11240           lcc*)
11241             # Lucid
11242             lt_prog_compiler_pic_CXX='-pic'
11243             ;;
11244           *)
11245             ;;
11246         esac
11247         ;;
11248       tandem*)
11249         case $cc_basename in
11250           NCC*)
11251             # NonStop-UX NCC 3.20
11252             lt_prog_compiler_pic_CXX='-KPIC'
11253             ;;
11254           *)
11255             ;;
11256         esac
11257         ;;
11258       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11259         case $cc_basename in
11260           CC*)
11261             lt_prog_compiler_wl_CXX='-Wl,'
11262             lt_prog_compiler_pic_CXX='-KPIC'
11263             lt_prog_compiler_static_CXX='-Bstatic'
11264             ;;
11265         esac
11266         ;;
11267       vxworks*)
11268         ;;
11269       *)
11270         lt_prog_compiler_can_build_shared_CXX=no
11271         ;;
11272     esac
11273   fi
11275 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11276 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11279 # Check to make sure the PIC flag actually works.
11281 if test -n "$lt_prog_compiler_pic_CXX"; then
11283 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11284 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11285 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11286   echo $ECHO_N "(cached) $ECHO_C" >&6
11287 else
11288   lt_prog_compiler_pic_works_CXX=no
11289   ac_outfile=conftest.$ac_objext
11290    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11291    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11292    # Insert the option either (1) after the last *FLAGS variable, or
11293    # (2) before a word containing "conftest.", or (3) at the end.
11294    # Note that $ac_compile itself does not contain backslashes and begins
11295    # with a dollar sign (not a hyphen), so the echo should work correctly.
11296    # The option is referenced via a variable to avoid confusing sed.
11297    lt_compile=`echo "$ac_compile" | $SED \
11298    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11299    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11300    -e 's:$: $lt_compiler_flag:'`
11301    (eval echo "\"\$as_me:11301: $lt_compile\"" >&5)
11302    (eval "$lt_compile" 2>conftest.err)
11303    ac_status=$?
11304    cat conftest.err >&5
11305    echo "$as_me:11305: \$? = $ac_status" >&5
11306    if (exit $ac_status) && test -s "$ac_outfile"; then
11307      # The compiler can only warn and ignore the option if not recognized
11308      # So say no if there are warnings other than the usual output.
11309      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11310      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11311      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11312        lt_prog_compiler_pic_works_CXX=yes
11313      fi
11314    fi
11315    $rm conftest*
11318 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11319 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11321 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11322     case $lt_prog_compiler_pic_CXX in
11323      "" | " "*) ;;
11324      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11325      esac
11326 else
11327     lt_prog_compiler_pic_CXX=
11328      lt_prog_compiler_can_build_shared_CXX=no
11332 case $host_os in
11333   # For platforms which do not support PIC, -DPIC is meaningless:
11334   *djgpp*)
11335     lt_prog_compiler_pic_CXX=
11336     ;;
11337   *)
11338     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11339     ;;
11340 esac
11343 # Check to make sure the static flag actually works.
11345 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11346 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11347 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11348 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   lt_prog_compiler_static_works_CXX=no
11352    save_LDFLAGS="$LDFLAGS"
11353    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11354    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11355    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11356      # The linker can only warn and ignore the option if not recognized
11357      # So say no if there are warnings
11358      if test -s conftest.err; then
11359        # Append any errors to the config.log.
11360        cat conftest.err 1>&5
11361        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11362        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11363        if diff conftest.exp conftest.er2 >/dev/null; then
11364          lt_prog_compiler_static_works_CXX=yes
11365        fi
11366      else
11367        lt_prog_compiler_static_works_CXX=yes
11368      fi
11369    fi
11370    $rm conftest*
11371    LDFLAGS="$save_LDFLAGS"
11374 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11375 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11377 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11378     :
11379 else
11380     lt_prog_compiler_static_CXX=
11384 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11385 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11386 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11387   echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389   lt_cv_prog_compiler_c_o_CXX=no
11390    $rm -r conftest 2>/dev/null
11391    mkdir conftest
11392    cd conftest
11393    mkdir out
11394    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11396    lt_compiler_flag="-o out/conftest2.$ac_objext"
11397    # Insert the option either (1) after the last *FLAGS variable, or
11398    # (2) before a word containing "conftest.", or (3) at the end.
11399    # Note that $ac_compile itself does not contain backslashes and begins
11400    # with a dollar sign (not a hyphen), so the echo should work correctly.
11401    lt_compile=`echo "$ac_compile" | $SED \
11402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11404    -e 's:$: $lt_compiler_flag:'`
11405    (eval echo "\"\$as_me:11405: $lt_compile\"" >&5)
11406    (eval "$lt_compile" 2>out/conftest.err)
11407    ac_status=$?
11408    cat out/conftest.err >&5
11409    echo "$as_me:11409: \$? = $ac_status" >&5
11410    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11411    then
11412      # The compiler can only warn and ignore the option if not recognized
11413      # So say no if there are warnings
11414      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11415      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11416      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11417        lt_cv_prog_compiler_c_o_CXX=yes
11418      fi
11419    fi
11420    chmod u+w . 2>&5
11421    $rm conftest*
11422    # SGI C++ compiler will create directory out/ii_files/ for
11423    # template instantiation
11424    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11425    $rm out/* && rmdir out
11426    cd ..
11427    rmdir conftest
11428    $rm conftest*
11431 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11432 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11435 hard_links="nottested"
11436 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11437   # do not overwrite the value of need_locks provided by the user
11438   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11439 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11440   hard_links=yes
11441   $rm conftest*
11442   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11443   touch conftest.a
11444   ln conftest.a conftest.b 2>&5 || hard_links=no
11445   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11446   echo "$as_me:$LINENO: result: $hard_links" >&5
11447 echo "${ECHO_T}$hard_links" >&6
11448   if test "$hard_links" = no; then
11449     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11450 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11451     need_locks=warn
11452   fi
11453 else
11454   need_locks=no
11457 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11458 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11460   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11461   case $host_os in
11462   aix4* | aix5*)
11463     # If we're using GNU nm, then we don't want the "-C" option.
11464     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11465     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11466       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'
11467     else
11468       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'
11469     fi
11470     ;;
11471   pw32*)
11472     export_symbols_cmds_CXX="$ltdll_cmds"
11473   ;;
11474   cygwin* | mingw*)
11475     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'
11476   ;;
11477   *)
11478     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11479   ;;
11480   esac
11482 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11483 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11484 test "$ld_shlibs_CXX" = no && can_build_shared=no
11487 # Do we need to explicitly link libc?
11489 case "x$archive_cmds_need_lc_CXX" in
11490 x|xyes)
11491   # Assume -lc should be added
11492   archive_cmds_need_lc_CXX=yes
11494   if test "$enable_shared" = yes && test "$GCC" = yes; then
11495     case $archive_cmds_CXX in
11496     *'~'*)
11497       # FIXME: we may have to deal with multi-command sequences.
11498       ;;
11499     '$CC '*)
11500       # Test whether the compiler implicitly links with -lc since on some
11501       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11502       # to ld, don't add -lc before -lgcc.
11503       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11504 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11505       $rm conftest*
11506       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11508       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11509   (eval $ac_compile) 2>&5
11510   ac_status=$?
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); } 2>conftest.err; then
11513         soname=conftest
11514         lib=conftest
11515         libobjs=conftest.$ac_objext
11516         deplibs=
11517         wl=$lt_prog_compiler_wl_CXX
11518         pic_flag=$lt_prog_compiler_pic_CXX
11519         compiler_flags=-v
11520         linker_flags=-v
11521         verstring=
11522         output_objdir=.
11523         libname=conftest
11524         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11525         allow_undefined_flag_CXX=
11526         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11527   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11528   ac_status=$?
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); }
11531         then
11532           archive_cmds_need_lc_CXX=no
11533         else
11534           archive_cmds_need_lc_CXX=yes
11535         fi
11536         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11537       else
11538         cat conftest.err 1>&5
11539       fi
11540       $rm conftest*
11541       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11542 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11543       ;;
11544     esac
11545   fi
11546   ;;
11547 esac
11549 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11550 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11551 library_names_spec=
11552 libname_spec='lib$name'
11553 soname_spec=
11554 shrext_cmds=".so"
11555 postinstall_cmds=
11556 postuninstall_cmds=
11557 finish_cmds=
11558 finish_eval=
11559 shlibpath_var=
11560 shlibpath_overrides_runpath=unknown
11561 version_type=none
11562 dynamic_linker="$host_os ld.so"
11563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11564 if test "$GCC" = yes; then
11565   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11566   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11567     # if the path contains ";" then we assume it to be the separator
11568     # otherwise default to the standard path separator (i.e. ":") - it is
11569     # assumed that no part of a normal pathname contains ";" but that should
11570     # okay in the real world where ";" in dirpaths is itself problematic.
11571     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11572   else
11573     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11574   fi
11575 else
11576   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11578 need_lib_prefix=unknown
11579 hardcode_into_libs=no
11581 # when you set need_version to no, make sure it does not cause -set_version
11582 # flags to be left without arguments
11583 need_version=unknown
11585 case $host_os in
11586 aix3*)
11587   version_type=linux
11588   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11589   shlibpath_var=LIBPATH
11591   # AIX 3 has no versioning support, so we append a major version to the name.
11592   soname_spec='${libname}${release}${shared_ext}$major'
11593   ;;
11595 aix4* | aix5*)
11596   version_type=linux
11597   need_lib_prefix=no
11598   need_version=no
11599   hardcode_into_libs=yes
11600   if test "$host_cpu" = ia64; then
11601     # AIX 5 supports IA64
11602     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11603     shlibpath_var=LD_LIBRARY_PATH
11604   else
11605     # With GCC up to 2.95.x, collect2 would create an import file
11606     # for dependence libraries.  The import file would start with
11607     # the line `#! .'.  This would cause the generated library to
11608     # depend on `.', always an invalid library.  This was fixed in
11609     # development snapshots of GCC prior to 3.0.
11610     case $host_os in
11611       aix4 | aix4.[01] | aix4.[01].*)
11612       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11613            echo ' yes '
11614            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11615         :
11616       else
11617         can_build_shared=no
11618       fi
11619       ;;
11620     esac
11621     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11622     # soname into executable. Probably we can add versioning support to
11623     # collect2, so additional links can be useful in future.
11624     if test "$aix_use_runtimelinking" = yes; then
11625       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11626       # instead of lib<name>.a to let people know that these are not
11627       # typical AIX shared libraries.
11628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629     else
11630       # We preserve .a as extension for shared libraries through AIX4.2
11631       # and later when we are not doing run time linking.
11632       library_names_spec='${libname}${release}.a $libname.a'
11633       soname_spec='${libname}${release}${shared_ext}$major'
11634     fi
11635     shlibpath_var=LIBPATH
11636   fi
11637   ;;
11639 amigaos*)
11640   library_names_spec='$libname.ixlibrary $libname.a'
11641   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11642   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'
11643   ;;
11645 beos*)
11646   library_names_spec='${libname}${shared_ext}'
11647   dynamic_linker="$host_os ld.so"
11648   shlibpath_var=LIBRARY_PATH
11649   ;;
11651 bsdi[45]*)
11652   version_type=linux
11653   need_version=no
11654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655   soname_spec='${libname}${release}${shared_ext}$major'
11656   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11657   shlibpath_var=LD_LIBRARY_PATH
11658   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11659   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11660   # the default ld.so.conf also contains /usr/contrib/lib and
11661   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11662   # libtool to hard-code these into programs
11663   ;;
11665 cygwin* | mingw* | pw32*)
11666   version_type=windows
11667   shrext_cmds=".dll"
11668   need_version=no
11669   need_lib_prefix=no
11671   case $GCC,$host_os in
11672   yes,cygwin* | yes,mingw* | yes,pw32*)
11673     library_names_spec='$libname.dll.a'
11674     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11675     postinstall_cmds='base_file=`basename \${file}`~
11676       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11677       dldir=$destdir/`dirname \$dlpath`~
11678       test -d \$dldir || mkdir -p \$dldir~
11679       $install_prog $dir/$dlname \$dldir/$dlname~
11680       chmod a+x \$dldir/$dlname'
11681     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11682       dlpath=$dir/\$dldll~
11683        $rm \$dlpath'
11684     shlibpath_overrides_runpath=yes
11686     case $host_os in
11687     cygwin*)
11688       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11689       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11690       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11691       ;;
11692     mingw*)
11693       # MinGW DLLs use traditional 'lib' prefix
11694       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11695       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11696       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11697         # It is most probably a Windows format PATH printed by
11698         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11699         # path with ; separators, and with drive letters. We can handle the
11700         # drive letters (cygwin fileutils understands them), so leave them,
11701         # especially as we might pass files found there to a mingw objdump,
11702         # which wouldn't understand a cygwinified path. Ahh.
11703         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11704       else
11705         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11706       fi
11707       ;;
11708     pw32*)
11709       # pw32 DLLs use 'pw' prefix rather than 'lib'
11710       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11711       ;;
11712     esac
11713     ;;
11715   *)
11716     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11717     ;;
11718   esac
11719   dynamic_linker='Win32 ld.exe'
11720   # FIXME: first we should search . and the directory the executable is in
11721   shlibpath_var=PATH
11722   ;;
11724 darwin* | rhapsody*)
11725   dynamic_linker="$host_os dyld"
11726   version_type=darwin
11727   need_lib_prefix=no
11728   need_version=no
11729   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11730   soname_spec='${libname}${release}${major}$shared_ext'
11731   shlibpath_overrides_runpath=yes
11732   shlibpath_var=DYLD_LIBRARY_PATH
11733   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11734   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11735   if test "$GCC" = yes; then
11736     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"`
11737   else
11738     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11739   fi
11740   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11741   ;;
11743 dgux*)
11744   version_type=linux
11745   need_lib_prefix=no
11746   need_version=no
11747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11748   soname_spec='${libname}${release}${shared_ext}$major'
11749   shlibpath_var=LD_LIBRARY_PATH
11750   ;;
11752 freebsd1*)
11753   dynamic_linker=no
11754   ;;
11756 kfreebsd*-gnu)
11757   version_type=linux
11758   need_lib_prefix=no
11759   need_version=no
11760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11761   soname_spec='${libname}${release}${shared_ext}$major'
11762   shlibpath_var=LD_LIBRARY_PATH
11763   shlibpath_overrides_runpath=no
11764   hardcode_into_libs=yes
11765   dynamic_linker='GNU ld.so'
11766   ;;
11768 freebsd* | dragonfly*)
11769   # DragonFly does not have aout.  When/if they implement a new
11770   # versioning mechanism, adjust this.
11771   if test -x /usr/bin/objformat; then
11772     objformat=`/usr/bin/objformat`
11773   else
11774     case $host_os in
11775     freebsd[123]*) objformat=aout ;;
11776     *) objformat=elf ;;
11777     esac
11778   fi
11779   version_type=freebsd-$objformat
11780   case $version_type in
11781     freebsd-elf*)
11782       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11783       need_version=no
11784       need_lib_prefix=no
11785       ;;
11786     freebsd-*)
11787       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11788       need_version=yes
11789       ;;
11790   esac
11791   shlibpath_var=LD_LIBRARY_PATH
11792   case $host_os in
11793   freebsd2*)
11794     shlibpath_overrides_runpath=yes
11795     ;;
11796   freebsd3.[01]* | freebsdelf3.[01]*)
11797     shlibpath_overrides_runpath=yes
11798     hardcode_into_libs=yes
11799     ;;
11800   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11801   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11802     shlibpath_overrides_runpath=no
11803     hardcode_into_libs=yes
11804     ;;
11805   freebsd*) # from 4.6 on
11806     shlibpath_overrides_runpath=yes
11807     hardcode_into_libs=yes
11808     ;;
11809   esac
11810   ;;
11812 gnu*)
11813   version_type=linux
11814   need_lib_prefix=no
11815   need_version=no
11816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11817   soname_spec='${libname}${release}${shared_ext}$major'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   hardcode_into_libs=yes
11820   ;;
11822 hpux9* | hpux10* | hpux11*)
11823   # Give a soname corresponding to the major version so that dld.sl refuses to
11824   # link against other versions.
11825   version_type=sunos
11826   need_lib_prefix=no
11827   need_version=no
11828   case $host_cpu in
11829   ia64*)
11830     shrext_cmds='.so'
11831     hardcode_into_libs=yes
11832     dynamic_linker="$host_os dld.so"
11833     shlibpath_var=LD_LIBRARY_PATH
11834     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836     soname_spec='${libname}${release}${shared_ext}$major'
11837     if test "X$HPUX_IA64_MODE" = X32; then
11838       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11839     else
11840       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11841     fi
11842     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11843     ;;
11844    hppa*64*)
11845      shrext_cmds='.sl'
11846      hardcode_into_libs=yes
11847      dynamic_linker="$host_os dld.sl"
11848      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11849      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11850      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851      soname_spec='${libname}${release}${shared_ext}$major'
11852      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11853      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11854      ;;
11855    *)
11856     shrext_cmds='.sl'
11857     dynamic_linker="$host_os dld.sl"
11858     shlibpath_var=SHLIB_PATH
11859     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11860     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861     soname_spec='${libname}${release}${shared_ext}$major'
11862     ;;
11863   esac
11864   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11865   postinstall_cmds='chmod 555 $lib'
11866   ;;
11868 interix3*)
11869   version_type=linux
11870   need_lib_prefix=no
11871   need_version=no
11872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11873   soname_spec='${libname}${release}${shared_ext}$major'
11874   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11875   shlibpath_var=LD_LIBRARY_PATH
11876   shlibpath_overrides_runpath=no
11877   hardcode_into_libs=yes
11878   ;;
11880 irix5* | irix6* | nonstopux*)
11881   case $host_os in
11882     nonstopux*) version_type=nonstopux ;;
11883     *)
11884         if test "$lt_cv_prog_gnu_ld" = yes; then
11885                 version_type=linux
11886         else
11887                 version_type=irix
11888         fi ;;
11889   esac
11890   need_lib_prefix=no
11891   need_version=no
11892   soname_spec='${libname}${release}${shared_ext}$major'
11893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11894   case $host_os in
11895   irix5* | nonstopux*)
11896     libsuff= shlibsuff=
11897     ;;
11898   *)
11899     case $LD in # libtool.m4 will add one of these switches to LD
11900     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11901       libsuff= shlibsuff= libmagic=32-bit;;
11902     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11903       libsuff=32 shlibsuff=N32 libmagic=N32;;
11904     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11905       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11906     *) libsuff= shlibsuff= libmagic=never-match;;
11907     esac
11908     ;;
11909   esac
11910   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11911   shlibpath_overrides_runpath=no
11912   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11913   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11914   hardcode_into_libs=yes
11915   ;;
11917 # No shared lib support for Linux oldld, aout, or coff.
11918 linux*oldld* | linux*aout* | linux*coff*)
11919   dynamic_linker=no
11920   ;;
11922 # This must be Linux ELF.
11923 linux*)
11924   version_type=linux
11925   need_lib_prefix=no
11926   need_version=no
11927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11928   soname_spec='${libname}${release}${shared_ext}$major'
11929   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11930   shlibpath_var=LD_LIBRARY_PATH
11931   shlibpath_overrides_runpath=no
11932   # This implies no fast_install, which is unacceptable.
11933   # Some rework will be needed to allow for fast_install
11934   # before this can be enabled.
11935   hardcode_into_libs=yes
11937   # Append ld.so.conf contents to the search path
11938   if test -f /etc/ld.so.conf; then
11939     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' ' '`
11940     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11941   fi
11943   # We used to test for /lib/ld.so.1 and disable shared libraries on
11944   # powerpc, because MkLinux only supported shared libraries with the
11945   # GNU dynamic linker.  Since this was broken with cross compilers,
11946   # most powerpc-linux boxes support dynamic linking these days and
11947   # people can always --disable-shared, the test was removed, and we
11948   # assume the GNU/Linux dynamic linker is in use.
11949   dynamic_linker='GNU/Linux ld.so'
11950   ;;
11952 knetbsd*-gnu)
11953   version_type=linux
11954   need_lib_prefix=no
11955   need_version=no
11956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11957   soname_spec='${libname}${release}${shared_ext}$major'
11958   shlibpath_var=LD_LIBRARY_PATH
11959   shlibpath_overrides_runpath=no
11960   hardcode_into_libs=yes
11961   dynamic_linker='GNU ld.so'
11962   ;;
11964 netbsd*)
11965   version_type=sunos
11966   need_lib_prefix=no
11967   need_version=no
11968   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11970     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11971     dynamic_linker='NetBSD (a.out) ld.so'
11972   else
11973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11974     soname_spec='${libname}${release}${shared_ext}$major'
11975     dynamic_linker='NetBSD ld.elf_so'
11976   fi
11977   shlibpath_var=LD_LIBRARY_PATH
11978   shlibpath_overrides_runpath=yes
11979   hardcode_into_libs=yes
11980   ;;
11982 newsos6)
11983   version_type=linux
11984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985   shlibpath_var=LD_LIBRARY_PATH
11986   shlibpath_overrides_runpath=yes
11987   ;;
11989 nto-qnx*)
11990   version_type=linux
11991   need_lib_prefix=no
11992   need_version=no
11993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11994   soname_spec='${libname}${release}${shared_ext}$major'
11995   shlibpath_var=LD_LIBRARY_PATH
11996   shlibpath_overrides_runpath=yes
11997   ;;
11999 openbsd*)
12000   version_type=sunos
12001   sys_lib_dlsearch_path_spec="/usr/lib"
12002   need_lib_prefix=no
12003   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12004   case $host_os in
12005     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12006     *)                         need_version=no  ;;
12007   esac
12008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12009   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12010   shlibpath_var=LD_LIBRARY_PATH
12011   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12012     case $host_os in
12013       openbsd2.[89] | openbsd2.[89].*)
12014         shlibpath_overrides_runpath=no
12015         ;;
12016       *)
12017         shlibpath_overrides_runpath=yes
12018         ;;
12019       esac
12020   else
12021     shlibpath_overrides_runpath=yes
12022   fi
12023   ;;
12025 os2*)
12026   libname_spec='$name'
12027   shrext_cmds=".dll"
12028   need_lib_prefix=no
12029   library_names_spec='$libname${shared_ext} $libname.a'
12030   dynamic_linker='OS/2 ld.exe'
12031   shlibpath_var=LIBPATH
12032   ;;
12034 osf3* | osf4* | osf5*)
12035   version_type=osf
12036   need_lib_prefix=no
12037   need_version=no
12038   soname_spec='${libname}${release}${shared_ext}$major'
12039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040   shlibpath_var=LD_LIBRARY_PATH
12041   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12042   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12043   ;;
12045 solaris*)
12046   version_type=linux
12047   need_lib_prefix=no
12048   need_version=no
12049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12050   soname_spec='${libname}${release}${shared_ext}$major'
12051   shlibpath_var=LD_LIBRARY_PATH
12052   shlibpath_overrides_runpath=yes
12053   hardcode_into_libs=yes
12054   # ldd complains unless libraries are executable
12055   postinstall_cmds='chmod +x $lib'
12056   ;;
12058 sunos4*)
12059   version_type=sunos
12060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12061   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12062   shlibpath_var=LD_LIBRARY_PATH
12063   shlibpath_overrides_runpath=yes
12064   if test "$with_gnu_ld" = yes; then
12065     need_lib_prefix=no
12066   fi
12067   need_version=yes
12068   ;;
12070 sysv4 | sysv4.3*)
12071   version_type=linux
12072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073   soname_spec='${libname}${release}${shared_ext}$major'
12074   shlibpath_var=LD_LIBRARY_PATH
12075   case $host_vendor in
12076     sni)
12077       shlibpath_overrides_runpath=no
12078       need_lib_prefix=no
12079       export_dynamic_flag_spec='${wl}-Blargedynsym'
12080       runpath_var=LD_RUN_PATH
12081       ;;
12082     siemens)
12083       need_lib_prefix=no
12084       ;;
12085     motorola)
12086       need_lib_prefix=no
12087       need_version=no
12088       shlibpath_overrides_runpath=no
12089       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12090       ;;
12091   esac
12092   ;;
12094 sysv4*MP*)
12095   if test -d /usr/nec ;then
12096     version_type=linux
12097     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12098     soname_spec='$libname${shared_ext}.$major'
12099     shlibpath_var=LD_LIBRARY_PATH
12100   fi
12101   ;;
12103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12104   version_type=freebsd-elf
12105   need_lib_prefix=no
12106   need_version=no
12107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12108   soname_spec='${libname}${release}${shared_ext}$major'
12109   shlibpath_var=LD_LIBRARY_PATH
12110   hardcode_into_libs=yes
12111   if test "$with_gnu_ld" = yes; then
12112     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12113     shlibpath_overrides_runpath=no
12114   else
12115     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12116     shlibpath_overrides_runpath=yes
12117     case $host_os in
12118       sco3.2v5*)
12119         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12120         ;;
12121     esac
12122   fi
12123   sys_lib_dlsearch_path_spec='/usr/lib'
12124   ;;
12126 uts4*)
12127   version_type=linux
12128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12129   soname_spec='${libname}${release}${shared_ext}$major'
12130   shlibpath_var=LD_LIBRARY_PATH
12131   ;;
12134   dynamic_linker=no
12135   ;;
12136 esac
12137 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12138 echo "${ECHO_T}$dynamic_linker" >&6
12139 test "$dynamic_linker" = no && can_build_shared=no
12141 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12142 if test "$GCC" = yes; then
12143   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12146 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12147 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12148 hardcode_action_CXX=
12149 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12150    test -n "$runpath_var_CXX" || \
12151    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12153   # We can hardcode non-existant directories.
12154   if test "$hardcode_direct_CXX" != no &&
12155      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12156      # have to relink, otherwise we might link with an installed library
12157      # when we should be linking with a yet-to-be-installed one
12158      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12159      test "$hardcode_minus_L_CXX" != no; then
12160     # Linking always hardcodes the temporary library directory.
12161     hardcode_action_CXX=relink
12162   else
12163     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12164     hardcode_action_CXX=immediate
12165   fi
12166 else
12167   # We cannot hardcode anything, or else we can only hardcode existing
12168   # directories.
12169   hardcode_action_CXX=unsupported
12171 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12172 echo "${ECHO_T}$hardcode_action_CXX" >&6
12174 if test "$hardcode_action_CXX" = relink; then
12175   # Fast installation is not supported
12176   enable_fast_install=no
12177 elif test "$shlibpath_overrides_runpath" = yes ||
12178      test "$enable_shared" = no; then
12179   # Fast installation is not necessary
12180   enable_fast_install=needless
12184 # The else clause should only fire when bootstrapping the
12185 # libtool distribution, otherwise you forgot to ship ltmain.sh
12186 # with your package, and you will get complaints that there are
12187 # no rules to generate ltmain.sh.
12188 if test -f "$ltmain"; then
12189   # See if we are running on zsh, and set the options which allow our commands through
12190   # without removal of \ escapes.
12191   if test -n "${ZSH_VERSION+set}" ; then
12192     setopt NO_GLOB_SUBST
12193   fi
12194   # Now quote all the things that may contain metacharacters while being
12195   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12196   # variables and quote the copies for generation of the libtool script.
12197   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12198     SED SHELL STRIP \
12199     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12200     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12201     deplibs_check_method reload_flag reload_cmds need_locks \
12202     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12203     lt_cv_sys_global_symbol_to_c_name_address \
12204     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12205     old_postinstall_cmds old_postuninstall_cmds \
12206     compiler_CXX \
12207     CC_CXX \
12208     LD_CXX \
12209     lt_prog_compiler_wl_CXX \
12210     lt_prog_compiler_pic_CXX \
12211     lt_prog_compiler_static_CXX \
12212     lt_prog_compiler_no_builtin_flag_CXX \
12213     export_dynamic_flag_spec_CXX \
12214     thread_safe_flag_spec_CXX \
12215     whole_archive_flag_spec_CXX \
12216     enable_shared_with_static_runtimes_CXX \
12217     old_archive_cmds_CXX \
12218     old_archive_from_new_cmds_CXX \
12219     predep_objects_CXX \
12220     postdep_objects_CXX \
12221     predeps_CXX \
12222     postdeps_CXX \
12223     compiler_lib_search_path_CXX \
12224     archive_cmds_CXX \
12225     archive_expsym_cmds_CXX \
12226     postinstall_cmds_CXX \
12227     postuninstall_cmds_CXX \
12228     old_archive_from_expsyms_cmds_CXX \
12229     allow_undefined_flag_CXX \
12230     no_undefined_flag_CXX \
12231     export_symbols_cmds_CXX \
12232     hardcode_libdir_flag_spec_CXX \
12233     hardcode_libdir_flag_spec_ld_CXX \
12234     hardcode_libdir_separator_CXX \
12235     hardcode_automatic_CXX \
12236     module_cmds_CXX \
12237     module_expsym_cmds_CXX \
12238     lt_cv_prog_compiler_c_o_CXX \
12239     exclude_expsyms_CXX \
12240     include_expsyms_CXX; do
12242     case $var in
12243     old_archive_cmds_CXX | \
12244     old_archive_from_new_cmds_CXX | \
12245     archive_cmds_CXX | \
12246     archive_expsym_cmds_CXX | \
12247     module_cmds_CXX | \
12248     module_expsym_cmds_CXX | \
12249     old_archive_from_expsyms_cmds_CXX | \
12250     export_symbols_cmds_CXX | \
12251     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12252     postinstall_cmds | postuninstall_cmds | \
12253     old_postinstall_cmds | old_postuninstall_cmds | \
12254     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12255       # Double-quote double-evaled strings.
12256       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12257       ;;
12258     *)
12259       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12260       ;;
12261     esac
12262   done
12264   case $lt_echo in
12265   *'\$0 --fallback-echo"')
12266     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12267     ;;
12268   esac
12270 cfgfile="$ofile"
12272   cat <<__EOF__ >> "$cfgfile"
12273 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12277 # Shell to use when invoking shell scripts.
12278 SHELL=$lt_SHELL
12280 # Whether or not to build shared libraries.
12281 build_libtool_libs=$enable_shared
12283 # Whether or not to build static libraries.
12284 build_old_libs=$enable_static
12286 # Whether or not to add -lc for building shared libraries.
12287 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12289 # Whether or not to disallow shared libs when runtime libs are static
12290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12292 # Whether or not to optimize for fast installation.
12293 fast_install=$enable_fast_install
12295 # The host system.
12296 host_alias=$host_alias
12297 host=$host
12298 host_os=$host_os
12300 # The build system.
12301 build_alias=$build_alias
12302 build=$build
12303 build_os=$build_os
12305 # An echo program that does not interpret backslashes.
12306 echo=$lt_echo
12308 # The archiver.
12309 AR=$lt_AR
12310 AR_FLAGS=$lt_AR_FLAGS
12312 # A C compiler.
12313 LTCC=$lt_LTCC
12315 # LTCC compiler flags.
12316 LTCFLAGS=$lt_LTCFLAGS
12318 # A language-specific compiler.
12319 CC=$lt_compiler_CXX
12321 # Is the compiler the GNU C compiler?
12322 with_gcc=$GCC_CXX
12324 # An ERE matcher.
12325 EGREP=$lt_EGREP
12327 # The linker used to build libraries.
12328 LD=$lt_LD_CXX
12330 # Whether we need hard or soft links.
12331 LN_S=$lt_LN_S
12333 # A BSD-compatible nm program.
12334 NM=$lt_NM
12336 # A symbol stripping program
12337 STRIP=$lt_STRIP
12339 # Used to examine libraries when file_magic_cmd begins "file"
12340 MAGIC_CMD=$MAGIC_CMD
12342 # Used on cygwin: DLL creation program.
12343 DLLTOOL="$DLLTOOL"
12345 # Used on cygwin: object dumper.
12346 OBJDUMP="$OBJDUMP"
12348 # Used on cygwin: assembler.
12349 AS="$AS"
12351 # The name of the directory that contains temporary libtool files.
12352 objdir=$objdir
12354 # How to create reloadable object files.
12355 reload_flag=$lt_reload_flag
12356 reload_cmds=$lt_reload_cmds
12358 # How to pass a linker flag through the compiler.
12359 wl=$lt_lt_prog_compiler_wl_CXX
12361 # Object file suffix (normally "o").
12362 objext="$ac_objext"
12364 # Old archive suffix (normally "a").
12365 libext="$libext"
12367 # Shared library suffix (normally ".so").
12368 shrext_cmds='$shrext_cmds'
12370 # Executable file suffix (normally "").
12371 exeext="$exeext"
12373 # Additional compiler flags for building library objects.
12374 pic_flag=$lt_lt_prog_compiler_pic_CXX
12375 pic_mode=$pic_mode
12377 # What is the maximum length of a command?
12378 max_cmd_len=$lt_cv_sys_max_cmd_len
12380 # Does compiler simultaneously support -c and -o options?
12381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12383 # Must we lock files when doing compilation?
12384 need_locks=$lt_need_locks
12386 # Do we need the lib prefix for modules?
12387 need_lib_prefix=$need_lib_prefix
12389 # Do we need a version for libraries?
12390 need_version=$need_version
12392 # Whether dlopen is supported.
12393 dlopen_support=$enable_dlopen
12395 # Whether dlopen of programs is supported.
12396 dlopen_self=$enable_dlopen_self
12398 # Whether dlopen of statically linked programs is supported.
12399 dlopen_self_static=$enable_dlopen_self_static
12401 # Compiler flag to prevent dynamic linking.
12402 link_static_flag=$lt_lt_prog_compiler_static_CXX
12404 # Compiler flag to turn off builtin functions.
12405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12407 # Compiler flag to allow reflexive dlopens.
12408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12410 # Compiler flag to generate shared objects directly from archives.
12411 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12413 # Compiler flag to generate thread-safe objects.
12414 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12416 # Library versioning type.
12417 version_type=$version_type
12419 # Format of library name prefix.
12420 libname_spec=$lt_libname_spec
12422 # List of archive names.  First name is the real one, the rest are links.
12423 # The last name is the one that the linker finds with -lNAME.
12424 library_names_spec=$lt_library_names_spec
12426 # The coded name of the library, if different from the real name.
12427 soname_spec=$lt_soname_spec
12429 # Commands used to build and install an old-style archive.
12430 RANLIB=$lt_RANLIB
12431 old_archive_cmds=$lt_old_archive_cmds_CXX
12432 old_postinstall_cmds=$lt_old_postinstall_cmds
12433 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12435 # Create an old-style archive from a shared archive.
12436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12438 # Create a temporary old-style archive to link instead of a shared archive.
12439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12441 # Commands used to build and install a shared archive.
12442 archive_cmds=$lt_archive_cmds_CXX
12443 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12444 postinstall_cmds=$lt_postinstall_cmds
12445 postuninstall_cmds=$lt_postuninstall_cmds
12447 # Commands used to build a loadable module (assumed same as above if empty)
12448 module_cmds=$lt_module_cmds_CXX
12449 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12451 # Commands to strip libraries.
12452 old_striplib=$lt_old_striplib
12453 striplib=$lt_striplib
12455 # Dependencies to place before the objects being linked to create a
12456 # shared library.
12457 predep_objects=$lt_predep_objects_CXX
12459 # Dependencies to place after the objects being linked to create a
12460 # shared library.
12461 postdep_objects=$lt_postdep_objects_CXX
12463 # Dependencies to place before the objects being linked to create a
12464 # shared library.
12465 predeps=$lt_predeps_CXX
12467 # Dependencies to place after the objects being linked to create a
12468 # shared library.
12469 postdeps=$lt_postdeps_CXX
12471 # The library search path used internally by the compiler when linking
12472 # a shared library.
12473 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12475 # Method to check whether dependent libraries are shared objects.
12476 deplibs_check_method=$lt_deplibs_check_method
12478 # Command to use when deplibs_check_method == file_magic.
12479 file_magic_cmd=$lt_file_magic_cmd
12481 # Flag that allows shared libraries with undefined symbols to be built.
12482 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12484 # Flag that forces no undefined symbols.
12485 no_undefined_flag=$lt_no_undefined_flag_CXX
12487 # Commands used to finish a libtool library installation in a directory.
12488 finish_cmds=$lt_finish_cmds
12490 # Same as above, but a single script fragment to be evaled but not shown.
12491 finish_eval=$lt_finish_eval
12493 # Take the output of nm and produce a listing of raw symbols and C names.
12494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12496 # Transform the output of nm in a proper C declaration
12497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12499 # Transform the output of nm in a C name address pair
12500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12502 # This is the shared library runtime path variable.
12503 runpath_var=$runpath_var
12505 # This is the shared library path variable.
12506 shlibpath_var=$shlibpath_var
12508 # Is shlibpath searched before the hard-coded library search path?
12509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12511 # How to hardcode a shared library path into an executable.
12512 hardcode_action=$hardcode_action_CXX
12514 # Whether we should hardcode library paths into libraries.
12515 hardcode_into_libs=$hardcode_into_libs
12517 # Flag to hardcode \$libdir into a binary during linking.
12518 # This must work even if \$libdir does not exist.
12519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12521 # If ld is used when linking, flag to hardcode \$libdir into
12522 # a binary during linking. This must work even if \$libdir does
12523 # not exist.
12524 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12526 # Whether we need a single -rpath flag with a separated argument.
12527 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12529 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12530 # resulting binary.
12531 hardcode_direct=$hardcode_direct_CXX
12533 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12534 # resulting binary.
12535 hardcode_minus_L=$hardcode_minus_L_CXX
12537 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12538 # the resulting binary.
12539 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12541 # Set to yes if building a shared library automatically hardcodes DIR into the library
12542 # and all subsequent libraries and executables linked against it.
12543 hardcode_automatic=$hardcode_automatic_CXX
12545 # Variables whose values should be saved in libtool wrapper scripts and
12546 # restored at relink time.
12547 variables_saved_for_relink="$variables_saved_for_relink"
12549 # Whether libtool must link a program against all its dependency libraries.
12550 link_all_deplibs=$link_all_deplibs_CXX
12552 # Compile-time system search path for libraries
12553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12555 # Run-time system search path for libraries
12556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12558 # Fix the shell variable \$srcfile for the compiler.
12559 fix_srcfile_path="$fix_srcfile_path_CXX"
12561 # Set to yes if exported symbols are required.
12562 always_export_symbols=$always_export_symbols_CXX
12564 # The commands to list exported symbols.
12565 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12567 # The commands to extract the exported symbol list from a shared archive.
12568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12570 # Symbols that should not be listed in the preloaded symbols.
12571 exclude_expsyms=$lt_exclude_expsyms_CXX
12573 # Symbols that must always be exported.
12574 include_expsyms=$lt_include_expsyms_CXX
12576 # ### END LIBTOOL TAG CONFIG: $tagname
12578 __EOF__
12581 else
12582   # If there is no Makefile yet, we rely on a make rule to execute
12583   # `config.status --recheck' to rerun these tests and create the
12584   # libtool script then.
12585   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12586   if test -f "$ltmain_in"; then
12587     test -f Makefile && make "$ltmain"
12588   fi
12592 ac_ext=c
12593 ac_cpp='$CPP $CPPFLAGS'
12594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12598 CC=$lt_save_CC
12599 LDCXX=$LD
12600 LD=$lt_save_LD
12601 GCC=$lt_save_GCC
12602 with_gnu_ldcxx=$with_gnu_ld
12603 with_gnu_ld=$lt_save_with_gnu_ld
12604 lt_cv_path_LDCXX=$lt_cv_path_LD
12605 lt_cv_path_LD=$lt_save_path_LD
12606 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12607 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12609         else
12610           tagname=""
12611         fi
12612         ;;
12614       F77)
12615         if test -n "$F77" && test "X$F77" != "Xno"; then
12616           :
12617         else
12618           tagname=""
12619         fi
12620         ;;
12622       GCJ)
12623         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12627 # Source file extension for Java test sources.
12628 ac_ext=java
12630 # Object file extension for compiled Java test sources.
12631 objext=o
12632 objext_GCJ=$objext
12634 # Code to be used in simple compile tests
12635 lt_simple_compile_test_code="class foo {}\n"
12637 # Code to be used in simple link tests
12638 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
12640 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12642 # If no C compiler was specified, use CC.
12643 LTCC=${LTCC-"$CC"}
12645 # If no C compiler flags were specified, use CFLAGS.
12646 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12648 # Allow CC to be a program name with arguments.
12649 compiler=$CC
12652 # save warnings/boilerplate of simple test code
12653 ac_outfile=conftest.$ac_objext
12654 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12655 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12656 _lt_compiler_boilerplate=`cat conftest.err`
12657 $rm conftest*
12659 ac_outfile=conftest.$ac_objext
12660 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12661 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12662 _lt_linker_boilerplate=`cat conftest.err`
12663 $rm conftest*
12666 # Allow CC to be a program name with arguments.
12667 lt_save_CC="$CC"
12668 CC=${GCJ-"gcj"}
12669 compiler=$CC
12670 compiler_GCJ=$CC
12671 for cc_temp in $compiler""; do
12672   case $cc_temp in
12673     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12674     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12675     \-*) ;;
12676     *) break;;
12677   esac
12678 done
12679 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12682 # GCJ did not exist at the time GCC didn't implicitly link libc in.
12683 archive_cmds_need_lc_GCJ=no
12685 old_archive_cmds_GCJ=$old_archive_cmds
12688 lt_prog_compiler_no_builtin_flag_GCJ=
12690 if test "$GCC" = yes; then
12691   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
12694 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12695 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12696 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12697   echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699   lt_cv_prog_compiler_rtti_exceptions=no
12700   ac_outfile=conftest.$ac_objext
12701    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12702    lt_compiler_flag="-fno-rtti -fno-exceptions"
12703    # Insert the option either (1) after the last *FLAGS variable, or
12704    # (2) before a word containing "conftest.", or (3) at the end.
12705    # Note that $ac_compile itself does not contain backslashes and begins
12706    # with a dollar sign (not a hyphen), so the echo should work correctly.
12707    # The option is referenced via a variable to avoid confusing sed.
12708    lt_compile=`echo "$ac_compile" | $SED \
12709    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12710    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12711    -e 's:$: $lt_compiler_flag:'`
12712    (eval echo "\"\$as_me:12712: $lt_compile\"" >&5)
12713    (eval "$lt_compile" 2>conftest.err)
12714    ac_status=$?
12715    cat conftest.err >&5
12716    echo "$as_me:12716: \$? = $ac_status" >&5
12717    if (exit $ac_status) && test -s "$ac_outfile"; then
12718      # The compiler can only warn and ignore the option if not recognized
12719      # So say no if there are warnings other than the usual output.
12720      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12721      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12722      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12723        lt_cv_prog_compiler_rtti_exceptions=yes
12724      fi
12725    fi
12726    $rm conftest*
12729 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12730 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12733     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
12734 else
12735     :
12740 lt_prog_compiler_wl_GCJ=
12741 lt_prog_compiler_pic_GCJ=
12742 lt_prog_compiler_static_GCJ=
12744 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12747   if test "$GCC" = yes; then
12748     lt_prog_compiler_wl_GCJ='-Wl,'
12749     lt_prog_compiler_static_GCJ='-static'
12751     case $host_os in
12752       aix*)
12753       # All AIX code is PIC.
12754       if test "$host_cpu" = ia64; then
12755         # AIX 5 now supports IA64 processor
12756         lt_prog_compiler_static_GCJ='-Bstatic'
12757       fi
12758       ;;
12760     amigaos*)
12761       # FIXME: we need at least 68020 code to build shared libraries, but
12762       # adding the `-m68020' flag to GCC prevents building anything better,
12763       # like `-m68040'.
12764       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
12765       ;;
12767     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12768       # PIC is the default for these OSes.
12769       ;;
12771     mingw* | pw32* | os2*)
12772       # This hack is so that the source file can tell whether it is being
12773       # built for inclusion in a dll (and should export symbols for example).
12774       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12775       ;;
12777     darwin* | rhapsody*)
12778       # PIC is the default on this platform
12779       # Common symbols not allowed in MH_DYLIB files
12780       lt_prog_compiler_pic_GCJ='-fno-common'
12781       ;;
12783     interix3*)
12784       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12785       # Instead, we relocate shared libraries at runtime.
12786       ;;
12788     msdosdjgpp*)
12789       # Just because we use GCC doesn't mean we suddenly get shared libraries
12790       # on systems that don't support them.
12791       lt_prog_compiler_can_build_shared_GCJ=no
12792       enable_shared=no
12793       ;;
12795     sysv4*MP*)
12796       if test -d /usr/nec; then
12797         lt_prog_compiler_pic_GCJ=-Kconform_pic
12798       fi
12799       ;;
12801     hpux*)
12802       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12803       # not for PA HP-UX.
12804       case $host_cpu in
12805       hppa*64*|ia64*)
12806         # +Z the default
12807         ;;
12808       *)
12809         lt_prog_compiler_pic_GCJ='-fPIC'
12810         ;;
12811       esac
12812       ;;
12814     *)
12815       lt_prog_compiler_pic_GCJ='-fPIC'
12816       ;;
12817     esac
12818   else
12819     # PORTME Check for flag to pass linker flags through the system compiler.
12820     case $host_os in
12821     aix*)
12822       lt_prog_compiler_wl_GCJ='-Wl,'
12823       if test "$host_cpu" = ia64; then
12824         # AIX 5 now supports IA64 processor
12825         lt_prog_compiler_static_GCJ='-Bstatic'
12826       else
12827         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
12828       fi
12829       ;;
12830       darwin*)
12831         # PIC is the default on this platform
12832         # Common symbols not allowed in MH_DYLIB files
12833        case $cc_basename in
12834          xlc*)
12835          lt_prog_compiler_pic_GCJ='-qnocommon'
12836          lt_prog_compiler_wl_GCJ='-Wl,'
12837          ;;
12838        esac
12839        ;;
12841     mingw* | pw32* | os2*)
12842       # This hack is so that the source file can tell whether it is being
12843       # built for inclusion in a dll (and should export symbols for example).
12844       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12845       ;;
12847     hpux9* | hpux10* | hpux11*)
12848       lt_prog_compiler_wl_GCJ='-Wl,'
12849       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12850       # not for PA HP-UX.
12851       case $host_cpu in
12852       hppa*64*|ia64*)
12853         # +Z the default
12854         ;;
12855       *)
12856         lt_prog_compiler_pic_GCJ='+Z'
12857         ;;
12858       esac
12859       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12860       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
12861       ;;
12863     irix5* | irix6* | nonstopux*)
12864       lt_prog_compiler_wl_GCJ='-Wl,'
12865       # PIC (with -KPIC) is the default.
12866       lt_prog_compiler_static_GCJ='-non_shared'
12867       ;;
12869     newsos6)
12870       lt_prog_compiler_pic_GCJ='-KPIC'
12871       lt_prog_compiler_static_GCJ='-Bstatic'
12872       ;;
12874     linux*)
12875       case $cc_basename in
12876       icc* | ecc*)
12877         lt_prog_compiler_wl_GCJ='-Wl,'
12878         lt_prog_compiler_pic_GCJ='-KPIC'
12879         lt_prog_compiler_static_GCJ='-static'
12880         ;;
12881       pgcc* | pgf77* | pgf90* | pgf95*)
12882         # Portland Group compilers (*not* the Pentium gcc compiler,
12883         # which looks to be a dead project)
12884         lt_prog_compiler_wl_GCJ='-Wl,'
12885         lt_prog_compiler_pic_GCJ='-fpic'
12886         lt_prog_compiler_static_GCJ='-Bstatic'
12887         ;;
12888       ccc*)
12889         lt_prog_compiler_wl_GCJ='-Wl,'
12890         # All Alpha code is PIC.
12891         lt_prog_compiler_static_GCJ='-non_shared'
12892         ;;
12893       esac
12894       ;;
12896     osf3* | osf4* | osf5*)
12897       lt_prog_compiler_wl_GCJ='-Wl,'
12898       # All OSF/1 code is PIC.
12899       lt_prog_compiler_static_GCJ='-non_shared'
12900       ;;
12902     solaris*)
12903       lt_prog_compiler_pic_GCJ='-KPIC'
12904       lt_prog_compiler_static_GCJ='-Bstatic'
12905       case $cc_basename in
12906       f77* | f90* | f95*)
12907         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
12908       *)
12909         lt_prog_compiler_wl_GCJ='-Wl,';;
12910       esac
12911       ;;
12913     sunos4*)
12914       lt_prog_compiler_wl_GCJ='-Qoption ld '
12915       lt_prog_compiler_pic_GCJ='-PIC'
12916       lt_prog_compiler_static_GCJ='-Bstatic'
12917       ;;
12919     sysv4 | sysv4.2uw2* | sysv4.3*)
12920       lt_prog_compiler_wl_GCJ='-Wl,'
12921       lt_prog_compiler_pic_GCJ='-KPIC'
12922       lt_prog_compiler_static_GCJ='-Bstatic'
12923       ;;
12925     sysv4*MP*)
12926       if test -d /usr/nec ;then
12927         lt_prog_compiler_pic_GCJ='-Kconform_pic'
12928         lt_prog_compiler_static_GCJ='-Bstatic'
12929       fi
12930       ;;
12932     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12933       lt_prog_compiler_wl_GCJ='-Wl,'
12934       lt_prog_compiler_pic_GCJ='-KPIC'
12935       lt_prog_compiler_static_GCJ='-Bstatic'
12936       ;;
12938     unicos*)
12939       lt_prog_compiler_wl_GCJ='-Wl,'
12940       lt_prog_compiler_can_build_shared_GCJ=no
12941       ;;
12943     uts4*)
12944       lt_prog_compiler_pic_GCJ='-pic'
12945       lt_prog_compiler_static_GCJ='-Bstatic'
12946       ;;
12948     *)
12949       lt_prog_compiler_can_build_shared_GCJ=no
12950       ;;
12951     esac
12952   fi
12954 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
12955 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
12958 # Check to make sure the PIC flag actually works.
12960 if test -n "$lt_prog_compiler_pic_GCJ"; then
12962 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12963 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
12964 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
12965   echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967   lt_prog_compiler_pic_works_GCJ=no
12968   ac_outfile=conftest.$ac_objext
12969    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12970    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
12971    # Insert the option either (1) after the last *FLAGS variable, or
12972    # (2) before a word containing "conftest.", or (3) at the end.
12973    # Note that $ac_compile itself does not contain backslashes and begins
12974    # with a dollar sign (not a hyphen), so the echo should work correctly.
12975    # The option is referenced via a variable to avoid confusing sed.
12976    lt_compile=`echo "$ac_compile" | $SED \
12977    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12978    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12979    -e 's:$: $lt_compiler_flag:'`
12980    (eval echo "\"\$as_me:12980: $lt_compile\"" >&5)
12981    (eval "$lt_compile" 2>conftest.err)
12982    ac_status=$?
12983    cat conftest.err >&5
12984    echo "$as_me:12984: \$? = $ac_status" >&5
12985    if (exit $ac_status) && test -s "$ac_outfile"; then
12986      # The compiler can only warn and ignore the option if not recognized
12987      # So say no if there are warnings other than the usual output.
12988      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12989      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12990      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12991        lt_prog_compiler_pic_works_GCJ=yes
12992      fi
12993    fi
12994    $rm conftest*
12997 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
12998 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
13000 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
13001     case $lt_prog_compiler_pic_GCJ in
13002      "" | " "*) ;;
13003      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
13004      esac
13005 else
13006     lt_prog_compiler_pic_GCJ=
13007      lt_prog_compiler_can_build_shared_GCJ=no
13011 case $host_os in
13012   # For platforms which do not support PIC, -DPIC is meaningless:
13013   *djgpp*)
13014     lt_prog_compiler_pic_GCJ=
13015     ;;
13016   *)
13017     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
13018     ;;
13019 esac
13022 # Check to make sure the static flag actually works.
13024 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
13025 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13026 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13027 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
13028   echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030   lt_prog_compiler_static_works_GCJ=no
13031    save_LDFLAGS="$LDFLAGS"
13032    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13033    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13034    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13035      # The linker can only warn and ignore the option if not recognized
13036      # So say no if there are warnings
13037      if test -s conftest.err; then
13038        # Append any errors to the config.log.
13039        cat conftest.err 1>&5
13040        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13041        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13042        if diff conftest.exp conftest.er2 >/dev/null; then
13043          lt_prog_compiler_static_works_GCJ=yes
13044        fi
13045      else
13046        lt_prog_compiler_static_works_GCJ=yes
13047      fi
13048    fi
13049    $rm conftest*
13050    LDFLAGS="$save_LDFLAGS"
13053 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
13054 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
13056 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
13057     :
13058 else
13059     lt_prog_compiler_static_GCJ=
13063 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13064 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13065 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   lt_cv_prog_compiler_c_o_GCJ=no
13069    $rm -r conftest 2>/dev/null
13070    mkdir conftest
13071    cd conftest
13072    mkdir out
13073    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13075    lt_compiler_flag="-o out/conftest2.$ac_objext"
13076    # Insert the option either (1) after the last *FLAGS variable, or
13077    # (2) before a word containing "conftest.", or (3) at the end.
13078    # Note that $ac_compile itself does not contain backslashes and begins
13079    # with a dollar sign (not a hyphen), so the echo should work correctly.
13080    lt_compile=`echo "$ac_compile" | $SED \
13081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13083    -e 's:$: $lt_compiler_flag:'`
13084    (eval echo "\"\$as_me:13084: $lt_compile\"" >&5)
13085    (eval "$lt_compile" 2>out/conftest.err)
13086    ac_status=$?
13087    cat out/conftest.err >&5
13088    echo "$as_me:13088: \$? = $ac_status" >&5
13089    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13090    then
13091      # The compiler can only warn and ignore the option if not recognized
13092      # So say no if there are warnings
13093      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13094      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13095      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13096        lt_cv_prog_compiler_c_o_GCJ=yes
13097      fi
13098    fi
13099    chmod u+w . 2>&5
13100    $rm conftest*
13101    # SGI C++ compiler will create directory out/ii_files/ for
13102    # template instantiation
13103    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13104    $rm out/* && rmdir out
13105    cd ..
13106    rmdir conftest
13107    $rm conftest*
13110 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
13111 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
13114 hard_links="nottested"
13115 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
13116   # do not overwrite the value of need_locks provided by the user
13117   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13118 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13119   hard_links=yes
13120   $rm conftest*
13121   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13122   touch conftest.a
13123   ln conftest.a conftest.b 2>&5 || hard_links=no
13124   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13125   echo "$as_me:$LINENO: result: $hard_links" >&5
13126 echo "${ECHO_T}$hard_links" >&6
13127   if test "$hard_links" = no; then
13128     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13129 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13130     need_locks=warn
13131   fi
13132 else
13133   need_locks=no
13136 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13137 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13139   runpath_var=
13140   allow_undefined_flag_GCJ=
13141   enable_shared_with_static_runtimes_GCJ=no
13142   archive_cmds_GCJ=
13143   archive_expsym_cmds_GCJ=
13144   old_archive_From_new_cmds_GCJ=
13145   old_archive_from_expsyms_cmds_GCJ=
13146   export_dynamic_flag_spec_GCJ=
13147   whole_archive_flag_spec_GCJ=
13148   thread_safe_flag_spec_GCJ=
13149   hardcode_libdir_flag_spec_GCJ=
13150   hardcode_libdir_flag_spec_ld_GCJ=
13151   hardcode_libdir_separator_GCJ=
13152   hardcode_direct_GCJ=no
13153   hardcode_minus_L_GCJ=no
13154   hardcode_shlibpath_var_GCJ=unsupported
13155   link_all_deplibs_GCJ=unknown
13156   hardcode_automatic_GCJ=no
13157   module_cmds_GCJ=
13158   module_expsym_cmds_GCJ=
13159   always_export_symbols_GCJ=no
13160   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13161   # include_expsyms should be a list of space-separated symbols to be *always*
13162   # included in the symbol list
13163   include_expsyms_GCJ=
13164   # exclude_expsyms can be an extended regexp of symbols to exclude
13165   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13166   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13167   # as well as any symbol that contains `d'.
13168   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
13169   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13170   # platforms (ab)use it in PIC code, but their linkers get confused if
13171   # the symbol is explicitly referenced.  Since portable code cannot
13172   # rely on this symbol name, it's probably fine to never include it in
13173   # preloaded symbol tables.
13174   extract_expsyms_cmds=
13175   # Just being paranoid about ensuring that cc_basename is set.
13176   for cc_temp in $compiler""; do
13177   case $cc_temp in
13178     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13179     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13180     \-*) ;;
13181     *) break;;
13182   esac
13183 done
13184 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13186   case $host_os in
13187   cygwin* | mingw* | pw32*)
13188     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13189     # When not using gcc, we currently assume that we are using
13190     # Microsoft Visual C++.
13191     if test "$GCC" != yes; then
13192       with_gnu_ld=no
13193     fi
13194     ;;
13195   interix*)
13196     # we just hope/assume this is gcc and not c89 (= MSVC++)
13197     with_gnu_ld=yes
13198     ;;
13199   openbsd*)
13200     with_gnu_ld=no
13201     ;;
13202   esac
13204   ld_shlibs_GCJ=yes
13205   if test "$with_gnu_ld" = yes; then
13206     # If archive_cmds runs LD, not CC, wlarc should be empty
13207     wlarc='${wl}'
13209     # Set some defaults for GNU ld with shared library support. These
13210     # are reset later if shared libraries are not supported. Putting them
13211     # here allows them to be overridden if necessary.
13212     runpath_var=LD_RUN_PATH
13213     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
13214     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
13215     # ancient GNU ld didn't support --whole-archive et. al.
13216     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13217         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13218       else
13219         whole_archive_flag_spec_GCJ=
13220     fi
13221     supports_anon_versioning=no
13222     case `$LD -v 2>/dev/null` in
13223       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13224       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13225       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13226       *\ 2.11.*) ;; # other 2.11 versions
13227       *) supports_anon_versioning=yes ;;
13228     esac
13230     # See if GNU ld supports shared libraries.
13231     case $host_os in
13232     aix3* | aix4* | aix5*)
13233       # On AIX/PPC, the GNU linker is very broken
13234       if test "$host_cpu" != ia64; then
13235         ld_shlibs_GCJ=no
13236         cat <<EOF 1>&2
13238 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13239 *** to be unable to reliably create shared libraries on AIX.
13240 *** Therefore, libtool is disabling shared libraries support.  If you
13241 *** really care for shared libraries, you may want to modify your PATH
13242 *** so that a non-GNU linker is found, and then restart.
13244 EOF
13245       fi
13246       ;;
13248     amigaos*)
13249       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)'
13250       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13251       hardcode_minus_L_GCJ=yes
13253       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13254       # that the semantics of dynamic libraries on AmigaOS, at least up
13255       # to version 4, is to share data among multiple programs linked
13256       # with the same dynamic library.  Since this doesn't match the
13257       # behavior of shared libraries on other platforms, we can't use
13258       # them.
13259       ld_shlibs_GCJ=no
13260       ;;
13262     beos*)
13263       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13264         allow_undefined_flag_GCJ=unsupported
13265         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13266         # support --undefined.  This deserves some investigation.  FIXME
13267         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13268       else
13269         ld_shlibs_GCJ=no
13270       fi
13271       ;;
13273     cygwin* | mingw* | pw32*)
13274       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
13275       # as there is no search path for DLLs.
13276       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13277       allow_undefined_flag_GCJ=unsupported
13278       always_export_symbols_GCJ=no
13279       enable_shared_with_static_runtimes_GCJ=yes
13280       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13282       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13283         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13284         # If the export-symbols file already is a .def file (1st line
13285         # is EXPORTS), use it as is; otherwise, prepend...
13286         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13287           cp $export_symbols $output_objdir/$soname.def;
13288         else
13289           echo EXPORTS > $output_objdir/$soname.def;
13290           cat $export_symbols >> $output_objdir/$soname.def;
13291         fi~
13292         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13293       else
13294         ld_shlibs_GCJ=no
13295       fi
13296       ;;
13298     interix3*)
13299       hardcode_direct_GCJ=no
13300       hardcode_shlibpath_var_GCJ=no
13301       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13302       export_dynamic_flag_spec_GCJ='${wl}-E'
13303       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13304       # Instead, shared libraries are loaded at an image base (0x10000000 by
13305       # default) and relocated if they conflict, which is a slow very memory
13306       # consuming and fragmenting process.  To avoid this, we pick a random,
13307       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13308       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13309       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'
13310       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'
13311       ;;
13313     linux*)
13314       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13315         tmp_addflag=
13316         case $cc_basename,$host_cpu in
13317         pgcc*)                          # Portland Group C compiler
13318           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'
13319           tmp_addflag=' $pic_flag'
13320           ;;
13321         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13322           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'
13323           tmp_addflag=' $pic_flag -Mnomain' ;;
13324         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13325           tmp_addflag=' -i_dynamic' ;;
13326         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13327           tmp_addflag=' -i_dynamic -nofor_main' ;;
13328         ifc* | ifort*)                  # Intel Fortran compiler
13329           tmp_addflag=' -nofor_main' ;;
13330         esac
13331         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13333         if test $supports_anon_versioning = yes; then
13334           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
13335   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13336   $echo "local: *; };" >> $output_objdir/$libname.ver~
13337           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13338         fi
13339       else
13340         ld_shlibs_GCJ=no
13341       fi
13342       ;;
13344     netbsd*)
13345       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13346         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13347         wlarc=
13348       else
13349         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13350         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13351       fi
13352       ;;
13354     solaris*)
13355       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13356         ld_shlibs_GCJ=no
13357         cat <<EOF 1>&2
13359 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13360 *** create shared libraries on Solaris systems.  Therefore, libtool
13361 *** is disabling shared libraries support.  We urge you to upgrade GNU
13362 *** binutils to release 2.9.1 or newer.  Another option is to modify
13363 *** your PATH or compiler configuration so that the native linker is
13364 *** used, and then restart.
13366 EOF
13367       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13368         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13369         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13370       else
13371         ld_shlibs_GCJ=no
13372       fi
13373       ;;
13375     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13376       case `$LD -v 2>&1` in
13377         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13378         ld_shlibs_GCJ=no
13379         cat <<_LT_EOF 1>&2
13381 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13382 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13383 *** is disabling shared libraries support.  We urge you to upgrade GNU
13384 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13385 *** your PATH or compiler configuration so that the native linker is
13386 *** used, and then restart.
13388 _LT_EOF
13389         ;;
13390         *)
13391           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13392             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13393             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13394             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13395           else
13396             ld_shlibs_GCJ=no
13397           fi
13398         ;;
13399       esac
13400       ;;
13402     sunos4*)
13403       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13404       wlarc=
13405       hardcode_direct_GCJ=yes
13406       hardcode_shlibpath_var_GCJ=no
13407       ;;
13409     *)
13410       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13411         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13412         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13413       else
13414         ld_shlibs_GCJ=no
13415       fi
13416       ;;
13417     esac
13419     if test "$ld_shlibs_GCJ" = no; then
13420       runpath_var=
13421       hardcode_libdir_flag_spec_GCJ=
13422       export_dynamic_flag_spec_GCJ=
13423       whole_archive_flag_spec_GCJ=
13424     fi
13425   else
13426     # PORTME fill in a description of your system's linker (not GNU ld)
13427     case $host_os in
13428     aix3*)
13429       allow_undefined_flag_GCJ=unsupported
13430       always_export_symbols_GCJ=yes
13431       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'
13432       # Note: this linker hardcodes the directories in LIBPATH if there
13433       # are no directories specified by -L.
13434       hardcode_minus_L_GCJ=yes
13435       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13436         # Neither direct hardcoding nor static linking is supported with a
13437         # broken collect2.
13438         hardcode_direct_GCJ=unsupported
13439       fi
13440       ;;
13442     aix4* | aix5*)
13443       if test "$host_cpu" = ia64; then
13444         # On IA64, the linker does run time linking by default, so we don't
13445         # have to do anything special.
13446         aix_use_runtimelinking=no
13447         exp_sym_flag='-Bexport'
13448         no_entry_flag=""
13449       else
13450         # If we're using GNU nm, then we don't want the "-C" option.
13451         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13452         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13453           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'
13454         else
13455           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'
13456         fi
13457         aix_use_runtimelinking=no
13459         # Test if we are trying to use run time linking or normal
13460         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13461         # need to do runtime linking.
13462         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13463           for ld_flag in $LDFLAGS; do
13464           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13465             aix_use_runtimelinking=yes
13466             break
13467           fi
13468           done
13469           ;;
13470         esac
13472         exp_sym_flag='-bexport'
13473         no_entry_flag='-bnoentry'
13474       fi
13476       # When large executables or shared objects are built, AIX ld can
13477       # have problems creating the table of contents.  If linking a library
13478       # or program results in "error TOC overflow" add -mminimal-toc to
13479       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13480       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13482       archive_cmds_GCJ=''
13483       hardcode_direct_GCJ=yes
13484       hardcode_libdir_separator_GCJ=':'
13485       link_all_deplibs_GCJ=yes
13487       if test "$GCC" = yes; then
13488         case $host_os in aix4.[012]|aix4.[012].*)
13489         # We only want to do this on AIX 4.2 and lower, the check
13490         # below for broken collect2 doesn't work under 4.3+
13491           collect2name=`${CC} -print-prog-name=collect2`
13492           if test -f "$collect2name" && \
13493            strings "$collect2name" | grep resolve_lib_name >/dev/null
13494           then
13495           # We have reworked collect2
13496           hardcode_direct_GCJ=yes
13497           else
13498           # We have old collect2
13499           hardcode_direct_GCJ=unsupported
13500           # It fails to find uninstalled libraries when the uninstalled
13501           # path is not listed in the libpath.  Setting hardcode_minus_L
13502           # to unsupported forces relinking
13503           hardcode_minus_L_GCJ=yes
13504           hardcode_libdir_flag_spec_GCJ='-L$libdir'
13505           hardcode_libdir_separator_GCJ=
13506           fi
13507           ;;
13508         esac
13509         shared_flag='-shared'
13510         if test "$aix_use_runtimelinking" = yes; then
13511           shared_flag="$shared_flag "'${wl}-G'
13512         fi
13513       else
13514         # not using gcc
13515         if test "$host_cpu" = ia64; then
13516         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13517         # chokes on -Wl,-G. The following line is correct:
13518           shared_flag='-G'
13519         else
13520           if test "$aix_use_runtimelinking" = yes; then
13521             shared_flag='${wl}-G'
13522           else
13523             shared_flag='${wl}-bM:SRE'
13524           fi
13525         fi
13526       fi
13528       # It seems that -bexpall does not export symbols beginning with
13529       # underscore (_), so it is better to generate a list of symbols to export.
13530       always_export_symbols_GCJ=yes
13531       if test "$aix_use_runtimelinking" = yes; then
13532         # Warning - without using the other runtime loading flags (-brtl),
13533         # -berok will link without error, but may produce a broken library.
13534         allow_undefined_flag_GCJ='-berok'
13535        # Determine the default libpath from the value encoded in an empty executable.
13536        cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h.  */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h.  */
13543 int
13544 main ()
13547   ;
13548   return 0;
13550 _ACEOF
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553   (eval $ac_link) 2>conftest.er1
13554   ac_status=$?
13555   grep -v '^ *+' conftest.er1 >conftest.err
13556   rm -f conftest.er1
13557   cat conftest.err >&5
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -z "$ac_c_werror_flag"
13561                          || test ! -s conftest.err'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; } &&
13567          { ac_try='test -s conftest$ac_exeext'
13568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569   (eval $ac_try) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }; then
13574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13575 }'`
13576 # Check for a 64-bit object if we didn't find anything.
13577 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; }
13578 }'`; fi
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13584 rm -f conftest.err conftest.$ac_objext \
13585       conftest$ac_exeext conftest.$ac_ext
13586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13588        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13589         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"
13590        else
13591         if test "$host_cpu" = ia64; then
13592           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
13593           allow_undefined_flag_GCJ="-z nodefs"
13594           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"
13595         else
13596          # Determine the default libpath from the value encoded in an empty executable.
13597          cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h.  */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h.  */
13604 int
13605 main ()
13608   ;
13609   return 0;
13611 _ACEOF
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13614   (eval $ac_link) 2>conftest.er1
13615   ac_status=$?
13616   grep -v '^ *+' conftest.er1 >conftest.err
13617   rm -f conftest.er1
13618   cat conftest.err >&5
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); } &&
13621          { ac_try='test -z "$ac_c_werror_flag"
13622                          || test ! -s conftest.err'
13623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624   (eval $ac_try) 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); }; } &&
13628          { ac_try='test -s conftest$ac_exeext'
13629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630   (eval $ac_try) 2>&5
13631   ac_status=$?
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); }; }; then
13635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13636 }'`
13637 # Check for a 64-bit object if we didn't find anything.
13638 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; }
13639 }'`; fi
13640 else
13641   echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13645 rm -f conftest.err conftest.$ac_objext \
13646       conftest$ac_exeext conftest.$ac_ext
13647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13649          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13650           # Warning - without using the other run time loading flags,
13651           # -berok will link without error, but may produce a broken library.
13652           no_undefined_flag_GCJ=' ${wl}-bernotok'
13653           allow_undefined_flag_GCJ=' ${wl}-berok'
13654           # Exported symbols can be pulled into shared objects from archives
13655           whole_archive_flag_spec_GCJ='$convenience'
13656           archive_cmds_need_lc_GCJ=yes
13657           # This is similar to how AIX traditionally builds its shared libraries.
13658           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'
13659         fi
13660       fi
13661       ;;
13663     amigaos*)
13664       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)'
13665       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13666       hardcode_minus_L_GCJ=yes
13667       # see comment about different semantics on the GNU ld section
13668       ld_shlibs_GCJ=no
13669       ;;
13671     bsdi[45]*)
13672       export_dynamic_flag_spec_GCJ=-rdynamic
13673       ;;
13675     cygwin* | mingw* | pw32*)
13676       # When not using gcc, we currently assume that we are using
13677       # Microsoft Visual C++.
13678       # hardcode_libdir_flag_spec is actually meaningless, as there is
13679       # no search path for DLLs.
13680       hardcode_libdir_flag_spec_GCJ=' '
13681       allow_undefined_flag_GCJ=unsupported
13682       # Tell ltmain to make .lib files, not .a files.
13683       libext=lib
13684       # Tell ltmain to make .dll files, not .so files.
13685       shrext_cmds=".dll"
13686       # FIXME: Setting linknames here is a bad hack.
13687       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13688       # The linker will automatically build a .lib file if we build a DLL.
13689       old_archive_From_new_cmds_GCJ='true'
13690       # FIXME: Should let the user specify the lib program.
13691       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
13692       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
13693       enable_shared_with_static_runtimes_GCJ=yes
13694       ;;
13696     darwin* | rhapsody*)
13697       case $host_os in
13698         rhapsody* | darwin1.[012])
13699          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
13700          ;;
13701        *) # Darwin 1.3 on
13702          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13703            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13704          else
13705            case ${MACOSX_DEPLOYMENT_TARGET} in
13706              10.[012])
13707                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13708                ;;
13709              10.*)
13710                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
13711                ;;
13712            esac
13713          fi
13714          ;;
13715       esac
13716       archive_cmds_need_lc_GCJ=no
13717       hardcode_direct_GCJ=no
13718       hardcode_automatic_GCJ=yes
13719       hardcode_shlibpath_var_GCJ=unsupported
13720       whole_archive_flag_spec_GCJ=''
13721       link_all_deplibs_GCJ=yes
13722     if test "$GCC" = yes ; then
13723         output_verbose_link_cmd='echo'
13724         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13725       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13726       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13727       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}'
13728       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}'
13729     else
13730       case $cc_basename in
13731         xlc*)
13732          output_verbose_link_cmd='echo'
13733          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13734          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13735           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13736          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}'
13737           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}'
13738           ;;
13739        *)
13740          ld_shlibs_GCJ=no
13741           ;;
13742       esac
13743     fi
13744       ;;
13746     dgux*)
13747       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13748       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13749       hardcode_shlibpath_var_GCJ=no
13750       ;;
13752     freebsd1*)
13753       ld_shlibs_GCJ=no
13754       ;;
13756     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13757     # support.  Future versions do this automatically, but an explicit c++rt0.o
13758     # does not break anything, and helps significantly (at the cost of a little
13759     # extra space).
13760     freebsd2.2*)
13761       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13762       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13763       hardcode_direct_GCJ=yes
13764       hardcode_shlibpath_var_GCJ=no
13765       ;;
13767     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13768     freebsd2*)
13769       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13770       hardcode_direct_GCJ=yes
13771       hardcode_minus_L_GCJ=yes
13772       hardcode_shlibpath_var_GCJ=no
13773       ;;
13775     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13776     freebsd* | kfreebsd*-gnu | dragonfly*)
13777       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13778       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13779       hardcode_direct_GCJ=yes
13780       hardcode_shlibpath_var_GCJ=no
13781       ;;
13783     hpux9*)
13784       if test "$GCC" = yes; then
13785         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'
13786       else
13787         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'
13788       fi
13789       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13790       hardcode_libdir_separator_GCJ=:
13791       hardcode_direct_GCJ=yes
13793       # hardcode_minus_L: Not really in the search PATH,
13794       # but as the default location of the library.
13795       hardcode_minus_L_GCJ=yes
13796       export_dynamic_flag_spec_GCJ='${wl}-E'
13797       ;;
13799     hpux10*)
13800       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13801         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13802       else
13803         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13804       fi
13805       if test "$with_gnu_ld" = no; then
13806         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13807         hardcode_libdir_separator_GCJ=:
13809         hardcode_direct_GCJ=yes
13810         export_dynamic_flag_spec_GCJ='${wl}-E'
13812         # hardcode_minus_L: Not really in the search PATH,
13813         # but as the default location of the library.
13814         hardcode_minus_L_GCJ=yes
13815       fi
13816       ;;
13818     hpux11*)
13819       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13820         case $host_cpu in
13821         hppa*64*)
13822           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13823           ;;
13824         ia64*)
13825           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13826           ;;
13827         *)
13828           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13829           ;;
13830         esac
13831       else
13832         case $host_cpu in
13833         hppa*64*)
13834           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13835           ;;
13836         ia64*)
13837           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13838           ;;
13839         *)
13840           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13841           ;;
13842         esac
13843       fi
13844       if test "$with_gnu_ld" = no; then
13845         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13846         hardcode_libdir_separator_GCJ=:
13848         case $host_cpu in
13849         hppa*64*|ia64*)
13850           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
13851           hardcode_direct_GCJ=no
13852           hardcode_shlibpath_var_GCJ=no
13853           ;;
13854         *)
13855           hardcode_direct_GCJ=yes
13856           export_dynamic_flag_spec_GCJ='${wl}-E'
13858           # hardcode_minus_L: Not really in the search PATH,
13859           # but as the default location of the library.
13860           hardcode_minus_L_GCJ=yes
13861           ;;
13862         esac
13863       fi
13864       ;;
13866     irix5* | irix6* | nonstopux*)
13867       if test "$GCC" = yes; then
13868         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'
13869       else
13870         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'
13871         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
13872       fi
13873       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13874       hardcode_libdir_separator_GCJ=:
13875       link_all_deplibs_GCJ=yes
13876       ;;
13878     netbsd*)
13879       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13880         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13881       else
13882         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13883       fi
13884       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13885       hardcode_direct_GCJ=yes
13886       hardcode_shlibpath_var_GCJ=no
13887       ;;
13889     newsos6)
13890       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891       hardcode_direct_GCJ=yes
13892       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13893       hardcode_libdir_separator_GCJ=:
13894       hardcode_shlibpath_var_GCJ=no
13895       ;;
13897     openbsd*)
13898       hardcode_direct_GCJ=yes
13899       hardcode_shlibpath_var_GCJ=no
13900       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13901         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13902         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13903         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13904         export_dynamic_flag_spec_GCJ='${wl}-E'
13905       else
13906        case $host_os in
13907          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13908            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13909            hardcode_libdir_flag_spec_GCJ='-R$libdir'
13910            ;;
13911          *)
13912            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13913            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13914            ;;
13915        esac
13916       fi
13917       ;;
13919     os2*)
13920       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13921       hardcode_minus_L_GCJ=yes
13922       allow_undefined_flag_GCJ=unsupported
13923       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'
13924       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13925       ;;
13927     osf3*)
13928       if test "$GCC" = yes; then
13929         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13930         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'
13931       else
13932         allow_undefined_flag_GCJ=' -expect_unresolved \*'
13933         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'
13934       fi
13935       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13936       hardcode_libdir_separator_GCJ=:
13937       ;;
13939     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13940       if test "$GCC" = yes; then
13941         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13942         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'
13943         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13944       else
13945         allow_undefined_flag_GCJ=' -expect_unresolved \*'
13946         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'
13947         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~
13948         $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'
13950         # Both c and cxx compiler support -rpath directly
13951         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
13952       fi
13953       hardcode_libdir_separator_GCJ=:
13954       ;;
13956     solaris*)
13957       no_undefined_flag_GCJ=' -z text'
13958       if test "$GCC" = yes; then
13959         wlarc='${wl}'
13960         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13961         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13962           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13963       else
13964         wlarc=''
13965         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13966         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13967         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13968       fi
13969       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13970       hardcode_shlibpath_var_GCJ=no
13971       case $host_os in
13972       solaris2.[0-5] | solaris2.[0-5].*) ;;
13973       *)
13974         # The compiler driver will combine linker options so we
13975         # cannot just pass the convience library names through
13976         # without $wl, iff we do not link with $LD.
13977         # Luckily, gcc supports the same syntax we need for Sun Studio.
13978         # Supported since Solaris 2.6 (maybe 2.5.1?)
13979         case $wlarc in
13980         '')
13981           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
13982         *)
13983           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' ;;
13984         esac ;;
13985       esac
13986       link_all_deplibs_GCJ=yes
13987       ;;
13989     sunos4*)
13990       if test "x$host_vendor" = xsequent; then
13991         # Use $CC to link under sequent, because it throws in some extra .o
13992         # files that make .init and .fini sections work.
13993         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13994       else
13995         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13996       fi
13997       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13998       hardcode_direct_GCJ=yes
13999       hardcode_minus_L_GCJ=yes
14000       hardcode_shlibpath_var_GCJ=no
14001       ;;
14003     sysv4)
14004       case $host_vendor in
14005         sni)
14006           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14007           hardcode_direct_GCJ=yes # is this really true???
14008         ;;
14009         siemens)
14010           ## LD is ld it makes a PLAMLIB
14011           ## CC just makes a GrossModule.
14012           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14013           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
14014           hardcode_direct_GCJ=no
14015         ;;
14016         motorola)
14017           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14018           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
14019         ;;
14020       esac
14021       runpath_var='LD_RUN_PATH'
14022       hardcode_shlibpath_var_GCJ=no
14023       ;;
14025     sysv4.3*)
14026       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14027       hardcode_shlibpath_var_GCJ=no
14028       export_dynamic_flag_spec_GCJ='-Bexport'
14029       ;;
14031     sysv4*MP*)
14032       if test -d /usr/nec; then
14033         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14034         hardcode_shlibpath_var_GCJ=no
14035         runpath_var=LD_RUN_PATH
14036         hardcode_runpath_var=yes
14037         ld_shlibs_GCJ=yes
14038       fi
14039       ;;
14041     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14042       no_undefined_flag_GCJ='${wl}-z,text'
14043       archive_cmds_need_lc_GCJ=no
14044       hardcode_shlibpath_var_GCJ=no
14045       runpath_var='LD_RUN_PATH'
14047       if test "$GCC" = yes; then
14048         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14049         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14050       else
14051         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14052         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14053       fi
14054       ;;
14056     sysv5* | sco3.2v5* | sco5v6*)
14057       # Note: We can NOT use -z defs as we might desire, because we do not
14058       # link with -lc, and that would cause any symbols used from libc to
14059       # always be unresolved, which means just about no library would
14060       # ever link correctly.  If we're not using GNU ld we use -z text
14061       # though, which does catch some bad symbols but isn't as heavy-handed
14062       # as -z defs.
14063       no_undefined_flag_GCJ='${wl}-z,text'
14064       allow_undefined_flag_GCJ='${wl}-z,nodefs'
14065       archive_cmds_need_lc_GCJ=no
14066       hardcode_shlibpath_var_GCJ=no
14067       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14068       hardcode_libdir_separator_GCJ=':'
14069       link_all_deplibs_GCJ=yes
14070       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
14071       runpath_var='LD_RUN_PATH'
14073       if test "$GCC" = yes; then
14074         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14075         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14076       else
14077         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14078         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14079       fi
14080       ;;
14082     uts4*)
14083       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14085       hardcode_shlibpath_var_GCJ=no
14086       ;;
14088     *)
14089       ld_shlibs_GCJ=no
14090       ;;
14091     esac
14092   fi
14094 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
14095 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
14096 test "$ld_shlibs_GCJ" = no && can_build_shared=no
14099 # Do we need to explicitly link libc?
14101 case "x$archive_cmds_need_lc_GCJ" in
14102 x|xyes)
14103   # Assume -lc should be added
14104   archive_cmds_need_lc_GCJ=yes
14106   if test "$enable_shared" = yes && test "$GCC" = yes; then
14107     case $archive_cmds_GCJ in
14108     *'~'*)
14109       # FIXME: we may have to deal with multi-command sequences.
14110       ;;
14111     '$CC '*)
14112       # Test whether the compiler implicitly links with -lc since on some
14113       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14114       # to ld, don't add -lc before -lgcc.
14115       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14116 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14117       $rm conftest*
14118       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14120       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14121   (eval $ac_compile) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } 2>conftest.err; then
14125         soname=conftest
14126         lib=conftest
14127         libobjs=conftest.$ac_objext
14128         deplibs=
14129         wl=$lt_prog_compiler_wl_GCJ
14130         pic_flag=$lt_prog_compiler_pic_GCJ
14131         compiler_flags=-v
14132         linker_flags=-v
14133         verstring=
14134         output_objdir=.
14135         libname=conftest
14136         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14137         allow_undefined_flag_GCJ=
14138         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14139   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14140   ac_status=$?
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); }
14143         then
14144           archive_cmds_need_lc_GCJ=no
14145         else
14146           archive_cmds_need_lc_GCJ=yes
14147         fi
14148         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14149       else
14150         cat conftest.err 1>&5
14151       fi
14152       $rm conftest*
14153       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
14154 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
14155       ;;
14156     esac
14157   fi
14158   ;;
14159 esac
14161 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14163 library_names_spec=
14164 libname_spec='lib$name'
14165 soname_spec=
14166 shrext_cmds=".so"
14167 postinstall_cmds=
14168 postuninstall_cmds=
14169 finish_cmds=
14170 finish_eval=
14171 shlibpath_var=
14172 shlibpath_overrides_runpath=unknown
14173 version_type=none
14174 dynamic_linker="$host_os ld.so"
14175 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14176 if test "$GCC" = yes; then
14177   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14178   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14179     # if the path contains ";" then we assume it to be the separator
14180     # otherwise default to the standard path separator (i.e. ":") - it is
14181     # assumed that no part of a normal pathname contains ";" but that should
14182     # okay in the real world where ";" in dirpaths is itself problematic.
14183     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14184   else
14185     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14186   fi
14187 else
14188   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14190 need_lib_prefix=unknown
14191 hardcode_into_libs=no
14193 # when you set need_version to no, make sure it does not cause -set_version
14194 # flags to be left without arguments
14195 need_version=unknown
14197 case $host_os in
14198 aix3*)
14199   version_type=linux
14200   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14201   shlibpath_var=LIBPATH
14203   # AIX 3 has no versioning support, so we append a major version to the name.
14204   soname_spec='${libname}${release}${shared_ext}$major'
14205   ;;
14207 aix4* | aix5*)
14208   version_type=linux
14209   need_lib_prefix=no
14210   need_version=no
14211   hardcode_into_libs=yes
14212   if test "$host_cpu" = ia64; then
14213     # AIX 5 supports IA64
14214     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14215     shlibpath_var=LD_LIBRARY_PATH
14216   else
14217     # With GCC up to 2.95.x, collect2 would create an import file
14218     # for dependence libraries.  The import file would start with
14219     # the line `#! .'.  This would cause the generated library to
14220     # depend on `.', always an invalid library.  This was fixed in
14221     # development snapshots of GCC prior to 3.0.
14222     case $host_os in
14223       aix4 | aix4.[01] | aix4.[01].*)
14224       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14225            echo ' yes '
14226            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14227         :
14228       else
14229         can_build_shared=no
14230       fi
14231       ;;
14232     esac
14233     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14234     # soname into executable. Probably we can add versioning support to
14235     # collect2, so additional links can be useful in future.
14236     if test "$aix_use_runtimelinking" = yes; then
14237       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14238       # instead of lib<name>.a to let people know that these are not
14239       # typical AIX shared libraries.
14240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14241     else
14242       # We preserve .a as extension for shared libraries through AIX4.2
14243       # and later when we are not doing run time linking.
14244       library_names_spec='${libname}${release}.a $libname.a'
14245       soname_spec='${libname}${release}${shared_ext}$major'
14246     fi
14247     shlibpath_var=LIBPATH
14248   fi
14249   ;;
14251 amigaos*)
14252   library_names_spec='$libname.ixlibrary $libname.a'
14253   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14254   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'
14255   ;;
14257 beos*)
14258   library_names_spec='${libname}${shared_ext}'
14259   dynamic_linker="$host_os ld.so"
14260   shlibpath_var=LIBRARY_PATH
14261   ;;
14263 bsdi[45]*)
14264   version_type=linux
14265   need_version=no
14266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14267   soname_spec='${libname}${release}${shared_ext}$major'
14268   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14269   shlibpath_var=LD_LIBRARY_PATH
14270   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14271   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14272   # the default ld.so.conf also contains /usr/contrib/lib and
14273   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14274   # libtool to hard-code these into programs
14275   ;;
14277 cygwin* | mingw* | pw32*)
14278   version_type=windows
14279   shrext_cmds=".dll"
14280   need_version=no
14281   need_lib_prefix=no
14283   case $GCC,$host_os in
14284   yes,cygwin* | yes,mingw* | yes,pw32*)
14285     library_names_spec='$libname.dll.a'
14286     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14287     postinstall_cmds='base_file=`basename \${file}`~
14288       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14289       dldir=$destdir/`dirname \$dlpath`~
14290       test -d \$dldir || mkdir -p \$dldir~
14291       $install_prog $dir/$dlname \$dldir/$dlname~
14292       chmod a+x \$dldir/$dlname'
14293     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14294       dlpath=$dir/\$dldll~
14295        $rm \$dlpath'
14296     shlibpath_overrides_runpath=yes
14298     case $host_os in
14299     cygwin*)
14300       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14301       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14302       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14303       ;;
14304     mingw*)
14305       # MinGW DLLs use traditional 'lib' prefix
14306       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14307       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14308       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14309         # It is most probably a Windows format PATH printed by
14310         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14311         # path with ; separators, and with drive letters. We can handle the
14312         # drive letters (cygwin fileutils understands them), so leave them,
14313         # especially as we might pass files found there to a mingw objdump,
14314         # which wouldn't understand a cygwinified path. Ahh.
14315         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14316       else
14317         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14318       fi
14319       ;;
14320     pw32*)
14321       # pw32 DLLs use 'pw' prefix rather than 'lib'
14322       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14323       ;;
14324     esac
14325     ;;
14327   *)
14328     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14329     ;;
14330   esac
14331   dynamic_linker='Win32 ld.exe'
14332   # FIXME: first we should search . and the directory the executable is in
14333   shlibpath_var=PATH
14334   ;;
14336 darwin* | rhapsody*)
14337   dynamic_linker="$host_os dyld"
14338   version_type=darwin
14339   need_lib_prefix=no
14340   need_version=no
14341   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14342   soname_spec='${libname}${release}${major}$shared_ext'
14343   shlibpath_overrides_runpath=yes
14344   shlibpath_var=DYLD_LIBRARY_PATH
14345   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14346   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14347   if test "$GCC" = yes; then
14348     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"`
14349   else
14350     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14351   fi
14352   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14353   ;;
14355 dgux*)
14356   version_type=linux
14357   need_lib_prefix=no
14358   need_version=no
14359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14360   soname_spec='${libname}${release}${shared_ext}$major'
14361   shlibpath_var=LD_LIBRARY_PATH
14362   ;;
14364 freebsd1*)
14365   dynamic_linker=no
14366   ;;
14368 kfreebsd*-gnu)
14369   version_type=linux
14370   need_lib_prefix=no
14371   need_version=no
14372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14373   soname_spec='${libname}${release}${shared_ext}$major'
14374   shlibpath_var=LD_LIBRARY_PATH
14375   shlibpath_overrides_runpath=no
14376   hardcode_into_libs=yes
14377   dynamic_linker='GNU ld.so'
14378   ;;
14380 freebsd* | dragonfly*)
14381   # DragonFly does not have aout.  When/if they implement a new
14382   # versioning mechanism, adjust this.
14383   if test -x /usr/bin/objformat; then
14384     objformat=`/usr/bin/objformat`
14385   else
14386     case $host_os in
14387     freebsd[123]*) objformat=aout ;;
14388     *) objformat=elf ;;
14389     esac
14390   fi
14391   version_type=freebsd-$objformat
14392   case $version_type in
14393     freebsd-elf*)
14394       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14395       need_version=no
14396       need_lib_prefix=no
14397       ;;
14398     freebsd-*)
14399       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14400       need_version=yes
14401       ;;
14402   esac
14403   shlibpath_var=LD_LIBRARY_PATH
14404   case $host_os in
14405   freebsd2*)
14406     shlibpath_overrides_runpath=yes
14407     ;;
14408   freebsd3.[01]* | freebsdelf3.[01]*)
14409     shlibpath_overrides_runpath=yes
14410     hardcode_into_libs=yes
14411     ;;
14412   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14413   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14414     shlibpath_overrides_runpath=no
14415     hardcode_into_libs=yes
14416     ;;
14417   freebsd*) # from 4.6 on
14418     shlibpath_overrides_runpath=yes
14419     hardcode_into_libs=yes
14420     ;;
14421   esac
14422   ;;
14424 gnu*)
14425   version_type=linux
14426   need_lib_prefix=no
14427   need_version=no
14428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14429   soname_spec='${libname}${release}${shared_ext}$major'
14430   shlibpath_var=LD_LIBRARY_PATH
14431   hardcode_into_libs=yes
14432   ;;
14434 hpux9* | hpux10* | hpux11*)
14435   # Give a soname corresponding to the major version so that dld.sl refuses to
14436   # link against other versions.
14437   version_type=sunos
14438   need_lib_prefix=no
14439   need_version=no
14440   case $host_cpu in
14441   ia64*)
14442     shrext_cmds='.so'
14443     hardcode_into_libs=yes
14444     dynamic_linker="$host_os dld.so"
14445     shlibpath_var=LD_LIBRARY_PATH
14446     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448     soname_spec='${libname}${release}${shared_ext}$major'
14449     if test "X$HPUX_IA64_MODE" = X32; then
14450       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14451     else
14452       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14453     fi
14454     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14455     ;;
14456    hppa*64*)
14457      shrext_cmds='.sl'
14458      hardcode_into_libs=yes
14459      dynamic_linker="$host_os dld.sl"
14460      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14461      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14462      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463      soname_spec='${libname}${release}${shared_ext}$major'
14464      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14465      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14466      ;;
14467    *)
14468     shrext_cmds='.sl'
14469     dynamic_linker="$host_os dld.sl"
14470     shlibpath_var=SHLIB_PATH
14471     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473     soname_spec='${libname}${release}${shared_ext}$major'
14474     ;;
14475   esac
14476   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14477   postinstall_cmds='chmod 555 $lib'
14478   ;;
14480 interix3*)
14481   version_type=linux
14482   need_lib_prefix=no
14483   need_version=no
14484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14485   soname_spec='${libname}${release}${shared_ext}$major'
14486   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14487   shlibpath_var=LD_LIBRARY_PATH
14488   shlibpath_overrides_runpath=no
14489   hardcode_into_libs=yes
14490   ;;
14492 irix5* | irix6* | nonstopux*)
14493   case $host_os in
14494     nonstopux*) version_type=nonstopux ;;
14495     *)
14496         if test "$lt_cv_prog_gnu_ld" = yes; then
14497                 version_type=linux
14498         else
14499                 version_type=irix
14500         fi ;;
14501   esac
14502   need_lib_prefix=no
14503   need_version=no
14504   soname_spec='${libname}${release}${shared_ext}$major'
14505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14506   case $host_os in
14507   irix5* | nonstopux*)
14508     libsuff= shlibsuff=
14509     ;;
14510   *)
14511     case $LD in # libtool.m4 will add one of these switches to LD
14512     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14513       libsuff= shlibsuff= libmagic=32-bit;;
14514     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14515       libsuff=32 shlibsuff=N32 libmagic=N32;;
14516     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14517       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14518     *) libsuff= shlibsuff= libmagic=never-match;;
14519     esac
14520     ;;
14521   esac
14522   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14523   shlibpath_overrides_runpath=no
14524   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14525   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14526   hardcode_into_libs=yes
14527   ;;
14529 # No shared lib support for Linux oldld, aout, or coff.
14530 linux*oldld* | linux*aout* | linux*coff*)
14531   dynamic_linker=no
14532   ;;
14534 # This must be Linux ELF.
14535 linux*)
14536   version_type=linux
14537   need_lib_prefix=no
14538   need_version=no
14539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540   soname_spec='${libname}${release}${shared_ext}$major'
14541   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14542   shlibpath_var=LD_LIBRARY_PATH
14543   shlibpath_overrides_runpath=no
14544   # This implies no fast_install, which is unacceptable.
14545   # Some rework will be needed to allow for fast_install
14546   # before this can be enabled.
14547   hardcode_into_libs=yes
14549   # Append ld.so.conf contents to the search path
14550   if test -f /etc/ld.so.conf; then
14551     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' ' '`
14552     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14553   fi
14555   # We used to test for /lib/ld.so.1 and disable shared libraries on
14556   # powerpc, because MkLinux only supported shared libraries with the
14557   # GNU dynamic linker.  Since this was broken with cross compilers,
14558   # most powerpc-linux boxes support dynamic linking these days and
14559   # people can always --disable-shared, the test was removed, and we
14560   # assume the GNU/Linux dynamic linker is in use.
14561   dynamic_linker='GNU/Linux ld.so'
14562   ;;
14564 knetbsd*-gnu)
14565   version_type=linux
14566   need_lib_prefix=no
14567   need_version=no
14568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14569   soname_spec='${libname}${release}${shared_ext}$major'
14570   shlibpath_var=LD_LIBRARY_PATH
14571   shlibpath_overrides_runpath=no
14572   hardcode_into_libs=yes
14573   dynamic_linker='GNU ld.so'
14574   ;;
14576 netbsd*)
14577   version_type=sunos
14578   need_lib_prefix=no
14579   need_version=no
14580   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14582     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14583     dynamic_linker='NetBSD (a.out) ld.so'
14584   else
14585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14586     soname_spec='${libname}${release}${shared_ext}$major'
14587     dynamic_linker='NetBSD ld.elf_so'
14588   fi
14589   shlibpath_var=LD_LIBRARY_PATH
14590   shlibpath_overrides_runpath=yes
14591   hardcode_into_libs=yes
14592   ;;
14594 newsos6)
14595   version_type=linux
14596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597   shlibpath_var=LD_LIBRARY_PATH
14598   shlibpath_overrides_runpath=yes
14599   ;;
14601 nto-qnx*)
14602   version_type=linux
14603   need_lib_prefix=no
14604   need_version=no
14605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606   soname_spec='${libname}${release}${shared_ext}$major'
14607   shlibpath_var=LD_LIBRARY_PATH
14608   shlibpath_overrides_runpath=yes
14609   ;;
14611 openbsd*)
14612   version_type=sunos
14613   sys_lib_dlsearch_path_spec="/usr/lib"
14614   need_lib_prefix=no
14615   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14616   case $host_os in
14617     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14618     *)                         need_version=no  ;;
14619   esac
14620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14621   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14622   shlibpath_var=LD_LIBRARY_PATH
14623   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14624     case $host_os in
14625       openbsd2.[89] | openbsd2.[89].*)
14626         shlibpath_overrides_runpath=no
14627         ;;
14628       *)
14629         shlibpath_overrides_runpath=yes
14630         ;;
14631       esac
14632   else
14633     shlibpath_overrides_runpath=yes
14634   fi
14635   ;;
14637 os2*)
14638   libname_spec='$name'
14639   shrext_cmds=".dll"
14640   need_lib_prefix=no
14641   library_names_spec='$libname${shared_ext} $libname.a'
14642   dynamic_linker='OS/2 ld.exe'
14643   shlibpath_var=LIBPATH
14644   ;;
14646 osf3* | osf4* | osf5*)
14647   version_type=osf
14648   need_lib_prefix=no
14649   need_version=no
14650   soname_spec='${libname}${release}${shared_ext}$major'
14651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652   shlibpath_var=LD_LIBRARY_PATH
14653   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14654   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14655   ;;
14657 solaris*)
14658   version_type=linux
14659   need_lib_prefix=no
14660   need_version=no
14661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662   soname_spec='${libname}${release}${shared_ext}$major'
14663   shlibpath_var=LD_LIBRARY_PATH
14664   shlibpath_overrides_runpath=yes
14665   hardcode_into_libs=yes
14666   # ldd complains unless libraries are executable
14667   postinstall_cmds='chmod +x $lib'
14668   ;;
14670 sunos4*)
14671   version_type=sunos
14672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14673   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14674   shlibpath_var=LD_LIBRARY_PATH
14675   shlibpath_overrides_runpath=yes
14676   if test "$with_gnu_ld" = yes; then
14677     need_lib_prefix=no
14678   fi
14679   need_version=yes
14680   ;;
14682 sysv4 | sysv4.3*)
14683   version_type=linux
14684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14685   soname_spec='${libname}${release}${shared_ext}$major'
14686   shlibpath_var=LD_LIBRARY_PATH
14687   case $host_vendor in
14688     sni)
14689       shlibpath_overrides_runpath=no
14690       need_lib_prefix=no
14691       export_dynamic_flag_spec='${wl}-Blargedynsym'
14692       runpath_var=LD_RUN_PATH
14693       ;;
14694     siemens)
14695       need_lib_prefix=no
14696       ;;
14697     motorola)
14698       need_lib_prefix=no
14699       need_version=no
14700       shlibpath_overrides_runpath=no
14701       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14702       ;;
14703   esac
14704   ;;
14706 sysv4*MP*)
14707   if test -d /usr/nec ;then
14708     version_type=linux
14709     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14710     soname_spec='$libname${shared_ext}.$major'
14711     shlibpath_var=LD_LIBRARY_PATH
14712   fi
14713   ;;
14715 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14716   version_type=freebsd-elf
14717   need_lib_prefix=no
14718   need_version=no
14719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14720   soname_spec='${libname}${release}${shared_ext}$major'
14721   shlibpath_var=LD_LIBRARY_PATH
14722   hardcode_into_libs=yes
14723   if test "$with_gnu_ld" = yes; then
14724     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14725     shlibpath_overrides_runpath=no
14726   else
14727     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14728     shlibpath_overrides_runpath=yes
14729     case $host_os in
14730       sco3.2v5*)
14731         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14732         ;;
14733     esac
14734   fi
14735   sys_lib_dlsearch_path_spec='/usr/lib'
14736   ;;
14738 uts4*)
14739   version_type=linux
14740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741   soname_spec='${libname}${release}${shared_ext}$major'
14742   shlibpath_var=LD_LIBRARY_PATH
14743   ;;
14746   dynamic_linker=no
14747   ;;
14748 esac
14749 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14750 echo "${ECHO_T}$dynamic_linker" >&6
14751 test "$dynamic_linker" = no && can_build_shared=no
14753 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14754 if test "$GCC" = yes; then
14755   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14758 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14759 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14760 hardcode_action_GCJ=
14761 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14762    test -n "$runpath_var_GCJ" || \
14763    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
14765   # We can hardcode non-existant directories.
14766   if test "$hardcode_direct_GCJ" != no &&
14767      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14768      # have to relink, otherwise we might link with an installed library
14769      # when we should be linking with a yet-to-be-installed one
14770      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14771      test "$hardcode_minus_L_GCJ" != no; then
14772     # Linking always hardcodes the temporary library directory.
14773     hardcode_action_GCJ=relink
14774   else
14775     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14776     hardcode_action_GCJ=immediate
14777   fi
14778 else
14779   # We cannot hardcode anything, or else we can only hardcode existing
14780   # directories.
14781   hardcode_action_GCJ=unsupported
14783 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
14784 echo "${ECHO_T}$hardcode_action_GCJ" >&6
14786 if test "$hardcode_action_GCJ" = relink; then
14787   # Fast installation is not supported
14788   enable_fast_install=no
14789 elif test "$shlibpath_overrides_runpath" = yes ||
14790      test "$enable_shared" = no; then
14791   # Fast installation is not necessary
14792   enable_fast_install=needless
14796 # The else clause should only fire when bootstrapping the
14797 # libtool distribution, otherwise you forgot to ship ltmain.sh
14798 # with your package, and you will get complaints that there are
14799 # no rules to generate ltmain.sh.
14800 if test -f "$ltmain"; then
14801   # See if we are running on zsh, and set the options which allow our commands through
14802   # without removal of \ escapes.
14803   if test -n "${ZSH_VERSION+set}" ; then
14804     setopt NO_GLOB_SUBST
14805   fi
14806   # Now quote all the things that may contain metacharacters while being
14807   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14808   # variables and quote the copies for generation of the libtool script.
14809   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14810     SED SHELL STRIP \
14811     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14812     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14813     deplibs_check_method reload_flag reload_cmds need_locks \
14814     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14815     lt_cv_sys_global_symbol_to_c_name_address \
14816     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14817     old_postinstall_cmds old_postuninstall_cmds \
14818     compiler_GCJ \
14819     CC_GCJ \
14820     LD_GCJ \
14821     lt_prog_compiler_wl_GCJ \
14822     lt_prog_compiler_pic_GCJ \
14823     lt_prog_compiler_static_GCJ \
14824     lt_prog_compiler_no_builtin_flag_GCJ \
14825     export_dynamic_flag_spec_GCJ \
14826     thread_safe_flag_spec_GCJ \
14827     whole_archive_flag_spec_GCJ \
14828     enable_shared_with_static_runtimes_GCJ \
14829     old_archive_cmds_GCJ \
14830     old_archive_from_new_cmds_GCJ \
14831     predep_objects_GCJ \
14832     postdep_objects_GCJ \
14833     predeps_GCJ \
14834     postdeps_GCJ \
14835     compiler_lib_search_path_GCJ \
14836     archive_cmds_GCJ \
14837     archive_expsym_cmds_GCJ \
14838     postinstall_cmds_GCJ \
14839     postuninstall_cmds_GCJ \
14840     old_archive_from_expsyms_cmds_GCJ \
14841     allow_undefined_flag_GCJ \
14842     no_undefined_flag_GCJ \
14843     export_symbols_cmds_GCJ \
14844     hardcode_libdir_flag_spec_GCJ \
14845     hardcode_libdir_flag_spec_ld_GCJ \
14846     hardcode_libdir_separator_GCJ \
14847     hardcode_automatic_GCJ \
14848     module_cmds_GCJ \
14849     module_expsym_cmds_GCJ \
14850     lt_cv_prog_compiler_c_o_GCJ \
14851     exclude_expsyms_GCJ \
14852     include_expsyms_GCJ; do
14854     case $var in
14855     old_archive_cmds_GCJ | \
14856     old_archive_from_new_cmds_GCJ | \
14857     archive_cmds_GCJ | \
14858     archive_expsym_cmds_GCJ | \
14859     module_cmds_GCJ | \
14860     module_expsym_cmds_GCJ | \
14861     old_archive_from_expsyms_cmds_GCJ | \
14862     export_symbols_cmds_GCJ | \
14863     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14864     postinstall_cmds | postuninstall_cmds | \
14865     old_postinstall_cmds | old_postuninstall_cmds | \
14866     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14867       # Double-quote double-evaled strings.
14868       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14869       ;;
14870     *)
14871       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14872       ;;
14873     esac
14874   done
14876   case $lt_echo in
14877   *'\$0 --fallback-echo"')
14878     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14879     ;;
14880   esac
14882 cfgfile="$ofile"
14884   cat <<__EOF__ >> "$cfgfile"
14885 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14887 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14889 # Shell to use when invoking shell scripts.
14890 SHELL=$lt_SHELL
14892 # Whether or not to build shared libraries.
14893 build_libtool_libs=$enable_shared
14895 # Whether or not to build static libraries.
14896 build_old_libs=$enable_static
14898 # Whether or not to add -lc for building shared libraries.
14899 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14901 # Whether or not to disallow shared libs when runtime libs are static
14902 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
14904 # Whether or not to optimize for fast installation.
14905 fast_install=$enable_fast_install
14907 # The host system.
14908 host_alias=$host_alias
14909 host=$host
14910 host_os=$host_os
14912 # The build system.
14913 build_alias=$build_alias
14914 build=$build
14915 build_os=$build_os
14917 # An echo program that does not interpret backslashes.
14918 echo=$lt_echo
14920 # The archiver.
14921 AR=$lt_AR
14922 AR_FLAGS=$lt_AR_FLAGS
14924 # A C compiler.
14925 LTCC=$lt_LTCC
14927 # LTCC compiler flags.
14928 LTCFLAGS=$lt_LTCFLAGS
14930 # A language-specific compiler.
14931 CC=$lt_compiler_GCJ
14933 # Is the compiler the GNU C compiler?
14934 with_gcc=$GCC_GCJ
14936 # An ERE matcher.
14937 EGREP=$lt_EGREP
14939 # The linker used to build libraries.
14940 LD=$lt_LD_GCJ
14942 # Whether we need hard or soft links.
14943 LN_S=$lt_LN_S
14945 # A BSD-compatible nm program.
14946 NM=$lt_NM
14948 # A symbol stripping program
14949 STRIP=$lt_STRIP
14951 # Used to examine libraries when file_magic_cmd begins "file"
14952 MAGIC_CMD=$MAGIC_CMD
14954 # Used on cygwin: DLL creation program.
14955 DLLTOOL="$DLLTOOL"
14957 # Used on cygwin: object dumper.
14958 OBJDUMP="$OBJDUMP"
14960 # Used on cygwin: assembler.
14961 AS="$AS"
14963 # The name of the directory that contains temporary libtool files.
14964 objdir=$objdir
14966 # How to create reloadable object files.
14967 reload_flag=$lt_reload_flag
14968 reload_cmds=$lt_reload_cmds
14970 # How to pass a linker flag through the compiler.
14971 wl=$lt_lt_prog_compiler_wl_GCJ
14973 # Object file suffix (normally "o").
14974 objext="$ac_objext"
14976 # Old archive suffix (normally "a").
14977 libext="$libext"
14979 # Shared library suffix (normally ".so").
14980 shrext_cmds='$shrext_cmds'
14982 # Executable file suffix (normally "").
14983 exeext="$exeext"
14985 # Additional compiler flags for building library objects.
14986 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14987 pic_mode=$pic_mode
14989 # What is the maximum length of a command?
14990 max_cmd_len=$lt_cv_sys_max_cmd_len
14992 # Does compiler simultaneously support -c and -o options?
14993 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14995 # Must we lock files when doing compilation?
14996 need_locks=$lt_need_locks
14998 # Do we need the lib prefix for modules?
14999 need_lib_prefix=$need_lib_prefix
15001 # Do we need a version for libraries?
15002 need_version=$need_version
15004 # Whether dlopen is supported.
15005 dlopen_support=$enable_dlopen
15007 # Whether dlopen of programs is supported.
15008 dlopen_self=$enable_dlopen_self
15010 # Whether dlopen of statically linked programs is supported.
15011 dlopen_self_static=$enable_dlopen_self_static
15013 # Compiler flag to prevent dynamic linking.
15014 link_static_flag=$lt_lt_prog_compiler_static_GCJ
15016 # Compiler flag to turn off builtin functions.
15017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
15019 # Compiler flag to allow reflexive dlopens.
15020 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
15022 # Compiler flag to generate shared objects directly from archives.
15023 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
15025 # Compiler flag to generate thread-safe objects.
15026 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
15028 # Library versioning type.
15029 version_type=$version_type
15031 # Format of library name prefix.
15032 libname_spec=$lt_libname_spec
15034 # List of archive names.  First name is the real one, the rest are links.
15035 # The last name is the one that the linker finds with -lNAME.
15036 library_names_spec=$lt_library_names_spec
15038 # The coded name of the library, if different from the real name.
15039 soname_spec=$lt_soname_spec
15041 # Commands used to build and install an old-style archive.
15042 RANLIB=$lt_RANLIB
15043 old_archive_cmds=$lt_old_archive_cmds_GCJ
15044 old_postinstall_cmds=$lt_old_postinstall_cmds
15045 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15047 # Create an old-style archive from a shared archive.
15048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15050 # Create a temporary old-style archive to link instead of a shared archive.
15051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15053 # Commands used to build and install a shared archive.
15054 archive_cmds=$lt_archive_cmds_GCJ
15055 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15056 postinstall_cmds=$lt_postinstall_cmds
15057 postuninstall_cmds=$lt_postuninstall_cmds
15059 # Commands used to build a loadable module (assumed same as above if empty)
15060 module_cmds=$lt_module_cmds_GCJ
15061 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15063 # Commands to strip libraries.
15064 old_striplib=$lt_old_striplib
15065 striplib=$lt_striplib
15067 # Dependencies to place before the objects being linked to create a
15068 # shared library.
15069 predep_objects=$lt_predep_objects_GCJ
15071 # Dependencies to place after the objects being linked to create a
15072 # shared library.
15073 postdep_objects=$lt_postdep_objects_GCJ
15075 # Dependencies to place before the objects being linked to create a
15076 # shared library.
15077 predeps=$lt_predeps_GCJ
15079 # Dependencies to place after the objects being linked to create a
15080 # shared library.
15081 postdeps=$lt_postdeps_GCJ
15083 # The library search path used internally by the compiler when linking
15084 # a shared library.
15085 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15087 # Method to check whether dependent libraries are shared objects.
15088 deplibs_check_method=$lt_deplibs_check_method
15090 # Command to use when deplibs_check_method == file_magic.
15091 file_magic_cmd=$lt_file_magic_cmd
15093 # Flag that allows shared libraries with undefined symbols to be built.
15094 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15096 # Flag that forces no undefined symbols.
15097 no_undefined_flag=$lt_no_undefined_flag_GCJ
15099 # Commands used to finish a libtool library installation in a directory.
15100 finish_cmds=$lt_finish_cmds
15102 # Same as above, but a single script fragment to be evaled but not shown.
15103 finish_eval=$lt_finish_eval
15105 # Take the output of nm and produce a listing of raw symbols and C names.
15106 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15108 # Transform the output of nm in a proper C declaration
15109 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15111 # Transform the output of nm in a C name address pair
15112 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15114 # This is the shared library runtime path variable.
15115 runpath_var=$runpath_var
15117 # This is the shared library path variable.
15118 shlibpath_var=$shlibpath_var
15120 # Is shlibpath searched before the hard-coded library search path?
15121 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15123 # How to hardcode a shared library path into an executable.
15124 hardcode_action=$hardcode_action_GCJ
15126 # Whether we should hardcode library paths into libraries.
15127 hardcode_into_libs=$hardcode_into_libs
15129 # Flag to hardcode \$libdir into a binary during linking.
15130 # This must work even if \$libdir does not exist.
15131 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15133 # If ld is used when linking, flag to hardcode \$libdir into
15134 # a binary during linking. This must work even if \$libdir does
15135 # not exist.
15136 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
15138 # Whether we need a single -rpath flag with a separated argument.
15139 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15141 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15142 # resulting binary.
15143 hardcode_direct=$hardcode_direct_GCJ
15145 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15146 # resulting binary.
15147 hardcode_minus_L=$hardcode_minus_L_GCJ
15149 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15150 # the resulting binary.
15151 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15153 # Set to yes if building a shared library automatically hardcodes DIR into the library
15154 # and all subsequent libraries and executables linked against it.
15155 hardcode_automatic=$hardcode_automatic_GCJ
15157 # Variables whose values should be saved in libtool wrapper scripts and
15158 # restored at relink time.
15159 variables_saved_for_relink="$variables_saved_for_relink"
15161 # Whether libtool must link a program against all its dependency libraries.
15162 link_all_deplibs=$link_all_deplibs_GCJ
15164 # Compile-time system search path for libraries
15165 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15167 # Run-time system search path for libraries
15168 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15170 # Fix the shell variable \$srcfile for the compiler.
15171 fix_srcfile_path="$fix_srcfile_path_GCJ"
15173 # Set to yes if exported symbols are required.
15174 always_export_symbols=$always_export_symbols_GCJ
15176 # The commands to list exported symbols.
15177 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15179 # The commands to extract the exported symbol list from a shared archive.
15180 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15182 # Symbols that should not be listed in the preloaded symbols.
15183 exclude_expsyms=$lt_exclude_expsyms_GCJ
15185 # Symbols that must always be exported.
15186 include_expsyms=$lt_include_expsyms_GCJ
15188 # ### END LIBTOOL TAG CONFIG: $tagname
15190 __EOF__
15193 else
15194   # If there is no Makefile yet, we rely on a make rule to execute
15195   # `config.status --recheck' to rerun these tests and create the
15196   # libtool script then.
15197   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15198   if test -f "$ltmain_in"; then
15199     test -f Makefile && make "$ltmain"
15200   fi
15204 ac_ext=c
15205 ac_cpp='$CPP $CPPFLAGS'
15206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15210 CC="$lt_save_CC"
15212         else
15213           tagname=""
15214         fi
15215         ;;
15217       RC)
15221 # Source file extension for RC test sources.
15222 ac_ext=rc
15224 # Object file extension for compiled RC test sources.
15225 objext=o
15226 objext_RC=$objext
15228 # Code to be used in simple compile tests
15229 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
15231 # Code to be used in simple link tests
15232 lt_simple_link_test_code="$lt_simple_compile_test_code"
15234 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15236 # If no C compiler was specified, use CC.
15237 LTCC=${LTCC-"$CC"}
15239 # If no C compiler flags were specified, use CFLAGS.
15240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15242 # Allow CC to be a program name with arguments.
15243 compiler=$CC
15246 # save warnings/boilerplate of simple test code
15247 ac_outfile=conftest.$ac_objext
15248 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15250 _lt_compiler_boilerplate=`cat conftest.err`
15251 $rm conftest*
15253 ac_outfile=conftest.$ac_objext
15254 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15256 _lt_linker_boilerplate=`cat conftest.err`
15257 $rm conftest*
15260 # Allow CC to be a program name with arguments.
15261 lt_save_CC="$CC"
15262 CC=${RC-"windres"}
15263 compiler=$CC
15264 compiler_RC=$CC
15265 for cc_temp in $compiler""; do
15266   case $cc_temp in
15267     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15268     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15269     \-*) ;;
15270     *) break;;
15271   esac
15272 done
15273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15275 lt_cv_prog_compiler_c_o_RC=yes
15277 # The else clause should only fire when bootstrapping the
15278 # libtool distribution, otherwise you forgot to ship ltmain.sh
15279 # with your package, and you will get complaints that there are
15280 # no rules to generate ltmain.sh.
15281 if test -f "$ltmain"; then
15282   # See if we are running on zsh, and set the options which allow our commands through
15283   # without removal of \ escapes.
15284   if test -n "${ZSH_VERSION+set}" ; then
15285     setopt NO_GLOB_SUBST
15286   fi
15287   # Now quote all the things that may contain metacharacters while being
15288   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15289   # variables and quote the copies for generation of the libtool script.
15290   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15291     SED SHELL STRIP \
15292     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15293     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15294     deplibs_check_method reload_flag reload_cmds need_locks \
15295     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15296     lt_cv_sys_global_symbol_to_c_name_address \
15297     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15298     old_postinstall_cmds old_postuninstall_cmds \
15299     compiler_RC \
15300     CC_RC \
15301     LD_RC \
15302     lt_prog_compiler_wl_RC \
15303     lt_prog_compiler_pic_RC \
15304     lt_prog_compiler_static_RC \
15305     lt_prog_compiler_no_builtin_flag_RC \
15306     export_dynamic_flag_spec_RC \
15307     thread_safe_flag_spec_RC \
15308     whole_archive_flag_spec_RC \
15309     enable_shared_with_static_runtimes_RC \
15310     old_archive_cmds_RC \
15311     old_archive_from_new_cmds_RC \
15312     predep_objects_RC \
15313     postdep_objects_RC \
15314     predeps_RC \
15315     postdeps_RC \
15316     compiler_lib_search_path_RC \
15317     archive_cmds_RC \
15318     archive_expsym_cmds_RC \
15319     postinstall_cmds_RC \
15320     postuninstall_cmds_RC \
15321     old_archive_from_expsyms_cmds_RC \
15322     allow_undefined_flag_RC \
15323     no_undefined_flag_RC \
15324     export_symbols_cmds_RC \
15325     hardcode_libdir_flag_spec_RC \
15326     hardcode_libdir_flag_spec_ld_RC \
15327     hardcode_libdir_separator_RC \
15328     hardcode_automatic_RC \
15329     module_cmds_RC \
15330     module_expsym_cmds_RC \
15331     lt_cv_prog_compiler_c_o_RC \
15332     exclude_expsyms_RC \
15333     include_expsyms_RC; do
15335     case $var in
15336     old_archive_cmds_RC | \
15337     old_archive_from_new_cmds_RC | \
15338     archive_cmds_RC | \
15339     archive_expsym_cmds_RC | \
15340     module_cmds_RC | \
15341     module_expsym_cmds_RC | \
15342     old_archive_from_expsyms_cmds_RC | \
15343     export_symbols_cmds_RC | \
15344     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15345     postinstall_cmds | postuninstall_cmds | \
15346     old_postinstall_cmds | old_postuninstall_cmds | \
15347     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15348       # Double-quote double-evaled strings.
15349       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15350       ;;
15351     *)
15352       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15353       ;;
15354     esac
15355   done
15357   case $lt_echo in
15358   *'\$0 --fallback-echo"')
15359     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15360     ;;
15361   esac
15363 cfgfile="$ofile"
15365   cat <<__EOF__ >> "$cfgfile"
15366 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15368 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15370 # Shell to use when invoking shell scripts.
15371 SHELL=$lt_SHELL
15373 # Whether or not to build shared libraries.
15374 build_libtool_libs=$enable_shared
15376 # Whether or not to build static libraries.
15377 build_old_libs=$enable_static
15379 # Whether or not to add -lc for building shared libraries.
15380 build_libtool_need_lc=$archive_cmds_need_lc_RC
15382 # Whether or not to disallow shared libs when runtime libs are static
15383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
15385 # Whether or not to optimize for fast installation.
15386 fast_install=$enable_fast_install
15388 # The host system.
15389 host_alias=$host_alias
15390 host=$host
15391 host_os=$host_os
15393 # The build system.
15394 build_alias=$build_alias
15395 build=$build
15396 build_os=$build_os
15398 # An echo program that does not interpret backslashes.
15399 echo=$lt_echo
15401 # The archiver.
15402 AR=$lt_AR
15403 AR_FLAGS=$lt_AR_FLAGS
15405 # A C compiler.
15406 LTCC=$lt_LTCC
15408 # LTCC compiler flags.
15409 LTCFLAGS=$lt_LTCFLAGS
15411 # A language-specific compiler.
15412 CC=$lt_compiler_RC
15414 # Is the compiler the GNU C compiler?
15415 with_gcc=$GCC_RC
15417 # An ERE matcher.
15418 EGREP=$lt_EGREP
15420 # The linker used to build libraries.
15421 LD=$lt_LD_RC
15423 # Whether we need hard or soft links.
15424 LN_S=$lt_LN_S
15426 # A BSD-compatible nm program.
15427 NM=$lt_NM
15429 # A symbol stripping program
15430 STRIP=$lt_STRIP
15432 # Used to examine libraries when file_magic_cmd begins "file"
15433 MAGIC_CMD=$MAGIC_CMD
15435 # Used on cygwin: DLL creation program.
15436 DLLTOOL="$DLLTOOL"
15438 # Used on cygwin: object dumper.
15439 OBJDUMP="$OBJDUMP"
15441 # Used on cygwin: assembler.
15442 AS="$AS"
15444 # The name of the directory that contains temporary libtool files.
15445 objdir=$objdir
15447 # How to create reloadable object files.
15448 reload_flag=$lt_reload_flag
15449 reload_cmds=$lt_reload_cmds
15451 # How to pass a linker flag through the compiler.
15452 wl=$lt_lt_prog_compiler_wl_RC
15454 # Object file suffix (normally "o").
15455 objext="$ac_objext"
15457 # Old archive suffix (normally "a").
15458 libext="$libext"
15460 # Shared library suffix (normally ".so").
15461 shrext_cmds='$shrext_cmds'
15463 # Executable file suffix (normally "").
15464 exeext="$exeext"
15466 # Additional compiler flags for building library objects.
15467 pic_flag=$lt_lt_prog_compiler_pic_RC
15468 pic_mode=$pic_mode
15470 # What is the maximum length of a command?
15471 max_cmd_len=$lt_cv_sys_max_cmd_len
15473 # Does compiler simultaneously support -c and -o options?
15474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
15476 # Must we lock files when doing compilation?
15477 need_locks=$lt_need_locks
15479 # Do we need the lib prefix for modules?
15480 need_lib_prefix=$need_lib_prefix
15482 # Do we need a version for libraries?
15483 need_version=$need_version
15485 # Whether dlopen is supported.
15486 dlopen_support=$enable_dlopen
15488 # Whether dlopen of programs is supported.
15489 dlopen_self=$enable_dlopen_self
15491 # Whether dlopen of statically linked programs is supported.
15492 dlopen_self_static=$enable_dlopen_self_static
15494 # Compiler flag to prevent dynamic linking.
15495 link_static_flag=$lt_lt_prog_compiler_static_RC
15497 # Compiler flag to turn off builtin functions.
15498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
15500 # Compiler flag to allow reflexive dlopens.
15501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
15503 # Compiler flag to generate shared objects directly from archives.
15504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
15506 # Compiler flag to generate thread-safe objects.
15507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
15509 # Library versioning type.
15510 version_type=$version_type
15512 # Format of library name prefix.
15513 libname_spec=$lt_libname_spec
15515 # List of archive names.  First name is the real one, the rest are links.
15516 # The last name is the one that the linker finds with -lNAME.
15517 library_names_spec=$lt_library_names_spec
15519 # The coded name of the library, if different from the real name.
15520 soname_spec=$lt_soname_spec
15522 # Commands used to build and install an old-style archive.
15523 RANLIB=$lt_RANLIB
15524 old_archive_cmds=$lt_old_archive_cmds_RC
15525 old_postinstall_cmds=$lt_old_postinstall_cmds
15526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15528 # Create an old-style archive from a shared archive.
15529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
15531 # Create a temporary old-style archive to link instead of a shared archive.
15532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
15534 # Commands used to build and install a shared archive.
15535 archive_cmds=$lt_archive_cmds_RC
15536 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
15537 postinstall_cmds=$lt_postinstall_cmds
15538 postuninstall_cmds=$lt_postuninstall_cmds
15540 # Commands used to build a loadable module (assumed same as above if empty)
15541 module_cmds=$lt_module_cmds_RC
15542 module_expsym_cmds=$lt_module_expsym_cmds_RC
15544 # Commands to strip libraries.
15545 old_striplib=$lt_old_striplib
15546 striplib=$lt_striplib
15548 # Dependencies to place before the objects being linked to create a
15549 # shared library.
15550 predep_objects=$lt_predep_objects_RC
15552 # Dependencies to place after the objects being linked to create a
15553 # shared library.
15554 postdep_objects=$lt_postdep_objects_RC
15556 # Dependencies to place before the objects being linked to create a
15557 # shared library.
15558 predeps=$lt_predeps_RC
15560 # Dependencies to place after the objects being linked to create a
15561 # shared library.
15562 postdeps=$lt_postdeps_RC
15564 # The library search path used internally by the compiler when linking
15565 # a shared library.
15566 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
15568 # Method to check whether dependent libraries are shared objects.
15569 deplibs_check_method=$lt_deplibs_check_method
15571 # Command to use when deplibs_check_method == file_magic.
15572 file_magic_cmd=$lt_file_magic_cmd
15574 # Flag that allows shared libraries with undefined symbols to be built.
15575 allow_undefined_flag=$lt_allow_undefined_flag_RC
15577 # Flag that forces no undefined symbols.
15578 no_undefined_flag=$lt_no_undefined_flag_RC
15580 # Commands used to finish a libtool library installation in a directory.
15581 finish_cmds=$lt_finish_cmds
15583 # Same as above, but a single script fragment to be evaled but not shown.
15584 finish_eval=$lt_finish_eval
15586 # Take the output of nm and produce a listing of raw symbols and C names.
15587 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15589 # Transform the output of nm in a proper C declaration
15590 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15592 # Transform the output of nm in a C name address pair
15593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15595 # This is the shared library runtime path variable.
15596 runpath_var=$runpath_var
15598 # This is the shared library path variable.
15599 shlibpath_var=$shlibpath_var
15601 # Is shlibpath searched before the hard-coded library search path?
15602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15604 # How to hardcode a shared library path into an executable.
15605 hardcode_action=$hardcode_action_RC
15607 # Whether we should hardcode library paths into libraries.
15608 hardcode_into_libs=$hardcode_into_libs
15610 # Flag to hardcode \$libdir into a binary during linking.
15611 # This must work even if \$libdir does not exist.
15612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
15614 # If ld is used when linking, flag to hardcode \$libdir into
15615 # a binary during linking. This must work even if \$libdir does
15616 # not exist.
15617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
15619 # Whether we need a single -rpath flag with a separated argument.
15620 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
15622 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15623 # resulting binary.
15624 hardcode_direct=$hardcode_direct_RC
15626 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15627 # resulting binary.
15628 hardcode_minus_L=$hardcode_minus_L_RC
15630 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15631 # the resulting binary.
15632 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
15634 # Set to yes if building a shared library automatically hardcodes DIR into the library
15635 # and all subsequent libraries and executables linked against it.
15636 hardcode_automatic=$hardcode_automatic_RC
15638 # Variables whose values should be saved in libtool wrapper scripts and
15639 # restored at relink time.
15640 variables_saved_for_relink="$variables_saved_for_relink"
15642 # Whether libtool must link a program against all its dependency libraries.
15643 link_all_deplibs=$link_all_deplibs_RC
15645 # Compile-time system search path for libraries
15646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15648 # Run-time system search path for libraries
15649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15651 # Fix the shell variable \$srcfile for the compiler.
15652 fix_srcfile_path="$fix_srcfile_path_RC"
15654 # Set to yes if exported symbols are required.
15655 always_export_symbols=$always_export_symbols_RC
15657 # The commands to list exported symbols.
15658 export_symbols_cmds=$lt_export_symbols_cmds_RC
15660 # The commands to extract the exported symbol list from a shared archive.
15661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15663 # Symbols that should not be listed in the preloaded symbols.
15664 exclude_expsyms=$lt_exclude_expsyms_RC
15666 # Symbols that must always be exported.
15667 include_expsyms=$lt_include_expsyms_RC
15669 # ### END LIBTOOL TAG CONFIG: $tagname
15671 __EOF__
15674 else
15675   # If there is no Makefile yet, we rely on a make rule to execute
15676   # `config.status --recheck' to rerun these tests and create the
15677   # libtool script then.
15678   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15679   if test -f "$ltmain_in"; then
15680     test -f Makefile && make "$ltmain"
15681   fi
15685 ac_ext=c
15686 ac_cpp='$CPP $CPPFLAGS'
15687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15691 CC="$lt_save_CC"
15693         ;;
15695       *)
15696         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
15697 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
15698    { (exit 1); exit 1; }; }
15699         ;;
15700       esac
15702       # Append the new tag name to the list of available tags.
15703       if test -n "$tagname" ; then
15704       available_tags="$available_tags $tagname"
15705     fi
15706     fi
15707   done
15708   IFS="$lt_save_ifs"
15710   # Now substitute the updated list of available tags.
15711   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
15712     mv "${ofile}T" "$ofile"
15713     chmod +x "$ofile"
15714   else
15715     rm -f "${ofile}T"
15716     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
15717 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
15718    { (exit 1); exit 1; }; }
15719   fi
15724 # This can be used to rebuild libtool when needed
15725 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
15727 # Always use our own libtool.
15728 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15730 # Prevent multiple expansion
15747 # Checks for programs.
15748 ac_ext=c
15749 ac_cpp='$CPP $CPPFLAGS'
15750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15753 if test -n "$ac_tool_prefix"; then
15754   for ac_prog in gcc
15755   do
15756     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15758 echo "$as_me:$LINENO: checking for $ac_word" >&5
15759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15760 if test "${ac_cv_prog_CC+set}" = set; then
15761   echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763   if test -n "$CC"; then
15764   ac_cv_prog_CC="$CC" # Let the user override the test.
15765 else
15766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15767 for as_dir in $PATH
15769   IFS=$as_save_IFS
15770   test -z "$as_dir" && as_dir=.
15771   for ac_exec_ext in '' $ac_executable_extensions; do
15772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15773     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15775     break 2
15776   fi
15777 done
15778 done
15782 CC=$ac_cv_prog_CC
15783 if test -n "$CC"; then
15784   echo "$as_me:$LINENO: result: $CC" >&5
15785 echo "${ECHO_T}$CC" >&6
15786 else
15787   echo "$as_me:$LINENO: result: no" >&5
15788 echo "${ECHO_T}no" >&6
15791     test -n "$CC" && break
15792   done
15794 if test -z "$CC"; then
15795   ac_ct_CC=$CC
15796   for ac_prog in gcc
15798   # Extract the first word of "$ac_prog", so it can be a program name with args.
15799 set dummy $ac_prog; ac_word=$2
15800 echo "$as_me:$LINENO: checking for $ac_word" >&5
15801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15803   echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15805   if test -n "$ac_ct_CC"; then
15806   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15807 else
15808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15809 for as_dir in $PATH
15811   IFS=$as_save_IFS
15812   test -z "$as_dir" && as_dir=.
15813   for ac_exec_ext in '' $ac_executable_extensions; do
15814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15815     ac_cv_prog_ac_ct_CC="$ac_prog"
15816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15817     break 2
15818   fi
15819 done
15820 done
15824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15825 if test -n "$ac_ct_CC"; then
15826   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15827 echo "${ECHO_T}$ac_ct_CC" >&6
15828 else
15829   echo "$as_me:$LINENO: result: no" >&5
15830 echo "${ECHO_T}no" >&6
15833   test -n "$ac_ct_CC" && break
15834 done
15836   CC=$ac_ct_CC
15840 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15841 See \`config.log' for more details." >&5
15842 echo "$as_me: error: no acceptable C compiler found in \$PATH
15843 See \`config.log' for more details." >&2;}
15844    { (exit 1); exit 1; }; }
15846 # Provide some information about the compiler.
15847 echo "$as_me:$LINENO:" \
15848      "checking for C compiler version" >&5
15849 ac_compiler=`set X $ac_compile; echo $2`
15850 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15851   (eval $ac_compiler --version </dev/null >&5) 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }
15855 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15856   (eval $ac_compiler -v </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); }
15866 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15867 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
15868 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15869   echo $ECHO_N "(cached) $ECHO_C" >&6
15870 else
15871   cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h.  */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h.  */
15878 int
15879 main ()
15881 #ifndef __GNUC__
15882        choke me
15883 #endif
15885   ;
15886   return 0;
15888 _ACEOF
15889 rm -f conftest.$ac_objext
15890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15891   (eval $ac_compile) 2>conftest.er1
15892   ac_status=$?
15893   grep -v '^ *+' conftest.er1 >conftest.err
15894   rm -f conftest.er1
15895   cat conftest.err >&5
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } &&
15898          { ac_try='test -z "$ac_c_werror_flag"
15899                          || test ! -s conftest.err'
15900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901   (eval $ac_try) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); }; } &&
15905          { ac_try='test -s conftest.$ac_objext'
15906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907   (eval $ac_try) 2>&5
15908   ac_status=$?
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); }; }; then
15911   ac_compiler_gnu=yes
15912 else
15913   echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15916 ac_compiler_gnu=no
15918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15919 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15922 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15923 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
15924 GCC=`test $ac_compiler_gnu = yes && echo yes`
15925 ac_test_CFLAGS=${CFLAGS+set}
15926 ac_save_CFLAGS=$CFLAGS
15927 CFLAGS="-g"
15928 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15929 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
15930 if test "${ac_cv_prog_cc_g+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933   cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h.  */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h.  */
15940 int
15941 main ()
15944   ;
15945   return 0;
15947 _ACEOF
15948 rm -f conftest.$ac_objext
15949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15950   (eval $ac_compile) 2>conftest.er1
15951   ac_status=$?
15952   grep -v '^ *+' conftest.er1 >conftest.err
15953   rm -f conftest.er1
15954   cat conftest.err >&5
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } &&
15957          { ac_try='test -z "$ac_c_werror_flag"
15958                          || test ! -s conftest.err'
15959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960   (eval $ac_try) 2>&5
15961   ac_status=$?
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); }; } &&
15964          { ac_try='test -s conftest.$ac_objext'
15965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966   (eval $ac_try) 2>&5
15967   ac_status=$?
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); }; }; then
15970   ac_cv_prog_cc_g=yes
15971 else
15972   echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 ac_cv_prog_cc_g=no
15977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15979 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15980 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
15981 if test "$ac_test_CFLAGS" = set; then
15982   CFLAGS=$ac_save_CFLAGS
15983 elif test $ac_cv_prog_cc_g = yes; then
15984   if test "$GCC" = yes; then
15985     CFLAGS="-g -O2"
15986   else
15987     CFLAGS="-g"
15988   fi
15989 else
15990   if test "$GCC" = yes; then
15991     CFLAGS="-O2"
15992   else
15993     CFLAGS=
15994   fi
15996 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
15997 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
15998 if test "${ac_cv_prog_cc_stdc+set}" = set; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001   ac_cv_prog_cc_stdc=no
16002 ac_save_CC=$CC
16003 cat >conftest.$ac_ext <<_ACEOF
16004 /* confdefs.h.  */
16005 _ACEOF
16006 cat confdefs.h >>conftest.$ac_ext
16007 cat >>conftest.$ac_ext <<_ACEOF
16008 /* end confdefs.h.  */
16009 #include <stdarg.h>
16010 #include <stdio.h>
16011 #include <sys/types.h>
16012 #include <sys/stat.h>
16013 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16014 struct buf { int x; };
16015 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16016 static char *e (p, i)
16017      char **p;
16018      int i;
16020   return p[i];
16022 static char *f (char * (*g) (char **, int), char **p, ...)
16024   char *s;
16025   va_list v;
16026   va_start (v,p);
16027   s = g (p, va_arg (v,int));
16028   va_end (v);
16029   return s;
16032 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16033    function prototypes and stuff, but not '\xHH' hex character constants.
16034    These don't provoke an error unfortunately, instead are silently treated
16035    as 'x'.  The following induces an error, until -std1 is added to get
16036    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16037    array size at least.  It's necessary to write '\x00'==0 to get something
16038    that's true only with -std1.  */
16039 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16041 int test (int i, double x);
16042 struct s1 {int (*f) (int a);};
16043 struct s2 {int (*f) (double a);};
16044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16045 int argc;
16046 char **argv;
16047 int
16048 main ()
16050 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16051   ;
16052   return 0;
16054 _ACEOF
16055 # Don't try gcc -ansi; that turns off useful extensions and
16056 # breaks some systems' header files.
16057 # AIX                   -qlanglvl=ansi
16058 # Ultrix and OSF/1      -std1
16059 # HP-UX 10.20 and later -Ae
16060 # HP-UX older versions  -Aa -D_HPUX_SOURCE
16061 # SVR4                  -Xc -D__EXTENSIONS__
16062 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16064   CC="$ac_save_CC $ac_arg"
16065   rm -f conftest.$ac_objext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16067   (eval $ac_compile) 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } &&
16074          { ac_try='test -z "$ac_c_werror_flag"
16075                          || test ! -s conftest.err'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; } &&
16081          { ac_try='test -s conftest.$ac_objext'
16082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083   (eval $ac_try) 2>&5
16084   ac_status=$?
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); }; }; then
16087   ac_cv_prog_cc_stdc=$ac_arg
16088 break
16089 else
16090   echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16094 rm -f conftest.err conftest.$ac_objext
16095 done
16096 rm -f conftest.$ac_ext conftest.$ac_objext
16097 CC=$ac_save_CC
16101 case "x$ac_cv_prog_cc_stdc" in
16102   x|xno)
16103     echo "$as_me:$LINENO: result: none needed" >&5
16104 echo "${ECHO_T}none needed" >&6 ;;
16105   *)
16106     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
16107 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
16108     CC="$CC $ac_cv_prog_cc_stdc" ;;
16109 esac
16111 # Some people use a C++ compiler to compile C.  Since we use `exit',
16112 # in C++ we need to declare it.  In case someone uses the same compiler
16113 # for both compiling C and C++ we need to have the C++ compiler decide
16114 # the declaration of exit, since it's the most demanding environment.
16115 cat >conftest.$ac_ext <<_ACEOF
16116 #ifndef __cplusplus
16117   choke me
16118 #endif
16119 _ACEOF
16120 rm -f conftest.$ac_objext
16121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16122   (eval $ac_compile) 2>conftest.er1
16123   ac_status=$?
16124   grep -v '^ *+' conftest.er1 >conftest.err
16125   rm -f conftest.er1
16126   cat conftest.err >&5
16127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128   (exit $ac_status); } &&
16129          { ac_try='test -z "$ac_c_werror_flag"
16130                          || test ! -s conftest.err'
16131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132   (eval $ac_try) 2>&5
16133   ac_status=$?
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); }; } &&
16136          { ac_try='test -s conftest.$ac_objext'
16137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138   (eval $ac_try) 2>&5
16139   ac_status=$?
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); }; }; then
16142   for ac_declaration in \
16143    '' \
16144    'extern "C" void std::exit (int) throw (); using std::exit;' \
16145    'extern "C" void std::exit (int); using std::exit;' \
16146    'extern "C" void exit (int) throw ();' \
16147    'extern "C" void exit (int);' \
16148    'void exit (int);'
16150   cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h.  */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h.  */
16156 $ac_declaration
16157 #include <stdlib.h>
16158 int
16159 main ()
16161 exit (42);
16162   ;
16163   return 0;
16165 _ACEOF
16166 rm -f conftest.$ac_objext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168   (eval $ac_compile) 2>conftest.er1
16169   ac_status=$?
16170   grep -v '^ *+' conftest.er1 >conftest.err
16171   rm -f conftest.er1
16172   cat conftest.err >&5
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); } &&
16175          { ac_try='test -z "$ac_c_werror_flag"
16176                          || test ! -s conftest.err'
16177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178   (eval $ac_try) 2>&5
16179   ac_status=$?
16180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); }; } &&
16182          { ac_try='test -s conftest.$ac_objext'
16183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184   (eval $ac_try) 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; }; then
16188   :
16189 else
16190   echo "$as_me: failed program was:" >&5
16191 sed 's/^/| /' conftest.$ac_ext >&5
16193 continue
16195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16196   cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h.  */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h.  */
16202 $ac_declaration
16203 int
16204 main ()
16206 exit (42);
16207   ;
16208   return 0;
16210 _ACEOF
16211 rm -f conftest.$ac_objext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16213   (eval $ac_compile) 2>conftest.er1
16214   ac_status=$?
16215   grep -v '^ *+' conftest.er1 >conftest.err
16216   rm -f conftest.er1
16217   cat conftest.err >&5
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); } &&
16220          { ac_try='test -z "$ac_c_werror_flag"
16221                          || test ! -s conftest.err'
16222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223   (eval $ac_try) 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); }; } &&
16227          { ac_try='test -s conftest.$ac_objext'
16228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229   (eval $ac_try) 2>&5
16230   ac_status=$?
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); }; }; then
16233   break
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16240 done
16241 rm -f conftest*
16242 if test -n "$ac_declaration"; then
16243   echo '#ifdef __cplusplus' >>confdefs.h
16244   echo $ac_declaration      >>confdefs.h
16245   echo '#endif'             >>confdefs.h
16248 else
16249   echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16254 ac_ext=c
16255 ac_cpp='$CPP $CPPFLAGS'
16256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16260 depcc="$CC"   am_compiler_list=
16262 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16263 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16264 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
16265   echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16268   # We make a subdir and do the tests there.  Otherwise we can end up
16269   # making bogus files that we don't know about and never remove.  For
16270   # instance it was reported that on HP-UX the gcc test will end up
16271   # making a dummy file named `D' -- because `-MD' means `put the output
16272   # in D'.
16273   mkdir conftest.dir
16274   # Copy depcomp to subdir because otherwise we won't find it if we're
16275   # using a relative directory.
16276   cp "$am_depcomp" conftest.dir
16277   cd conftest.dir
16278   # We will build objects and dependencies in a subdirectory because
16279   # it helps to detect inapplicable dependency modes.  For instance
16280   # both Tru64's cc and ICC support -MD to output dependencies as a
16281   # side effect of compilation, but ICC will put the dependencies in
16282   # the current directory while Tru64 will put them in the object
16283   # directory.
16284   mkdir sub
16286   am_cv_CC_dependencies_compiler_type=none
16287   if test "$am_compiler_list" = ""; then
16288      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16289   fi
16290   for depmode in $am_compiler_list; do
16291     # Setup a source with many dependencies, because some compilers
16292     # like to wrap large dependency lists on column 80 (with \), and
16293     # we should not choose a depcomp mode which is confused by this.
16294     #
16295     # We need to recreate these files for each test, as the compiler may
16296     # overwrite some of them when testing with obscure command lines.
16297     # This happens at least with the AIX C compiler.
16298     : > sub/conftest.c
16299     for i in 1 2 3 4 5 6; do
16300       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16301       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16302       # Solaris 8's {/usr,}/bin/sh.
16303       touch sub/conftst$i.h
16304     done
16305     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16307     case $depmode in
16308     nosideeffect)
16309       # after this tag, mechanisms are not by side-effect, so they'll
16310       # only be used when explicitly requested
16311       if test "x$enable_dependency_tracking" = xyes; then
16312         continue
16313       else
16314         break
16315       fi
16316       ;;
16317     none) break ;;
16318     esac
16319     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16320     # mode.  It turns out that the SunPro C++ compiler does not properly
16321     # handle `-M -o', and we need to detect this.
16322     if depmode=$depmode \
16323        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16324        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16325        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16326          >/dev/null 2>conftest.err &&
16327        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16328        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16329        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16330       # icc doesn't choke on unknown options, it will just issue warnings
16331       # or remarks (even with -Werror).  So we grep stderr for any message
16332       # that says an option was ignored or not supported.
16333       # When given -MP, icc 7.0 and 7.1 complain thusly:
16334       #   icc: Command line warning: ignoring option '-M'; no argument required
16335       # The diagnosis changed in icc 8.0:
16336       #   icc: Command line remark: option '-MP' not supported
16337       if (grep 'ignoring option' conftest.err ||
16338           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16339         am_cv_CC_dependencies_compiler_type=$depmode
16340         break
16341       fi
16342     fi
16343   done
16345   cd ..
16346   rm -rf conftest.dir
16347 else
16348   am_cv_CC_dependencies_compiler_type=none
16352 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
16353 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
16354 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16359   test "x$enable_dependency_tracking" != xno \
16360   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16361   am__fastdepCC_TRUE=
16362   am__fastdepCC_FALSE='#'
16363 else
16364   am__fastdepCC_TRUE='#'
16365   am__fastdepCC_FALSE=
16369 # Find a good install program.  We prefer a C program (faster),
16370 # so one script is as good as another.  But avoid the broken or
16371 # incompatible versions:
16372 # SysV /etc/install, /usr/sbin/install
16373 # SunOS /usr/etc/install
16374 # IRIX /sbin/install
16375 # AIX /bin/install
16376 # AmigaOS /C/install, which installs bootblocks on floppy discs
16377 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16378 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16379 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16380 # OS/2's system install, which has a completely different semantic
16381 # ./install, which can be erroneously created by make from ./install.sh.
16382 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16383 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
16384 if test -z "$INSTALL"; then
16385 if test "${ac_cv_path_install+set}" = set; then
16386   echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16389 for as_dir in $PATH
16391   IFS=$as_save_IFS
16392   test -z "$as_dir" && as_dir=.
16393   # Account for people who put trailing slashes in PATH elements.
16394 case $as_dir/ in
16395   ./ | .// | /cC/* | \
16396   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16397   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16398   /usr/ucb/* ) ;;
16399   *)
16400     # OSF1 and SCO ODT 3.0 have their own names for install.
16401     # Don't use installbsd from OSF since it installs stuff as root
16402     # by default.
16403     for ac_prog in ginstall scoinst install; do
16404       for ac_exec_ext in '' $ac_executable_extensions; do
16405         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16406           if test $ac_prog = install &&
16407             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16408             # AIX install.  It has an incompatible calling convention.
16409             :
16410           elif test $ac_prog = install &&
16411             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16412             # program-specific install script used by HP pwplus--don't use.
16413             :
16414           else
16415             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16416             break 3
16417           fi
16418         fi
16419       done
16420     done
16421     ;;
16422 esac
16423 done
16427   if test "${ac_cv_path_install+set}" = set; then
16428     INSTALL=$ac_cv_path_install
16429   else
16430     # As a last resort, use the slow shell script.  We don't cache a
16431     # path for INSTALL within a source directory, because that will
16432     # break other packages using the cache if that directory is
16433     # removed, or if the path is relative.
16434     INSTALL=$ac_install_sh
16435   fi
16437 echo "$as_me:$LINENO: result: $INSTALL" >&5
16438 echo "${ECHO_T}$INSTALL" >&6
16440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16441 # It thinks the first close brace ends the variable substitution.
16442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16449 # Checks for header files.
16450 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16451 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16452 if test "${ac_cv_header_stdc+set}" = set; then
16453   echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455   cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h.  */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h.  */
16461 #include <stdlib.h>
16462 #include <stdarg.h>
16463 #include <string.h>
16464 #include <float.h>
16466 int
16467 main ()
16470   ;
16471   return 0;
16473 _ACEOF
16474 rm -f conftest.$ac_objext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16476   (eval $ac_compile) 2>conftest.er1
16477   ac_status=$?
16478   grep -v '^ *+' conftest.er1 >conftest.err
16479   rm -f conftest.er1
16480   cat conftest.err >&5
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); } &&
16483          { ac_try='test -z "$ac_c_werror_flag"
16484                          || test ! -s conftest.err'
16485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486   (eval $ac_try) 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; } &&
16490          { ac_try='test -s conftest.$ac_objext'
16491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492   (eval $ac_try) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); }; }; then
16496   ac_cv_header_stdc=yes
16497 else
16498   echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 ac_cv_header_stdc=no
16503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16505 if test $ac_cv_header_stdc = yes; then
16506   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16507   cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h.  */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h.  */
16513 #include <string.h>
16515 _ACEOF
16516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16517   $EGREP "memchr" >/dev/null 2>&1; then
16518   :
16519 else
16520   ac_cv_header_stdc=no
16522 rm -f conftest*
16526 if test $ac_cv_header_stdc = yes; then
16527   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16528   cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h.  */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h.  */
16534 #include <stdlib.h>
16536 _ACEOF
16537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16538   $EGREP "free" >/dev/null 2>&1; then
16539   :
16540 else
16541   ac_cv_header_stdc=no
16543 rm -f conftest*
16547 if test $ac_cv_header_stdc = yes; then
16548   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16549   if test "$cross_compiling" = yes; then
16550   :
16551 else
16552   cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558 #include <ctype.h>
16559 #if ((' ' & 0x0FF) == 0x020)
16560 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16561 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16562 #else
16563 # define ISLOWER(c) \
16564                    (('a' <= (c) && (c) <= 'i') \
16565                      || ('j' <= (c) && (c) <= 'r') \
16566                      || ('s' <= (c) && (c) <= 'z'))
16567 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16568 #endif
16570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16571 int
16572 main ()
16574   int i;
16575   for (i = 0; i < 256; i++)
16576     if (XOR (islower (i), ISLOWER (i))
16577         || toupper (i) != TOUPPER (i))
16578       exit(2);
16579   exit (0);
16581 _ACEOF
16582 rm -f conftest$ac_exeext
16583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16584   (eval $ac_link) 2>&5
16585   ac_status=$?
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589   (eval $ac_try) 2>&5
16590   ac_status=$?
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); }; }; then
16593   :
16594 else
16595   echo "$as_me: program exited with status $ac_status" >&5
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 ( exit $ac_status )
16600 ac_cv_header_stdc=no
16602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16606 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16607 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16608 if test $ac_cv_header_stdc = yes; then
16610 cat >>confdefs.h <<\_ACEOF
16611 #define STDC_HEADERS 1
16612 _ACEOF
16623 for ac_header in fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h
16625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16627   echo "$as_me:$LINENO: checking for $ac_header" >&5
16628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16630   echo $ECHO_N "(cached) $ECHO_C" >&6
16632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16634 else
16635   # Is the header compilable?
16636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16638 cat >conftest.$ac_ext <<_ACEOF
16639 /* confdefs.h.  */
16640 _ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h.  */
16644 $ac_includes_default
16645 #include <$ac_header>
16646 _ACEOF
16647 rm -f conftest.$ac_objext
16648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16649   (eval $ac_compile) 2>conftest.er1
16650   ac_status=$?
16651   grep -v '^ *+' conftest.er1 >conftest.err
16652   rm -f conftest.er1
16653   cat conftest.err >&5
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); } &&
16656          { ac_try='test -z "$ac_c_werror_flag"
16657                          || test ! -s conftest.err'
16658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659   (eval $ac_try) 2>&5
16660   ac_status=$?
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); }; } &&
16663          { ac_try='test -s conftest.$ac_objext'
16664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665   (eval $ac_try) 2>&5
16666   ac_status=$?
16667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); }; }; then
16669   ac_header_compiler=yes
16670 else
16671   echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 ac_header_compiler=no
16676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16678 echo "${ECHO_T}$ac_header_compiler" >&6
16680 # Is the header present?
16681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h.  */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h.  */
16689 #include <$ac_header>
16690 _ACEOF
16691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16693   ac_status=$?
16694   grep -v '^ *+' conftest.er1 >conftest.err
16695   rm -f conftest.er1
16696   cat conftest.err >&5
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); } >/dev/null; then
16699   if test -s conftest.err; then
16700     ac_cpp_err=$ac_c_preproc_warn_flag
16701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16702   else
16703     ac_cpp_err=
16704   fi
16705 else
16706   ac_cpp_err=yes
16708 if test -z "$ac_cpp_err"; then
16709   ac_header_preproc=yes
16710 else
16711   echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16714   ac_header_preproc=no
16716 rm -f conftest.err conftest.$ac_ext
16717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16718 echo "${ECHO_T}$ac_header_preproc" >&6
16720 # So?  What about this header?
16721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16722   yes:no: )
16723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16727     ac_header_preproc=yes
16728     ;;
16729   no:yes:* )
16730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16742     (
16743       cat <<\_ASBOX
16744 ## --------------------------------- ##
16745 ## Report this to the TI IPC lists.  ##
16746 ## --------------------------------- ##
16747 _ASBOX
16748     ) |
16749       sed "s/^/$as_me: WARNING:     /" >&2
16750     ;;
16751 esac
16752 echo "$as_me:$LINENO: checking for $ac_header" >&5
16753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16755   echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757   eval "$as_ac_Header=\$ac_header_preproc"
16759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16764   cat >>confdefs.h <<_ACEOF
16765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16766 _ACEOF
16770 done
16773 # Export CFLAGS and LDFLAGS to Makefile(s)
16777 # Add config variables/options and check them
16778 # Note that 6614 isn't documented and, though it may work, is planned for removal
16784 # Test platform variable for setting
16785 if test "x$PLATFORM" = "xOMAPL138"; then
16786   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16787 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16788 else
16789   if test "x$PLATFORM" = "x66AK2E"; then
16790   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16791 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16792 else
16793   if test "x$PLATFORM" = "xTCI6614"; then
16794   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16795 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16796 else
16797   if test "x$PLATFORM" = "xTCI6630"; then
16798   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16799 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16800 else
16801   if test "x$PLATFORM" = "xTCI6636"; then
16802   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16803 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16804 else
16805   if test "x$PLATFORM" = "xTCI6638"; then
16806   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16807 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16808 else
16809   if test "x$PLATFORM" = "xOMAP54XX"; then
16810   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16811 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16812 else
16813   if test "x$PLATFORM" = "xDRA7XX"; then
16814   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16815 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16816 else
16817   if test "x$PLATFORM" = "x"; then
16818   { echo "$as_me:$LINENO: PLATFORM is not set. All supported platforms will be built ...." >&5
16819 echo "$as_me: PLATFORM is not set. All supported platforms will be built ...." >&6;}
16820 else
16821   { { echo "$as_me:$LINENO: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&5
16822 echo "$as_me: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&2;}
16823    { (exit 1); exit 1; }; }
16843 # Test for required KERNEL path
16844 if test "x$KERNEL_INSTALL_DIR" = "x"; then
16845   { { echo "$as_me:$LINENO: error: Kernel path for ${PLATFORM} is not set" >&5
16846 echo "$as_me: error: Kernel path for ${PLATFORM} is not set" >&2;}
16847    { (exit 1); exit 1; }; }
16851 # Ignore KERNEL path when no platform is set
16852 if test "x$PLATFORM" = "x"; then
16853   KERNEL_INSTALL_DIR=
16856 if test "x$PLATFORM" = "x"; then
16857   DRM_PREFIX=
16860 if test "x$PLATFORM" = "x"; then
16861   CMEM_INSTALL_DIR=
16865 # Export optional user variable to Makefile(s)
16871 # Define specific variables to be used in Makefile.am
16874 if test "x$PLATFORM" = "xOMAPL138"; then
16875   OMAPL138_TRUE=
16876   OMAPL138_FALSE='#'
16877 else
16878   OMAPL138_TRUE='#'
16879   OMAPL138_FALSE=
16884 if test "x$PLATFORM" = "x66AK2E"; then
16885   C66AK2E_TRUE=
16886   C66AK2E_FALSE='#'
16887 else
16888   C66AK2E_TRUE='#'
16889   C66AK2E_FALSE=
16894 if test "x$PLATFORM" = "xTCI6614"; then
16895   TCI6614_TRUE=
16896   TCI6614_FALSE='#'
16897 else
16898   TCI6614_TRUE='#'
16899   TCI6614_FALSE=
16904 if test "x$PLATFORM" = "xTCI6630"; then
16905   TCI6630_TRUE=
16906   TCI6630_FALSE='#'
16907 else
16908   TCI6630_TRUE='#'
16909   TCI6630_FALSE=
16914 if test "x$PLATFORM" = "xTCI6636"; then
16915   TCI6636_TRUE=
16916   TCI6636_FALSE='#'
16917 else
16918   TCI6636_TRUE='#'
16919   TCI6636_FALSE=
16924 if test "x$PLATFORM" = "xTCI6638"; then
16925   TCI6638_TRUE=
16926   TCI6638_FALSE='#'
16927 else
16928   TCI6638_TRUE='#'
16929   TCI6638_FALSE=
16934 if test "x$PLATFORM" = "xOMAP54XX"; then
16935   OMAP54XX_SMP_TRUE=
16936   OMAP54XX_SMP_FALSE='#'
16937 else
16938   OMAP54XX_SMP_TRUE='#'
16939   OMAP54XX_SMP_FALSE=
16944 if test "x$PLATFORM" = "xDRA7XX"; then
16945   DRA7XX_TRUE=
16946   DRA7XX_FALSE='#'
16947 else
16948   DRA7XX_TRUE='#'
16949   DRA7XX_FALSE=
16954 if test "x$CMEM_INSTALL_DIR" != "x"; then
16955   CMEM_TRUE=
16956   CMEM_FALSE='#'
16957 else
16958   CMEM_TRUE='#'
16959   CMEM_FALSE=
16964 if test "x$KERNEL_INSTALL_DIR" != "x"; then
16965   KDIR_TRUE=
16966   KDIR_FALSE='#'
16967 else
16968   KDIR_TRUE='#'
16969   KDIR_FALSE=
16974 if test "x$DRM_PREFIX" != "x"; then
16975   DRM_TRUE=
16976   DRM_FALSE='#'
16977 else
16978   DRM_TRUE='#'
16979   DRM_FALSE=
16983 # Generate Makefile(s)
16984           ac_config_files="$ac_config_files Makefile"
16986           ac_config_files="$ac_config_files linux/etc/Makefile"
16988           ac_config_files="$ac_config_files linux/src/utils/Makefile"
16990           ac_config_files="$ac_config_files linux/src/utils/libtiipcutils.pc"
16992           ac_config_files="$ac_config_files linux/src/api/Makefile"
16994           ac_config_files="$ac_config_files linux/src/api/libtiipc.pc"
16996           ac_config_files="$ac_config_files linux/src/mm/Makefile"
16998           ac_config_files="$ac_config_files linux/src/mm/libmmrpc.pc"
17000           ac_config_files="$ac_config_files linux/src/daemon/Makefile"
17002           ac_config_files="$ac_config_files linux/src/tests/Makefile"
17004 cat >confcache <<\_ACEOF
17005 # This file is a shell script that caches the results of configure
17006 # tests run on this system so they can be shared between configure
17007 # scripts and configure runs, see configure's option --config-cache.
17008 # It is not useful on other systems.  If it contains results you don't
17009 # want to keep, you may remove or edit it.
17011 # config.status only pays attention to the cache file if you give it
17012 # the --recheck option to rerun configure.
17014 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17015 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17016 # following values.
17018 _ACEOF
17020 # The following way of writing the cache mishandles newlines in values,
17021 # but we know of no workaround that is simple, portable, and efficient.
17022 # So, don't put newlines in cache variables' values.
17023 # Ultrix sh set writes to stderr and can't be redirected directly,
17024 # and sets the high bit in the cache file unless we assign to the vars.
17026   (set) 2>&1 |
17027     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17028     *ac_space=\ *)
17029       # `set' does not quote correctly, so add quotes (double-quote
17030       # substitution turns \\\\ into \\, and sed turns \\ into \).
17031       sed -n \
17032         "s/'/'\\\\''/g;
17033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17034       ;;
17035     *)
17036       # `set' quotes correctly as required by POSIX, so do not add quotes.
17037       sed -n \
17038         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17039       ;;
17040     esac;
17041 } |
17042   sed '
17043      t clear
17044      : clear
17045      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17046      t end
17047      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17048      : end' >>confcache
17049 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17050   if test -w $cache_file; then
17051     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17052     cat confcache >$cache_file
17053   else
17054     echo "not updating unwritable cache $cache_file"
17055   fi
17057 rm -f confcache
17059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17060 # Let make expand exec_prefix.
17061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17063 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17064 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17065 # trailing colons and then remove the whole line if VPATH becomes empty
17066 # (actually we leave an empty line to preserve line numbers).
17067 if test "x$srcdir" = x.; then
17068   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17069 s/:*\$(srcdir):*/:/;
17070 s/:*\${srcdir}:*/:/;
17071 s/:*@srcdir@:*/:/;
17072 s/^\([^=]*=[     ]*\):*/\1/;
17073 s/:*$//;
17074 s/^[^=]*=[       ]*$//;
17078 # Transform confdefs.h into DEFS.
17079 # Protect against shell expansion while executing Makefile rules.
17080 # Protect against Makefile macro expansion.
17082 # If the first sed substitution is executed (which looks for macros that
17083 # take arguments), then we branch to the quote section.  Otherwise,
17084 # look for a macro that doesn't take arguments.
17085 cat >confdef2opt.sed <<\_ACEOF
17086 t clear
17087 : clear
17088 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
17089 t quote
17090 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
17091 t quote
17093 : quote
17094 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
17095 s,\[,\\&,g
17096 s,\],\\&,g
17097 s,\$,$$,g
17099 _ACEOF
17100 # We use echo to avoid assuming a particular line-breaking character.
17101 # The extra dot is to prevent the shell from consuming trailing
17102 # line-breaks from the sub-command output.  A line-break within
17103 # single-quotes doesn't work because, if this script is created in a
17104 # platform that uses two characters for line-breaks (e.g., DOS), tr
17105 # would break.
17106 ac_LF_and_DOT=`echo; echo .`
17107 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
17108 rm -f confdef2opt.sed
17111 ac_libobjs=
17112 ac_ltlibobjs=
17113 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17114   # 1. Remove the extension, and $U if already installed.
17115   ac_i=`echo "$ac_i" |
17116          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17117   # 2. Add them.
17118   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17119   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17120 done
17121 LIBOBJS=$ac_libobjs
17123 LTLIBOBJS=$ac_ltlibobjs
17126 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17127   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17128 Usually this means the macro was only invoked conditionally." >&5
17129 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17130 Usually this means the macro was only invoked conditionally." >&2;}
17131    { (exit 1); exit 1; }; }
17133 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17134   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17135 Usually this means the macro was only invoked conditionally." >&5
17136 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17137 Usually this means the macro was only invoked conditionally." >&2;}
17138    { (exit 1); exit 1; }; }
17140 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17141   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17142 Usually this means the macro was only invoked conditionally." >&5
17143 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17144 Usually this means the macro was only invoked conditionally." >&2;}
17145    { (exit 1); exit 1; }; }
17147 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17148   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17149 Usually this means the macro was only invoked conditionally." >&5
17150 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17151 Usually this means the macro was only invoked conditionally." >&2;}
17152    { (exit 1); exit 1; }; }
17154 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17155   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17156 Usually this means the macro was only invoked conditionally." >&5
17157 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17158 Usually this means the macro was only invoked conditionally." >&2;}
17159    { (exit 1); exit 1; }; }
17161 if test -z "${OMAPL138_TRUE}" && test -z "${OMAPL138_FALSE}"; then
17162   { { echo "$as_me:$LINENO: error: conditional \"OMAPL138\" was never defined.
17163 Usually this means the macro was only invoked conditionally." >&5
17164 echo "$as_me: error: conditional \"OMAPL138\" was never defined.
17165 Usually this means the macro was only invoked conditionally." >&2;}
17166    { (exit 1); exit 1; }; }
17168 if test -z "${C66AK2E_TRUE}" && test -z "${C66AK2E_FALSE}"; then
17169   { { echo "$as_me:$LINENO: error: conditional \"C66AK2E\" was never defined.
17170 Usually this means the macro was only invoked conditionally." >&5
17171 echo "$as_me: error: conditional \"C66AK2E\" was never defined.
17172 Usually this means the macro was only invoked conditionally." >&2;}
17173    { (exit 1); exit 1; }; }
17175 if test -z "${TCI6614_TRUE}" && test -z "${TCI6614_FALSE}"; then
17176   { { echo "$as_me:$LINENO: error: conditional \"TCI6614\" was never defined.
17177 Usually this means the macro was only invoked conditionally." >&5
17178 echo "$as_me: error: conditional \"TCI6614\" was never defined.
17179 Usually this means the macro was only invoked conditionally." >&2;}
17180    { (exit 1); exit 1; }; }
17182 if test -z "${TCI6630_TRUE}" && test -z "${TCI6630_FALSE}"; then
17183   { { echo "$as_me:$LINENO: error: conditional \"TCI6630\" was never defined.
17184 Usually this means the macro was only invoked conditionally." >&5
17185 echo "$as_me: error: conditional \"TCI6630\" was never defined.
17186 Usually this means the macro was only invoked conditionally." >&2;}
17187    { (exit 1); exit 1; }; }
17189 if test -z "${TCI6636_TRUE}" && test -z "${TCI6636_FALSE}"; then
17190   { { echo "$as_me:$LINENO: error: conditional \"TCI6636\" was never defined.
17191 Usually this means the macro was only invoked conditionally." >&5
17192 echo "$as_me: error: conditional \"TCI6636\" was never defined.
17193 Usually this means the macro was only invoked conditionally." >&2;}
17194    { (exit 1); exit 1; }; }
17196 if test -z "${TCI6638_TRUE}" && test -z "${TCI6638_FALSE}"; then
17197   { { echo "$as_me:$LINENO: error: conditional \"TCI6638\" was never defined.
17198 Usually this means the macro was only invoked conditionally." >&5
17199 echo "$as_me: error: conditional \"TCI6638\" was never defined.
17200 Usually this means the macro was only invoked conditionally." >&2;}
17201    { (exit 1); exit 1; }; }
17203 if test -z "${OMAP54XX_SMP_TRUE}" && test -z "${OMAP54XX_SMP_FALSE}"; then
17204   { { echo "$as_me:$LINENO: error: conditional \"OMAP54XX_SMP\" was never defined.
17205 Usually this means the macro was only invoked conditionally." >&5
17206 echo "$as_me: error: conditional \"OMAP54XX_SMP\" was never defined.
17207 Usually this means the macro was only invoked conditionally." >&2;}
17208    { (exit 1); exit 1; }; }
17210 if test -z "${DRA7XX_TRUE}" && test -z "${DRA7XX_FALSE}"; then
17211   { { echo "$as_me:$LINENO: error: conditional \"DRA7XX\" was never defined.
17212 Usually this means the macro was only invoked conditionally." >&5
17213 echo "$as_me: error: conditional \"DRA7XX\" was never defined.
17214 Usually this means the macro was only invoked conditionally." >&2;}
17215    { (exit 1); exit 1; }; }
17217 if test -z "${CMEM_TRUE}" && test -z "${CMEM_FALSE}"; then
17218   { { echo "$as_me:$LINENO: error: conditional \"CMEM\" was never defined.
17219 Usually this means the macro was only invoked conditionally." >&5
17220 echo "$as_me: error: conditional \"CMEM\" was never defined.
17221 Usually this means the macro was only invoked conditionally." >&2;}
17222    { (exit 1); exit 1; }; }
17224 if test -z "${KDIR_TRUE}" && test -z "${KDIR_FALSE}"; then
17225   { { echo "$as_me:$LINENO: error: conditional \"KDIR\" was never defined.
17226 Usually this means the macro was only invoked conditionally." >&5
17227 echo "$as_me: error: conditional \"KDIR\" was never defined.
17228 Usually this means the macro was only invoked conditionally." >&2;}
17229    { (exit 1); exit 1; }; }
17231 if test -z "${DRM_TRUE}" && test -z "${DRM_FALSE}"; then
17232   { { echo "$as_me:$LINENO: error: conditional \"DRM\" was never defined.
17233 Usually this means the macro was only invoked conditionally." >&5
17234 echo "$as_me: error: conditional \"DRM\" was never defined.
17235 Usually this means the macro was only invoked conditionally." >&2;}
17236    { (exit 1); exit 1; }; }
17239 : ${CONFIG_STATUS=./config.status}
17240 ac_clean_files_save=$ac_clean_files
17241 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17242 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17243 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17244 cat >$CONFIG_STATUS <<_ACEOF
17245 #! $SHELL
17246 # Generated by $as_me.
17247 # Run this file to recreate the current configuration.
17248 # Compiler output produced by configure, useful for debugging
17249 # configure, is in config.log if it exists.
17251 debug=false
17252 ac_cs_recheck=false
17253 ac_cs_silent=false
17254 SHELL=\${CONFIG_SHELL-$SHELL}
17255 _ACEOF
17257 cat >>$CONFIG_STATUS <<\_ACEOF
17258 ## --------------------- ##
17259 ## M4sh Initialization.  ##
17260 ## --------------------- ##
17262 # Be Bourne compatible
17263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17264   emulate sh
17265   NULLCMD=:
17266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17267   # is contrary to our usage.  Disable this feature.
17268   alias -g '${1+"$@"}'='"$@"'
17269 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17270   set -o posix
17272 DUALCASE=1; export DUALCASE # for MKS sh
17274 # Support unset when possible.
17275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17276   as_unset=unset
17277 else
17278   as_unset=false
17282 # Work around bugs in pre-3.0 UWIN ksh.
17283 $as_unset ENV MAIL MAILPATH
17284 PS1='$ '
17285 PS2='> '
17286 PS4='+ '
17288 # NLS nuisances.
17289 for as_var in \
17290   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17291   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17292   LC_TELEPHONE LC_TIME
17294   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17295     eval $as_var=C; export $as_var
17296   else
17297     $as_unset $as_var
17298   fi
17299 done
17301 # Required to use basename.
17302 if expr a : '\(a\)' >/dev/null 2>&1; then
17303   as_expr=expr
17304 else
17305   as_expr=false
17308 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17309   as_basename=basename
17310 else
17311   as_basename=false
17315 # Name of the executable.
17316 as_me=`$as_basename "$0" ||
17317 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17318          X"$0" : 'X\(//\)$' \| \
17319          X"$0" : 'X\(/\)$' \| \
17320          .     : '\(.\)' 2>/dev/null ||
17321 echo X/"$0" |
17322     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17323           /^X\/\(\/\/\)$/{ s//\1/; q; }
17324           /^X\/\(\/\).*/{ s//\1/; q; }
17325           s/.*/./; q'`
17328 # PATH needs CR, and LINENO needs CR and PATH.
17329 # Avoid depending upon Character Ranges.
17330 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17331 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17332 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17333 as_cr_digits='0123456789'
17334 as_cr_alnum=$as_cr_Letters$as_cr_digits
17336 # The user is always right.
17337 if test "${PATH_SEPARATOR+set}" != set; then
17338   echo "#! /bin/sh" >conf$$.sh
17339   echo  "exit 0"   >>conf$$.sh
17340   chmod +x conf$$.sh
17341   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17342     PATH_SEPARATOR=';'
17343   else
17344     PATH_SEPARATOR=:
17345   fi
17346   rm -f conf$$.sh
17350   as_lineno_1=$LINENO
17351   as_lineno_2=$LINENO
17352   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17353   test "x$as_lineno_1" != "x$as_lineno_2" &&
17354   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17355   # Find who we are.  Look in the path if we contain no path at all
17356   # relative or not.
17357   case $0 in
17358     *[\\/]* ) as_myself=$0 ;;
17359     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17360 for as_dir in $PATH
17362   IFS=$as_save_IFS
17363   test -z "$as_dir" && as_dir=.
17364   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17365 done
17367        ;;
17368   esac
17369   # We did not find ourselves, most probably we were run as `sh COMMAND'
17370   # in which case we are not to be found in the path.
17371   if test "x$as_myself" = x; then
17372     as_myself=$0
17373   fi
17374   if test ! -f "$as_myself"; then
17375     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17376 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17377    { (exit 1); exit 1; }; }
17378   fi
17379   case $CONFIG_SHELL in
17380   '')
17381     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17382 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17384   IFS=$as_save_IFS
17385   test -z "$as_dir" && as_dir=.
17386   for as_base in sh bash ksh sh5; do
17387          case $as_dir in
17388          /*)
17389            if ("$as_dir/$as_base" -c '
17390   as_lineno_1=$LINENO
17391   as_lineno_2=$LINENO
17392   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17393   test "x$as_lineno_1" != "x$as_lineno_2" &&
17394   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17395              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17396              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17397              CONFIG_SHELL=$as_dir/$as_base
17398              export CONFIG_SHELL
17399              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17400            fi;;
17401          esac
17402        done
17403 done
17405   esac
17407   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17408   # uniformly replaced by the line number.  The first 'sed' inserts a
17409   # line-number line before each line; the second 'sed' does the real
17410   # work.  The second script uses 'N' to pair each line-number line
17411   # with the numbered line, and appends trailing '-' during
17412   # substitution so that $LINENO is not a special case at line end.
17413   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17414   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17415   sed '=' <$as_myself |
17416     sed '
17417       N
17418       s,$,-,
17419       : loop
17420       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17421       t loop
17422       s,-$,,
17423       s,^['$as_cr_digits']*\n,,
17424     ' >$as_me.lineno &&
17425   chmod +x $as_me.lineno ||
17426     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17427 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17428    { (exit 1); exit 1; }; }
17430   # Don't try to exec as it changes $[0], causing all sort of problems
17431   # (the dirname of $[0] is not the place where we might find the
17432   # original and so on.  Autoconf is especially sensible to this).
17433   . ./$as_me.lineno
17434   # Exit status is that of the last command.
17435   exit
17439 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17440   *c*,-n*) ECHO_N= ECHO_C='
17441 ' ECHO_T='      ' ;;
17442   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17443   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17444 esac
17446 if expr a : '\(a\)' >/dev/null 2>&1; then
17447   as_expr=expr
17448 else
17449   as_expr=false
17452 rm -f conf$$ conf$$.exe conf$$.file
17453 echo >conf$$.file
17454 if ln -s conf$$.file conf$$ 2>/dev/null; then
17455   # We could just check for DJGPP; but this test a) works b) is more generic
17456   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17457   if test -f conf$$.exe; then
17458     # Don't use ln at all; we don't have any links
17459     as_ln_s='cp -p'
17460   else
17461     as_ln_s='ln -s'
17462   fi
17463 elif ln conf$$.file conf$$ 2>/dev/null; then
17464   as_ln_s=ln
17465 else
17466   as_ln_s='cp -p'
17468 rm -f conf$$ conf$$.exe conf$$.file
17470 if mkdir -p . 2>/dev/null; then
17471   as_mkdir_p=:
17472 else
17473   test -d ./-p && rmdir ./-p
17474   as_mkdir_p=false
17477 as_executable_p="test -f"
17479 # Sed expression to map a string onto a valid CPP name.
17480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17482 # Sed expression to map a string onto a valid variable name.
17483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17486 # IFS
17487 # We need space, tab and new line, in precisely that order.
17488 as_nl='
17490 IFS="   $as_nl"
17492 # CDPATH.
17493 $as_unset CDPATH
17495 exec 6>&1
17497 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17498 # report actual input values of CONFIG_FILES etc. instead of their
17499 # values after options handling.  Logging --version etc. is OK.
17500 exec 5>>config.log
17502   echo
17503   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17504 ## Running $as_me. ##
17505 _ASBOX
17506 } >&5
17507 cat >&5 <<_CSEOF
17509 This file was extended by TI IPC $as_me 3.0.0, which was
17510 generated by GNU Autoconf 2.59.  Invocation command line was
17512   CONFIG_FILES    = $CONFIG_FILES
17513   CONFIG_HEADERS  = $CONFIG_HEADERS
17514   CONFIG_LINKS    = $CONFIG_LINKS
17515   CONFIG_COMMANDS = $CONFIG_COMMANDS
17516   $ $0 $@
17518 _CSEOF
17519 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17520 echo >&5
17521 _ACEOF
17523 # Files that config.status was made for.
17524 if test -n "$ac_config_files"; then
17525   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17528 if test -n "$ac_config_headers"; then
17529   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17532 if test -n "$ac_config_links"; then
17533   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17536 if test -n "$ac_config_commands"; then
17537   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17540 cat >>$CONFIG_STATUS <<\_ACEOF
17542 ac_cs_usage="\
17543 \`$as_me' instantiates files from templates according to the
17544 current configuration.
17546 Usage: $0 [OPTIONS] [FILE]...
17548   -h, --help       print this help, then exit
17549   -V, --version    print version number, then exit
17550   -q, --quiet      do not print progress messages
17551   -d, --debug      don't remove temporary files
17552       --recheck    update $as_me by reconfiguring in the same conditions
17553   --file=FILE[:TEMPLATE]
17554                    instantiate the configuration file FILE
17556 Configuration files:
17557 $config_files
17559 Configuration commands:
17560 $config_commands
17562 Report bugs to <bug-autoconf@gnu.org>."
17563 _ACEOF
17565 cat >>$CONFIG_STATUS <<_ACEOF
17566 ac_cs_version="\\
17567 TI IPC config.status 3.0.0
17568 configured by $0, generated by GNU Autoconf 2.59,
17569   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17571 Copyright (C) 2003 Free Software Foundation, Inc.
17572 This config.status script is free software; the Free Software Foundation
17573 gives unlimited permission to copy, distribute and modify it."
17574 srcdir=$srcdir
17575 INSTALL="$INSTALL"
17576 _ACEOF
17578 cat >>$CONFIG_STATUS <<\_ACEOF
17579 # If no file are specified by the user, then we need to provide default
17580 # value.  By we need to know if files were specified by the user.
17581 ac_need_defaults=:
17582 while test $# != 0
17584   case $1 in
17585   --*=*)
17586     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17587     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17588     ac_shift=:
17589     ;;
17590   -*)
17591     ac_option=$1
17592     ac_optarg=$2
17593     ac_shift=shift
17594     ;;
17595   *) # This is not an option, so the user has probably given explicit
17596      # arguments.
17597      ac_option=$1
17598      ac_need_defaults=false;;
17599   esac
17601   case $ac_option in
17602   # Handling of the options.
17603 _ACEOF
17604 cat >>$CONFIG_STATUS <<\_ACEOF
17605   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17606     ac_cs_recheck=: ;;
17607   --version | --vers* | -V )
17608     echo "$ac_cs_version"; exit 0 ;;
17609   --he | --h)
17610     # Conflict between --help and --header
17611     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17612 Try \`$0 --help' for more information." >&5
17613 echo "$as_me: error: ambiguous option: $1
17614 Try \`$0 --help' for more information." >&2;}
17615    { (exit 1); exit 1; }; };;
17616   --help | --hel | -h )
17617     echo "$ac_cs_usage"; exit 0 ;;
17618   --debug | --d* | -d )
17619     debug=: ;;
17620   --file | --fil | --fi | --f )
17621     $ac_shift
17622     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17623     ac_need_defaults=false;;
17624   --header | --heade | --head | --hea )
17625     $ac_shift
17626     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17627     ac_need_defaults=false;;
17628   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17629   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17630     ac_cs_silent=: ;;
17632   # This is an error.
17633   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17634 Try \`$0 --help' for more information." >&5
17635 echo "$as_me: error: unrecognized option: $1
17636 Try \`$0 --help' for more information." >&2;}
17637    { (exit 1); exit 1; }; } ;;
17639   *) ac_config_targets="$ac_config_targets $1" ;;
17641   esac
17642   shift
17643 done
17645 ac_configure_extra_args=
17647 if $ac_cs_silent; then
17648   exec 6>/dev/null
17649   ac_configure_extra_args="$ac_configure_extra_args --silent"
17652 _ACEOF
17653 cat >>$CONFIG_STATUS <<_ACEOF
17654 if \$ac_cs_recheck; then
17655   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17656   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17659 _ACEOF
17661 cat >>$CONFIG_STATUS <<_ACEOF
17663 # INIT-COMMANDS section.
17666 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17668 _ACEOF
17672 cat >>$CONFIG_STATUS <<\_ACEOF
17673 for ac_config_target in $ac_config_targets
17675   case "$ac_config_target" in
17676   # Handling of arguments.
17677   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17678   "linux/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/etc/Makefile" ;;
17679   "linux/src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/utils/Makefile" ;;
17680   "linux/src/utils/libtiipcutils.pc" ) CONFIG_FILES="$CONFIG_FILES linux/src/utils/libtiipcutils.pc" ;;
17681   "linux/src/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/api/Makefile" ;;
17682   "linux/src/api/libtiipc.pc" ) CONFIG_FILES="$CONFIG_FILES linux/src/api/libtiipc.pc" ;;
17683   "linux/src/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/mm/Makefile" ;;
17684   "linux/src/mm/libmmrpc.pc" ) CONFIG_FILES="$CONFIG_FILES linux/src/mm/libmmrpc.pc" ;;
17685   "linux/src/daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/daemon/Makefile" ;;
17686   "linux/src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/tests/Makefile" ;;
17687   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17688   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17689 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17690    { (exit 1); exit 1; }; };;
17691   esac
17692 done
17694 # If the user did not use the arguments to specify the items to instantiate,
17695 # then the envvar interface is used.  Set only those that are not.
17696 # We use the long form for the default assignment because of an extremely
17697 # bizarre bug on SunOS 4.1.3.
17698 if $ac_need_defaults; then
17699   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17700   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17703 # Have a temporary directory for convenience.  Make it in the build tree
17704 # simply because there is no reason to put it here, and in addition,
17705 # creating and moving files from /tmp can sometimes cause problems.
17706 # Create a temporary directory, and hook for its removal unless debugging.
17707 $debug ||
17709   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17710   trap '{ (exit 1); exit 1; }' 1 2 13 15
17713 # Create a (secure) tmp directory for tmp files.
17716   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17717   test -n "$tmp" && test -d "$tmp"
17718 }  ||
17720   tmp=./confstat$$-$RANDOM
17721   (umask 077 && mkdir $tmp)
17722 } ||
17724    echo "$me: cannot create a temporary directory in ." >&2
17725    { (exit 1); exit 1; }
17728 _ACEOF
17730 cat >>$CONFIG_STATUS <<_ACEOF
17733 # CONFIG_FILES section.
17736 # No need to generate the scripts if there are no CONFIG_FILES.
17737 # This happens for instance when ./config.status config.h
17738 if test -n "\$CONFIG_FILES"; then
17739   # Protect against being on the right side of a sed subst in config.status.
17740   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17741    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17742 s,@SHELL@,$SHELL,;t t
17743 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17744 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17745 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17746 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17747 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17748 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17749 s,@exec_prefix@,$exec_prefix,;t t
17750 s,@prefix@,$prefix,;t t
17751 s,@program_transform_name@,$program_transform_name,;t t
17752 s,@bindir@,$bindir,;t t
17753 s,@sbindir@,$sbindir,;t t
17754 s,@libexecdir@,$libexecdir,;t t
17755 s,@datadir@,$datadir,;t t
17756 s,@sysconfdir@,$sysconfdir,;t t
17757 s,@sharedstatedir@,$sharedstatedir,;t t
17758 s,@localstatedir@,$localstatedir,;t t
17759 s,@libdir@,$libdir,;t t
17760 s,@includedir@,$includedir,;t t
17761 s,@oldincludedir@,$oldincludedir,;t t
17762 s,@infodir@,$infodir,;t t
17763 s,@mandir@,$mandir,;t t
17764 s,@build_alias@,$build_alias,;t t
17765 s,@host_alias@,$host_alias,;t t
17766 s,@target_alias@,$target_alias,;t t
17767 s,@DEFS@,$DEFS,;t t
17768 s,@ECHO_C@,$ECHO_C,;t t
17769 s,@ECHO_N@,$ECHO_N,;t t
17770 s,@ECHO_T@,$ECHO_T,;t t
17771 s,@LIBS@,$LIBS,;t t
17772 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17773 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17774 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17775 s,@CYGPATH_W@,$CYGPATH_W,;t t
17776 s,@PACKAGE@,$PACKAGE,;t t
17777 s,@VERSION@,$VERSION,;t t
17778 s,@ACLOCAL@,$ACLOCAL,;t t
17779 s,@AUTOCONF@,$AUTOCONF,;t t
17780 s,@AUTOMAKE@,$AUTOMAKE,;t t
17781 s,@AUTOHEADER@,$AUTOHEADER,;t t
17782 s,@MAKEINFO@,$MAKEINFO,;t t
17783 s,@install_sh@,$install_sh,;t t
17784 s,@STRIP@,$STRIP,;t t
17785 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17786 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17787 s,@mkdir_p@,$mkdir_p,;t t
17788 s,@AWK@,$AWK,;t t
17789 s,@SET_MAKE@,$SET_MAKE,;t t
17790 s,@am__leading_dot@,$am__leading_dot,;t t
17791 s,@AMTAR@,$AMTAR,;t t
17792 s,@am__tar@,$am__tar,;t t
17793 s,@am__untar@,$am__untar,;t t
17794 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17795 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17796 s,@MAINT@,$MAINT,;t t
17797 s,@build@,$build,;t t
17798 s,@build_cpu@,$build_cpu,;t t
17799 s,@build_vendor@,$build_vendor,;t t
17800 s,@build_os@,$build_os,;t t
17801 s,@host@,$host,;t t
17802 s,@host_cpu@,$host_cpu,;t t
17803 s,@host_vendor@,$host_vendor,;t t
17804 s,@host_os@,$host_os,;t t
17805 s,@CC@,$CC,;t t
17806 s,@CFLAGS@,$CFLAGS,;t t
17807 s,@LDFLAGS@,$LDFLAGS,;t t
17808 s,@CPPFLAGS@,$CPPFLAGS,;t t
17809 s,@ac_ct_CC@,$ac_ct_CC,;t t
17810 s,@EXEEXT@,$EXEEXT,;t t
17811 s,@OBJEXT@,$OBJEXT,;t t
17812 s,@DEPDIR@,$DEPDIR,;t t
17813 s,@am__include@,$am__include,;t t
17814 s,@am__quote@,$am__quote,;t t
17815 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17816 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17817 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17818 s,@CCDEPMODE@,$CCDEPMODE,;t t
17819 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17820 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17821 s,@EGREP@,$EGREP,;t t
17822 s,@LN_S@,$LN_S,;t t
17823 s,@ECHO@,$ECHO,;t t
17824 s,@AR@,$AR,;t t
17825 s,@ac_ct_AR@,$ac_ct_AR,;t t
17826 s,@RANLIB@,$RANLIB,;t t
17827 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17828 s,@CPP@,$CPP,;t t
17829 s,@CXX@,$CXX,;t t
17830 s,@CXXFLAGS@,$CXXFLAGS,;t t
17831 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17832 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17833 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17834 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17835 s,@CXXCPP@,$CXXCPP,;t t
17836 s,@LIBTOOL@,$LIBTOOL,;t t
17837 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
17838 s,@AM_LDFLAGS@,$AM_LDFLAGS,;t t
17839 s,@PLATFORM@,$PLATFORM,;t t
17840 s,@CMEM_INSTALL_DIR@,$CMEM_INSTALL_DIR,;t t
17841 s,@KERNEL_INSTALL_DIR@,$KERNEL_INSTALL_DIR,;t t
17842 s,@DRM_PREFIX@,$DRM_PREFIX,;t t
17843 s,@OMAPL138_TRUE@,$OMAPL138_TRUE,;t t
17844 s,@OMAPL138_FALSE@,$OMAPL138_FALSE,;t t
17845 s,@C66AK2E_TRUE@,$C66AK2E_TRUE,;t t
17846 s,@C66AK2E_FALSE@,$C66AK2E_FALSE,;t t
17847 s,@TCI6614_TRUE@,$TCI6614_TRUE,;t t
17848 s,@TCI6614_FALSE@,$TCI6614_FALSE,;t t
17849 s,@TCI6630_TRUE@,$TCI6630_TRUE,;t t
17850 s,@TCI6630_FALSE@,$TCI6630_FALSE,;t t
17851 s,@TCI6636_TRUE@,$TCI6636_TRUE,;t t
17852 s,@TCI6636_FALSE@,$TCI6636_FALSE,;t t
17853 s,@TCI6638_TRUE@,$TCI6638_TRUE,;t t
17854 s,@TCI6638_FALSE@,$TCI6638_FALSE,;t t
17855 s,@OMAP54XX_SMP_TRUE@,$OMAP54XX_SMP_TRUE,;t t
17856 s,@OMAP54XX_SMP_FALSE@,$OMAP54XX_SMP_FALSE,;t t
17857 s,@DRA7XX_TRUE@,$DRA7XX_TRUE,;t t
17858 s,@DRA7XX_FALSE@,$DRA7XX_FALSE,;t t
17859 s,@CMEM_TRUE@,$CMEM_TRUE,;t t
17860 s,@CMEM_FALSE@,$CMEM_FALSE,;t t
17861 s,@KDIR_TRUE@,$KDIR_TRUE,;t t
17862 s,@KDIR_FALSE@,$KDIR_FALSE,;t t
17863 s,@DRM_TRUE@,$DRM_TRUE,;t t
17864 s,@DRM_FALSE@,$DRM_FALSE,;t t
17865 s,@LIBOBJS@,$LIBOBJS,;t t
17866 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17867 CEOF
17869 _ACEOF
17871   cat >>$CONFIG_STATUS <<\_ACEOF
17872   # Split the substitutions into bite-sized pieces for seds with
17873   # small command number limits, like on Digital OSF/1 and HP-UX.
17874   ac_max_sed_lines=48
17875   ac_sed_frag=1 # Number of current file.
17876   ac_beg=1 # First line for current file.
17877   ac_end=$ac_max_sed_lines # Line after last line for current file.
17878   ac_more_lines=:
17879   ac_sed_cmds=
17880   while $ac_more_lines; do
17881     if test $ac_beg -gt 1; then
17882       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17883     else
17884       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17885     fi
17886     if test ! -s $tmp/subs.frag; then
17887       ac_more_lines=false
17888     else
17889       # The purpose of the label and of the branching condition is to
17890       # speed up the sed processing (if there are no `@' at all, there
17891       # is no need to browse any of the substitutions).
17892       # These are the two extra sed commands mentioned above.
17893       (echo ':t
17894   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17895       if test -z "$ac_sed_cmds"; then
17896         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17897       else
17898         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17899       fi
17900       ac_sed_frag=`expr $ac_sed_frag + 1`
17901       ac_beg=$ac_end
17902       ac_end=`expr $ac_end + $ac_max_sed_lines`
17903     fi
17904   done
17905   if test -z "$ac_sed_cmds"; then
17906     ac_sed_cmds=cat
17907   fi
17908 fi # test -n "$CONFIG_FILES"
17910 _ACEOF
17911 cat >>$CONFIG_STATUS <<\_ACEOF
17912 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17913   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17914   case $ac_file in
17915   - | *:- | *:-:* ) # input from stdin
17916         cat >$tmp/stdin
17917         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17918         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17919   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17920         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17921   * )   ac_file_in=$ac_file.in ;;
17922   esac
17924   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17925   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17927          X"$ac_file" : 'X\(//\)[^/]' \| \
17928          X"$ac_file" : 'X\(//\)$' \| \
17929          X"$ac_file" : 'X\(/\)' \| \
17930          .     : '\(.\)' 2>/dev/null ||
17931 echo X"$ac_file" |
17932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17933           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17934           /^X\(\/\/\)$/{ s//\1/; q; }
17935           /^X\(\/\).*/{ s//\1/; q; }
17936           s/.*/./; q'`
17937   { if $as_mkdir_p; then
17938     mkdir -p "$ac_dir"
17939   else
17940     as_dir="$ac_dir"
17941     as_dirs=
17942     while test ! -d "$as_dir"; do
17943       as_dirs="$as_dir $as_dirs"
17944       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17946          X"$as_dir" : 'X\(//\)[^/]' \| \
17947          X"$as_dir" : 'X\(//\)$' \| \
17948          X"$as_dir" : 'X\(/\)' \| \
17949          .     : '\(.\)' 2>/dev/null ||
17950 echo X"$as_dir" |
17951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17952           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17953           /^X\(\/\/\)$/{ s//\1/; q; }
17954           /^X\(\/\).*/{ s//\1/; q; }
17955           s/.*/./; q'`
17956     done
17957     test ! -n "$as_dirs" || mkdir $as_dirs
17958   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17959 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17960    { (exit 1); exit 1; }; }; }
17962   ac_builddir=.
17964 if test "$ac_dir" != .; then
17965   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17966   # A "../" for each directory in $ac_dir_suffix.
17967   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17968 else
17969   ac_dir_suffix= ac_top_builddir=
17972 case $srcdir in
17973   .)  # No --srcdir option.  We are building in place.
17974     ac_srcdir=.
17975     if test -z "$ac_top_builddir"; then
17976        ac_top_srcdir=.
17977     else
17978        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17979     fi ;;
17980   [\\/]* | ?:[\\/]* )  # Absolute path.
17981     ac_srcdir=$srcdir$ac_dir_suffix;
17982     ac_top_srcdir=$srcdir ;;
17983   *) # Relative path.
17984     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17985     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17986 esac
17988 # Do not use `cd foo && pwd` to compute absolute paths, because
17989 # the directories may not exist.
17990 case `pwd` in
17991 .) ac_abs_builddir="$ac_dir";;
17993   case "$ac_dir" in
17994   .) ac_abs_builddir=`pwd`;;
17995   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17996   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17997   esac;;
17998 esac
17999 case $ac_abs_builddir in
18000 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18002   case ${ac_top_builddir}. in
18003   .) ac_abs_top_builddir=$ac_abs_builddir;;
18004   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18005   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18006   esac;;
18007 esac
18008 case $ac_abs_builddir in
18009 .) ac_abs_srcdir=$ac_srcdir;;
18011   case $ac_srcdir in
18012   .) ac_abs_srcdir=$ac_abs_builddir;;
18013   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18014   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18015   esac;;
18016 esac
18017 case $ac_abs_builddir in
18018 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18020   case $ac_top_srcdir in
18021   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18022   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18023   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18024   esac;;
18025 esac
18028   case $INSTALL in
18029   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18030   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18031   esac
18033   if test x"$ac_file" != x-; then
18034     { echo "$as_me:$LINENO: creating $ac_file" >&5
18035 echo "$as_me: creating $ac_file" >&6;}
18036     rm -f "$ac_file"
18037   fi
18038   # Let's still pretend it is `configure' which instantiates (i.e., don't
18039   # use $as_me), people would be surprised to read:
18040   #    /* config.h.  Generated by config.status.  */
18041   if test x"$ac_file" = x-; then
18042     configure_input=
18043   else
18044     configure_input="$ac_file.  "
18045   fi
18046   configure_input=$configure_input"Generated from `echo $ac_file_in |
18047                                      sed 's,.*/,,'` by configure."
18049   # First look for the input files in the build tree, otherwise in the
18050   # src tree.
18051   ac_file_inputs=`IFS=:
18052     for f in $ac_file_in; do
18053       case $f in
18054       -) echo $tmp/stdin ;;
18055       [\\/$]*)
18056          # Absolute (can't be DOS-style, as IFS=:)
18057          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18058 echo "$as_me: error: cannot find input file: $f" >&2;}
18059    { (exit 1); exit 1; }; }
18060          echo "$f";;
18061       *) # Relative
18062          if test -f "$f"; then
18063            # Build tree
18064            echo "$f"
18065          elif test -f "$srcdir/$f"; then
18066            # Source tree
18067            echo "$srcdir/$f"
18068          else
18069            # /dev/null tree
18070            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18071 echo "$as_me: error: cannot find input file: $f" >&2;}
18072    { (exit 1); exit 1; }; }
18073          fi;;
18074       esac
18075     done` || { (exit 1); exit 1; }
18076 _ACEOF
18077 cat >>$CONFIG_STATUS <<_ACEOF
18078   sed "$ac_vpsub
18079 $extrasub
18080 _ACEOF
18081 cat >>$CONFIG_STATUS <<\_ACEOF
18083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18084 s,@configure_input@,$configure_input,;t t
18085 s,@srcdir@,$ac_srcdir,;t t
18086 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18087 s,@top_srcdir@,$ac_top_srcdir,;t t
18088 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18089 s,@builddir@,$ac_builddir,;t t
18090 s,@abs_builddir@,$ac_abs_builddir,;t t
18091 s,@top_builddir@,$ac_top_builddir,;t t
18092 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18093 s,@INSTALL@,$ac_INSTALL,;t t
18094 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18095   rm -f $tmp/stdin
18096   if test x"$ac_file" != x-; then
18097     mv $tmp/out $ac_file
18098   else
18099     cat $tmp/out
18100     rm -f $tmp/out
18101   fi
18103 done
18104 _ACEOF
18105 cat >>$CONFIG_STATUS <<\_ACEOF
18108 # CONFIG_COMMANDS section.
18110 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18111   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18112   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18113   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18114 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18115          X"$ac_dest" : 'X\(//\)[^/]' \| \
18116          X"$ac_dest" : 'X\(//\)$' \| \
18117          X"$ac_dest" : 'X\(/\)' \| \
18118          .     : '\(.\)' 2>/dev/null ||
18119 echo X"$ac_dest" |
18120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18122           /^X\(\/\/\)$/{ s//\1/; q; }
18123           /^X\(\/\).*/{ s//\1/; q; }
18124           s/.*/./; q'`
18125   { if $as_mkdir_p; then
18126     mkdir -p "$ac_dir"
18127   else
18128     as_dir="$ac_dir"
18129     as_dirs=
18130     while test ! -d "$as_dir"; do
18131       as_dirs="$as_dir $as_dirs"
18132       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18134          X"$as_dir" : 'X\(//\)[^/]' \| \
18135          X"$as_dir" : 'X\(//\)$' \| \
18136          X"$as_dir" : 'X\(/\)' \| \
18137          .     : '\(.\)' 2>/dev/null ||
18138 echo X"$as_dir" |
18139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18140           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18141           /^X\(\/\/\)$/{ s//\1/; q; }
18142           /^X\(\/\).*/{ s//\1/; q; }
18143           s/.*/./; q'`
18144     done
18145     test ! -n "$as_dirs" || mkdir $as_dirs
18146   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18147 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18148    { (exit 1); exit 1; }; }; }
18150   ac_builddir=.
18152 if test "$ac_dir" != .; then
18153   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18154   # A "../" for each directory in $ac_dir_suffix.
18155   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18156 else
18157   ac_dir_suffix= ac_top_builddir=
18160 case $srcdir in
18161   .)  # No --srcdir option.  We are building in place.
18162     ac_srcdir=.
18163     if test -z "$ac_top_builddir"; then
18164        ac_top_srcdir=.
18165     else
18166        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18167     fi ;;
18168   [\\/]* | ?:[\\/]* )  # Absolute path.
18169     ac_srcdir=$srcdir$ac_dir_suffix;
18170     ac_top_srcdir=$srcdir ;;
18171   *) # Relative path.
18172     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18173     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18174 esac
18176 # Do not use `cd foo && pwd` to compute absolute paths, because
18177 # the directories may not exist.
18178 case `pwd` in
18179 .) ac_abs_builddir="$ac_dir";;
18181   case "$ac_dir" in
18182   .) ac_abs_builddir=`pwd`;;
18183   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18184   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18185   esac;;
18186 esac
18187 case $ac_abs_builddir in
18188 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18190   case ${ac_top_builddir}. in
18191   .) ac_abs_top_builddir=$ac_abs_builddir;;
18192   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18193   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18194   esac;;
18195 esac
18196 case $ac_abs_builddir in
18197 .) ac_abs_srcdir=$ac_srcdir;;
18199   case $ac_srcdir in
18200   .) ac_abs_srcdir=$ac_abs_builddir;;
18201   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18202   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18203   esac;;
18204 esac
18205 case $ac_abs_builddir in
18206 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18208   case $ac_top_srcdir in
18209   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18210   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18211   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18212   esac;;
18213 esac
18216   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18217 echo "$as_me: executing $ac_dest commands" >&6;}
18218   case $ac_dest in
18219     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18220   # Strip MF so we end up with the name of the file.
18221   mf=`echo "$mf" | sed -e 's/:.*$//'`
18222   # Check whether this is an Automake generated Makefile or not.
18223   # We used to match only the files named `Makefile.in', but
18224   # some people rename them; so instead we look at the file content.
18225   # Grep'ing the first line is not enough: some people post-process
18226   # each Makefile.in and add a new line on top of each file to say so.
18227   # So let's grep whole file.
18228   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18229     dirpart=`(dirname "$mf") 2>/dev/null ||
18230 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18231          X"$mf" : 'X\(//\)[^/]' \| \
18232          X"$mf" : 'X\(//\)$' \| \
18233          X"$mf" : 'X\(/\)' \| \
18234          .     : '\(.\)' 2>/dev/null ||
18235 echo X"$mf" |
18236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18237           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18238           /^X\(\/\/\)$/{ s//\1/; q; }
18239           /^X\(\/\).*/{ s//\1/; q; }
18240           s/.*/./; q'`
18241   else
18242     continue
18243   fi
18244   # Extract the definition of DEPDIR, am__include, and am__quote
18245   # from the Makefile without running `make'.
18246   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18247   test -z "$DEPDIR" && continue
18248   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18249   test -z "am__include" && continue
18250   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18251   # When using ansi2knr, U may be empty or an underscore; expand it
18252   U=`sed -n 's/^U = //p' < "$mf"`
18253   # Find all dependency output files, they are included files with
18254   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18255   # simplest approach to changing $(DEPDIR) to its actual value in the
18256   # expansion.
18257   for file in `sed -n "
18258     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18259        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18260     # Make sure the directory exists.
18261     test -f "$dirpart/$file" && continue
18262     fdir=`(dirname "$file") 2>/dev/null ||
18263 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18264          X"$file" : 'X\(//\)[^/]' \| \
18265          X"$file" : 'X\(//\)$' \| \
18266          X"$file" : 'X\(/\)' \| \
18267          .     : '\(.\)' 2>/dev/null ||
18268 echo X"$file" |
18269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18270           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18271           /^X\(\/\/\)$/{ s//\1/; q; }
18272           /^X\(\/\).*/{ s//\1/; q; }
18273           s/.*/./; q'`
18274     { if $as_mkdir_p; then
18275     mkdir -p $dirpart/$fdir
18276   else
18277     as_dir=$dirpart/$fdir
18278     as_dirs=
18279     while test ! -d "$as_dir"; do
18280       as_dirs="$as_dir $as_dirs"
18281       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18283          X"$as_dir" : 'X\(//\)[^/]' \| \
18284          X"$as_dir" : 'X\(//\)$' \| \
18285          X"$as_dir" : 'X\(/\)' \| \
18286          .     : '\(.\)' 2>/dev/null ||
18287 echo X"$as_dir" |
18288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18289           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18290           /^X\(\/\/\)$/{ s//\1/; q; }
18291           /^X\(\/\).*/{ s//\1/; q; }
18292           s/.*/./; q'`
18293     done
18294     test ! -n "$as_dirs" || mkdir $as_dirs
18295   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18296 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18297    { (exit 1); exit 1; }; }; }
18299     # echo "creating $dirpart/$file"
18300     echo '# dummy' > "$dirpart/$file"
18301   done
18302 done
18303  ;;
18304   esac
18305 done
18306 _ACEOF
18308 cat >>$CONFIG_STATUS <<\_ACEOF
18310 { (exit 0); exit 0; }
18311 _ACEOF
18312 chmod +x $CONFIG_STATUS
18313 ac_clean_files=$ac_clean_files_save
18316 # configure is writing to config.log, and then calls config.status.
18317 # config.status does its own redirection, appending to config.log.
18318 # Unfortunately, on DOS this fails, as config.log is still kept open
18319 # by configure, so config.status won't be able to write to it; its
18320 # output is simply discarded.  So we exec the FD to /dev/null,
18321 # effectively closing config.log, so it can be properly (re)opened and
18322 # appended to by config.status.  When coming back to configure, we
18323 # need to make the FD available again.
18324 if test "$no_create" != yes; then
18325   ac_cs_success=:
18326   ac_config_status_args=
18327   test "$silent" = yes &&
18328     ac_config_status_args="$ac_config_status_args --quiet"
18329   exec 5>/dev/null
18330   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18331   exec 5>>config.log
18332   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18333   # would make configure fail if this is the last instruction.
18334   $ac_cs_success || { (exit 1); exit 1; }
18338 echo \
18339 "-----------------------------------------------------------
18341 Thank you for installing the Linux ${PACKAGE_NAME} package
18343 Installation directory prefix: '${prefix}'.
18344 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
18346 You have configured to build for the '${PLATFORM}' platform
18348 Your KERNEL installation directory is set to:
18349     '${KERNEL_INSTALL_DIR}'
18351 Your DRM installation directory is set to:
18352     '${DRM_PREFIX}'
18354 Your CMEM installation directory is set to:
18355     '${CMEM_INSTALL_DIR}'
18357 Now type 'make; sudo make install' to generate the program
18358 and install it to your system.
18360 ------------------------------------------------------------"