OSDN Git Service

e50b80ebdba6ce13fdcc154bcba697b6e57c0f7a
[pf3gnuchains/gcc-fork.git] / libssp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libssp 1.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 ## --------------------- ##
11
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
23
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
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
50
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
57
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
63
64
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'`
76
77
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
85
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
98
99
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
116
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
155
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; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
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
217
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
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_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
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
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
282
283 if test -z "$lt_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          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='libssp'
418 PACKAGE_TARNAME='libssp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='libssp 1.0'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="ssp.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical 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 multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS LIBSSP_USE_SYMVER_TRUE LIBSSP_USE_SYMVER_FALSE EGREP ssp_have_usable_vsnprintf LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO enable_shared enable_static toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910
911 #
912 # Report the --help message.
913 #
914 if test "$ac_init_help" = "long"; then
915   # Omit some internal or obsolete options to make the list less imposing.
916   # This message is too long to be a string in the A/UX 3.1 sh.
917   cat <<_ACEOF
918 \`configure' configures libssp 1.0 to adapt to many kinds of systems.
919
920 Usage: $0 [OPTION]... [VAR=VALUE]...
921
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE.  See below for descriptions of some of the useful variables.
924
925 Defaults for the options are specified in brackets.
926
927 Configuration:
928   -h, --help              display this help and exit
929       --help=short        display options specific to this package
930       --help=recursive    display the short help of all the included packages
931   -V, --version           display version information and exit
932   -q, --quiet, --silent   do not print \`checking...' messages
933       --cache-file=FILE   cache test results in FILE [disabled]
934   -C, --config-cache      alias for \`--cache-file=config.cache'
935   -n, --no-create         do not create output files
936       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
937
938 _ACEOF
939
940   cat <<_ACEOF
941 Installation directories:
942   --prefix=PREFIX         install architecture-independent files in PREFIX
943                           [$ac_default_prefix]
944   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
945                           [PREFIX]
946
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
951
952 For better control, use the options below.
953
954 Fine tuning of the installation directories:
955   --bindir=DIR           user executables [EPREFIX/bin]
956   --sbindir=DIR          system admin executables [EPREFIX/sbin]
957   --libexecdir=DIR       program executables [EPREFIX/libexec]
958   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
959   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
960   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
961   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
962   --libdir=DIR           object code libraries [EPREFIX/lib]
963   --includedir=DIR       C header files [PREFIX/include]
964   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
965   --infodir=DIR          info documentation [PREFIX/info]
966   --mandir=DIR           man documentation [PREFIX/man]
967 _ACEOF
968
969   cat <<\_ACEOF
970
971 Program names:
972   --program-prefix=PREFIX            prepend PREFIX to installed program names
973   --program-suffix=SUFFIX            append SUFFIX to installed program names
974   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
975
976 System types:
977   --build=BUILD     configure for building on BUILD [guessed]
978   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
979   --target=TARGET   configure for building compilers for TARGET [HOST]
980 _ACEOF
981 fi
982
983 if test -n "$ac_init_help"; then
984   case $ac_init_help in
985      short | recursive ) echo "Configuration of libssp 1.0:";;
986    esac
987   cat <<\_ACEOF
988
989 Optional Features:
990   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
991   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
992   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
993   --enable-maintainer-mode  enable make rules and dependencies not useful
994                           (and sometimes confusing) to the casual installer
995   --enable-multilib       build many library versions (default)
996   --disable-dependency-tracking  speeds up one-time build
997   --enable-dependency-tracking   do not reject slow dependency extractors
998   --enable-shared[=PKGS]
999                           build shared libraries [default=yes]
1000   --enable-static[=PKGS]
1001                           build static libraries [default=yes]
1002   --enable-fast-install[=PKGS]
1003                           optimize for fast installation [default=yes]
1004   --disable-libtool-lock  avoid locking (might break parallel builds)
1005
1006 Optional Packages:
1007   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1008   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1009   --with-pic              try to use only PIC/non-PIC objects [default=use
1010                           both]
1011   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1012
1013 Some influential environment variables:
1014   CC          C compiler command
1015   CFLAGS      C compiler flags
1016   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1017               nonstandard directory <lib dir>
1018   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1019               headers in a nonstandard directory <include dir>
1020   CPP         C preprocessor
1021
1022 Use these variables to override the choices made by `configure' or to help
1023 it to find libraries and programs with nonstandard names/locations.
1024
1025 _ACEOF
1026 fi
1027
1028 if test "$ac_init_help" = "recursive"; then
1029   # If there are subdirs, report their specific --help.
1030   ac_popdir=`pwd`
1031   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1032     test -d $ac_dir || continue
1033     ac_builddir=.
1034
1035 if test "$ac_dir" != .; then
1036   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1037   # A "../" for each directory in $ac_dir_suffix.
1038   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1039 else
1040   ac_dir_suffix= ac_top_builddir=
1041 fi
1042
1043 case $srcdir in
1044   .)  # No --srcdir option.  We are building in place.
1045     ac_srcdir=.
1046     if test -z "$ac_top_builddir"; then
1047        ac_top_srcdir=.
1048     else
1049        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1050     fi ;;
1051   [\\/]* | ?:[\\/]* )  # Absolute path.
1052     ac_srcdir=$srcdir$ac_dir_suffix;
1053     ac_top_srcdir=$srcdir ;;
1054   *) # Relative path.
1055     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1056     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1057 esac
1058
1059 # Do not use `cd foo && pwd` to compute absolute paths, because
1060 # the directories may not exist.
1061 case `pwd` in
1062 .) ac_abs_builddir="$ac_dir";;
1063 *)
1064   case "$ac_dir" in
1065   .) ac_abs_builddir=`pwd`;;
1066   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1067   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1068   esac;;
1069 esac
1070 case $ac_abs_builddir in
1071 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1072 *)
1073   case ${ac_top_builddir}. in
1074   .) ac_abs_top_builddir=$ac_abs_builddir;;
1075   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1076   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1077   esac;;
1078 esac
1079 case $ac_abs_builddir in
1080 .) ac_abs_srcdir=$ac_srcdir;;
1081 *)
1082   case $ac_srcdir in
1083   .) ac_abs_srcdir=$ac_abs_builddir;;
1084   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1085   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1086   esac;;
1087 esac
1088 case $ac_abs_builddir in
1089 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1090 *)
1091   case $ac_top_srcdir in
1092   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1093   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1094   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1095   esac;;
1096 esac
1097
1098     cd $ac_dir
1099     # Check for guested configure; otherwise get Cygnus style configure.
1100     if test -f $ac_srcdir/configure.gnu; then
1101       echo
1102       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1103     elif test -f $ac_srcdir/configure; then
1104       echo
1105       $SHELL $ac_srcdir/configure  --help=recursive
1106     elif test -f $ac_srcdir/configure.ac ||
1107            test -f $ac_srcdir/configure.in; then
1108       echo
1109       $ac_configure --help
1110     else
1111       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1112     fi
1113     cd $ac_popdir
1114   done
1115 fi
1116
1117 test -n "$ac_init_help" && exit 0
1118 if $ac_init_version; then
1119   cat <<\_ACEOF
1120 libssp configure 1.0
1121 generated by GNU Autoconf 2.59
1122
1123 Copyright (C) 2003 Free Software Foundation, Inc.
1124 This configure script is free software; the Free Software Foundation
1125 gives unlimited permission to copy, distribute and modify it.
1126 _ACEOF
1127   exit 0
1128 fi
1129 exec 5>config.log
1130 cat >&5 <<_ACEOF
1131 This file contains any messages produced by compilers while
1132 running configure, to aid debugging if configure makes a mistake.
1133
1134 It was created by libssp $as_me 1.0, which was
1135 generated by GNU Autoconf 2.59.  Invocation command line was
1136
1137   $ $0 $@
1138
1139 _ACEOF
1140 {
1141 cat <<_ASUNAME
1142 ## --------- ##
1143 ## Platform. ##
1144 ## --------- ##
1145
1146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151
1152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1153 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1154
1155 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1156 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1158 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1159 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1160 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1161 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1162
1163 _ASUNAME
1164
1165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1166 for as_dir in $PATH
1167 do
1168   IFS=$as_save_IFS
1169   test -z "$as_dir" && as_dir=.
1170   echo "PATH: $as_dir"
1171 done
1172
1173 } >&5
1174
1175 cat >&5 <<_ACEOF
1176
1177
1178 ## ----------- ##
1179 ## Core tests. ##
1180 ## ----------- ##
1181
1182 _ACEOF
1183
1184
1185 # Keep a trace of the command line.
1186 # Strip out --no-create and --no-recursion so they do not pile up.
1187 # Strip out --silent because we don't want to record it for future runs.
1188 # Also quote any args containing shell meta-characters.
1189 # Make two passes to allow for proper duplicate-argument suppression.
1190 ac_configure_args=
1191 ac_configure_args0=
1192 ac_configure_args1=
1193 ac_sep=
1194 ac_must_keep_next=false
1195 for ac_pass in 1 2
1196 do
1197   for ac_arg
1198   do
1199     case $ac_arg in
1200     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1201     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202     | -silent | --silent | --silen | --sile | --sil)
1203       continue ;;
1204     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1206     esac
1207     case $ac_pass in
1208     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1209     2)
1210       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1211       if test $ac_must_keep_next = true; then
1212         ac_must_keep_next=false # Got value, back to normal.
1213       else
1214         case $ac_arg in
1215           *=* | --config-cache | -C | -disable-* | --disable-* \
1216           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1217           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1218           | -with-* | --with-* | -without-* | --without-* | --x)
1219             case "$ac_configure_args0 " in
1220               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1221             esac
1222             ;;
1223           -* ) ac_must_keep_next=true ;;
1224         esac
1225       fi
1226       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1227       # Get rid of the leading space.
1228       ac_sep=" "
1229       ;;
1230     esac
1231   done
1232 done
1233 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1234 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1235
1236 # When interrupted or exit'd, cleanup temporary files, and complete
1237 # config.log.  We remove comments because anyway the quotes in there
1238 # would cause problems or look ugly.
1239 # WARNING: Be sure not to use single quotes in there, as some shells,
1240 # such as our DU 5.0 friend, will then `close' the trap.
1241 trap 'exit_status=$?
1242   # Save into config.log some information that might help in debugging.
1243   {
1244     echo
1245
1246     cat <<\_ASBOX
1247 ## ---------------- ##
1248 ## Cache variables. ##
1249 ## ---------------- ##
1250 _ASBOX
1251     echo
1252     # The following way of writing the cache mishandles newlines in values,
1253 {
1254   (set) 2>&1 |
1255     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1256     *ac_space=\ *)
1257       sed -n \
1258         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1259           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1260       ;;
1261     *)
1262       sed -n \
1263         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1264       ;;
1265     esac;
1266 }
1267     echo
1268
1269     cat <<\_ASBOX
1270 ## ----------------- ##
1271 ## Output variables. ##
1272 ## ----------------- ##
1273 _ASBOX
1274     echo
1275     for ac_var in $ac_subst_vars
1276     do
1277       eval ac_val=$`echo $ac_var`
1278       echo "$ac_var='"'"'$ac_val'"'"'"
1279     done | sort
1280     echo
1281
1282     if test -n "$ac_subst_files"; then
1283       cat <<\_ASBOX
1284 ## ------------- ##
1285 ## Output files. ##
1286 ## ------------- ##
1287 _ASBOX
1288       echo
1289       for ac_var in $ac_subst_files
1290       do
1291         eval ac_val=$`echo $ac_var`
1292         echo "$ac_var='"'"'$ac_val'"'"'"
1293       done | sort
1294       echo
1295     fi
1296
1297     if test -s confdefs.h; then
1298       cat <<\_ASBOX
1299 ## ----------- ##
1300 ## confdefs.h. ##
1301 ## ----------- ##
1302 _ASBOX
1303       echo
1304       sed "/^$/d" confdefs.h | sort
1305       echo
1306     fi
1307     test "$ac_signal" != 0 &&
1308       echo "$as_me: caught signal $ac_signal"
1309     echo "$as_me: exit $exit_status"
1310   } >&5
1311   rm -f core *.core &&
1312   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1313     exit $exit_status
1314      ' 0
1315 for ac_signal in 1 2 13 15; do
1316   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1317 done
1318 ac_signal=0
1319
1320 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1321 rm -rf conftest* confdefs.h
1322 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1323 echo >confdefs.h
1324
1325 # Predefined preprocessor variables.
1326
1327 cat >>confdefs.h <<_ACEOF
1328 #define PACKAGE_NAME "$PACKAGE_NAME"
1329 _ACEOF
1330
1331
1332 cat >>confdefs.h <<_ACEOF
1333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1334 _ACEOF
1335
1336
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1339 _ACEOF
1340
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_STRING "$PACKAGE_STRING"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1349 _ACEOF
1350
1351
1352 # Let the site file select an alternate cache file if it wants to.
1353 # Prefer explicitly selected file to automatically selected ones.
1354 if test -z "$CONFIG_SITE"; then
1355   if test "x$prefix" != xNONE; then
1356     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357   else
1358     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1359   fi
1360 fi
1361 for ac_site_file in $CONFIG_SITE; do
1362   if test -r "$ac_site_file"; then
1363     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1364 echo "$as_me: loading site script $ac_site_file" >&6;}
1365     sed 's/^/| /' "$ac_site_file" >&5
1366     . "$ac_site_file"
1367   fi
1368 done
1369
1370 if test -r "$cache_file"; then
1371   # Some versions of bash will fail to source /dev/null (special
1372   # files actually), so we avoid doing that.
1373   if test -f "$cache_file"; then
1374     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1375 echo "$as_me: loading cache $cache_file" >&6;}
1376     case $cache_file in
1377       [\\/]* | ?:[\\/]* ) . $cache_file;;
1378       *)                      . ./$cache_file;;
1379     esac
1380   fi
1381 else
1382   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1383 echo "$as_me: creating cache $cache_file" >&6;}
1384   >$cache_file
1385 fi
1386
1387 # Check that the precious variables saved in the cache have kept the same
1388 # value.
1389 ac_cache_corrupted=false
1390 for ac_var in `(set) 2>&1 |
1391                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1392   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1393   eval ac_new_set=\$ac_env_${ac_var}_set
1394   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1395   eval ac_new_val="\$ac_env_${ac_var}_value"
1396   case $ac_old_set,$ac_new_set in
1397     set,)
1398       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1399 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1400       ac_cache_corrupted=: ;;
1401     ,set)
1402       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1403 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1404       ac_cache_corrupted=: ;;
1405     ,);;
1406     *)
1407       if test "x$ac_old_val" != "x$ac_new_val"; then
1408         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1409 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1410         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1411 echo "$as_me:   former value:  $ac_old_val" >&2;}
1412         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1413 echo "$as_me:   current value: $ac_new_val" >&2;}
1414         ac_cache_corrupted=:
1415       fi;;
1416   esac
1417   # Pass precious variables to config.status.
1418   if test "$ac_new_set" = set; then
1419     case $ac_new_val in
1420     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1421       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1422     *) ac_arg=$ac_var=$ac_new_val ;;
1423     esac
1424     case " $ac_configure_args " in
1425       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1426       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1427     esac
1428   fi
1429 done
1430 if $ac_cache_corrupted; then
1431   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1432 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1433   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1434 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1435    { (exit 1); exit 1; }; }
1436 fi
1437
1438 ac_ext=c
1439 ac_cpp='$CPP $CPPFLAGS'
1440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471 ac_aux_dir=
1472 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1473   if test -f $ac_dir/install-sh; then
1474     ac_aux_dir=$ac_dir
1475     ac_install_sh="$ac_aux_dir/install-sh -c"
1476     break
1477   elif test -f $ac_dir/install.sh; then
1478     ac_aux_dir=$ac_dir
1479     ac_install_sh="$ac_aux_dir/install.sh -c"
1480     break
1481   elif test -f $ac_dir/shtool; then
1482     ac_aux_dir=$ac_dir
1483     ac_install_sh="$ac_aux_dir/shtool install -c"
1484     break
1485   fi
1486 done
1487 if test -z "$ac_aux_dir"; then
1488   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1489 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1490    { (exit 1); exit 1; }; }
1491 fi
1492 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1493 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1494 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1495
1496 # Make sure we can run config.sub.
1497 $ac_config_sub sun4 >/dev/null 2>&1 ||
1498   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1499 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1500    { (exit 1); exit 1; }; }
1501
1502 echo "$as_me:$LINENO: checking build system type" >&5
1503 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1504 if test "${ac_cv_build+set}" = set; then
1505   echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507   ac_cv_build_alias=$build_alias
1508 test -z "$ac_cv_build_alias" &&
1509   ac_cv_build_alias=`$ac_config_guess`
1510 test -z "$ac_cv_build_alias" &&
1511   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1512 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1513    { (exit 1); exit 1; }; }
1514 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1515   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1517    { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1521 echo "${ECHO_T}$ac_cv_build" >&6
1522 build=$ac_cv_build
1523 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 echo "$as_me:$LINENO: checking host system type" >&5
1529 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1530 if test "${ac_cv_host+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   ac_cv_host_alias=$host_alias
1534 test -z "$ac_cv_host_alias" &&
1535   ac_cv_host_alias=$ac_cv_build_alias
1536 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1537   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1539    { (exit 1); exit 1; }; }
1540
1541 fi
1542 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1543 echo "${ECHO_T}$ac_cv_host" >&6
1544 host=$ac_cv_host
1545 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550 echo "$as_me:$LINENO: checking target system type" >&5
1551 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1552 if test "${ac_cv_target+set}" = set; then
1553   echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555   ac_cv_target_alias=$target_alias
1556 test "x$ac_cv_target_alias" = "x" &&
1557   ac_cv_target_alias=$ac_cv_host_alias
1558 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1559   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1561    { (exit 1); exit 1; }; }
1562
1563 fi
1564 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1565 echo "${ECHO_T}$ac_cv_target" >&6
1566 target=$ac_cv_target
1567 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572 # The aliases save the names the user supplied, while $host etc.
1573 # will get canonicalized.
1574 test -n "$target_alias" &&
1575   test "$program_prefix$program_suffix$program_transform_name" = \
1576     NONENONEs,x,x, &&
1577   program_prefix=${target_alias}-
1578  case ${build_alias} in
1579   "") build_noncanonical=${build} ;;
1580   *) build_noncanonical=${build_alias} ;;
1581 esac
1582
1583  case ${host_alias} in
1584   "") host_noncanonical=${build_noncanonical} ;;
1585   *) host_noncanonical=${host_alias} ;;
1586 esac
1587
1588  case ${target_alias} in
1589   "") target_noncanonical=${host_noncanonical} ;;
1590   *) target_noncanonical=${target_alias} ;;
1591 esac
1592
1593
1594
1595
1596 am__api_version="1.9"
1597 # Find a good install program.  We prefer a C program (faster),
1598 # so one script is as good as another.  But avoid the broken or
1599 # incompatible versions:
1600 # SysV /etc/install, /usr/sbin/install
1601 # SunOS /usr/etc/install
1602 # IRIX /sbin/install
1603 # AIX /bin/install
1604 # AmigaOS /C/install, which installs bootblocks on floppy discs
1605 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1606 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1607 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1608 # OS/2's system install, which has a completely different semantic
1609 # ./install, which can be erroneously created by make from ./install.sh.
1610 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1611 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1612 if test -z "$INSTALL"; then
1613 if test "${ac_cv_path_install+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   # Account for people who put trailing slashes in PATH elements.
1622 case $as_dir/ in
1623   ./ | .// | /cC/* | \
1624   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1625   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1626   /usr/ucb/* ) ;;
1627   *)
1628     # OSF1 and SCO ODT 3.0 have their own names for install.
1629     # Don't use installbsd from OSF since it installs stuff as root
1630     # by default.
1631     for ac_prog in ginstall scoinst install; do
1632       for ac_exec_ext in '' $ac_executable_extensions; do
1633         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1634           if test $ac_prog = install &&
1635             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1636             # AIX install.  It has an incompatible calling convention.
1637             :
1638           elif test $ac_prog = install &&
1639             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1640             # program-specific install script used by HP pwplus--don't use.
1641             :
1642           else
1643             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1644             break 3
1645           fi
1646         fi
1647       done
1648     done
1649     ;;
1650 esac
1651 done
1652
1653
1654 fi
1655   if test "${ac_cv_path_install+set}" = set; then
1656     INSTALL=$ac_cv_path_install
1657   else
1658     # As a last resort, use the slow shell script.  We don't cache a
1659     # path for INSTALL within a source directory, because that will
1660     # break other packages using the cache if that directory is
1661     # removed, or if the path is relative.
1662     INSTALL=$ac_install_sh
1663   fi
1664 fi
1665 echo "$as_me:$LINENO: result: $INSTALL" >&5
1666 echo "${ECHO_T}$INSTALL" >&6
1667
1668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1669 # It thinks the first close brace ends the variable substitution.
1670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1671
1672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1673
1674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1675
1676 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1677 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1678 # Just in case
1679 sleep 1
1680 echo timestamp > conftest.file
1681 # Do `set' in a subshell so we don't clobber the current shell's
1682 # arguments.  Must try -L first in case configure is actually a
1683 # symlink; some systems play weird games with the mod time of symlinks
1684 # (eg FreeBSD returns the mod time of the symlink's containing
1685 # directory).
1686 if (
1687    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1688    if test "$*" = "X"; then
1689       # -L didn't work.
1690       set X `ls -t $srcdir/configure conftest.file`
1691    fi
1692    rm -f conftest.file
1693    if test "$*" != "X $srcdir/configure conftest.file" \
1694       && test "$*" != "X conftest.file $srcdir/configure"; then
1695
1696       # If neither matched, then we have a broken ls.  This can happen
1697       # if, for instance, CONFIG_SHELL is bash and it inherits a
1698       # broken ls alias from the environment.  This has actually
1699       # happened.  Such a system could not be considered "sane".
1700       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1701 alias in your environment" >&5
1702 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1703 alias in your environment" >&2;}
1704    { (exit 1); exit 1; }; }
1705    fi
1706
1707    test "$2" = conftest.file
1708    )
1709 then
1710    # Ok.
1711    :
1712 else
1713    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1714 Check your system clock" >&5
1715 echo "$as_me: error: newly created file is older than distributed files!
1716 Check your system clock" >&2;}
1717    { (exit 1); exit 1; }; }
1718 fi
1719 echo "$as_me:$LINENO: result: yes" >&5
1720 echo "${ECHO_T}yes" >&6
1721 test "$program_prefix" != NONE &&
1722   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1723 # Use a double $ so make ignores it.
1724 test "$program_suffix" != NONE &&
1725   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1726 # Double any \ or $.  echo might interpret backslashes.
1727 # By default was `s,x,x', remove it if useless.
1728 cat <<\_ACEOF >conftest.sed
1729 s/[\\$]/&&/g;s/;s,x,x,$//
1730 _ACEOF
1731 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1732 rm conftest.sed
1733
1734 # expand $ac_aux_dir to an absolute path
1735 am_aux_dir=`cd $ac_aux_dir && pwd`
1736
1737 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1738 # Use eval to expand $SHELL
1739 if eval "$MISSING --run true"; then
1740   am_missing_run="$MISSING --run "
1741 else
1742   am_missing_run=
1743   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1744 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1745 fi
1746
1747 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1748   # We used to keeping the `.' as first argument, in order to
1749   # allow $(mkdir_p) to be used without argument.  As in
1750   #   $(mkdir_p) $(somedir)
1751   # where $(somedir) is conditionally defined.  However this is wrong
1752   # for two reasons:
1753   #  1. if the package is installed by a user who cannot write `.'
1754   #     make install will fail,
1755   #  2. the above comment should most certainly read
1756   #     $(mkdir_p) $(DESTDIR)$(somedir)
1757   #     so it does not work when $(somedir) is undefined and
1758   #     $(DESTDIR) is not.
1759   #  To support the latter case, we have to write
1760   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1761   #  so the `.' trick is pointless.
1762   mkdir_p='mkdir -p --'
1763 else
1764   # On NextStep and OpenStep, the `mkdir' command does not
1765   # recognize any option.  It will interpret all options as
1766   # directories to create, and then abort because `.' already
1767   # exists.
1768   for d in ./-p ./--version;
1769   do
1770     test -d $d && rmdir $d
1771   done
1772   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1773   if test -f "$ac_aux_dir/mkinstalldirs"; then
1774     mkdir_p='$(mkinstalldirs)'
1775   else
1776     mkdir_p='$(install_sh) -d'
1777   fi
1778 fi
1779
1780 for ac_prog in gawk mawk nawk awk
1781 do
1782   # Extract the first word of "$ac_prog", so it can be a program name with args.
1783 set dummy $ac_prog; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_AWK+set}" = set; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   if test -n "$AWK"; then
1790   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1791 else
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795   IFS=$as_save_IFS
1796   test -z "$as_dir" && as_dir=.
1797   for ac_exec_ext in '' $ac_executable_extensions; do
1798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799     ac_cv_prog_AWK="$ac_prog"
1800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801     break 2
1802   fi
1803 done
1804 done
1805
1806 fi
1807 fi
1808 AWK=$ac_cv_prog_AWK
1809 if test -n "$AWK"; then
1810   echo "$as_me:$LINENO: result: $AWK" >&5
1811 echo "${ECHO_T}$AWK" >&6
1812 else
1813   echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1815 fi
1816
1817   test -n "$AWK" && break
1818 done
1819
1820 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1821 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1822 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1823 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1824   echo $ECHO_N "(cached) $ECHO_C" >&6
1825 else
1826   cat >conftest.make <<\_ACEOF
1827 all:
1828         @echo 'ac_maketemp="$(MAKE)"'
1829 _ACEOF
1830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1831 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1832 if test -n "$ac_maketemp"; then
1833   eval ac_cv_prog_make_${ac_make}_set=yes
1834 else
1835   eval ac_cv_prog_make_${ac_make}_set=no
1836 fi
1837 rm -f conftest.make
1838 fi
1839 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1840   echo "$as_me:$LINENO: result: yes" >&5
1841 echo "${ECHO_T}yes" >&6
1842   SET_MAKE=
1843 else
1844   echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846   SET_MAKE="MAKE=${MAKE-make}"
1847 fi
1848
1849 rm -rf .tst 2>/dev/null
1850 mkdir .tst 2>/dev/null
1851 if test -d .tst; then
1852   am__leading_dot=.
1853 else
1854   am__leading_dot=_
1855 fi
1856 rmdir .tst 2>/dev/null
1857
1858 # test to see if srcdir already configured
1859 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1860    test -f $srcdir/config.status; then
1861   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1862 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1863    { (exit 1); exit 1; }; }
1864 fi
1865
1866 # test whether we have cygpath
1867 if test -z "$CYGPATH_W"; then
1868   if (cygpath --version) >/dev/null 2>/dev/null; then
1869     CYGPATH_W='cygpath -w'
1870   else
1871     CYGPATH_W=echo
1872   fi
1873 fi
1874
1875
1876 # Define the identity of the package.
1877  PACKAGE='libssp'
1878  VERSION='1.0'
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE "$PACKAGE"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define VERSION "$VERSION"
1888 _ACEOF
1889
1890 # Some tools Automake needs.
1891
1892 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1893
1894
1895 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1896
1897
1898 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1899
1900
1901 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1902
1903
1904 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1905
1906 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1907
1908 # Installed binaries are usually stripped using `strip' when the user
1909 # run `make install-strip'.  However `strip' might not be the right
1910 # tool to use in cross-compilation environments, therefore Automake
1911 # will honor the `STRIP' environment variable to overrule this program.
1912 if test "$cross_compiling" != no; then
1913   if test -n "$ac_tool_prefix"; then
1914   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}strip; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_STRIP+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   if test -n "$STRIP"; then
1922   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 STRIP=$ac_cv_prog_STRIP
1941 if test -n "$STRIP"; then
1942   echo "$as_me:$LINENO: result: $STRIP" >&5
1943 echo "${ECHO_T}$STRIP" >&6
1944 else
1945   echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949 fi
1950 if test -z "$ac_cv_prog_STRIP"; then
1951   ac_ct_STRIP=$STRIP
1952   # Extract the first word of "strip", so it can be a program name with args.
1953 set dummy strip; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   if test -n "$ac_ct_STRIP"; then
1960   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965   IFS=$as_save_IFS
1966   test -z "$as_dir" && as_dir=.
1967   for ac_exec_ext in '' $ac_executable_extensions; do
1968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969     ac_cv_prog_ac_ct_STRIP="strip"
1970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971     break 2
1972   fi
1973 done
1974 done
1975
1976   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1977 fi
1978 fi
1979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1980 if test -n "$ac_ct_STRIP"; then
1981   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1982 echo "${ECHO_T}$ac_ct_STRIP" >&6
1983 else
1984   echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1986 fi
1987
1988   STRIP=$ac_ct_STRIP
1989 else
1990   STRIP="$ac_cv_prog_STRIP"
1991 fi
1992
1993 fi
1994 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1995
1996 # We need awk for the "check" target.  The system "awk" is bad on
1997 # some platforms.
1998 # Always define AMTAR for backward compatibility.
1999
2000 AMTAR=${AMTAR-"${am_missing_run}tar"}
2001
2002 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2003
2004
2005
2006
2007
2008
2009 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2010 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2011 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2012 if test "${enable_version_specific_runtime_libs+set}" = set; then
2013   enableval="$enable_version_specific_runtime_libs"
2014   case "$enableval" in
2015  yes) version_specific_libs=yes ;;
2016  no)  version_specific_libs=no ;;
2017  *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2018 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2019    { (exit 1); exit 1; }; };;
2020  esac
2021 else
2022   version_specific_libs=no
2023 fi;
2024 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2025 echo "${ECHO_T}$version_specific_libs" >&6
2026
2027 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2028 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2029     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2030 if test "${enable_maintainer_mode+set}" = set; then
2031   enableval="$enable_maintainer_mode"
2032   USE_MAINTAINER_MODE=$enableval
2033 else
2034   USE_MAINTAINER_MODE=no
2035 fi;
2036   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2037 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2038
2039
2040 if test $USE_MAINTAINER_MODE = yes; then
2041   MAINTAINER_MODE_TRUE=
2042   MAINTAINER_MODE_FALSE='#'
2043 else
2044   MAINTAINER_MODE_TRUE='#'
2045   MAINTAINER_MODE_FALSE=
2046 fi
2047
2048   MAINT=$MAINTAINER_MODE_TRUE
2049
2050
2051
2052
2053
2054 # Default to --enable-multilib
2055 # Check whether --enable-multilib or --disable-multilib was given.
2056 if test "${enable_multilib+set}" = set; then
2057   enableval="$enable_multilib"
2058   case "$enableval" in
2059   yes) multilib=yes ;;
2060   no)  multilib=no ;;
2061   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2062 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2063    { (exit 1); exit 1; }; } ;;
2064  esac
2065 else
2066   multilib=yes
2067 fi;
2068
2069 # We may get other options which we leave undocumented:
2070 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2071 # See config-ml.in if you want the gory details.
2072
2073 if test "$srcdir" = "."; then
2074   if test "$with_target_subdir" != "."; then
2075     multi_basedir="$srcdir/$with_multisrctop../.."
2076   else
2077     multi_basedir="$srcdir/$with_multisrctop.."
2078   fi
2079 else
2080   multi_basedir="$srcdir/.."
2081 fi
2082
2083
2084 # Even if the default multilib is not a cross compilation,
2085 # it may be that some of the other multilibs are.
2086 if test $cross_compiling = no && test $multilib = yes \
2087    && test "x${with_multisubdir}" != x ; then
2088    cross_compiling=maybe
2089 fi
2090
2091           ac_config_commands="$ac_config_commands default-1"
2092
2093
2094 target_alias=${target_alias-$host_alias}
2095
2096
2097           ac_config_headers="$ac_config_headers config.h"
2098
2099
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105
2106 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2107 # We must force CC to /not/ be precious variables; otherwise
2108 # the wrong, non-multilib-adjusted value will be used in multilibs.
2109 # As a side effect, we have to subst CFLAGS ourselves.
2110
2111
2112
2113 ac_ext=c
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 if test -n "$ac_tool_prefix"; then
2119   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2121 echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123 if test "${ac_cv_prog_CC+set}" = set; then
2124   echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126   if test -n "$CC"; then
2127   ac_cv_prog_CC="$CC" # Let the user override the test.
2128 else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132   IFS=$as_save_IFS
2133   test -z "$as_dir" && as_dir=.
2134   for ac_exec_ext in '' $ac_executable_extensions; do
2135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138     break 2
2139   fi
2140 done
2141 done
2142
2143 fi
2144 fi
2145 CC=$ac_cv_prog_CC
2146 if test -n "$CC"; then
2147   echo "$as_me:$LINENO: result: $CC" >&5
2148 echo "${ECHO_T}$CC" >&6
2149 else
2150   echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6
2152 fi
2153
2154 fi
2155 if test -z "$ac_cv_prog_CC"; then
2156   ac_ct_CC=$CC
2157   # Extract the first word of "gcc", so it can be a program name with args.
2158 set dummy gcc; ac_word=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   if test -n "$ac_ct_CC"; then
2165   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170   IFS=$as_save_IFS
2171   test -z "$as_dir" && as_dir=.
2172   for ac_exec_ext in '' $ac_executable_extensions; do
2173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174     ac_cv_prog_ac_ct_CC="gcc"
2175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176     break 2
2177   fi
2178 done
2179 done
2180
2181 fi
2182 fi
2183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184 if test -n "$ac_ct_CC"; then
2185   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2186 echo "${ECHO_T}$ac_ct_CC" >&6
2187 else
2188   echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2190 fi
2191
2192   CC=$ac_ct_CC
2193 else
2194   CC="$ac_cv_prog_CC"
2195 fi
2196
2197 if test -z "$CC"; then
2198   if test -n "$ac_tool_prefix"; then
2199   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2200 set dummy ${ac_tool_prefix}cc; ac_word=$2
2201 echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204   echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206   if test -n "$CC"; then
2207   ac_cv_prog_CC="$CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212   IFS=$as_save_IFS
2213   test -z "$as_dir" && as_dir=.
2214   for ac_exec_ext in '' $ac_executable_extensions; do
2215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216     ac_cv_prog_CC="${ac_tool_prefix}cc"
2217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218     break 2
2219   fi
2220 done
2221 done
2222
2223 fi
2224 fi
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227   echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6
2229 else
2230   echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6
2232 fi
2233
2234 fi
2235 if test -z "$ac_cv_prog_CC"; then
2236   ac_ct_CC=$CC
2237   # Extract the first word of "cc", so it can be a program name with args.
2238 set dummy cc; ac_word=$2
2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2242   echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244   if test -n "$ac_ct_CC"; then
2245   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2249 do
2250   IFS=$as_save_IFS
2251   test -z "$as_dir" && as_dir=.
2252   for ac_exec_ext in '' $ac_executable_extensions; do
2253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254     ac_cv_prog_ac_ct_CC="cc"
2255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256     break 2
2257   fi
2258 done
2259 done
2260
2261 fi
2262 fi
2263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2264 if test -n "$ac_ct_CC"; then
2265   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2266 echo "${ECHO_T}$ac_ct_CC" >&6
2267 else
2268   echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2270 fi
2271
2272   CC=$ac_ct_CC
2273 else
2274   CC="$ac_cv_prog_CC"
2275 fi
2276
2277 fi
2278 if test -z "$CC"; then
2279   # Extract the first word of "cc", so it can be a program name with args.
2280 set dummy cc; ac_word=$2
2281 echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283 if test "${ac_cv_prog_CC+set}" = set; then
2284   echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286   if test -n "$CC"; then
2287   ac_cv_prog_CC="$CC" # Let the user override the test.
2288 else
2289   ac_prog_rejected=no
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293   IFS=$as_save_IFS
2294   test -z "$as_dir" && as_dir=.
2295   for ac_exec_ext in '' $ac_executable_extensions; do
2296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2298        ac_prog_rejected=yes
2299        continue
2300      fi
2301     ac_cv_prog_CC="cc"
2302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303     break 2
2304   fi
2305 done
2306 done
2307
2308 if test $ac_prog_rejected = yes; then
2309   # We found a bogon in the path, so make sure we never use it.
2310   set dummy $ac_cv_prog_CC
2311   shift
2312   if test $# != 0; then
2313     # We chose a different compiler from the bogus one.
2314     # However, it has the same basename, so the bogon will be chosen
2315     # first if we set CC to just the basename; use the full file name.
2316     shift
2317     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2318   fi
2319 fi
2320 fi
2321 fi
2322 CC=$ac_cv_prog_CC
2323 if test -n "$CC"; then
2324   echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6
2326 else
2327   echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2329 fi
2330
2331 fi
2332 if test -z "$CC"; then
2333   if test -n "$ac_tool_prefix"; then
2334   for ac_prog in cl
2335   do
2336     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   if test -n "$CC"; then
2344   ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349   IFS=$as_save_IFS
2350   test -z "$as_dir" && as_dir=.
2351   for ac_exec_ext in '' $ac_executable_extensions; do
2352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355     break 2
2356   fi
2357 done
2358 done
2359
2360 fi
2361 fi
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364   echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6
2366 else
2367   echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2369 fi
2370
2371     test -n "$CC" && break
2372   done
2373 fi
2374 if test -z "$CC"; then
2375   ac_ct_CC=$CC
2376   for ac_prog in cl
2377 do
2378   # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy $ac_prog; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   if test -n "$ac_ct_CC"; then
2386   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391   IFS=$as_save_IFS
2392   test -z "$as_dir" && as_dir=.
2393   for ac_exec_ext in '' $ac_executable_extensions; do
2394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395     ac_cv_prog_ac_ct_CC="$ac_prog"
2396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397     break 2
2398   fi
2399 done
2400 done
2401
2402 fi
2403 fi
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6
2408 else
2409   echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6
2411 fi
2412
2413   test -n "$ac_ct_CC" && break
2414 done
2415
2416   CC=$ac_ct_CC
2417 fi
2418
2419 fi
2420
2421
2422 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: no acceptable C compiler found in \$PATH
2425 See \`config.log' for more details." >&2;}
2426    { (exit 1); exit 1; }; }
2427
2428 # Provide some information about the compiler.
2429 echo "$as_me:$LINENO:" \
2430      "checking for C compiler version" >&5
2431 ac_compiler=`set X $ac_compile; echo $2`
2432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2433   (eval $ac_compiler --version </dev/null >&5) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2438   (eval $ac_compiler -v </dev/null >&5) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2443   (eval $ac_compiler -V </dev/null >&5) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }
2447
2448 cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h.  */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h.  */
2454
2455 int
2456 main ()
2457 {
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 # FIXME: Cleanup?
2464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2465   (eval $ac_link) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; then
2469   gcc_no_link=no
2470 else
2471   gcc_no_link=yes
2472 fi
2473
2474 if test x$gcc_no_link = xyes; then
2475   # Setting cross_compile will disable run tests; it will
2476   # also disable AC_CHECK_FILE but that's generally
2477   # correct if we can't link.
2478   cross_compiling=yes
2479   EXEEXT=
2480 else
2481   cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487
2488 int
2489 main ()
2490 {
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 ac_clean_files_save=$ac_clean_files
2497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2498 # Try to create an executable without -o first, disregard a.out.
2499 # It will help us diagnose broken compilers, and finding out an intuition
2500 # of exeext.
2501 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2505   (eval $ac_link_default) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; then
2509   # Find the output, starting from the most likely.  This scheme is
2510 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2511 # resort.
2512
2513 # Be careful to initialize this variable, since it used to be cached.
2514 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2515 ac_cv_exeext=
2516 # b.out is created by i960 compilers.
2517 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2518 do
2519   test -f "$ac_file" || continue
2520   case $ac_file in
2521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2522         ;;
2523     conftest.$ac_ext )
2524         # This is the source file.
2525         ;;
2526     [ab].out )
2527         # We found the default executable, but exeext='' is most
2528         # certainly right.
2529         break;;
2530     *.* )
2531         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532         # FIXME: I believe we export ac_cv_exeext for Libtool,
2533         # but it would be cool to find out if it's true.  Does anybody
2534         # maintain Libtool? --akim.
2535         export ac_cv_exeext
2536         break;;
2537     * )
2538         break;;
2539   esac
2540 done
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: C compiler cannot create executables
2548 See \`config.log' for more details." >&2;}
2549    { (exit 77); exit 77; }; }
2550 fi
2551
2552 ac_exeext=$ac_cv_exeext
2553 echo "$as_me:$LINENO: result: $ac_file" >&5
2554 echo "${ECHO_T}$ac_file" >&6
2555
2556 # Check the compiler produces executables we can run.  If not, either
2557 # the compiler is broken, or we cross compile.
2558 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2559 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2561 # If not cross compiling, check that we can run a simple program.
2562 if test "$cross_compiling" != yes; then
2563   if { ac_try='./$ac_file'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569     cross_compiling=no
2570   else
2571     if test "$cross_compiling" = maybe; then
2572         cross_compiling=yes
2573     else
2574         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot run C compiled programs.
2578 If you meant to cross compile, use \`--host'.
2579 See \`config.log' for more details." >&2;}
2580    { (exit 1); exit 1; }; }
2581     fi
2582   fi
2583 fi
2584 echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6
2586
2587 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2588 ac_clean_files=$ac_clean_files_save
2589 # Check the compiler produces executables we can run.  If not, either
2590 # the compiler is broken, or we cross compile.
2591 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2593 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2594 echo "${ECHO_T}$cross_compiling" >&6
2595
2596 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2597 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599   (eval $ac_link) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; then
2603   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2604 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2605 # work properly (i.e., refer to `conftest.exe'), while it won't with
2606 # `rm'.
2607 for ac_file in conftest.exe conftest conftest.*; do
2608   test -f "$ac_file" || continue
2609   case $ac_file in
2610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2611     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612           export ac_cv_exeext
2613           break;;
2614     * ) break;;
2615   esac
2616 done
2617 else
2618   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2619 See \`config.log' for more details." >&5
2620 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&2;}
2622    { (exit 1); exit 1; }; }
2623 fi
2624
2625 rm -f conftest$ac_cv_exeext
2626 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2627 echo "${ECHO_T}$ac_cv_exeext" >&6
2628
2629 rm -f conftest.$ac_ext
2630 EXEEXT=$ac_cv_exeext
2631 ac_exeext=$EXEEXT
2632 fi
2633 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2634 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2635 if test "${ac_cv_objext+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h.  */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h.  */
2644
2645 int
2646 main ()
2647 {
2648
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.o conftest.obj
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655   (eval $ac_compile) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; then
2659   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2660   case $ac_file in
2661     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2662     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2663        break;;
2664   esac
2665 done
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2671 See \`config.log' for more details." >&5
2672 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2673 See \`config.log' for more details." >&2;}
2674    { (exit 1); exit 1; }; }
2675 fi
2676
2677 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2678 fi
2679 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2680 echo "${ECHO_T}$ac_cv_objext" >&6
2681 OBJEXT=$ac_cv_objext
2682 ac_objext=$OBJEXT
2683 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2684 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2685 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2686   echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688   cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h.  */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h.  */
2694
2695 int
2696 main ()
2697 {
2698 #ifndef __GNUC__
2699        choke me
2700 #endif
2701
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708   (eval $ac_compile) 2>conftest.er1
2709   ac_status=$?
2710   grep -v '^ *+' conftest.er1 >conftest.err
2711   rm -f conftest.er1
2712   cat conftest.err >&5
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -z "$ac_c_werror_flag"
2716                          || test ! -s conftest.err'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; } &&
2722          { ac_try='test -s conftest.$ac_objext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   ac_compiler_gnu=yes
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 ac_compiler_gnu=no
2734 fi
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2737
2738 fi
2739 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2740 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2741 GCC=`test $ac_compiler_gnu = yes && echo yes`
2742 ac_test_CFLAGS=${CFLAGS+set}
2743 ac_save_CFLAGS=$CFLAGS
2744 CFLAGS="-g"
2745 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2746 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2747 if test "${ac_cv_prog_cc_g+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756
2757 int
2758 main ()
2759 {
2760
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>conftest.er1
2768   ac_status=$?
2769   grep -v '^ *+' conftest.er1 >conftest.err
2770   rm -f conftest.er1
2771   cat conftest.err >&5
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -z "$ac_c_werror_flag"
2775                          || test ! -s conftest.err'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; } &&
2781          { ac_try='test -s conftest.$ac_objext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   ac_cv_prog_cc_g=yes
2788 else
2789   echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 ac_cv_prog_cc_g=no
2793 fi
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 fi
2796 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2798 if test "$ac_test_CFLAGS" = set; then
2799   CFLAGS=$ac_save_CFLAGS
2800 elif test $ac_cv_prog_cc_g = yes; then
2801   if test "$GCC" = yes; then
2802     CFLAGS="-g -O2"
2803   else
2804     CFLAGS="-g"
2805   fi
2806 else
2807   if test "$GCC" = yes; then
2808     CFLAGS="-O2"
2809   else
2810     CFLAGS=
2811   fi
2812 fi
2813 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2814 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2815 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   ac_cv_prog_cc_stdc=no
2819 ac_save_CC=$CC
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826 #include <stdarg.h>
2827 #include <stdio.h>
2828 #include <sys/types.h>
2829 #include <sys/stat.h>
2830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2831 struct buf { int x; };
2832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2833 static char *e (p, i)
2834      char **p;
2835      int i;
2836 {
2837   return p[i];
2838 }
2839 static char *f (char * (*g) (char **, int), char **p, ...)
2840 {
2841   char *s;
2842   va_list v;
2843   va_start (v,p);
2844   s = g (p, va_arg (v,int));
2845   va_end (v);
2846   return s;
2847 }
2848
2849 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2850    function prototypes and stuff, but not '\xHH' hex character constants.
2851    These don't provoke an error unfortunately, instead are silently treated
2852    as 'x'.  The following induces an error, until -std1 is added to get
2853    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2854    array size at least.  It's necessary to write '\x00'==0 to get something
2855    that's true only with -std1.  */
2856 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2857
2858 int test (int i, double x);
2859 struct s1 {int (*f) (int a);};
2860 struct s2 {int (*f) (double a);};
2861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2862 int argc;
2863 char **argv;
2864 int
2865 main ()
2866 {
2867 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 # Don't try gcc -ansi; that turns off useful extensions and
2873 # breaks some systems' header files.
2874 # AIX                   -qlanglvl=ansi
2875 # Ultrix and OSF/1      -std1
2876 # HP-UX 10.20 and later -Ae
2877 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2878 # SVR4                  -Xc -D__EXTENSIONS__
2879 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2880 do
2881   CC="$ac_save_CC $ac_arg"
2882   rm -f conftest.$ac_objext
2883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2884   (eval $ac_compile) 2>conftest.er1
2885   ac_status=$?
2886   grep -v '^ *+' conftest.er1 >conftest.err
2887   rm -f conftest.er1
2888   cat conftest.err >&5
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); } &&
2891          { ac_try='test -z "$ac_c_werror_flag"
2892                          || test ! -s conftest.err'
2893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894   (eval $ac_try) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; } &&
2898          { ac_try='test -s conftest.$ac_objext'
2899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900   (eval $ac_try) 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; }; then
2904   ac_cv_prog_cc_stdc=$ac_arg
2905 break
2906 else
2907   echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2909
2910 fi
2911 rm -f conftest.err conftest.$ac_objext
2912 done
2913 rm -f conftest.$ac_ext conftest.$ac_objext
2914 CC=$ac_save_CC
2915
2916 fi
2917
2918 case "x$ac_cv_prog_cc_stdc" in
2919   x|xno)
2920     echo "$as_me:$LINENO: result: none needed" >&5
2921 echo "${ECHO_T}none needed" >&6 ;;
2922   *)
2923     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2924 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2925     CC="$CC $ac_cv_prog_cc_stdc" ;;
2926 esac
2927
2928 # Some people use a C++ compiler to compile C.  Since we use `exit',
2929 # in C++ we need to declare it.  In case someone uses the same compiler
2930 # for both compiling C and C++ we need to have the C++ compiler decide
2931 # the declaration of exit, since it's the most demanding environment.
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #ifndef __cplusplus
2934   choke me
2935 #endif
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939   (eval $ac_compile) 2>conftest.er1
2940   ac_status=$?
2941   grep -v '^ *+' conftest.er1 >conftest.err
2942   rm -f conftest.er1
2943   cat conftest.err >&5
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } &&
2946          { ac_try='test -z "$ac_c_werror_flag"
2947                          || test ! -s conftest.err'
2948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949   (eval $ac_try) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }; } &&
2953          { ac_try='test -s conftest.$ac_objext'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; }; then
2959   for ac_declaration in \
2960    '' \
2961    'extern "C" void std::exit (int) throw (); using std::exit;' \
2962    'extern "C" void std::exit (int); using std::exit;' \
2963    'extern "C" void exit (int) throw ();' \
2964    'extern "C" void exit (int);' \
2965    'void exit (int);'
2966 do
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973 $ac_declaration
2974 #include <stdlib.h>
2975 int
2976 main ()
2977 {
2978 exit (42);
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 rm -f conftest.$ac_objext
2984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985   (eval $ac_compile) 2>conftest.er1
2986   ac_status=$?
2987   grep -v '^ *+' conftest.er1 >conftest.err
2988   rm -f conftest.er1
2989   cat conftest.err >&5
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } &&
2992          { ac_try='test -z "$ac_c_werror_flag"
2993                          || test ! -s conftest.err'
2994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995   (eval $ac_try) 2>&5
2996   ac_status=$?
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); }; } &&
2999          { ac_try='test -s conftest.$ac_objext'
3000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001   (eval $ac_try) 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }; }; then
3005   :
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010 continue
3011 fi
3012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013   cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019 $ac_declaration
3020 int
3021 main ()
3022 {
3023 exit (42);
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030   (eval $ac_compile) 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } &&
3037          { ac_try='test -z "$ac_c_werror_flag"
3038                          || test ! -s conftest.err'
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); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046   (eval $ac_try) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; }; then
3050   break
3051 else
3052   echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 fi
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 done
3058 rm -f conftest*
3059 if test -n "$ac_declaration"; then
3060   echo '#ifdef __cplusplus' >>confdefs.h
3061   echo $ac_declaration      >>confdefs.h
3062   echo '#endif'             >>confdefs.h
3063 fi
3064
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 fi
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_ext=c
3072 ac_cpp='$CPP $CPPFLAGS'
3073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076 DEPDIR="${am__leading_dot}deps"
3077
3078           ac_config_commands="$ac_config_commands depfiles"
3079
3080
3081 am_make=${MAKE-make}
3082 cat > confinc << 'END'
3083 am__doit:
3084         @echo done
3085 .PHONY: am__doit
3086 END
3087 # If we don't find an include directive, just comment out the code.
3088 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3089 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3090 am__include="#"
3091 am__quote=
3092 _am_result=none
3093 # First try GNU make style include.
3094 echo "include confinc" > confmf
3095 # We grep out `Entering directory' and `Leaving directory'
3096 # messages which can occur if `w' ends up in MAKEFLAGS.
3097 # In particular we don't look at `^make:' because GNU make might
3098 # be invoked under some other name (usually "gmake"), in which
3099 # case it prints its new name instead of `make'.
3100 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3101    am__include=include
3102    am__quote=
3103    _am_result=GNU
3104 fi
3105 # Now try BSD make style include.
3106 if test "$am__include" = "#"; then
3107    echo '.include "confinc"' > confmf
3108    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3109       am__include=.include
3110       am__quote="\""
3111       _am_result=BSD
3112    fi
3113 fi
3114
3115
3116 echo "$as_me:$LINENO: result: $_am_result" >&5
3117 echo "${ECHO_T}$_am_result" >&6
3118 rm -f confinc confmf
3119
3120 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3121 if test "${enable_dependency_tracking+set}" = set; then
3122   enableval="$enable_dependency_tracking"
3123
3124 fi;
3125 if test "x$enable_dependency_tracking" != xno; then
3126   am_depcomp="$ac_aux_dir/depcomp"
3127   AMDEPBACKSLASH='\'
3128 fi
3129
3130
3131 if test "x$enable_dependency_tracking" != xno; then
3132   AMDEP_TRUE=
3133   AMDEP_FALSE='#'
3134 else
3135   AMDEP_TRUE='#'
3136   AMDEP_FALSE=
3137 fi
3138
3139
3140
3141
3142 depcc="$CC"   am_compiler_list=
3143
3144 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3145 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3146 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3150   # We make a subdir and do the tests there.  Otherwise we can end up
3151   # making bogus files that we don't know about and never remove.  For
3152   # instance it was reported that on HP-UX the gcc test will end up
3153   # making a dummy file named `D' -- because `-MD' means `put the output
3154   # in D'.
3155   mkdir conftest.dir
3156   # Copy depcomp to subdir because otherwise we won't find it if we're
3157   # using a relative directory.
3158   cp "$am_depcomp" conftest.dir
3159   cd conftest.dir
3160   # We will build objects and dependencies in a subdirectory because
3161   # it helps to detect inapplicable dependency modes.  For instance
3162   # both Tru64's cc and ICC support -MD to output dependencies as a
3163   # side effect of compilation, but ICC will put the dependencies in
3164   # the current directory while Tru64 will put them in the object
3165   # directory.
3166   mkdir sub
3167
3168   am_cv_CC_dependencies_compiler_type=none
3169   if test "$am_compiler_list" = ""; then
3170      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3171   fi
3172   for depmode in $am_compiler_list; do
3173     # Setup a source with many dependencies, because some compilers
3174     # like to wrap large dependency lists on column 80 (with \), and
3175     # we should not choose a depcomp mode which is confused by this.
3176     #
3177     # We need to recreate these files for each test, as the compiler may
3178     # overwrite some of them when testing with obscure command lines.
3179     # This happens at least with the AIX C compiler.
3180     : > sub/conftest.c
3181     for i in 1 2 3 4 5 6; do
3182       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3183       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3184       # Solaris 8's {/usr,}/bin/sh.
3185       touch sub/conftst$i.h
3186     done
3187     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3188
3189     case $depmode in
3190     nosideeffect)
3191       # after this tag, mechanisms are not by side-effect, so they'll
3192       # only be used when explicitly requested
3193       if test "x$enable_dependency_tracking" = xyes; then
3194         continue
3195       else
3196         break
3197       fi
3198       ;;
3199     none) break ;;
3200     esac
3201     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3202     # mode.  It turns out that the SunPro C++ compiler does not properly
3203     # handle `-M -o', and we need to detect this.
3204     if depmode=$depmode \
3205        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3206        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3207        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3208          >/dev/null 2>conftest.err &&
3209        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3210        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3211        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3212       # icc doesn't choke on unknown options, it will just issue warnings
3213       # or remarks (even with -Werror).  So we grep stderr for any message
3214       # that says an option was ignored or not supported.
3215       # When given -MP, icc 7.0 and 7.1 complain thusly:
3216       #   icc: Command line warning: ignoring option '-M'; no argument required
3217       # The diagnosis changed in icc 8.0:
3218       #   icc: Command line remark: option '-MP' not supported
3219       if (grep 'ignoring option' conftest.err ||
3220           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3221         am_cv_CC_dependencies_compiler_type=$depmode
3222         break
3223       fi
3224     fi
3225   done
3226
3227   cd ..
3228   rm -rf conftest.dir
3229 else
3230   am_cv_CC_dependencies_compiler_type=none
3231 fi
3232
3233 fi
3234 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3235 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3236 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3237
3238
3239
3240 if
3241   test "x$enable_dependency_tracking" != xno \
3242   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3243   am__fastdepCC_TRUE=
3244   am__fastdepCC_FALSE='#'
3245 else
3246   am__fastdepCC_TRUE='#'
3247   am__fastdepCC_FALSE=
3248 fi
3249
3250
3251
3252
3253
3254
3255 if test "x$GCC" != "xyes"; then
3256   { { echo "$as_me:$LINENO: error: libssp must be built with GCC" >&5
3257 echo "$as_me: error: libssp must be built with GCC" >&2;}
3258    { (exit 1); exit 1; }; }
3259 fi
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3266 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3267 # On Suns, sometimes $CPP names a directory.
3268 if test -n "$CPP" && test -d "$CPP"; then
3269   CPP=
3270 fi
3271 if test -z "$CPP"; then
3272   if test "${ac_cv_prog_CPP+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275       # Double quotes because CPP needs to be expanded
3276     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3277     do
3278       ac_preproc_ok=false
3279 for ac_c_preproc_warn_flag in '' yes
3280 do
3281   # Use a header file that comes with gcc, so configuring glibc
3282   # with a fresh cross-compiler works.
3283   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3284   # <limits.h> exists even on freestanding compilers.
3285   # On the NeXT, cc -E runs the code through the compiler's parser,
3286   # not just through cpp. "Syntax error" is here to catch this case.
3287   cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h.  */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h.  */
3293 #ifdef __STDC__
3294 # include <limits.h>
3295 #else
3296 # include <assert.h>
3297 #endif
3298                      Syntax error
3299 _ACEOF
3300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3302   ac_status=$?
3303   grep -v '^ *+' conftest.er1 >conftest.err
3304   rm -f conftest.er1
3305   cat conftest.err >&5
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); } >/dev/null; then
3308   if test -s conftest.err; then
3309     ac_cpp_err=$ac_c_preproc_warn_flag
3310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3311   else
3312     ac_cpp_err=
3313   fi
3314 else
3315   ac_cpp_err=yes
3316 fi
3317 if test -z "$ac_cpp_err"; then
3318   :
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323   # Broken: fails on valid input.
3324 continue
3325 fi
3326 rm -f conftest.err conftest.$ac_ext
3327
3328   # OK, works on sane cases.  Now check whether non-existent headers
3329   # can be detected and how.
3330   cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h.  */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h.  */
3336 #include <ac_nonexistent.h>
3337 _ACEOF
3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3340   ac_status=$?
3341   grep -v '^ *+' conftest.er1 >conftest.err
3342   rm -f conftest.er1
3343   cat conftest.err >&5
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } >/dev/null; then
3346   if test -s conftest.err; then
3347     ac_cpp_err=$ac_c_preproc_warn_flag
3348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3349   else
3350     ac_cpp_err=
3351   fi
3352 else
3353   ac_cpp_err=yes
3354 fi
3355 if test -z "$ac_cpp_err"; then
3356   # Broken: success on invalid input.
3357 continue
3358 else
3359   echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362   # Passes both tests.
3363 ac_preproc_ok=:
3364 break
3365 fi
3366 rm -f conftest.err conftest.$ac_ext
3367
3368 done
3369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3370 rm -f conftest.err conftest.$ac_ext
3371 if $ac_preproc_ok; then
3372   break
3373 fi
3374
3375     done
3376     ac_cv_prog_CPP=$CPP
3377
3378 fi
3379   CPP=$ac_cv_prog_CPP
3380 else
3381   ac_cv_prog_CPP=$CPP
3382 fi
3383 echo "$as_me:$LINENO: result: $CPP" >&5
3384 echo "${ECHO_T}$CPP" >&6
3385 ac_preproc_ok=false
3386 for ac_c_preproc_warn_flag in '' yes
3387 do
3388   # Use a header file that comes with gcc, so configuring glibc
3389   # with a fresh cross-compiler works.
3390   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3391   # <limits.h> exists even on freestanding compilers.
3392   # On the NeXT, cc -E runs the code through the compiler's parser,
3393   # not just through cpp. "Syntax error" is here to catch this case.
3394   cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h.  */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h.  */
3400 #ifdef __STDC__
3401 # include <limits.h>
3402 #else
3403 # include <assert.h>
3404 #endif
3405                      Syntax error
3406 _ACEOF
3407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } >/dev/null; then
3415   if test -s conftest.err; then
3416     ac_cpp_err=$ac_c_preproc_warn_flag
3417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418   else
3419     ac_cpp_err=
3420   fi
3421 else
3422   ac_cpp_err=yes
3423 fi
3424 if test -z "$ac_cpp_err"; then
3425   :
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430   # Broken: fails on valid input.
3431 continue
3432 fi
3433 rm -f conftest.err conftest.$ac_ext
3434
3435   # OK, works on sane cases.  Now check whether non-existent headers
3436   # can be detected and how.
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443 #include <ac_nonexistent.h>
3444 _ACEOF
3445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3447   ac_status=$?
3448   grep -v '^ *+' conftest.er1 >conftest.err
3449   rm -f conftest.er1
3450   cat conftest.err >&5
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } >/dev/null; then
3453   if test -s conftest.err; then
3454     ac_cpp_err=$ac_c_preproc_warn_flag
3455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456   else
3457     ac_cpp_err=
3458   fi
3459 else
3460   ac_cpp_err=yes
3461 fi
3462 if test -z "$ac_cpp_err"; then
3463   # Broken: success on invalid input.
3464 continue
3465 else
3466   echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469   # Passes both tests.
3470 ac_preproc_ok=:
3471 break
3472 fi
3473 rm -f conftest.err conftest.$ac_ext
3474
3475 done
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3479   :
3480 else
3481   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3482 See \`config.log' for more details." >&5
3483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details." >&2;}
3485    { (exit 1); exit 1; }; }
3486 fi
3487
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494
3495 echo "$as_me:$LINENO: checking whether -fstack-protector works" >&5
3496 echo $ECHO_N "checking whether -fstack-protector works... $ECHO_C" >&6
3497 save_CFLAGS="$CFLAGS"
3498 CFLAGS="$CFLAGS -fstack-protector -Werror"
3499
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506
3507 void __attribute__((noinline)) bar (char *x)
3508 {
3509   __builtin_memset (x, 0, 64);
3510 }
3511 int
3512 main ()
3513 {
3514 char buf[64]; bar (buf);
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 rm -f conftest.$ac_objext
3520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3521   (eval $ac_compile) 2>conftest.er1
3522   ac_status=$?
3523   grep -v '^ *+' conftest.er1 >conftest.err
3524   rm -f conftest.er1
3525   cat conftest.err >&5
3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); } &&
3528          { ac_try='test -z "$ac_c_werror_flag"
3529                          || test ! -s conftest.err'
3530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531   (eval $ac_try) 2>&5
3532   ac_status=$?
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); }; } &&
3535          { ac_try='test -s conftest.$ac_objext'
3536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537   (eval $ac_try) 2>&5
3538   ac_status=$?
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); }; }; then
3541   echo "$as_me:$LINENO: result: yes" >&5
3542 echo "${ECHO_T}yes" >&6
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3549 fi
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 CFLAGS="$save_CFLAGS"
3552
3553 echo "$as_me:$LINENO: checking whether hidden visibility is supported" >&5
3554 echo $ECHO_N "checking whether hidden visibility is supported... $ECHO_C" >&6
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h.  */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h.  */
3561
3562 void __attribute__((visibility ("hidden"))) bar (void) {}
3563 int
3564 main ()
3565 {
3566
3567   ;
3568   return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573   (eval $ac_compile) 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } &&
3580          { ac_try='test -z "$ac_c_werror_flag"
3581                          || test ! -s conftest.err'
3582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583   (eval $ac_try) 2>&5
3584   ac_status=$?
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); }; } &&
3587          { ac_try='test -s conftest.$ac_objext'
3588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589   (eval $ac_try) 2>&5
3590   ac_status=$?
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); }; }; then
3593   ssp_hidden=yes
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 ssp_hidden=no
3599 fi
3600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601 echo "$as_me:$LINENO: result: $ssp_hidden" >&5
3602 echo "${ECHO_T}$ssp_hidden" >&6
3603 if test x$ssp_hidden = xyes; then
3604
3605 cat >>confdefs.h <<\_ACEOF
3606 #define HAVE_HIDDEN_VISIBILITY 1
3607 _ACEOF
3608
3609 fi
3610
3611 echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3612 echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
3613 cat > conftest.map <<EOF
3614 FOO_1.0 {
3615   global: *foo*; bar; local: *;
3616 };
3617 EOF
3618 save_LDFLAGS="$LDFLAGS"
3619 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3620 if test x$gcc_no_link = xyes; then
3621   # If we cannot link, we cannot build shared libraries, so do not use
3622   # symbol versioning.
3623   ssp_use_symver=no
3624 else
3625   if test x$gcc_no_link = xyes; then
3626   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3628    { (exit 1); exit 1; }; }
3629 fi
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 int foo;
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.$ac_objext conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647   (eval $ac_link) 2>conftest.er1
3648   ac_status=$?
3649   grep -v '^ *+' conftest.er1 >conftest.err
3650   rm -f conftest.er1
3651   cat conftest.err >&5
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); } &&
3654          { ac_try='test -z "$ac_c_werror_flag"
3655                          || test ! -s conftest.err'
3656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657   (eval $ac_try) 2>&5
3658   ac_status=$?
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); }; } &&
3661          { ac_try='test -s conftest$ac_exeext'
3662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663   (eval $ac_try) 2>&5
3664   ac_status=$?
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); }; }; then
3667   ssp_use_symver=yes
3668 else
3669   echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672 ssp_use_symver=no
3673 fi
3674 rm -f conftest.err conftest.$ac_objext \
3675       conftest$ac_exeext conftest.$ac_ext
3676 fi
3677 LDFLAGS="$save_LDFLAGS"
3678 echo "$as_me:$LINENO: result: $ssp_use_symver" >&5
3679 echo "${ECHO_T}$ssp_use_symver" >&6
3680
3681
3682 if test "x$ssp_use_symver" = xyes; then
3683   LIBSSP_USE_SYMVER_TRUE=
3684   LIBSSP_USE_SYMVER_FALSE='#'
3685 else
3686   LIBSSP_USE_SYMVER_TRUE='#'
3687   LIBSSP_USE_SYMVER_FALSE=
3688 fi
3689
3690
3691
3692 echo "$as_me:$LINENO: checking for egrep" >&5
3693 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3694 if test "${ac_cv_prog_egrep+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3698     then ac_cv_prog_egrep='grep -E'
3699     else ac_cv_prog_egrep='egrep'
3700     fi
3701 fi
3702 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3703 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3704  EGREP=$ac_cv_prog_egrep
3705
3706
3707 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3708 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3709 if test "${ac_cv_header_stdc+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h.  */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h.  */
3718 #include <stdlib.h>
3719 #include <stdarg.h>
3720 #include <string.h>
3721 #include <float.h>
3722
3723 int
3724 main ()
3725 {
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733   (eval $ac_compile) 2>conftest.er1
3734   ac_status=$?
3735   grep -v '^ *+' conftest.er1 >conftest.err
3736   rm -f conftest.er1
3737   cat conftest.err >&5
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } &&
3740          { ac_try='test -z "$ac_c_werror_flag"
3741                          || test ! -s conftest.err'
3742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743   (eval $ac_try) 2>&5
3744   ac_status=$?
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); }; } &&
3747          { ac_try='test -s conftest.$ac_objext'
3748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749   (eval $ac_try) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); }; }; then
3753   ac_cv_header_stdc=yes
3754 else
3755   echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 ac_cv_header_stdc=no
3759 fi
3760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761
3762 if test $ac_cv_header_stdc = yes; then
3763   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3764   cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h.  */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h.  */
3770 #include <string.h>
3771
3772 _ACEOF
3773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3774   $EGREP "memchr" >/dev/null 2>&1; then
3775   :
3776 else
3777   ac_cv_header_stdc=no
3778 fi
3779 rm -f conftest*
3780
3781 fi
3782
3783 if test $ac_cv_header_stdc = yes; then
3784   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3785   cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791 #include <stdlib.h>
3792
3793 _ACEOF
3794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795   $EGREP "free" >/dev/null 2>&1; then
3796   :
3797 else
3798   ac_cv_header_stdc=no
3799 fi
3800 rm -f conftest*
3801
3802 fi
3803
3804 if test $ac_cv_header_stdc = yes; then
3805   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3806   if test "$cross_compiling" = yes; then
3807   :
3808 else
3809   cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h.  */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h.  */
3815 #include <ctype.h>
3816 #if ((' ' & 0x0FF) == 0x020)
3817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3819 #else
3820 # define ISLOWER(c) \
3821                    (('a' <= (c) && (c) <= 'i') \
3822                      || ('j' <= (c) && (c) <= 'r') \
3823                      || ('s' <= (c) && (c) <= 'z'))
3824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3825 #endif
3826
3827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3828 int
3829 main ()
3830 {
3831   int i;
3832   for (i = 0; i < 256; i++)
3833     if (XOR (islower (i), ISLOWER (i))
3834         || toupper (i) != TOUPPER (i))
3835       exit(2);
3836   exit (0);
3837 }
3838 _ACEOF
3839 rm -f conftest$ac_exeext
3840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841   (eval $ac_link) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846   (eval $ac_try) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; }; then
3850   :
3851 else
3852   echo "$as_me: program exited with status $ac_status" >&5
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 ( exit $ac_status )
3857 ac_cv_header_stdc=no
3858 fi
3859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3860 fi
3861 fi
3862 fi
3863 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3864 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3865 if test $ac_cv_header_stdc = yes; then
3866
3867 cat >>confdefs.h <<\_ACEOF
3868 #define STDC_HEADERS 1
3869 _ACEOF
3870
3871 fi
3872
3873 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3884                   inttypes.h stdint.h unistd.h
3885 do
3886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3887 echo "$as_me:$LINENO: checking for $ac_header" >&5
3888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898 $ac_includes_default
3899
3900 #include <$ac_header>
3901 _ACEOF
3902 rm -f conftest.$ac_objext
3903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904   (eval $ac_compile) 2>conftest.er1
3905   ac_status=$?
3906   grep -v '^ *+' conftest.er1 >conftest.err
3907   rm -f conftest.er1
3908   cat conftest.err >&5
3909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910   (exit $ac_status); } &&
3911          { ac_try='test -z "$ac_c_werror_flag"
3912                          || test ! -s conftest.err'
3913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914   (eval $ac_try) 2>&5
3915   ac_status=$?
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); }; } &&
3918          { ac_try='test -s conftest.$ac_objext'
3919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920   (eval $ac_try) 2>&5
3921   ac_status=$?
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); }; }; then
3924   eval "$as_ac_Header=yes"
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 eval "$as_ac_Header=no"
3930 fi
3931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932 fi
3933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3936   cat >>confdefs.h <<_ACEOF
3937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3938 _ACEOF
3939
3940 fi
3941
3942 done
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953 for ac_header in alloca.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
3954 do
3955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3957   echo "$as_me:$LINENO: checking for $ac_header" >&5
3958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 fi
3962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3964 else
3965   # Is the header compilable?
3966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h.  */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h.  */
3974 $ac_includes_default
3975 #include <$ac_header>
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979   (eval $ac_compile) 2>conftest.er1
3980   ac_status=$?
3981   grep -v '^ *+' conftest.er1 >conftest.err
3982   rm -f conftest.er1
3983   cat conftest.err >&5
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); } &&
3986          { ac_try='test -z "$ac_c_werror_flag"
3987                          || test ! -s conftest.err'
3988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989   (eval $ac_try) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; } &&
3993          { ac_try='test -s conftest.$ac_objext'
3994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995   (eval $ac_try) 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); }; }; then
3999   ac_header_compiler=yes
4000 else
4001   echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 ac_header_compiler=no
4005 fi
4006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4008 echo "${ECHO_T}$ac_header_compiler" >&6
4009
4010 # Is the header present?
4011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4013 cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h.  */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h.  */
4019 #include <$ac_header>
4020 _ACEOF
4021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4022   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4023   ac_status=$?
4024   grep -v '^ *+' conftest.er1 >conftest.err
4025   rm -f conftest.er1
4026   cat conftest.err >&5
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } >/dev/null; then
4029   if test -s conftest.err; then
4030     ac_cpp_err=$ac_c_preproc_warn_flag
4031     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4032   else
4033     ac_cpp_err=
4034   fi
4035 else
4036   ac_cpp_err=yes
4037 fi
4038 if test -z "$ac_cpp_err"; then
4039   ac_header_preproc=yes
4040 else
4041   echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044   ac_header_preproc=no
4045 fi
4046 rm -f conftest.err conftest.$ac_ext
4047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4048 echo "${ECHO_T}$ac_header_preproc" >&6
4049
4050 # So?  What about this header?
4051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4052   yes:no: )
4053     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4057     ac_header_preproc=yes
4058     ;;
4059   no:yes:* )
4060     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4062     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4063 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4064     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4066     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4067 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4070     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4072     (
4073       cat <<\_ASBOX
4074 ## --------------------------------- ##
4075 ## Report this to the libssp lists.  ##
4076 ## --------------------------------- ##
4077 _ASBOX
4078     ) |
4079       sed "s/^/$as_me: WARNING:     /" >&2
4080     ;;
4081 esac
4082 echo "$as_me:$LINENO: checking for $ac_header" >&5
4083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   eval "$as_ac_Header=\$ac_header_preproc"
4088 fi
4089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4091
4092 fi
4093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4094   cat >>confdefs.h <<_ACEOF
4095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4096 _ACEOF
4097
4098 fi
4099
4100 done
4101
4102
4103 if test x$gcc_no_link = xyes; then
4104   # Presume the ISO C functions are available; add target-specific
4105   # configuration here if required.
4106   cat >>confdefs.h <<\_ACEOF
4107 #define HAVE_STRNCPY 1
4108 _ACEOF
4109
4110   cat >>confdefs.h <<\_ACEOF
4111 #define HAVE_STRNCAT 1
4112 _ACEOF
4113
4114 else
4115
4116
4117
4118 for ac_func in mempcpy strncpy strncat
4119 do
4120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4121 echo "$as_me:$LINENO: checking for $ac_func" >&5
4122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4123 if eval "test \"\${$as_ac_var+set}\" = set"; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   if test x$gcc_no_link = xyes; then
4127   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4129    { (exit 1); exit 1; }; }
4130 fi
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4139 #define $ac_func innocuous_$ac_func
4140
4141 /* System header to define __stub macros and hopefully few prototypes,
4142     which can conflict with char $ac_func (); below.
4143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144     <limits.h> exists even on freestanding compilers.  */
4145
4146 #ifdef __STDC__
4147 # include <limits.h>
4148 #else
4149 # include <assert.h>
4150 #endif
4151
4152 #undef $ac_func
4153
4154 /* Override any gcc2 internal prototype to avoid an error.  */
4155 #ifdef __cplusplus
4156 extern "C"
4157 {
4158 #endif
4159 /* We use char because int might match the return type of a gcc2
4160    builtin and then its argument prototype would still apply.  */
4161 char $ac_func ();
4162 /* The GNU C library defines this for functions which it implements
4163     to always fail with ENOSYS.  Some functions are actually named
4164     something starting with __ and the normal name is an alias.  */
4165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4166 choke me
4167 #else
4168 char (*f) () = $ac_func;
4169 #endif
4170 #ifdef __cplusplus
4171 }
4172 #endif
4173
4174 int
4175 main ()
4176 {
4177 return f != $ac_func;
4178   ;
4179   return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest.$ac_objext conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184   (eval $ac_link) 2>conftest.er1
4185   ac_status=$?
4186   grep -v '^ *+' conftest.er1 >conftest.err
4187   rm -f conftest.er1
4188   cat conftest.err >&5
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); } &&
4191          { ac_try='test -z "$ac_c_werror_flag"
4192                          || test ! -s conftest.err'
4193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194   (eval $ac_try) 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); }; } &&
4198          { ac_try='test -s conftest$ac_exeext'
4199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200   (eval $ac_try) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; }; then
4204   eval "$as_ac_var=yes"
4205 else
4206   echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209 eval "$as_ac_var=no"
4210 fi
4211 rm -f conftest.err conftest.$ac_objext \
4212       conftest$ac_exeext conftest.$ac_ext
4213 fi
4214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4216 if test `eval echo '${'$as_ac_var'}'` = yes; then
4217   cat >>confdefs.h <<_ACEOF
4218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4219 _ACEOF
4220
4221 fi
4222 done
4223
4224 fi
4225
4226 echo "$as_me:$LINENO: checking whether vsnprintf is usable" >&5
4227 echo $ECHO_N "checking whether vsnprintf is usable... $ECHO_C" >&6
4228 if test "$cross_compiling" = yes; then
4229   ssp_have_usable_vsnprintf=undef
4230 else
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237
4238 #include <stdarg.h>
4239 #include <string.h>
4240 #include <stdio.h>
4241 int foo (char *buf, size_t n, const char *fmt, ...)
4242 {
4243   va_list ap;
4244   int ret;
4245   va_start (ap, fmt);
4246   ret = vsnprintf (buf, n, fmt, ap);
4247   va_end (ap);
4248   return ret;
4249 }
4250 int
4251 main ()
4252 {
4253 char buf[8]; memset (buf, 'A', sizeof (buf));
4254  if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4255    return 1;
4256  return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4257   ;
4258   return 0;
4259 }
4260 _ACEOF
4261 rm -f conftest$ac_exeext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263   (eval $ac_link) 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268   (eval $ac_try) 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; }; then
4272   ssp_have_usable_vsnprintf=define
4273 else
4274   echo "$as_me: program exited with status $ac_status" >&5
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 ( exit $ac_status )
4279 ssp_have_usable_vsnprintf=undef
4280 fi
4281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4282 fi
4283 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4284   echo "$as_me:$LINENO: result: yes" >&5
4285 echo "${ECHO_T}yes" >&6
4286
4287 cat >>confdefs.h <<\_ACEOF
4288 #define HAVE_USABLE_VSNPRINTF 1
4289 _ACEOF
4290
4291 else
4292   echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6
4294 fi
4295
4296
4297
4298
4299 macro_version='2.1a'
4300 macro_revision='1.2435'
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313 ltmain="$ac_aux_dir/ltmain.sh"
4314
4315 # Set options
4316
4317 enable_dlopen=no
4318
4319
4320 enable_win32_dll=no
4321
4322
4323 # Check whether --enable-shared or --disable-shared was given.
4324 if test "${enable_shared+set}" = set; then
4325   enableval="$enable_shared"
4326   p=${PACKAGE-default}
4327     case $enableval in
4328     yes) enable_shared=yes ;;
4329     no) enable_shared=no ;;
4330     *)
4331       enable_shared=no
4332       # Look at the argument we got.  We use all the common list separators.
4333       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4334       for pkg in $enableval; do
4335         IFS="$lt_save_ifs"
4336         if test "X$pkg" = "X$p"; then
4337           enable_shared=yes
4338         fi
4339       done
4340       IFS="$lt_save_ifs"
4341       ;;
4342     esac
4343 else
4344   enable_shared=yes
4345 fi;
4346
4347
4348
4349
4350
4351
4352
4353
4354 # Check whether --enable-static or --disable-static was given.
4355 if test "${enable_static+set}" = set; then
4356   enableval="$enable_static"
4357   p=${PACKAGE-default}
4358     case $enableval in
4359     yes) enable_static=yes ;;
4360     no) enable_static=no ;;
4361     *)
4362      enable_static=no
4363       # Look at the argument we got.  We use all the common list separators.
4364       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4365       for pkg in $enableval; do
4366         IFS="$lt_save_ifs"
4367         if test "X$pkg" = "X$p"; then
4368           enable_static=yes
4369         fi
4370       done
4371       IFS="$lt_save_ifs"
4372       ;;
4373     esac
4374 else
4375   enable_static=yes
4376 fi;
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386 # Check whether --with-pic or --without-pic was given.
4387 if test "${with_pic+set}" = set; then
4388   withval="$with_pic"
4389   pic_mode="$withval"
4390 else
4391   pic_mode=default
4392 fi;
4393
4394 test -z "$pic_mode" && pic_mode=default
4395
4396
4397
4398
4399
4400
4401
4402 # Check whether --enable-fast-install or --disable-fast-install was given.
4403 if test "${enable_fast_install+set}" = set; then
4404   enableval="$enable_fast_install"
4405   p=${PACKAGE-default}
4406     case $enableval in
4407     yes) enable_fast_install=yes ;;
4408     no) enable_fast_install=no ;;
4409     *)
4410       enable_fast_install=no
4411       # Look at the argument we got.  We use all the common list separators.
4412       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4413       for pkg in $enableval; do
4414         IFS="$lt_save_ifs"
4415         if test "X$pkg" = "X$p"; then
4416           enable_fast_install=yes
4417         fi
4418       done
4419       IFS="$lt_save_ifs"
4420       ;;
4421     esac
4422 else
4423   enable_fast_install=yes
4424 fi;
4425
4426
4427
4428
4429
4430
4431
4432
4433 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4434 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4435 if test "${lt_cv_path_SED+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   # Loop through the user's path and test for sed and gsed.
4439 # Then use that list of sed's as ones to test for truncation.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for lt_ac_prog in sed gsed; do
4446     for ac_exec_ext in '' $ac_executable_extensions; do
4447       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4448         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4449       fi
4450     done
4451   done
4452 done
4453 IFS=$as_save_IFS
4454 lt_ac_max=0
4455 lt_ac_count=0
4456 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4457 # along with /bin/sed that truncates output.
4458 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4459   test ! -f $lt_ac_sed && continue
4460   cat /dev/null > conftest.in
4461   lt_ac_count=0
4462   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4463   # Check for GNU sed and select it if it is found.
4464   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4465     lt_cv_path_SED=$lt_ac_sed
4466     break
4467   fi
4468   while true; do
4469     cat conftest.in conftest.in >conftest.tmp
4470     mv conftest.tmp conftest.in
4471     cp conftest.in conftest.nl
4472     echo >>conftest.nl
4473     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4474     cmp -s conftest.out conftest.nl || break
4475     # 10000 chars as input seems more than enough
4476     test $lt_ac_count -gt 10 && break
4477     lt_ac_count=`expr $lt_ac_count + 1`
4478     if test $lt_ac_count -gt $lt_ac_max; then
4479       lt_ac_max=$lt_ac_count
4480       lt_cv_path_SED=$lt_ac_sed
4481     fi
4482   done
4483 done
4484
4485 fi
4486
4487 SED=$lt_cv_path_SED
4488
4489 echo "$as_me:$LINENO: result: $SED" >&5
4490 echo "${ECHO_T}$SED" >&6
4491
4492 test -z "$SED" && SED=sed
4493 Xsed="$SED -e 1s/^X//"
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 echo "$as_me:$LINENO: checking for fgrep" >&5
4506 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4507 if test "${ac_cv_prog_fgrep+set}" = set; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4511     then ac_cv_prog_fgrep='grep -F'
4512     else ac_cv_prog_fgrep='fgrep'
4513     fi
4514 fi
4515 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4516 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4517  FGREP=$ac_cv_prog_fgrep
4518
4519
4520 test -z "$GREP" && GREP=grep
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4541 if test "${with_gnu_ld+set}" = set; then
4542   withval="$with_gnu_ld"
4543   test "$withval" = no || with_gnu_ld=yes
4544 else
4545   with_gnu_ld=no
4546 fi;
4547 ac_prog=ld
4548 if test "$GCC" = yes; then
4549   # Check if gcc -print-prog-name=ld gives a path.
4550   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4551 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4552   case $host in
4553   *-*-mingw*)
4554     # gcc leaves a trailing carriage return which upsets mingw
4555     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4556   *)
4557     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4558   esac
4559   case $ac_prog in
4560     # Accept absolute paths.
4561     [\\/]* | ?:[\\/]*)
4562       re_direlt='/[^/][^/]*/\.\./'
4563       # Canonicalize the pathname of ld
4564       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4565       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4566         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4567       done
4568       test -z "$LD" && LD="$ac_prog"
4569       ;;
4570   "")
4571     # If it fails, then pretend we aren't using GCC.
4572     ac_prog=ld
4573     ;;
4574   *)
4575     # If it is relative, then search for the first ld in PATH.
4576     with_gnu_ld=unknown
4577     ;;
4578   esac
4579 elif test "$with_gnu_ld" = yes; then
4580   echo "$as_me:$LINENO: checking for GNU ld" >&5
4581 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4582 else
4583   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4584 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4585 fi
4586 if test "${lt_cv_path_LD+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   if test -z "$LD"; then
4590   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4591   for ac_dir in $PATH; do
4592     IFS="$lt_save_ifs"
4593     test -z "$ac_dir" && ac_dir=.
4594     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4595       lt_cv_path_LD="$ac_dir/$ac_prog"
4596       # Check to see if the program is GNU ld.  I'd rather use --version,
4597       # but apparently some variants of GNU ld only accept -v.
4598       # Break only if it was the GNU/non-GNU ld that we prefer.
4599       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4600       *GNU* | *'with BFD'*)
4601         test "$with_gnu_ld" != no && break
4602         ;;
4603       *)
4604         test "$with_gnu_ld" != yes && break
4605         ;;
4606       esac
4607     fi
4608   done
4609   IFS="$lt_save_ifs"
4610 else
4611   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4612 fi
4613 fi
4614
4615 LD="$lt_cv_path_LD"
4616 if test -n "$LD"; then
4617   echo "$as_me:$LINENO: result: $LD" >&5
4618 echo "${ECHO_T}$LD" >&6
4619 else
4620   echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6
4622 fi
4623 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4624 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4625    { (exit 1); exit 1; }; }
4626 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4627 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4628 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4632 case `$LD -v 2>&1 </dev/null` in
4633 *GNU* | *'with BFD'*)
4634   lt_cv_prog_gnu_ld=yes
4635   ;;
4636 *)
4637   lt_cv_prog_gnu_ld=no
4638   ;;
4639 esac
4640 fi
4641 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4642 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4643 with_gnu_ld=$lt_cv_prog_gnu_ld
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4655 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4656 if test "${lt_cv_path_NM+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   if test -n "$NM"; then
4660   # Let the user override the test.
4661   lt_cv_path_NM="$NM"
4662 else
4663   lt_nm_to_check="${ac_tool_prefix}nm"
4664   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4665     lt_nm_to_check="$lt_nm_to_check nm"
4666   fi
4667   for lt_tmp_nm in $lt_nm_to_check; do
4668     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4669     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4670       IFS="$lt_save_ifs"
4671       test -z "$ac_dir" && ac_dir=.
4672       tmp_nm="$ac_dir/$lt_tmp_nm"
4673       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4674         # Check to see if the nm accepts a BSD-compat flag.
4675         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4676         #   nm: unknown option "B" ignored
4677         # Tru64's nm complains that /dev/null is an invalid object file
4678         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4679         */dev/null* | *'Invalid file or object type'*)
4680           lt_cv_path_NM="$tmp_nm -B"
4681           break
4682           ;;
4683         *)
4684           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4685           */dev/null*)
4686             lt_cv_path_NM="$tmp_nm -p"
4687             break
4688             ;;
4689           *)
4690             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4691             continue # so that we can try to find one that supports BSD flags
4692             ;;
4693           esac
4694           ;;
4695         esac
4696       fi
4697     done
4698     IFS="$lt_save_ifs"
4699   done
4700   : ${lt_cv_path_NM=no}
4701 fi
4702 fi
4703 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4704 echo "${ECHO_T}$lt_cv_path_NM" >&6
4705 if test "$lt_cv_path_NM" != "no"; then
4706   NM="$lt_cv_path_NM"
4707 else
4708   # Didn't find any BSD compatible name lister, look for dumpbin.
4709   if test -n "$ac_tool_prefix"; then
4710   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4711   do
4712     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4714 echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4717   echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719   if test -n "$DUMPBIN"; then
4720   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725   IFS=$as_save_IFS
4726   test -z "$as_dir" && as_dir=.
4727   for ac_exec_ext in '' $ac_executable_extensions; do
4728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731     break 2
4732   fi
4733 done
4734 done
4735
4736 fi
4737 fi
4738 DUMPBIN=$ac_cv_prog_DUMPBIN
4739 if test -n "$DUMPBIN"; then
4740   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4741 echo "${ECHO_T}$DUMPBIN" >&6
4742 else
4743   echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6
4745 fi
4746
4747     test -n "$DUMPBIN" && break
4748   done
4749 fi
4750 if test -z "$DUMPBIN"; then
4751   ac_ct_DUMPBIN=$DUMPBIN
4752   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4753 do
4754   # Extract the first word of "$ac_prog", so it can be a program name with args.
4755 set dummy $ac_prog; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   if test -n "$ac_ct_DUMPBIN"; then
4762   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769   for ac_exec_ext in '' $ac_executable_extensions; do
4770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777
4778 fi
4779 fi
4780 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4781 if test -n "$ac_ct_DUMPBIN"; then
4782   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4783 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4784 else
4785   echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6
4787 fi
4788
4789   test -n "$ac_ct_DUMPBIN" && break
4790 done
4791 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4792
4793   DUMPBIN=$ac_ct_DUMPBIN
4794 fi
4795
4796
4797   if test "$DUMPBIN" != ":"; then
4798     NM="$DUMPBIN"
4799   fi
4800 fi
4801 test -z "$NM" && NM=nm
4802
4803
4804
4805
4806
4807
4808 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4809 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4810 if test "${lt_cv_nm_interface+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   lt_cv_nm_interface="BSD nm"
4814   echo "int some_variable = 0;" > conftest.$ac_ext
4815   (eval echo "\"\$as_me:4815: $ac_compile\"" >&5)
4816   (eval "$ac_compile" 2>conftest.err)
4817   cat conftest.err >&5
4818   (eval echo "\"\$as_me:4818: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4819   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4820   cat conftest.err >&5
4821   (eval echo "\"\$as_me:4821: output\"" >&5)
4822   cat conftest.out >&5
4823   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4824     lt_cv_nm_interface="MS dumpbin"
4825   fi
4826   rm -f conftest*
4827 fi
4828 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4829 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4830
4831 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4832 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4833 LN_S=$as_ln_s
4834 if test "$LN_S" = "ln -s"; then
4835   echo "$as_me:$LINENO: result: yes" >&5
4836 echo "${ECHO_T}yes" >&6
4837 else
4838   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4839 echo "${ECHO_T}no, using $LN_S" >&6
4840 fi
4841
4842 # find the maximum length of command line arguments
4843 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4844 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4845 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848     i=0
4849   teststring="ABCD"
4850
4851   case $build_os in
4852   msdosdjgpp*)
4853     # On DJGPP, this test can blow up pretty badly due to problems in libc
4854     # (any single argument exceeding 2000 bytes causes a buffer overrun
4855     # during glob expansion).  Even if it were fixed, the result of this
4856     # check would be larger than it should be.
4857     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4858     ;;
4859
4860   gnu*)
4861     # Under GNU Hurd, this test is not required because there is
4862     # no limit to the length of command line arguments.
4863     # Libtool will interpret -1 as no limit whatsoever
4864     lt_cv_sys_max_cmd_len=-1;
4865     ;;
4866
4867   cygwin* | mingw*)
4868     # On Win9x/ME, this test blows up -- it succeeds, but takes
4869     # about 5 minutes as the teststring grows exponentially.
4870     # Worse, since 9x/ME are not pre-emptively multitasking,
4871     # you end up with a "frozen" computer, even though with patience
4872     # the test eventually succeeds (with a max line length of 256k).
4873     # Instead, let's just punt: use the minimum linelength reported by
4874     # all of the supported platforms: 8192 (on NT/2K/XP).
4875     lt_cv_sys_max_cmd_len=8192;
4876     ;;
4877
4878   amigaos*)
4879     # On AmigaOS with pdksh, this test takes hours, literally.
4880     # So we just punt and use a minimum line length of 8192.
4881     lt_cv_sys_max_cmd_len=8192;
4882     ;;
4883
4884   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4885     # This has been around since 386BSD, at least.  Likely further.
4886     if test -x /sbin/sysctl; then
4887       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4888     elif test -x /usr/sbin/sysctl; then
4889       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4890     else
4891       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4892     fi
4893     # And add a safety zone
4894     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4895     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4896     ;;
4897
4898   interix*)
4899     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4900     lt_cv_sys_max_cmd_len=196608
4901     ;;
4902
4903   osf*)
4904     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4905     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4906     # nice to cause kernel panics so lets avoid the loop below.
4907     # First set a reasonable default.
4908     lt_cv_sys_max_cmd_len=16384
4909     #
4910     if test -x /sbin/sysconfig; then
4911       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4912         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4913       esac
4914     fi
4915     ;;
4916   sco3.2v5*)
4917     lt_cv_sys_max_cmd_len=102400
4918     ;;
4919   sysv5* | sco5v6* | sysv4.2uw2*)
4920     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4921     if test -n "$kargmax"; then
4922       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4923     else
4924       lt_cv_sys_max_cmd_len=32768
4925     fi
4926     ;;
4927   *)
4928     # Make teststring a little bigger before we do anything with it.
4929     # a 1K string should be a reasonable start.
4930     for i in 1 2 3 4 5 6 7 8 ; do
4931       teststring=$teststring$teststring
4932     done
4933     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4934     # If test is not a shell built-in, we'll probably end up computing a
4935     # maximum length that is only half of the actual maximum length, but
4936     # we can't tell.
4937     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4938                = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4939             test $i != 17 # 1/2 MB should be enough
4940     do
4941       i=`expr $i + 1`
4942       teststring=$teststring$teststring
4943     done
4944     # Only check the string length outside the loop.
4945     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4946     teststring=
4947     # Add a significant safety factor because C++ compilers can tack on massive
4948     # amounts of additional arguments before passing them to the linker.
4949     # It appears as though 1/2 is a usable value.
4950     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4951     ;;
4952   esac
4953
4954 fi
4955
4956 if test -n $lt_cv_sys_max_cmd_len ; then
4957   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4958 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4959 else
4960   echo "$as_me:$LINENO: result: none" >&5
4961 echo "${ECHO_T}none" >&6
4962 fi
4963 max_cmd_len=$lt_cv_sys_max_cmd_len
4964
4965
4966
4967
4968
4969
4970
4971 : ${CP="cp -f"}
4972 : ${MV="mv -f"}
4973 : ${RM="rm -f"}
4974
4975 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4976 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4977 # Try some XSI features
4978 xsi_shell=no
4979 ( _lt_dummy="a/b/c"
4980   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4981       = c,a/b,, ) >/dev/null 2>&1 \
4982   && xsi_shell=yes
4983 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4984 echo "${ECHO_T}$xsi_shell" >&6
4985
4986
4987 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4988 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4989 lt_shell_append=no
4990 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4991     >/dev/null 2>&1 \
4992   && lt_shell_append=yes
4993 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4994 echo "${ECHO_T}$lt_shell_append" >&6
4995
4996
4997 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4998   lt_unset=unset
4999 else
5000   lt_unset=false
5001 fi
5002
5003
5004
5005
5006
5007 # test EBCDIC or ASCII
5008 case `echo X|tr X '\101'` in
5009  A) # ASCII based system
5010     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5011   lt_SP2NL='tr \040 \012'
5012   lt_NL2SP='tr \015\012 \040\040'
5013   ;;
5014  *) # EBCDIC based system
5015   lt_SP2NL='tr \100 \n'
5016   lt_NL2SP='tr \r\n \100\100'
5017   ;;
5018 esac
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5029 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5030 if test "${lt_cv_ld_reload_flag+set}" = set; then
5031   echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033   lt_cv_ld_reload_flag='-r'
5034 fi
5035 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5036 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5037 reload_flag=$lt_cv_ld_reload_flag
5038 case $reload_flag in
5039 "" | " "*) ;;
5040 *) reload_flag=" $reload_flag" ;;
5041 esac
5042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5043 case $host_os in
5044   darwin*)
5045     if test "$GCC" = yes; then
5046       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5047     else
5048       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5049     fi
5050     ;;
5051 esac
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5063 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5064 if test "${lt_cv_deplibs_check_method+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   lt_cv_file_magic_cmd='$MAGIC_CMD'
5068 lt_cv_file_magic_test_file=
5069 lt_cv_deplibs_check_method='unknown'
5070 # Need to set the preceding variable on all platforms that support
5071 # interlibrary dependencies.
5072 # 'none' -- dependencies not supported.
5073 # `unknown' -- same as none, but documents that we really don't know.
5074 # 'pass_all' -- all dependencies passed with no checks.
5075 # 'test_compile' -- check by making test program.
5076 # 'file_magic [[regex]]' -- check by looking for files in library path
5077 # which responds to the $file_magic_cmd with a given extended regex.
5078 # If you have `file' or equivalent on your system and you're not sure
5079 # whether `pass_all' will *always* work, you probably want this one.
5080
5081 case $host_os in
5082 aix4* | aix5*)
5083   lt_cv_deplibs_check_method=pass_all
5084   ;;
5085
5086 beos*)
5087   lt_cv_deplibs_check_method=pass_all
5088   ;;
5089
5090 bsdi[45]*)
5091   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5092   lt_cv_file_magic_cmd='/usr/bin/file -L'
5093   lt_cv_file_magic_test_file=/shlib/libc.so
5094   ;;
5095
5096 cygwin*)
5097   # func_win32_libid is a shell function defined in ltmain.sh
5098   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5099   lt_cv_file_magic_cmd='func_win32_libid'
5100   ;;
5101
5102 mingw* | pw32*)
5103   # Base MSYS/MinGW do not provide the 'file' command needed by
5104   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5105   # unless we find 'file', for example because we are cross-compiling.
5106   if ( file / ) >/dev/null 2>&1; then
5107     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5108     lt_cv_file_magic_cmd='func_win32_libid'
5109   else
5110     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5111     lt_cv_file_magic_cmd='$OBJDUMP -f'
5112   fi
5113   ;;
5114
5115 darwin* | rhapsody*)
5116   lt_cv_deplibs_check_method=pass_all
5117   ;;
5118
5119 freebsd* | dragonfly*)
5120   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5121     case $host_cpu in
5122     i*86 )
5123       # Not sure whether the presence of OpenBSD here was a mistake.
5124       # Let's accept both of them until this is cleared up.
5125       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5126       lt_cv_file_magic_cmd=/usr/bin/file
5127       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5128       ;;
5129     esac
5130   else
5131     lt_cv_deplibs_check_method=pass_all
5132   fi
5133   ;;
5134
5135 gnu*)
5136   lt_cv_deplibs_check_method=pass_all
5137   ;;
5138
5139 hpux10.20* | hpux11*)
5140   lt_cv_file_magic_cmd=/usr/bin/file
5141   case $host_cpu in
5142   ia64*)
5143     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5144     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5145     ;;
5146   hppa*64*)
5147     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]'
5148     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5149     ;;
5150   *)
5151     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5152     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5153     ;;
5154   esac
5155   ;;
5156
5157 interix[3-9]*)
5158   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5159   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5160   ;;
5161
5162 irix5* | irix6* | nonstopux*)
5163   case $LD in
5164   *-32|*"-32 ") libmagic=32-bit;;
5165   *-n32|*"-n32 ") libmagic=N32;;
5166   *-64|*"-64 ") libmagic=64-bit;;
5167   *) libmagic=never-match;;
5168   esac
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 # This must be Linux ELF.
5173 linux* | k*bsd*-gnu)
5174   lt_cv_deplibs_check_method=pass_all
5175   ;;
5176
5177 netbsd*)
5178   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5179     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5180   else
5181     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5182   fi
5183   ;;
5184
5185 newos6*)
5186   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5187   lt_cv_file_magic_cmd=/usr/bin/file
5188   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5189   ;;
5190
5191 *nto* | *qnx*)
5192   lt_cv_deplibs_check_method=pass_all
5193   ;;
5194
5195 openbsd*)
5196   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5197     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5198   else
5199     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5200   fi
5201   ;;
5202
5203 osf3* | osf4* | osf5*)
5204   lt_cv_deplibs_check_method=pass_all
5205   ;;
5206
5207 rdos*)
5208   lt_cv_deplibs_check_method=pass_all
5209   ;;
5210
5211 solaris*)
5212   lt_cv_deplibs_check_method=pass_all
5213   ;;
5214
5215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5216   lt_cv_deplibs_check_method=pass_all
5217   ;;
5218
5219 sysv4 | sysv4.3*)
5220   case $host_vendor in
5221   motorola)
5222     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]'
5223     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5224     ;;
5225   ncr)
5226     lt_cv_deplibs_check_method=pass_all
5227     ;;
5228   sequent)
5229     lt_cv_file_magic_cmd='/bin/file'
5230     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5231     ;;
5232   sni)
5233     lt_cv_file_magic_cmd='/bin/file'
5234     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5235     lt_cv_file_magic_test_file=/lib/libc.so
5236     ;;
5237   siemens)
5238     lt_cv_deplibs_check_method=pass_all
5239     ;;
5240   pc)
5241     lt_cv_deplibs_check_method=pass_all
5242     ;;
5243   esac
5244   ;;
5245
5246 tpf*)
5247   lt_cv_deplibs_check_method=pass_all
5248   ;;
5249 esac
5250
5251 fi
5252 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5253 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5254 file_magic_cmd=$lt_cv_file_magic_cmd
5255 deplibs_check_method=$lt_cv_deplibs_check_method
5256 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269 if test -n "$ac_tool_prefix"; then
5270   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5271 set dummy ${ac_tool_prefix}ar; ac_word=$2
5272 echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274 if test "${ac_cv_prog_AR+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   if test -n "$AR"; then
5278   ac_cv_prog_AR="$AR" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283   IFS=$as_save_IFS
5284   test -z "$as_dir" && as_dir=.
5285   for ac_exec_ext in '' $ac_executable_extensions; do
5286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287     ac_cv_prog_AR="${ac_tool_prefix}ar"
5288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289     break 2
5290   fi
5291 done
5292 done
5293
5294 fi
5295 fi
5296 AR=$ac_cv_prog_AR
5297 if test -n "$AR"; then
5298   echo "$as_me:$LINENO: result: $AR" >&5
5299 echo "${ECHO_T}$AR" >&6
5300 else
5301   echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5303 fi
5304
5305 fi
5306 if test -z "$ac_cv_prog_AR"; then
5307   ac_ct_AR=$AR
5308   # Extract the first word of "ar", so it can be a program name with args.
5309 set dummy ar; ac_word=$2
5310 echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   if test -n "$ac_ct_AR"; then
5316   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323   for ac_exec_ext in '' $ac_executable_extensions; do
5324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325     ac_cv_prog_ac_ct_AR="ar"
5326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327     break 2
5328   fi
5329 done
5330 done
5331
5332   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5333 fi
5334 fi
5335 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5336 if test -n "$ac_ct_AR"; then
5337   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5338 echo "${ECHO_T}$ac_ct_AR" >&6
5339 else
5340   echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6
5342 fi
5343
5344   AR=$ac_ct_AR
5345 else
5346   AR="$ac_cv_prog_AR"
5347 fi
5348
5349 test -z "$AR" && AR=ar
5350 test -z "$AR_FLAGS" && AR_FLAGS=cru
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362 if test -n "$ac_tool_prefix"; then
5363   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5364 set dummy ${ac_tool_prefix}strip; ac_word=$2
5365 echo "$as_me:$LINENO: checking for $ac_word" >&5
5366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5367 if test "${ac_cv_prog_STRIP+set}" = set; then
5368   echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370   if test -n "$STRIP"; then
5371   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376   IFS=$as_save_IFS
5377   test -z "$as_dir" && as_dir=.
5378   for ac_exec_ext in '' $ac_executable_extensions; do
5379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382     break 2
5383   fi
5384 done
5385 done
5386
5387 fi
5388 fi
5389 STRIP=$ac_cv_prog_STRIP
5390 if test -n "$STRIP"; then
5391   echo "$as_me:$LINENO: result: $STRIP" >&5
5392 echo "${ECHO_T}$STRIP" >&6
5393 else
5394   echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6
5396 fi
5397
5398 fi
5399 if test -z "$ac_cv_prog_STRIP"; then
5400   ac_ct_STRIP=$STRIP
5401   # Extract the first word of "strip", so it can be a program name with args.
5402 set dummy strip; ac_word=$2
5403 echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5405 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408   if test -n "$ac_ct_STRIP"; then
5409   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416   for ac_exec_ext in '' $ac_executable_extensions; do
5417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418     ac_cv_prog_ac_ct_STRIP="strip"
5419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423 done
5424
5425   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5426 fi
5427 fi
5428 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5429 if test -n "$ac_ct_STRIP"; then
5430   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5431 echo "${ECHO_T}$ac_ct_STRIP" >&6
5432 else
5433   echo "$as_me:$LINENO: result: no" >&5
5434 echo "${ECHO_T}no" >&6
5435 fi
5436
5437   STRIP=$ac_ct_STRIP
5438 else
5439   STRIP="$ac_cv_prog_STRIP"
5440 fi
5441
5442 test -z "$STRIP" && STRIP=:
5443
5444
5445
5446
5447
5448
5449 if test -n "$ac_tool_prefix"; then
5450   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5452 echo "$as_me:$LINENO: checking for $ac_word" >&5
5453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5454 if test "${ac_cv_prog_RANLIB+set}" = set; then
5455   echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457   if test -n "$RANLIB"; then
5458   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465   for ac_exec_ext in '' $ac_executable_extensions; do
5466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469     break 2
5470   fi
5471 done
5472 done
5473
5474 fi
5475 fi
5476 RANLIB=$ac_cv_prog_RANLIB
5477 if test -n "$RANLIB"; then
5478   echo "$as_me:$LINENO: result: $RANLIB" >&5
5479 echo "${ECHO_T}$RANLIB" >&6
5480 else
5481   echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6
5483 fi
5484
5485 fi
5486 if test -z "$ac_cv_prog_RANLIB"; then
5487   ac_ct_RANLIB=$RANLIB
5488   # Extract the first word of "ranlib", so it can be a program name with args.
5489 set dummy ranlib; ac_word=$2
5490 echo "$as_me:$LINENO: checking for $ac_word" >&5
5491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5492 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5493   echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495   if test -n "$ac_ct_RANLIB"; then
5496   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503   for ac_exec_ext in '' $ac_executable_extensions; do
5504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505     ac_cv_prog_ac_ct_RANLIB="ranlib"
5506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507     break 2
5508   fi
5509 done
5510 done
5511
5512   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5513 fi
5514 fi
5515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5516 if test -n "$ac_ct_RANLIB"; then
5517   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5518 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5519 else
5520   echo "$as_me:$LINENO: result: no" >&5
5521 echo "${ECHO_T}no" >&6
5522 fi
5523
5524   RANLIB=$ac_ct_RANLIB
5525 else
5526   RANLIB="$ac_cv_prog_RANLIB"
5527 fi
5528
5529 test -z "$RANLIB" && RANLIB=:
5530
5531
5532
5533
5534
5535
5536 # Determine commands to create old-style static archives.
5537 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5538 old_postinstall_cmds='chmod 644 $oldlib'
5539 old_postuninstall_cmds=
5540
5541 if test -n "$RANLIB"; then
5542   case $host_os in
5543   openbsd*)
5544     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5545     ;;
5546   *)
5547     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5548     ;;
5549   esac
5550   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5551 fi
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 # If no C compiler was specified, use CC.
5587 LTCC=${LTCC-"$CC"}
5588
5589 # If no C compiler flags were specified, use CFLAGS.
5590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5591
5592 # Allow CC to be a program name with arguments.
5593 compiler=$CC
5594
5595
5596 # Check for command to grab the raw symbol name followed by C symbol from nm.
5597 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5598 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5599 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602
5603 # These are sane defaults that work on at least a few old systems.
5604 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5605
5606 # Character class describing NM global symbol codes.
5607 symcode='[BCDEGRST]'
5608
5609 # Regexp to match symbols that can be accessed directly from C.
5610 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5611
5612 # Define system-specific variables.
5613 case $host_os in
5614 aix*)
5615   symcode='[BCDT]'
5616   ;;
5617 cygwin* | mingw* | pw32*)
5618   symcode='[ABCDGISTW]'
5619   ;;
5620 hpux*)
5621   if test "$host_cpu" = ia64; then
5622     symcode='[ABCDEGRST]'
5623   fi
5624   ;;
5625 irix* | nonstopux*)
5626   symcode='[BCDEGRST]'
5627   ;;
5628 osf*)
5629   symcode='[BCDEGQRST]'
5630   ;;
5631 solaris*)
5632   symcode='[BDRT]'
5633   ;;
5634 sco3.2v5*)
5635   symcode='[DT]'
5636   ;;
5637 sysv4.2uw2*)
5638   symcode='[DT]'
5639   ;;
5640 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5641   symcode='[ABDT]'
5642   ;;
5643 sysv4)
5644   symcode='[DFNSTU]'
5645   ;;
5646 esac
5647
5648 # If we're using GNU nm, then use its standard symbol codes.
5649 case `$NM -V 2>&1` in
5650 *GNU* | *'with BFD'*)
5651   symcode='[ABCDGIRSTW]' ;;
5652 esac
5653
5654 # Transform an extracted symbol line into a proper C declaration.
5655 # Some systems (esp. on ia64) link data and code symbols differently,
5656 # so use this general approach.
5657 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5658
5659 # Transform an extracted symbol line into symbol name and symbol address
5660 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5661
5662 # Handle CRLF in mingw tool chain
5663 opt_cr=
5664 case $build_os in
5665 mingw*)
5666   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5667   ;;
5668 esac
5669
5670 # Try without a prefix underscore, then with it.
5671 for ac_symprfx in "" "_"; do
5672
5673   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5674   symxfrm="\\1 $ac_symprfx\\2 \\2"
5675
5676   # Write the raw and C identifiers.
5677   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5678     # Fake it for dumpbin and say T for any non-static function
5679     # and D for any global variable.
5680     # Also find C++ and __fastcall symbols from MSVC++,
5681     # which start with @ or ?.
5682     lt_cv_sys_global_symbol_pipe="$AWK '"\
5683 "     {last_section=section; section=\$ 3};"\
5684 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5685 "     \$ 0!~/External *\|/{next};"\
5686 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5687 "     {if(hide[section]) next};"\
5688 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5689 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5690 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5691 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5692 "     ' prfx=^$ac_symprfx"
5693   else
5694     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5695   fi
5696
5697   # Check to see that the pipe works correctly.
5698   pipe_works=no
5699
5700   rm -f conftest*
5701   cat > conftest.$ac_ext <<_LT_EOF
5702 #ifdef __cplusplus
5703 extern "C" {
5704 #endif
5705 char nm_test_var;
5706 void nm_test_func(void);
5707 void nm_test_func(void){}
5708 #ifdef __cplusplus
5709 }
5710 #endif
5711 int main(){nm_test_var='a';nm_test_func();return(0);}
5712 _LT_EOF
5713
5714   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715   (eval $ac_compile) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; then
5719     # Now try to grab the symbols.
5720     nlist=conftest.nm
5721     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5722   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); } && test -s "$nlist"; then
5726       # Try sorting and uniquifying the output.
5727       if sort "$nlist" | uniq > "$nlist"T; then
5728         mv -f "$nlist"T "$nlist"
5729       else
5730         rm -f "$nlist"T
5731       fi
5732
5733       # Make sure that we snagged all the symbols we need.
5734       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5735         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5736           cat <<_LT_EOF > conftest.$ac_ext
5737 #ifdef __cplusplus
5738 extern "C" {
5739 #endif
5740
5741 _LT_EOF
5742           # Now generate the symbol file.
5743           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5744
5745           cat <<_LT_EOF >> conftest.$ac_ext
5746
5747 /* The mapping between symbol names and symbols.  */
5748 const struct {
5749   const char *name;
5750   void       *address;
5751 }
5752 lt__PROGRAM__LTX_preloaded_symbols[] =
5753 {
5754   { "@PROGRAM@", (void *) 0 },
5755 _LT_EOF
5756           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5757           cat <<\_LT_EOF >> conftest.$ac_ext
5758   {0, (void *) 0}
5759 };
5760
5761 /* This works around a problem in FreeBSD linker */
5762 #ifdef FREEBSD_WORKAROUND
5763 static const void *lt_preloaded_setup() {
5764   return lt__PROGRAM__LTX_preloaded_symbols;
5765 }
5766 #endif
5767
5768 #ifdef __cplusplus
5769 }
5770 #endif
5771 _LT_EOF
5772           # Now try linking the two files.
5773           mv conftest.$ac_objext conftstm.$ac_objext
5774           lt_save_LIBS="$LIBS"
5775           lt_save_CFLAGS="$CFLAGS"
5776           LIBS="conftstm.$ac_objext"
5777           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5778           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5779   (eval $ac_link) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5783             pipe_works=yes
5784           fi
5785           LIBS="$lt_save_LIBS"
5786           CFLAGS="$lt_save_CFLAGS"
5787         else
5788           echo "cannot find nm_test_func in $nlist" >&5
5789         fi
5790       else
5791         echo "cannot find nm_test_var in $nlist" >&5
5792       fi
5793     else
5794       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5795     fi
5796   else
5797     echo "$progname: failed program was:" >&5
5798     cat conftest.$ac_ext >&5
5799   fi
5800   rm -f conftest* conftst*
5801
5802   # Do not use the global_symbol_pipe unless it works.
5803   if test "$pipe_works" = yes; then
5804     break
5805   else
5806     lt_cv_sys_global_symbol_pipe=
5807   fi
5808 done
5809
5810 fi
5811
5812 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5813   lt_cv_sys_global_symbol_to_cdecl=
5814 fi
5815 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5816   echo "$as_me:$LINENO: result: failed" >&5
5817 echo "${ECHO_T}failed" >&6
5818 else
5819   echo "$as_me:$LINENO: result: ok" >&5
5820 echo "${ECHO_T}ok" >&6
5821 fi
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5840 if test "${enable_libtool_lock+set}" = set; then
5841   enableval="$enable_libtool_lock"
5842
5843 fi;
5844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5845
5846 # Some flags need to be propagated to the compiler or linker for good
5847 # libtool support.
5848 case $host in
5849 ia64-*-hpux*)
5850   # Find out which ABI we are using.
5851   echo 'int i;' > conftest.$ac_ext
5852   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853   (eval $ac_compile) 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; then
5857     case `/usr/bin/file conftest.$ac_objext` in
5858       *ELF-32*)
5859         HPUX_IA64_MODE="32"
5860         ;;
5861       *ELF-64*)
5862         HPUX_IA64_MODE="64"
5863         ;;
5864     esac
5865   fi
5866   rm -rf conftest*
5867   ;;
5868 *-*-irix6*)
5869   # Find out which ABI we are using.
5870   echo '#line 5870 "configure"' > conftest.$ac_ext
5871   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5872   (eval $ac_compile) 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }; then
5876     if test "$lt_cv_prog_gnu_ld" = yes; then
5877       case `/usr/bin/file conftest.$ac_objext` in
5878         *32-bit*)
5879           LD="${LD-ld} -melf32bsmip"
5880           ;;
5881         *N32*)
5882           LD="${LD-ld} -melf32bmipn32"
5883           ;;
5884         *64-bit*)
5885           LD="${LD-ld} -melf64bmip"
5886         ;;
5887       esac
5888     else
5889       case `/usr/bin/file conftest.$ac_objext` in
5890         *32-bit*)
5891           LD="${LD-ld} -32"
5892           ;;
5893         *N32*)
5894           LD="${LD-ld} -n32"
5895           ;;
5896         *64-bit*)
5897           LD="${LD-ld} -64"
5898           ;;
5899       esac
5900     fi
5901   fi
5902   rm -rf conftest*
5903   ;;
5904
5905 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5906 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5907   # Find out which ABI we are using.
5908   echo 'int i;' > conftest.$ac_ext
5909   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910   (eval $ac_compile) 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); }; then
5914     case `/usr/bin/file conftest.o` in
5915       *32-bit*)
5916         case $host in
5917           x86_64-*kfreebsd*-gnu)
5918             LD="${LD-ld} -m elf_i386_fbsd"
5919             ;;
5920           x86_64-*linux*)
5921             LD="${LD-ld} -m elf_i386"
5922             ;;
5923           ppc64-*linux*|powerpc64-*linux*)
5924             LD="${LD-ld} -m elf32ppclinux"
5925             ;;
5926           s390x-*linux*)
5927             LD="${LD-ld} -m elf_s390"
5928             ;;
5929           sparc64-*linux*)
5930             LD="${LD-ld} -m elf32_sparc"
5931             ;;
5932         esac
5933         ;;
5934       *64-bit*)
5935         case $host in
5936           x86_64-*kfreebsd*-gnu)
5937             LD="${LD-ld} -m elf_x86_64_fbsd"
5938             ;;
5939           x86_64-*linux*)
5940             LD="${LD-ld} -m elf_x86_64"
5941             ;;
5942           ppc*-*linux*|powerpc*-*linux*)
5943             LD="${LD-ld} -m elf64ppc"
5944             ;;
5945           s390*-*linux*|s390*-*tpf*)
5946             LD="${LD-ld} -m elf64_s390"
5947             ;;
5948           sparc*-*linux*)
5949             LD="${LD-ld} -m elf64_sparc"
5950             ;;
5951         esac
5952         ;;
5953     esac
5954   fi
5955   rm -rf conftest*
5956   ;;
5957
5958 *-*-sco3.2v5*)
5959   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5960   SAVE_CFLAGS="$CFLAGS"
5961   CFLAGS="$CFLAGS -belf"
5962   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5963 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5964 if test "${lt_cv_cc_needs_belf+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967   ac_ext=c
5968 ac_cpp='$CPP $CPPFLAGS'
5969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5972
5973      if test x$gcc_no_link = xyes; then
5974   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5975 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5976    { (exit 1); exit 1; }; }
5977 fi
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h.  */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h.  */
5984
5985 int
5986 main ()
5987 {
5988
5989   ;
5990   return 0;
5991 }
5992 _ACEOF
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5995   (eval $ac_link) 2>conftest.er1
5996   ac_status=$?
5997   grep -v '^ *+' conftest.er1 >conftest.err
5998   rm -f conftest.er1
5999   cat conftest.err >&5
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); } &&
6002          { ac_try='test -z "$ac_c_werror_flag"
6003                          || test ! -s conftest.err'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; } &&
6009          { ac_try='test -s conftest$ac_exeext'
6010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011   (eval $ac_try) 2>&5
6012   ac_status=$?
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); }; }; then
6015   lt_cv_cc_needs_belf=yes
6016 else
6017   echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6019
6020 lt_cv_cc_needs_belf=no
6021 fi
6022 rm -f conftest.err conftest.$ac_objext \
6023       conftest$ac_exeext conftest.$ac_ext
6024      ac_ext=c
6025 ac_cpp='$CPP $CPPFLAGS'
6026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6029
6030 fi
6031 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6032 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6033   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6034     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6035     CFLAGS="$SAVE_CFLAGS"
6036   fi
6037   ;;
6038 sparc*-*solaris*)
6039   # Find out which ABI we are using.
6040   echo 'int i;' > conftest.$ac_ext
6041   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042   (eval $ac_compile) 2>&5
6043   ac_status=$?
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); }; then
6046     case `/usr/bin/file conftest.o` in
6047     *64-bit*)
6048       case $lt_cv_prog_gnu_ld in
6049       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6050       *)    LD="${LD-ld} -64" ;;
6051       esac
6052       ;;
6053     esac
6054   fi
6055   rm -rf conftest*
6056   ;;
6057 esac
6058
6059 need_locks="$enable_libtool_lock"
6060
6061
6062 for ac_header in dlfcn.h
6063 do
6064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6065 echo "$as_me:$LINENO: checking for $ac_header" >&5
6066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070   cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h.  */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h.  */
6076 $ac_includes_default
6077
6078 #include <$ac_header>
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082   (eval $ac_compile) 2>conftest.er1
6083   ac_status=$?
6084   grep -v '^ *+' conftest.er1 >conftest.err
6085   rm -f conftest.er1
6086   cat conftest.err >&5
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } &&
6089          { ac_try='test -z "$ac_c_werror_flag"
6090                          || test ! -s conftest.err'
6091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092   (eval $ac_try) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); }; } &&
6096          { ac_try='test -s conftest.$ac_objext'
6097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098   (eval $ac_try) 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; }; then
6102   eval "$as_ac_Header=yes"
6103 else
6104   echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 eval "$as_ac_Header=no"
6108 fi
6109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6110 fi
6111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6114   cat >>confdefs.h <<_ACEOF
6115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6116 _ACEOF
6117
6118 fi
6119
6120 done
6121
6122
6123
6124 # This can be used to rebuild libtool when needed
6125 LIBTOOL_DEPS="$ltmain"
6126
6127 # Always use our own libtool.
6128 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 test -z "$LN_S" && LN_S="ln -s"
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169 if test -n "${ZSH_VERSION+set}" ; then
6170    setopt NO_GLOB_SUBST
6171 fi
6172
6173 echo "$as_me:$LINENO: checking for objdir" >&5
6174 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6175 if test "${lt_cv_objdir+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   rm -f .libs 2>/dev/null
6179 mkdir .libs 2>/dev/null
6180 if test -d .libs; then
6181   lt_cv_objdir=.libs
6182 else
6183   # MS-DOS does not allow filenames that begin with a dot.
6184   lt_cv_objdir=_libs
6185 fi
6186 rmdir .libs 2>/dev/null
6187 fi
6188 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6189 echo "${ECHO_T}$lt_cv_objdir" >&6
6190 objdir=$lt_cv_objdir
6191
6192
6193
6194
6195
6196 cat >>confdefs.h <<_ACEOF
6197 #define LT_OBJDIR "$lt_cv_objdir/"
6198 _ACEOF
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 case $host_os in
6217 aix3*)
6218   # AIX sometimes has problems with the GCC collect2 program.  For some
6219   # reason, if we set the COLLECT_NAMES environment variable, the problems
6220   # vanish in a puff of smoke.
6221   if test "X${COLLECT_NAMES+set}" != Xset; then
6222     COLLECT_NAMES=
6223     export COLLECT_NAMES
6224   fi
6225   ;;
6226 esac
6227
6228 # Sed substitution that helps us do robust quoting.  It backslashifies
6229 # metacharacters that are still active within double-quoted strings.
6230 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6231
6232 # Same as above, but do not quote variable references.
6233 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6234
6235 # Sed substitution to delay expansion of an escaped shell variable in a
6236 # double_quote_subst'ed string.
6237 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6238
6239 # Sed substitution to delay expansion of an escaped single quote.
6240 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6241
6242 # Sed substitution to avoid accidental globbing in evaled expressions
6243 no_glob_subst='s/\*/\\\*/g'
6244
6245 # Global variables:
6246 ofile=libtool
6247 can_build_shared=yes
6248
6249 # All known linkers require a `.a' archive for static linking (except MSVC,
6250 # which needs '.lib').
6251 libext=a
6252
6253 with_gnu_ld="$lt_cv_prog_gnu_ld"
6254
6255 old_CC="$CC"
6256 old_CFLAGS="$CFLAGS"
6257
6258 # Set sane defaults for various variables
6259 test -z "$CC" && CC=cc
6260 test -z "$LTCC" && LTCC=$CC
6261 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6262 test -z "$LD" && LD=ld
6263 test -z "$ac_objext" && ac_objext=o
6264
6265 for cc_temp in $compiler""; do
6266   case $cc_temp in
6267     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6268     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6269     \-*) ;;
6270     *) break;;
6271   esac
6272 done
6273 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6274
6275
6276 # Only perform the check for file, if the check method requires it
6277 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6278 case $deplibs_check_method in
6279 file_magic*)
6280   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6281     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6282 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6283 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6284   echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286   case $MAGIC_CMD in
6287 [\\/*] |  ?:[\\/]*)
6288   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6289   ;;
6290 *)
6291   lt_save_MAGIC_CMD="$MAGIC_CMD"
6292   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6293   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6294   for ac_dir in $ac_dummy; do
6295     IFS="$lt_save_ifs"
6296     test -z "$ac_dir" && ac_dir=.
6297     if test -f $ac_dir/${ac_tool_prefix}file; then
6298       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6299       if test -n "$file_magic_test_file"; then
6300         case $deplibs_check_method in
6301         "file_magic "*)
6302           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6303           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6304           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6305             $EGREP "$file_magic_regex" > /dev/null; then
6306             :
6307           else
6308             cat <<_LT_EOF 1>&2
6309
6310 *** Warning: the command libtool uses to detect shared libraries,
6311 *** $file_magic_cmd, produces output that libtool cannot recognize.
6312 *** The result is that libtool may fail to recognize shared libraries
6313 *** as such.  This will affect the creation of libtool libraries that
6314 *** depend on shared libraries, but programs linked with such libtool
6315 *** libraries will work regardless of this problem.  Nevertheless, you
6316 *** may want to report the problem to your system manager and/or to
6317 *** bug-libtool@gnu.org
6318
6319 _LT_EOF
6320           fi ;;
6321         esac
6322       fi
6323       break
6324     fi
6325   done
6326   IFS="$lt_save_ifs"
6327   MAGIC_CMD="$lt_save_MAGIC_CMD"
6328   ;;
6329 esac
6330 fi
6331
6332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6333 if test -n "$MAGIC_CMD"; then
6334   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6335 echo "${ECHO_T}$MAGIC_CMD" >&6
6336 else
6337   echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6
6339 fi
6340
6341
6342
6343
6344
6345 if test -z "$lt_cv_path_MAGIC_CMD"; then
6346   if test -n "$ac_tool_prefix"; then
6347     echo "$as_me:$LINENO: checking for file" >&5
6348 echo $ECHO_N "checking for file... $ECHO_C" >&6
6349 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   case $MAGIC_CMD in
6353 [\\/*] |  ?:[\\/]*)
6354   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6355   ;;
6356 *)
6357   lt_save_MAGIC_CMD="$MAGIC_CMD"
6358   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6359   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6360   for ac_dir in $ac_dummy; do
6361     IFS="$lt_save_ifs"
6362     test -z "$ac_dir" && ac_dir=.
6363     if test -f $ac_dir/file; then
6364       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6365       if test -n "$file_magic_test_file"; then
6366         case $deplibs_check_method in
6367         "file_magic "*)
6368           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6369           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6370           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6371             $EGREP "$file_magic_regex" > /dev/null; then
6372             :
6373           else
6374             cat <<_LT_EOF 1>&2
6375
6376 *** Warning: the command libtool uses to detect shared libraries,
6377 *** $file_magic_cmd, produces output that libtool cannot recognize.
6378 *** The result is that libtool may fail to recognize shared libraries
6379 *** as such.  This will affect the creation of libtool libraries that
6380 *** depend on shared libraries, but programs linked with such libtool
6381 *** libraries will work regardless of this problem.  Nevertheless, you
6382 *** may want to report the problem to your system manager and/or to
6383 *** bug-libtool@gnu.org
6384
6385 _LT_EOF
6386           fi ;;
6387         esac
6388       fi
6389       break
6390     fi
6391   done
6392   IFS="$lt_save_ifs"
6393   MAGIC_CMD="$lt_save_MAGIC_CMD"
6394   ;;
6395 esac
6396 fi
6397
6398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6399 if test -n "$MAGIC_CMD"; then
6400   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6401 echo "${ECHO_T}$MAGIC_CMD" >&6
6402 else
6403   echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6
6405 fi
6406
6407
6408   else
6409     MAGIC_CMD=:
6410   fi
6411 fi
6412
6413   fi
6414   ;;
6415 esac
6416
6417 # Use C for the default configuration in the libtool script
6418
6419 lt_save_CC="$CC"
6420 ac_ext=c
6421 ac_cpp='$CPP $CPPFLAGS'
6422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425
6426
6427 # Source file extension for C test sources.
6428 ac_ext=c
6429
6430 # Object file extension for compiled C test sources.
6431 objext=o
6432 objext=$objext
6433
6434 # Code to be used in simple compile tests
6435 lt_simple_compile_test_code="int some_variable = 0;"
6436
6437 # Code to be used in simple link tests
6438 lt_simple_link_test_code='int main(){return(0);}'
6439
6440
6441
6442
6443
6444
6445
6446 # If no C compiler was specified, use CC.
6447 LTCC=${LTCC-"$CC"}
6448
6449 # If no C compiler flags were specified, use CFLAGS.
6450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6451
6452 # Allow CC to be a program name with arguments.
6453 compiler=$CC
6454
6455 # Save the default compiler, since it gets overwritten when the other
6456 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6457 compiler_DEFAULT=$CC
6458
6459 # save warnings/boilerplate of simple test code
6460 ac_outfile=conftest.$ac_objext
6461 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6463 _lt_compiler_boilerplate=`cat conftest.err`
6464 $RM conftest*
6465
6466 ac_outfile=conftest.$ac_objext
6467 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6469 _lt_linker_boilerplate=`cat conftest.err`
6470 $RM conftest*
6471
6472
6473 ## CAVEAT EMPTOR:
6474 ## There is no encapsulation within the following macros, do not change
6475 ## the running order or otherwise move them around unless you know exactly
6476 ## what you are doing...
6477 if test -n "$compiler"; then
6478
6479 lt_prog_compiler_no_builtin_flag=
6480
6481 if test "$GCC" = yes; then
6482   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6483
6484   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6485 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6486 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   lt_cv_prog_compiler_rtti_exceptions=no
6490    ac_outfile=conftest.$ac_objext
6491    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6492    lt_compiler_flag="-fno-rtti -fno-exceptions"
6493    # Insert the option either (1) after the last *FLAGS variable, or
6494    # (2) before a word containing "conftest.", or (3) at the end.
6495    # Note that $ac_compile itself does not contain backslashes and begins
6496    # with a dollar sign (not a hyphen), so the echo should work correctly.
6497    # The option is referenced via a variable to avoid confusing sed.
6498    lt_compile=`echo "$ac_compile" | $SED \
6499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6501    -e 's:$: $lt_compiler_flag:'`
6502    (eval echo "\"\$as_me:6502: $lt_compile\"" >&5)
6503    (eval "$lt_compile" 2>conftest.err)
6504    ac_status=$?
6505    cat conftest.err >&5
6506    echo "$as_me:6506: \$? = $ac_status" >&5
6507    if (exit $ac_status) && test -s "$ac_outfile"; then
6508      # The compiler can only warn and ignore the option if not recognized
6509      # So say no if there are warnings other than the usual output.
6510      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6511      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6512      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6513        lt_cv_prog_compiler_rtti_exceptions=yes
6514      fi
6515    fi
6516    $RM conftest*
6517
6518 fi
6519 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6520 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6521
6522 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6523     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6524 else
6525     :
6526 fi
6527
6528 fi
6529
6530
6531
6532
6533
6534
6535   lt_prog_compiler_wl=
6536 lt_prog_compiler_pic=
6537 lt_prog_compiler_static=
6538
6539 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6540 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6541
6542   if test "$GCC" = yes; then
6543     lt_prog_compiler_wl='-Wl,'
6544     lt_prog_compiler_static='-static'
6545
6546     case $host_os in
6547       aix*)
6548       # All AIX code is PIC.
6549       if test "$host_cpu" = ia64; then
6550         # AIX 5 now supports IA64 processor
6551         lt_prog_compiler_static='-Bstatic'
6552       fi
6553       ;;
6554
6555     amigaos*)
6556       if test "$host_cpu" = m68k; then
6557         # FIXME: we need at least 68020 code to build shared libraries, but
6558         # adding the `-m68020' flag to GCC prevents building anything better,
6559         # like `-m68040'.
6560         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6561       fi
6562       ;;
6563
6564     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6565       # PIC is the default for these OSes.
6566       ;;
6567
6568     mingw* | cygwin* | pw32* | os2*)
6569       # This hack is so that the source file can tell whether it is being
6570       # built for inclusion in a dll (and should export symbols for example).
6571       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6572       # (--disable-auto-import) libraries
6573       lt_prog_compiler_pic='-DDLL_EXPORT'
6574       ;;
6575
6576     darwin* | rhapsody*)
6577       # PIC is the default on this platform
6578       # Common symbols not allowed in MH_DYLIB files
6579       lt_prog_compiler_pic='-fno-common'
6580       ;;
6581
6582     hpux*)
6583       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6584       # not for PA HP-UX.
6585       case $host_cpu in
6586       hppa*64*|ia64*)
6587         # +Z the default
6588         ;;
6589       *)
6590         lt_prog_compiler_pic='-fPIC'
6591         ;;
6592       esac
6593       ;;
6594
6595     interix[3-9]*)
6596       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6597       # Instead, we relocate shared libraries at runtime.
6598       ;;
6599
6600     msdosdjgpp*)
6601       # Just because we use GCC doesn't mean we suddenly get shared libraries
6602       # on systems that don't support them.
6603       lt_prog_compiler_can_build_shared=no
6604       enable_shared=no
6605       ;;
6606
6607     *nto* | *qnx*)
6608       # QNX uses GNU C++, but need to define -shared option too, otherwise
6609       # it will coredump.
6610       lt_prog_compiler_pic='-fPIC -shared'
6611       ;;
6612
6613     sysv4*MP*)
6614       if test -d /usr/nec; then
6615         lt_prog_compiler_pic=-Kconform_pic
6616       fi
6617       ;;
6618
6619     *)
6620       lt_prog_compiler_pic='-fPIC'
6621       ;;
6622     esac
6623   else
6624     # PORTME Check for flag to pass linker flags through the system compiler.
6625     case $host_os in
6626     aix*)
6627       lt_prog_compiler_wl='-Wl,'
6628       if test "$host_cpu" = ia64; then
6629         # AIX 5 now supports IA64 processor
6630         lt_prog_compiler_static='-Bstatic'
6631       else
6632         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6633       fi
6634       ;;
6635     darwin*)
6636       # PIC is the default on this platform
6637       # Common symbols not allowed in MH_DYLIB files
6638       case $cc_basename in
6639       xlc*)
6640         lt_prog_compiler_pic='-qnocommon'
6641         lt_prog_compiler_wl='-Wl,'
6642         ;;
6643       esac
6644       ;;
6645
6646     mingw* | cygwin* | pw32* | os2*)
6647       # This hack is so that the source file can tell whether it is being
6648       # built for inclusion in a dll (and should export symbols for example).
6649       lt_prog_compiler_pic='-DDLL_EXPORT'
6650       ;;
6651
6652     hpux9* | hpux10* | hpux11*)
6653       lt_prog_compiler_wl='-Wl,'
6654       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6655       # not for PA HP-UX.
6656       case $host_cpu in
6657       hppa*64*|ia64*)
6658         # +Z the default
6659         ;;
6660       *)
6661         lt_prog_compiler_pic='+Z'
6662         ;;
6663       esac
6664       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6665       lt_prog_compiler_static='${wl}-a ${wl}archive'
6666       ;;
6667
6668     irix5* | irix6* | nonstopux*)
6669       lt_prog_compiler_wl='-Wl,'
6670       # PIC (with -KPIC) is the default.
6671       lt_prog_compiler_static='-non_shared'
6672       ;;
6673
6674     linux* | k*bsd*-gnu)
6675       case $cc_basename in
6676       icc* | ecc*)
6677         lt_prog_compiler_wl='-Wl,'
6678         lt_prog_compiler_pic='-KPIC'
6679         lt_prog_compiler_static='-static'
6680         ;;
6681       pgcc* | pgf77* | pgf90* | pgf95*)
6682         # Portland Group compilers (*not* the Pentium gcc compiler,
6683         # which looks to be a dead project)
6684         lt_prog_compiler_wl='-Wl,'
6685         lt_prog_compiler_pic='-fpic'
6686         lt_prog_compiler_static='-Bstatic'
6687         ;;
6688       ccc*)
6689         lt_prog_compiler_wl='-Wl,'
6690         # All Alpha code is PIC.
6691         lt_prog_compiler_static='-non_shared'
6692         ;;
6693       *)
6694         case `$CC -V 2>&1 | sed 5q` in
6695         *Sun\ C*)
6696           # Sun C 5.9
6697           lt_prog_compiler_pic='-KPIC'
6698           lt_prog_compiler_static='-Bstatic'
6699           lt_prog_compiler_wl='-Wl,'
6700           ;;
6701         *Sun\ F*)
6702           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6703           lt_prog_compiler_pic='-KPIC'
6704           lt_prog_compiler_static='-Bstatic'
6705           lt_prog_compiler_wl=''
6706           ;;
6707         esac
6708         ;;
6709       esac
6710       ;;
6711
6712     newsos6)
6713       lt_prog_compiler_pic='-KPIC'
6714       lt_prog_compiler_static='-Bstatic'
6715       ;;
6716
6717     *nto* | *qnx*)
6718       # QNX uses GNU C++, but need to define -shared option too, otherwise
6719       # it will coredump.
6720       lt_prog_compiler_pic='-fPIC -shared'
6721       ;;
6722
6723     osf3* | osf4* | osf5*)
6724       lt_prog_compiler_wl='-Wl,'
6725       # All OSF/1 code is PIC.
6726       lt_prog_compiler_static='-non_shared'
6727       ;;
6728
6729     rdos*)
6730       lt_prog_compiler_static='-non_shared'
6731       ;;
6732
6733     solaris*)
6734       lt_prog_compiler_pic='-KPIC'
6735       lt_prog_compiler_static='-Bstatic'
6736       case $cc_basename in
6737       f77* | f90* | f95*)
6738         lt_prog_compiler_wl='-Qoption ld ';;
6739       *)
6740         lt_prog_compiler_wl='-Wl,';;
6741       esac
6742       ;;
6743
6744     sunos4*)
6745       lt_prog_compiler_wl='-Qoption ld '
6746       lt_prog_compiler_pic='-PIC'
6747       lt_prog_compiler_static='-Bstatic'
6748       ;;
6749
6750     sysv4 | sysv4.2uw2* | sysv4.3*)
6751       lt_prog_compiler_wl='-Wl,'
6752       lt_prog_compiler_pic='-KPIC'
6753       lt_prog_compiler_static='-Bstatic'
6754       ;;
6755
6756     sysv4*MP*)
6757       if test -d /usr/nec ;then
6758         lt_prog_compiler_pic='-Kconform_pic'
6759         lt_prog_compiler_static='-Bstatic'
6760       fi
6761       ;;
6762
6763     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6764       lt_prog_compiler_wl='-Wl,'
6765       lt_prog_compiler_pic='-KPIC'
6766       lt_prog_compiler_static='-Bstatic'
6767       ;;
6768
6769     unicos*)
6770       lt_prog_compiler_wl='-Wl,'
6771       lt_prog_compiler_can_build_shared=no
6772       ;;
6773
6774     uts4*)
6775       lt_prog_compiler_pic='-pic'
6776       lt_prog_compiler_static='-Bstatic'
6777       ;;
6778
6779     *)
6780       lt_prog_compiler_can_build_shared=no
6781       ;;
6782     esac
6783   fi
6784
6785 case $host_os in
6786   # For platforms which do not support PIC, -DPIC is meaningless:
6787   *djgpp*)
6788     lt_prog_compiler_pic=
6789     ;;
6790   *)
6791     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6792     ;;
6793 esac
6794 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6795 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6796
6797
6798
6799
6800
6801
6802 #
6803 # Check to make sure the PIC flag actually works.
6804 #
6805 if test -n "$lt_prog_compiler_pic"; then
6806   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6807 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6808 if test "${lt_prog_compiler_pic_works+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   lt_prog_compiler_pic_works=no
6812    ac_outfile=conftest.$ac_objext
6813    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6814    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6815    # Insert the option either (1) after the last *FLAGS variable, or
6816    # (2) before a word containing "conftest.", or (3) at the end.
6817    # Note that $ac_compile itself does not contain backslashes and begins
6818    # with a dollar sign (not a hyphen), so the echo should work correctly.
6819    # The option is referenced via a variable to avoid confusing sed.
6820    lt_compile=`echo "$ac_compile" | $SED \
6821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6823    -e 's:$: $lt_compiler_flag:'`
6824    (eval echo "\"\$as_me:6824: $lt_compile\"" >&5)
6825    (eval "$lt_compile" 2>conftest.err)
6826    ac_status=$?
6827    cat conftest.err >&5
6828    echo "$as_me:6828: \$? = $ac_status" >&5
6829    if (exit $ac_status) && test -s "$ac_outfile"; then
6830      # The compiler can only warn and ignore the option if not recognized
6831      # So say no if there are warnings other than the usual output.
6832      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6833      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6834      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6835        lt_prog_compiler_pic_works=yes
6836      fi
6837    fi
6838    $RM conftest*
6839
6840 fi
6841 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6842 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6843
6844 if test x"$lt_prog_compiler_pic_works" = xyes; then
6845     case $lt_prog_compiler_pic in
6846      "" | " "*) ;;
6847      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6848      esac
6849 else
6850     lt_prog_compiler_pic=
6851      lt_prog_compiler_can_build_shared=no
6852 fi
6853
6854 fi
6855
6856
6857
6858
6859
6860
6861 #
6862 # Check to make sure the static flag actually works.
6863 #
6864 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6865 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6866 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6867 if test "${lt_prog_compiler_static_works+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   lt_prog_compiler_static_works=no
6871    save_LDFLAGS="$LDFLAGS"
6872    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6873    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6874    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6875      # The linker can only warn and ignore the option if not recognized
6876      # So say no if there are warnings
6877      if test -s conftest.err; then
6878        # Append any errors to the config.log.
6879        cat conftest.err 1>&5
6880        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6881        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6882        if diff conftest.exp conftest.er2 >/dev/null; then
6883          lt_prog_compiler_static_works=yes
6884        fi
6885      else
6886        lt_prog_compiler_static_works=yes
6887      fi
6888    fi
6889    $RM conftest*
6890    LDFLAGS="$save_LDFLAGS"
6891
6892 fi
6893 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6894 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6895
6896 if test x"$lt_prog_compiler_static_works" = xyes; then
6897     :
6898 else
6899     lt_prog_compiler_static=
6900 fi
6901
6902
6903
6904
6905
6906
6907
6908   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6909 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6910 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6911   echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913   lt_cv_prog_compiler_c_o=no
6914    $RM -r conftest 2>/dev/null
6915    mkdir conftest
6916    cd conftest
6917    mkdir out
6918    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6919
6920    lt_compiler_flag="-o out/conftest2.$ac_objext"
6921    # Insert the option either (1) after the last *FLAGS variable, or
6922    # (2) before a word containing "conftest.", or (3) at the end.
6923    # Note that $ac_compile itself does not contain backslashes and begins
6924    # with a dollar sign (not a hyphen), so the echo should work correctly.
6925    lt_compile=`echo "$ac_compile" | $SED \
6926    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6927    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6928    -e 's:$: $lt_compiler_flag:'`
6929    (eval echo "\"\$as_me:6929: $lt_compile\"" >&5)
6930    (eval "$lt_compile" 2>out/conftest.err)
6931    ac_status=$?
6932    cat out/conftest.err >&5
6933    echo "$as_me:6933: \$? = $ac_status" >&5
6934    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6935    then
6936      # The compiler can only warn and ignore the option if not recognized
6937      # So say no if there are warnings
6938      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6939      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6940      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6941        lt_cv_prog_compiler_c_o=yes
6942      fi
6943    fi
6944    chmod u+w . 2>&5
6945    $RM conftest*
6946    # SGI C++ compiler will create directory out/ii_files/ for
6947    # template instantiation
6948    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6949    $RM out/* && rmdir out
6950    cd ..
6951    $RM -r conftest
6952    $RM conftest*
6953
6954 fi
6955 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6956 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6957
6958
6959
6960
6961
6962
6963   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6964 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6965 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   lt_cv_prog_compiler_c_o=no
6969    $RM -r conftest 2>/dev/null
6970    mkdir conftest
6971    cd conftest
6972    mkdir out
6973    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6974
6975    lt_compiler_flag="-o out/conftest2.$ac_objext"
6976    # Insert the option either (1) after the last *FLAGS variable, or
6977    # (2) before a word containing "conftest.", or (3) at the end.
6978    # Note that $ac_compile itself does not contain backslashes and begins
6979    # with a dollar sign (not a hyphen), so the echo should work correctly.
6980    lt_compile=`echo "$ac_compile" | $SED \
6981    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6982    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6983    -e 's:$: $lt_compiler_flag:'`
6984    (eval echo "\"\$as_me:6984: $lt_compile\"" >&5)
6985    (eval "$lt_compile" 2>out/conftest.err)
6986    ac_status=$?
6987    cat out/conftest.err >&5
6988    echo "$as_me:6988: \$? = $ac_status" >&5
6989    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6990    then
6991      # The compiler can only warn and ignore the option if not recognized
6992      # So say no if there are warnings
6993      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6994      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6995      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6996        lt_cv_prog_compiler_c_o=yes
6997      fi
6998    fi
6999    chmod u+w . 2>&5
7000    $RM conftest*
7001    # SGI C++ compiler will create directory out/ii_files/ for
7002    # template instantiation
7003    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7004    $RM out/* && rmdir out
7005    cd ..
7006    $RM -r conftest
7007    $RM conftest*
7008
7009 fi
7010 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7011 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7012
7013
7014
7015
7016 hard_links="nottested"
7017 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7018   # do not overwrite the value of need_locks provided by the user
7019   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7020 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7021   hard_links=yes
7022   $RM conftest*
7023   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7024   touch conftest.a
7025   ln conftest.a conftest.b 2>&5 || hard_links=no
7026   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7027   echo "$as_me:$LINENO: result: $hard_links" >&5
7028 echo "${ECHO_T}$hard_links" >&6
7029   if test "$hard_links" = no; then
7030     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7031 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7032     need_locks=warn
7033   fi
7034 else
7035   need_locks=no
7036 fi
7037
7038
7039
7040
7041
7042
7043   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7044 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7045
7046   runpath_var=
7047   allow_undefined_flag=
7048   always_export_symbols=no
7049   archive_cmds=
7050   archive_expsym_cmds=
7051   compiler_needs_object=no
7052   enable_shared_with_static_runtimes=no
7053   export_dynamic_flag_spec=
7054   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7055   hardcode_automatic=no
7056   hardcode_direct=no
7057   hardcode_direct_absolute=no
7058   hardcode_libdir_flag_spec=
7059   hardcode_libdir_flag_spec_ld=
7060   hardcode_libdir_separator=
7061   hardcode_minus_L=no
7062   hardcode_shlibpath_var=unsupported
7063   inherit_rpath=no
7064   link_all_deplibs=unknown
7065   module_cmds=
7066   module_expsym_cmds=
7067   old_archive_from_new_cmds=
7068   old_archive_from_expsyms_cmds=
7069   thread_safe_flag_spec=
7070   whole_archive_flag_spec=
7071   # include_expsyms should be a list of space-separated symbols to be *always*
7072   # included in the symbol list
7073   include_expsyms=
7074   # exclude_expsyms can be an extended regexp of symbols to exclude
7075   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7076   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7077   # as well as any symbol that contains `d'.
7078   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7079   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7080   # platforms (ab)use it in PIC code, but their linkers get confused if
7081   # the symbol is explicitly referenced.  Since portable code cannot
7082   # rely on this symbol name, it's probably fine to never include it in
7083   # preloaded symbol tables.
7084   extract_expsyms_cmds=
7085
7086   case $host_os in
7087   cygwin* | mingw* | pw32*)
7088     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7089     # When not using gcc, we currently assume that we are using
7090     # Microsoft Visual C++.
7091     if test "$GCC" != yes; then
7092       with_gnu_ld=no
7093     fi
7094     ;;
7095   interix*)
7096     # we just hope/assume this is gcc and not c89 (= MSVC++)
7097     with_gnu_ld=yes
7098     ;;
7099   openbsd*)
7100     with_gnu_ld=no
7101     ;;
7102   esac
7103
7104   ld_shlibs=yes
7105   if test "$with_gnu_ld" = yes; then
7106     # If archive_cmds runs LD, not CC, wlarc should be empty
7107     wlarc='${wl}'
7108
7109     # Set some defaults for GNU ld with shared library support. These
7110     # are reset later if shared libraries are not supported. Putting them
7111     # here allows them to be overridden if necessary.
7112     runpath_var=LD_RUN_PATH
7113     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7114     export_dynamic_flag_spec='${wl}--export-dynamic'
7115     # ancient GNU ld didn't support --whole-archive et. al.
7116     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7117       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7118     else
7119       whole_archive_flag_spec=
7120     fi
7121     supports_anon_versioning=no
7122     case `$LD -v 2>&1` in
7123       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7124       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7125       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7126       *\ 2.11.*) ;; # other 2.11 versions
7127       *) supports_anon_versioning=yes ;;
7128     esac
7129
7130     # See if GNU ld supports shared libraries.
7131     case $host_os in
7132     aix3* | aix4* | aix5*)
7133       # On AIX/PPC, the GNU linker is very broken
7134       if test "$host_cpu" != ia64; then
7135         ld_shlibs=no
7136         cat <<_LT_EOF 1>&2
7137
7138 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7139 *** to be unable to reliably create shared libraries on AIX.
7140 *** Therefore, libtool is disabling shared libraries support.  If you
7141 *** really care for shared libraries, you may want to modify your PATH
7142 *** so that a non-GNU linker is found, and then restart.
7143
7144 _LT_EOF
7145       fi
7146       ;;
7147
7148     amigaos*)
7149       if test "$host_cpu" = m68k; then
7150         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)'
7151         hardcode_libdir_flag_spec='-L$libdir'
7152         hardcode_minus_L=yes
7153       fi
7154
7155       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7156       # that the semantics of dynamic libraries on AmigaOS, at least up
7157       # to version 4, is to share data among multiple programs linked
7158       # with the same dynamic library.  Since this doesn't match the
7159       # behavior of shared libraries on other platforms, we can't use
7160       # them.
7161       ld_shlibs=no
7162       ;;
7163
7164     beos*)
7165       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7166         allow_undefined_flag=unsupported
7167         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7168         # support --undefined.  This deserves some investigation.  FIXME
7169         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7170       else
7171         ld_shlibs=no
7172       fi
7173       ;;
7174
7175     cygwin* | mingw* | pw32*)
7176       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7177       # as there is no search path for DLLs.
7178       hardcode_libdir_flag_spec='-L$libdir'
7179       allow_undefined_flag=unsupported
7180       always_export_symbols=no
7181       enable_shared_with_static_runtimes=yes
7182       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7183
7184       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7185         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7186         # If the export-symbols file already is a .def file (1st line
7187         # is EXPORTS), use it as is; otherwise, prepend...
7188         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7189           cp $export_symbols $output_objdir/$soname.def;
7190         else
7191           echo EXPORTS > $output_objdir/$soname.def;
7192           cat $export_symbols >> $output_objdir/$soname.def;
7193         fi~
7194         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7195       else
7196         ld_shlibs=no
7197       fi
7198       ;;
7199
7200     interix[3-9]*)
7201       hardcode_direct=no
7202       hardcode_shlibpath_var=no
7203       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7204       export_dynamic_flag_spec='${wl}-E'
7205       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7206       # Instead, shared libraries are loaded at an image base (0x10000000 by
7207       # default) and relocated if they conflict, which is a slow very memory
7208       # consuming and fragmenting process.  To avoid this, we pick a random,
7209       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7210       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7211       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7212       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'
7213       ;;
7214
7215     gnu* | linux* | tpf* | k*bsd*-gnu)
7216       tmp_diet=no
7217       if test "$host_os" = linux-dietlibc; then
7218         case $cc_basename in
7219           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7220         esac
7221       fi
7222       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7223          && test "$tmp_diet" = no
7224       then
7225         tmp_addflag=
7226         case $cc_basename,$host_cpu in
7227         pgcc*)                          # Portland Group C compiler
7228           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'
7229           tmp_addflag=' $pic_flag'
7230           ;;
7231         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7232           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'
7233           tmp_addflag=' $pic_flag -Mnomain' ;;
7234         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7235           tmp_addflag=' -i_dynamic' ;;
7236         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7237           tmp_addflag=' -i_dynamic -nofor_main' ;;
7238         ifc* | ifort*)                  # Intel Fortran compiler
7239           tmp_addflag=' -nofor_main' ;;
7240         esac
7241         case `$CC -V 2>&1 | sed 5q` in
7242         *Sun\ C*)                       # Sun C 5.9
7243           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7244           compiler_needs_object=yes
7245           tmp_sharedflag='-G' ;;
7246         *Sun\ F*)                       # Sun Fortran 8.3
7247           tmp_sharedflag='-G' ;;
7248         *)
7249           tmp_sharedflag='-shared' ;;
7250         esac
7251         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7252
7253         if test "x$supports_anon_versioning" = xyes; then
7254           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7255             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7256             echo "local: *; };" >> $output_objdir/$libname.ver~
7257             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7258         fi
7259       else
7260         ld_shlibs=no
7261       fi
7262       ;;
7263
7264     netbsd*)
7265       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7266         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7267         wlarc=
7268       else
7269         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7270         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7271       fi
7272       ;;
7273
7274     solaris*)
7275       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7276         ld_shlibs=no
7277         cat <<_LT_EOF 1>&2
7278
7279 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7280 *** create shared libraries on Solaris systems.  Therefore, libtool
7281 *** is disabling shared libraries support.  We urge you to upgrade GNU
7282 *** binutils to release 2.9.1 or newer.  Another option is to modify
7283 *** your PATH or compiler configuration so that the native linker is
7284 *** used, and then restart.
7285
7286 _LT_EOF
7287       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7288         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7289         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7290       else
7291         ld_shlibs=no
7292       fi
7293       ;;
7294
7295     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7296       case `$LD -v 2>&1` in
7297         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7298         ld_shlibs=no
7299         cat <<_LT_EOF 1>&2
7300
7301 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7302 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7303 *** is disabling shared libraries support.  We urge you to upgrade GNU
7304 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7305 *** your PATH or compiler configuration so that the native linker is
7306 *** used, and then restart.
7307
7308 _LT_EOF
7309         ;;
7310         *)
7311           # For security reasons, it is highly recommended that you always
7312           # use absolute paths for naming shared libraries, and exclude the
7313           # DT_RUNPATH tag from executables and libraries.  But doing so
7314           # requires that you compile everything twice, which is a pain.
7315           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7316             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7317             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7318             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7319           else
7320             ld_shlibs=no
7321           fi
7322         ;;
7323       esac
7324       ;;
7325
7326     sunos4*)
7327       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7328       wlarc=
7329       hardcode_direct=yes
7330       hardcode_shlibpath_var=no
7331       ;;
7332
7333     *)
7334       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7335         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7336         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7337       else
7338         ld_shlibs=no
7339       fi
7340       ;;
7341     esac
7342
7343     if test "$ld_shlibs" = no; then
7344       runpath_var=
7345       hardcode_libdir_flag_spec=
7346       export_dynamic_flag_spec=
7347       whole_archive_flag_spec=
7348     fi
7349   else
7350     # PORTME fill in a description of your system's linker (not GNU ld)
7351     case $host_os in
7352     aix3*)
7353       allow_undefined_flag=unsupported
7354       always_export_symbols=yes
7355       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'
7356       # Note: this linker hardcodes the directories in LIBPATH if there
7357       # are no directories specified by -L.
7358       hardcode_minus_L=yes
7359       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7360         # Neither direct hardcoding nor static linking is supported with a
7361         # broken collect2.
7362         hardcode_direct=unsupported
7363       fi
7364       ;;
7365
7366     aix4* | aix5*)
7367       if test "$host_cpu" = ia64; then
7368         # On IA64, the linker does run time linking by default, so we don't
7369         # have to do anything special.
7370         aix_use_runtimelinking=no
7371         exp_sym_flag='-Bexport'
7372         no_entry_flag=""
7373       else
7374         # If we're using GNU nm, then we don't want the "-C" option.
7375         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7376         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7377           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'
7378         else
7379           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'
7380         fi
7381         aix_use_runtimelinking=no
7382
7383         # Test if we are trying to use run time linking or normal
7384         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7385         # need to do runtime linking.
7386         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7387           for ld_flag in $LDFLAGS; do
7388           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7389             aix_use_runtimelinking=yes
7390             break
7391           fi
7392           done
7393           ;;
7394         esac
7395
7396         exp_sym_flag='-bexport'
7397         no_entry_flag='-bnoentry'
7398       fi
7399
7400       # When large executables or shared objects are built, AIX ld can
7401       # have problems creating the table of contents.  If linking a library
7402       # or program results in "error TOC overflow" add -mminimal-toc to
7403       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7404       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7405
7406       archive_cmds=''
7407       hardcode_direct=yes
7408       hardcode_direct_absolute=yes
7409       hardcode_libdir_separator=':'
7410       link_all_deplibs=yes
7411       file_list_spec='${wl}-f,'
7412
7413       if test "$GCC" = yes; then
7414         case $host_os in aix4.[012]|aix4.[012].*)
7415         # We only want to do this on AIX 4.2 and lower, the check
7416         # below for broken collect2 doesn't work under 4.3+
7417           collect2name=`${CC} -print-prog-name=collect2`
7418           if test -f "$collect2name" &&
7419            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7420           then
7421           # We have reworked collect2
7422           :
7423           else
7424           # We have old collect2
7425           hardcode_direct=unsupported
7426           # It fails to find uninstalled libraries when the uninstalled
7427           # path is not listed in the libpath.  Setting hardcode_minus_L
7428           # to unsupported forces relinking
7429           hardcode_minus_L=yes
7430           hardcode_libdir_flag_spec='-L$libdir'
7431           hardcode_libdir_separator=
7432           fi
7433           ;;
7434         esac
7435         shared_flag='-shared'
7436         if test "$aix_use_runtimelinking" = yes; then
7437           shared_flag="$shared_flag "'${wl}-G'
7438         fi
7439       else
7440         # not using gcc
7441         if test "$host_cpu" = ia64; then
7442         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7443         # chokes on -Wl,-G. The following line is correct:
7444           shared_flag='-G'
7445         else
7446           if test "$aix_use_runtimelinking" = yes; then
7447             shared_flag='${wl}-G'
7448           else
7449             shared_flag='${wl}-bM:SRE'
7450           fi
7451         fi
7452       fi
7453
7454       # It seems that -bexpall does not export symbols beginning with
7455       # underscore (_), so it is better to generate a list of symbols to export.
7456       always_export_symbols=yes
7457       if test "$aix_use_runtimelinking" = yes; then
7458         # Warning - without using the other runtime loading flags (-brtl),
7459         # -berok will link without error, but may produce a broken library.
7460         allow_undefined_flag='-berok'
7461         # Determine the default libpath from the value encoded in an
7462         # empty executable.
7463         if test x$gcc_no_link = xyes; then
7464   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7466    { (exit 1); exit 1; }; }
7467 fi
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h.  */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h.  */
7474
7475 int
7476 main ()
7477 {
7478
7479   ;
7480   return 0;
7481 }
7482 _ACEOF
7483 rm -f conftest.$ac_objext conftest$ac_exeext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7485   (eval $ac_link) 2>conftest.er1
7486   ac_status=$?
7487   grep -v '^ *+' conftest.er1 >conftest.err
7488   rm -f conftest.er1
7489   cat conftest.err >&5
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); } &&
7492          { ac_try='test -z "$ac_c_werror_flag"
7493                          || test ! -s conftest.err'
7494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495   (eval $ac_try) 2>&5
7496   ac_status=$?
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); }; } &&
7499          { ac_try='test -s conftest$ac_exeext'
7500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501   (eval $ac_try) 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); }; }; then
7505
7506 lt_aix_libpath_sed='
7507     /Import File Strings/,/^$/ {
7508         /^0/ {
7509             s/^0  *\(.*\)$/\1/
7510             p
7511         }
7512     }'
7513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7514 # Check for a 64-bit object if we didn't find anything.
7515 if test -z "$aix_libpath"; then
7516   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7517 fi
7518 else
7519   echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7521
7522 fi
7523 rm -f conftest.err conftest.$ac_objext \
7524       conftest$ac_exeext conftest.$ac_ext
7525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7526
7527         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7528         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7529       else
7530         if test "$host_cpu" = ia64; then
7531           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7532           allow_undefined_flag="-z nodefs"
7533           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"
7534         else
7535          # Determine the default libpath from the value encoded in an
7536          # empty executable.
7537          if test x$gcc_no_link = xyes; then
7538   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7539 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7540    { (exit 1); exit 1; }; }
7541 fi
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h.  */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h.  */
7548
7549 int
7550 main ()
7551 {
7552
7553   ;
7554   return 0;
7555 }
7556 _ACEOF
7557 rm -f conftest.$ac_objext conftest$ac_exeext
7558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559   (eval $ac_link) 2>conftest.er1
7560   ac_status=$?
7561   grep -v '^ *+' conftest.er1 >conftest.err
7562   rm -f conftest.er1
7563   cat conftest.err >&5
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); } &&
7566          { ac_try='test -z "$ac_c_werror_flag"
7567                          || test ! -s conftest.err'
7568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569   (eval $ac_try) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; } &&
7573          { ac_try='test -s conftest$ac_exeext'
7574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575   (eval $ac_try) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); }; }; then
7579
7580 lt_aix_libpath_sed='
7581     /Import File Strings/,/^$/ {
7582         /^0/ {
7583             s/^0  *\(.*\)$/\1/
7584             p
7585         }
7586     }'
7587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7588 # Check for a 64-bit object if we didn't find anything.
7589 if test -z "$aix_libpath"; then
7590   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7591 fi
7592 else
7593   echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7595
7596 fi
7597 rm -f conftest.err conftest.$ac_objext \
7598       conftest$ac_exeext conftest.$ac_ext
7599 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7600
7601          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7602           # Warning - without using the other run time loading flags,
7603           # -berok will link without error, but may produce a broken library.
7604           no_undefined_flag=' ${wl}-bernotok'
7605           allow_undefined_flag=' ${wl}-berok'
7606           # Exported symbols can be pulled into shared objects from archives
7607           whole_archive_flag_spec='$convenience'
7608           archive_cmds_need_lc=yes
7609           # This is similar to how AIX traditionally builds its shared libraries.
7610           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'
7611         fi
7612       fi
7613       ;;
7614
7615     amigaos*)
7616       if test "$host_cpu" = m68k; then
7617         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)'
7618         hardcode_libdir_flag_spec='-L$libdir'
7619         hardcode_minus_L=yes
7620       fi
7621       # see comment about different semantics on the GNU ld section
7622       ld_shlibs=no
7623       ;;
7624
7625     bsdi[45]*)
7626       export_dynamic_flag_spec=-rdynamic
7627       ;;
7628
7629     cygwin* | mingw* | pw32*)
7630       # When not using gcc, we currently assume that we are using
7631       # Microsoft Visual C++.
7632       # hardcode_libdir_flag_spec is actually meaningless, as there is
7633       # no search path for DLLs.
7634       hardcode_libdir_flag_spec=' '
7635       allow_undefined_flag=unsupported
7636       # Tell ltmain to make .lib files, not .a files.
7637       libext=lib
7638       # Tell ltmain to make .dll files, not .so files.
7639       shrext_cmds=".dll"
7640       # FIXME: Setting linknames here is a bad hack.
7641       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7642       # The linker will automatically build a .lib file if we build a DLL.
7643       old_archive_from_new_cmds='true'
7644       # FIXME: Should let the user specify the lib program.
7645       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7646       fix_srcfile_path='`cygpath -w "$srcfile"`'
7647       enable_shared_with_static_runtimes=yes
7648       ;;
7649
7650     darwin* | rhapsody*)
7651       case $host_os in
7652       rhapsody* | darwin1.[012])
7653         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7654         ;;
7655       *) # Darwin 1.3 on
7656         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7657         10.[012])
7658           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7659           ;;
7660         10.*)
7661           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7662           ;;
7663         esac
7664         ;;
7665       esac
7666       archive_cmds_need_lc=no
7667       hardcode_direct=no
7668       hardcode_automatic=yes
7669       hardcode_shlibpath_var=unsupported
7670       whole_archive_flag_spec=''
7671       link_all_deplibs=yes
7672       if test "$GCC" = yes ; then
7673         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   lt_cv_apple_cc_single_mod=no
7677         if test -z "${LT_MULTI_MODULE}"; then
7678           # By default we will add the -single_module flag. You can override
7679           # by either setting the environment variable LT_MULTI_MODULE
7680           # non-empty at configure time, or by adding -multi-module to the
7681           # link flags.
7682           echo "int foo(void){return 1;}" > conftest.c
7683           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7684               -dynamiclib ${wl}-single_module conftest.c
7685           if test -f libconftest.dylib; then
7686               lt_cv_apple_cc_single_mod=yes
7687               rm libconftest.dylib
7688           fi
7689           rm conftest.$ac_ext
7690         fi
7691 fi
7692
7693         output_verbose_link_cmd=echo
7694         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7695           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7696           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7697         else
7698           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7699           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7700         fi
7701         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7702         module_expsym_cmds='sed -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}'
7703       else
7704         case $cc_basename in
7705         xlc*)
7706           output_verbose_link_cmd=echo
7707           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7708           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7709           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7710           archive_expsym_cmds='sed "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}'
7711           module_expsym_cmds='sed "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}'
7712           ;;
7713         *)
7714           ld_shlibs=no
7715           ;;
7716         esac
7717       fi
7718       ;;
7719
7720     dgux*)
7721       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7722       hardcode_libdir_flag_spec='-L$libdir'
7723       hardcode_shlibpath_var=no
7724       ;;
7725
7726     freebsd1*)
7727       ld_shlibs=no
7728       ;;
7729
7730     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7731     # support.  Future versions do this automatically, but an explicit c++rt0.o
7732     # does not break anything, and helps significantly (at the cost of a little
7733     # extra space).
7734     freebsd2.2*)
7735       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7736       hardcode_libdir_flag_spec='-R$libdir'
7737       hardcode_direct=yes
7738       hardcode_shlibpath_var=no
7739       ;;
7740
7741     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7742     freebsd2*)
7743       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7744       hardcode_direct=yes
7745       hardcode_minus_L=yes
7746       hardcode_shlibpath_var=no
7747       ;;
7748
7749     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7750     freebsd* | dragonfly*)
7751       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7752       hardcode_libdir_flag_spec='-R$libdir'
7753       hardcode_direct=yes
7754       hardcode_shlibpath_var=no
7755       ;;
7756
7757     hpux9*)
7758       if test "$GCC" = yes; then
7759         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'
7760       else
7761         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'
7762       fi
7763       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7764       hardcode_libdir_separator=:
7765       hardcode_direct=yes
7766
7767       # hardcode_minus_L: Not really in the search PATH,
7768       # but as the default location of the library.
7769       hardcode_minus_L=yes
7770       export_dynamic_flag_spec='${wl}-E'
7771       ;;
7772
7773     hpux10*)
7774       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7775         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7776       else
7777         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7778       fi
7779       if test "$with_gnu_ld" = no; then
7780         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7781         hardcode_libdir_flag_spec_ld='+b $libdir'
7782         hardcode_libdir_separator=:
7783         hardcode_direct=yes
7784         hardcode_direct_absolute=yes
7785         export_dynamic_flag_spec='${wl}-E'
7786         # hardcode_minus_L: Not really in the search PATH,
7787         # but as the default location of the library.
7788         hardcode_minus_L=yes
7789       fi
7790       ;;
7791
7792     hpux11*)
7793       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7794         case $host_cpu in
7795         hppa*64*)
7796           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7797           ;;
7798         ia64*)
7799           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7800           ;;
7801         *)
7802           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7803           ;;
7804         esac
7805       else
7806         case $host_cpu in
7807         hppa*64*)
7808           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7809           ;;
7810         ia64*)
7811           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7812           ;;
7813         *)
7814           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7815           ;;
7816         esac
7817       fi
7818       if test "$with_gnu_ld" = no; then
7819         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7820         hardcode_libdir_separator=:
7821
7822         case $host_cpu in
7823         hppa*64*|ia64*)
7824           hardcode_direct=no
7825           hardcode_shlibpath_var=no
7826           ;;
7827         *)
7828           hardcode_direct=yes
7829           hardcode_direct_absolute=yes
7830           export_dynamic_flag_spec='${wl}-E'
7831
7832           # hardcode_minus_L: Not really in the search PATH,
7833           # but as the default location of the library.
7834           hardcode_minus_L=yes
7835           ;;
7836         esac
7837       fi
7838       ;;
7839
7840     irix5* | irix6* | nonstopux*)
7841       if test "$GCC" = yes; then
7842         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7843         # Try to use the -exported_symbol ld option, if it does not
7844         # work, assume that -exports_file does not work either and
7845         # implicitly export all symbols.
7846         save_LDFLAGS="$LDFLAGS"
7847         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7848         if test x$gcc_no_link = xyes; then
7849   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7850 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7851    { (exit 1); exit 1; }; }
7852 fi
7853 cat >conftest.$ac_ext <<_ACEOF
7854 int foo(void) {}
7855 _ACEOF
7856 rm -f conftest.$ac_objext conftest$ac_exeext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7858   (eval $ac_link) 2>conftest.er1
7859   ac_status=$?
7860   grep -v '^ *+' conftest.er1 >conftest.err
7861   rm -f conftest.er1
7862   cat conftest.err >&5
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } &&
7865          { ac_try='test -z "$ac_c_werror_flag"
7866                          || test ! -s conftest.err'
7867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868   (eval $ac_try) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; } &&
7872          { ac_try='test -s conftest$ac_exeext'
7873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874   (eval $ac_try) 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; }; then
7878   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7879
7880 else
7881   echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7883
7884 fi
7885 rm -f conftest.err conftest.$ac_objext \
7886       conftest$ac_exeext conftest.$ac_ext
7887         LDFLAGS="$save_LDFLAGS"
7888       else
7889         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7890         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7891       fi
7892       archive_cmds_need_lc='no'
7893       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7894       hardcode_libdir_separator=:
7895       inherit_rpath=yes
7896       link_all_deplibs=yes
7897       ;;
7898
7899     netbsd*)
7900       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7901         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7902       else
7903         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7904       fi
7905       hardcode_libdir_flag_spec='-R$libdir'
7906       hardcode_direct=yes
7907       hardcode_shlibpath_var=no
7908       ;;
7909
7910     newsos6)
7911       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7912       hardcode_direct=yes
7913       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7914       hardcode_libdir_separator=:
7915       hardcode_shlibpath_var=no
7916       ;;
7917
7918     *nto* | *qnx*)
7919       ;;
7920
7921     openbsd*)
7922       hardcode_direct=yes
7923       hardcode_shlibpath_var=no
7924       hardcode_direct_absolute=yes
7925       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7926         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7927         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7928         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7929         export_dynamic_flag_spec='${wl}-E'
7930       else
7931         case $host_os in
7932         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7933           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7934           hardcode_libdir_flag_spec='-R$libdir'
7935           ;;
7936         *)
7937           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7938           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7939           ;;
7940         esac
7941       fi
7942       ;;
7943
7944     os2*)
7945       hardcode_libdir_flag_spec='-L$libdir'
7946       hardcode_minus_L=yes
7947       allow_undefined_flag=unsupported
7948       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'
7949       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7950       ;;
7951
7952     osf3*)
7953       if test "$GCC" = yes; then
7954         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7955         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7956       else
7957         allow_undefined_flag=' -expect_unresolved \*'
7958         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7959       fi
7960       archive_cmds_need_lc='no'
7961       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7962       hardcode_libdir_separator=:
7963       ;;
7964
7965     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7966       if test "$GCC" = yes; then
7967         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7968         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7969         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7970       else
7971         allow_undefined_flag=' -expect_unresolved \*'
7972         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7973         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7974         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7975
7976         # Both c and cxx compiler support -rpath directly
7977         hardcode_libdir_flag_spec='-rpath $libdir'
7978       fi
7979       archive_cmds_need_lc='no'
7980       hardcode_libdir_separator=:
7981       ;;
7982
7983     solaris*)
7984       no_undefined_flag=' -z defs'
7985       if test "$GCC" = yes; then
7986         wlarc='${wl}'
7987         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7988         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7989           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7990       else
7991         case `$CC -V 2>&1` in
7992         *"Compilers 5.0"*)
7993           wlarc=''
7994           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7995           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7996           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7997           ;;
7998         *)
7999           wlarc='${wl}'
8000           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8001           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8002           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8003           ;;
8004         esac
8005       fi
8006       hardcode_libdir_flag_spec='-R$libdir'
8007       hardcode_shlibpath_var=no
8008       case $host_os in
8009       solaris2.[0-5] | solaris2.[0-5].*) ;;
8010       *)
8011         # The compiler driver will combine and reorder linker options,
8012         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8013         # but is careful enough not to reorder.
8014         # Supported since Solaris 2.6 (maybe 2.5.1?)
8015         if test "$GCC" = yes; then
8016           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8017         else
8018           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8019         fi
8020         ;;
8021       esac
8022       link_all_deplibs=yes
8023       ;;
8024
8025     sunos4*)
8026       if test "x$host_vendor" = xsequent; then
8027         # Use $CC to link under sequent, because it throws in some extra .o
8028         # files that make .init and .fini sections work.
8029         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8030       else
8031         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8032       fi
8033       hardcode_libdir_flag_spec='-L$libdir'
8034       hardcode_direct=yes
8035       hardcode_minus_L=yes
8036       hardcode_shlibpath_var=no
8037       ;;
8038
8039     sysv4)
8040       case $host_vendor in
8041         sni)
8042           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8043           hardcode_direct=yes # is this really true???
8044         ;;
8045         siemens)
8046           ## LD is ld it makes a PLAMLIB
8047           ## CC just makes a GrossModule.
8048           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8049           reload_cmds='$CC -r -o $output$reload_objs'
8050           hardcode_direct=no
8051         ;;
8052         motorola)
8053           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8054           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8055         ;;
8056       esac
8057       runpath_var='LD_RUN_PATH'
8058       hardcode_shlibpath_var=no
8059       ;;
8060
8061     sysv4.3*)
8062       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8063       hardcode_shlibpath_var=no
8064       export_dynamic_flag_spec='-Bexport'
8065       ;;
8066
8067     sysv4*MP*)
8068       if test -d /usr/nec; then
8069         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8070         hardcode_shlibpath_var=no
8071         runpath_var=LD_RUN_PATH
8072         hardcode_runpath_var=yes
8073         ld_shlibs=yes
8074       fi
8075       ;;
8076
8077     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8078       no_undefined_flag='${wl}-z,text'
8079       archive_cmds_need_lc=no
8080       hardcode_shlibpath_var=no
8081       runpath_var='LD_RUN_PATH'
8082
8083       if test "$GCC" = yes; then
8084         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8085         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8086       else
8087         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8088         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8089       fi
8090       ;;
8091
8092     sysv5* | sco3.2v5* | sco5v6*)
8093       # Note: We can NOT use -z defs as we might desire, because we do not
8094       # link with -lc, and that would cause any symbols used from libc to
8095       # always be unresolved, which means just about no library would
8096       # ever link correctly.  If we're not using GNU ld we use -z text
8097       # though, which does catch some bad symbols but isn't as heavy-handed
8098       # as -z defs.
8099       no_undefined_flag='${wl}-z,text'
8100       allow_undefined_flag='${wl}-z,nodefs'
8101       archive_cmds_need_lc=no
8102       hardcode_shlibpath_var=no
8103       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8104       hardcode_libdir_separator=':'
8105       link_all_deplibs=yes
8106       export_dynamic_flag_spec='${wl}-Bexport'
8107       runpath_var='LD_RUN_PATH'
8108
8109       if test "$GCC" = yes; then
8110         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8111         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8112       else
8113         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8114         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8115       fi
8116       ;;
8117
8118     uts4*)
8119       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8120       hardcode_libdir_flag_spec='-L$libdir'
8121       hardcode_shlibpath_var=no
8122       ;;
8123
8124     *)
8125       ld_shlibs=no
8126       ;;
8127     esac
8128
8129     if test x$host_vendor = xsni; then
8130       case $host in
8131       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8132         export_dynamic_flag_spec='${wl}-Blargedynsym'
8133         ;;
8134       esac
8135     fi
8136   fi
8137
8138 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8139 echo "${ECHO_T}$ld_shlibs" >&6
8140 test "$ld_shlibs" = no && can_build_shared=no
8141
8142 with_gnu_ld=$with_gnu_ld
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158 #
8159 # Do we need to explicitly link libc?
8160 #
8161 case "x$archive_cmds_need_lc" in
8162 x|xyes)
8163   # Assume -lc should be added
8164   archive_cmds_need_lc=yes
8165
8166   if test "$enable_shared" = yes && test "$GCC" = yes; then
8167     case $archive_cmds in
8168     *'~'*)
8169       # FIXME: we may have to deal with multi-command sequences.
8170       ;;
8171     '$CC '*)
8172       # Test whether the compiler implicitly links with -lc since on some
8173       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8174       # to ld, don't add -lc before -lgcc.
8175       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8176 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8177       $RM conftest*
8178       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8179
8180       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181   (eval $ac_compile) 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } 2>conftest.err; then
8185         soname=conftest
8186         lib=conftest
8187         libobjs=conftest.$ac_objext
8188         deplibs=
8189         wl=$lt_prog_compiler_wl
8190         pic_flag=$lt_prog_compiler_pic
8191         compiler_flags=-v
8192         linker_flags=-v
8193         verstring=
8194         output_objdir=.
8195         libname=conftest
8196         lt_save_allow_undefined_flag=$allow_undefined_flag
8197         allow_undefined_flag=
8198         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8199   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }
8203         then
8204           archive_cmds_need_lc=no
8205         else
8206           archive_cmds_need_lc=yes
8207         fi
8208         allow_undefined_flag=$lt_save_allow_undefined_flag
8209       else
8210         cat conftest.err 1>&5
8211       fi
8212       $RM conftest*
8213       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8214 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8215       ;;
8216     esac
8217   fi
8218   ;;
8219 esac
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8378 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8379 withGCC=$GCC
8380 if test "$withGCC" = yes; then
8381   case $host_os in
8382     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8383     *) lt_awk_arg="/^libraries:/" ;;
8384   esac
8385   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8386   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8387     # if the path contains ";" then we assume it to be the separator
8388     # otherwise default to the standard path separator (i.e. ":") - it is
8389     # assumed that no part of a normal pathname contains ";" but that should
8390     # okay in the real world where ";" in dirpaths is itself problematic.
8391     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8392   else
8393     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8394   fi
8395   # Ok, now we have the path, separated by spaces, we can step through it
8396   # and add multilib dir if necessary.
8397   lt_tmp_lt_search_path_spec=
8398   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8399   for lt_sys_path in $lt_search_path_spec; do
8400     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8401       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8402     else
8403       test -d "$lt_sys_path" && \
8404         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8405     fi
8406   done
8407   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8408 BEGIN {RS=" "; FS="/|\n";} {
8409   lt_foo="";
8410   lt_count=0;
8411   for (lt_i = NF; lt_i > 0; lt_i--) {
8412     if ($lt_i != "" && $lt_i != ".") {
8413       if ($lt_i == "..") {
8414         lt_count++;
8415       } else {
8416         if (lt_count == 0) {
8417           lt_foo="/" $lt_i lt_foo;
8418         } else {
8419           lt_count--;
8420         }
8421       }
8422     }
8423   }
8424   if (lt_foo != "") { lt_freq[lt_foo]++; }
8425   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8426 }'`
8427   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8428 else
8429   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8430 fi
8431 library_names_spec=
8432 libname_spec='lib$name'
8433 soname_spec=
8434 shrext_cmds=".so"
8435 postinstall_cmds=
8436 postuninstall_cmds=
8437 finish_cmds=
8438 finish_eval=
8439 shlibpath_var=
8440 shlibpath_overrides_runpath=unknown
8441 version_type=none
8442 dynamic_linker="$host_os ld.so"
8443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8444 need_lib_prefix=unknown
8445 hardcode_into_libs=no
8446
8447 # when you set need_version to no, make sure it does not cause -set_version
8448 # flags to be left without arguments
8449 need_version=unknown
8450
8451 case $host_os in
8452 aix3*)
8453   version_type=linux
8454   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8455   shlibpath_var=LIBPATH
8456
8457   # AIX 3 has no versioning support, so we append a major version to the name.
8458   soname_spec='${libname}${release}${shared_ext}$major'
8459   ;;
8460
8461 aix4* | aix5*)
8462   version_type=linux
8463   need_lib_prefix=no
8464   need_version=no
8465   hardcode_into_libs=yes
8466   if test "$host_cpu" = ia64; then
8467     # AIX 5 supports IA64
8468     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8469     shlibpath_var=LD_LIBRARY_PATH
8470   else
8471     # With GCC up to 2.95.x, collect2 would create an import file
8472     # for dependence libraries.  The import file would start with
8473     # the line `#! .'.  This would cause the generated library to
8474     # depend on `.', always an invalid library.  This was fixed in
8475     # development snapshots of GCC prior to 3.0.
8476     case $host_os in
8477       aix4 | aix4.[01] | aix4.[01].*)
8478       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8479            echo ' yes '
8480            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8481         :
8482       else
8483         can_build_shared=no
8484       fi
8485       ;;
8486     esac
8487     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8488     # soname into executable. Probably we can add versioning support to
8489     # collect2, so additional links can be useful in future.
8490     if test "$aix_use_runtimelinking" = yes; then
8491       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8492       # instead of lib<name>.a to let people know that these are not
8493       # typical AIX shared libraries.
8494       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8495     else
8496       # We preserve .a as extension for shared libraries through AIX4.2
8497       # and later when we are not doing run time linking.
8498       library_names_spec='${libname}${release}.a $libname.a'
8499       soname_spec='${libname}${release}${shared_ext}$major'
8500     fi
8501     shlibpath_var=LIBPATH
8502   fi
8503   ;;
8504
8505 amigaos*)
8506   if test "$host_cpu" = m68k; then
8507     library_names_spec='$libname.ixlibrary $libname.a'
8508     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8509     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'
8510   else
8511     dynamic_linker=no
8512   fi
8513   ;;
8514
8515 beos*)
8516   library_names_spec='${libname}${shared_ext}'
8517   dynamic_linker="$host_os ld.so"
8518   shlibpath_var=LIBRARY_PATH
8519   ;;
8520
8521 bsdi[45]*)
8522   version_type=linux
8523   need_version=no
8524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525   soname_spec='${libname}${release}${shared_ext}$major'
8526   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8527   shlibpath_var=LD_LIBRARY_PATH
8528   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8529   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8530   # the default ld.so.conf also contains /usr/contrib/lib and
8531   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8532   # libtool to hard-code these into programs
8533   ;;
8534
8535 cygwin* | mingw* | pw32*)
8536   version_type=windows
8537   shrext_cmds=".dll"
8538   need_version=no
8539   need_lib_prefix=no
8540
8541   case $withGCC,$host_os in
8542   yes,cygwin* | yes,mingw* | yes,pw32*)
8543     library_names_spec='$libname.dll.a'
8544     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8545     postinstall_cmds='base_file=`basename \${file}`~
8546       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8547       dldir=$destdir/`dirname \$dlpath`~
8548       test -d \$dldir || mkdir -p \$dldir~
8549       $install_prog $dir/$dlname \$dldir/$dlname~
8550       chmod a+x \$dldir/$dlname~
8551       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8552         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8553       fi'
8554     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8555       dlpath=$dir/\$dldll~
8556        $RM \$dlpath'
8557     shlibpath_overrides_runpath=yes
8558
8559     case $host_os in
8560     cygwin*)
8561       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8562       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8563       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8564       ;;
8565     mingw*)
8566       # MinGW DLLs use traditional 'lib' prefix
8567       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8568       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8569       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8570         # It is most probably a Windows format PATH printed by
8571         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8572         # path with ; separators, and with drive letters. We can handle the
8573         # drive letters (cygwin fileutils understands them), so leave them,
8574         # especially as we might pass files found there to a mingw objdump,
8575         # which wouldn't understand a cygwinified path. Ahh.
8576         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8577       else
8578         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8579       fi
8580       ;;
8581     pw32*)
8582       # pw32 DLLs use 'pw' prefix rather than 'lib'
8583       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8584       ;;
8585     esac
8586     ;;
8587
8588   *)
8589     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8590     ;;
8591   esac
8592   dynamic_linker='Win32 ld.exe'
8593   # FIXME: first we should search . and the directory the executable is in
8594   shlibpath_var=PATH
8595   ;;
8596
8597 darwin* | rhapsody*)
8598   dynamic_linker="$host_os dyld"
8599   version_type=darwin
8600   need_lib_prefix=no
8601   need_version=no
8602   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8603   soname_spec='${libname}${release}${major}$shared_ext'
8604   shlibpath_overrides_runpath=yes
8605   shlibpath_var=DYLD_LIBRARY_PATH
8606   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8607
8608   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8609   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8610   ;;
8611
8612 dgux*)
8613   version_type=linux
8614   need_lib_prefix=no
8615   need_version=no
8616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8617   soname_spec='${libname}${release}${shared_ext}$major'
8618   shlibpath_var=LD_LIBRARY_PATH
8619   ;;
8620
8621 freebsd1*)
8622   dynamic_linker=no
8623   ;;
8624
8625 freebsd* | dragonfly*)
8626   # DragonFly does not have aout.  When/if they implement a new
8627   # versioning mechanism, adjust this.
8628   if test -x /usr/bin/objformat; then
8629     objformat=`/usr/bin/objformat`
8630   else
8631     case $host_os in
8632     freebsd[123]*) objformat=aout ;;
8633     *) objformat=elf ;;
8634     esac
8635   fi
8636   version_type=freebsd-$objformat
8637   case $version_type in
8638     freebsd-elf*)
8639       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8640       need_version=no
8641       need_lib_prefix=no
8642       ;;
8643     freebsd-*)
8644       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8645       need_version=yes
8646       ;;
8647   esac
8648   shlibpath_var=LD_LIBRARY_PATH
8649   case $host_os in
8650   freebsd2*)
8651     shlibpath_overrides_runpath=yes
8652     ;;
8653   freebsd3.[01]* | freebsdelf3.[01]*)
8654     shlibpath_overrides_runpath=yes
8655     hardcode_into_libs=yes
8656     ;;
8657   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8658   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8659     shlibpath_overrides_runpath=no
8660     hardcode_into_libs=yes
8661     ;;
8662   *) # from 4.6 on, and DragonFly
8663     shlibpath_overrides_runpath=yes
8664     hardcode_into_libs=yes
8665     ;;
8666   esac
8667   ;;
8668
8669 gnu*)
8670   version_type=linux
8671   need_lib_prefix=no
8672   need_version=no
8673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8674   soname_spec='${libname}${release}${shared_ext}$major'
8675   shlibpath_var=LD_LIBRARY_PATH
8676   hardcode_into_libs=yes
8677   ;;
8678
8679 hpux9* | hpux10* | hpux11*)
8680   # Give a soname corresponding to the major version so that dld.sl refuses to
8681   # link against other versions.
8682   version_type=sunos
8683   need_lib_prefix=no
8684   need_version=no
8685   case $host_cpu in
8686   ia64*)
8687     shrext_cmds='.so'
8688     hardcode_into_libs=yes
8689     dynamic_linker="$host_os dld.so"
8690     shlibpath_var=LD_LIBRARY_PATH
8691     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8693     soname_spec='${libname}${release}${shared_ext}$major'
8694     if test "X$HPUX_IA64_MODE" = X32; then
8695       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8696     else
8697       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8698     fi
8699     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8700     ;;
8701   hppa*64*)
8702     shrext_cmds='.sl'
8703     hardcode_into_libs=yes
8704     dynamic_linker="$host_os dld.sl"
8705     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8706     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8708     soname_spec='${libname}${release}${shared_ext}$major'
8709     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8710     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8711     ;;
8712   *)
8713     shrext_cmds='.sl'
8714     dynamic_linker="$host_os dld.sl"
8715     shlibpath_var=SHLIB_PATH
8716     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8718     soname_spec='${libname}${release}${shared_ext}$major'
8719     ;;
8720   esac
8721   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8722   postinstall_cmds='chmod 555 $lib'
8723   ;;
8724
8725 interix[3-9]*)
8726   version_type=linux
8727   need_lib_prefix=no
8728   need_version=no
8729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8730   soname_spec='${libname}${release}${shared_ext}$major'
8731   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8732   shlibpath_var=LD_LIBRARY_PATH
8733   shlibpath_overrides_runpath=no
8734   hardcode_into_libs=yes
8735   ;;
8736
8737 irix5* | irix6* | nonstopux*)
8738   case $host_os in
8739     nonstopux*) version_type=nonstopux ;;
8740     *)
8741         if test "$lt_cv_prog_gnu_ld" = yes; then
8742                 version_type=linux
8743         else
8744                 version_type=irix
8745         fi ;;
8746   esac
8747   need_lib_prefix=no
8748   need_version=no
8749   soname_spec='${libname}${release}${shared_ext}$major'
8750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8751   case $host_os in
8752   irix5* | nonstopux*)
8753     libsuff= shlibsuff=
8754     ;;
8755   *)
8756     case $LD in # libtool.m4 will add one of these switches to LD
8757     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8758       libsuff= shlibsuff= libmagic=32-bit;;
8759     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8760       libsuff=32 shlibsuff=N32 libmagic=N32;;
8761     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8762       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8763     *) libsuff= shlibsuff= libmagic=never-match;;
8764     esac
8765     ;;
8766   esac
8767   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8768   shlibpath_overrides_runpath=no
8769   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8770   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8771   hardcode_into_libs=yes
8772   ;;
8773
8774 # No shared lib support for Linux oldld, aout, or coff.
8775 linux*oldld* | linux*aout* | linux*coff*)
8776   dynamic_linker=no
8777   ;;
8778
8779 # This must be Linux ELF.
8780 linux* | k*bsd*-gnu)
8781   version_type=linux
8782   need_lib_prefix=no
8783   need_version=no
8784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785   soname_spec='${libname}${release}${shared_ext}$major'
8786   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8787   shlibpath_var=LD_LIBRARY_PATH
8788   shlibpath_overrides_runpath=no
8789   # Some binutils ld are patched to set DT_RUNPATH
8790   save_LDFLAGS=$LDFLAGS
8791   save_libdir=$libdir
8792   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8793        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8794   if test x$gcc_no_link = xyes; then
8795   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8797    { (exit 1); exit 1; }; }
8798 fi
8799 cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805
8806 int
8807 main ()
8808 {
8809
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816   (eval $ac_link) 2>conftest.er1
8817   ac_status=$?
8818   grep -v '^ *+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } &&
8823          { ac_try='test -z "$ac_c_werror_flag"
8824                          || test ! -s conftest.err'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; } &&
8830          { ac_try='test -s conftest$ac_exeext'
8831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832   (eval $ac_try) 2>&5
8833   ac_status=$?
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); }; }; then
8836   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8837   shlibpath_overrides_runpath=yes
8838 fi
8839
8840 else
8841   echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844 fi
8845 rm -f conftest.err conftest.$ac_objext \
8846       conftest$ac_exeext conftest.$ac_ext
8847   LDFLAGS=$save_LDFLAGS
8848   libdir=$save_libdir
8849
8850   # This implies no fast_install, which is unacceptable.
8851   # Some rework will be needed to allow for fast_install
8852   # before this can be enabled.
8853   hardcode_into_libs=yes
8854
8855   # Append ld.so.conf contents to the search path
8856   if test -f /etc/ld.so.conf; then
8857     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8858     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8859   fi
8860
8861   # We used to test for /lib/ld.so.1 and disable shared libraries on
8862   # powerpc, because MkLinux only supported shared libraries with the
8863   # GNU dynamic linker.  Since this was broken with cross compilers,
8864   # most powerpc-linux boxes support dynamic linking these days and
8865   # people can always --disable-shared, the test was removed, and we
8866   # assume the GNU/Linux dynamic linker is in use.
8867   dynamic_linker='GNU/Linux ld.so'
8868   ;;
8869
8870 netbsd*)
8871   version_type=sunos
8872   need_lib_prefix=no
8873   need_version=no
8874   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8876     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8877     dynamic_linker='NetBSD (a.out) ld.so'
8878   else
8879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8880     soname_spec='${libname}${release}${shared_ext}$major'
8881     dynamic_linker='NetBSD ld.elf_so'
8882   fi
8883   shlibpath_var=LD_LIBRARY_PATH
8884   shlibpath_overrides_runpath=yes
8885   hardcode_into_libs=yes
8886   ;;
8887
8888 newsos6)
8889   version_type=linux
8890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891   shlibpath_var=LD_LIBRARY_PATH
8892   shlibpath_overrides_runpath=yes
8893   ;;
8894
8895 *nto* | *qnx*)
8896   version_type=qnx
8897   need_lib_prefix=no
8898   need_version=no
8899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900   soname_spec='${libname}${release}${shared_ext}$major'
8901   shlibpath_var=LD_LIBRARY_PATH
8902   shlibpath_overrides_runpath=no
8903   hardcode_into_libs=yes
8904   dynamic_linker='ldqnx.so'
8905   ;;
8906
8907 openbsd*)
8908   version_type=sunos
8909   sys_lib_dlsearch_path_spec="/usr/lib"
8910   need_lib_prefix=no
8911   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8912   case $host_os in
8913     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8914     *)                          need_version=no  ;;
8915   esac
8916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8917   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8918   shlibpath_var=LD_LIBRARY_PATH
8919   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8920     case $host_os in
8921       openbsd2.[89] | openbsd2.[89].*)
8922         shlibpath_overrides_runpath=no
8923         ;;
8924       *)
8925         shlibpath_overrides_runpath=yes
8926         ;;
8927       esac
8928   else
8929     shlibpath_overrides_runpath=yes
8930   fi
8931   ;;
8932
8933 os2*)
8934   libname_spec='$name'
8935   shrext_cmds=".dll"
8936   need_lib_prefix=no
8937   library_names_spec='$libname${shared_ext} $libname.a'
8938   dynamic_linker='OS/2 ld.exe'
8939   shlibpath_var=LIBPATH
8940   ;;
8941
8942 osf3* | osf4* | osf5*)
8943   version_type=osf
8944   need_lib_prefix=no
8945   need_version=no
8946   soname_spec='${libname}${release}${shared_ext}$major'
8947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948   shlibpath_var=LD_LIBRARY_PATH
8949   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8950   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8951   ;;
8952
8953 rdos*)
8954   dynamic_linker=no
8955   ;;
8956
8957 solaris*)
8958   version_type=linux
8959   need_lib_prefix=no
8960   need_version=no
8961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962   soname_spec='${libname}${release}${shared_ext}$major'
8963   shlibpath_var=LD_LIBRARY_PATH
8964   shlibpath_overrides_runpath=yes
8965   hardcode_into_libs=yes
8966   # ldd complains unless libraries are executable
8967   postinstall_cmds='chmod +x $lib'
8968   ;;
8969
8970 sunos4*)
8971   version_type=sunos
8972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8973   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8974   shlibpath_var=LD_LIBRARY_PATH
8975   shlibpath_overrides_runpath=yes
8976   if test "$with_gnu_ld" = yes; then
8977     need_lib_prefix=no
8978   fi
8979   need_version=yes
8980   ;;
8981
8982 sysv4 | sysv4.3*)
8983   version_type=linux
8984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8985   soname_spec='${libname}${release}${shared_ext}$major'
8986   shlibpath_var=LD_LIBRARY_PATH
8987   case $host_vendor in
8988     sni)
8989       shlibpath_overrides_runpath=no
8990       need_lib_prefix=no
8991       runpath_var=LD_RUN_PATH
8992       ;;
8993     siemens)
8994       need_lib_prefix=no
8995       ;;
8996     motorola)
8997       need_lib_prefix=no
8998       need_version=no
8999       shlibpath_overrides_runpath=no
9000       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9001       ;;
9002   esac
9003   ;;
9004
9005 sysv4*MP*)
9006   if test -d /usr/nec ;then
9007     version_type=linux
9008     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9009     soname_spec='$libname${shared_ext}.$major'
9010     shlibpath_var=LD_LIBRARY_PATH
9011   fi
9012   ;;
9013
9014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9015   version_type=freebsd-elf
9016   need_lib_prefix=no
9017   need_version=no
9018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9019   soname_spec='${libname}${release}${shared_ext}$major'
9020   shlibpath_var=LD_LIBRARY_PATH
9021   shlibpath_overrides_runpath=yes
9022   hardcode_into_libs=yes
9023   if test "$with_gnu_ld" = yes; then
9024     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9025   else
9026     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9027     case $host_os in
9028       sco3.2v5*)
9029         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9030         ;;
9031     esac
9032   fi
9033   sys_lib_dlsearch_path_spec='/usr/lib'
9034   ;;
9035
9036 tpf*)
9037   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9038   version_type=linux
9039   need_lib_prefix=no
9040   need_version=no
9041   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042   shlibpath_var=LD_LIBRARY_PATH
9043   shlibpath_overrides_runpath=no
9044   hardcode_into_libs=yes
9045   ;;
9046
9047 uts4*)
9048   version_type=linux
9049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050   soname_spec='${libname}${release}${shared_ext}$major'
9051   shlibpath_var=LD_LIBRARY_PATH
9052   ;;
9053
9054 *)
9055   dynamic_linker=no
9056   ;;
9057 esac
9058 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9059 echo "${ECHO_T}$dynamic_linker" >&6
9060 test "$dynamic_linker" = no && can_build_shared=no
9061
9062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9063 if test "$GCC" = yes; then
9064   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9065 fi
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9154 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9155 hardcode_action=
9156 if test -n "$hardcode_libdir_flag_spec" ||
9157    test -n "$runpath_var" ||
9158    test "X$hardcode_automatic" = "Xyes" ; then
9159
9160   # We can hardcode non-existent directories.
9161   if test "$hardcode_direct" != no &&
9162      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9163      # have to relink, otherwise we might link with an installed library
9164      # when we should be linking with a yet-to-be-installed one
9165      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9166      test "$hardcode_minus_L" != no; then
9167     # Linking always hardcodes the temporary library directory.
9168     hardcode_action=relink
9169   else
9170     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9171     hardcode_action=immediate
9172   fi
9173 else
9174   # We cannot hardcode anything, or else we can only hardcode existing
9175   # directories.
9176   hardcode_action=unsupported
9177 fi
9178 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9179 echo "${ECHO_T}$hardcode_action" >&6
9180
9181 if test "$hardcode_action" = relink ||
9182    test "$inherit_rpath" = yes; then
9183   # Fast installation is not supported
9184   enable_fast_install=no
9185 elif test "$shlibpath_overrides_runpath" = yes ||
9186      test "$enable_shared" = no; then
9187   # Fast installation is not necessary
9188   enable_fast_install=needless
9189 fi
9190
9191
9192
9193
9194
9195
9196   if test "x$enable_dlopen" != xyes; then
9197   enable_dlopen=unknown
9198   enable_dlopen_self=unknown
9199   enable_dlopen_self_static=unknown
9200 else
9201   lt_cv_dlopen=no
9202   lt_cv_dlopen_libs=
9203
9204   case $host_os in
9205   beos*)
9206     lt_cv_dlopen="load_add_on"
9207     lt_cv_dlopen_libs=
9208     lt_cv_dlopen_self=yes
9209     ;;
9210
9211   mingw* | pw32*)
9212     lt_cv_dlopen="LoadLibrary"
9213     lt_cv_dlopen_libs=
9214     ;;
9215
9216   cygwin*)
9217     lt_cv_dlopen="dlopen"
9218     lt_cv_dlopen_libs=
9219     ;;
9220
9221   darwin*)
9222   # if libdl is installed we need to link against it
9223     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9224 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9225 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228   ac_check_lib_save_LIBS=$LIBS
9229 LIBS="-ldl  $LIBS"
9230 if test x$gcc_no_link = xyes; then
9231   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9233    { (exit 1); exit 1; }; }
9234 fi
9235 cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h.  */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h.  */
9241
9242 /* Override any gcc2 internal prototype to avoid an error.  */
9243 #ifdef __cplusplus
9244 extern "C"
9245 #endif
9246 /* We use char because int might match the return type of a gcc2
9247    builtin and then its argument prototype would still apply.  */
9248 char dlopen ();
9249 int
9250 main ()
9251 {
9252 dlopen ();
9253   ;
9254   return 0;
9255 }
9256 _ACEOF
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259   (eval $ac_link) 2>conftest.er1
9260   ac_status=$?
9261   grep -v '^ *+' conftest.er1 >conftest.err
9262   rm -f conftest.er1
9263   cat conftest.err >&5
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); } &&
9266          { ac_try='test -z "$ac_c_werror_flag"
9267                          || test ! -s conftest.err'
9268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269   (eval $ac_try) 2>&5
9270   ac_status=$?
9271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272   (exit $ac_status); }; } &&
9273          { ac_try='test -s conftest$ac_exeext'
9274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275   (eval $ac_try) 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; }; then
9279   ac_cv_lib_dl_dlopen=yes
9280 else
9281   echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9283
9284 ac_cv_lib_dl_dlopen=no
9285 fi
9286 rm -f conftest.err conftest.$ac_objext \
9287       conftest$ac_exeext conftest.$ac_ext
9288 LIBS=$ac_check_lib_save_LIBS
9289 fi
9290 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9291 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9292 if test $ac_cv_lib_dl_dlopen = yes; then
9293   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9294 else
9295
9296     lt_cv_dlopen="dyld"
9297     lt_cv_dlopen_libs=
9298     lt_cv_dlopen_self=yes
9299
9300 fi
9301
9302     ;;
9303
9304   *)
9305     echo "$as_me:$LINENO: checking for shl_load" >&5
9306 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9307 if test "${ac_cv_func_shl_load+set}" = set; then
9308   echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310   if test x$gcc_no_link = xyes; then
9311   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9313    { (exit 1); exit 1; }; }
9314 fi
9315 cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h.  */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h.  */
9321 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9323 #define shl_load innocuous_shl_load
9324
9325 /* System header to define __stub macros and hopefully few prototypes,
9326     which can conflict with char shl_load (); below.
9327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9328     <limits.h> exists even on freestanding compilers.  */
9329
9330 #ifdef __STDC__
9331 # include <limits.h>
9332 #else
9333 # include <assert.h>
9334 #endif
9335
9336 #undef shl_load
9337
9338 /* Override any gcc2 internal prototype to avoid an error.  */
9339 #ifdef __cplusplus
9340 extern "C"
9341 {
9342 #endif
9343 /* We use char because int might match the return type of a gcc2
9344    builtin and then its argument prototype would still apply.  */
9345 char shl_load ();
9346 /* The GNU C library defines this for functions which it implements
9347     to always fail with ENOSYS.  Some functions are actually named
9348     something starting with __ and the normal name is an alias.  */
9349 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9350 choke me
9351 #else
9352 char (*f) () = shl_load;
9353 #endif
9354 #ifdef __cplusplus
9355 }
9356 #endif
9357
9358 int
9359 main ()
9360 {
9361 return f != shl_load;
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368   (eval $ac_link) 2>conftest.er1
9369   ac_status=$?
9370   grep -v '^ *+' conftest.er1 >conftest.err
9371   rm -f conftest.er1
9372   cat conftest.err >&5
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } &&
9375          { ac_try='test -z "$ac_c_werror_flag"
9376                          || test ! -s conftest.err'
9377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378   (eval $ac_try) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; } &&
9382          { ac_try='test -s conftest$ac_exeext'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; }; then
9388   ac_cv_func_shl_load=yes
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 ac_cv_func_shl_load=no
9394 fi
9395 rm -f conftest.err conftest.$ac_objext \
9396       conftest$ac_exeext conftest.$ac_ext
9397 fi
9398 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9399 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9400 if test $ac_cv_func_shl_load = yes; then
9401   lt_cv_dlopen="shl_load"
9402 else
9403   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9404 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9405 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9406   echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408   ac_check_lib_save_LIBS=$LIBS
9409 LIBS="-ldld  $LIBS"
9410 if test x$gcc_no_link = xyes; then
9411   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9413    { (exit 1); exit 1; }; }
9414 fi
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h.  */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h.  */
9421
9422 /* Override any gcc2 internal prototype to avoid an error.  */
9423 #ifdef __cplusplus
9424 extern "C"
9425 #endif
9426 /* We use char because int might match the return type of a gcc2
9427    builtin and then its argument prototype would still apply.  */
9428 char shl_load ();
9429 int
9430 main ()
9431 {
9432 shl_load ();
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439   (eval $ac_link) 2>conftest.er1
9440   ac_status=$?
9441   grep -v '^ *+' conftest.er1 >conftest.err
9442   rm -f conftest.er1
9443   cat conftest.err >&5
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } &&
9446          { ac_try='test -z "$ac_c_werror_flag"
9447                          || test ! -s conftest.err'
9448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449   (eval $ac_try) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); }; } &&
9453          { ac_try='test -s conftest$ac_exeext'
9454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455   (eval $ac_try) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); }; }; then
9459   ac_cv_lib_dld_shl_load=yes
9460 else
9461   echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9463
9464 ac_cv_lib_dld_shl_load=no
9465 fi
9466 rm -f conftest.err conftest.$ac_objext \
9467       conftest$ac_exeext conftest.$ac_ext
9468 LIBS=$ac_check_lib_save_LIBS
9469 fi
9470 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9471 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9472 if test $ac_cv_lib_dld_shl_load = yes; then
9473   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9474 else
9475   echo "$as_me:$LINENO: checking for dlopen" >&5
9476 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9477 if test "${ac_cv_func_dlopen+set}" = set; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   if test x$gcc_no_link = xyes; then
9481   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9482 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9483    { (exit 1); exit 1; }; }
9484 fi
9485 cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h.  */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h.  */
9491 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9493 #define dlopen innocuous_dlopen
9494
9495 /* System header to define __stub macros and hopefully few prototypes,
9496     which can conflict with char dlopen (); below.
9497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9498     <limits.h> exists even on freestanding compilers.  */
9499
9500 #ifdef __STDC__
9501 # include <limits.h>
9502 #else
9503 # include <assert.h>
9504 #endif
9505
9506 #undef dlopen
9507
9508 /* Override any gcc2 internal prototype to avoid an error.  */
9509 #ifdef __cplusplus
9510 extern "C"
9511 {
9512 #endif
9513 /* We use char because int might match the return type of a gcc2
9514    builtin and then its argument prototype would still apply.  */
9515 char dlopen ();
9516 /* The GNU C library defines this for functions which it implements
9517     to always fail with ENOSYS.  Some functions are actually named
9518     something starting with __ and the normal name is an alias.  */
9519 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9520 choke me
9521 #else
9522 char (*f) () = dlopen;
9523 #endif
9524 #ifdef __cplusplus
9525 }
9526 #endif
9527
9528 int
9529 main ()
9530 {
9531 return f != dlopen;
9532   ;
9533   return 0;
9534 }
9535 _ACEOF
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9538   (eval $ac_link) 2>conftest.er1
9539   ac_status=$?
9540   grep -v '^ *+' conftest.er1 >conftest.err
9541   rm -f conftest.er1
9542   cat conftest.err >&5
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } &&
9545          { ac_try='test -z "$ac_c_werror_flag"
9546                          || test ! -s conftest.err'
9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548   (eval $ac_try) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; } &&
9552          { ac_try='test -s conftest$ac_exeext'
9553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554   (eval $ac_try) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); }; }; then
9558   ac_cv_func_dlopen=yes
9559 else
9560   echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9562
9563 ac_cv_func_dlopen=no
9564 fi
9565 rm -f conftest.err conftest.$ac_objext \
9566       conftest$ac_exeext conftest.$ac_ext
9567 fi
9568 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9569 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9570 if test $ac_cv_func_dlopen = yes; then
9571   lt_cv_dlopen="dlopen"
9572 else
9573   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9574 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9575 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9576   echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578   ac_check_lib_save_LIBS=$LIBS
9579 LIBS="-ldl  $LIBS"
9580 if test x$gcc_no_link = xyes; then
9581   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9582 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9583    { (exit 1); exit 1; }; }
9584 fi
9585 cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h.  */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h.  */
9591
9592 /* Override any gcc2 internal prototype to avoid an error.  */
9593 #ifdef __cplusplus
9594 extern "C"
9595 #endif
9596 /* We use char because int might match the return type of a gcc2
9597    builtin and then its argument prototype would still apply.  */
9598 char dlopen ();
9599 int
9600 main ()
9601 {
9602 dlopen ();
9603   ;
9604   return 0;
9605 }
9606 _ACEOF
9607 rm -f conftest.$ac_objext conftest$ac_exeext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609   (eval $ac_link) 2>conftest.er1
9610   ac_status=$?
9611   grep -v '^ *+' conftest.er1 >conftest.err
9612   rm -f conftest.er1
9613   cat conftest.err >&5
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); } &&
9616          { ac_try='test -z "$ac_c_werror_flag"
9617                          || test ! -s conftest.err'
9618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619   (eval $ac_try) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); }; } &&
9623          { ac_try='test -s conftest$ac_exeext'
9624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625   (eval $ac_try) 2>&5
9626   ac_status=$?
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); }; }; then
9629   ac_cv_lib_dl_dlopen=yes
9630 else
9631   echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9633
9634 ac_cv_lib_dl_dlopen=no
9635 fi
9636 rm -f conftest.err conftest.$ac_objext \
9637       conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_lib_save_LIBS
9639 fi
9640 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9641 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9642 if test $ac_cv_lib_dl_dlopen = yes; then
9643   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9644 else
9645   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9646 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9647 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   ac_check_lib_save_LIBS=$LIBS
9651 LIBS="-lsvld  $LIBS"
9652 if test x$gcc_no_link = xyes; then
9653   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9654 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9655    { (exit 1); exit 1; }; }
9656 fi
9657 cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h.  */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h.  */
9663
9664 /* Override any gcc2 internal prototype to avoid an error.  */
9665 #ifdef __cplusplus
9666 extern "C"
9667 #endif
9668 /* We use char because int might match the return type of a gcc2
9669    builtin and then its argument prototype would still apply.  */
9670 char dlopen ();
9671 int
9672 main ()
9673 {
9674 dlopen ();
9675   ;
9676   return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest.$ac_objext conftest$ac_exeext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9681   (eval $ac_link) 2>conftest.er1
9682   ac_status=$?
9683   grep -v '^ *+' conftest.er1 >conftest.err
9684   rm -f conftest.er1
9685   cat conftest.err >&5
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); } &&
9688          { ac_try='test -z "$ac_c_werror_flag"
9689                          || test ! -s conftest.err'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; } &&
9695          { ac_try='test -s conftest$ac_exeext'
9696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697   (eval $ac_try) 2>&5
9698   ac_status=$?
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); }; }; then
9701   ac_cv_lib_svld_dlopen=yes
9702 else
9703   echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9705
9706 ac_cv_lib_svld_dlopen=no
9707 fi
9708 rm -f conftest.err conftest.$ac_objext \
9709       conftest$ac_exeext conftest.$ac_ext
9710 LIBS=$ac_check_lib_save_LIBS
9711 fi
9712 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9713 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9714 if test $ac_cv_lib_svld_dlopen = yes; then
9715   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9716 else
9717   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9718 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9719 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   ac_check_lib_save_LIBS=$LIBS
9723 LIBS="-ldld  $LIBS"
9724 if test x$gcc_no_link = xyes; then
9725   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9727    { (exit 1); exit 1; }; }
9728 fi
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h.  */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h.  */
9735
9736 /* Override any gcc2 internal prototype to avoid an error.  */
9737 #ifdef __cplusplus
9738 extern "C"
9739 #endif
9740 /* We use char because int might match the return type of a gcc2
9741    builtin and then its argument prototype would still apply.  */
9742 char dld_link ();
9743 int
9744 main ()
9745 {
9746 dld_link ();
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753   (eval $ac_link) 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -z "$ac_c_werror_flag"
9761                          || test ! -s conftest.err'
9762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763   (eval $ac_try) 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; } &&
9767          { ac_try='test -s conftest$ac_exeext'
9768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769   (eval $ac_try) 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); }; }; then
9773   ac_cv_lib_dld_dld_link=yes
9774 else
9775   echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 ac_cv_lib_dld_dld_link=no
9779 fi
9780 rm -f conftest.err conftest.$ac_objext \
9781       conftest$ac_exeext conftest.$ac_ext
9782 LIBS=$ac_check_lib_save_LIBS
9783 fi
9784 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9785 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9786 if test $ac_cv_lib_dld_dld_link = yes; then
9787   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9788 fi
9789
9790
9791 fi
9792
9793
9794 fi
9795
9796
9797 fi
9798
9799
9800 fi
9801
9802
9803 fi
9804
9805     ;;
9806   esac
9807
9808   if test "x$lt_cv_dlopen" != xno; then
9809     enable_dlopen=yes
9810   else
9811     enable_dlopen=no
9812   fi
9813
9814   case $lt_cv_dlopen in
9815   dlopen)
9816     save_CPPFLAGS="$CPPFLAGS"
9817     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9818
9819     save_LDFLAGS="$LDFLAGS"
9820     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9821
9822     save_LIBS="$LIBS"
9823     LIBS="$lt_cv_dlopen_libs $LIBS"
9824
9825     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9826 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9827 if test "${lt_cv_dlopen_self+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830           if test "$cross_compiling" = yes; then :
9831   lt_cv_dlopen_self=cross
9832 else
9833   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9834   lt_status=$lt_dlunknown
9835   cat > conftest.$ac_ext <<_LT_EOF
9836 #line 9836 "configure"
9837 #include "confdefs.h"
9838
9839 #if HAVE_DLFCN_H
9840 #include <dlfcn.h>
9841 #endif
9842
9843 #include <stdio.h>
9844
9845 #ifdef RTLD_GLOBAL
9846 #  define LT_DLGLOBAL           RTLD_GLOBAL
9847 #else
9848 #  ifdef DL_GLOBAL
9849 #    define LT_DLGLOBAL         DL_GLOBAL
9850 #  else
9851 #    define LT_DLGLOBAL         0
9852 #  endif
9853 #endif
9854
9855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9856    find out it does not work in some platform. */
9857 #ifndef LT_DLLAZY_OR_NOW
9858 #  ifdef RTLD_LAZY
9859 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9860 #  else
9861 #    ifdef DL_LAZY
9862 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9863 #    else
9864 #      ifdef RTLD_NOW
9865 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9866 #      else
9867 #        ifdef DL_NOW
9868 #          define LT_DLLAZY_OR_NOW      DL_NOW
9869 #        else
9870 #          define LT_DLLAZY_OR_NOW      0
9871 #        endif
9872 #      endif
9873 #    endif
9874 #  endif
9875 #endif
9876
9877 #ifdef __cplusplus
9878 extern "C" void exit (int);
9879 #endif
9880
9881 void fnord() { int i=42;}
9882 int main ()
9883 {
9884   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9885   int status = $lt_dlunknown;
9886
9887   if (self)
9888     {
9889       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9890       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9891       /* dlclose (self); */
9892     }
9893   else
9894     puts (dlerror ());
9895
9896     exit (status);
9897 }
9898 _LT_EOF
9899   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900   (eval $ac_link) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9904     (./conftest; exit; ) >&5 2>/dev/null
9905     lt_status=$?
9906     case x$lt_status in
9907       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9908       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9909       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9910     esac
9911   else :
9912     # compilation failed
9913     lt_cv_dlopen_self=no
9914   fi
9915 fi
9916 rm -fr conftest*
9917
9918
9919 fi
9920 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9921 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9922
9923     if test "x$lt_cv_dlopen_self" = xyes; then
9924       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9925       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9926 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9927 if test "${lt_cv_dlopen_self_static+set}" = set; then
9928   echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930           if test "$cross_compiling" = yes; then :
9931   lt_cv_dlopen_self_static=cross
9932 else
9933   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9934   lt_status=$lt_dlunknown
9935   cat > conftest.$ac_ext <<_LT_EOF
9936 #line 9936 "configure"
9937 #include "confdefs.h"
9938
9939 #if HAVE_DLFCN_H
9940 #include <dlfcn.h>
9941 #endif
9942
9943 #include <stdio.h>
9944
9945 #ifdef RTLD_GLOBAL
9946 #  define LT_DLGLOBAL           RTLD_GLOBAL
9947 #else
9948 #  ifdef DL_GLOBAL
9949 #    define LT_DLGLOBAL         DL_GLOBAL
9950 #  else
9951 #    define LT_DLGLOBAL         0
9952 #  endif
9953 #endif
9954
9955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9956    find out it does not work in some platform. */
9957 #ifndef LT_DLLAZY_OR_NOW
9958 #  ifdef RTLD_LAZY
9959 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9960 #  else
9961 #    ifdef DL_LAZY
9962 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9963 #    else
9964 #      ifdef RTLD_NOW
9965 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9966 #      else
9967 #        ifdef DL_NOW
9968 #          define LT_DLLAZY_OR_NOW      DL_NOW
9969 #        else
9970 #          define LT_DLLAZY_OR_NOW      0
9971 #        endif
9972 #      endif
9973 #    endif
9974 #  endif
9975 #endif
9976
9977 #ifdef __cplusplus
9978 extern "C" void exit (int);
9979 #endif
9980
9981 void fnord() { int i=42;}
9982 int main ()
9983 {
9984   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9985   int status = $lt_dlunknown;
9986
9987   if (self)
9988     {
9989       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9990       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9991       /* dlclose (self); */
9992     }
9993   else
9994     puts (dlerror ());
9995
9996     exit (status);
9997 }
9998 _LT_EOF
9999   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000   (eval $ac_link) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10004     (./conftest; exit; ) >&5 2>/dev/null
10005     lt_status=$?
10006     case x$lt_status in
10007       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10008       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10009       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10010     esac
10011   else :
10012     # compilation failed
10013     lt_cv_dlopen_self_static=no
10014   fi
10015 fi
10016 rm -fr conftest*
10017
10018
10019 fi
10020 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10021 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10022     fi
10023
10024     CPPFLAGS="$save_CPPFLAGS"
10025     LDFLAGS="$save_LDFLAGS"
10026     LIBS="$save_LIBS"
10027     ;;
10028   esac
10029
10030   case $lt_cv_dlopen_self in
10031   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10032   *) enable_dlopen_self=unknown ;;
10033   esac
10034
10035   case $lt_cv_dlopen_self_static in
10036   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10037   *) enable_dlopen_self_static=unknown ;;
10038   esac
10039 fi
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057 striplib=
10058 old_striplib=
10059 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10060 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10061 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10062   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10063   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10064   echo "$as_me:$LINENO: result: yes" >&5
10065 echo "${ECHO_T}yes" >&6
10066 else
10067 # FIXME - insert some real tests, host_os isn't really good enough
10068   case $host_os in
10069   darwin*)
10070     if test -n "$STRIP" ; then
10071       striplib="$STRIP -x"
10072       old_striplib="$STRIP -S"
10073       echo "$as_me:$LINENO: result: yes" >&5
10074 echo "${ECHO_T}yes" >&6
10075     else
10076       echo "$as_me:$LINENO: result: no" >&5
10077 echo "${ECHO_T}no" >&6
10078     fi
10079     ;;
10080   *)
10081     echo "$as_me:$LINENO: result: no" >&5
10082 echo "${ECHO_T}no" >&6
10083     ;;
10084   esac
10085 fi
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098   # Report which library types will actually be built
10099   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10100 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10101   echo "$as_me:$LINENO: result: $can_build_shared" >&5
10102 echo "${ECHO_T}$can_build_shared" >&6
10103
10104   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10105 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10106   test "$can_build_shared" = "no" && enable_shared=no
10107
10108   # On AIX, shared libraries and static libraries use the same namespace, and
10109   # are all built from PIC.
10110   case $host_os in
10111   aix3*)
10112     test "$enable_shared" = yes && enable_static=no
10113     if test -n "$RANLIB"; then
10114       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10115       postinstall_cmds='$RANLIB $lib'
10116     fi
10117     ;;
10118
10119   aix4* | aix5*)
10120     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10121       test "$enable_shared" = yes && enable_static=no
10122     fi
10123     ;;
10124   esac
10125   echo "$as_me:$LINENO: result: $enable_shared" >&5
10126 echo "${ECHO_T}$enable_shared" >&6
10127
10128   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10129 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10130   # Make sure either enable_shared or enable_static is yes.
10131   test "$enable_shared" = yes || enable_static=yes
10132   echo "$as_me:$LINENO: result: $enable_static" >&5
10133 echo "${ECHO_T}$enable_static" >&6
10134
10135
10136
10137
10138 fi
10139 ac_ext=c
10140 ac_cpp='$CPP $CPPFLAGS'
10141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10144
10145 CC="$lt_save_CC"
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159                   ac_config_commands="$ac_config_commands libtool"
10160
10161
10162
10163
10164 # Only expand once:
10165
10166
10167
10168
10169
10170 # Calculate toolexeclibdir
10171 # Also toolexecdir, though it's only used in toolexeclibdir
10172 case ${version_specific_libs} in
10173   yes)
10174     # Need the gcc compiler version to know where to install libraries
10175     # and header files if --enable-version-specific-runtime-libs option
10176     # is selected.
10177     toolexecdir='$(libdir)/gcc/$(target_alias)'
10178     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10179     ;;
10180   no)
10181     if test -n "$with_cross_host" &&
10182        test x"$with_cross_host" != x"no"; then
10183       # Install a library built with a cross compiler in tooldir, not libdir.
10184       toolexecdir='$(exec_prefix)/$(target_alias)'
10185       toolexeclibdir='$(toolexecdir)/lib'
10186     else
10187       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10188       toolexeclibdir='$(libdir)'
10189     fi
10190     multi_os_directory=`$CC -print-multi-os-directory`
10191     case $multi_os_directory in
10192       .) ;; # Avoid trailing /.
10193       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10194     esac
10195     ;;
10196 esac
10197
10198
10199
10200 if test ${multilib} = yes; then
10201   multilib_arg="--enable-multilib"
10202 else
10203   multilib_arg=
10204 fi
10205
10206                     ac_config_files="$ac_config_files Makefile ssp/ssp.h"
10207
10208 cat >confcache <<\_ACEOF
10209 # This file is a shell script that caches the results of configure
10210 # tests run on this system so they can be shared between configure
10211 # scripts and configure runs, see configure's option --config-cache.
10212 # It is not useful on other systems.  If it contains results you don't
10213 # want to keep, you may remove or edit it.
10214 #
10215 # config.status only pays attention to the cache file if you give it
10216 # the --recheck option to rerun configure.
10217 #
10218 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10219 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10220 # following values.
10221
10222 _ACEOF
10223
10224 # The following way of writing the cache mishandles newlines in values,
10225 # but we know of no workaround that is simple, portable, and efficient.
10226 # So, don't put newlines in cache variables' values.
10227 # Ultrix sh set writes to stderr and can't be redirected directly,
10228 # and sets the high bit in the cache file unless we assign to the vars.
10229 {
10230   (set) 2>&1 |
10231     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10232     *ac_space=\ *)
10233       # `set' does not quote correctly, so add quotes (double-quote
10234       # substitution turns \\\\ into \\, and sed turns \\ into \).
10235       sed -n \
10236         "s/'/'\\\\''/g;
10237           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10238       ;;
10239     *)
10240       # `set' quotes correctly as required by POSIX, so do not add quotes.
10241       sed -n \
10242         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10243       ;;
10244     esac;
10245 } |
10246   sed '
10247      t clear
10248      : clear
10249      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10250      t end
10251      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10252      : end' >>confcache
10253 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10254   if test -w $cache_file; then
10255     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10256     cat confcache >$cache_file
10257   else
10258     echo "not updating unwritable cache $cache_file"
10259   fi
10260 fi
10261 rm -f confcache
10262
10263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10264 # Let make expand exec_prefix.
10265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10266
10267 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10268 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10269 # trailing colons and then remove the whole line if VPATH becomes empty
10270 # (actually we leave an empty line to preserve line numbers).
10271 if test "x$srcdir" = x.; then
10272   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10273 s/:*\$(srcdir):*/:/;
10274 s/:*\${srcdir}:*/:/;
10275 s/:*@srcdir@:*/:/;
10276 s/^\([^=]*=[     ]*\):*/\1/;
10277 s/:*$//;
10278 s/^[^=]*=[       ]*$//;
10279 }'
10280 fi
10281
10282 DEFS=-DHAVE_CONFIG_H
10283
10284 ac_libobjs=
10285 ac_ltlibobjs=
10286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10287   # 1. Remove the extension, and $U if already installed.
10288   ac_i=`echo "$ac_i" |
10289          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10290   # 2. Add them.
10291   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10292   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10293 done
10294 LIBOBJS=$ac_libobjs
10295
10296 LTLIBOBJS=$ac_ltlibobjs
10297
10298
10299 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10300   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10301 Usually this means the macro was only invoked conditionally." >&5
10302 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10303 Usually this means the macro was only invoked conditionally." >&2;}
10304    { (exit 1); exit 1; }; }
10305 fi
10306 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10307   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10308 Usually this means the macro was only invoked conditionally." >&5
10309 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10310 Usually this means the macro was only invoked conditionally." >&2;}
10311    { (exit 1); exit 1; }; }
10312 fi
10313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10314   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10315 Usually this means the macro was only invoked conditionally." >&5
10316 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10317 Usually this means the macro was only invoked conditionally." >&2;}
10318    { (exit 1); exit 1; }; }
10319 fi
10320 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
10321   { { echo "$as_me:$LINENO: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
10322 Usually this means the macro was only invoked conditionally." >&5
10323 echo "$as_me: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
10324 Usually this means the macro was only invoked conditionally." >&2;}
10325    { (exit 1); exit 1; }; }
10326 fi
10327
10328 : ${CONFIG_STATUS=./config.status}
10329 ac_clean_files_save=$ac_clean_files
10330 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10331 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10332 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10333 cat >$CONFIG_STATUS <<_ACEOF
10334 #! $SHELL
10335 # Generated by $as_me.
10336 # Run this file to recreate the current configuration.
10337 # Compiler output produced by configure, useful for debugging
10338 # configure, is in config.log if it exists.
10339
10340 debug=false
10341 ac_cs_recheck=false
10342 ac_cs_silent=false
10343 SHELL=\${CONFIG_SHELL-$SHELL}
10344 _ACEOF
10345
10346 cat >>$CONFIG_STATUS <<\_ACEOF
10347 ## --------------------- ##
10348 ## M4sh Initialization.  ##
10349 ## --------------------- ##
10350
10351 # Be Bourne compatible
10352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10353   emulate sh
10354   NULLCMD=:
10355   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10356   # is contrary to our usage.  Disable this feature.
10357   alias -g '${1+"$@"}'='"$@"'
10358 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10359   set -o posix
10360 fi
10361 DUALCASE=1; export DUALCASE # for MKS sh
10362
10363 # Support unset when possible.
10364 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10365   as_unset=unset
10366 else
10367   as_unset=false
10368 fi
10369
10370
10371 # Work around bugs in pre-3.0 UWIN ksh.
10372 $as_unset ENV MAIL MAILPATH
10373 PS1='$ '
10374 PS2='> '
10375 PS4='+ '
10376
10377 # NLS nuisances.
10378 for as_var in \
10379   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10380   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10381   LC_TELEPHONE LC_TIME
10382 do
10383   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10384     eval $as_var=C; export $as_var
10385   else
10386     $as_unset $as_var
10387   fi
10388 done
10389
10390 # Required to use basename.
10391 if expr a : '\(a\)' >/dev/null 2>&1; then
10392   as_expr=expr
10393 else
10394   as_expr=false
10395 fi
10396
10397 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10398   as_basename=basename
10399 else
10400   as_basename=false
10401 fi
10402
10403
10404 # Name of the executable.
10405 as_me=`$as_basename "$0" ||
10406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10407          X"$0" : 'X\(//\)$' \| \
10408          X"$0" : 'X\(/\)$' \| \
10409          .     : '\(.\)' 2>/dev/null ||
10410 echo X/"$0" |
10411     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10412           /^X\/\(\/\/\)$/{ s//\1/; q; }
10413           /^X\/\(\/\).*/{ s//\1/; q; }
10414           s/.*/./; q'`
10415
10416
10417 # PATH needs CR, and LINENO needs CR and PATH.
10418 # Avoid depending upon Character Ranges.
10419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10422 as_cr_digits='0123456789'
10423 as_cr_alnum=$as_cr_Letters$as_cr_digits
10424
10425 # The user is always right.
10426 if test "${PATH_SEPARATOR+set}" != set; then
10427   echo "#! /bin/sh" >conf$$.sh
10428   echo  "exit 0"   >>conf$$.sh
10429   chmod +x conf$$.sh
10430   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10431     PATH_SEPARATOR=';'
10432   else
10433     PATH_SEPARATOR=:
10434   fi
10435   rm -f conf$$.sh
10436 fi
10437
10438
10439   as_lineno_1=$LINENO
10440   as_lineno_2=$LINENO
10441   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10442   test "x$as_lineno_1" != "x$as_lineno_2" &&
10443   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10444   # Find who we are.  Look in the path if we contain no path at all
10445   # relative or not.
10446   case $0 in
10447     *[\\/]* ) as_myself=$0 ;;
10448     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10450 do
10451   IFS=$as_save_IFS
10452   test -z "$as_dir" && as_dir=.
10453   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10454 done
10455
10456        ;;
10457   esac
10458   # We did not find ourselves, most probably we were run as `sh COMMAND'
10459   # in which case we are not to be found in the path.
10460   if test "x$as_myself" = x; then
10461     as_myself=$0
10462   fi
10463   if test ! -f "$as_myself"; then
10464     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10465 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10466    { (exit 1); exit 1; }; }
10467   fi
10468   case $CONFIG_SHELL in
10469   '')
10470     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10472 do
10473   IFS=$as_save_IFS
10474   test -z "$as_dir" && as_dir=.
10475   for as_base in sh bash ksh sh5; do
10476          case $as_dir in
10477          /*)
10478            if ("$as_dir/$as_base" -c '
10479   as_lineno_1=$LINENO
10480   as_lineno_2=$LINENO
10481   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10482   test "x$as_lineno_1" != "x$as_lineno_2" &&
10483   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10484              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10485              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10486              CONFIG_SHELL=$as_dir/$as_base
10487              export CONFIG_SHELL
10488              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10489            fi;;
10490          esac
10491        done
10492 done
10493 ;;
10494   esac
10495
10496   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10497   # uniformly replaced by the line number.  The first 'sed' inserts a
10498   # line-number line before each line; the second 'sed' does the real
10499   # work.  The second script uses 'N' to pair each line-number line
10500   # with the numbered line, and appends trailing '-' during
10501   # substitution so that $LINENO is not a special case at line end.
10502   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10503   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10504   sed '=' <$as_myself |
10505     sed '
10506       N
10507       s,$,-,
10508       : loop
10509       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10510       t loop
10511       s,-$,,
10512       s,^['$as_cr_digits']*\n,,
10513     ' >$as_me.lineno &&
10514   chmod +x $as_me.lineno ||
10515     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10516 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10517    { (exit 1); exit 1; }; }
10518
10519   # Don't try to exec as it changes $[0], causing all sort of problems
10520   # (the dirname of $[0] is not the place where we might find the
10521   # original and so on.  Autoconf is especially sensible to this).
10522   . ./$as_me.lineno
10523   # Exit status is that of the last command.
10524   exit
10525 }
10526
10527
10528 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10529   *c*,-n*) ECHO_N= ECHO_C='
10530 ' ECHO_T='      ' ;;
10531   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10532   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10533 esac
10534
10535 if expr a : '\(a\)' >/dev/null 2>&1; then
10536   as_expr=expr
10537 else
10538   as_expr=false
10539 fi
10540
10541 rm -f conf$$ conf$$.exe conf$$.file
10542 echo >conf$$.file
10543 if ln -s conf$$.file conf$$ 2>/dev/null; then
10544   # We could just check for DJGPP; but this test a) works b) is more generic
10545   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10546   if test -f conf$$.exe; then
10547     # Don't use ln at all; we don't have any links
10548     as_ln_s='cp -p'
10549   else
10550     as_ln_s='ln -s'
10551   fi
10552 elif ln conf$$.file conf$$ 2>/dev/null; then
10553   as_ln_s=ln
10554 else
10555   as_ln_s='cp -p'
10556 fi
10557 rm -f conf$$ conf$$.exe conf$$.file
10558
10559 if mkdir -p . 2>/dev/null; then
10560   as_mkdir_p=:
10561 else
10562   test -d ./-p && rmdir ./-p
10563   as_mkdir_p=false
10564 fi
10565
10566 as_executable_p="test -f"
10567
10568 # Sed expression to map a string onto a valid CPP name.
10569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10570
10571 # Sed expression to map a string onto a valid variable name.
10572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10573
10574
10575 # IFS
10576 # We need space, tab and new line, in precisely that order.
10577 as_nl='
10578 '
10579 IFS="   $as_nl"
10580
10581 # CDPATH.
10582 $as_unset CDPATH
10583
10584 exec 6>&1
10585
10586 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10587 # report actual input values of CONFIG_FILES etc. instead of their
10588 # values after options handling.  Logging --version etc. is OK.
10589 exec 5>>config.log
10590 {
10591   echo
10592   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10593 ## Running $as_me. ##
10594 _ASBOX
10595 } >&5
10596 cat >&5 <<_CSEOF
10597
10598 This file was extended by libssp $as_me 1.0, which was
10599 generated by GNU Autoconf 2.59.  Invocation command line was
10600
10601   CONFIG_FILES    = $CONFIG_FILES
10602   CONFIG_HEADERS  = $CONFIG_HEADERS
10603   CONFIG_LINKS    = $CONFIG_LINKS
10604   CONFIG_COMMANDS = $CONFIG_COMMANDS
10605   $ $0 $@
10606
10607 _CSEOF
10608 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10609 echo >&5
10610 _ACEOF
10611
10612 # Files that config.status was made for.
10613 if test -n "$ac_config_files"; then
10614   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10615 fi
10616
10617 if test -n "$ac_config_headers"; then
10618   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10619 fi
10620
10621 if test -n "$ac_config_links"; then
10622   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10623 fi
10624
10625 if test -n "$ac_config_commands"; then
10626   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10627 fi
10628
10629 cat >>$CONFIG_STATUS <<\_ACEOF
10630
10631 ac_cs_usage="\
10632 \`$as_me' instantiates files from templates according to the
10633 current configuration.
10634
10635 Usage: $0 [OPTIONS] [FILE]...
10636
10637   -h, --help       print this help, then exit
10638   -V, --version    print version number, then exit
10639   -q, --quiet      do not print progress messages
10640   -d, --debug      don't remove temporary files
10641       --recheck    update $as_me by reconfiguring in the same conditions
10642   --file=FILE[:TEMPLATE]
10643                    instantiate the configuration file FILE
10644   --header=FILE[:TEMPLATE]
10645                    instantiate the configuration header FILE
10646
10647 Configuration files:
10648 $config_files
10649
10650 Configuration headers:
10651 $config_headers
10652
10653 Configuration commands:
10654 $config_commands
10655
10656 Report bugs to <bug-autoconf@gnu.org>."
10657 _ACEOF
10658
10659 cat >>$CONFIG_STATUS <<_ACEOF
10660 ac_cs_version="\\
10661 libssp config.status 1.0
10662 configured by $0, generated by GNU Autoconf 2.59,
10663   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10664
10665 Copyright (C) 2003 Free Software Foundation, Inc.
10666 This config.status script is free software; the Free Software Foundation
10667 gives unlimited permission to copy, distribute and modify it."
10668 srcdir=$srcdir
10669 INSTALL="$INSTALL"
10670 _ACEOF
10671
10672 cat >>$CONFIG_STATUS <<\_ACEOF
10673 # If no file are specified by the user, then we need to provide default
10674 # value.  By we need to know if files were specified by the user.
10675 ac_need_defaults=:
10676 while test $# != 0
10677 do
10678   case $1 in
10679   --*=*)
10680     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10681     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10682     ac_shift=:
10683     ;;
10684   -*)
10685     ac_option=$1
10686     ac_optarg=$2
10687     ac_shift=shift
10688     ;;
10689   *) # This is not an option, so the user has probably given explicit
10690      # arguments.
10691      ac_option=$1
10692      ac_need_defaults=false;;
10693   esac
10694
10695   case $ac_option in
10696   # Handling of the options.
10697 _ACEOF
10698 cat >>$CONFIG_STATUS <<\_ACEOF
10699   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10700     ac_cs_recheck=: ;;
10701   --version | --vers* | -V )
10702     echo "$ac_cs_version"; exit 0 ;;
10703   --he | --h)
10704     # Conflict between --help and --header
10705     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10706 Try \`$0 --help' for more information." >&5
10707 echo "$as_me: error: ambiguous option: $1
10708 Try \`$0 --help' for more information." >&2;}
10709    { (exit 1); exit 1; }; };;
10710   --help | --hel | -h )
10711     echo "$ac_cs_usage"; exit 0 ;;
10712   --debug | --d* | -d )
10713     debug=: ;;
10714   --file | --fil | --fi | --f )
10715     $ac_shift
10716     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10717     ac_need_defaults=false;;
10718   --header | --heade | --head | --hea )
10719     $ac_shift
10720     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10721     ac_need_defaults=false;;
10722   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10723   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10724     ac_cs_silent=: ;;
10725
10726   # This is an error.
10727   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10728 Try \`$0 --help' for more information." >&5
10729 echo "$as_me: error: unrecognized option: $1
10730 Try \`$0 --help' for more information." >&2;}
10731    { (exit 1); exit 1; }; } ;;
10732
10733   *) ac_config_targets="$ac_config_targets $1" ;;
10734
10735   esac
10736   shift
10737 done
10738
10739 ac_configure_extra_args=
10740
10741 if $ac_cs_silent; then
10742   exec 6>/dev/null
10743   ac_configure_extra_args="$ac_configure_extra_args --silent"
10744 fi
10745
10746 _ACEOF
10747 cat >>$CONFIG_STATUS <<_ACEOF
10748 if \$ac_cs_recheck; then
10749   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10750   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10751 fi
10752
10753 _ACEOF
10754
10755 cat >>$CONFIG_STATUS <<_ACEOF
10756 #
10757 # INIT-COMMANDS section.
10758 #
10759
10760
10761 srcdir="$srcdir"
10762 host="$host"
10763 target="$target"
10764 with_multisubdir="$with_multisubdir"
10765 with_multisrctop="$with_multisrctop"
10766 with_target_subdir="$with_target_subdir"
10767 ac_configure_args="${multilib_arg} ${ac_configure_args}"
10768 multi_basedir="$multi_basedir"
10769 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
10770 CC="$CC"
10771 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10772
10773
10774 # The HP-UX ksh and POSIX shell print the target directory to stdout
10775 # if CDPATH is set.
10776 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10777
10778 sed_quote_subst='$sed_quote_subst'
10779 double_quote_subst='$double_quote_subst'
10780 delay_variable_subst='$delay_variable_subst'
10781 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
10782 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
10783 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
10784 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
10785 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
10786 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
10787 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
10788 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
10789 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
10790 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
10791 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
10792 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
10793 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
10794 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
10795 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
10796 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
10797 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
10798 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
10799 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
10800 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
10801 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
10802 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
10803 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
10804 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
10805 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
10806 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
10807 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
10808 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10809 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
10810 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
10811 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
10812 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10813 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
10814 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
10815 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10816 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10817 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10818 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
10819 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10820 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
10821 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
10822 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
10823 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
10824 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
10825 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
10826 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
10827 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
10828 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
10829 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
10830 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
10831 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
10832 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
10833 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
10834 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
10835 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
10836 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10837 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10838 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
10839 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
10840 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10841 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10842 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
10843 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10844 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10845 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10846 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10847 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10848 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10849 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
10850 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10851 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10852 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10853 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
10854 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
10855 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
10856 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
10857 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
10858 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10859 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
10860 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
10861 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
10862 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
10863 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
10864 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10865 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10866 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10867 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10868 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
10869 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
10870 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
10871 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
10872 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
10873 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10874 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10875 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
10876 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10877 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
10878 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10879 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10880 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10881 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10882 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
10883 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
10884 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10885 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10886 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
10887 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
10888 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
10889 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
10890 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
10891 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
10892
10893 LTCC='$LTCC'
10894 LTCFLAGS='$LTCFLAGS'
10895 compiler='$compiler_DEFAULT'
10896
10897 # Quote evaled strings.
10898 for var in SED \
10899 GREP \
10900 EGREP \
10901 FGREP \
10902 LD \
10903 NM \
10904 LN_S \
10905 lt_SP2NL \
10906 lt_NL2SP \
10907 reload_flag \
10908 deplibs_check_method \
10909 file_magic_cmd \
10910 AR \
10911 AR_FLAGS \
10912 STRIP \
10913 RANLIB \
10914 CC \
10915 CFLAGS \
10916 compiler \
10917 lt_cv_sys_global_symbol_pipe \
10918 lt_cv_sys_global_symbol_to_cdecl \
10919 lt_cv_sys_global_symbol_to_c_name_address \
10920 SHELL \
10921 ECHO \
10922 lt_prog_compiler_no_builtin_flag \
10923 lt_prog_compiler_wl \
10924 lt_prog_compiler_pic \
10925 lt_prog_compiler_static \
10926 lt_cv_prog_compiler_c_o \
10927 need_locks \
10928 shrext_cmds \
10929 export_dynamic_flag_spec \
10930 whole_archive_flag_spec \
10931 compiler_needs_object \
10932 with_gnu_ld \
10933 allow_undefined_flag \
10934 no_undefined_flag \
10935 hardcode_libdir_flag_spec \
10936 hardcode_libdir_flag_spec_ld \
10937 hardcode_libdir_separator \
10938 fix_srcfile_path \
10939 exclude_expsyms \
10940 include_expsyms \
10941 file_list_spec \
10942 variables_saved_for_relink \
10943 libname_spec \
10944 library_names_spec \
10945 soname_spec \
10946 finish_eval \
10947 old_striplib \
10948 striplib; do
10949     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10950     *[\\\\\\\`\\"\\\$]*)
10951       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
10952       ;;
10953     *)
10954       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
10955       ;;
10956     esac
10957 done
10958
10959 # Double-quote double-evaled strings.
10960 for var in reload_cmds \
10961 old_postinstall_cmds \
10962 old_postuninstall_cmds \
10963 old_archive_cmds \
10964 extract_expsyms_cmds \
10965 old_archive_from_new_cmds \
10966 old_archive_from_expsyms_cmds \
10967 archive_cmds \
10968 archive_expsym_cmds \
10969 module_cmds \
10970 module_expsym_cmds \
10971 export_symbols_cmds \
10972 prelink_cmds \
10973 postinstall_cmds \
10974 postuninstall_cmds \
10975 finish_cmds \
10976 sys_lib_search_path_spec \
10977 sys_lib_dlsearch_path_spec; do
10978     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10979     *[\\\\\\\`\\"\\\$]*)
10980       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
10981       ;;
10982     *)
10983       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
10984       ;;
10985     esac
10986 done
10987
10988 # Fix-up fallback echo if it was mangled by the above quoting rules.
10989 case \$lt_ECHO in
10990 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
10991   ;;
10992 esac
10993
10994 ac_aux_dir='$ac_aux_dir'
10995 xsi_shell='$xsi_shell'
10996 lt_shell_append='$lt_shell_append'
10997
10998 # See if we are running on zsh, and set the options which allow our
10999 # commands through without removal of \ escapes INIT.
11000 if test -n "\${ZSH_VERSION+set}" ; then
11001    setopt NO_GLOB_SUBST
11002 fi
11003
11004
11005     PACKAGE='$PACKAGE'
11006     VERSION='$VERSION'
11007     TIMESTAMP='$TIMESTAMP'
11008     RM='$RM'
11009     ofile='$ofile'
11010
11011
11012
11013
11014 _ACEOF
11015
11016
11017
11018 cat >>$CONFIG_STATUS <<\_ACEOF
11019 for ac_config_target in $ac_config_targets
11020 do
11021   case "$ac_config_target" in
11022   # Handling of arguments.
11023   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11024   "ssp/ssp.h" ) CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
11025   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11026   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11027   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11028   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11029   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11030 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11031    { (exit 1); exit 1; }; };;
11032   esac
11033 done
11034
11035 # If the user did not use the arguments to specify the items to instantiate,
11036 # then the envvar interface is used.  Set only those that are not.
11037 # We use the long form for the default assignment because of an extremely
11038 # bizarre bug on SunOS 4.1.3.
11039 if $ac_need_defaults; then
11040   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11041   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11042   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11043 fi
11044
11045 # Have a temporary directory for convenience.  Make it in the build tree
11046 # simply because there is no reason to put it here, and in addition,
11047 # creating and moving files from /tmp can sometimes cause problems.
11048 # Create a temporary directory, and hook for its removal unless debugging.
11049 $debug ||
11050 {
11051   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11052   trap '{ (exit 1); exit 1; }' 1 2 13 15
11053 }
11054
11055 # Create a (secure) tmp directory for tmp files.
11056
11057 {
11058   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11059   test -n "$tmp" && test -d "$tmp"
11060 }  ||
11061 {
11062   tmp=./confstat$$-$RANDOM
11063   (umask 077 && mkdir $tmp)
11064 } ||
11065 {
11066    echo "$me: cannot create a temporary directory in ." >&2
11067    { (exit 1); exit 1; }
11068 }
11069
11070 _ACEOF
11071
11072 cat >>$CONFIG_STATUS <<_ACEOF
11073
11074 #
11075 # CONFIG_FILES section.
11076 #
11077
11078 # No need to generate the scripts if there are no CONFIG_FILES.
11079 # This happens for instance when ./config.status config.h
11080 if test -n "\$CONFIG_FILES"; then
11081   # Protect against being on the right side of a sed subst in config.status.
11082   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11083    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11084 s,@SHELL@,$SHELL,;t t
11085 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11086 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11087 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11088 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11089 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11090 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11091 s,@exec_prefix@,$exec_prefix,;t t
11092 s,@prefix@,$prefix,;t t
11093 s,@program_transform_name@,$program_transform_name,;t t
11094 s,@bindir@,$bindir,;t t
11095 s,@sbindir@,$sbindir,;t t
11096 s,@libexecdir@,$libexecdir,;t t
11097 s,@datadir@,$datadir,;t t
11098 s,@sysconfdir@,$sysconfdir,;t t
11099 s,@sharedstatedir@,$sharedstatedir,;t t
11100 s,@localstatedir@,$localstatedir,;t t
11101 s,@libdir@,$libdir,;t t
11102 s,@includedir@,$includedir,;t t
11103 s,@oldincludedir@,$oldincludedir,;t t
11104 s,@infodir@,$infodir,;t t
11105 s,@mandir@,$mandir,;t t
11106 s,@build_alias@,$build_alias,;t t
11107 s,@host_alias@,$host_alias,;t t
11108 s,@target_alias@,$target_alias,;t t
11109 s,@DEFS@,$DEFS,;t t
11110 s,@ECHO_C@,$ECHO_C,;t t
11111 s,@ECHO_N@,$ECHO_N,;t t
11112 s,@ECHO_T@,$ECHO_T,;t t
11113 s,@LIBS@,$LIBS,;t t
11114 s,@build@,$build,;t t
11115 s,@build_cpu@,$build_cpu,;t t
11116 s,@build_vendor@,$build_vendor,;t t
11117 s,@build_os@,$build_os,;t t
11118 s,@host@,$host,;t t
11119 s,@host_cpu@,$host_cpu,;t t
11120 s,@host_vendor@,$host_vendor,;t t
11121 s,@host_os@,$host_os,;t t
11122 s,@target@,$target,;t t
11123 s,@target_cpu@,$target_cpu,;t t
11124 s,@target_vendor@,$target_vendor,;t t
11125 s,@target_os@,$target_os,;t t
11126 s,@target_noncanonical@,$target_noncanonical,;t t
11127 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11128 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11129 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11130 s,@CYGPATH_W@,$CYGPATH_W,;t t
11131 s,@PACKAGE@,$PACKAGE,;t t
11132 s,@VERSION@,$VERSION,;t t
11133 s,@ACLOCAL@,$ACLOCAL,;t t
11134 s,@AUTOCONF@,$AUTOCONF,;t t
11135 s,@AUTOMAKE@,$AUTOMAKE,;t t
11136 s,@AUTOHEADER@,$AUTOHEADER,;t t
11137 s,@MAKEINFO@,$MAKEINFO,;t t
11138 s,@install_sh@,$install_sh,;t t
11139 s,@STRIP@,$STRIP,;t t
11140 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11141 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11142 s,@mkdir_p@,$mkdir_p,;t t
11143 s,@AWK@,$AWK,;t t
11144 s,@SET_MAKE@,$SET_MAKE,;t t
11145 s,@am__leading_dot@,$am__leading_dot,;t t
11146 s,@AMTAR@,$AMTAR,;t t
11147 s,@am__tar@,$am__tar,;t t
11148 s,@am__untar@,$am__untar,;t t
11149 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11150 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11151 s,@MAINT@,$MAINT,;t t
11152 s,@multi_basedir@,$multi_basedir,;t t
11153 s,@CC@,$CC,;t t
11154 s,@ac_ct_CC@,$ac_ct_CC,;t t
11155 s,@EXEEXT@,$EXEEXT,;t t
11156 s,@OBJEXT@,$OBJEXT,;t t
11157 s,@DEPDIR@,$DEPDIR,;t t
11158 s,@am__include@,$am__include,;t t
11159 s,@am__quote@,$am__quote,;t t
11160 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11161 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11162 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11163 s,@CCDEPMODE@,$CCDEPMODE,;t t
11164 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11165 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11166 s,@CFLAGS@,$CFLAGS,;t t
11167 s,@CPP@,$CPP,;t t
11168 s,@CPPFLAGS@,$CPPFLAGS,;t t
11169 s,@LIBSSP_USE_SYMVER_TRUE@,$LIBSSP_USE_SYMVER_TRUE,;t t
11170 s,@LIBSSP_USE_SYMVER_FALSE@,$LIBSSP_USE_SYMVER_FALSE,;t t
11171 s,@EGREP@,$EGREP,;t t
11172 s,@ssp_have_usable_vsnprintf@,$ssp_have_usable_vsnprintf,;t t
11173 s,@LIBTOOL@,$LIBTOOL,;t t
11174 s,@SED@,$SED,;t t
11175 s,@FGREP@,$FGREP,;t t
11176 s,@GREP@,$GREP,;t t
11177 s,@LD@,$LD,;t t
11178 s,@DUMPBIN@,$DUMPBIN,;t t
11179 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11180 s,@NM@,$NM,;t t
11181 s,@LN_S@,$LN_S,;t t
11182 s,@AR@,$AR,;t t
11183 s,@ac_ct_AR@,$ac_ct_AR,;t t
11184 s,@RANLIB@,$RANLIB,;t t
11185 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11186 s,@lt_ECHO@,$lt_ECHO,;t t
11187 s,@enable_shared@,$enable_shared,;t t
11188 s,@enable_static@,$enable_static,;t t
11189 s,@toolexecdir@,$toolexecdir,;t t
11190 s,@toolexeclibdir@,$toolexeclibdir,;t t
11191 s,@LIBOBJS@,$LIBOBJS,;t t
11192 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11193 CEOF
11194
11195 _ACEOF
11196
11197   cat >>$CONFIG_STATUS <<\_ACEOF
11198   # Split the substitutions into bite-sized pieces for seds with
11199   # small command number limits, like on Digital OSF/1 and HP-UX.
11200   ac_max_sed_lines=48
11201   ac_sed_frag=1 # Number of current file.
11202   ac_beg=1 # First line for current file.
11203   ac_end=$ac_max_sed_lines # Line after last line for current file.
11204   ac_more_lines=:
11205   ac_sed_cmds=
11206   while $ac_more_lines; do
11207     if test $ac_beg -gt 1; then
11208       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11209     else
11210       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11211     fi
11212     if test ! -s $tmp/subs.frag; then
11213       ac_more_lines=false
11214     else
11215       # The purpose of the label and of the branching condition is to
11216       # speed up the sed processing (if there are no `@' at all, there
11217       # is no need to browse any of the substitutions).
11218       # These are the two extra sed commands mentioned above.
11219       (echo ':t
11220   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11221       if test -z "$ac_sed_cmds"; then
11222         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11223       else
11224         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11225       fi
11226       ac_sed_frag=`expr $ac_sed_frag + 1`
11227       ac_beg=$ac_end
11228       ac_end=`expr $ac_end + $ac_max_sed_lines`
11229     fi
11230   done
11231   if test -z "$ac_sed_cmds"; then
11232     ac_sed_cmds=cat
11233   fi
11234 fi # test -n "$CONFIG_FILES"
11235
11236 _ACEOF
11237 cat >>$CONFIG_STATUS <<\_ACEOF
11238 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11239   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11240   case $ac_file in
11241   - | *:- | *:-:* ) # input from stdin
11242         cat >$tmp/stdin
11243         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11244         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11245   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11246         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11247   * )   ac_file_in=$ac_file.in ;;
11248   esac
11249
11250   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11251   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11253          X"$ac_file" : 'X\(//\)[^/]' \| \
11254          X"$ac_file" : 'X\(//\)$' \| \
11255          X"$ac_file" : 'X\(/\)' \| \
11256          .     : '\(.\)' 2>/dev/null ||
11257 echo X"$ac_file" |
11258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11259           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11260           /^X\(\/\/\)$/{ s//\1/; q; }
11261           /^X\(\/\).*/{ s//\1/; q; }
11262           s/.*/./; q'`
11263   { if $as_mkdir_p; then
11264     mkdir -p "$ac_dir"
11265   else
11266     as_dir="$ac_dir"
11267     as_dirs=
11268     while test ! -d "$as_dir"; do
11269       as_dirs="$as_dir $as_dirs"
11270       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11272          X"$as_dir" : 'X\(//\)[^/]' \| \
11273          X"$as_dir" : 'X\(//\)$' \| \
11274          X"$as_dir" : 'X\(/\)' \| \
11275          .     : '\(.\)' 2>/dev/null ||
11276 echo X"$as_dir" |
11277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11278           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11279           /^X\(\/\/\)$/{ s//\1/; q; }
11280           /^X\(\/\).*/{ s//\1/; q; }
11281           s/.*/./; q'`
11282     done
11283     test ! -n "$as_dirs" || mkdir $as_dirs
11284   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11285 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11286    { (exit 1); exit 1; }; }; }
11287
11288   ac_builddir=.
11289
11290 if test "$ac_dir" != .; then
11291   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11292   # A "../" for each directory in $ac_dir_suffix.
11293   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11294 else
11295   ac_dir_suffix= ac_top_builddir=
11296 fi
11297
11298 case $srcdir in
11299   .)  # No --srcdir option.  We are building in place.
11300     ac_srcdir=.
11301     if test -z "$ac_top_builddir"; then
11302        ac_top_srcdir=.
11303     else
11304        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11305     fi ;;
11306   [\\/]* | ?:[\\/]* )  # Absolute path.
11307     ac_srcdir=$srcdir$ac_dir_suffix;
11308     ac_top_srcdir=$srcdir ;;
11309   *) # Relative path.
11310     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11311     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11312 esac
11313
11314 # Do not use `cd foo && pwd` to compute absolute paths, because
11315 # the directories may not exist.
11316 case `pwd` in
11317 .) ac_abs_builddir="$ac_dir";;
11318 *)
11319   case "$ac_dir" in
11320   .) ac_abs_builddir=`pwd`;;
11321   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11322   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11323   esac;;
11324 esac
11325 case $ac_abs_builddir in
11326 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11327 *)
11328   case ${ac_top_builddir}. in
11329   .) ac_abs_top_builddir=$ac_abs_builddir;;
11330   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11331   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11332   esac;;
11333 esac
11334 case $ac_abs_builddir in
11335 .) ac_abs_srcdir=$ac_srcdir;;
11336 *)
11337   case $ac_srcdir in
11338   .) ac_abs_srcdir=$ac_abs_builddir;;
11339   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11340   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11341   esac;;
11342 esac
11343 case $ac_abs_builddir in
11344 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11345 *)
11346   case $ac_top_srcdir in
11347   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11348   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11349   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11350   esac;;
11351 esac
11352
11353
11354   case $INSTALL in
11355   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11356   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11357   esac
11358
11359   if test x"$ac_file" != x-; then
11360     { echo "$as_me:$LINENO: creating $ac_file" >&5
11361 echo "$as_me: creating $ac_file" >&6;}
11362     rm -f "$ac_file"
11363   fi
11364   # Let's still pretend it is `configure' which instantiates (i.e., don't
11365   # use $as_me), people would be surprised to read:
11366   #    /* config.h.  Generated by config.status.  */
11367   if test x"$ac_file" = x-; then
11368     configure_input=
11369   else
11370     configure_input="$ac_file.  "
11371   fi
11372   configure_input=$configure_input"Generated from `echo $ac_file_in |
11373                                      sed 's,.*/,,'` by configure."
11374
11375   # First look for the input files in the build tree, otherwise in the
11376   # src tree.
11377   ac_file_inputs=`IFS=:
11378     for f in $ac_file_in; do
11379       case $f in
11380       -) echo $tmp/stdin ;;
11381       [\\/$]*)
11382          # Absolute (can't be DOS-style, as IFS=:)
11383          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11384 echo "$as_me: error: cannot find input file: $f" >&2;}
11385    { (exit 1); exit 1; }; }
11386          echo "$f";;
11387       *) # Relative
11388          if test -f "$f"; then
11389            # Build tree
11390            echo "$f"
11391          elif test -f "$srcdir/$f"; then
11392            # Source tree
11393            echo "$srcdir/$f"
11394          else
11395            # /dev/null tree
11396            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11397 echo "$as_me: error: cannot find input file: $f" >&2;}
11398    { (exit 1); exit 1; }; }
11399          fi;;
11400       esac
11401     done` || { (exit 1); exit 1; }
11402 _ACEOF
11403 cat >>$CONFIG_STATUS <<_ACEOF
11404   sed "$ac_vpsub
11405 $extrasub
11406 _ACEOF
11407 cat >>$CONFIG_STATUS <<\_ACEOF
11408 :t
11409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11410 s,@configure_input@,$configure_input,;t t
11411 s,@srcdir@,$ac_srcdir,;t t
11412 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11413 s,@top_srcdir@,$ac_top_srcdir,;t t
11414 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11415 s,@builddir@,$ac_builddir,;t t
11416 s,@abs_builddir@,$ac_abs_builddir,;t t
11417 s,@top_builddir@,$ac_top_builddir,;t t
11418 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11419 s,@INSTALL@,$ac_INSTALL,;t t
11420 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11421   rm -f $tmp/stdin
11422   if test x"$ac_file" != x-; then
11423     mv $tmp/out $ac_file
11424   else
11425     cat $tmp/out
11426     rm -f $tmp/out
11427   fi
11428
11429 done
11430 _ACEOF
11431 cat >>$CONFIG_STATUS <<\_ACEOF
11432
11433 #
11434 # CONFIG_HEADER section.
11435 #
11436
11437 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11438 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11439 #
11440 # ac_d sets the value in "#define NAME VALUE" lines.
11441 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11442 ac_dB='[         ].*$,\1#\2'
11443 ac_dC=' '
11444 ac_dD=',;t'
11445 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11446 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11447 ac_uB='$,\1#\2define\3'
11448 ac_uC=' '
11449 ac_uD=',;t'
11450
11451 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11452   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11453   case $ac_file in
11454   - | *:- | *:-:* ) # input from stdin
11455         cat >$tmp/stdin
11456         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11457         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11458   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11459         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11460   * )   ac_file_in=$ac_file.in ;;
11461   esac
11462
11463   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11464 echo "$as_me: creating $ac_file" >&6;}
11465
11466   # First look for the input files in the build tree, otherwise in the
11467   # src tree.
11468   ac_file_inputs=`IFS=:
11469     for f in $ac_file_in; do
11470       case $f in
11471       -) echo $tmp/stdin ;;
11472       [\\/$]*)
11473          # Absolute (can't be DOS-style, as IFS=:)
11474          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11475 echo "$as_me: error: cannot find input file: $f" >&2;}
11476    { (exit 1); exit 1; }; }
11477          # Do quote $f, to prevent DOS paths from being IFS'd.
11478          echo "$f";;
11479       *) # Relative
11480          if test -f "$f"; then
11481            # Build tree
11482            echo "$f"
11483          elif test -f "$srcdir/$f"; then
11484            # Source tree
11485            echo "$srcdir/$f"
11486          else
11487            # /dev/null tree
11488            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11489 echo "$as_me: error: cannot find input file: $f" >&2;}
11490    { (exit 1); exit 1; }; }
11491          fi;;
11492       esac
11493     done` || { (exit 1); exit 1; }
11494   # Remove the trailing spaces.
11495   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11496
11497 _ACEOF
11498
11499 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11500 # `conftest.undefs', that substitutes the proper values into
11501 # config.h.in to produce config.h.  The first handles `#define'
11502 # templates, and the second `#undef' templates.
11503 # And first: Protect against being on the right side of a sed subst in
11504 # config.status.  Protect against being in an unquoted here document
11505 # in config.status.
11506 rm -f conftest.defines conftest.undefs
11507 # Using a here document instead of a string reduces the quoting nightmare.
11508 # Putting comments in sed scripts is not portable.
11509 #
11510 # `end' is used to avoid that the second main sed command (meant for
11511 # 0-ary CPP macros) applies to n-ary macro definitions.
11512 # See the Autoconf documentation for `clear'.
11513 cat >confdef2sed.sed <<\_ACEOF
11514 s/[\\&,]/\\&/g
11515 s,[\\$`],\\&,g
11516 t clear
11517 : clear
11518 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11519 t end
11520 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11521 : end
11522 _ACEOF
11523 # If some macros were called several times there might be several times
11524 # the same #defines, which is useless.  Nevertheless, we may not want to
11525 # sort them, since we want the *last* AC-DEFINE to be honored.
11526 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11527 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11528 rm -f confdef2sed.sed
11529
11530 # This sed command replaces #undef with comments.  This is necessary, for
11531 # example, in the case of _POSIX_SOURCE, which is predefined and required
11532 # on some systems where configure will not decide to define it.
11533 cat >>conftest.undefs <<\_ACEOF
11534 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11535 _ACEOF
11536
11537 # Break up conftest.defines because some shells have a limit on the size
11538 # of here documents, and old seds have small limits too (100 cmds).
11539 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11540 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11541 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11542 echo '  :' >>$CONFIG_STATUS
11543 rm -f conftest.tail
11544 while grep . conftest.defines >/dev/null
11545 do
11546   # Write a limited-size here document to $tmp/defines.sed.
11547   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11548   # Speed up: don't consider the non `#define' lines.
11549   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11550   # Work around the forget-to-reset-the-flag bug.
11551   echo 't clr' >>$CONFIG_STATUS
11552   echo ': clr' >>$CONFIG_STATUS
11553   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11554   echo 'CEOF
11555   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11556   rm -f $tmp/in
11557   mv $tmp/out $tmp/in
11558 ' >>$CONFIG_STATUS
11559   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11560   rm -f conftest.defines
11561   mv conftest.tail conftest.defines
11562 done
11563 rm -f conftest.defines
11564 echo '  fi # grep' >>$CONFIG_STATUS
11565 echo >>$CONFIG_STATUS
11566
11567 # Break up conftest.undefs because some shells have a limit on the size
11568 # of here documents, and old seds have small limits too (100 cmds).
11569 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11570 rm -f conftest.tail
11571 while grep . conftest.undefs >/dev/null
11572 do
11573   # Write a limited-size here document to $tmp/undefs.sed.
11574   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11575   # Speed up: don't consider the non `#undef'
11576   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11577   # Work around the forget-to-reset-the-flag bug.
11578   echo 't clr' >>$CONFIG_STATUS
11579   echo ': clr' >>$CONFIG_STATUS
11580   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11581   echo 'CEOF
11582   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11583   rm -f $tmp/in
11584   mv $tmp/out $tmp/in
11585 ' >>$CONFIG_STATUS
11586   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11587   rm -f conftest.undefs
11588   mv conftest.tail conftest.undefs
11589 done
11590 rm -f conftest.undefs
11591
11592 cat >>$CONFIG_STATUS <<\_ACEOF
11593   # Let's still pretend it is `configure' which instantiates (i.e., don't
11594   # use $as_me), people would be surprised to read:
11595   #    /* config.h.  Generated by config.status.  */
11596   if test x"$ac_file" = x-; then
11597     echo "/* Generated by configure.  */" >$tmp/config.h
11598   else
11599     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11600   fi
11601   cat $tmp/in >>$tmp/config.h
11602   rm -f $tmp/in
11603   if test x"$ac_file" != x-; then
11604     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11605       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11606 echo "$as_me: $ac_file is unchanged" >&6;}
11607     else
11608       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11610          X"$ac_file" : 'X\(//\)[^/]' \| \
11611          X"$ac_file" : 'X\(//\)$' \| \
11612          X"$ac_file" : 'X\(/\)' \| \
11613          .     : '\(.\)' 2>/dev/null ||
11614 echo X"$ac_file" |
11615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11616           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11617           /^X\(\/\/\)$/{ s//\1/; q; }
11618           /^X\(\/\).*/{ s//\1/; q; }
11619           s/.*/./; q'`
11620       { if $as_mkdir_p; then
11621     mkdir -p "$ac_dir"
11622   else
11623     as_dir="$ac_dir"
11624     as_dirs=
11625     while test ! -d "$as_dir"; do
11626       as_dirs="$as_dir $as_dirs"
11627       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11629          X"$as_dir" : 'X\(//\)[^/]' \| \
11630          X"$as_dir" : 'X\(//\)$' \| \
11631          X"$as_dir" : 'X\(/\)' \| \
11632          .     : '\(.\)' 2>/dev/null ||
11633 echo X"$as_dir" |
11634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11636           /^X\(\/\/\)$/{ s//\1/; q; }
11637           /^X\(\/\).*/{ s//\1/; q; }
11638           s/.*/./; q'`
11639     done
11640     test ! -n "$as_dirs" || mkdir $as_dirs
11641   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11642 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11643    { (exit 1); exit 1; }; }; }
11644
11645       rm -f $ac_file
11646       mv $tmp/config.h $ac_file
11647     fi
11648   else
11649     cat $tmp/config.h
11650     rm -f $tmp/config.h
11651   fi
11652 # Compute $ac_file's index in $config_headers.
11653 _am_stamp_count=1
11654 for _am_header in $config_headers :; do
11655   case $_am_header in
11656     $ac_file | $ac_file:* )
11657       break ;;
11658     * )
11659       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11660   esac
11661 done
11662 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11663 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11664          X$ac_file : 'X\(//\)[^/]' \| \
11665          X$ac_file : 'X\(//\)$' \| \
11666          X$ac_file : 'X\(/\)' \| \
11667          .     : '\(.\)' 2>/dev/null ||
11668 echo X$ac_file |
11669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11670           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11671           /^X\(\/\/\)$/{ s//\1/; q; }
11672           /^X\(\/\).*/{ s//\1/; q; }
11673           s/.*/./; q'`/stamp-h$_am_stamp_count
11674 done
11675 _ACEOF
11676 cat >>$CONFIG_STATUS <<\_ACEOF
11677
11678 #
11679 # CONFIG_COMMANDS section.
11680 #
11681 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11682   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11683   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11684   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11685 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11686          X"$ac_dest" : 'X\(//\)[^/]' \| \
11687          X"$ac_dest" : 'X\(//\)$' \| \
11688          X"$ac_dest" : 'X\(/\)' \| \
11689          .     : '\(.\)' 2>/dev/null ||
11690 echo X"$ac_dest" |
11691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11692           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11693           /^X\(\/\/\)$/{ s//\1/; q; }
11694           /^X\(\/\).*/{ s//\1/; q; }
11695           s/.*/./; q'`
11696   { if $as_mkdir_p; then
11697     mkdir -p "$ac_dir"
11698   else
11699     as_dir="$ac_dir"
11700     as_dirs=
11701     while test ! -d "$as_dir"; do
11702       as_dirs="$as_dir $as_dirs"
11703       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11705          X"$as_dir" : 'X\(//\)[^/]' \| \
11706          X"$as_dir" : 'X\(//\)$' \| \
11707          X"$as_dir" : 'X\(/\)' \| \
11708          .     : '\(.\)' 2>/dev/null ||
11709 echo X"$as_dir" |
11710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11711           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11712           /^X\(\/\/\)$/{ s//\1/; q; }
11713           /^X\(\/\).*/{ s//\1/; q; }
11714           s/.*/./; q'`
11715     done
11716     test ! -n "$as_dirs" || mkdir $as_dirs
11717   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11718 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11719    { (exit 1); exit 1; }; }; }
11720
11721   ac_builddir=.
11722
11723 if test "$ac_dir" != .; then
11724   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11725   # A "../" for each directory in $ac_dir_suffix.
11726   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11727 else
11728   ac_dir_suffix= ac_top_builddir=
11729 fi
11730
11731 case $srcdir in
11732   .)  # No --srcdir option.  We are building in place.
11733     ac_srcdir=.
11734     if test -z "$ac_top_builddir"; then
11735        ac_top_srcdir=.
11736     else
11737        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11738     fi ;;
11739   [\\/]* | ?:[\\/]* )  # Absolute path.
11740     ac_srcdir=$srcdir$ac_dir_suffix;
11741     ac_top_srcdir=$srcdir ;;
11742   *) # Relative path.
11743     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11744     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11745 esac
11746
11747 # Do not use `cd foo && pwd` to compute absolute paths, because
11748 # the directories may not exist.
11749 case `pwd` in
11750 .) ac_abs_builddir="$ac_dir";;
11751 *)
11752   case "$ac_dir" in
11753   .) ac_abs_builddir=`pwd`;;
11754   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11755   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11756   esac;;
11757 esac
11758 case $ac_abs_builddir in
11759 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11760 *)
11761   case ${ac_top_builddir}. in
11762   .) ac_abs_top_builddir=$ac_abs_builddir;;
11763   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11764   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11765   esac;;
11766 esac
11767 case $ac_abs_builddir in
11768 .) ac_abs_srcdir=$ac_srcdir;;
11769 *)
11770   case $ac_srcdir in
11771   .) ac_abs_srcdir=$ac_abs_builddir;;
11772   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11773   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11774   esac;;
11775 esac
11776 case $ac_abs_builddir in
11777 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11778 *)
11779   case $ac_top_srcdir in
11780   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11781   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11782   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11783   esac;;
11784 esac
11785
11786
11787   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11788 echo "$as_me: executing $ac_dest commands" >&6;}
11789   case $ac_dest in
11790     default-1 )
11791 # Only add multilib support code if we just rebuilt the top-level
11792 # Makefile.
11793 case " $CONFIG_FILES " in
11794  *" Makefile "*)
11795    ac_file=Makefile . ${multi_basedir}/config-ml.in
11796    ;;
11797 esac ;;
11798     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11799   # Strip MF so we end up with the name of the file.
11800   mf=`echo "$mf" | sed -e 's/:.*$//'`
11801   # Check whether this is an Automake generated Makefile or not.
11802   # We used to match only the files named `Makefile.in', but
11803   # some people rename them; so instead we look at the file content.
11804   # Grep'ing the first line is not enough: some people post-process
11805   # each Makefile.in and add a new line on top of each file to say so.
11806   # So let's grep whole file.
11807   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11808     dirpart=`(dirname "$mf") 2>/dev/null ||
11809 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11810          X"$mf" : 'X\(//\)[^/]' \| \
11811          X"$mf" : 'X\(//\)$' \| \
11812          X"$mf" : 'X\(/\)' \| \
11813          .     : '\(.\)' 2>/dev/null ||
11814 echo X"$mf" |
11815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11817           /^X\(\/\/\)$/{ s//\1/; q; }
11818           /^X\(\/\).*/{ s//\1/; q; }
11819           s/.*/./; q'`
11820   else
11821     continue
11822   fi
11823   # Extract the definition of DEPDIR, am__include, and am__quote
11824   # from the Makefile without running `make'.
11825   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11826   test -z "$DEPDIR" && continue
11827   am__include=`sed -n 's/^am__include = //p' < "$mf"`
11828   test -z "am__include" && continue
11829   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11830   # When using ansi2knr, U may be empty or an underscore; expand it
11831   U=`sed -n 's/^U = //p' < "$mf"`
11832   # Find all dependency output files, they are included files with
11833   # $(DEPDIR) in their names.  We invoke sed twice because it is the
11834   # simplest approach to changing $(DEPDIR) to its actual value in the
11835   # expansion.
11836   for file in `sed -n "
11837     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11838        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11839     # Make sure the directory exists.
11840     test -f "$dirpart/$file" && continue
11841     fdir=`(dirname "$file") 2>/dev/null ||
11842 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11843          X"$file" : 'X\(//\)[^/]' \| \
11844          X"$file" : 'X\(//\)$' \| \
11845          X"$file" : 'X\(/\)' \| \
11846          .     : '\(.\)' 2>/dev/null ||
11847 echo X"$file" |
11848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11849           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11850           /^X\(\/\/\)$/{ s//\1/; q; }
11851           /^X\(\/\).*/{ s//\1/; q; }
11852           s/.*/./; q'`
11853     { if $as_mkdir_p; then
11854     mkdir -p $dirpart/$fdir
11855   else
11856     as_dir=$dirpart/$fdir
11857     as_dirs=
11858     while test ! -d "$as_dir"; do
11859       as_dirs="$as_dir $as_dirs"
11860       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11862          X"$as_dir" : 'X\(//\)[^/]' \| \
11863          X"$as_dir" : 'X\(//\)$' \| \
11864          X"$as_dir" : 'X\(/\)' \| \
11865          .     : '\(.\)' 2>/dev/null ||
11866 echo X"$as_dir" |
11867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11868           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11869           /^X\(\/\/\)$/{ s//\1/; q; }
11870           /^X\(\/\).*/{ s//\1/; q; }
11871           s/.*/./; q'`
11872     done
11873     test ! -n "$as_dirs" || mkdir $as_dirs
11874   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11875 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11876    { (exit 1); exit 1; }; }; }
11877
11878     # echo "creating $dirpart/$file"
11879     echo '# dummy' > "$dirpart/$file"
11880   done
11881 done
11882  ;;
11883     libtool )
11884
11885     # See if we are running on zsh, and set the options which allow our
11886     # commands through without removal of \ escapes.
11887     if test -n "${ZSH_VERSION+set}" ; then
11888       setopt NO_GLOB_SUBST
11889     fi
11890
11891     cfgfile="${ofile}T"
11892     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
11893     $RM "$cfgfile"
11894
11895     cat <<_LT_EOF >> "$cfgfile"
11896 #! $SHELL
11897
11898 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11899 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
11900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11901 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11902 #
11903 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
11904 # 2006, 2007 Free Software Foundation, Inc.
11905 #
11906 # This file is part of GNU Libtool:
11907 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11908 #
11909 # This program is free software; you can redistribute it and/or modify
11910 # it under the terms of the GNU General Public License as published by
11911 # the Free Software Foundation; either version 2 of the License, or
11912 # (at your option) any later version.
11913 #
11914 # This program is distributed in the hope that it will be useful, but
11915 # WITHOUT ANY WARRANTY; without even the implied warranty of
11916 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11917 # General Public License for more details.
11918 #
11919 # You should have received a copy of the GNU General Public License
11920 # along with this program; if not, a copy can be downloaded from
11921 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
11922 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
11923 # MA 02110-1301, USA.
11924 #
11925 # As a special exception to the GNU General Public License, if you
11926 # distribute this file as part of a program that contains a
11927 # configuration script generated by Autoconf, you may include it under
11928 # the same distribution terms that you use for the rest of that program.
11929
11930
11931 # The names of the tagged configurations supported by this script.
11932 available_tags=""
11933
11934 # ### BEGIN LIBTOOL CONFIG
11935
11936 # Which release of libtool.m4 was used?
11937 macro_version=$macro_version
11938 macro_revision=$macro_revision
11939
11940 # Whether or not to build shared libraries.
11941 build_libtool_libs=$enable_shared
11942
11943 # Whether or not to build static libraries.
11944 build_old_libs=$enable_static
11945
11946 # What type of objects to build.
11947 pic_mode=$pic_mode
11948
11949 # Whether or not to optimize for fast installation.
11950 fast_install=$enable_fast_install
11951
11952 # The host system.
11953 host_alias=$host_alias
11954 host=$host
11955 host_os=$host_os
11956
11957 # The build system.
11958 build_alias=$build_alias
11959 build=$build
11960 build_os=$build_os
11961
11962 # A sed program that does not truncate output.
11963 SED=$lt_SED
11964
11965 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11966 Xsed="\$SED -e 1s/^X//"
11967
11968 # A grep program that handles long lines.
11969 GREP=$lt_GREP
11970
11971 # An ERE matcher.
11972 EGREP=$lt_EGREP
11973
11974 # A literal string matcher.
11975 FGREP=$lt_FGREP
11976
11977 # A BSD- or MS-compatible name lister.
11978 NM=$lt_NM
11979
11980 # Whether we need soft or hard links.
11981 LN_S=$lt_LN_S
11982
11983 # What is the maximum length of a command?
11984 max_cmd_len=$max_cmd_len
11985
11986 # Object file suffix (normally "o").
11987 objext=$ac_objext
11988
11989 # Executable file suffix (normally "").
11990 exeext=$exeext
11991
11992 # whether the shell understands "unset".
11993 lt_unset=$lt_unset
11994
11995 # turn spaces into newlines.
11996 SP2NL=$lt_lt_SP2NL
11997
11998 # turn newlines into spaces.
11999 NL2SP=$lt_lt_NL2SP
12000
12001 # How to create reloadable object files.
12002 reload_flag=$lt_reload_flag
12003 reload_cmds=$lt_reload_cmds
12004
12005 # Method to check whether dependent libraries are shared objects.
12006 deplibs_check_method=$lt_deplibs_check_method
12007
12008 # Command to use when deplibs_check_method == "file_magic".
12009 file_magic_cmd=$lt_file_magic_cmd
12010
12011 # The archiver.
12012 AR=$lt_AR
12013 AR_FLAGS=$lt_AR_FLAGS
12014
12015 # A symbol stripping program.
12016 STRIP=$lt_STRIP
12017
12018 # Commands used to install an old-style archive.
12019 RANLIB=$lt_RANLIB
12020 old_postinstall_cmds=$lt_old_postinstall_cmds
12021 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12022
12023 # A C compiler.
12024 LTCC=$lt_CC
12025
12026 # LTCC compiler flags.
12027 LTCFLAGS=$lt_CFLAGS
12028
12029 # Take the output of nm and produce a listing of raw symbols and C names.
12030 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12031
12032 # Transform the output of nm in a proper C declaration.
12033 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12034
12035 # Transform the output of nm in a C name address pair.
12036 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12037
12038 # The name of the directory that contains temporary libtool files.
12039 objdir=$objdir
12040
12041 # Shell to use when invoking shell scripts.
12042 SHELL=$lt_SHELL
12043
12044 # An echo program that does not interpret backslashes.
12045 ECHO=$lt_ECHO
12046
12047 # Used to examine libraries when file_magic_cmd begins with "file".
12048 MAGIC_CMD=$MAGIC_CMD
12049
12050 # Must we lock files when doing compilation?
12051 need_locks=$lt_need_locks
12052
12053 # Old archive suffix (normally "a").
12054 libext=$libext
12055
12056 # Shared library suffix (normally ".so").
12057 shrext_cmds=$lt_shrext_cmds
12058
12059 # The commands to extract the exported symbol list from a shared archive.
12060 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12061
12062 # Variables whose values should be saved in libtool wrapper scripts and
12063 # restored at link time.
12064 variables_saved_for_relink=$lt_variables_saved_for_relink
12065
12066 # Do we need the "lib" prefix for modules?
12067 need_lib_prefix=$need_lib_prefix
12068
12069 # Do we need a version for libraries?
12070 need_version=$need_version
12071
12072 # Library versioning type.
12073 version_type=$version_type
12074
12075 # Shared library runtime path variable.
12076 runpath_var=$runpath_var
12077
12078 # Shared library path variable.
12079 shlibpath_var=$shlibpath_var
12080
12081 # Is shlibpath searched before the hard-coded library search path?
12082 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12083
12084 # Format of library name prefix.
12085 libname_spec=$lt_libname_spec
12086
12087 # List of archive names.  First name is the real one, the rest are links.
12088 # The last name is the one that the linker finds with -lNAME
12089 library_names_spec=$lt_library_names_spec
12090
12091 # The coded name of the library, if different from the real name.
12092 soname_spec=$lt_soname_spec
12093
12094 # Command to use after installation of a shared archive.
12095 postinstall_cmds=$lt_postinstall_cmds
12096
12097 # Command to use after uninstallation of a shared archive.
12098 postuninstall_cmds=$lt_postuninstall_cmds
12099
12100 # Commands used to finish a libtool library installation in a directory.
12101 finish_cmds=$lt_finish_cmds
12102
12103 # As "finish_cmds", except a single script fragment to be evaled but
12104 # not shown.
12105 finish_eval=$lt_finish_eval
12106
12107 # Whether we should hardcode library paths into libraries.
12108 hardcode_into_libs=$hardcode_into_libs
12109
12110 # Compile-time system search path for libraries.
12111 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12112
12113 # Run-time system search path for libraries.
12114 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12115
12116 # Whether dlopen is supported.
12117 dlopen_support=$enable_dlopen
12118
12119 # Whether dlopen of programs is supported.
12120 dlopen_self=$enable_dlopen_self
12121
12122 # Whether dlopen of statically linked programs is supported.
12123 dlopen_self_static=$enable_dlopen_self_static
12124
12125 # Commands to strip libraries.
12126 old_striplib=$lt_old_striplib
12127 striplib=$lt_striplib
12128
12129
12130 # The linker used to build libraries.
12131 LD=$lt_LD
12132
12133 # Commands used to build an old-style archive.
12134 old_archive_cmds=$lt_old_archive_cmds
12135
12136 # A language specific compiler.
12137 CC=$lt_compiler
12138
12139 # Is the compiler the GNU compiler?
12140 with_gcc=$GCC
12141
12142 # Compiler flag to turn off builtin functions.
12143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12144
12145 # How to pass a linker flag through the compiler.
12146 wl=$lt_lt_prog_compiler_wl
12147
12148 # Additional compiler flags for building library objects.
12149 pic_flag=$lt_lt_prog_compiler_pic
12150
12151 # Compiler flag to prevent dynamic linking.
12152 link_static_flag=$lt_lt_prog_compiler_static
12153
12154 # Does compiler simultaneously support -c and -o options?
12155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12156
12157 # Whether or not to add -lc for building shared libraries.
12158 build_libtool_need_lc=$archive_cmds_need_lc
12159
12160 # Whether or not to disallow shared libs when runtime libs are static.
12161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12162
12163 # Compiler flag to allow reflexive dlopens.
12164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12165
12166 # Compiler flag to generate shared objects directly from archives.
12167 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12168
12169 # Whether the compiler copes with passing no objects directly.
12170 compiler_needs_object=$lt_compiler_needs_object
12171
12172 # Create an old-style archive from a shared archive.
12173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12174
12175 # Create a temporary old-style archive to link instead of a shared archive.
12176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12177
12178 # Commands used to build a shared archive.
12179 archive_cmds=$lt_archive_cmds
12180 archive_expsym_cmds=$lt_archive_expsym_cmds
12181
12182 # Commands used to build a loadable module if different from building
12183 # a shared archive.
12184 module_cmds=$lt_module_cmds
12185 module_expsym_cmds=$lt_module_expsym_cmds
12186
12187 # Whether we are building with GNU ld or not.
12188 with_gnu_ld=$lt_with_gnu_ld
12189
12190 # Flag that allows shared libraries with undefined symbols to be built.
12191 allow_undefined_flag=$lt_allow_undefined_flag
12192
12193 # Flag that enforces no undefined symbols.
12194 no_undefined_flag=$lt_no_undefined_flag
12195
12196 # Flag to hardcode \$libdir into a binary during linking.
12197 # This must work even if \$libdir does not exist
12198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12199
12200 # If ld is used when linking, flag to hardcode \$libdir into a binary
12201 # during linking.  This must work even if \$libdir does not exist.
12202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12203
12204 # Whether we need a single "-rpath" flag with a separated argument.
12205 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12206
12207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12208 # DIR into the resulting binary.
12209 hardcode_direct=$hardcode_direct
12210
12211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12212 # DIR into the resulting binary and the resulting library dependency is
12213 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12214 # library is relocated.
12215 hardcode_direct_absolute=$hardcode_direct_absolute
12216
12217 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12218 # into the resulting binary.
12219 hardcode_minus_L=$hardcode_minus_L
12220
12221 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12222 # into the resulting binary.
12223 hardcode_shlibpath_var=$hardcode_shlibpath_var
12224
12225 # Set to "yes" if building a shared library automatically hardcodes DIR
12226 # into the library and all subsequent libraries and executables linked
12227 # against it.
12228 hardcode_automatic=$hardcode_automatic
12229
12230 # Set to yes if linker adds runtime paths of dependent libraries
12231 # to runtime path list.
12232 inherit_rpath=$inherit_rpath
12233
12234 # Whether libtool must link a program against all its dependency libraries.
12235 link_all_deplibs=$link_all_deplibs
12236
12237 # Fix the shell variable \$srcfile for the compiler.
12238 fix_srcfile_path=$lt_fix_srcfile_path
12239
12240 # Set to "yes" if exported symbols are required.
12241 always_export_symbols=$always_export_symbols
12242
12243 # The commands to list exported symbols.
12244 export_symbols_cmds=$lt_export_symbols_cmds
12245
12246 # Symbols that should not be listed in the preloaded symbols.
12247 exclude_expsyms=$lt_exclude_expsyms
12248
12249 # Symbols that must always be exported.
12250 include_expsyms=$lt_include_expsyms
12251
12252 # Commands necessary for linking programs (against libraries) with templates.
12253 prelink_cmds=$lt_prelink_cmds
12254
12255 # Specify filename containing input files.
12256 file_list_spec=$lt_file_list_spec
12257
12258 # How to hardcode a shared library path into an executable.
12259 hardcode_action=$hardcode_action
12260
12261 # ### END LIBTOOL CONFIG
12262
12263 _LT_EOF
12264
12265   case $host_os in
12266   aix3*)
12267     cat <<\_LT_EOF >> "$cfgfile"
12268 # AIX sometimes has problems with the GCC collect2 program.  For some
12269 # reason, if we set the COLLECT_NAMES environment variable, the problems
12270 # vanish in a puff of smoke.
12271 if test "X${COLLECT_NAMES+set}" != Xset; then
12272   COLLECT_NAMES=
12273   export COLLECT_NAMES
12274 fi
12275 _LT_EOF
12276     ;;
12277   esac
12278
12279
12280 ltmain="$ac_aux_dir/ltmain.sh"
12281
12282
12283   # We use sed instead of cat because bash on DJGPP gets confused if
12284   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12285   # text mode, it properly converts lines to CR/LF.  This bash problem
12286   # is reportedly fixed, but why not run on old versions too?
12287   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12288     || (rm -f "$cfgfile"; exit 1)
12289
12290   case $xsi_shell in
12291   yes)
12292     cat << \_LT_EOF >> "$cfgfile"
12293 # func_dirname file append nondir_replacement
12294 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12295 # otherwise set result to NONDIR_REPLACEMENT.
12296 func_dirname ()
12297 {
12298   case ${1} in
12299     */*) func_dirname_result="${1%/*}${2}" ;;
12300     *  ) func_dirname_result="${3}" ;;
12301   esac
12302 }
12303
12304 # func_basename file
12305 func_basename ()
12306 {
12307   func_basename_result="${1##*/}"
12308 }
12309
12310 # func_stripname prefix suffix name
12311 # strip PREFIX and SUFFIX off of NAME.
12312 # PREFIX and SUFFIX must not contain globbing or regex special
12313 # characters, hashes, percent signs, but SUFFIX may contain a leading
12314 # dot (in which case that matches only a dot).
12315 func_stripname ()
12316 {
12317   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12318   # positional parameters, so assign one to ordinary parameter first.
12319   func_stripname_result=${3}
12320   func_stripname_result=${func_stripname_result#"${1}"}
12321   func_stripname_result=${func_stripname_result%"${2}"}
12322 }
12323
12324 # func_opt_split
12325 func_opt_split ()
12326 {
12327   func_opt_split_opt=${1%%=*}
12328   func_opt_split_arg=${1#*=}
12329 }
12330
12331 # func_lo2o object
12332 func_lo2o ()
12333 {
12334   case ${1} in
12335     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12336     *)    func_lo2o_result=${1} ;;
12337   esac
12338 }
12339 _LT_EOF
12340     ;;
12341   *) # Bourne compatible functions.
12342     cat << \_LT_EOF >> "$cfgfile"
12343 # func_dirname file append nondir_replacement
12344 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12345 # otherwise set result to NONDIR_REPLACEMENT.
12346 func_dirname ()
12347 {
12348   # Extract subdirectory from the argument.
12349   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12350   if test "X$func_dirname_result" = "X${1}"; then
12351     func_dirname_result="${3}"
12352   else
12353     func_dirname_result="$func_dirname_result${2}"
12354   fi
12355 }
12356
12357 # func_basename file
12358 func_basename ()
12359 {
12360   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12361 }
12362
12363 # func_stripname prefix suffix name
12364 # strip PREFIX and SUFFIX off of NAME.
12365 # PREFIX and SUFFIX must not contain globbing or regex special
12366 # characters, hashes, percent signs, but SUFFIX may contain a leading
12367 # dot (in which case that matches only a dot).
12368 # func_strip_suffix prefix name
12369 func_stripname ()
12370 {
12371   case ${2} in
12372     .*) func_stripname_result=`$ECHO "X${3}" \
12373            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12374     *)  func_stripname_result=`$ECHO "X${3}" \
12375            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12376   esac
12377 }
12378
12379 # sed scripts:
12380 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12381 my_sed_long_arg='1s/^-[^=]*=//'
12382
12383 # func_opt_split
12384 func_opt_split ()
12385 {
12386   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12387   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12388 }
12389
12390 # func_lo2o object
12391 func_lo2o ()
12392 {
12393   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12394 }
12395 _LT_EOF
12396 esac
12397
12398 case $lt_shell_append in
12399   yes)
12400     cat << \_LT_EOF >> "$cfgfile"
12401
12402 # func_append var value
12403 # Append VALUE to the end of shell variable VAR.
12404 func_append ()
12405 {
12406   eval "$1+=\$2"
12407 }
12408 _LT_EOF
12409     ;;
12410   *)
12411     cat << \_LT_EOF >> "$cfgfile"
12412
12413 # func_append var value
12414 # Append VALUE to the end of shell variable VAR.
12415 func_append ()
12416 {
12417   eval "$1=\$$1\$2"
12418 }
12419 _LT_EOF
12420     ;;
12421   esac
12422
12423
12424   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12425     || (rm -f "$cfgfile"; exit 1)
12426
12427   mv -f "$cfgfile" "$ofile" ||
12428     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12429   chmod +x "$ofile"
12430
12431  ;;
12432   esac
12433 done
12434 _ACEOF
12435
12436 cat >>$CONFIG_STATUS <<\_ACEOF
12437
12438 { (exit 0); exit 0; }
12439 _ACEOF
12440 chmod +x $CONFIG_STATUS
12441 ac_clean_files=$ac_clean_files_save
12442
12443
12444 # configure is writing to config.log, and then calls config.status.
12445 # config.status does its own redirection, appending to config.log.
12446 # Unfortunately, on DOS this fails, as config.log is still kept open
12447 # by configure, so config.status won't be able to write to it; its
12448 # output is simply discarded.  So we exec the FD to /dev/null,
12449 # effectively closing config.log, so it can be properly (re)opened and
12450 # appended to by config.status.  When coming back to configure, we
12451 # need to make the FD available again.
12452 if test "$no_create" != yes; then
12453   ac_cs_success=:
12454   ac_config_status_args=
12455   test "$silent" = yes &&
12456     ac_config_status_args="$ac_config_status_args --quiet"
12457   exec 5>/dev/null
12458   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12459   exec 5>>config.log
12460   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12461   # would make configure fail if this is the last instruction.
12462   $ac_cs_success || { (exit 1); exit 1; }
12463 fi
12464