Generated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="src/"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S EGREP ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL UNCOMPRESS SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CXX_set=${CXX+set}
924 ac_env_CXX_value=$CXX
925 ac_cv_env_CXX_set=${CXX+set}
926 ac_cv_env_CXX_value=$CXX
927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_env_CXXFLAGS_value=$CXXFLAGS
929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016   --target=TARGET   configure for building compilers for TARGET [HOST]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --enable-checkmem       turn on ccmalloc debugging
1028   --enable-debug          turn on debugging
1029   --enable-warnings        turn on compiler warnings
1030   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1031   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-libtool-lock  avoid locking (might break parallel builds)
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048
1049 Some influential environment variables:
1050   CC          C compiler command
1051   CFLAGS      C compiler flags
1052   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053               nonstandard directory <lib dir>
1054   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055               headers in a nonstandard directory <include dir>
1056   CXX         C++ compiler command
1057   CXXFLAGS    C++ compiler flags
1058   CPP         C preprocessor
1059   CXXCPP      C++ preprocessor
1060   F77         Fortran 77 compiler command
1061   FFLAGS      Fortran 77 compiler flags
1062
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1065
1066 _ACEOF
1067 fi
1068
1069 if test "$ac_init_help" = "recursive"; then
1070   # If there are subdirs, report their specific --help.
1071   ac_popdir=`pwd`
1072   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073     test -d $ac_dir || continue
1074     ac_builddir=.
1075
1076 if test "$ac_dir" != .; then
1077   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078   # A "../" for each directory in $ac_dir_suffix.
1079   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 else
1081   ac_dir_suffix= ac_top_builddir=
1082 fi
1083
1084 case $srcdir in
1085   .)  # No --srcdir option.  We are building in place.
1086     ac_srcdir=.
1087     if test -z "$ac_top_builddir"; then
1088        ac_top_srcdir=.
1089     else
1090        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091     fi ;;
1092   [\\/]* | ?:[\\/]* )  # Absolute path.
1093     ac_srcdir=$srcdir$ac_dir_suffix;
1094     ac_top_srcdir=$srcdir ;;
1095   *) # Relative path.
1096     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 esac
1099
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1102 case `pwd` in
1103 .) ac_abs_builddir="$ac_dir";;
1104 *)
1105   case "$ac_dir" in
1106   .) ac_abs_builddir=`pwd`;;
1107   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109   esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *)
1114   case ${ac_top_builddir}. in
1115   .) ac_abs_top_builddir=$ac_abs_builddir;;
1116   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118   esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1122 *)
1123   case $ac_srcdir in
1124   .) ac_abs_srcdir=$ac_abs_builddir;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *)
1132   case $ac_top_srcdir in
1133   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136   esac;;
1137 esac
1138
1139     cd $ac_dir
1140     # Check for guested configure; otherwise get Cygnus style configure.
1141     if test -f $ac_srcdir/configure.gnu; then
1142       echo
1143       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1144     elif test -f $ac_srcdir/configure; then
1145       echo
1146       $SHELL $ac_srcdir/configure  --help=recursive
1147     elif test -f $ac_srcdir/configure.ac ||
1148            test -f $ac_srcdir/configure.in; then
1149       echo
1150       $ac_configure --help
1151     else
1152       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153     fi
1154     cd $ac_popdir
1155   done
1156 fi
1157
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1160   cat <<\_ACEOF
1161
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1165 _ACEOF
1166   exit 0
1167 fi
1168 exec 5>config.log
1169 cat >&5 <<_ACEOF
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1172
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59.  Invocation command line was
1175
1176   $ $0 $@
1177
1178 _ACEOF
1179 {
1180 cat <<_ASUNAME
1181 ## --------- ##
1182 ## Platform. ##
1183 ## --------- ##
1184
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1193
1194 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1195 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1198 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1199 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1200 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1201
1202 _ASUNAME
1203
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 for as_dir in $PATH
1206 do
1207   IFS=$as_save_IFS
1208   test -z "$as_dir" && as_dir=.
1209   echo "PATH: $as_dir"
1210 done
1211
1212 } >&5
1213
1214 cat >&5 <<_ACEOF
1215
1216
1217 ## ----------- ##
1218 ## Core tests. ##
1219 ## ----------- ##
1220
1221 _ACEOF
1222
1223
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_configure_args=
1230 ac_configure_args0=
1231 ac_configure_args1=
1232 ac_sep=
1233 ac_must_keep_next=false
1234 for ac_pass in 1 2
1235 do
1236   for ac_arg
1237   do
1238     case $ac_arg in
1239     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241     | -silent | --silent | --silen | --sile | --sil)
1242       continue ;;
1243     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245     esac
1246     case $ac_pass in
1247     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248     2)
1249       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250       if test $ac_must_keep_next = true; then
1251         ac_must_keep_next=false # Got value, back to normal.
1252       else
1253         case $ac_arg in
1254           *=* | --config-cache | -C | -disable-* | --disable-* \
1255           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257           | -with-* | --with-* | -without-* | --without-* | --x)
1258             case "$ac_configure_args0 " in
1259               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260             esac
1261             ;;
1262           -* ) ac_must_keep_next=true ;;
1263         esac
1264       fi
1265       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266       # Get rid of the leading space.
1267       ac_sep=" "
1268       ;;
1269     esac
1270   done
1271 done
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log.  We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281   # Save into config.log some information that might help in debugging.
1282   {
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1289 _ASBOX
1290     echo
1291     # The following way of writing the cache mishandles newlines in values,
1292 {
1293   (set) 2>&1 |
1294     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295     *ac_space=\ *)
1296       sed -n \
1297         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299       ;;
1300     *)
1301       sed -n \
1302         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303       ;;
1304     esac;
1305 }
1306     echo
1307
1308     cat <<\_ASBOX
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1312 _ASBOX
1313     echo
1314     for ac_var in $ac_subst_vars
1315     do
1316       eval ac_val=$`echo $ac_var`
1317       echo "$ac_var='"'"'$ac_val'"'"'"
1318     done | sort
1319     echo
1320
1321     if test -n "$ac_subst_files"; then
1322       cat <<\_ASBOX
1323 ## ------------- ##
1324 ## Output files. ##
1325 ## ------------- ##
1326 _ASBOX
1327       echo
1328       for ac_var in $ac_subst_files
1329       do
1330         eval ac_val=$`echo $ac_var`
1331         echo "$ac_var='"'"'$ac_val'"'"'"
1332       done | sort
1333       echo
1334     fi
1335
1336     if test -s confdefs.h; then
1337       cat <<\_ASBOX
1338 ## ----------- ##
1339 ## confdefs.h. ##
1340 ## ----------- ##
1341 _ASBOX
1342       echo
1343       sed "/^$/d" confdefs.h | sort
1344       echo
1345     fi
1346     test "$ac_signal" != 0 &&
1347       echo "$as_me: caught signal $ac_signal"
1348     echo "$as_me: exit $exit_status"
1349   } >&5
1350   rm -f core *.core &&
1351   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352     exit $exit_status
1353      ' 0
1354 for ac_signal in 1 2 13 15; do
1355   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 done
1357 ac_signal=0
1358
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 echo >confdefs.h
1363
1364 # Predefined preprocessor variables.
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 _ACEOF
1389
1390
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394   if test "x$prefix" != xNONE; then
1395     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396   else
1397     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398   fi
1399 fi
1400 for ac_site_file in $CONFIG_SITE; do
1401   if test -r "$ac_site_file"; then
1402     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404     sed 's/^/| /' "$ac_site_file" >&5
1405     . "$ac_site_file"
1406   fi
1407 done
1408
1409 if test -r "$cache_file"; then
1410   # Some versions of bash will fail to source /dev/null (special
1411   # files actually), so we avoid doing that.
1412   if test -f "$cache_file"; then
1413     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1415     case $cache_file in
1416       [\\/]* | ?:[\\/]* ) . $cache_file;;
1417       *)                      . ./$cache_file;;
1418     esac
1419   fi
1420 else
1421   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1423   >$cache_file
1424 fi
1425
1426 # Check that the precious variables saved in the cache have kept the same
1427 # value.
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432   eval ac_new_set=\$ac_env_${ac_var}_set
1433   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434   eval ac_new_val="\$ac_env_${ac_var}_value"
1435   case $ac_old_set,$ac_new_set in
1436     set,)
1437       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439       ac_cache_corrupted=: ;;
1440     ,set)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,);;
1445     *)
1446       if test "x$ac_old_val" != "x$ac_new_val"; then
1447         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1450 echo "$as_me:   former value:  $ac_old_val" >&2;}
1451         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1452 echo "$as_me:   current value: $ac_new_val" >&2;}
1453         ac_cache_corrupted=:
1454       fi;;
1455   esac
1456   # Pass precious variables to config.status.
1457   if test "$ac_new_set" = set; then
1458     case $ac_new_val in
1459     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461     *) ac_arg=$ac_var=$ac_new_val ;;
1462     esac
1463     case " $ac_configure_args " in
1464       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1465       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466     esac
1467   fi
1468 done
1469 if $ac_cache_corrupted; then
1470   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474    { (exit 1); exit 1; }; }
1475 fi
1476
1477 ac_ext=c
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503 # Check whether --enable-checkmem or --disable-checkmem was given.
1504 if test "${enable_checkmem+set}" = set; then
1505   enableval="$enable_checkmem"
1506   CHECKMEM=true
1507 fi;
1508 # Check whether --enable-debug or --disable-debug was given.
1509 if test "${enable_debug+set}" = set; then
1510   enableval="$enable_debug"
1511   DEBUG=true
1512 fi;
1513 # Check whether --enable-warnings or --disable-warnings was given.
1514 if test "${enable_warnings+set}" = set; then
1515   enableval="$enable_warnings"
1516   ENABLE_WARNINGS=true
1517 fi;
1518 # Check whether --enable-optimizations or --disable-optimizations was given.
1519 if test "${enable_optimizations+set}" = set; then
1520   enableval="$enable_optimizations"
1521   OPTIMIZE=true
1522 fi;
1523 # Check whether --enable-lame or --disable-lame was given.
1524 if test "${enable_lame+set}" = set; then
1525   enableval="$enable_lame"
1526   DISABLE_LAME=true
1527 fi;
1528
1529 PACKAGE=swftools
1530 VERSION=2004-09-02-2157
1531
1532 # ------------------------------------------------------------------
1533
1534 if test "x${srcdir}" != "x."; then
1535     echo "--srcdir is not supported"
1536     exit 1
1537 fi
1538
1539 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1540 if test "x$ENABLE_WARNINGS" '!=' "x";then
1541     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1542 fi
1543
1544 if test "x$CHECKMEM" '!=' "x";then
1545     DEBUG=yes
1546 fi
1547 if test "x$DEBUG" '!=' "x";then
1548     CFLAGS="$WARNINGS -g $CFLAGS"
1549     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1550 else if test "x$OPTIMIZE" '!=' "x"; then
1551     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1552     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1553 else
1554     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1555     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1556 fi
1557 fi
1558 #OLDGCC=1
1559 #if test "x$OLDGCC" '!=' "x";then
1560 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1561 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1562 #     CFLAGS="$CFLAGS -ansi -pendantic"
1563 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1564 #fi
1565
1566 export PACKAGE VERSION CFLAGS CXXFLAGS
1567
1568  ac_aux_dir=
1569 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1570   if test -f $ac_dir/install-sh; then
1571     ac_aux_dir=$ac_dir
1572     ac_install_sh="$ac_aux_dir/install-sh -c"
1573     break
1574   elif test -f $ac_dir/install.sh; then
1575     ac_aux_dir=$ac_dir
1576     ac_install_sh="$ac_aux_dir/install.sh -c"
1577     break
1578   elif test -f $ac_dir/shtool; then
1579     ac_aux_dir=$ac_dir
1580     ac_install_sh="$ac_aux_dir/shtool install -c"
1581     break
1582   fi
1583 done
1584 if test -z "$ac_aux_dir"; then
1585   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1586 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1587    { (exit 1); exit 1; }; }
1588 fi
1589 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1590 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1591 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1592
1593 # Make sure we can run config.sub.
1594 $ac_config_sub sun4 >/dev/null 2>&1 ||
1595   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1596 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1597    { (exit 1); exit 1; }; }
1598
1599 echo "$as_me:$LINENO: checking build system type" >&5
1600 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1601 if test "${ac_cv_build+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   ac_cv_build_alias=$build_alias
1605 test -z "$ac_cv_build_alias" &&
1606   ac_cv_build_alias=`$ac_config_guess`
1607 test -z "$ac_cv_build_alias" &&
1608   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1609 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1610    { (exit 1); exit 1; }; }
1611 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1612   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1613 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1614    { (exit 1); exit 1; }; }
1615
1616 fi
1617 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1618 echo "${ECHO_T}$ac_cv_build" >&6
1619 build=$ac_cv_build
1620 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623
1624
1625 echo "$as_me:$LINENO: checking host system type" >&5
1626 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1627 if test "${ac_cv_host+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   ac_cv_host_alias=$host_alias
1631 test -z "$ac_cv_host_alias" &&
1632   ac_cv_host_alias=$ac_cv_build_alias
1633 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1634   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1636    { (exit 1); exit 1; }; }
1637
1638 fi
1639 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1640 echo "${ECHO_T}$ac_cv_host" >&6
1641 host=$ac_cv_host
1642 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647 MACOSX=
1648 case $host_os in
1649     *darwin* )
1650         MACOSX=yes
1651         CFLAGS="$CFLAGS -fno-rtti"
1652         CXXFLAGS="$CXXFLAGS -fno-rtti"
1653         ;;
1654 esac
1655  ac_ext=c
1656 ac_cpp='$CPP $CPPFLAGS'
1657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1660 if test -n "$ac_tool_prefix"; then
1661   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_CC+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   if test -n "$CC"; then
1669   ac_cv_prog_CC="$CC" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1673 do
1674   IFS=$as_save_IFS
1675   test -z "$as_dir" && as_dir=.
1676   for ac_exec_ext in '' $ac_executable_extensions; do
1677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680     break 2
1681   fi
1682 done
1683 done
1684
1685 fi
1686 fi
1687 CC=$ac_cv_prog_CC
1688 if test -n "$CC"; then
1689   echo "$as_me:$LINENO: result: $CC" >&5
1690 echo "${ECHO_T}$CC" >&6
1691 else
1692   echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696 fi
1697 if test -z "$ac_cv_prog_CC"; then
1698   ac_ct_CC=$CC
1699   # Extract the first word of "gcc", so it can be a program name with args.
1700 set dummy gcc; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   if test -n "$ac_ct_CC"; then
1707   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     ac_cv_prog_ac_ct_CC="gcc"
1717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718     break 2
1719   fi
1720 done
1721 done
1722
1723 fi
1724 fi
1725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726 if test -n "$ac_ct_CC"; then
1727   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728 echo "${ECHO_T}$ac_ct_CC" >&6
1729 else
1730   echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1732 fi
1733
1734   CC=$ac_ct_CC
1735 else
1736   CC="$ac_cv_prog_CC"
1737 fi
1738
1739 if test -z "$CC"; then
1740   if test -n "$ac_tool_prefix"; then
1741   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1742 set dummy ${ac_tool_prefix}cc; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$CC"; then
1749   ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_CC="${ac_tool_prefix}cc"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 CC=$ac_cv_prog_CC
1768 if test -n "$CC"; then
1769   echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776 fi
1777 if test -z "$ac_cv_prog_CC"; then
1778   ac_ct_CC=$CC
1779   # Extract the first word of "cc", so it can be a program name with args.
1780 set dummy cc; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1784   echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786   if test -n "$ac_ct_CC"; then
1787   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1791 do
1792   IFS=$as_save_IFS
1793   test -z "$as_dir" && as_dir=.
1794   for ac_exec_ext in '' $ac_executable_extensions; do
1795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796     ac_cv_prog_ac_ct_CC="cc"
1797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798     break 2
1799   fi
1800 done
1801 done
1802
1803 fi
1804 fi
1805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1806 if test -n "$ac_ct_CC"; then
1807   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1808 echo "${ECHO_T}$ac_ct_CC" >&6
1809 else
1810   echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812 fi
1813
1814   CC=$ac_ct_CC
1815 else
1816   CC="$ac_cv_prog_CC"
1817 fi
1818
1819 fi
1820 if test -z "$CC"; then
1821   # Extract the first word of "cc", so it can be a program name with args.
1822 set dummy cc; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826   echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828   if test -n "$CC"; then
1829   ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831   ac_prog_rejected=no
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835   IFS=$as_save_IFS
1836   test -z "$as_dir" && as_dir=.
1837   for ac_exec_ext in '' $ac_executable_extensions; do
1838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1840        ac_prog_rejected=yes
1841        continue
1842      fi
1843     ac_cv_prog_CC="cc"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 if test $ac_prog_rejected = yes; then
1851   # We found a bogon in the path, so make sure we never use it.
1852   set dummy $ac_cv_prog_CC
1853   shift
1854   if test $# != 0; then
1855     # We chose a different compiler from the bogus one.
1856     # However, it has the same basename, so the bogon will be chosen
1857     # first if we set CC to just the basename; use the full file name.
1858     shift
1859     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1860   fi
1861 fi
1862 fi
1863 fi
1864 CC=$ac_cv_prog_CC
1865 if test -n "$CC"; then
1866   echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1868 else
1869   echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1871 fi
1872
1873 fi
1874 if test -z "$CC"; then
1875   if test -n "$ac_tool_prefix"; then
1876   for ac_prog in cl
1877   do
1878     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$CC"; then
1886   ac_cv_prog_CC="$CC" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 CC=$ac_cv_prog_CC
1905 if test -n "$CC"; then
1906   echo "$as_me:$LINENO: result: $CC" >&5
1907 echo "${ECHO_T}$CC" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913     test -n "$CC" && break
1914   done
1915 fi
1916 if test -z "$CC"; then
1917   ac_ct_CC=$CC
1918   for ac_prog in cl
1919 do
1920   # Extract the first word of "$ac_prog", so it can be a program name with args.
1921 set dummy $ac_prog; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925   echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927   if test -n "$ac_ct_CC"; then
1928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933   IFS=$as_save_IFS
1934   test -z "$as_dir" && as_dir=.
1935   for ac_exec_ext in '' $ac_executable_extensions; do
1936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937     ac_cv_prog_ac_ct_CC="$ac_prog"
1938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939     break 2
1940   fi
1941 done
1942 done
1943
1944 fi
1945 fi
1946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1947 if test -n "$ac_ct_CC"; then
1948   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1949 echo "${ECHO_T}$ac_ct_CC" >&6
1950 else
1951   echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1953 fi
1954
1955   test -n "$ac_ct_CC" && break
1956 done
1957
1958   CC=$ac_ct_CC
1959 fi
1960
1961 fi
1962
1963
1964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: no acceptable C compiler found in \$PATH
1967 See \`config.log' for more details." >&2;}
1968    { (exit 1); exit 1; }; }
1969
1970 # Provide some information about the compiler.
1971 echo "$as_me:$LINENO:" \
1972      "checking for C compiler version" >&5
1973 ac_compiler=`set X $ac_compile; echo $2`
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1975   (eval $ac_compiler --version </dev/null >&5) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }
1979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1980   (eval $ac_compiler -v </dev/null >&5) 2>&5
1981   ac_status=$?
1982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983   (exit $ac_status); }
1984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1985   (eval $ac_compiler -V </dev/null >&5) 2>&5
1986   ac_status=$?
1987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988   (exit $ac_status); }
1989
1990 cat >conftest.$ac_ext <<_ACEOF
1991 /* confdefs.h.  */
1992 _ACEOF
1993 cat confdefs.h >>conftest.$ac_ext
1994 cat >>conftest.$ac_ext <<_ACEOF
1995 /* end confdefs.h.  */
1996
1997 int
1998 main ()
1999 {
2000
2001   ;
2002   return 0;
2003 }
2004 _ACEOF
2005 ac_clean_files_save=$ac_clean_files
2006 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2007 # Try to create an executable without -o first, disregard a.out.
2008 # It will help us diagnose broken compilers, and finding out an intuition
2009 # of exeext.
2010 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2011 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2012 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2013 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2014   (eval $ac_link_default) 2>&5
2015   ac_status=$?
2016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017   (exit $ac_status); }; then
2018   # Find the output, starting from the most likely.  This scheme is
2019 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2020 # resort.
2021
2022 # Be careful to initialize this variable, since it used to be cached.
2023 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2024 ac_cv_exeext=
2025 # b.out is created by i960 compilers.
2026 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2027 do
2028   test -f "$ac_file" || continue
2029   case $ac_file in
2030     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2031         ;;
2032     conftest.$ac_ext )
2033         # This is the source file.
2034         ;;
2035     [ab].out )
2036         # We found the default executable, but exeext='' is most
2037         # certainly right.
2038         break;;
2039     *.* )
2040         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2041         # FIXME: I believe we export ac_cv_exeext for Libtool,
2042         # but it would be cool to find out if it's true.  Does anybody
2043         # maintain Libtool? --akim.
2044         export ac_cv_exeext
2045         break;;
2046     * )
2047         break;;
2048   esac
2049 done
2050 else
2051   echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2055 See \`config.log' for more details." >&5
2056 echo "$as_me: error: C compiler cannot create executables
2057 See \`config.log' for more details." >&2;}
2058    { (exit 77); exit 77; }; }
2059 fi
2060
2061 ac_exeext=$ac_cv_exeext
2062 echo "$as_me:$LINENO: result: $ac_file" >&5
2063 echo "${ECHO_T}$ac_file" >&6
2064
2065 # Check the compiler produces executables we can run.  If not, either
2066 # the compiler is broken, or we cross compile.
2067 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2068 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2069 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2070 # If not cross compiling, check that we can run a simple program.
2071 if test "$cross_compiling" != yes; then
2072   if { ac_try='./$ac_file'
2073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2074   (eval $ac_try) 2>&5
2075   ac_status=$?
2076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077   (exit $ac_status); }; }; then
2078     cross_compiling=no
2079   else
2080     if test "$cross_compiling" = maybe; then
2081         cross_compiling=yes
2082     else
2083         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2084 If you meant to cross compile, use \`--host'.
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: cannot run C compiled programs.
2087 If you meant to cross compile, use \`--host'.
2088 See \`config.log' for more details." >&2;}
2089    { (exit 1); exit 1; }; }
2090     fi
2091   fi
2092 fi
2093 echo "$as_me:$LINENO: result: yes" >&5
2094 echo "${ECHO_T}yes" >&6
2095
2096 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2097 ac_clean_files=$ac_clean_files_save
2098 # Check the compiler produces executables we can run.  If not, either
2099 # the compiler is broken, or we cross compile.
2100 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2101 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2102 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2103 echo "${ECHO_T}$cross_compiling" >&6
2104
2105 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2106 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2108   (eval $ac_link) 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }; then
2112   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2113 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2114 # work properly (i.e., refer to `conftest.exe'), while it won't with
2115 # `rm'.
2116 for ac_file in conftest.exe conftest conftest.*; do
2117   test -f "$ac_file" || continue
2118   case $ac_file in
2119     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2120     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121           export ac_cv_exeext
2122           break;;
2123     * ) break;;
2124   esac
2125 done
2126 else
2127   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2128 See \`config.log' for more details." >&5
2129 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2130 See \`config.log' for more details." >&2;}
2131    { (exit 1); exit 1; }; }
2132 fi
2133
2134 rm -f conftest$ac_cv_exeext
2135 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2136 echo "${ECHO_T}$ac_cv_exeext" >&6
2137
2138 rm -f conftest.$ac_ext
2139 EXEEXT=$ac_cv_exeext
2140 ac_exeext=$EXEEXT
2141 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2142 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2143 if test "${ac_cv_objext+set}" = set; then
2144   echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146   cat >conftest.$ac_ext <<_ACEOF
2147 /* confdefs.h.  */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h.  */
2152
2153 int
2154 main ()
2155 {
2156
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 rm -f conftest.o conftest.obj
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163   (eval $ac_compile) 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; then
2167   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2168   case $ac_file in
2169     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2170     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2171        break;;
2172   esac
2173 done
2174 else
2175   echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2177
2178 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2179 See \`config.log' for more details." >&5
2180 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2181 See \`config.log' for more details." >&2;}
2182    { (exit 1); exit 1; }; }
2183 fi
2184
2185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2186 fi
2187 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2188 echo "${ECHO_T}$ac_cv_objext" >&6
2189 OBJEXT=$ac_cv_objext
2190 ac_objext=$OBJEXT
2191 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2192 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2193 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h.  */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h.  */
2202
2203 int
2204 main ()
2205 {
2206 #ifndef __GNUC__
2207        choke me
2208 #endif
2209
2210   ;
2211   return 0;
2212 }
2213 _ACEOF
2214 rm -f conftest.$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216   (eval $ac_compile) 2>conftest.er1
2217   ac_status=$?
2218   grep -v '^ *+' conftest.er1 >conftest.err
2219   rm -f conftest.er1
2220   cat conftest.err >&5
2221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222   (exit $ac_status); } &&
2223          { ac_try='test -z "$ac_c_werror_flag"
2224                          || test ! -s conftest.err'
2225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226   (eval $ac_try) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }; } &&
2230          { ac_try='test -s conftest.$ac_objext'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236   ac_compiler_gnu=yes
2237 else
2238   echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2240
2241 ac_compiler_gnu=no
2242 fi
2243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2244 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2245
2246 fi
2247 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2248 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2249 GCC=`test $ac_compiler_gnu = yes && echo yes`
2250 ac_test_CFLAGS=${CFLAGS+set}
2251 ac_save_CFLAGS=$CFLAGS
2252 CFLAGS="-g"
2253 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2254 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2255 if test "${ac_cv_prog_cc_g+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   cat >conftest.$ac_ext <<_ACEOF
2259 /* confdefs.h.  */
2260 _ACEOF
2261 cat confdefs.h >>conftest.$ac_ext
2262 cat >>conftest.$ac_ext <<_ACEOF
2263 /* end confdefs.h.  */
2264
2265 int
2266 main ()
2267 {
2268
2269   ;
2270   return 0;
2271 }
2272 _ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275   (eval $ac_compile) 2>conftest.er1
2276   ac_status=$?
2277   grep -v '^ *+' conftest.er1 >conftest.err
2278   rm -f conftest.er1
2279   cat conftest.err >&5
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); } &&
2282          { ac_try='test -z "$ac_c_werror_flag"
2283                          || test ! -s conftest.err'
2284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285   (eval $ac_try) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; } &&
2289          { ac_try='test -s conftest.$ac_objext'
2290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291   (eval $ac_try) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; }; then
2295   ac_cv_prog_cc_g=yes
2296 else
2297   echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2299
2300 ac_cv_prog_cc_g=no
2301 fi
2302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2303 fi
2304 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2305 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2306 if test "$ac_test_CFLAGS" = set; then
2307   CFLAGS=$ac_save_CFLAGS
2308 elif test $ac_cv_prog_cc_g = yes; then
2309   if test "$GCC" = yes; then
2310     CFLAGS="-g -O2"
2311   else
2312     CFLAGS="-g"
2313   fi
2314 else
2315   if test "$GCC" = yes; then
2316     CFLAGS="-O2"
2317   else
2318     CFLAGS=
2319   fi
2320 fi
2321 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2322 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2323 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2324   echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326   ac_cv_prog_cc_stdc=no
2327 ac_save_CC=$CC
2328 cat >conftest.$ac_ext <<_ACEOF
2329 /* confdefs.h.  */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h.  */
2334 #include <stdarg.h>
2335 #include <stdio.h>
2336 #include <sys/types.h>
2337 #include <sys/stat.h>
2338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2339 struct buf { int x; };
2340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2341 static char *e (p, i)
2342      char **p;
2343      int i;
2344 {
2345   return p[i];
2346 }
2347 static char *f (char * (*g) (char **, int), char **p, ...)
2348 {
2349   char *s;
2350   va_list v;
2351   va_start (v,p);
2352   s = g (p, va_arg (v,int));
2353   va_end (v);
2354   return s;
2355 }
2356
2357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2358    function prototypes and stuff, but not '\xHH' hex character constants.
2359    These don't provoke an error unfortunately, instead are silently treated
2360    as 'x'.  The following induces an error, until -std1 is added to get
2361    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2362    array size at least.  It's necessary to write '\x00'==0 to get something
2363    that's true only with -std1.  */
2364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2365
2366 int test (int i, double x);
2367 struct s1 {int (*f) (int a);};
2368 struct s2 {int (*f) (double a);};
2369 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2370 int argc;
2371 char **argv;
2372 int
2373 main ()
2374 {
2375 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 # Don't try gcc -ansi; that turns off useful extensions and
2381 # breaks some systems' header files.
2382 # AIX                   -qlanglvl=ansi
2383 # Ultrix and OSF/1      -std1
2384 # HP-UX 10.20 and later -Ae
2385 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2386 # SVR4                  -Xc -D__EXTENSIONS__
2387 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2388 do
2389   CC="$ac_save_CC $ac_arg"
2390   rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392   (eval $ac_compile) 2>conftest.er1
2393   ac_status=$?
2394   grep -v '^ *+' conftest.er1 >conftest.err
2395   rm -f conftest.er1
2396   cat conftest.err >&5
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); } &&
2399          { ac_try='test -z "$ac_c_werror_flag"
2400                          || test ! -s conftest.err'
2401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402   (eval $ac_try) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; } &&
2406          { ac_try='test -s conftest.$ac_objext'
2407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408   (eval $ac_try) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; }; then
2412   ac_cv_prog_cc_stdc=$ac_arg
2413 break
2414 else
2415   echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 fi
2419 rm -f conftest.err conftest.$ac_objext
2420 done
2421 rm -f conftest.$ac_ext conftest.$ac_objext
2422 CC=$ac_save_CC
2423
2424 fi
2425
2426 case "x$ac_cv_prog_cc_stdc" in
2427   x|xno)
2428     echo "$as_me:$LINENO: result: none needed" >&5
2429 echo "${ECHO_T}none needed" >&6 ;;
2430   *)
2431     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2432 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2433     CC="$CC $ac_cv_prog_cc_stdc" ;;
2434 esac
2435
2436 # Some people use a C++ compiler to compile C.  Since we use `exit',
2437 # in C++ we need to declare it.  In case someone uses the same compiler
2438 # for both compiling C and C++ we need to have the C++ compiler decide
2439 # the declaration of exit, since it's the most demanding environment.
2440 cat >conftest.$ac_ext <<_ACEOF
2441 #ifndef __cplusplus
2442   choke me
2443 #endif
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447   (eval $ac_compile) 2>conftest.er1
2448   ac_status=$?
2449   grep -v '^ *+' conftest.er1 >conftest.err
2450   rm -f conftest.er1
2451   cat conftest.err >&5
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); } &&
2454          { ac_try='test -z "$ac_c_werror_flag"
2455                          || test ! -s conftest.err'
2456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457   (eval $ac_try) 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; } &&
2461          { ac_try='test -s conftest.$ac_objext'
2462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463   (eval $ac_try) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }; }; then
2467   for ac_declaration in \
2468    '' \
2469    'extern "C" void std::exit (int) throw (); using std::exit;' \
2470    'extern "C" void std::exit (int); using std::exit;' \
2471    'extern "C" void exit (int) throw ();' \
2472    'extern "C" void exit (int);' \
2473    'void exit (int);'
2474 do
2475   cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481 $ac_declaration
2482 #include <stdlib.h>
2483 int
2484 main ()
2485 {
2486 exit (42);
2487   ;
2488   return 0;
2489 }
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493   (eval $ac_compile) 2>conftest.er1
2494   ac_status=$?
2495   grep -v '^ *+' conftest.er1 >conftest.err
2496   rm -f conftest.er1
2497   cat conftest.err >&5
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } &&
2500          { ac_try='test -z "$ac_c_werror_flag"
2501                          || test ! -s conftest.err'
2502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503   (eval $ac_try) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; } &&
2507          { ac_try='test -s conftest.$ac_objext'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; }; then
2513   :
2514 else
2515   echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 continue
2519 fi
2520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521   cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2527 $ac_declaration
2528 int
2529 main ()
2530 {
2531 exit (42);
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538   (eval $ac_compile) 2>conftest.er1
2539   ac_status=$?
2540   grep -v '^ *+' conftest.er1 >conftest.err
2541   rm -f conftest.er1
2542   cat conftest.err >&5
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); } &&
2545          { ac_try='test -z "$ac_c_werror_flag"
2546                          || test ! -s conftest.err'
2547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548   (eval $ac_try) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; } &&
2552          { ac_try='test -s conftest.$ac_objext'
2553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554   (eval $ac_try) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }; }; then
2558   break
2559 else
2560   echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2562
2563 fi
2564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565 done
2566 rm -f conftest*
2567 if test -n "$ac_declaration"; then
2568   echo '#ifdef __cplusplus' >>confdefs.h
2569   echo $ac_declaration      >>confdefs.h
2570   echo '#endif'             >>confdefs.h
2571 fi
2572
2573 else
2574   echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 fi
2578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2579 ac_ext=c
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584
2585  ac_ext=cc
2586 ac_cpp='$CXXCPP $CPPFLAGS'
2587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2590 if test -n "$ac_tool_prefix"; then
2591   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2592   do
2593     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2597 if test "${ac_cv_prog_CXX+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   if test -n "$CXX"; then
2601   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616
2617 fi
2618 fi
2619 CXX=$ac_cv_prog_CXX
2620 if test -n "$CXX"; then
2621   echo "$as_me:$LINENO: result: $CXX" >&5
2622 echo "${ECHO_T}$CXX" >&6
2623 else
2624   echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6
2626 fi
2627
2628     test -n "$CXX" && break
2629   done
2630 fi
2631 if test -z "$CXX"; then
2632   ac_ct_CXX=$CXX
2633   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2634 do
2635   # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   if test -n "$ac_ct_CXX"; then
2643   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650   for ac_exec_ext in '' $ac_executable_extensions; do
2651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652     ac_cv_prog_ac_ct_CXX="$ac_prog"
2653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657 done
2658
2659 fi
2660 fi
2661 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2662 if test -n "$ac_ct_CXX"; then
2663   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2664 echo "${ECHO_T}$ac_ct_CXX" >&6
2665 else
2666   echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6
2668 fi
2669
2670   test -n "$ac_ct_CXX" && break
2671 done
2672 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2673
2674   CXX=$ac_ct_CXX
2675 fi
2676
2677
2678 # Provide some information about the compiler.
2679 echo "$as_me:$LINENO:" \
2680      "checking for C++ compiler version" >&5
2681 ac_compiler=`set X $ac_compile; echo $2`
2682 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2683   (eval $ac_compiler --version </dev/null >&5) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }
2687 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2688   (eval $ac_compiler -v </dev/null >&5) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }
2692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2693   (eval $ac_compiler -V </dev/null >&5) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); }
2697
2698 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2699 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2700 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2701   echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703   cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h.  */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h.  */
2709
2710 int
2711 main ()
2712 {
2713 #ifndef __GNUC__
2714        choke me
2715 #endif
2716
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723   (eval $ac_compile) 2>conftest.er1
2724   ac_status=$?
2725   grep -v '^ *+' conftest.er1 >conftest.err
2726   rm -f conftest.er1
2727   cat conftest.err >&5
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); } &&
2730          { ac_try='test -z "$ac_cxx_werror_flag"
2731                          || test ! -s conftest.err'
2732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733   (eval $ac_try) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; } &&
2737          { ac_try='test -s conftest.$ac_objext'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; }; then
2743   ac_compiler_gnu=yes
2744 else
2745   echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2747
2748 ac_compiler_gnu=no
2749 fi
2750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2752
2753 fi
2754 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2755 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2756 GXX=`test $ac_compiler_gnu = yes && echo yes`
2757 ac_test_CXXFLAGS=${CXXFLAGS+set}
2758 ac_save_CXXFLAGS=$CXXFLAGS
2759 CXXFLAGS="-g"
2760 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2761 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2762 if test "${ac_cv_prog_cxx_g+set}" = set; then
2763   echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765   cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h.  */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h.  */
2771
2772 int
2773 main ()
2774 {
2775
2776   ;
2777   return 0;
2778 }
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782   (eval $ac_compile) 2>conftest.er1
2783   ac_status=$?
2784   grep -v '^ *+' conftest.er1 >conftest.err
2785   rm -f conftest.er1
2786   cat conftest.err >&5
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); } &&
2789          { ac_try='test -z "$ac_cxx_werror_flag"
2790                          || test ! -s conftest.err'
2791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; } &&
2796          { ac_try='test -s conftest.$ac_objext'
2797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798   (eval $ac_try) 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; }; then
2802   ac_cv_prog_cxx_g=yes
2803 else
2804   echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2806
2807 ac_cv_prog_cxx_g=no
2808 fi
2809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810 fi
2811 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2812 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2813 if test "$ac_test_CXXFLAGS" = set; then
2814   CXXFLAGS=$ac_save_CXXFLAGS
2815 elif test $ac_cv_prog_cxx_g = yes; then
2816   if test "$GXX" = yes; then
2817     CXXFLAGS="-g -O2"
2818   else
2819     CXXFLAGS="-g"
2820   fi
2821 else
2822   if test "$GXX" = yes; then
2823     CXXFLAGS="-O2"
2824   else
2825     CXXFLAGS=
2826   fi
2827 fi
2828 for ac_declaration in \
2829    '' \
2830    'extern "C" void std::exit (int) throw (); using std::exit;' \
2831    'extern "C" void std::exit (int); using std::exit;' \
2832    'extern "C" void exit (int) throw ();' \
2833    'extern "C" void exit (int);' \
2834    'void exit (int);'
2835 do
2836   cat >conftest.$ac_ext <<_ACEOF
2837 /* confdefs.h.  */
2838 _ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h.  */
2842 $ac_declaration
2843 #include <stdlib.h>
2844 int
2845 main ()
2846 {
2847 exit (42);
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854   (eval $ac_compile) 2>conftest.er1
2855   ac_status=$?
2856   grep -v '^ *+' conftest.er1 >conftest.err
2857   rm -f conftest.er1
2858   cat conftest.err >&5
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861          { ac_try='test -z "$ac_cxx_werror_flag"
2862                          || test ! -s conftest.err'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; } &&
2868          { ac_try='test -s conftest.$ac_objext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   :
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 continue
2880 fi
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882   cat >conftest.$ac_ext <<_ACEOF
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 $ac_declaration
2889 int
2890 main ()
2891 {
2892 exit (42);
2893   ;
2894   return 0;
2895 }
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899   (eval $ac_compile) 2>conftest.er1
2900   ac_status=$?
2901   grep -v '^ *+' conftest.er1 >conftest.err
2902   rm -f conftest.er1
2903   cat conftest.err >&5
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); } &&
2906          { ac_try='test -z "$ac_cxx_werror_flag"
2907                          || test ! -s conftest.err'
2908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909   (eval $ac_try) 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }; } &&
2913          { ac_try='test -s conftest.$ac_objext'
2914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915   (eval $ac_try) 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; }; then
2919   break
2920 else
2921   echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 fi
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926 done
2927 rm -f conftest*
2928 if test -n "$ac_declaration"; then
2929   echo '#ifdef __cplusplus' >>confdefs.h
2930   echo $ac_declaration      >>confdefs.h
2931   echo '#endif'             >>confdefs.h
2932 fi
2933
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939
2940
2941 if test "x$CHECKMEM" '!=' "x";then
2942     CC="ccmalloc $CC"
2943     CXX="ccmalloc $CXX"
2944     #echo running again
2945     #unset ac_cv_prog_CC
2946     #unset ac_cv_prog_CXX
2947     #AC_PROG_CC
2948     #AC_PROG_CXX
2949 fi
2950  ac_ext=c
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2956 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2957 # On Suns, sometimes $CPP names a directory.
2958 if test -n "$CPP" && test -d "$CPP"; then
2959   CPP=
2960 fi
2961 if test -z "$CPP"; then
2962   if test "${ac_cv_prog_CPP+set}" = set; then
2963   echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965       # Double quotes because CPP needs to be expanded
2966     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2967     do
2968       ac_preproc_ok=false
2969 for ac_c_preproc_warn_flag in '' yes
2970 do
2971   # Use a header file that comes with gcc, so configuring glibc
2972   # with a fresh cross-compiler works.
2973   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2974   # <limits.h> exists even on freestanding compilers.
2975   # On the NeXT, cc -E runs the code through the compiler's parser,
2976   # not just through cpp. "Syntax error" is here to catch this case.
2977   cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983 #ifdef __STDC__
2984 # include <limits.h>
2985 #else
2986 # include <assert.h>
2987 #endif
2988                      Syntax error
2989 _ACEOF
2990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2992   ac_status=$?
2993   grep -v '^ *+' conftest.er1 >conftest.err
2994   rm -f conftest.er1
2995   cat conftest.err >&5
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); } >/dev/null; then
2998   if test -s conftest.err; then
2999     ac_cpp_err=$ac_c_preproc_warn_flag
3000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3001   else
3002     ac_cpp_err=
3003   fi
3004 else
3005   ac_cpp_err=yes
3006 fi
3007 if test -z "$ac_cpp_err"; then
3008   :
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013   # Broken: fails on valid input.
3014 continue
3015 fi
3016 rm -f conftest.err conftest.$ac_ext
3017
3018   # OK, works on sane cases.  Now check whether non-existent headers
3019   # can be detected and how.
3020   cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026 #include <ac_nonexistent.h>
3027 _ACEOF
3028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } >/dev/null; then
3036   if test -s conftest.err; then
3037     ac_cpp_err=$ac_c_preproc_warn_flag
3038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3039   else
3040     ac_cpp_err=
3041   fi
3042 else
3043   ac_cpp_err=yes
3044 fi
3045 if test -z "$ac_cpp_err"; then
3046   # Broken: success on invalid input.
3047 continue
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052   # Passes both tests.
3053 ac_preproc_ok=:
3054 break
3055 fi
3056 rm -f conftest.err conftest.$ac_ext
3057
3058 done
3059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3060 rm -f conftest.err conftest.$ac_ext
3061 if $ac_preproc_ok; then
3062   break
3063 fi
3064
3065     done
3066     ac_cv_prog_CPP=$CPP
3067
3068 fi
3069   CPP=$ac_cv_prog_CPP
3070 else
3071   ac_cv_prog_CPP=$CPP
3072 fi
3073 echo "$as_me:$LINENO: result: $CPP" >&5
3074 echo "${ECHO_T}$CPP" >&6
3075 ac_preproc_ok=false
3076 for ac_c_preproc_warn_flag in '' yes
3077 do
3078   # Use a header file that comes with gcc, so configuring glibc
3079   # with a fresh cross-compiler works.
3080   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081   # <limits.h> exists even on freestanding compilers.
3082   # On the NeXT, cc -E runs the code through the compiler's parser,
3083   # not just through cpp. "Syntax error" is here to catch this case.
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090 #ifdef __STDC__
3091 # include <limits.h>
3092 #else
3093 # include <assert.h>
3094 #endif
3095                      Syntax error
3096 _ACEOF
3097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3098   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3099   ac_status=$?
3100   grep -v '^ *+' conftest.er1 >conftest.err
3101   rm -f conftest.er1
3102   cat conftest.err >&5
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); } >/dev/null; then
3105   if test -s conftest.err; then
3106     ac_cpp_err=$ac_c_preproc_warn_flag
3107     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3108   else
3109     ac_cpp_err=
3110   fi
3111 else
3112   ac_cpp_err=yes
3113 fi
3114 if test -z "$ac_cpp_err"; then
3115   :
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120   # Broken: fails on valid input.
3121 continue
3122 fi
3123 rm -f conftest.err conftest.$ac_ext
3124
3125   # OK, works on sane cases.  Now check whether non-existent headers
3126   # can be detected and how.
3127   cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h.  */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h.  */
3133 #include <ac_nonexistent.h>
3134 _ACEOF
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } >/dev/null; then
3143   if test -s conftest.err; then
3144     ac_cpp_err=$ac_c_preproc_warn_flag
3145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146   else
3147     ac_cpp_err=
3148   fi
3149 else
3150   ac_cpp_err=yes
3151 fi
3152 if test -z "$ac_cpp_err"; then
3153   # Broken: success on invalid input.
3154 continue
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159   # Passes both tests.
3160 ac_preproc_ok=:
3161 break
3162 fi
3163 rm -f conftest.err conftest.$ac_ext
3164
3165 done
3166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3167 rm -f conftest.err conftest.$ac_ext
3168 if $ac_preproc_ok; then
3169   :
3170 else
3171   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3174 See \`config.log' for more details." >&2;}
3175    { (exit 1); exit 1; }; }
3176 fi
3177
3178 ac_ext=c
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183
3184
3185  if test -n "$ac_tool_prefix"; then
3186   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_RANLIB+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   if test -n "$RANLIB"; then
3194   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201   for ac_exec_ext in '' $ac_executable_extensions; do
3202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208 done
3209
3210 fi
3211 fi
3212 RANLIB=$ac_cv_prog_RANLIB
3213 if test -n "$RANLIB"; then
3214   echo "$as_me:$LINENO: result: $RANLIB" >&5
3215 echo "${ECHO_T}$RANLIB" >&6
3216 else
3217   echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3219 fi
3220
3221 fi
3222 if test -z "$ac_cv_prog_RANLIB"; then
3223   ac_ct_RANLIB=$RANLIB
3224   # Extract the first word of "ranlib", so it can be a program name with args.
3225 set dummy ranlib; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   if test -n "$ac_ct_RANLIB"; then
3232   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239   for ac_exec_ext in '' $ac_executable_extensions; do
3240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241     ac_cv_prog_ac_ct_RANLIB="ranlib"
3242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246 done
3247
3248   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3249 fi
3250 fi
3251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3252 if test -n "$ac_ct_RANLIB"; then
3253   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3254 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3255 else
3256   echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3258 fi
3259
3260   RANLIB=$ac_ct_RANLIB
3261 else
3262   RANLIB="$ac_cv_prog_RANLIB"
3263 fi
3264
3265  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3266 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3267 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3268 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   cat >conftest.make <<\_ACEOF
3272 all:
3273         @echo 'ac_maketemp="$(MAKE)"'
3274 _ACEOF
3275 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3276 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3277 if test -n "$ac_maketemp"; then
3278   eval ac_cv_prog_make_${ac_make}_set=yes
3279 else
3280   eval ac_cv_prog_make_${ac_make}_set=no
3281 fi
3282 rm -f conftest.make
3283 fi
3284 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3285   echo "$as_me:$LINENO: result: yes" >&5
3286 echo "${ECHO_T}yes" >&6
3287   SET_MAKE=
3288 else
3289   echo "$as_me:$LINENO: result: no" >&5
3290 echo "${ECHO_T}no" >&6
3291   SET_MAKE="MAKE=${MAKE-make}"
3292 fi
3293
3294  # Find a good install program.  We prefer a C program (faster),
3295 # so one script is as good as another.  But avoid the broken or
3296 # incompatible versions:
3297 # SysV /etc/install, /usr/sbin/install
3298 # SunOS /usr/etc/install
3299 # IRIX /sbin/install
3300 # AIX /bin/install
3301 # AmigaOS /C/install, which installs bootblocks on floppy discs
3302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3305 # OS/2's system install, which has a completely different semantic
3306 # ./install, which can be erroneously created by make from ./install.sh.
3307 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3308 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3309 if test -z "$INSTALL"; then
3310 if test "${ac_cv_path_install+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318   # Account for people who put trailing slashes in PATH elements.
3319 case $as_dir/ in
3320   ./ | .// | /cC/* | \
3321   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3322   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3323   /usr/ucb/* ) ;;
3324   *)
3325     # OSF1 and SCO ODT 3.0 have their own names for install.
3326     # Don't use installbsd from OSF since it installs stuff as root
3327     # by default.
3328     for ac_prog in ginstall scoinst install; do
3329       for ac_exec_ext in '' $ac_executable_extensions; do
3330         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3331           if test $ac_prog = install &&
3332             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333             # AIX install.  It has an incompatible calling convention.
3334             :
3335           elif test $ac_prog = install &&
3336             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3337             # program-specific install script used by HP pwplus--don't use.
3338             :
3339           else
3340             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3341             break 3
3342           fi
3343         fi
3344       done
3345     done
3346     ;;
3347 esac
3348 done
3349
3350
3351 fi
3352   if test "${ac_cv_path_install+set}" = set; then
3353     INSTALL=$ac_cv_path_install
3354   else
3355     # As a last resort, use the slow shell script.  We don't cache a
3356     # path for INSTALL within a source directory, because that will
3357     # break other packages using the cache if that directory is
3358     # removed, or if the path is relative.
3359     INSTALL=$ac_install_sh
3360   fi
3361 fi
3362 echo "$as_me:$LINENO: result: $INSTALL" >&5
3363 echo "${ECHO_T}$INSTALL" >&6
3364
3365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3366 # It thinks the first close brace ends the variable substitution.
3367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3368
3369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3370
3371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3372
3373  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3374 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3375 LN_S=$as_ln_s
3376 if test "$LN_S" = "ln -s"; then
3377   echo "$as_me:$LINENO: result: yes" >&5
3378 echo "${ECHO_T}yes" >&6
3379 else
3380   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3381 echo "${ECHO_T}no, using $LN_S" >&6
3382 fi
3383
3384  # Check whether --enable-shared or --disable-shared was given.
3385 if test "${enable_shared+set}" = set; then
3386   enableval="$enable_shared"
3387   p=${PACKAGE-default}
3388     case $enableval in
3389     yes) enable_shared=yes ;;
3390     no) enable_shared=no ;;
3391     *)
3392       enable_shared=no
3393       # Look at the argument we got.  We use all the common list separators.
3394       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3395       for pkg in $enableval; do
3396         IFS="$lt_save_ifs"
3397         if test "X$pkg" = "X$p"; then
3398           enable_shared=yes
3399         fi
3400       done
3401       IFS="$lt_save_ifs"
3402       ;;
3403     esac
3404 else
3405   enable_shared=yes
3406 fi;
3407
3408 # Check whether --enable-static or --disable-static was given.
3409 if test "${enable_static+set}" = set; then
3410   enableval="$enable_static"
3411   p=${PACKAGE-default}
3412     case $enableval in
3413     yes) enable_static=yes ;;
3414     no) enable_static=no ;;
3415     *)
3416      enable_static=no
3417       # Look at the argument we got.  We use all the common list separators.
3418       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3419       for pkg in $enableval; do
3420         IFS="$lt_save_ifs"
3421         if test "X$pkg" = "X$p"; then
3422           enable_static=yes
3423         fi
3424       done
3425       IFS="$lt_save_ifs"
3426       ;;
3427     esac
3428 else
3429   enable_static=yes
3430 fi;
3431
3432 # Check whether --enable-fast-install or --disable-fast-install was given.
3433 if test "${enable_fast_install+set}" = set; then
3434   enableval="$enable_fast_install"
3435   p=${PACKAGE-default}
3436     case $enableval in
3437     yes) enable_fast_install=yes ;;
3438     no) enable_fast_install=no ;;
3439     *)
3440       enable_fast_install=no
3441       # Look at the argument we got.  We use all the common list separators.
3442       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3443       for pkg in $enableval; do
3444         IFS="$lt_save_ifs"
3445         if test "X$pkg" = "X$p"; then
3446           enable_fast_install=yes
3447         fi
3448       done
3449       IFS="$lt_save_ifs"
3450       ;;
3451     esac
3452 else
3453   enable_fast_install=yes
3454 fi;
3455
3456 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3457 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3458 if test "${lt_cv_path_SED+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   # Loop through the user's path and test for sed and gsed.
3462 # Then use that list of sed's as ones to test for truncation.
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466   IFS=$as_save_IFS
3467   test -z "$as_dir" && as_dir=.
3468   for lt_ac_prog in sed gsed; do
3469     for ac_exec_ext in '' $ac_executable_extensions; do
3470       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3471         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3472       fi
3473     done
3474   done
3475 done
3476 lt_ac_max=0
3477 lt_ac_count=0
3478 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3479 # along with /bin/sed that truncates output.
3480 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3481   test ! -f $lt_ac_sed && break
3482   cat /dev/null > conftest.in
3483   lt_ac_count=0
3484   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3485   # Check for GNU sed and select it if it is found.
3486   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3487     lt_cv_path_SED=$lt_ac_sed
3488     break
3489   fi
3490   while true; do
3491     cat conftest.in conftest.in >conftest.tmp
3492     mv conftest.tmp conftest.in
3493     cp conftest.in conftest.nl
3494     echo >>conftest.nl
3495     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3496     cmp -s conftest.out conftest.nl || break
3497     # 10000 chars as input seems more than enough
3498     test $lt_ac_count -gt 10 && break
3499     lt_ac_count=`expr $lt_ac_count + 1`
3500     if test $lt_ac_count -gt $lt_ac_max; then
3501       lt_ac_max=$lt_ac_count
3502       lt_cv_path_SED=$lt_ac_sed
3503     fi
3504   done
3505 done
3506 SED=$lt_cv_path_SED
3507
3508 fi
3509
3510 echo "$as_me:$LINENO: result: $SED" >&5
3511 echo "${ECHO_T}$SED" >&6
3512
3513 echo "$as_me:$LINENO: checking for egrep" >&5
3514 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3515 if test "${ac_cv_prog_egrep+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3519     then ac_cv_prog_egrep='grep -E'
3520     else ac_cv_prog_egrep='egrep'
3521     fi
3522 fi
3523 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3524 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3525  EGREP=$ac_cv_prog_egrep
3526
3527
3528
3529 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3530 if test "${with_gnu_ld+set}" = set; then
3531   withval="$with_gnu_ld"
3532   test "$withval" = no || with_gnu_ld=yes
3533 else
3534   with_gnu_ld=no
3535 fi;
3536 ac_prog=ld
3537 if test "$GCC" = yes; then
3538   # Check if gcc -print-prog-name=ld gives a path.
3539   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3540 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3541   case $host in
3542   *-*-mingw*)
3543     # gcc leaves a trailing carriage return which upsets mingw
3544     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3545   *)
3546     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3547   esac
3548   case $ac_prog in
3549     # Accept absolute paths.
3550     [\\/]* | ?:[\\/]*)
3551       re_direlt='/[^/][^/]*/\.\./'
3552       # Canonicalize the pathname of ld
3553       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3554       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3555         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3556       done
3557       test -z "$LD" && LD="$ac_prog"
3558       ;;
3559   "")
3560     # If it fails, then pretend we aren't using GCC.
3561     ac_prog=ld
3562     ;;
3563   *)
3564     # If it is relative, then search for the first ld in PATH.
3565     with_gnu_ld=unknown
3566     ;;
3567   esac
3568 elif test "$with_gnu_ld" = yes; then
3569   echo "$as_me:$LINENO: checking for GNU ld" >&5
3570 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3571 else
3572   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3573 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3574 fi
3575 if test "${lt_cv_path_LD+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   if test -z "$LD"; then
3579   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3580   for ac_dir in $PATH; do
3581     IFS="$lt_save_ifs"
3582     test -z "$ac_dir" && ac_dir=.
3583     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3584       lt_cv_path_LD="$ac_dir/$ac_prog"
3585       # Check to see if the program is GNU ld.  I'd rather use --version,
3586       # but apparently some GNU ld's only accept -v.
3587       # Break only if it was the GNU/non-GNU ld that we prefer.
3588       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3589       *GNU* | *'with BFD'*)
3590         test "$with_gnu_ld" != no && break
3591         ;;
3592       *)
3593         test "$with_gnu_ld" != yes && break
3594         ;;
3595       esac
3596     fi
3597   done
3598   IFS="$lt_save_ifs"
3599 else
3600   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3601 fi
3602 fi
3603
3604 LD="$lt_cv_path_LD"
3605 if test -n "$LD"; then
3606   echo "$as_me:$LINENO: result: $LD" >&5
3607 echo "${ECHO_T}$LD" >&6
3608 else
3609   echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3611 fi
3612 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3613 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3614    { (exit 1); exit 1; }; }
3615 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3616 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3617 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3621 case `$LD -v 2>&1 </dev/null` in
3622 *GNU* | *'with BFD'*)
3623   lt_cv_prog_gnu_ld=yes
3624   ;;
3625 *)
3626   lt_cv_prog_gnu_ld=no
3627   ;;
3628 esac
3629 fi
3630 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3631 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3632 with_gnu_ld=$lt_cv_prog_gnu_ld
3633
3634
3635 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3636 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3637 if test "${lt_cv_ld_reload_flag+set}" = set; then
3638   echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640   lt_cv_ld_reload_flag='-r'
3641 fi
3642 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3643 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3644 reload_flag=$lt_cv_ld_reload_flag
3645 case $reload_flag in
3646 "" | " "*) ;;
3647 *) reload_flag=" $reload_flag" ;;
3648 esac
3649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3650
3651 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3652 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3653 if test "${lt_cv_path_NM+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   if test -n "$NM"; then
3657   # Let the user override the test.
3658   lt_cv_path_NM="$NM"
3659 else
3660   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3661   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3662     IFS="$lt_save_ifs"
3663     test -z "$ac_dir" && ac_dir=.
3664     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3665     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3666       # Check to see if the nm accepts a BSD-compat flag.
3667       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3668       #   nm: unknown option "B" ignored
3669       # Tru64's nm complains that /dev/null is an invalid object file
3670       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3671       */dev/null* | *'Invalid file or object type'*)
3672         lt_cv_path_NM="$tmp_nm -B"
3673         break
3674         ;;
3675       *)
3676         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3677         */dev/null*)
3678           lt_cv_path_NM="$tmp_nm -p"
3679           break
3680           ;;
3681         *)
3682           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3683           continue # so that we can try to find one that supports BSD flags
3684           ;;
3685         esac
3686       esac
3687     fi
3688   done
3689   IFS="$lt_save_ifs"
3690   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3691 fi
3692 fi
3693 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3694 echo "${ECHO_T}$lt_cv_path_NM" >&6
3695 NM="$lt_cv_path_NM"
3696
3697 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3698 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3699 if test "${lt_cv_deplibs_check_method+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   lt_cv_file_magic_cmd='$MAGIC_CMD'
3703 lt_cv_file_magic_test_file=
3704 lt_cv_deplibs_check_method='unknown'
3705 # Need to set the preceding variable on all platforms that support
3706 # interlibrary dependencies.
3707 # 'none' -- dependencies not supported.
3708 # `unknown' -- same as none, but documents that we really don't know.
3709 # 'pass_all' -- all dependencies passed with no checks.
3710 # 'test_compile' -- check by making test program.
3711 # 'file_magic [[regex]]' -- check by looking for files in library path
3712 # which responds to the $file_magic_cmd with a given extended regex.
3713 # If you have `file' or equivalent on your system and you're not sure
3714 # whether `pass_all' will *always* work, you probably want this one.
3715
3716 case $host_os in
3717 aix4* | aix5*)
3718   lt_cv_deplibs_check_method=pass_all
3719   ;;
3720
3721 beos*)
3722   lt_cv_deplibs_check_method=pass_all
3723   ;;
3724
3725 bsdi4*)
3726   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3727   lt_cv_file_magic_cmd='/usr/bin/file -L'
3728   lt_cv_file_magic_test_file=/shlib/libc.so
3729   ;;
3730
3731 cygwin*)
3732   # win32_libid is a shell function defined in ltmain.sh
3733   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3734   lt_cv_file_magic_cmd='win32_libid'
3735   ;;
3736
3737 mingw* | pw32*)
3738   # Base MSYS/MinGW do not provide the 'file' command needed by
3739   # win32_libid shell function, so use a weaker test based on 'objdump'.
3740   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3741   lt_cv_file_magic_cmd='$OBJDUMP -f'
3742   ;;
3743
3744 darwin* | rhapsody*)
3745   lt_cv_deplibs_check_method=pass_all
3746   ;;
3747
3748 freebsd* | kfreebsd*-gnu)
3749   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3750     case $host_cpu in
3751     i*86 )
3752       # Not sure whether the presence of OpenBSD here was a mistake.
3753       # Let's accept both of them until this is cleared up.
3754       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3755       lt_cv_file_magic_cmd=/usr/bin/file
3756       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3757       ;;
3758     esac
3759   else
3760     lt_cv_deplibs_check_method=pass_all
3761   fi
3762   ;;
3763
3764 gnu*)
3765   lt_cv_deplibs_check_method=pass_all
3766   ;;
3767
3768 hpux10.20* | hpux11*)
3769   lt_cv_file_magic_cmd=/usr/bin/file
3770   case "$host_cpu" in
3771   ia64*)
3772     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3773     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3774     ;;
3775   hppa*64*)
3776     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]'
3777     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3778     ;;
3779   *)
3780     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3781     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3782     ;;
3783   esac
3784   ;;
3785
3786 irix5* | irix6* | nonstopux*)
3787   case $LD in
3788   *-32|*"-32 ") libmagic=32-bit;;
3789   *-n32|*"-n32 ") libmagic=N32;;
3790   *-64|*"-64 ") libmagic=64-bit;;
3791   *) libmagic=never-match;;
3792   esac
3793   lt_cv_deplibs_check_method=pass_all
3794   ;;
3795
3796 # This must be Linux ELF.
3797 linux*)
3798   case $host_cpu in
3799   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3800     lt_cv_deplibs_check_method=pass_all ;;
3801   *)
3802     # glibc up to 2.1.1 does not perform some relocations on ARM
3803     # this will be overridden with pass_all, but let us keep it just in case
3804     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3805   esac
3806   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3807   lt_cv_deplibs_check_method=pass_all
3808   ;;
3809
3810 netbsd*)
3811   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3812     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3813   else
3814     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3815   fi
3816   ;;
3817
3818 newos6*)
3819   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3820   lt_cv_file_magic_cmd=/usr/bin/file
3821   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3822   ;;
3823
3824 nto-qnx*)
3825   lt_cv_deplibs_check_method=unknown
3826   ;;
3827
3828 openbsd*)
3829   lt_cv_file_magic_cmd=/usr/bin/file
3830   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3831   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3832     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3833   else
3834     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3835   fi
3836   ;;
3837
3838 osf3* | osf4* | osf5*)
3839   lt_cv_deplibs_check_method=pass_all
3840   ;;
3841
3842 sco3.2v5*)
3843   lt_cv_deplibs_check_method=pass_all
3844   ;;
3845
3846 solaris*)
3847   lt_cv_deplibs_check_method=pass_all
3848   ;;
3849
3850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3851   case $host_vendor in
3852   motorola)
3853     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]'
3854     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3855     ;;
3856   ncr)
3857     lt_cv_deplibs_check_method=pass_all
3858     ;;
3859   sequent)
3860     lt_cv_file_magic_cmd='/bin/file'
3861     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3862     ;;
3863   sni)
3864     lt_cv_file_magic_cmd='/bin/file'
3865     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3866     lt_cv_file_magic_test_file=/lib/libc.so
3867     ;;
3868   siemens)
3869     lt_cv_deplibs_check_method=pass_all
3870     ;;
3871   esac
3872   ;;
3873
3874 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3875   lt_cv_deplibs_check_method=pass_all
3876   ;;
3877 esac
3878
3879 fi
3880 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3881 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3882 file_magic_cmd=$lt_cv_file_magic_cmd
3883 deplibs_check_method=$lt_cv_deplibs_check_method
3884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3885
3886
3887
3888
3889 # If no C compiler was specified, use CC.
3890 LTCC=${LTCC-"$CC"}
3891
3892 # Allow CC to be a program name with arguments.
3893 compiler=$CC
3894
3895
3896 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3897 if test "${enable_libtool_lock+set}" = set; then
3898   enableval="$enable_libtool_lock"
3899
3900 fi;
3901 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3902
3903 # Some flags need to be propagated to the compiler or linker for good
3904 # libtool support.
3905 case $host in
3906 ia64-*-hpux*)
3907   # Find out which ABI we are using.
3908   echo 'int i;' > conftest.$ac_ext
3909   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910   (eval $ac_compile) 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }; then
3914     case `/usr/bin/file conftest.$ac_objext` in
3915     *ELF-32*)
3916       HPUX_IA64_MODE="32"
3917       ;;
3918     *ELF-64*)
3919       HPUX_IA64_MODE="64"
3920       ;;
3921     esac
3922   fi
3923   rm -rf conftest*
3924   ;;
3925 *-*-irix6*)
3926   # Find out which ABI we are using.
3927   echo '#line 3927 "configure"' > conftest.$ac_ext
3928   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929   (eval $ac_compile) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; then
3933    if test "$lt_cv_prog_gnu_ld" = yes; then
3934     case `/usr/bin/file conftest.$ac_objext` in
3935     *32-bit*)
3936       LD="${LD-ld} -melf32bsmip"
3937       ;;
3938     *N32*)
3939       LD="${LD-ld} -melf32bmipn32"
3940       ;;
3941     *64-bit*)
3942       LD="${LD-ld} -melf64bmip"
3943       ;;
3944     esac
3945    else
3946     case `/usr/bin/file conftest.$ac_objext` in
3947     *32-bit*)
3948       LD="${LD-ld} -32"
3949       ;;
3950     *N32*)
3951       LD="${LD-ld} -n32"
3952       ;;
3953     *64-bit*)
3954       LD="${LD-ld} -64"
3955       ;;
3956     esac
3957    fi
3958   fi
3959   rm -rf conftest*
3960   ;;
3961
3962 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3963   # Find out which ABI we are using.
3964   echo 'int i;' > conftest.$ac_ext
3965   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966   (eval $ac_compile) 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); }; then
3970     case "`/usr/bin/file conftest.o`" in
3971     *32-bit*)
3972       case $host in
3973         x86_64-*linux*)
3974           LD="${LD-ld} -m elf_i386"
3975           ;;
3976         ppc64-*linux*|powerpc64-*linux*)
3977           LD="${LD-ld} -m elf32ppclinux"
3978           ;;
3979         s390x-*linux*)
3980           LD="${LD-ld} -m elf_s390"
3981           ;;
3982         sparc64-*linux*)
3983           LD="${LD-ld} -m elf32_sparc"
3984           ;;
3985       esac
3986       ;;
3987     *64-bit*)
3988       case $host in
3989         x86_64-*linux*)
3990           LD="${LD-ld} -m elf_x86_64"
3991           ;;
3992         ppc*-*linux*|powerpc*-*linux*)
3993           LD="${LD-ld} -m elf64ppc"
3994           ;;
3995         s390*-*linux*)
3996           LD="${LD-ld} -m elf64_s390"
3997           ;;
3998         sparc*-*linux*)
3999           LD="${LD-ld} -m elf64_sparc"
4000           ;;
4001       esac
4002       ;;
4003     esac
4004   fi
4005   rm -rf conftest*
4006   ;;
4007
4008 *-*-linux*)
4009   # Test if the compiler is 64bit
4010   echo 'int i;' > conftest.$ac_ext
4011   lt_cv_cc_64bit_output=no
4012   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013   (eval $ac_compile) 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); }; then
4017     case `/usr/bin/file conftest.$ac_objext` in
4018     *"ELF 64"*)
4019       lt_cv_cc_64bit_output=yes
4020       ;;
4021     esac
4022   fi
4023   rm -rf conftest*
4024   ;;
4025
4026 *-*-sco3.2v5*)
4027   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4028   SAVE_CFLAGS="$CFLAGS"
4029   CFLAGS="$CFLAGS -belf"
4030   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4031 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4032 if test "${lt_cv_cc_needs_belf+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040
4041      cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047
4048 int
4049 main ()
4050 {
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext conftest$ac_exeext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058   (eval $ac_link) 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } &&
4065          { ac_try='test -z "$ac_c_werror_flag"
4066                          || test ! -s conftest.err'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; } &&
4072          { ac_try='test -s conftest$ac_exeext'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; }; then
4078   lt_cv_cc_needs_belf=yes
4079 else
4080   echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 lt_cv_cc_needs_belf=no
4084 fi
4085 rm -f conftest.err conftest.$ac_objext \
4086       conftest$ac_exeext conftest.$ac_ext
4087      ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092
4093 fi
4094 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4095 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4096   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4097     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4098     CFLAGS="$SAVE_CFLAGS"
4099   fi
4100   ;;
4101
4102 esac
4103
4104 need_locks="$enable_libtool_lock"
4105
4106
4107
4108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4110 if test "${ac_cv_header_stdc+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119 #include <stdlib.h>
4120 #include <stdarg.h>
4121 #include <string.h>
4122 #include <float.h>
4123
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134   (eval $ac_compile) 2>conftest.er1
4135   ac_status=$?
4136   grep -v '^ *+' conftest.er1 >conftest.err
4137   rm -f conftest.er1
4138   cat conftest.err >&5
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); } &&
4141          { ac_try='test -z "$ac_c_werror_flag"
4142                          || test ! -s conftest.err'
4143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144   (eval $ac_try) 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; } &&
4148          { ac_try='test -s conftest.$ac_objext'
4149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150   (eval $ac_try) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; }; then
4154   ac_cv_header_stdc=yes
4155 else
4156   echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159 ac_cv_header_stdc=no
4160 fi
4161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4162
4163 if test $ac_cv_header_stdc = yes; then
4164   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4165   cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171 #include <string.h>
4172
4173 _ACEOF
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175   $EGREP "memchr" >/dev/null 2>&1; then
4176   :
4177 else
4178   ac_cv_header_stdc=no
4179 fi
4180 rm -f conftest*
4181
4182 fi
4183
4184 if test $ac_cv_header_stdc = yes; then
4185   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 #include <stdlib.h>
4193
4194 _ACEOF
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196   $EGREP "free" >/dev/null 2>&1; then
4197   :
4198 else
4199   ac_cv_header_stdc=no
4200 fi
4201 rm -f conftest*
4202
4203 fi
4204
4205 if test $ac_cv_header_stdc = yes; then
4206   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4207   if test "$cross_compiling" = yes; then
4208   :
4209 else
4210   cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h.  */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h.  */
4216 #include <ctype.h>
4217 #if ((' ' & 0x0FF) == 0x020)
4218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4220 #else
4221 # define ISLOWER(c) \
4222                    (('a' <= (c) && (c) <= 'i') \
4223                      || ('j' <= (c) && (c) <= 'r') \
4224                      || ('s' <= (c) && (c) <= 'z'))
4225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4226 #endif
4227
4228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4229 int
4230 main ()
4231 {
4232   int i;
4233   for (i = 0; i < 256; i++)
4234     if (XOR (islower (i), ISLOWER (i))
4235         || toupper (i) != TOUPPER (i))
4236       exit(2);
4237   exit (0);
4238 }
4239 _ACEOF
4240 rm -f conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242   (eval $ac_link) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247   (eval $ac_try) 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); }; }; then
4251   :
4252 else
4253   echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ( exit $ac_status )
4258 ac_cv_header_stdc=no
4259 fi
4260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4261 fi
4262 fi
4263 fi
4264 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4265 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4266 if test $ac_cv_header_stdc = yes; then
4267
4268 cat >>confdefs.h <<\_ACEOF
4269 #define STDC_HEADERS 1
4270 _ACEOF
4271
4272 fi
4273
4274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4285                   inttypes.h stdint.h unistd.h
4286 do
4287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4288 echo "$as_me:$LINENO: checking for $ac_header" >&5
4289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 $ac_includes_default
4300
4301 #include <$ac_header>
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305   (eval $ac_compile) 2>conftest.er1
4306   ac_status=$?
4307   grep -v '^ *+' conftest.er1 >conftest.err
4308   rm -f conftest.er1
4309   cat conftest.err >&5
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); } &&
4312          { ac_try='test -z "$ac_c_werror_flag"
4313                          || test ! -s conftest.err'
4314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315   (eval $ac_try) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; } &&
4319          { ac_try='test -s conftest.$ac_objext'
4320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321   (eval $ac_try) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; }; then
4325   eval "$as_ac_Header=yes"
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 eval "$as_ac_Header=no"
4331 fi
4332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4333 fi
4334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4337   cat >>confdefs.h <<_ACEOF
4338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4339 _ACEOF
4340
4341 fi
4342
4343 done
4344
4345
4346
4347 for ac_header in dlfcn.h
4348 do
4349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4351   echo "$as_me:$LINENO: checking for $ac_header" >&5
4352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354   echo $ECHO_N "(cached) $ECHO_C" >&6
4355 fi
4356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4358 else
4359   # Is the header compilable?
4360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 $ac_includes_default
4369 #include <$ac_header>
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373   (eval $ac_compile) 2>conftest.er1
4374   ac_status=$?
4375   grep -v '^ *+' conftest.er1 >conftest.err
4376   rm -f conftest.er1
4377   cat conftest.err >&5
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); } &&
4380          { ac_try='test -z "$ac_c_werror_flag"
4381                          || test ! -s conftest.err'
4382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383   (eval $ac_try) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; } &&
4387          { ac_try='test -s conftest.$ac_objext'
4388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389   (eval $ac_try) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; }; then
4393   ac_header_compiler=yes
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_header_compiler=no
4399 fi
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4402 echo "${ECHO_T}$ac_header_compiler" >&6
4403
4404 # Is the header present?
4405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h.  */
4413 #include <$ac_header>
4414 _ACEOF
4415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4417   ac_status=$?
4418   grep -v '^ *+' conftest.er1 >conftest.err
4419   rm -f conftest.er1
4420   cat conftest.err >&5
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); } >/dev/null; then
4423   if test -s conftest.err; then
4424     ac_cpp_err=$ac_c_preproc_warn_flag
4425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4426   else
4427     ac_cpp_err=
4428   fi
4429 else
4430   ac_cpp_err=yes
4431 fi
4432 if test -z "$ac_cpp_err"; then
4433   ac_header_preproc=yes
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438   ac_header_preproc=no
4439 fi
4440 rm -f conftest.err conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4442 echo "${ECHO_T}$ac_header_preproc" >&6
4443
4444 # So?  What about this header?
4445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4446   yes:no: )
4447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4451     ac_header_preproc=yes
4452     ;;
4453   no:yes:* )
4454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4456     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4457 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4458     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4460     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4461 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4464     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4466     (
4467       cat <<\_ASBOX
4468 ## ------------------------------------------ ##
4469 ## Report this to the AC_PACKAGE_NAME lists.  ##
4470 ## ------------------------------------------ ##
4471 _ASBOX
4472     ) |
4473       sed "s/^/$as_me: WARNING:     /" >&2
4474     ;;
4475 esac
4476 echo "$as_me:$LINENO: checking for $ac_header" >&5
4477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   eval "$as_ac_Header=\$ac_header_preproc"
4482 fi
4483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485
4486 fi
4487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488   cat >>confdefs.h <<_ACEOF
4489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490 _ACEOF
4491
4492 fi
4493
4494 done
4495
4496 ac_ext=cc
4497 ac_cpp='$CXXCPP $CPPFLAGS'
4498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4501 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4502 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4503 if test -z "$CXXCPP"; then
4504   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507       # Double quotes because CXXCPP needs to be expanded
4508     for CXXCPP in "$CXX -E" "/lib/cpp"
4509     do
4510       ac_preproc_ok=false
4511 for ac_cxx_preproc_warn_flag in '' yes
4512 do
4513   # Use a header file that comes with gcc, so configuring glibc
4514   # with a fresh cross-compiler works.
4515   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4516   # <limits.h> exists even on freestanding compilers.
4517   # On the NeXT, cc -E runs the code through the compiler's parser,
4518   # not just through cpp. "Syntax error" is here to catch this case.
4519   cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525 #ifdef __STDC__
4526 # include <limits.h>
4527 #else
4528 # include <assert.h>
4529 #endif
4530                      Syntax error
4531 _ACEOF
4532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4534   ac_status=$?
4535   grep -v '^ *+' conftest.er1 >conftest.err
4536   rm -f conftest.er1
4537   cat conftest.err >&5
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); } >/dev/null; then
4540   if test -s conftest.err; then
4541     ac_cpp_err=$ac_cxx_preproc_warn_flag
4542     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4543   else
4544     ac_cpp_err=
4545   fi
4546 else
4547   ac_cpp_err=yes
4548 fi
4549 if test -z "$ac_cpp_err"; then
4550   :
4551 else
4552   echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555   # Broken: fails on valid input.
4556 continue
4557 fi
4558 rm -f conftest.err conftest.$ac_ext
4559
4560   # OK, works on sane cases.  Now check whether non-existent headers
4561   # can be detected and how.
4562   cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h.  */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h.  */
4568 #include <ac_nonexistent.h>
4569 _ACEOF
4570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4572   ac_status=$?
4573   grep -v '^ *+' conftest.er1 >conftest.err
4574   rm -f conftest.er1
4575   cat conftest.err >&5
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); } >/dev/null; then
4578   if test -s conftest.err; then
4579     ac_cpp_err=$ac_cxx_preproc_warn_flag
4580     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4581   else
4582     ac_cpp_err=
4583   fi
4584 else
4585   ac_cpp_err=yes
4586 fi
4587 if test -z "$ac_cpp_err"; then
4588   # Broken: success on invalid input.
4589 continue
4590 else
4591   echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594   # Passes both tests.
4595 ac_preproc_ok=:
4596 break
4597 fi
4598 rm -f conftest.err conftest.$ac_ext
4599
4600 done
4601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4602 rm -f conftest.err conftest.$ac_ext
4603 if $ac_preproc_ok; then
4604   break
4605 fi
4606
4607     done
4608     ac_cv_prog_CXXCPP=$CXXCPP
4609
4610 fi
4611   CXXCPP=$ac_cv_prog_CXXCPP
4612 else
4613   ac_cv_prog_CXXCPP=$CXXCPP
4614 fi
4615 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4616 echo "${ECHO_T}$CXXCPP" >&6
4617 ac_preproc_ok=false
4618 for ac_cxx_preproc_warn_flag in '' yes
4619 do
4620   # Use a header file that comes with gcc, so configuring glibc
4621   # with a fresh cross-compiler works.
4622   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4623   # <limits.h> exists even on freestanding compilers.
4624   # On the NeXT, cc -E runs the code through the compiler's parser,
4625   # not just through cpp. "Syntax error" is here to catch this case.
4626   cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632 #ifdef __STDC__
4633 # include <limits.h>
4634 #else
4635 # include <assert.h>
4636 #endif
4637                      Syntax error
4638 _ACEOF
4639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4640   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4641   ac_status=$?
4642   grep -v '^ *+' conftest.er1 >conftest.err
4643   rm -f conftest.er1
4644   cat conftest.err >&5
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); } >/dev/null; then
4647   if test -s conftest.err; then
4648     ac_cpp_err=$ac_cxx_preproc_warn_flag
4649     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4650   else
4651     ac_cpp_err=
4652   fi
4653 else
4654   ac_cpp_err=yes
4655 fi
4656 if test -z "$ac_cpp_err"; then
4657   :
4658 else
4659   echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662   # Broken: fails on valid input.
4663 continue
4664 fi
4665 rm -f conftest.err conftest.$ac_ext
4666
4667   # OK, works on sane cases.  Now check whether non-existent headers
4668   # can be detected and how.
4669   cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h.  */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h.  */
4675 #include <ac_nonexistent.h>
4676 _ACEOF
4677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4679   ac_status=$?
4680   grep -v '^ *+' conftest.er1 >conftest.err
4681   rm -f conftest.er1
4682   cat conftest.err >&5
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); } >/dev/null; then
4685   if test -s conftest.err; then
4686     ac_cpp_err=$ac_cxx_preproc_warn_flag
4687     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4688   else
4689     ac_cpp_err=
4690   fi
4691 else
4692   ac_cpp_err=yes
4693 fi
4694 if test -z "$ac_cpp_err"; then
4695   # Broken: success on invalid input.
4696 continue
4697 else
4698   echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701   # Passes both tests.
4702 ac_preproc_ok=:
4703 break
4704 fi
4705 rm -f conftest.err conftest.$ac_ext
4706
4707 done
4708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4709 rm -f conftest.err conftest.$ac_ext
4710 if $ac_preproc_ok; then
4711   :
4712 else
4713   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4714 See \`config.log' for more details." >&5
4715 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4716 See \`config.log' for more details." >&2;}
4717    { (exit 1); exit 1; }; }
4718 fi
4719
4720 ac_ext=cc
4721 ac_cpp='$CXXCPP $CPPFLAGS'
4722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4725
4726
4727 ac_ext=f
4728 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4729 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4731 if test -n "$ac_tool_prefix"; then
4732   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4733   do
4734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_F77+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   if test -n "$F77"; then
4742   ac_cv_prog_F77="$F77" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749   for ac_exec_ext in '' $ac_executable_extensions; do
4750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756 done
4757
4758 fi
4759 fi
4760 F77=$ac_cv_prog_F77
4761 if test -n "$F77"; then
4762   echo "$as_me:$LINENO: result: $F77" >&5
4763 echo "${ECHO_T}$F77" >&6
4764 else
4765   echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4767 fi
4768
4769     test -n "$F77" && break
4770   done
4771 fi
4772 if test -z "$F77"; then
4773   ac_ct_F77=$F77
4774   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4775 do
4776   # Extract the first word of "$ac_prog", so it can be a program name with args.
4777 set dummy $ac_prog; ac_word=$2
4778 echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   if test -n "$ac_ct_F77"; then
4784   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791   for ac_exec_ext in '' $ac_executable_extensions; do
4792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793     ac_cv_prog_ac_ct_F77="$ac_prog"
4794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798 done
4799
4800 fi
4801 fi
4802 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4803 if test -n "$ac_ct_F77"; then
4804   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4805 echo "${ECHO_T}$ac_ct_F77" >&6
4806 else
4807   echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6
4809 fi
4810
4811   test -n "$ac_ct_F77" && break
4812 done
4813
4814   F77=$ac_ct_F77
4815 fi
4816
4817
4818 # Provide some information about the compiler.
4819 echo "$as_me:4819:" \
4820      "checking for Fortran 77 compiler version" >&5
4821 ac_compiler=`set X $ac_compile; echo $2`
4822 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4823   (eval $ac_compiler --version </dev/null >&5) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }
4827 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4828   (eval $ac_compiler -v </dev/null >&5) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }
4832 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4833   (eval $ac_compiler -V </dev/null >&5) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }
4837 rm -f a.out
4838
4839 # If we don't use `.F' as extension, the preprocessor is not run on the
4840 # input file.  (Note that this only needs to work for GNU compilers.)
4841 ac_save_ext=$ac_ext
4842 ac_ext=F
4843 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4844 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4845 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   cat >conftest.$ac_ext <<_ACEOF
4849       program main
4850 #ifndef __GNUC__
4851        choke me
4852 #endif
4853
4854       end
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858   (eval $ac_compile) 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } &&
4865          { ac_try='test -z "$ac_f77_werror_flag"
4866                          || test ! -s conftest.err'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; } &&
4872          { ac_try='test -s conftest.$ac_objext'
4873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; }; then
4878   ac_compiler_gnu=yes
4879 else
4880   echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ac_compiler_gnu=no
4884 fi
4885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4887
4888 fi
4889 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4890 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4891 ac_ext=$ac_save_ext
4892 ac_test_FFLAGS=${FFLAGS+set}
4893 ac_save_FFLAGS=$FFLAGS
4894 FFLAGS=
4895 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4896 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4897 if test "${ac_cv_prog_f77_g+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   FFLAGS=-g
4901 cat >conftest.$ac_ext <<_ACEOF
4902       program main
4903
4904       end
4905 _ACEOF
4906 rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908   (eval $ac_compile) 2>conftest.er1
4909   ac_status=$?
4910   grep -v '^ *+' conftest.er1 >conftest.err
4911   rm -f conftest.er1
4912   cat conftest.err >&5
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); } &&
4915          { ac_try='test -z "$ac_f77_werror_flag"
4916                          || test ! -s conftest.err'
4917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918   (eval $ac_try) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; } &&
4922          { ac_try='test -s conftest.$ac_objext'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; }; then
4928   ac_cv_prog_f77_g=yes
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 ac_cv_prog_f77_g=no
4934 fi
4935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4936
4937 fi
4938 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4939 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4940 if test "$ac_test_FFLAGS" = set; then
4941   FFLAGS=$ac_save_FFLAGS
4942 elif test $ac_cv_prog_f77_g = yes; then
4943   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4944     FFLAGS="-g -O2"
4945   else
4946     FFLAGS="-g"
4947   fi
4948 else
4949   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4950     FFLAGS="-O2"
4951   else
4952     FFLAGS=
4953   fi
4954 fi
4955
4956 G77=`test $ac_compiler_gnu = yes && echo yes`
4957 ac_ext=c
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962
4963
4964
4965 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4966
4967 # find the maximum length of command line arguments
4968 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4969 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4970 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973     i=0
4974   testring="ABCD"
4975
4976   case $build_os in
4977   msdosdjgpp*)
4978     # On DJGPP, this test can blow up pretty badly due to problems in libc
4979     # (any single argument exceeding 2000 bytes causes a buffer overrun
4980     # during glob expansion).  Even if it were fixed, the result of this
4981     # check would be larger than it should be.
4982     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4983     ;;
4984
4985   gnu*)
4986     # Under GNU Hurd, this test is not required because there is
4987     # no limit to the length of command line arguments.
4988     # Libtool will interpret -1 as no limit whatsoever
4989     lt_cv_sys_max_cmd_len=-1;
4990     ;;
4991
4992   cygwin* | mingw*)
4993     # On Win9x/ME, this test blows up -- it succeeds, but takes
4994     # about 5 minutes as the teststring grows exponentially.
4995     # Worse, since 9x/ME are not pre-emptively multitasking,
4996     # you end up with a "frozen" computer, even though with patience
4997     # the test eventually succeeds (with a max line length of 256k).
4998     # Instead, let's just punt: use the minimum linelength reported by
4999     # all of the supported platforms: 8192 (on NT/2K/XP).
5000     lt_cv_sys_max_cmd_len=8192;
5001     ;;
5002
5003   amigaos*)
5004     # On AmigaOS with pdksh, this test takes hours, literally.
5005     # So we just punt and use a minimum line length of 8192.
5006     lt_cv_sys_max_cmd_len=8192;
5007     ;;
5008
5009  *)
5010     # If test is not a shell built-in, we'll probably end up computing a
5011     # maximum length that is only half of the actual maximum length, but
5012     # we can't tell.
5013     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5014                = "XX$testring") >/dev/null 2>&1 &&
5015             new_result=`expr "X$testring" : ".*" 2>&1` &&
5016             lt_cv_sys_max_cmd_len=$new_result &&
5017             test $i != 17 # 1/2 MB should be enough
5018     do
5019       i=`expr $i + 1`
5020       testring=$testring$testring
5021     done
5022     testring=
5023     # Add a significant safety factor because C++ compilers can tack on massive
5024     # amounts of additional arguments before passing them to the linker.
5025     # It appears as though 1/2 is a usable value.
5026     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5027     ;;
5028   esac
5029
5030 fi
5031
5032 if test -n $lt_cv_sys_max_cmd_len ; then
5033   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5034 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5035 else
5036   echo "$as_me:$LINENO: result: none" >&5
5037 echo "${ECHO_T}none" >&6
5038 fi
5039
5040
5041
5042
5043 # Check for command to grab the raw symbol name followed by C symbol from nm.
5044 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5045 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5046 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049
5050 # These are sane defaults that work on at least a few old systems.
5051 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5052
5053 # Character class describing NM global symbol codes.
5054 symcode='[BCDEGRST]'
5055
5056 # Regexp to match symbols that can be accessed directly from C.
5057 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5058
5059 # Transform the above into a raw symbol and a C symbol.
5060 symxfrm='\1 \2\3 \3'
5061
5062 # Transform an extracted symbol line into a proper C declaration
5063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5064
5065 # Transform an extracted symbol line into symbol name and symbol address
5066 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5067
5068 # Define system-specific variables.
5069 case $host_os in
5070 aix*)
5071   symcode='[BCDT]'
5072   ;;
5073 cygwin* | mingw* | pw32*)
5074   symcode='[ABCDGISTW]'
5075   ;;
5076 hpux*) # Its linker distinguishes data from code symbols
5077   if test "$host_cpu" = ia64; then
5078     symcode='[ABCDEGRST]'
5079   fi
5080   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5081   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5082   ;;
5083 irix* | nonstopux*)
5084   symcode='[BCDEGRST]'
5085   ;;
5086 osf*)
5087   symcode='[BCDEGQRST]'
5088   ;;
5089 solaris* | sysv5*)
5090   symcode='[BDRT]'
5091   ;;
5092 sysv4)
5093   symcode='[DFNSTU]'
5094   ;;
5095 esac
5096
5097 # Handle CRLF in mingw tool chain
5098 opt_cr=
5099 case $build_os in
5100 mingw*)
5101   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5102   ;;
5103 esac
5104
5105 # If we're using GNU nm, then use its standard symbol codes.
5106 case `$NM -V 2>&1` in
5107 *GNU* | *'with BFD'*)
5108   symcode='[ABCDGIRSTW]' ;;
5109 esac
5110
5111 # Try without a prefix undercore, then with it.
5112 for ac_symprfx in "" "_"; do
5113
5114   # Write the raw and C identifiers.
5115   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5116
5117   # Check to see that the pipe works correctly.
5118   pipe_works=no
5119
5120   rm -f conftest*
5121   cat > conftest.$ac_ext <<EOF
5122 #ifdef __cplusplus
5123 extern "C" {
5124 #endif
5125 char nm_test_var;
5126 void nm_test_func(){}
5127 #ifdef __cplusplus
5128 }
5129 #endif
5130 int main(){nm_test_var='a';nm_test_func();return(0);}
5131 EOF
5132
5133   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134   (eval $ac_compile) 2>&5
5135   ac_status=$?
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); }; then
5138     # Now try to grab the symbols.
5139     nlist=conftest.nm
5140     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5141   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } && test -s "$nlist"; then
5145       # Try sorting and uniquifying the output.
5146       if sort "$nlist" | uniq > "$nlist"T; then
5147         mv -f "$nlist"T "$nlist"
5148       else
5149         rm -f "$nlist"T
5150       fi
5151
5152       # Make sure that we snagged all the symbols we need.
5153       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5154         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5155           cat <<EOF > conftest.$ac_ext
5156 #ifdef __cplusplus
5157 extern "C" {
5158 #endif
5159
5160 EOF
5161           # Now generate the symbol file.
5162           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5163
5164           cat <<EOF >> conftest.$ac_ext
5165 #if defined (__STDC__) && __STDC__
5166 # define lt_ptr_t void *
5167 #else
5168 # define lt_ptr_t char *
5169 # define const
5170 #endif
5171
5172 /* The mapping between symbol names and symbols. */
5173 const struct {
5174   const char *name;
5175   lt_ptr_t address;
5176 }
5177 lt_preloaded_symbols[] =
5178 {
5179 EOF
5180           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5181           cat <<\EOF >> conftest.$ac_ext
5182   {0, (lt_ptr_t) 0}
5183 };
5184
5185 #ifdef __cplusplus
5186 }
5187 #endif
5188 EOF
5189           # Now try linking the two files.
5190           mv conftest.$ac_objext conftstm.$ac_objext
5191           lt_save_LIBS="$LIBS"
5192           lt_save_CFLAGS="$CFLAGS"
5193           LIBS="conftstm.$ac_objext"
5194           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5195           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5196   (eval $ac_link) 2>&5
5197   ac_status=$?
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5200             pipe_works=yes
5201           fi
5202           LIBS="$lt_save_LIBS"
5203           CFLAGS="$lt_save_CFLAGS"
5204         else
5205           echo "cannot find nm_test_func in $nlist" >&5
5206         fi
5207       else
5208         echo "cannot find nm_test_var in $nlist" >&5
5209       fi
5210     else
5211       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5212     fi
5213   else
5214     echo "$progname: failed program was:" >&5
5215     cat conftest.$ac_ext >&5
5216   fi
5217   rm -f conftest* conftst*
5218
5219   # Do not use the global_symbol_pipe unless it works.
5220   if test "$pipe_works" = yes; then
5221     break
5222   else
5223     lt_cv_sys_global_symbol_pipe=
5224   fi
5225 done
5226
5227 fi
5228
5229 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5230   lt_cv_sys_global_symbol_to_cdecl=
5231 fi
5232 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5233   echo "$as_me:$LINENO: result: failed" >&5
5234 echo "${ECHO_T}failed" >&6
5235 else
5236   echo "$as_me:$LINENO: result: ok" >&5
5237 echo "${ECHO_T}ok" >&6
5238 fi
5239
5240 echo "$as_me:$LINENO: checking for objdir" >&5
5241 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5242 if test "${lt_cv_objdir+set}" = set; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   rm -f .libs 2>/dev/null
5246 mkdir .libs 2>/dev/null
5247 if test -d .libs; then
5248   lt_cv_objdir=.libs
5249 else
5250   # MS-DOS does not allow filenames that begin with a dot.
5251   lt_cv_objdir=_libs
5252 fi
5253 rmdir .libs 2>/dev/null
5254 fi
5255 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5256 echo "${ECHO_T}$lt_cv_objdir" >&6
5257 objdir=$lt_cv_objdir
5258
5259
5260
5261
5262
5263 case $host_os in
5264 aix3*)
5265   # AIX sometimes has problems with the GCC collect2 program.  For some
5266   # reason, if we set the COLLECT_NAMES environment variable, the problems
5267   # vanish in a puff of smoke.
5268   if test "X${COLLECT_NAMES+set}" != Xset; then
5269     COLLECT_NAMES=
5270     export COLLECT_NAMES
5271   fi
5272   ;;
5273 esac
5274
5275 # Sed substitution that helps us do robust quoting.  It backslashifies
5276 # metacharacters that are still active within double-quoted strings.
5277 Xsed='sed -e s/^X//'
5278 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5279
5280 # Same as above, but do not quote variable references.
5281 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5282
5283 # Sed substitution to delay expansion of an escaped shell variable in a
5284 # double_quote_subst'ed string.
5285 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5286
5287 # Sed substitution to avoid accidental globbing in evaled expressions
5288 no_glob_subst='s/\*/\\\*/g'
5289
5290 # Constants:
5291 rm="rm -f"
5292
5293 # Global variables:
5294 default_ofile=libtool
5295 can_build_shared=yes
5296
5297 # All known linkers require a `.a' archive for static linking (except M$VC,
5298 # which needs '.lib').
5299 libext=a
5300 ltmain="$ac_aux_dir/ltmain.sh"
5301 ofile="$default_ofile"
5302 with_gnu_ld="$lt_cv_prog_gnu_ld"
5303
5304 if test -n "$ac_tool_prefix"; then
5305   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}ar; ac_word=$2
5307 echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309 if test "${ac_cv_prog_AR+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   if test -n "$AR"; then
5313   ac_cv_prog_AR="$AR" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320   for ac_exec_ext in '' $ac_executable_extensions; do
5321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322     ac_cv_prog_AR="${ac_tool_prefix}ar"
5323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327 done
5328
5329 fi
5330 fi
5331 AR=$ac_cv_prog_AR
5332 if test -n "$AR"; then
5333   echo "$as_me:$LINENO: result: $AR" >&5
5334 echo "${ECHO_T}$AR" >&6
5335 else
5336   echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6
5338 fi
5339
5340 fi
5341 if test -z "$ac_cv_prog_AR"; then
5342   ac_ct_AR=$AR
5343   # Extract the first word of "ar", so it can be a program name with args.
5344 set dummy ar; ac_word=$2
5345 echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   if test -n "$ac_ct_AR"; then
5351   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358   for ac_exec_ext in '' $ac_executable_extensions; do
5359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360     ac_cv_prog_ac_ct_AR="ar"
5361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365 done
5366
5367   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5368 fi
5369 fi
5370 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5371 if test -n "$ac_ct_AR"; then
5372   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5373 echo "${ECHO_T}$ac_ct_AR" >&6
5374 else
5375   echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5377 fi
5378
5379   AR=$ac_ct_AR
5380 else
5381   AR="$ac_cv_prog_AR"
5382 fi
5383
5384 if test -n "$ac_tool_prefix"; then
5385   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_prog_RANLIB+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   if test -n "$RANLIB"; then
5393   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400   for ac_exec_ext in '' $ac_executable_extensions; do
5401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407 done
5408
5409 fi
5410 fi
5411 RANLIB=$ac_cv_prog_RANLIB
5412 if test -n "$RANLIB"; then
5413   echo "$as_me:$LINENO: result: $RANLIB" >&5
5414 echo "${ECHO_T}$RANLIB" >&6
5415 else
5416   echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5418 fi
5419
5420 fi
5421 if test -z "$ac_cv_prog_RANLIB"; then
5422   ac_ct_RANLIB=$RANLIB
5423   # Extract the first word of "ranlib", so it can be a program name with args.
5424 set dummy ranlib; ac_word=$2
5425 echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   if test -n "$ac_ct_RANLIB"; then
5431   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438   for ac_exec_ext in '' $ac_executable_extensions; do
5439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440     ac_cv_prog_ac_ct_RANLIB="ranlib"
5441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445 done
5446
5447   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5448 fi
5449 fi
5450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5451 if test -n "$ac_ct_RANLIB"; then
5452   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5453 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5454 else
5455   echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5457 fi
5458
5459   RANLIB=$ac_ct_RANLIB
5460 else
5461   RANLIB="$ac_cv_prog_RANLIB"
5462 fi
5463
5464 if test -n "$ac_tool_prefix"; then
5465   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5466 set dummy ${ac_tool_prefix}strip; ac_word=$2
5467 echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469 if test "${ac_cv_prog_STRIP+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   if test -n "$STRIP"; then
5473   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478   IFS=$as_save_IFS
5479   test -z "$as_dir" && as_dir=.
5480   for ac_exec_ext in '' $ac_executable_extensions; do
5481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484     break 2
5485   fi
5486 done
5487 done
5488
5489 fi
5490 fi
5491 STRIP=$ac_cv_prog_STRIP
5492 if test -n "$STRIP"; then
5493   echo "$as_me:$LINENO: result: $STRIP" >&5
5494 echo "${ECHO_T}$STRIP" >&6
5495 else
5496   echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5498 fi
5499
5500 fi
5501 if test -z "$ac_cv_prog_STRIP"; then
5502   ac_ct_STRIP=$STRIP
5503   # Extract the first word of "strip", so it can be a program name with args.
5504 set dummy strip; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   if test -n "$ac_ct_STRIP"; then
5511   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518   for ac_exec_ext in '' $ac_executable_extensions; do
5519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520     ac_cv_prog_ac_ct_STRIP="strip"
5521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525 done
5526
5527   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5528 fi
5529 fi
5530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5531 if test -n "$ac_ct_STRIP"; then
5532   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5533 echo "${ECHO_T}$ac_ct_STRIP" >&6
5534 else
5535   echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538
5539   STRIP=$ac_ct_STRIP
5540 else
5541   STRIP="$ac_cv_prog_STRIP"
5542 fi
5543
5544
5545 old_CC="$CC"
5546 old_CFLAGS="$CFLAGS"
5547
5548 # Set sane defaults for various variables
5549 test -z "$AR" && AR=ar
5550 test -z "$AR_FLAGS" && AR_FLAGS=cru
5551 test -z "$AS" && AS=as
5552 test -z "$CC" && CC=cc
5553 test -z "$LTCC" && LTCC=$CC
5554 test -z "$DLLTOOL" && DLLTOOL=dlltool
5555 test -z "$LD" && LD=ld
5556 test -z "$LN_S" && LN_S="ln -s"
5557 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5558 test -z "$NM" && NM=nm
5559 test -z "$SED" && SED=sed
5560 test -z "$OBJDUMP" && OBJDUMP=objdump
5561 test -z "$RANLIB" && RANLIB=:
5562 test -z "$STRIP" && STRIP=:
5563 test -z "$ac_objext" && ac_objext=o
5564
5565 # Determine commands to create old-style static archives.
5566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5567 old_postinstall_cmds='chmod 644 $oldlib'
5568 old_postuninstall_cmds=
5569
5570 if test -n "$RANLIB"; then
5571   case $host_os in
5572   openbsd*)
5573     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5574     ;;
5575   *)
5576     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5577     ;;
5578   esac
5579   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5580 fi
5581
5582 # Only perform the check for file, if the check method requires it
5583 case $deplibs_check_method in
5584 file_magic*)
5585   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5586     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5587 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5588 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591   case $MAGIC_CMD in
5592 [\\/*] |  ?:[\\/]*)
5593   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5594   ;;
5595 *)
5596   lt_save_MAGIC_CMD="$MAGIC_CMD"
5597   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5598   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5599   for ac_dir in $ac_dummy; do
5600     IFS="$lt_save_ifs"
5601     test -z "$ac_dir" && ac_dir=.
5602     if test -f $ac_dir/${ac_tool_prefix}file; then
5603       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5604       if test -n "$file_magic_test_file"; then
5605         case $deplibs_check_method in
5606         "file_magic "*)
5607           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5608           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5609           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5610             $EGREP "$file_magic_regex" > /dev/null; then
5611             :
5612           else
5613             cat <<EOF 1>&2
5614
5615 *** Warning: the command libtool uses to detect shared libraries,
5616 *** $file_magic_cmd, produces output that libtool cannot recognize.
5617 *** The result is that libtool may fail to recognize shared libraries
5618 *** as such.  This will affect the creation of libtool libraries that
5619 *** depend on shared libraries, but programs linked with such libtool
5620 *** libraries will work regardless of this problem.  Nevertheless, you
5621 *** may want to report the problem to your system manager and/or to
5622 *** bug-libtool@gnu.org
5623
5624 EOF
5625           fi ;;
5626         esac
5627       fi
5628       break
5629     fi
5630   done
5631   IFS="$lt_save_ifs"
5632   MAGIC_CMD="$lt_save_MAGIC_CMD"
5633   ;;
5634 esac
5635 fi
5636
5637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5638 if test -n "$MAGIC_CMD"; then
5639   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5640 echo "${ECHO_T}$MAGIC_CMD" >&6
5641 else
5642   echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5644 fi
5645
5646 if test -z "$lt_cv_path_MAGIC_CMD"; then
5647   if test -n "$ac_tool_prefix"; then
5648     echo "$as_me:$LINENO: checking for file" >&5
5649 echo $ECHO_N "checking for file... $ECHO_C" >&6
5650 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653   case $MAGIC_CMD in
5654 [\\/*] |  ?:[\\/]*)
5655   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5656   ;;
5657 *)
5658   lt_save_MAGIC_CMD="$MAGIC_CMD"
5659   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5660   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5661   for ac_dir in $ac_dummy; do
5662     IFS="$lt_save_ifs"
5663     test -z "$ac_dir" && ac_dir=.
5664     if test -f $ac_dir/file; then
5665       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5666       if test -n "$file_magic_test_file"; then
5667         case $deplibs_check_method in
5668         "file_magic "*)
5669           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5670           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5671           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5672             $EGREP "$file_magic_regex" > /dev/null; then
5673             :
5674           else
5675             cat <<EOF 1>&2
5676
5677 *** Warning: the command libtool uses to detect shared libraries,
5678 *** $file_magic_cmd, produces output that libtool cannot recognize.
5679 *** The result is that libtool may fail to recognize shared libraries
5680 *** as such.  This will affect the creation of libtool libraries that
5681 *** depend on shared libraries, but programs linked with such libtool
5682 *** libraries will work regardless of this problem.  Nevertheless, you
5683 *** may want to report the problem to your system manager and/or to
5684 *** bug-libtool@gnu.org
5685
5686 EOF
5687           fi ;;
5688         esac
5689       fi
5690       break
5691     fi
5692   done
5693   IFS="$lt_save_ifs"
5694   MAGIC_CMD="$lt_save_MAGIC_CMD"
5695   ;;
5696 esac
5697 fi
5698
5699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5700 if test -n "$MAGIC_CMD"; then
5701   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5702 echo "${ECHO_T}$MAGIC_CMD" >&6
5703 else
5704   echo "$as_me:$LINENO: result: no" >&5
5705 echo "${ECHO_T}no" >&6
5706 fi
5707
5708   else
5709     MAGIC_CMD=:
5710   fi
5711 fi
5712
5713   fi
5714   ;;
5715 esac
5716
5717 enable_dlopen=no
5718 enable_win32_dll=no
5719
5720 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5721 if test "${enable_libtool_lock+set}" = set; then
5722   enableval="$enable_libtool_lock"
5723
5724 fi;
5725 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5726
5727
5728 # Check whether --with-pic or --without-pic was given.
5729 if test "${with_pic+set}" = set; then
5730   withval="$with_pic"
5731   pic_mode="$withval"
5732 else
5733   pic_mode=default
5734 fi;
5735 test -z "$pic_mode" && pic_mode=default
5736
5737 # Use C for the default configuration in the libtool script
5738 tagname=
5739 lt_save_CC="$CC"
5740 ac_ext=c
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5745
5746
5747 # Source file extension for C test sources.
5748 ac_ext=c
5749
5750 # Object file extension for compiled C test sources.
5751 objext=o
5752 objext=$objext
5753
5754 # Code to be used in simple compile tests
5755 lt_simple_compile_test_code="int some_variable = 0;\n"
5756
5757 # Code to be used in simple link tests
5758 lt_simple_link_test_code='int main(){return(0);}\n'
5759
5760
5761 # If no C compiler was specified, use CC.
5762 LTCC=${LTCC-"$CC"}
5763
5764 # Allow CC to be a program name with arguments.
5765 compiler=$CC
5766
5767
5768 #
5769 # Check for any special shared library compilation flags.
5770 #
5771 lt_prog_cc_shlib=
5772 if test "$GCC" = no; then
5773   case $host_os in
5774   sco3.2v5*)
5775     lt_prog_cc_shlib='-belf'
5776     ;;
5777   esac
5778 fi
5779 if test -n "$lt_prog_cc_shlib"; then
5780   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5781 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5782   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5783   else
5784     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5785 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5786     lt_cv_prog_cc_can_build_shared=no
5787   fi
5788 fi
5789
5790
5791 #
5792 # Check to make sure the static flag actually works.
5793 #
5794 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5795 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5796 if test "${lt_prog_compiler_static_works+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   lt_prog_compiler_static_works=no
5800    save_LDFLAGS="$LDFLAGS"
5801    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5802    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5803    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5804      # The compiler can only warn and ignore the option if not recognized
5805      # So say no if there are warnings
5806      if test -s conftest.err; then
5807        # Append any errors to the config.log.
5808        cat conftest.err 1>&5
5809      else
5810        lt_prog_compiler_static_works=yes
5811      fi
5812    fi
5813    $rm conftest*
5814    LDFLAGS="$save_LDFLAGS"
5815
5816 fi
5817 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5818 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5819
5820 if test x"$lt_prog_compiler_static_works" = xyes; then
5821     :
5822 else
5823     lt_prog_compiler_static=
5824 fi
5825
5826
5827
5828
5829 lt_prog_compiler_no_builtin_flag=
5830
5831 if test "$GCC" = yes; then
5832   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5833
5834
5835 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   lt_cv_prog_compiler_rtti_exceptions=no
5841   ac_outfile=conftest.$ac_objext
5842    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5843    lt_compiler_flag="-fno-rtti -fno-exceptions"
5844    # Insert the option either (1) after the last *FLAGS variable, or
5845    # (2) before a word containing "conftest.", or (3) at the end.
5846    # Note that $ac_compile itself does not contain backslashes and begins
5847    # with a dollar sign (not a hyphen), so the echo should work correctly.
5848    # The option is referenced via a variable to avoid confusing sed.
5849    lt_compile=`echo "$ac_compile" | $SED \
5850    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5852    -e 's:$: $lt_compiler_flag:'`
5853    (eval echo "\"\$as_me:5853: $lt_compile\"" >&5)
5854    (eval "$lt_compile" 2>conftest.err)
5855    ac_status=$?
5856    cat conftest.err >&5
5857    echo "$as_me:5857: \$? = $ac_status" >&5
5858    if (exit $ac_status) && test -s "$ac_outfile"; then
5859      # The compiler can only warn and ignore the option if not recognized
5860      # So say no if there are warnings
5861      if test ! -s conftest.err; then
5862        lt_cv_prog_compiler_rtti_exceptions=yes
5863      fi
5864    fi
5865    $rm conftest*
5866
5867 fi
5868 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5869 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5870
5871 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5872     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5873 else
5874     :
5875 fi
5876
5877 fi
5878
5879 lt_prog_compiler_wl=
5880 lt_prog_compiler_pic=
5881 lt_prog_compiler_static=
5882
5883 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5884 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5885
5886   if test "$GCC" = yes; then
5887     lt_prog_compiler_wl='-Wl,'
5888     lt_prog_compiler_static='-static'
5889
5890     case $host_os in
5891       aix*)
5892       # All AIX code is PIC.
5893       if test "$host_cpu" = ia64; then
5894         # AIX 5 now supports IA64 processor
5895         lt_prog_compiler_static='-Bstatic'
5896       fi
5897       ;;
5898
5899     amigaos*)
5900       # FIXME: we need at least 68020 code to build shared libraries, but
5901       # adding the `-m68020' flag to GCC prevents building anything better,
5902       # like `-m68040'.
5903       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5904       ;;
5905
5906     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5907       # PIC is the default for these OSes.
5908       ;;
5909
5910     mingw* | pw32* | os2*)
5911       # This hack is so that the source file can tell whether it is being
5912       # built for inclusion in a dll (and should export symbols for example).
5913       lt_prog_compiler_pic='-DDLL_EXPORT'
5914       ;;
5915
5916     darwin* | rhapsody*)
5917       # PIC is the default on this platform
5918       # Common symbols not allowed in MH_DYLIB files
5919       lt_prog_compiler_pic='-fno-common'
5920       ;;
5921
5922     msdosdjgpp*)
5923       # Just because we use GCC doesn't mean we suddenly get shared libraries
5924       # on systems that don't support them.
5925       lt_prog_compiler_can_build_shared=no
5926       enable_shared=no
5927       ;;
5928
5929     sysv4*MP*)
5930       if test -d /usr/nec; then
5931         lt_prog_compiler_pic=-Kconform_pic
5932       fi
5933       ;;
5934
5935     hpux*)
5936       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5937       # not for PA HP-UX.
5938       case "$host_cpu" in
5939       hppa*64*|ia64*)
5940         # +Z the default
5941         ;;
5942       *)
5943         lt_prog_compiler_pic='-fPIC'
5944         ;;
5945       esac
5946       ;;
5947
5948     *)
5949       lt_prog_compiler_pic='-fPIC'
5950       ;;
5951     esac
5952   else
5953     # PORTME Check for flag to pass linker flags through the system compiler.
5954     case $host_os in
5955     aix*)
5956       lt_prog_compiler_wl='-Wl,'
5957       if test "$host_cpu" = ia64; then
5958         # AIX 5 now supports IA64 processor
5959         lt_prog_compiler_static='-Bstatic'
5960       else
5961         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5962       fi
5963       ;;
5964
5965     mingw* | pw32* | os2*)
5966       # This hack is so that the source file can tell whether it is being
5967       # built for inclusion in a dll (and should export symbols for example).
5968       lt_prog_compiler_pic='-DDLL_EXPORT'
5969       ;;
5970
5971     hpux9* | hpux10* | hpux11*)
5972       lt_prog_compiler_wl='-Wl,'
5973       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5974       # not for PA HP-UX.
5975       case "$host_cpu" in
5976       hppa*64*|ia64*)
5977         # +Z the default
5978         ;;
5979       *)
5980         lt_prog_compiler_pic='+Z'
5981         ;;
5982       esac
5983       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5984       lt_prog_compiler_static='${wl}-a ${wl}archive'
5985       ;;
5986
5987     irix5* | irix6* | nonstopux*)
5988       lt_prog_compiler_wl='-Wl,'
5989       # PIC (with -KPIC) is the default.
5990       lt_prog_compiler_static='-non_shared'
5991       ;;
5992
5993     newsos6)
5994       lt_prog_compiler_pic='-KPIC'
5995       lt_prog_compiler_static='-Bstatic'
5996       ;;
5997
5998     linux*)
5999       case $CC in
6000       icc* | ecc*)
6001         lt_prog_compiler_wl='-Wl,'
6002         lt_prog_compiler_pic='-KPIC'
6003         lt_prog_compiler_static='-static'
6004         ;;
6005       ccc*)
6006         lt_prog_compiler_wl='-Wl,'
6007         # All Alpha code is PIC.
6008         lt_prog_compiler_static='-non_shared'
6009         ;;
6010       esac
6011       ;;
6012
6013     osf3* | osf4* | osf5*)
6014       lt_prog_compiler_wl='-Wl,'
6015       # All OSF/1 code is PIC.
6016       lt_prog_compiler_static='-non_shared'
6017       ;;
6018
6019     sco3.2v5*)
6020       lt_prog_compiler_pic='-Kpic'
6021       lt_prog_compiler_static='-dn'
6022       ;;
6023
6024     solaris*)
6025       lt_prog_compiler_wl='-Wl,'
6026       lt_prog_compiler_pic='-KPIC'
6027       lt_prog_compiler_static='-Bstatic'
6028       ;;
6029
6030     sunos4*)
6031       lt_prog_compiler_wl='-Qoption ld '
6032       lt_prog_compiler_pic='-PIC'
6033       lt_prog_compiler_static='-Bstatic'
6034       ;;
6035
6036     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6037       lt_prog_compiler_wl='-Wl,'
6038       lt_prog_compiler_pic='-KPIC'
6039       lt_prog_compiler_static='-Bstatic'
6040       ;;
6041
6042     sysv4*MP*)
6043       if test -d /usr/nec ;then
6044         lt_prog_compiler_pic='-Kconform_pic'
6045         lt_prog_compiler_static='-Bstatic'
6046       fi
6047       ;;
6048
6049     uts4*)
6050       lt_prog_compiler_pic='-pic'
6051       lt_prog_compiler_static='-Bstatic'
6052       ;;
6053
6054     *)
6055       lt_prog_compiler_can_build_shared=no
6056       ;;
6057     esac
6058   fi
6059
6060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6061 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6062
6063 #
6064 # Check to make sure the PIC flag actually works.
6065 #
6066 if test -n "$lt_prog_compiler_pic"; then
6067
6068 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6069 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6070 if test "${lt_prog_compiler_pic_works+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   lt_prog_compiler_pic_works=no
6074   ac_outfile=conftest.$ac_objext
6075    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6076    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6077    # Insert the option either (1) after the last *FLAGS variable, or
6078    # (2) before a word containing "conftest.", or (3) at the end.
6079    # Note that $ac_compile itself does not contain backslashes and begins
6080    # with a dollar sign (not a hyphen), so the echo should work correctly.
6081    # The option is referenced via a variable to avoid confusing sed.
6082    lt_compile=`echo "$ac_compile" | $SED \
6083    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6085    -e 's:$: $lt_compiler_flag:'`
6086    (eval echo "\"\$as_me:6086: $lt_compile\"" >&5)
6087    (eval "$lt_compile" 2>conftest.err)
6088    ac_status=$?
6089    cat conftest.err >&5
6090    echo "$as_me:6090: \$? = $ac_status" >&5
6091    if (exit $ac_status) && test -s "$ac_outfile"; then
6092      # The compiler can only warn and ignore the option if not recognized
6093      # So say no if there are warnings
6094      if test ! -s conftest.err; then
6095        lt_prog_compiler_pic_works=yes
6096      fi
6097    fi
6098    $rm conftest*
6099
6100 fi
6101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6102 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6103
6104 if test x"$lt_prog_compiler_pic_works" = xyes; then
6105     case $lt_prog_compiler_pic in
6106      "" | " "*) ;;
6107      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6108      esac
6109 else
6110     lt_prog_compiler_pic=
6111      lt_prog_compiler_can_build_shared=no
6112 fi
6113
6114 fi
6115 case "$host_os" in
6116   # For platforms which do not support PIC, -DPIC is meaningless:
6117   *djgpp*)
6118     lt_prog_compiler_pic=
6119     ;;
6120   *)
6121     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6122     ;;
6123 esac
6124
6125 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6126 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6127 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   lt_cv_prog_compiler_c_o=no
6131    $rm -r conftest 2>/dev/null
6132    mkdir conftest
6133    cd conftest
6134    mkdir out
6135    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6136
6137    lt_compiler_flag="-o out/conftest2.$ac_objext"
6138    # Insert the option either (1) after the last *FLAGS variable, or
6139    # (2) before a word containing "conftest.", or (3) at the end.
6140    # Note that $ac_compile itself does not contain backslashes and begins
6141    # with a dollar sign (not a hyphen), so the echo should work correctly.
6142    lt_compile=`echo "$ac_compile" | $SED \
6143    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6145    -e 's:$: $lt_compiler_flag:'`
6146    (eval echo "\"\$as_me:6146: $lt_compile\"" >&5)
6147    (eval "$lt_compile" 2>out/conftest.err)
6148    ac_status=$?
6149    cat out/conftest.err >&5
6150    echo "$as_me:6150: \$? = $ac_status" >&5
6151    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6152    then
6153      # The compiler can only warn and ignore the option if not recognized
6154      # So say no if there are warnings
6155      if test ! -s out/conftest.err; then
6156        lt_cv_prog_compiler_c_o=yes
6157      fi
6158    fi
6159    chmod u+w .
6160    $rm conftest*
6161    # SGI C++ compiler will create directory out/ii_files/ for
6162    # template instantiation
6163    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6164    $rm out/* && rmdir out
6165    cd ..
6166    rmdir conftest
6167    $rm conftest*
6168
6169 fi
6170 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6171 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6172
6173
6174 hard_links="nottested"
6175 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6176   # do not overwrite the value of need_locks provided by the user
6177   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6178 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6179   hard_links=yes
6180   $rm conftest*
6181   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6182   touch conftest.a
6183   ln conftest.a conftest.b 2>&5 || hard_links=no
6184   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6185   echo "$as_me:$LINENO: result: $hard_links" >&5
6186 echo "${ECHO_T}$hard_links" >&6
6187   if test "$hard_links" = no; then
6188     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6189 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6190     need_locks=warn
6191   fi
6192 else
6193   need_locks=no
6194 fi
6195
6196 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6197 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6198
6199   runpath_var=
6200   allow_undefined_flag=
6201   enable_shared_with_static_runtimes=no
6202   archive_cmds=
6203   archive_expsym_cmds=
6204   old_archive_From_new_cmds=
6205   old_archive_from_expsyms_cmds=
6206   export_dynamic_flag_spec=
6207   whole_archive_flag_spec=
6208   thread_safe_flag_spec=
6209   hardcode_libdir_flag_spec=
6210   hardcode_libdir_flag_spec_ld=
6211   hardcode_libdir_separator=
6212   hardcode_direct=no
6213   hardcode_minus_L=no
6214   hardcode_shlibpath_var=unsupported
6215   link_all_deplibs=unknown
6216   hardcode_automatic=no
6217   module_cmds=
6218   module_expsym_cmds=
6219   always_export_symbols=no
6220   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6221   # include_expsyms should be a list of space-separated symbols to be *always*
6222   # included in the symbol list
6223   include_expsyms=
6224   # exclude_expsyms can be an extended regexp of symbols to exclude
6225   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6226   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6227   # as well as any symbol that contains `d'.
6228   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6229   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6230   # platforms (ab)use it in PIC code, but their linkers get confused if
6231   # the symbol is explicitly referenced.  Since portable code cannot
6232   # rely on this symbol name, it's probably fine to never include it in
6233   # preloaded symbol tables.
6234   extract_expsyms_cmds=
6235
6236   case $host_os in
6237   cygwin* | mingw* | pw32*)
6238     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6239     # When not using gcc, we currently assume that we are using
6240     # Microsoft Visual C++.
6241     if test "$GCC" != yes; then
6242       with_gnu_ld=no
6243     fi
6244     ;;
6245   openbsd*)
6246     with_gnu_ld=no
6247     ;;
6248   esac
6249
6250   ld_shlibs=yes
6251   if test "$with_gnu_ld" = yes; then
6252     # If archive_cmds runs LD, not CC, wlarc should be empty
6253     wlarc='${wl}'
6254
6255     # See if GNU ld supports shared libraries.
6256     case $host_os in
6257     aix3* | aix4* | aix5*)
6258       # On AIX/PPC, the GNU linker is very broken
6259       if test "$host_cpu" != ia64; then
6260         ld_shlibs=no
6261         cat <<EOF 1>&2
6262
6263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6264 *** to be unable to reliably create shared libraries on AIX.
6265 *** Therefore, libtool is disabling shared libraries support.  If you
6266 *** really care for shared libraries, you may want to modify your PATH
6267 *** so that a non-GNU linker is found, and then restart.
6268
6269 EOF
6270       fi
6271       ;;
6272
6273     amigaos*)
6274       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)'
6275       hardcode_libdir_flag_spec='-L$libdir'
6276       hardcode_minus_L=yes
6277
6278       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6279       # that the semantics of dynamic libraries on AmigaOS, at least up
6280       # to version 4, is to share data among multiple programs linked
6281       # with the same dynamic library.  Since this doesn't match the
6282       # behavior of shared libraries on other platforms, we can't use
6283       # them.
6284       ld_shlibs=no
6285       ;;
6286
6287     beos*)
6288       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6289         allow_undefined_flag=unsupported
6290         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6291         # support --undefined.  This deserves some investigation.  FIXME
6292         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6293       else
6294         ld_shlibs=no
6295       fi
6296       ;;
6297
6298     cygwin* | mingw* | pw32*)
6299       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6300       # as there is no search path for DLLs.
6301       hardcode_libdir_flag_spec='-L$libdir'
6302       allow_undefined_flag=unsupported
6303       always_export_symbols=no
6304       enable_shared_with_static_runtimes=yes
6305       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6306
6307       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6308         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6309         # If the export-symbols file already is a .def file (1st line
6310         # is EXPORTS), use it as is; otherwise, prepend...
6311         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6312           cp $export_symbols $output_objdir/$soname.def;
6313         else
6314           echo EXPORTS > $output_objdir/$soname.def;
6315           cat $export_symbols >> $output_objdir/$soname.def;
6316         fi~
6317         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6318       else
6319         ld_shlibs=no
6320       fi
6321       ;;
6322
6323     netbsd*)
6324       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6325         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6326         wlarc=
6327       else
6328         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6329         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6330       fi
6331       ;;
6332
6333     solaris* | sysv5*)
6334       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6335         ld_shlibs=no
6336         cat <<EOF 1>&2
6337
6338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6339 *** create shared libraries on Solaris systems.  Therefore, libtool
6340 *** is disabling shared libraries support.  We urge you to upgrade GNU
6341 *** binutils to release 2.9.1 or newer.  Another option is to modify
6342 *** your PATH or compiler configuration so that the native linker is
6343 *** used, and then restart.
6344
6345 EOF
6346       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6347         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6348         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6349       else
6350         ld_shlibs=no
6351       fi
6352       ;;
6353
6354     sunos4*)
6355       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6356       wlarc=
6357       hardcode_direct=yes
6358       hardcode_shlibpath_var=no
6359       ;;
6360
6361   linux*)
6362     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6363         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6364         archive_cmds="$tmp_archive_cmds"
6365       supports_anon_versioning=no
6366       case `$LD -v 2>/dev/null` in
6367         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6368         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6369         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6370         *\ 2.11.*) ;; # other 2.11 versions
6371         *) supports_anon_versioning=yes ;;
6372       esac
6373       if test $supports_anon_versioning = yes; then
6374         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6375 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6376 $echo "local: *; };" >> $output_objdir/$libname.ver~
6377         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6378       else
6379         archive_expsym_cmds="$tmp_archive_cmds"
6380       fi
6381     else
6382       ld_shlibs=no
6383     fi
6384     ;;
6385
6386     *)
6387       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6388         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6389         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6390       else
6391         ld_shlibs=no
6392       fi
6393       ;;
6394     esac
6395
6396     if test "$ld_shlibs" = yes; then
6397       runpath_var=LD_RUN_PATH
6398       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6399       export_dynamic_flag_spec='${wl}--export-dynamic'
6400       # ancient GNU ld didn't support --whole-archive et. al.
6401       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6402         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6403       else
6404         whole_archive_flag_spec=
6405       fi
6406     fi
6407   else
6408     # PORTME fill in a description of your system's linker (not GNU ld)
6409     case $host_os in
6410     aix3*)
6411       allow_undefined_flag=unsupported
6412       always_export_symbols=yes
6413       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'
6414       # Note: this linker hardcodes the directories in LIBPATH if there
6415       # are no directories specified by -L.
6416       hardcode_minus_L=yes
6417       if test "$GCC" = yes && test -z "$link_static_flag"; then
6418         # Neither direct hardcoding nor static linking is supported with a
6419         # broken collect2.
6420         hardcode_direct=unsupported
6421       fi
6422       ;;
6423
6424     aix4* | aix5*)
6425       if test "$host_cpu" = ia64; then
6426         # On IA64, the linker does run time linking by default, so we don't
6427         # have to do anything special.
6428         aix_use_runtimelinking=no
6429         exp_sym_flag='-Bexport'
6430         no_entry_flag=""
6431       else
6432         # If we're using GNU nm, then we don't want the "-C" option.
6433         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6434         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6435           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'
6436         else
6437           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'
6438         fi
6439         aix_use_runtimelinking=no
6440
6441         # Test if we are trying to use run time linking or normal
6442         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6443         # need to do runtime linking.
6444         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6445           for ld_flag in $LDFLAGS; do
6446           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6447             aix_use_runtimelinking=yes
6448             break
6449           fi
6450           done
6451         esac
6452
6453         exp_sym_flag='-bexport'
6454         no_entry_flag='-bnoentry'
6455       fi
6456
6457       # When large executables or shared objects are built, AIX ld can
6458       # have problems creating the table of contents.  If linking a library
6459       # or program results in "error TOC overflow" add -mminimal-toc to
6460       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6461       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6462
6463       archive_cmds=''
6464       hardcode_direct=yes
6465       hardcode_libdir_separator=':'
6466       link_all_deplibs=yes
6467
6468       if test "$GCC" = yes; then
6469         case $host_os in aix4.012|aix4.012.*)
6470         # We only want to do this on AIX 4.2 and lower, the check
6471         # below for broken collect2 doesn't work under 4.3+
6472           collect2name=`${CC} -print-prog-name=collect2`
6473           if test -f "$collect2name" && \
6474            strings "$collect2name" | grep resolve_lib_name >/dev/null
6475           then
6476           # We have reworked collect2
6477           hardcode_direct=yes
6478           else
6479           # We have old collect2
6480           hardcode_direct=unsupported
6481           # It fails to find uninstalled libraries when the uninstalled
6482           # path is not listed in the libpath.  Setting hardcode_minus_L
6483           # to unsupported forces relinking
6484           hardcode_minus_L=yes
6485           hardcode_libdir_flag_spec='-L$libdir'
6486           hardcode_libdir_separator=
6487           fi
6488         esac
6489         shared_flag='-shared'
6490       else
6491         # not using gcc
6492         if test "$host_cpu" = ia64; then
6493         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6494         # chokes on -Wl,-G. The following line is correct:
6495           shared_flag='-G'
6496         else
6497         if test "$aix_use_runtimelinking" = yes; then
6498             shared_flag='${wl}-G'
6499           else
6500             shared_flag='${wl}-bM:SRE'
6501         fi
6502         fi
6503       fi
6504
6505       # It seems that -bexpall does not export symbols beginning with
6506       # underscore (_), so it is better to generate a list of symbols to export.
6507       always_export_symbols=yes
6508       if test "$aix_use_runtimelinking" = yes; then
6509         # Warning - without using the other runtime loading flags (-brtl),
6510         # -berok will link without error, but may produce a broken library.
6511         allow_undefined_flag='-berok'
6512        # Determine the default libpath from the value encoded in an empty executable.
6513        cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h.  */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h.  */
6519
6520 int
6521 main ()
6522 {
6523
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530   (eval $ac_link) 2>conftest.er1
6531   ac_status=$?
6532   grep -v '^ *+' conftest.er1 >conftest.err
6533   rm -f conftest.er1
6534   cat conftest.err >&5
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); } &&
6537          { ac_try='test -z "$ac_c_werror_flag"
6538                          || test ! -s conftest.err'
6539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540   (eval $ac_try) 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); }; } &&
6544          { ac_try='test -s conftest$ac_exeext'
6545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546   (eval $ac_try) 2>&5
6547   ac_status=$?
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); }; }; then
6550
6551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6552 }'`
6553 # Check for a 64-bit object if we didn't find anything.
6554 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6555 }'`; fi
6556 else
6557   echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6559
6560 fi
6561 rm -f conftest.err conftest.$ac_objext \
6562       conftest$ac_exeext conftest.$ac_ext
6563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6564
6565        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6566         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6567        else
6568         if test "$host_cpu" = ia64; then
6569           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6570           allow_undefined_flag="-z nodefs"
6571           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6572         else
6573          # Determine the default libpath from the value encoded in an empty executable.
6574          cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h.  */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h.  */
6580
6581 int
6582 main ()
6583 {
6584
6585   ;
6586   return 0;
6587 }
6588 _ACEOF
6589 rm -f conftest.$ac_objext conftest$ac_exeext
6590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6591   (eval $ac_link) 2>conftest.er1
6592   ac_status=$?
6593   grep -v '^ *+' conftest.er1 >conftest.err
6594   rm -f conftest.er1
6595   cat conftest.err >&5
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); } &&
6598          { ac_try='test -z "$ac_c_werror_flag"
6599                          || test ! -s conftest.err'
6600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601   (eval $ac_try) 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); }; } &&
6605          { ac_try='test -s conftest$ac_exeext'
6606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607   (eval $ac_try) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }; }; then
6611
6612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6613 }'`
6614 # Check for a 64-bit object if we didn't find anything.
6615 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6616 }'`; fi
6617 else
6618   echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 fi
6622 rm -f conftest.err conftest.$ac_objext \
6623       conftest$ac_exeext conftest.$ac_ext
6624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6625
6626          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6627           # Warning - without using the other run time loading flags,
6628           # -berok will link without error, but may produce a broken library.
6629           no_undefined_flag=' ${wl}-bernotok'
6630           allow_undefined_flag=' ${wl}-berok'
6631           # -bexpall does not export symbols beginning with underscore (_)
6632           always_export_symbols=yes
6633           # Exported symbols can be pulled into shared objects from archives
6634           whole_archive_flag_spec=' '
6635           archive_cmds_need_lc=yes
6636           # This is similar to how AIX traditionally builds it's shared libraries.
6637           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6638         fi
6639       fi
6640       ;;
6641
6642     amigaos*)
6643       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)'
6644       hardcode_libdir_flag_spec='-L$libdir'
6645       hardcode_minus_L=yes
6646       # see comment about different semantics on the GNU ld section
6647       ld_shlibs=no
6648       ;;
6649
6650     bsdi4*)
6651       export_dynamic_flag_spec=-rdynamic
6652       ;;
6653
6654     cygwin* | mingw* | pw32*)
6655       # When not using gcc, we currently assume that we are using
6656       # Microsoft Visual C++.
6657       # hardcode_libdir_flag_spec is actually meaningless, as there is
6658       # no search path for DLLs.
6659       hardcode_libdir_flag_spec=' '
6660       allow_undefined_flag=unsupported
6661       # Tell ltmain to make .lib files, not .a files.
6662       libext=lib
6663       # Tell ltmain to make .dll files, not .so files.
6664       shrext=".dll"
6665       # FIXME: Setting linknames here is a bad hack.
6666       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6667       # The linker will automatically build a .lib file if we build a DLL.
6668       old_archive_From_new_cmds='true'
6669       # FIXME: Should let the user specify the lib program.
6670       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6671       fix_srcfile_path='`cygpath -w "$srcfile"`'
6672       enable_shared_with_static_runtimes=yes
6673       ;;
6674
6675     darwin* | rhapsody*)
6676     if test "$GXX" = yes ; then
6677       archive_cmds_need_lc=no
6678       case "$host_os" in
6679       rhapsody* | darwin1.[012])
6680         allow_undefined_flag='-undefined suppress'
6681         ;;
6682       *) # Darwin 1.3 on
6683       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6684         allow_undefined_flag='-flat_namespace -undefined suppress'
6685       else
6686         case ${MACOSX_DEPLOYMENT_TARGET} in
6687           10.[012])
6688             allow_undefined_flag='-flat_namespace -undefined suppress'
6689             ;;
6690           10.*)
6691             allow_undefined_flag='-undefined dynamic_lookup'
6692             ;;
6693         esac
6694       fi
6695         ;;
6696       esac
6697         lt_int_apple_cc_single_mod=no
6698         output_verbose_link_cmd='echo'
6699         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6700           lt_int_apple_cc_single_mod=yes
6701         fi
6702         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6703           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6704         else
6705         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6706       fi
6707       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6708       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6709         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6710           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6711         else
6712           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6713         fi
6714           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6715       hardcode_direct=no
6716       hardcode_automatic=yes
6717       hardcode_shlibpath_var=unsupported
6718       whole_archive_flag_spec='-all_load $convenience'
6719       link_all_deplibs=yes
6720     else
6721       ld_shlibs=no
6722     fi
6723       ;;
6724
6725     dgux*)
6726       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6727       hardcode_libdir_flag_spec='-L$libdir'
6728       hardcode_shlibpath_var=no
6729       ;;
6730
6731     freebsd1*)
6732       ld_shlibs=no
6733       ;;
6734
6735     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6736     # support.  Future versions do this automatically, but an explicit c++rt0.o
6737     # does not break anything, and helps significantly (at the cost of a little
6738     # extra space).
6739     freebsd2.2*)
6740       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6741       hardcode_libdir_flag_spec='-R$libdir'
6742       hardcode_direct=yes
6743       hardcode_shlibpath_var=no
6744       ;;
6745
6746     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6747     freebsd2*)
6748       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6749       hardcode_direct=yes
6750       hardcode_minus_L=yes
6751       hardcode_shlibpath_var=no
6752       ;;
6753
6754     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6755     freebsd* | kfreebsd*-gnu)
6756       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6757       hardcode_libdir_flag_spec='-R$libdir'
6758       hardcode_direct=yes
6759       hardcode_shlibpath_var=no
6760       ;;
6761
6762     hpux9*)
6763       if test "$GCC" = yes; then
6764         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'
6765       else
6766         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'
6767       fi
6768       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6769       hardcode_libdir_separator=:
6770       hardcode_direct=yes
6771
6772       # hardcode_minus_L: Not really in the search PATH,
6773       # but as the default location of the library.
6774       hardcode_minus_L=yes
6775       export_dynamic_flag_spec='${wl}-E'
6776       ;;
6777
6778     hpux10* | hpux11*)
6779       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6780         case "$host_cpu" in
6781         hppa*64*|ia64*)
6782           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6783           ;;
6784         *)
6785           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6786           ;;
6787         esac
6788       else
6789         case "$host_cpu" in
6790         hppa*64*|ia64*)
6791           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6792           ;;
6793         *)
6794           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6795           ;;
6796         esac
6797       fi
6798       if test "$with_gnu_ld" = no; then
6799         case "$host_cpu" in
6800         hppa*64*)
6801           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6802           hardcode_libdir_flag_spec_ld='+b $libdir'
6803           hardcode_libdir_separator=:
6804           hardcode_direct=no
6805           hardcode_shlibpath_var=no
6806           ;;
6807         ia64*)
6808           hardcode_libdir_flag_spec='-L$libdir'
6809           hardcode_direct=no
6810           hardcode_shlibpath_var=no
6811
6812           # hardcode_minus_L: Not really in the search PATH,
6813           # but as the default location of the library.
6814           hardcode_minus_L=yes
6815           ;;
6816         *)
6817           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6818           hardcode_libdir_separator=:
6819           hardcode_direct=yes
6820           export_dynamic_flag_spec='${wl}-E'
6821
6822           # hardcode_minus_L: Not really in the search PATH,
6823           # but as the default location of the library.
6824           hardcode_minus_L=yes
6825           ;;
6826         esac
6827       fi
6828       ;;
6829
6830     irix5* | irix6* | nonstopux*)
6831       if test "$GCC" = yes; then
6832         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6833       else
6834         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6835         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6836       fi
6837       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6838       hardcode_libdir_separator=:
6839       link_all_deplibs=yes
6840       ;;
6841
6842     netbsd*)
6843       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6844         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6845       else
6846         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6847       fi
6848       hardcode_libdir_flag_spec='-R$libdir'
6849       hardcode_direct=yes
6850       hardcode_shlibpath_var=no
6851       ;;
6852
6853     newsos6)
6854       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6855       hardcode_direct=yes
6856       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6857       hardcode_libdir_separator=:
6858       hardcode_shlibpath_var=no
6859       ;;
6860
6861     openbsd*)
6862       hardcode_direct=yes
6863       hardcode_shlibpath_var=no
6864       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6865         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6866         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6867         export_dynamic_flag_spec='${wl}-E'
6868       else
6869        case $host_os in
6870          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6871            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6872            hardcode_libdir_flag_spec='-R$libdir'
6873            ;;
6874          *)
6875            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6876            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6877            ;;
6878        esac
6879       fi
6880       ;;
6881
6882     os2*)
6883       hardcode_libdir_flag_spec='-L$libdir'
6884       hardcode_minus_L=yes
6885       allow_undefined_flag=unsupported
6886       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'
6887       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6888       ;;
6889
6890     osf3*)
6891       if test "$GCC" = yes; then
6892         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6893         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6894       else
6895         allow_undefined_flag=' -expect_unresolved \*'
6896         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6897       fi
6898       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6899       hardcode_libdir_separator=:
6900       ;;
6901
6902     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6903       if test "$GCC" = yes; then
6904         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6905         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6906         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6907       else
6908         allow_undefined_flag=' -expect_unresolved \*'
6909         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6910         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6911         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6912
6913         # Both c and cxx compiler support -rpath directly
6914         hardcode_libdir_flag_spec='-rpath $libdir'
6915       fi
6916       hardcode_libdir_separator=:
6917       ;;
6918
6919     sco3.2v5*)
6920       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6921       hardcode_shlibpath_var=no
6922       export_dynamic_flag_spec='${wl}-Bexport'
6923       runpath_var=LD_RUN_PATH
6924       hardcode_runpath_var=yes
6925       ;;
6926
6927     solaris*)
6928       no_undefined_flag=' -z text'
6929       if test "$GCC" = yes; then
6930         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6931         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6932           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6933       else
6934         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6935         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6936         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6937       fi
6938       hardcode_libdir_flag_spec='-R$libdir'
6939       hardcode_shlibpath_var=no
6940       case $host_os in
6941       solaris2.[0-5] | solaris2.[0-5].*) ;;
6942       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6943         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6944       esac
6945       link_all_deplibs=yes
6946       ;;
6947
6948     sunos4*)
6949       if test "x$host_vendor" = xsequent; then
6950         # Use $CC to link under sequent, because it throws in some extra .o
6951         # files that make .init and .fini sections work.
6952         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6953       else
6954         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6955       fi
6956       hardcode_libdir_flag_spec='-L$libdir'
6957       hardcode_direct=yes
6958       hardcode_minus_L=yes
6959       hardcode_shlibpath_var=no
6960       ;;
6961
6962     sysv4)
6963       case $host_vendor in
6964         sni)
6965           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6966           hardcode_direct=yes # is this really true???
6967         ;;
6968         siemens)
6969           ## LD is ld it makes a PLAMLIB
6970           ## CC just makes a GrossModule.
6971           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6972           reload_cmds='$CC -r -o $output$reload_objs'
6973           hardcode_direct=no
6974         ;;
6975         motorola)
6976           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6977           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6978         ;;
6979       esac
6980       runpath_var='LD_RUN_PATH'
6981       hardcode_shlibpath_var=no
6982       ;;
6983
6984     sysv4.3*)
6985       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6986       hardcode_shlibpath_var=no
6987       export_dynamic_flag_spec='-Bexport'
6988       ;;
6989
6990     sysv4*MP*)
6991       if test -d /usr/nec; then
6992         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6993         hardcode_shlibpath_var=no
6994         runpath_var=LD_RUN_PATH
6995         hardcode_runpath_var=yes
6996         ld_shlibs=yes
6997       fi
6998       ;;
6999
7000     sysv4.2uw2*)
7001       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7002       hardcode_direct=yes
7003       hardcode_minus_L=no
7004       hardcode_shlibpath_var=no
7005       hardcode_runpath_var=yes
7006       runpath_var=LD_RUN_PATH
7007       ;;
7008
7009    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7010       no_undefined_flag='${wl}-z ${wl}text'
7011       if test "$GCC" = yes; then
7012         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7013       else
7014         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7015       fi
7016       runpath_var='LD_RUN_PATH'
7017       hardcode_shlibpath_var=no
7018       ;;
7019
7020     sysv5*)
7021       no_undefined_flag=' -z text'
7022       # $CC -shared without GNU ld will not create a library from C++
7023       # object files and a static libstdc++, better avoid it by now
7024       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7025       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7026                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7027       hardcode_libdir_flag_spec=
7028       hardcode_shlibpath_var=no
7029       runpath_var='LD_RUN_PATH'
7030       ;;
7031
7032     uts4*)
7033       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7034       hardcode_libdir_flag_spec='-L$libdir'
7035       hardcode_shlibpath_var=no
7036       ;;
7037
7038     *)
7039       ld_shlibs=no
7040       ;;
7041     esac
7042   fi
7043
7044 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7045 echo "${ECHO_T}$ld_shlibs" >&6
7046 test "$ld_shlibs" = no && can_build_shared=no
7047
7048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7049 if test "$GCC" = yes; then
7050   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7051 fi
7052
7053 #
7054 # Do we need to explicitly link libc?
7055 #
7056 case "x$archive_cmds_need_lc" in
7057 x|xyes)
7058   # Assume -lc should be added
7059   archive_cmds_need_lc=yes
7060
7061   if test "$enable_shared" = yes && test "$GCC" = yes; then
7062     case $archive_cmds in
7063     *'~'*)
7064       # FIXME: we may have to deal with multi-command sequences.
7065       ;;
7066     '$CC '*)
7067       # Test whether the compiler implicitly links with -lc since on some
7068       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7069       # to ld, don't add -lc before -lgcc.
7070       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7071 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7072       $rm conftest*
7073       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7074
7075       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076   (eval $ac_compile) 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); } 2>conftest.err; then
7080         soname=conftest
7081         lib=conftest
7082         libobjs=conftest.$ac_objext
7083         deplibs=
7084         wl=$lt_prog_compiler_wl
7085         compiler_flags=-v
7086         linker_flags=-v
7087         verstring=
7088         output_objdir=.
7089         libname=conftest
7090         lt_save_allow_undefined_flag=$allow_undefined_flag
7091         allow_undefined_flag=
7092         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7093   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7094   ac_status=$?
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); }
7097         then
7098           archive_cmds_need_lc=no
7099         else
7100           archive_cmds_need_lc=yes
7101         fi
7102         allow_undefined_flag=$lt_save_allow_undefined_flag
7103       else
7104         cat conftest.err 1>&5
7105       fi
7106       $rm conftest*
7107       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7108 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7109       ;;
7110     esac
7111   fi
7112   ;;
7113 esac
7114
7115 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7116 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7117 library_names_spec=
7118 libname_spec='lib$name'
7119 soname_spec=
7120 shrext=".so"
7121 postinstall_cmds=
7122 postuninstall_cmds=
7123 finish_cmds=
7124 finish_eval=
7125 shlibpath_var=
7126 shlibpath_overrides_runpath=unknown
7127 version_type=none
7128 dynamic_linker="$host_os ld.so"
7129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7130 if test "$GCC" = yes; then
7131   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7132   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7133     # if the path contains ";" then we assume it to be the separator
7134     # otherwise default to the standard path separator (i.e. ":") - it is
7135     # assumed that no part of a normal pathname contains ";" but that should
7136     # okay in the real world where ";" in dirpaths is itself problematic.
7137     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7138   else
7139     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7140   fi
7141 else
7142   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7143 fi
7144 need_lib_prefix=unknown
7145 hardcode_into_libs=no
7146
7147 # when you set need_version to no, make sure it does not cause -set_version
7148 # flags to be left without arguments
7149 need_version=unknown
7150
7151 case $host_os in
7152 aix3*)
7153   version_type=linux
7154   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7155   shlibpath_var=LIBPATH
7156
7157   # AIX 3 has no versioning support, so we append a major version to the name.
7158   soname_spec='${libname}${release}${shared_ext}$major'
7159   ;;
7160
7161 aix4* | aix5*)
7162   version_type=linux
7163   need_lib_prefix=no
7164   need_version=no
7165   hardcode_into_libs=yes
7166   if test "$host_cpu" = ia64; then
7167     # AIX 5 supports IA64
7168     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7169     shlibpath_var=LD_LIBRARY_PATH
7170   else
7171     # With GCC up to 2.95.x, collect2 would create an import file
7172     # for dependence libraries.  The import file would start with
7173     # the line `#! .'.  This would cause the generated library to
7174     # depend on `.', always an invalid library.  This was fixed in
7175     # development snapshots of GCC prior to 3.0.
7176     case $host_os in
7177       aix4 | aix4.[01] | aix4.[01].*)
7178       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7179            echo ' yes '
7180            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7181         :
7182       else
7183         can_build_shared=no
7184       fi
7185       ;;
7186     esac
7187     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7188     # soname into executable. Probably we can add versioning support to
7189     # collect2, so additional links can be useful in future.
7190     if test "$aix_use_runtimelinking" = yes; then
7191       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7192       # instead of lib<name>.a to let people know that these are not
7193       # typical AIX shared libraries.
7194       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7195     else
7196       # We preserve .a as extension for shared libraries through AIX4.2
7197       # and later when we are not doing run time linking.
7198       library_names_spec='${libname}${release}.a $libname.a'
7199       soname_spec='${libname}${release}${shared_ext}$major'
7200     fi
7201     shlibpath_var=LIBPATH
7202   fi
7203   ;;
7204
7205 amigaos*)
7206   library_names_spec='$libname.ixlibrary $libname.a'
7207   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7208   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'
7209   ;;
7210
7211 beos*)
7212   library_names_spec='${libname}${shared_ext}'
7213   dynamic_linker="$host_os ld.so"
7214   shlibpath_var=LIBRARY_PATH
7215   ;;
7216
7217 bsdi4*)
7218   version_type=linux
7219   need_version=no
7220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7221   soname_spec='${libname}${release}${shared_ext}$major'
7222   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7223   shlibpath_var=LD_LIBRARY_PATH
7224   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7225   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7226   # the default ld.so.conf also contains /usr/contrib/lib and
7227   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7228   # libtool to hard-code these into programs
7229   ;;
7230
7231 cygwin* | mingw* | pw32*)
7232   version_type=windows
7233   shrext=".dll"
7234   need_version=no
7235   need_lib_prefix=no
7236
7237   case $GCC,$host_os in
7238   yes,cygwin* | yes,mingw* | yes,pw32*)
7239     library_names_spec='$libname.dll.a'
7240     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7241     postinstall_cmds='base_file=`basename \${file}`~
7242       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7243       dldir=$destdir/`dirname \$dlpath`~
7244       test -d \$dldir || mkdir -p \$dldir~
7245       $install_prog $dir/$dlname \$dldir/$dlname'
7246     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7247       dlpath=$dir/\$dldll~
7248        $rm \$dlpath'
7249     shlibpath_overrides_runpath=yes
7250
7251     case $host_os in
7252     cygwin*)
7253       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7254       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7255       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7256       ;;
7257     mingw*)
7258       # MinGW DLLs use traditional 'lib' prefix
7259       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7260       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7261       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7262         # It is most probably a Windows format PATH printed by
7263         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7264         # path with ; separators, and with drive letters. We can handle the
7265         # drive letters (cygwin fileutils understands them), so leave them,
7266         # especially as we might pass files found there to a mingw objdump,
7267         # which wouldn't understand a cygwinified path. Ahh.
7268         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7269       else
7270         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7271       fi
7272       ;;
7273     pw32*)
7274       # pw32 DLLs use 'pw' prefix rather than 'lib'
7275       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7276       ;;
7277     esac
7278     ;;
7279
7280   linux*)
7281     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7282       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7283       supports_anon_versioning=no
7284       case `$LD -v 2>/dev/null` in
7285         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7286         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7287         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7288         *\ 2.11.*) ;; # other 2.11 versions
7289         *) supports_anon_versioning=yes ;;
7290       esac
7291       if test $supports_anon_versioning = yes; then
7292         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7294 $echo "local: *; };" >> $output_objdir/$libname.ver~
7295         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7296       else
7297         $archive_expsym_cmds="$archive_cmds"
7298       fi
7299     else
7300       ld_shlibs=no
7301     fi
7302     ;;
7303
7304   *)
7305     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7306     ;;
7307   esac
7308   dynamic_linker='Win32 ld.exe'
7309   # FIXME: first we should search . and the directory the executable is in
7310   shlibpath_var=PATH
7311   ;;
7312
7313 darwin* | rhapsody*)
7314   dynamic_linker="$host_os dyld"
7315   version_type=darwin
7316   need_lib_prefix=no
7317   need_version=no
7318   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7319   soname_spec='${libname}${release}${major}$shared_ext'
7320   shlibpath_overrides_runpath=yes
7321   shlibpath_var=DYLD_LIBRARY_PATH
7322   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7323   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7324   if test "$GCC" = yes; then
7325     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7326   else
7327     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7328   fi
7329   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7330   ;;
7331
7332 dgux*)
7333   version_type=linux
7334   need_lib_prefix=no
7335   need_version=no
7336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7337   soname_spec='${libname}${release}${shared_ext}$major'
7338   shlibpath_var=LD_LIBRARY_PATH
7339   ;;
7340
7341 freebsd1*)
7342   dynamic_linker=no
7343   ;;
7344
7345 kfreebsd*-gnu)
7346   version_type=linux
7347   need_lib_prefix=no
7348   need_version=no
7349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7350   soname_spec='${libname}${release}${shared_ext}$major'
7351   shlibpath_var=LD_LIBRARY_PATH
7352   shlibpath_overrides_runpath=no
7353   hardcode_into_libs=yes
7354   dynamic_linker='GNU ld.so'
7355   ;;
7356
7357 freebsd*)
7358   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7359   version_type=freebsd-$objformat
7360   case $version_type in
7361     freebsd-elf*)
7362       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7363       need_version=no
7364       need_lib_prefix=no
7365       ;;
7366     freebsd-*)
7367       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7368       need_version=yes
7369       ;;
7370   esac
7371   shlibpath_var=LD_LIBRARY_PATH
7372   case $host_os in
7373   freebsd2*)
7374     shlibpath_overrides_runpath=yes
7375     ;;
7376   freebsd3.01* | freebsdelf3.01*)
7377     shlibpath_overrides_runpath=yes
7378     hardcode_into_libs=yes
7379     ;;
7380   *) # from 3.2 on
7381     shlibpath_overrides_runpath=no
7382     hardcode_into_libs=yes
7383     ;;
7384   esac
7385   ;;
7386
7387 gnu*)
7388   version_type=linux
7389   need_lib_prefix=no
7390   need_version=no
7391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7392   soname_spec='${libname}${release}${shared_ext}$major'
7393   shlibpath_var=LD_LIBRARY_PATH
7394   hardcode_into_libs=yes
7395   ;;
7396
7397 hpux9* | hpux10* | hpux11*)
7398   # Give a soname corresponding to the major version so that dld.sl refuses to
7399   # link against other versions.
7400   version_type=sunos
7401   need_lib_prefix=no
7402   need_version=no
7403   case "$host_cpu" in
7404   ia64*)
7405     shrext='.so'
7406     hardcode_into_libs=yes
7407     dynamic_linker="$host_os dld.so"
7408     shlibpath_var=LD_LIBRARY_PATH
7409     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7411     soname_spec='${libname}${release}${shared_ext}$major'
7412     if test "X$HPUX_IA64_MODE" = X32; then
7413       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7414     else
7415       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7416     fi
7417     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7418     ;;
7419    hppa*64*)
7420      shrext='.sl'
7421      hardcode_into_libs=yes
7422      dynamic_linker="$host_os dld.sl"
7423      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7424      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7425      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7426      soname_spec='${libname}${release}${shared_ext}$major'
7427      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7428      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7429      ;;
7430    *)
7431     shrext='.sl'
7432     dynamic_linker="$host_os dld.sl"
7433     shlibpath_var=SHLIB_PATH
7434     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7436     soname_spec='${libname}${release}${shared_ext}$major'
7437     ;;
7438   esac
7439   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7440   postinstall_cmds='chmod 555 $lib'
7441   ;;
7442
7443 irix5* | irix6* | nonstopux*)
7444   case $host_os in
7445     nonstopux*) version_type=nonstopux ;;
7446     *)
7447         if test "$lt_cv_prog_gnu_ld" = yes; then
7448                 version_type=linux
7449         else
7450                 version_type=irix
7451         fi ;;
7452   esac
7453   need_lib_prefix=no
7454   need_version=no
7455   soname_spec='${libname}${release}${shared_ext}$major'
7456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7457   case $host_os in
7458   irix5* | nonstopux*)
7459     libsuff= shlibsuff=
7460     ;;
7461   *)
7462     case $LD in # libtool.m4 will add one of these switches to LD
7463     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7464       libsuff= shlibsuff= libmagic=32-bit;;
7465     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7466       libsuff=32 shlibsuff=N32 libmagic=N32;;
7467     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7468       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7469     *) libsuff= shlibsuff= libmagic=never-match;;
7470     esac
7471     ;;
7472   esac
7473   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7474   shlibpath_overrides_runpath=no
7475   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7476   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7477   hardcode_into_libs=yes
7478   ;;
7479
7480 # No shared lib support for Linux oldld, aout, or coff.
7481 linux*oldld* | linux*aout* | linux*coff*)
7482   dynamic_linker=no
7483   ;;
7484
7485 # This must be Linux ELF.
7486 linux*)
7487   version_type=linux
7488   need_lib_prefix=no
7489   need_version=no
7490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7491   soname_spec='${libname}${release}${shared_ext}$major'
7492   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7493   shlibpath_var=LD_LIBRARY_PATH
7494   shlibpath_overrides_runpath=no
7495   # This implies no fast_install, which is unacceptable.
7496   # Some rework will be needed to allow for fast_install
7497   # before this can be enabled.
7498   hardcode_into_libs=yes
7499
7500   # Append ld.so.conf contents to the search path
7501   if test -f /etc/ld.so.conf; then
7502     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7503     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7504   fi
7505
7506   case $host_cpu:$lt_cv_cc_64bit_output in
7507   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7508     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7509     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7510     ;;
7511   esac
7512
7513   # We used to test for /lib/ld.so.1 and disable shared libraries on
7514   # powerpc, because MkLinux only supported shared libraries with the
7515   # GNU dynamic linker.  Since this was broken with cross compilers,
7516   # most powerpc-linux boxes support dynamic linking these days and
7517   # people can always --disable-shared, the test was removed, and we
7518   # assume the GNU/Linux dynamic linker is in use.
7519   dynamic_linker='GNU/Linux ld.so'
7520
7521   # Find out which ABI we are using (multilib Linux x86_64 hack).
7522   libsuff=
7523   case "$host_cpu" in
7524   x86_64*)
7525     echo '#line 7525 "configure"' > conftest.$ac_ext
7526     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527   (eval $ac_compile) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); }; then
7531       case `/usr/bin/file conftest.$ac_objext` in
7532       *64-bit*)
7533         libsuff=64
7534         ;;
7535       esac
7536     fi
7537     rm -rf conftest*
7538     ;;
7539   *)
7540     ;;
7541   esac
7542   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7543   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7544   ;;
7545
7546 knetbsd*-gnu)
7547   version_type=linux
7548   need_lib_prefix=no
7549   need_version=no
7550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7551   soname_spec='${libname}${release}${shared_ext}$major'
7552   shlibpath_var=LD_LIBRARY_PATH
7553   shlibpath_overrides_runpath=no
7554   hardcode_into_libs=yes
7555   dynamic_linker='GNU ld.so'
7556   ;;
7557
7558 netbsd*)
7559   version_type=sunos
7560   need_lib_prefix=no
7561   need_version=no
7562   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7564     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7565     dynamic_linker='NetBSD (a.out) ld.so'
7566   else
7567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7568     soname_spec='${libname}${release}${shared_ext}$major'
7569     dynamic_linker='NetBSD ld.elf_so'
7570   fi
7571   shlibpath_var=LD_LIBRARY_PATH
7572   shlibpath_overrides_runpath=yes
7573   hardcode_into_libs=yes
7574   ;;
7575
7576 newsos6)
7577   version_type=linux
7578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7579   shlibpath_var=LD_LIBRARY_PATH
7580   shlibpath_overrides_runpath=yes
7581   ;;
7582
7583 nto-qnx*)
7584   version_type=linux
7585   need_lib_prefix=no
7586   need_version=no
7587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7588   soname_spec='${libname}${release}${shared_ext}$major'
7589   shlibpath_var=LD_LIBRARY_PATH
7590   shlibpath_overrides_runpath=yes
7591   ;;
7592
7593 openbsd*)
7594   version_type=sunos
7595   need_lib_prefix=no
7596   need_version=yes
7597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7598   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7599   shlibpath_var=LD_LIBRARY_PATH
7600   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7601     case $host_os in
7602       openbsd2.[89] | openbsd2.[89].*)
7603         shlibpath_overrides_runpath=no
7604         ;;
7605       *)
7606         shlibpath_overrides_runpath=yes
7607         ;;
7608       esac
7609   else
7610     shlibpath_overrides_runpath=yes
7611   fi
7612   ;;
7613
7614 os2*)
7615   libname_spec='$name'
7616   shrext=".dll"
7617   need_lib_prefix=no
7618   library_names_spec='$libname${shared_ext} $libname.a'
7619   dynamic_linker='OS/2 ld.exe'
7620   shlibpath_var=LIBPATH
7621   ;;
7622
7623 osf3* | osf4* | osf5*)
7624   version_type=osf
7625   need_lib_prefix=no
7626   need_version=no
7627   soname_spec='${libname}${release}${shared_ext}$major'
7628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629   shlibpath_var=LD_LIBRARY_PATH
7630   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7631   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7632   ;;
7633
7634 sco3.2v5*)
7635   version_type=osf
7636   soname_spec='${libname}${release}${shared_ext}$major'
7637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7638   shlibpath_var=LD_LIBRARY_PATH
7639   ;;
7640
7641 solaris*)
7642   version_type=linux
7643   need_lib_prefix=no
7644   need_version=no
7645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7646   soname_spec='${libname}${release}${shared_ext}$major'
7647   shlibpath_var=LD_LIBRARY_PATH
7648   shlibpath_overrides_runpath=yes
7649   hardcode_into_libs=yes
7650   # ldd complains unless libraries are executable
7651   postinstall_cmds='chmod +x $lib'
7652   ;;
7653
7654 sunos4*)
7655   version_type=sunos
7656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7657   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7658   shlibpath_var=LD_LIBRARY_PATH
7659   shlibpath_overrides_runpath=yes
7660   if test "$with_gnu_ld" = yes; then
7661     need_lib_prefix=no
7662   fi
7663   need_version=yes
7664   ;;
7665
7666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7667   version_type=linux
7668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669   soname_spec='${libname}${release}${shared_ext}$major'
7670   shlibpath_var=LD_LIBRARY_PATH
7671   case $host_vendor in
7672     sni)
7673       shlibpath_overrides_runpath=no
7674       need_lib_prefix=no
7675       export_dynamic_flag_spec='${wl}-Blargedynsym'
7676       runpath_var=LD_RUN_PATH
7677       ;;
7678     siemens)
7679       need_lib_prefix=no
7680       ;;
7681     motorola)
7682       need_lib_prefix=no
7683       need_version=no
7684       shlibpath_overrides_runpath=no
7685       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7686       ;;
7687   esac
7688   ;;
7689
7690 sysv4*MP*)
7691   if test -d /usr/nec ;then
7692     version_type=linux
7693     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7694     soname_spec='$libname${shared_ext}.$major'
7695     shlibpath_var=LD_LIBRARY_PATH
7696   fi
7697   ;;
7698
7699 uts4*)
7700   version_type=linux
7701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7702   soname_spec='${libname}${release}${shared_ext}$major'
7703   shlibpath_var=LD_LIBRARY_PATH
7704   ;;
7705
7706 *)
7707   dynamic_linker=no
7708   ;;
7709 esac
7710 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7711 echo "${ECHO_T}$dynamic_linker" >&6
7712 test "$dynamic_linker" = no && can_build_shared=no
7713
7714 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7715 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7716 hardcode_action=
7717 if test -n "$hardcode_libdir_flag_spec" || \
7718    test -n "$runpath_var " || \
7719    test "X$hardcode_automatic"="Xyes" ; then
7720
7721   # We can hardcode non-existant directories.
7722   if test "$hardcode_direct" != no &&
7723      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7724      # have to relink, otherwise we might link with an installed library
7725      # when we should be linking with a yet-to-be-installed one
7726      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7727      test "$hardcode_minus_L" != no; then
7728     # Linking always hardcodes the temporary library directory.
7729     hardcode_action=relink
7730   else
7731     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7732     hardcode_action=immediate
7733   fi
7734 else
7735   # We cannot hardcode anything, or else we can only hardcode existing
7736   # directories.
7737   hardcode_action=unsupported
7738 fi
7739 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7740 echo "${ECHO_T}$hardcode_action" >&6
7741
7742 if test "$hardcode_action" = relink; then
7743   # Fast installation is not supported
7744   enable_fast_install=no
7745 elif test "$shlibpath_overrides_runpath" = yes ||
7746      test "$enable_shared" = no; then
7747   # Fast installation is not necessary
7748   enable_fast_install=needless
7749 fi
7750
7751 striplib=
7752 old_striplib=
7753 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7754 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7755 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7756   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7757   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7758   echo "$as_me:$LINENO: result: yes" >&5
7759 echo "${ECHO_T}yes" >&6
7760 else
7761 # FIXME - insert some real tests, host_os isn't really good enough
7762   case $host_os in
7763    darwin*)
7764        if test -n "$STRIP" ; then
7765          striplib="$STRIP -x"
7766          echo "$as_me:$LINENO: result: yes" >&5
7767 echo "${ECHO_T}yes" >&6
7768        else
7769   echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6
7771 fi
7772        ;;
7773    *)
7774   echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6
7776     ;;
7777   esac
7778 fi
7779
7780 if test "x$enable_dlopen" != xyes; then
7781   enable_dlopen=unknown
7782   enable_dlopen_self=unknown
7783   enable_dlopen_self_static=unknown
7784 else
7785   lt_cv_dlopen=no
7786   lt_cv_dlopen_libs=
7787
7788   case $host_os in
7789   beos*)
7790     lt_cv_dlopen="load_add_on"
7791     lt_cv_dlopen_libs=
7792     lt_cv_dlopen_self=yes
7793     ;;
7794
7795   mingw* | pw32*)
7796     lt_cv_dlopen="LoadLibrary"
7797     lt_cv_dlopen_libs=
7798    ;;
7799
7800   cygwin*)
7801     lt_cv_dlopen="dlopen"
7802     lt_cv_dlopen_libs=
7803    ;;
7804
7805   darwin*)
7806   # if libdl is installed we need to link against it
7807     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7808 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7809 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812   ac_check_lib_save_LIBS=$LIBS
7813 LIBS="-ldl  $LIBS"
7814 cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h.  */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h.  */
7820
7821 /* Override any gcc2 internal prototype to avoid an error.  */
7822 #ifdef __cplusplus
7823 extern "C"
7824 #endif
7825 /* We use char because int might match the return type of a gcc2
7826    builtin and then its argument prototype would still apply.  */
7827 char dlopen ();
7828 int
7829 main ()
7830 {
7831 dlopen ();
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838   (eval $ac_link) 2>conftest.er1
7839   ac_status=$?
7840   grep -v '^ *+' conftest.er1 >conftest.err
7841   rm -f conftest.er1
7842   cat conftest.err >&5
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); } &&
7845          { ac_try='test -z "$ac_c_werror_flag"
7846                          || test ! -s conftest.err'
7847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848   (eval $ac_try) 2>&5
7849   ac_status=$?
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); }; } &&
7852          { ac_try='test -s conftest$ac_exeext'
7853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854   (eval $ac_try) 2>&5
7855   ac_status=$?
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); }; }; then
7858   ac_cv_lib_dl_dlopen=yes
7859 else
7860   echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7862
7863 ac_cv_lib_dl_dlopen=no
7864 fi
7865 rm -f conftest.err conftest.$ac_objext \
7866       conftest$ac_exeext conftest.$ac_ext
7867 LIBS=$ac_check_lib_save_LIBS
7868 fi
7869 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7870 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7871 if test $ac_cv_lib_dl_dlopen = yes; then
7872   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7873 else
7874
7875     lt_cv_dlopen="dyld"
7876     lt_cv_dlopen_libs=
7877     lt_cv_dlopen_self=yes
7878
7879 fi
7880
7881    ;;
7882
7883   *)
7884     echo "$as_me:$LINENO: checking for shl_load" >&5
7885 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7886 if test "${ac_cv_func_shl_load+set}" = set; then
7887   echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889   cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h.  */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h.  */
7895 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7897 #define shl_load innocuous_shl_load
7898
7899 /* System header to define __stub macros and hopefully few prototypes,
7900     which can conflict with char shl_load (); below.
7901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7902     <limits.h> exists even on freestanding compilers.  */
7903
7904 #ifdef __STDC__
7905 # include <limits.h>
7906 #else
7907 # include <assert.h>
7908 #endif
7909
7910 #undef shl_load
7911
7912 /* Override any gcc2 internal prototype to avoid an error.  */
7913 #ifdef __cplusplus
7914 extern "C"
7915 {
7916 #endif
7917 /* We use char because int might match the return type of a gcc2
7918    builtin and then its argument prototype would still apply.  */
7919 char shl_load ();
7920 /* The GNU C library defines this for functions which it implements
7921     to always fail with ENOSYS.  Some functions are actually named
7922     something starting with __ and the normal name is an alias.  */
7923 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7924 choke me
7925 #else
7926 char (*f) () = shl_load;
7927 #endif
7928 #ifdef __cplusplus
7929 }
7930 #endif
7931
7932 int
7933 main ()
7934 {
7935 return f != shl_load;
7936   ;
7937   return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942   (eval $ac_link) 2>conftest.er1
7943   ac_status=$?
7944   grep -v '^ *+' conftest.er1 >conftest.err
7945   rm -f conftest.er1
7946   cat conftest.err >&5
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); } &&
7949          { ac_try='test -z "$ac_c_werror_flag"
7950                          || test ! -s conftest.err'
7951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952   (eval $ac_try) 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); }; } &&
7956          { ac_try='test -s conftest$ac_exeext'
7957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958   (eval $ac_try) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); }; }; then
7962   ac_cv_func_shl_load=yes
7963 else
7964   echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967 ac_cv_func_shl_load=no
7968 fi
7969 rm -f conftest.err conftest.$ac_objext \
7970       conftest$ac_exeext conftest.$ac_ext
7971 fi
7972 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7973 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7974 if test $ac_cv_func_shl_load = yes; then
7975   lt_cv_dlopen="shl_load"
7976 else
7977   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7978 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7979 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7980   echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982   ac_check_lib_save_LIBS=$LIBS
7983 LIBS="-ldld  $LIBS"
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h.  */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h.  */
7990
7991 /* Override any gcc2 internal prototype to avoid an error.  */
7992 #ifdef __cplusplus
7993 extern "C"
7994 #endif
7995 /* We use char because int might match the return type of a gcc2
7996    builtin and then its argument prototype would still apply.  */
7997 char shl_load ();
7998 int
7999 main ()
8000 {
8001 shl_load ();
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8008   (eval $ac_link) 2>conftest.er1
8009   ac_status=$?
8010   grep -v '^ *+' conftest.er1 >conftest.err
8011   rm -f conftest.er1
8012   cat conftest.err >&5
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); } &&
8015          { ac_try='test -z "$ac_c_werror_flag"
8016                          || test ! -s conftest.err'
8017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018   (eval $ac_try) 2>&5
8019   ac_status=$?
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); }; } &&
8022          { ac_try='test -s conftest$ac_exeext'
8023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024   (eval $ac_try) 2>&5
8025   ac_status=$?
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); }; }; then
8028   ac_cv_lib_dld_shl_load=yes
8029 else
8030   echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033 ac_cv_lib_dld_shl_load=no
8034 fi
8035 rm -f conftest.err conftest.$ac_objext \
8036       conftest$ac_exeext conftest.$ac_ext
8037 LIBS=$ac_check_lib_save_LIBS
8038 fi
8039 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8040 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8041 if test $ac_cv_lib_dld_shl_load = yes; then
8042   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8043 else
8044   echo "$as_me:$LINENO: checking for dlopen" >&5
8045 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8046 if test "${ac_cv_func_dlopen+set}" = set; then
8047   echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049   cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8057 #define dlopen innocuous_dlopen
8058
8059 /* System header to define __stub macros and hopefully few prototypes,
8060     which can conflict with char dlopen (); below.
8061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8062     <limits.h> exists even on freestanding compilers.  */
8063
8064 #ifdef __STDC__
8065 # include <limits.h>
8066 #else
8067 # include <assert.h>
8068 #endif
8069
8070 #undef dlopen
8071
8072 /* Override any gcc2 internal prototype to avoid an error.  */
8073 #ifdef __cplusplus
8074 extern "C"
8075 {
8076 #endif
8077 /* We use char because int might match the return type of a gcc2
8078    builtin and then its argument prototype would still apply.  */
8079 char dlopen ();
8080 /* The GNU C library defines this for functions which it implements
8081     to always fail with ENOSYS.  Some functions are actually named
8082     something starting with __ and the normal name is an alias.  */
8083 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8084 choke me
8085 #else
8086 char (*f) () = dlopen;
8087 #endif
8088 #ifdef __cplusplus
8089 }
8090 #endif
8091
8092 int
8093 main ()
8094 {
8095 return f != dlopen;
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102   (eval $ac_link) 2>conftest.er1
8103   ac_status=$?
8104   grep -v '^ *+' conftest.er1 >conftest.err
8105   rm -f conftest.er1
8106   cat conftest.err >&5
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); } &&
8109          { ac_try='test -z "$ac_c_werror_flag"
8110                          || test ! -s conftest.err'
8111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112   (eval $ac_try) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; } &&
8116          { ac_try='test -s conftest$ac_exeext'
8117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118   (eval $ac_try) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); }; }; then
8122   ac_cv_func_dlopen=yes
8123 else
8124   echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127 ac_cv_func_dlopen=no
8128 fi
8129 rm -f conftest.err conftest.$ac_objext \
8130       conftest$ac_exeext conftest.$ac_ext
8131 fi
8132 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8133 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8134 if test $ac_cv_func_dlopen = yes; then
8135   lt_cv_dlopen="dlopen"
8136 else
8137   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8138 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8139 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8140   echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142   ac_check_lib_save_LIBS=$LIBS
8143 LIBS="-ldl  $LIBS"
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h.  */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h.  */
8150
8151 /* Override any gcc2 internal prototype to avoid an error.  */
8152 #ifdef __cplusplus
8153 extern "C"
8154 #endif
8155 /* We use char because int might match the return type of a gcc2
8156    builtin and then its argument prototype would still apply.  */
8157 char dlopen ();
8158 int
8159 main ()
8160 {
8161 dlopen ();
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8168   (eval $ac_link) 2>conftest.er1
8169   ac_status=$?
8170   grep -v '^ *+' conftest.er1 >conftest.err
8171   rm -f conftest.er1
8172   cat conftest.err >&5
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); } &&
8175          { ac_try='test -z "$ac_c_werror_flag"
8176                          || test ! -s conftest.err'
8177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178   (eval $ac_try) 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); }; } &&
8182          { ac_try='test -s conftest$ac_exeext'
8183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184   (eval $ac_try) 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; }; then
8188   ac_cv_lib_dl_dlopen=yes
8189 else
8190   echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193 ac_cv_lib_dl_dlopen=no
8194 fi
8195 rm -f conftest.err conftest.$ac_objext \
8196       conftest$ac_exeext conftest.$ac_ext
8197 LIBS=$ac_check_lib_save_LIBS
8198 fi
8199 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8200 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8201 if test $ac_cv_lib_dl_dlopen = yes; then
8202   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8203 else
8204   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8205 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8206 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8207   echo $ECHO_N "(cached) $ECHO_C" >&6
8208 else
8209   ac_check_lib_save_LIBS=$LIBS
8210 LIBS="-lsvld  $LIBS"
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 /* Override any gcc2 internal prototype to avoid an error.  */
8219 #ifdef __cplusplus
8220 extern "C"
8221 #endif
8222 /* We use char because int might match the return type of a gcc2
8223    builtin and then its argument prototype would still apply.  */
8224 char dlopen ();
8225 int
8226 main ()
8227 {
8228 dlopen ();
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235   (eval $ac_link) 2>conftest.er1
8236   ac_status=$?
8237   grep -v '^ *+' conftest.er1 >conftest.err
8238   rm -f conftest.er1
8239   cat conftest.err >&5
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); } &&
8242          { ac_try='test -z "$ac_c_werror_flag"
8243                          || test ! -s conftest.err'
8244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245   (eval $ac_try) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; } &&
8249          { ac_try='test -s conftest$ac_exeext'
8250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251   (eval $ac_try) 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); }; }; then
8255   ac_cv_lib_svld_dlopen=yes
8256 else
8257   echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260 ac_cv_lib_svld_dlopen=no
8261 fi
8262 rm -f conftest.err conftest.$ac_objext \
8263       conftest$ac_exeext conftest.$ac_ext
8264 LIBS=$ac_check_lib_save_LIBS
8265 fi
8266 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8267 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8268 if test $ac_cv_lib_svld_dlopen = yes; then
8269   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8270 else
8271   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8272 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8273 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8274   echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276   ac_check_lib_save_LIBS=$LIBS
8277 LIBS="-ldld  $LIBS"
8278 cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284
8285 /* Override any gcc2 internal prototype to avoid an error.  */
8286 #ifdef __cplusplus
8287 extern "C"
8288 #endif
8289 /* We use char because int might match the return type of a gcc2
8290    builtin and then its argument prototype would still apply.  */
8291 char dld_link ();
8292 int
8293 main ()
8294 {
8295 dld_link ();
8296   ;
8297   return 0;
8298 }
8299 _ACEOF
8300 rm -f conftest.$ac_objext conftest$ac_exeext
8301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8302   (eval $ac_link) 2>conftest.er1
8303   ac_status=$?
8304   grep -v '^ *+' conftest.er1 >conftest.err
8305   rm -f conftest.er1
8306   cat conftest.err >&5
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } &&
8309          { ac_try='test -z "$ac_c_werror_flag"
8310                          || test ! -s conftest.err'
8311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312   (eval $ac_try) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; } &&
8316          { ac_try='test -s conftest$ac_exeext'
8317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318   (eval $ac_try) 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; }; then
8322   ac_cv_lib_dld_dld_link=yes
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 ac_cv_lib_dld_dld_link=no
8328 fi
8329 rm -f conftest.err conftest.$ac_objext \
8330       conftest$ac_exeext conftest.$ac_ext
8331 LIBS=$ac_check_lib_save_LIBS
8332 fi
8333 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8334 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8335 if test $ac_cv_lib_dld_dld_link = yes; then
8336   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8337 fi
8338
8339
8340 fi
8341
8342
8343 fi
8344
8345
8346 fi
8347
8348
8349 fi
8350
8351
8352 fi
8353
8354     ;;
8355   esac
8356
8357   if test "x$lt_cv_dlopen" != xno; then
8358     enable_dlopen=yes
8359   else
8360     enable_dlopen=no
8361   fi
8362
8363   case $lt_cv_dlopen in
8364   dlopen)
8365     save_CPPFLAGS="$CPPFLAGS"
8366     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8367
8368     save_LDFLAGS="$LDFLAGS"
8369     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8370
8371     save_LIBS="$LIBS"
8372     LIBS="$lt_cv_dlopen_libs $LIBS"
8373
8374     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8375 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8376 if test "${lt_cv_dlopen_self+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379           if test "$cross_compiling" = yes; then :
8380   lt_cv_dlopen_self=cross
8381 else
8382   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8383   lt_status=$lt_dlunknown
8384   cat > conftest.$ac_ext <<EOF
8385 #line 8385 "configure"
8386 #include "confdefs.h"
8387
8388 #if HAVE_DLFCN_H
8389 #include <dlfcn.h>
8390 #endif
8391
8392 #include <stdio.h>
8393
8394 #ifdef RTLD_GLOBAL
8395 #  define LT_DLGLOBAL           RTLD_GLOBAL
8396 #else
8397 #  ifdef DL_GLOBAL
8398 #    define LT_DLGLOBAL         DL_GLOBAL
8399 #  else
8400 #    define LT_DLGLOBAL         0
8401 #  endif
8402 #endif
8403
8404 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8405    find out it does not work in some platform. */
8406 #ifndef LT_DLLAZY_OR_NOW
8407 #  ifdef RTLD_LAZY
8408 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8409 #  else
8410 #    ifdef DL_LAZY
8411 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8412 #    else
8413 #      ifdef RTLD_NOW
8414 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8415 #      else
8416 #        ifdef DL_NOW
8417 #          define LT_DLLAZY_OR_NOW      DL_NOW
8418 #        else
8419 #          define LT_DLLAZY_OR_NOW      0
8420 #        endif
8421 #      endif
8422 #    endif
8423 #  endif
8424 #endif
8425
8426 #ifdef __cplusplus
8427 extern "C" void exit (int);
8428 #endif
8429
8430 void fnord() { int i=42;}
8431 int main ()
8432 {
8433   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8434   int status = $lt_dlunknown;
8435
8436   if (self)
8437     {
8438       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8439       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8440       /* dlclose (self); */
8441     }
8442
8443     exit (status);
8444 }
8445 EOF
8446   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447   (eval $ac_link) 2>&5
8448   ac_status=$?
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8451     (./conftest; exit; ) 2>/dev/null
8452     lt_status=$?
8453     case x$lt_status in
8454       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8455       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8456       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8457     esac
8458   else :
8459     # compilation failed
8460     lt_cv_dlopen_self=no
8461   fi
8462 fi
8463 rm -fr conftest*
8464
8465
8466 fi
8467 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8468 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8469
8470     if test "x$lt_cv_dlopen_self" = xyes; then
8471       LDFLAGS="$LDFLAGS $link_static_flag"
8472       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8473 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8474 if test "${lt_cv_dlopen_self_static+set}" = set; then
8475   echo $ECHO_N "(cached) $ECHO_C" >&6
8476 else
8477           if test "$cross_compiling" = yes; then :
8478   lt_cv_dlopen_self_static=cross
8479 else
8480   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8481   lt_status=$lt_dlunknown
8482   cat > conftest.$ac_ext <<EOF
8483 #line 8483 "configure"
8484 #include "confdefs.h"
8485
8486 #if HAVE_DLFCN_H
8487 #include <dlfcn.h>
8488 #endif
8489
8490 #include <stdio.h>
8491
8492 #ifdef RTLD_GLOBAL
8493 #  define LT_DLGLOBAL           RTLD_GLOBAL
8494 #else
8495 #  ifdef DL_GLOBAL
8496 #    define LT_DLGLOBAL         DL_GLOBAL
8497 #  else
8498 #    define LT_DLGLOBAL         0
8499 #  endif
8500 #endif
8501
8502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8503    find out it does not work in some platform. */
8504 #ifndef LT_DLLAZY_OR_NOW
8505 #  ifdef RTLD_LAZY
8506 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8507 #  else
8508 #    ifdef DL_LAZY
8509 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8510 #    else
8511 #      ifdef RTLD_NOW
8512 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8513 #      else
8514 #        ifdef DL_NOW
8515 #          define LT_DLLAZY_OR_NOW      DL_NOW
8516 #        else
8517 #          define LT_DLLAZY_OR_NOW      0
8518 #        endif
8519 #      endif
8520 #    endif
8521 #  endif
8522 #endif
8523
8524 #ifdef __cplusplus
8525 extern "C" void exit (int);
8526 #endif
8527
8528 void fnord() { int i=42;}
8529 int main ()
8530 {
8531   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8532   int status = $lt_dlunknown;
8533
8534   if (self)
8535     {
8536       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8537       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8538       /* dlclose (self); */
8539     }
8540
8541     exit (status);
8542 }
8543 EOF
8544   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8545   (eval $ac_link) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8549     (./conftest; exit; ) 2>/dev/null
8550     lt_status=$?
8551     case x$lt_status in
8552       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8553       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8554       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8555     esac
8556   else :
8557     # compilation failed
8558     lt_cv_dlopen_self_static=no
8559   fi
8560 fi
8561 rm -fr conftest*
8562
8563
8564 fi
8565 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8566 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8567     fi
8568
8569     CPPFLAGS="$save_CPPFLAGS"
8570     LDFLAGS="$save_LDFLAGS"
8571     LIBS="$save_LIBS"
8572     ;;
8573   esac
8574
8575   case $lt_cv_dlopen_self in
8576   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8577   *) enable_dlopen_self=unknown ;;
8578   esac
8579
8580   case $lt_cv_dlopen_self_static in
8581   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8582   *) enable_dlopen_self_static=unknown ;;
8583   esac
8584 fi
8585
8586
8587 # Report which librarie types wil actually be built
8588 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8589 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8590 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8591 echo "${ECHO_T}$can_build_shared" >&6
8592
8593 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8594 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8595 test "$can_build_shared" = "no" && enable_shared=no
8596
8597 # On AIX, shared libraries and static libraries use the same namespace, and
8598 # are all built from PIC.
8599 case "$host_os" in
8600 aix3*)
8601   test "$enable_shared" = yes && enable_static=no
8602   if test -n "$RANLIB"; then
8603     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8604     postinstall_cmds='$RANLIB $lib'
8605   fi
8606   ;;
8607
8608 aix4*)
8609   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8610     test "$enable_shared" = yes && enable_static=no
8611   fi
8612   ;;
8613   darwin* | rhapsody*)
8614   if test "$GCC" = yes; then
8615     archive_cmds_need_lc=no
8616     case "$host_os" in
8617     rhapsody* | darwin1.[012])
8618       allow_undefined_flag='-undefined suppress'
8619       ;;
8620     *) # Darwin 1.3 on
8621       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8622         allow_undefined_flag='-flat_namespace -undefined suppress'
8623       else
8624         case ${MACOSX_DEPLOYMENT_TARGET} in
8625           10.[012])
8626             allow_undefined_flag='-flat_namespace -undefined suppress'
8627             ;;
8628           10.*)
8629             allow_undefined_flag='-undefined dynamic_lookup'
8630             ;;
8631         esac
8632       fi
8633       ;;
8634     esac
8635     output_verbose_link_cmd='echo'
8636     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8637     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8638     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8639     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8640     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8641     hardcode_direct=no
8642     hardcode_automatic=yes
8643     hardcode_shlibpath_var=unsupported
8644     whole_archive_flag_spec='-all_load $convenience'
8645     link_all_deplibs=yes
8646   else
8647     ld_shlibs=no
8648   fi
8649     ;;
8650 esac
8651 echo "$as_me:$LINENO: result: $enable_shared" >&5
8652 echo "${ECHO_T}$enable_shared" >&6
8653
8654 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8655 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8656 # Make sure either enable_shared or enable_static is yes.
8657 test "$enable_shared" = yes || enable_static=yes
8658 echo "$as_me:$LINENO: result: $enable_static" >&5
8659 echo "${ECHO_T}$enable_static" >&6
8660
8661 # The else clause should only fire when bootstrapping the
8662 # libtool distribution, otherwise you forgot to ship ltmain.sh
8663 # with your package, and you will get complaints that there are
8664 # no rules to generate ltmain.sh.
8665 if test -f "$ltmain"; then
8666   # See if we are running on zsh, and set the options which allow our commands through
8667   # without removal of \ escapes.
8668   if test -n "${ZSH_VERSION+set}" ; then
8669     setopt NO_GLOB_SUBST
8670   fi
8671   # Now quote all the things that may contain metacharacters while being
8672   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8673   # variables and quote the copies for generation of the libtool script.
8674   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8675     SED SHELL STRIP \
8676     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8677     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8678     deplibs_check_method reload_flag reload_cmds need_locks \
8679     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8680     lt_cv_sys_global_symbol_to_c_name_address \
8681     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8682     old_postinstall_cmds old_postuninstall_cmds \
8683     compiler \
8684     CC \
8685     LD \
8686     lt_prog_compiler_wl \
8687     lt_prog_compiler_pic \
8688     lt_prog_compiler_static \
8689     lt_prog_compiler_no_builtin_flag \
8690     export_dynamic_flag_spec \
8691     thread_safe_flag_spec \
8692     whole_archive_flag_spec \
8693     enable_shared_with_static_runtimes \
8694     old_archive_cmds \
8695     old_archive_from_new_cmds \
8696     predep_objects \
8697     postdep_objects \
8698     predeps \
8699     postdeps \
8700     compiler_lib_search_path \
8701     archive_cmds \
8702     archive_expsym_cmds \
8703     postinstall_cmds \
8704     postuninstall_cmds \
8705     old_archive_from_expsyms_cmds \
8706     allow_undefined_flag \
8707     no_undefined_flag \
8708     export_symbols_cmds \
8709     hardcode_libdir_flag_spec \
8710     hardcode_libdir_flag_spec_ld \
8711     hardcode_libdir_separator \
8712     hardcode_automatic \
8713     module_cmds \
8714     module_expsym_cmds \
8715     lt_cv_prog_compiler_c_o \
8716     exclude_expsyms \
8717     include_expsyms; do
8718
8719     case $var in
8720     old_archive_cmds | \
8721     old_archive_from_new_cmds | \
8722     archive_cmds | \
8723     archive_expsym_cmds | \
8724     module_cmds | \
8725     module_expsym_cmds | \
8726     old_archive_from_expsyms_cmds | \
8727     export_symbols_cmds | \
8728     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8729     postinstall_cmds | postuninstall_cmds | \
8730     old_postinstall_cmds | old_postuninstall_cmds | \
8731     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8732       # Double-quote double-evaled strings.
8733       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8734       ;;
8735     *)
8736       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8737       ;;
8738     esac
8739   done
8740
8741   case $lt_echo in
8742   *'\$0 --fallback-echo"')
8743     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8744     ;;
8745   esac
8746
8747 cfgfile="${ofile}T"
8748   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8749   $rm -f "$cfgfile"
8750   { echo "$as_me:$LINENO: creating $ofile" >&5
8751 echo "$as_me: creating $ofile" >&6;}
8752
8753   cat <<__EOF__ >> "$cfgfile"
8754 #! $SHELL
8755
8756 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8757 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8758 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8759 #
8760 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8761 # Free Software Foundation, Inc.
8762 #
8763 # This file is part of GNU Libtool:
8764 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8765 #
8766 # This program is free software; you can redistribute it and/or modify
8767 # it under the terms of the GNU General Public License as published by
8768 # the Free Software Foundation; either version 2 of the License, or
8769 # (at your option) any later version.
8770 #
8771 # This program is distributed in the hope that it will be useful, but
8772 # WITHOUT ANY WARRANTY; without even the implied warranty of
8773 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8774 # General Public License for more details.
8775 #
8776 # You should have received a copy of the GNU General Public License
8777 # along with this program; if not, write to the Free Software
8778 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8779 #
8780 # As a special exception to the GNU General Public License, if you
8781 # distribute this file as part of a program that contains a
8782 # configuration script generated by Autoconf, you may include it under
8783 # the same distribution terms that you use for the rest of that program.
8784
8785 # A sed program that does not truncate output.
8786 SED=$lt_SED
8787
8788 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8789 Xsed="$SED -e s/^X//"
8790
8791 # The HP-UX ksh and POSIX shell print the target directory to stdout
8792 # if CDPATH is set.
8793 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8794
8795 # The names of the tagged configurations supported by this script.
8796 available_tags=
8797
8798 # ### BEGIN LIBTOOL CONFIG
8799
8800 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8801
8802 # Shell to use when invoking shell scripts.
8803 SHELL=$lt_SHELL
8804
8805 # Whether or not to build shared libraries.
8806 build_libtool_libs=$enable_shared
8807
8808 # Whether or not to build static libraries.
8809 build_old_libs=$enable_static
8810
8811 # Whether or not to add -lc for building shared libraries.
8812 build_libtool_need_lc=$archive_cmds_need_lc
8813
8814 # Whether or not to disallow shared libs when runtime libs are static
8815 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8816
8817 # Whether or not to optimize for fast installation.
8818 fast_install=$enable_fast_install
8819
8820 # The host system.
8821 host_alias=$host_alias
8822 host=$host
8823
8824 # An echo program that does not interpret backslashes.
8825 echo=$lt_echo
8826
8827 # The archiver.
8828 AR=$lt_AR
8829 AR_FLAGS=$lt_AR_FLAGS
8830
8831 # A C compiler.
8832 LTCC=$lt_LTCC
8833
8834 # A language-specific compiler.
8835 CC=$lt_compiler
8836
8837 # Is the compiler the GNU C compiler?
8838 with_gcc=$GCC
8839
8840 # An ERE matcher.
8841 EGREP=$lt_EGREP
8842
8843 # The linker used to build libraries.
8844 LD=$lt_LD
8845
8846 # Whether we need hard or soft links.
8847 LN_S=$lt_LN_S
8848
8849 # A BSD-compatible nm program.
8850 NM=$lt_NM
8851
8852 # A symbol stripping program
8853 STRIP=$lt_STRIP
8854
8855 # Used to examine libraries when file_magic_cmd begins "file"
8856 MAGIC_CMD=$MAGIC_CMD
8857
8858 # Used on cygwin: DLL creation program.
8859 DLLTOOL="$DLLTOOL"
8860
8861 # Used on cygwin: object dumper.
8862 OBJDUMP="$OBJDUMP"
8863
8864 # Used on cygwin: assembler.
8865 AS="$AS"
8866
8867 # The name of the directory that contains temporary libtool files.
8868 objdir=$objdir
8869
8870 # How to create reloadable object files.
8871 reload_flag=$lt_reload_flag
8872 reload_cmds=$lt_reload_cmds
8873
8874 # How to pass a linker flag through the compiler.
8875 wl=$lt_lt_prog_compiler_wl
8876
8877 # Object file suffix (normally "o").
8878 objext="$ac_objext"
8879
8880 # Old archive suffix (normally "a").
8881 libext="$libext"
8882
8883 # Shared library suffix (normally ".so").
8884 shrext='$shrext'
8885
8886 # Executable file suffix (normally "").
8887 exeext="$exeext"
8888
8889 # Additional compiler flags for building library objects.
8890 pic_flag=$lt_lt_prog_compiler_pic
8891 pic_mode=$pic_mode
8892
8893 # What is the maximum length of a command?
8894 max_cmd_len=$lt_cv_sys_max_cmd_len
8895
8896 # Does compiler simultaneously support -c and -o options?
8897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8898
8899 # Must we lock files when doing compilation ?
8900 need_locks=$lt_need_locks
8901
8902 # Do we need the lib prefix for modules?
8903 need_lib_prefix=$need_lib_prefix
8904
8905 # Do we need a version for libraries?
8906 need_version=$need_version
8907
8908 # Whether dlopen is supported.
8909 dlopen_support=$enable_dlopen
8910
8911 # Whether dlopen of programs is supported.
8912 dlopen_self=$enable_dlopen_self
8913
8914 # Whether dlopen of statically linked programs is supported.
8915 dlopen_self_static=$enable_dlopen_self_static
8916
8917 # Compiler flag to prevent dynamic linking.
8918 link_static_flag=$lt_lt_prog_compiler_static
8919
8920 # Compiler flag to turn off builtin functions.
8921 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8922
8923 # Compiler flag to allow reflexive dlopens.
8924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8925
8926 # Compiler flag to generate shared objects directly from archives.
8927 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8928
8929 # Compiler flag to generate thread-safe objects.
8930 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8931
8932 # Library versioning type.
8933 version_type=$version_type
8934
8935 # Format of library name prefix.
8936 libname_spec=$lt_libname_spec
8937
8938 # List of archive names.  First name is the real one, the rest are links.
8939 # The last name is the one that the linker finds with -lNAME.
8940 library_names_spec=$lt_library_names_spec
8941
8942 # The coded name of the library, if different from the real name.
8943 soname_spec=$lt_soname_spec
8944
8945 # Commands used to build and install an old-style archive.
8946 RANLIB=$lt_RANLIB
8947 old_archive_cmds=$lt_old_archive_cmds
8948 old_postinstall_cmds=$lt_old_postinstall_cmds
8949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8950
8951 # Create an old-style archive from a shared archive.
8952 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8953
8954 # Create a temporary old-style archive to link instead of a shared archive.
8955 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8956
8957 # Commands used to build and install a shared archive.
8958 archive_cmds=$lt_archive_cmds
8959 archive_expsym_cmds=$lt_archive_expsym_cmds
8960 postinstall_cmds=$lt_postinstall_cmds
8961 postuninstall_cmds=$lt_postuninstall_cmds
8962
8963 # Commands used to build a loadable module (assumed same as above if empty)
8964 module_cmds=$lt_module_cmds
8965 module_expsym_cmds=$lt_module_expsym_cmds
8966
8967 # Commands to strip libraries.
8968 old_striplib=$lt_old_striplib
8969 striplib=$lt_striplib
8970
8971 # Dependencies to place before the objects being linked to create a
8972 # shared library.
8973 predep_objects=$lt_predep_objects
8974
8975 # Dependencies to place after the objects being linked to create a
8976 # shared library.
8977 postdep_objects=$lt_postdep_objects
8978
8979 # Dependencies to place before the objects being linked to create a
8980 # shared library.
8981 predeps=$lt_predeps
8982
8983 # Dependencies to place after the objects being linked to create a
8984 # shared library.
8985 postdeps=$lt_postdeps
8986
8987 # The library search path used internally by the compiler when linking
8988 # a shared library.
8989 compiler_lib_search_path=$lt_compiler_lib_search_path
8990
8991 # Method to check whether dependent libraries are shared objects.
8992 deplibs_check_method=$lt_deplibs_check_method
8993
8994 # Command to use when deplibs_check_method == file_magic.
8995 file_magic_cmd=$lt_file_magic_cmd
8996
8997 # Flag that allows shared libraries with undefined symbols to be built.
8998 allow_undefined_flag=$lt_allow_undefined_flag
8999
9000 # Flag that forces no undefined symbols.
9001 no_undefined_flag=$lt_no_undefined_flag
9002
9003 # Commands used to finish a libtool library installation in a directory.
9004 finish_cmds=$lt_finish_cmds
9005
9006 # Same as above, but a single script fragment to be evaled but not shown.
9007 finish_eval=$lt_finish_eval
9008
9009 # Take the output of nm and produce a listing of raw symbols and C names.
9010 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9011
9012 # Transform the output of nm in a proper C declaration
9013 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9014
9015 # Transform the output of nm in a C name address pair
9016 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9017
9018 # This is the shared library runtime path variable.
9019 runpath_var=$runpath_var
9020
9021 # This is the shared library path variable.
9022 shlibpath_var=$shlibpath_var
9023
9024 # Is shlibpath searched before the hard-coded library search path?
9025 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9026
9027 # How to hardcode a shared library path into an executable.
9028 hardcode_action=$hardcode_action
9029
9030 # Whether we should hardcode library paths into libraries.
9031 hardcode_into_libs=$hardcode_into_libs
9032
9033 # Flag to hardcode \$libdir into a binary during linking.
9034 # This must work even if \$libdir does not exist.
9035 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9036
9037 # If ld is used when linking, flag to hardcode \$libdir into
9038 # a binary during linking. This must work even if \$libdir does
9039 # not exist.
9040 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9041
9042 # Whether we need a single -rpath flag with a separated argument.
9043 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9044
9045 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9046 # resulting binary.
9047 hardcode_direct=$hardcode_direct
9048
9049 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9050 # resulting binary.
9051 hardcode_minus_L=$hardcode_minus_L
9052
9053 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9054 # the resulting binary.
9055 hardcode_shlibpath_var=$hardcode_shlibpath_var
9056
9057 # Set to yes if building a shared library automatically hardcodes DIR into the library
9058 # and all subsequent libraries and executables linked against it.
9059 hardcode_automatic=$hardcode_automatic
9060
9061 # Variables whose values should be saved in libtool wrapper scripts and
9062 # restored at relink time.
9063 variables_saved_for_relink="$variables_saved_for_relink"
9064
9065 # Whether libtool must link a program against all its dependency libraries.
9066 link_all_deplibs=$link_all_deplibs
9067
9068 # Compile-time system search path for libraries
9069 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9070
9071 # Run-time system search path for libraries
9072 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9073
9074 # Fix the shell variable \$srcfile for the compiler.
9075 fix_srcfile_path="$fix_srcfile_path"
9076
9077 # Set to yes if exported symbols are required.
9078 always_export_symbols=$always_export_symbols
9079
9080 # The commands to list exported symbols.
9081 export_symbols_cmds=$lt_export_symbols_cmds
9082
9083 # The commands to extract the exported symbol list from a shared archive.
9084 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9085
9086 # Symbols that should not be listed in the preloaded symbols.
9087 exclude_expsyms=$lt_exclude_expsyms
9088
9089 # Symbols that must always be exported.
9090 include_expsyms=$lt_include_expsyms
9091
9092 # ### END LIBTOOL CONFIG
9093
9094 __EOF__
9095
9096
9097   case $host_os in
9098   aix3*)
9099     cat <<\EOF >> "$cfgfile"
9100
9101 # AIX sometimes has problems with the GCC collect2 program.  For some
9102 # reason, if we set the COLLECT_NAMES environment variable, the problems
9103 # vanish in a puff of smoke.
9104 if test "X${COLLECT_NAMES+set}" != Xset; then
9105   COLLECT_NAMES=
9106   export COLLECT_NAMES
9107 fi
9108 EOF
9109     ;;
9110   esac
9111
9112   # We use sed instead of cat because bash on DJGPP gets confused if
9113   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9114   # text mode, it properly converts lines to CR/LF.  This bash problem
9115   # is reportedly fixed, but why not run on old versions too?
9116   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9117
9118   mv -f "$cfgfile" "$ofile" || \
9119     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9120   chmod +x "$ofile"
9121
9122 else
9123   # If there is no Makefile yet, we rely on a make rule to execute
9124   # `config.status --recheck' to rerun these tests and create the
9125   # libtool script then.
9126   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9127   if test -f "$ltmain_in"; then
9128     test -f Makefile && make "$ltmain"
9129   fi
9130 fi
9131
9132
9133 ac_ext=c
9134 ac_cpp='$CPP $CPPFLAGS'
9135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9138
9139 CC="$lt_save_CC"
9140
9141
9142 # Check whether --with-tags or --without-tags was given.
9143 if test "${with_tags+set}" = set; then
9144   withval="$with_tags"
9145   tagnames="$withval"
9146 fi;
9147
9148 if test -f "$ltmain" && test -n "$tagnames"; then
9149   if test ! -f "${ofile}"; then
9150     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9151 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9152   fi
9153
9154   if test -z "$LTCC"; then
9155     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9156     if test -z "$LTCC"; then
9157       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9158 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9159     else
9160       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9161 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9162     fi
9163   fi
9164
9165   # Extract list of available tagged configurations in $ofile.
9166   # Note that this assumes the entire list is on one line.
9167   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9168
9169   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9170   for tagname in $tagnames; do
9171     IFS="$lt_save_ifs"
9172     # Check whether tagname contains only valid characters
9173     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9174     "") ;;
9175     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9176 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9177    { (exit 1); exit 1; }; }
9178         ;;
9179     esac
9180
9181     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9182     then
9183       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9184 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9185    { (exit 1); exit 1; }; }
9186     fi
9187
9188     # Update the list of available tags.
9189     if test -n "$tagname"; then
9190       echo appending configuration tag \"$tagname\" to $ofile
9191
9192       case $tagname in
9193       CXX)
9194         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9195           ac_ext=cc
9196 ac_cpp='$CXXCPP $CPPFLAGS'
9197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9200
9201
9202
9203
9204 archive_cmds_need_lc_CXX=no
9205 allow_undefined_flag_CXX=
9206 always_export_symbols_CXX=no
9207 archive_expsym_cmds_CXX=
9208 export_dynamic_flag_spec_CXX=
9209 hardcode_direct_CXX=no
9210 hardcode_libdir_flag_spec_CXX=
9211 hardcode_libdir_flag_spec_ld_CXX=
9212 hardcode_libdir_separator_CXX=
9213 hardcode_minus_L_CXX=no
9214 hardcode_automatic_CXX=no
9215 module_cmds_CXX=
9216 module_expsym_cmds_CXX=
9217 link_all_deplibs_CXX=unknown
9218 old_archive_cmds_CXX=$old_archive_cmds
9219 no_undefined_flag_CXX=
9220 whole_archive_flag_spec_CXX=
9221 enable_shared_with_static_runtimes_CXX=no
9222
9223 # Dependencies to place before and after the object being linked:
9224 predep_objects_CXX=
9225 postdep_objects_CXX=
9226 predeps_CXX=
9227 postdeps_CXX=
9228 compiler_lib_search_path_CXX=
9229
9230 # Source file extension for C++ test sources.
9231 ac_ext=cc
9232
9233 # Object file extension for compiled C++ test sources.
9234 objext=o
9235 objext_CXX=$objext
9236
9237 # Code to be used in simple compile tests
9238 lt_simple_compile_test_code="int some_variable = 0;\n"
9239
9240 # Code to be used in simple link tests
9241 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9242
9243 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9244
9245 # If no C compiler was specified, use CC.
9246 LTCC=${LTCC-"$CC"}
9247
9248 # Allow CC to be a program name with arguments.
9249 compiler=$CC
9250
9251
9252 # Allow CC to be a program name with arguments.
9253 lt_save_CC=$CC
9254 lt_save_LD=$LD
9255 lt_save_GCC=$GCC
9256 GCC=$GXX
9257 lt_save_with_gnu_ld=$with_gnu_ld
9258 lt_save_path_LD=$lt_cv_path_LD
9259 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9260   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9261 else
9262   unset lt_cv_prog_gnu_ld
9263 fi
9264 if test -n "${lt_cv_path_LDCXX+set}"; then
9265   lt_cv_path_LD=$lt_cv_path_LDCXX
9266 else
9267   unset lt_cv_path_LD
9268 fi
9269 test -z "${LDCXX+set}" || LD=$LDCXX
9270 CC=${CXX-"c++"}
9271 compiler=$CC
9272 compiler_CXX=$CC
9273 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9274
9275 # We don't want -fno-exception wen compiling C++ code, so set the
9276 # no_builtin_flag separately
9277 if test "$GXX" = yes; then
9278   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9279 else
9280   lt_prog_compiler_no_builtin_flag_CXX=
9281 fi
9282
9283 if test "$GXX" = yes; then
9284   # Set up default GNU C++ configuration
9285
9286
9287 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9288 if test "${with_gnu_ld+set}" = set; then
9289   withval="$with_gnu_ld"
9290   test "$withval" = no || with_gnu_ld=yes
9291 else
9292   with_gnu_ld=no
9293 fi;
9294 ac_prog=ld
9295 if test "$GCC" = yes; then
9296   # Check if gcc -print-prog-name=ld gives a path.
9297   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9298 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9299   case $host in
9300   *-*-mingw*)
9301     # gcc leaves a trailing carriage return which upsets mingw
9302     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9303   *)
9304     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9305   esac
9306   case $ac_prog in
9307     # Accept absolute paths.
9308     [\\/]* | ?:[\\/]*)
9309       re_direlt='/[^/][^/]*/\.\./'
9310       # Canonicalize the pathname of ld
9311       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9312       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9313         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9314       done
9315       test -z "$LD" && LD="$ac_prog"
9316       ;;
9317   "")
9318     # If it fails, then pretend we aren't using GCC.
9319     ac_prog=ld
9320     ;;
9321   *)
9322     # If it is relative, then search for the first ld in PATH.
9323     with_gnu_ld=unknown
9324     ;;
9325   esac
9326 elif test "$with_gnu_ld" = yes; then
9327   echo "$as_me:$LINENO: checking for GNU ld" >&5
9328 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9329 else
9330   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9331 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9332 fi
9333 if test "${lt_cv_path_LD+set}" = set; then
9334   echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336   if test -z "$LD"; then
9337   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9338   for ac_dir in $PATH; do
9339     IFS="$lt_save_ifs"
9340     test -z "$ac_dir" && ac_dir=.
9341     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9342       lt_cv_path_LD="$ac_dir/$ac_prog"
9343       # Check to see if the program is GNU ld.  I'd rather use --version,
9344       # but apparently some GNU ld's only accept -v.
9345       # Break only if it was the GNU/non-GNU ld that we prefer.
9346       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9347       *GNU* | *'with BFD'*)
9348         test "$with_gnu_ld" != no && break
9349         ;;
9350       *)
9351         test "$with_gnu_ld" != yes && break
9352         ;;
9353       esac
9354     fi
9355   done
9356   IFS="$lt_save_ifs"
9357 else
9358   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9359 fi
9360 fi
9361
9362 LD="$lt_cv_path_LD"
9363 if test -n "$LD"; then
9364   echo "$as_me:$LINENO: result: $LD" >&5
9365 echo "${ECHO_T}$LD" >&6
9366 else
9367   echo "$as_me:$LINENO: result: no" >&5
9368 echo "${ECHO_T}no" >&6
9369 fi
9370 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9371 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9372    { (exit 1); exit 1; }; }
9373 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9374 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9375 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9376   echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9379 case `$LD -v 2>&1 </dev/null` in
9380 *GNU* | *'with BFD'*)
9381   lt_cv_prog_gnu_ld=yes
9382   ;;
9383 *)
9384   lt_cv_prog_gnu_ld=no
9385   ;;
9386 esac
9387 fi
9388 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9389 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9390 with_gnu_ld=$lt_cv_prog_gnu_ld
9391
9392
9393
9394   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9395   # archiving commands below assume that GNU ld is being used.
9396   if test "$with_gnu_ld" = yes; then
9397     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399
9400     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9401     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9402
9403     # If archive_cmds runs LD, not CC, wlarc should be empty
9404     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9405     #     investigate it a little bit more. (MM)
9406     wlarc='${wl}'
9407
9408     # ancient GNU ld didn't support --whole-archive et. al.
9409     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9410         grep 'no-whole-archive' > /dev/null; then
9411       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9412     else
9413       whole_archive_flag_spec_CXX=
9414     fi
9415   else
9416     with_gnu_ld=no
9417     wlarc=
9418
9419     # A generic and very simple default shared library creation
9420     # command for GNU C++ for the case where it uses the native
9421     # linker, instead of GNU ld.  If possible, this setting should
9422     # overridden to take advantage of the native linker features on
9423     # the platform it is being used on.
9424     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9425   fi
9426
9427   # Commands to make compiler produce verbose output that lists
9428   # what "hidden" libraries, object files and flags are used when
9429   # linking a shared library.
9430   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9431
9432 else
9433   GXX=no
9434   with_gnu_ld=no
9435   wlarc=
9436 fi
9437
9438 # PORTME: fill in a description of your system's C++ link characteristics
9439 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9441 ld_shlibs_CXX=yes
9442 case $host_os in
9443   aix3*)
9444     # FIXME: insert proper C++ library support
9445     ld_shlibs_CXX=no
9446     ;;
9447   aix4* | aix5*)
9448     if test "$host_cpu" = ia64; then
9449       # On IA64, the linker does run time linking by default, so we don't
9450       # have to do anything special.
9451       aix_use_runtimelinking=no
9452       exp_sym_flag='-Bexport'
9453       no_entry_flag=""
9454     else
9455       aix_use_runtimelinking=no
9456
9457       # Test if we are trying to use run time linking or normal
9458       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9459       # need to do runtime linking.
9460       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9461         for ld_flag in $LDFLAGS; do
9462           case $ld_flag in
9463           *-brtl*)
9464             aix_use_runtimelinking=yes
9465             break
9466             ;;
9467           esac
9468         done
9469       esac
9470
9471       exp_sym_flag='-bexport'
9472       no_entry_flag='-bnoentry'
9473     fi
9474
9475     # When large executables or shared objects are built, AIX ld can
9476     # have problems creating the table of contents.  If linking a library
9477     # or program results in "error TOC overflow" add -mminimal-toc to
9478     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9479     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9480
9481     archive_cmds_CXX=''
9482     hardcode_direct_CXX=yes
9483     hardcode_libdir_separator_CXX=':'
9484     link_all_deplibs_CXX=yes
9485
9486     if test "$GXX" = yes; then
9487       case $host_os in aix4.012|aix4.012.*)
9488       # We only want to do this on AIX 4.2 and lower, the check
9489       # below for broken collect2 doesn't work under 4.3+
9490         collect2name=`${CC} -print-prog-name=collect2`
9491         if test -f "$collect2name" && \
9492            strings "$collect2name" | grep resolve_lib_name >/dev/null
9493         then
9494           # We have reworked collect2
9495           hardcode_direct_CXX=yes
9496         else
9497           # We have old collect2
9498           hardcode_direct_CXX=unsupported
9499           # It fails to find uninstalled libraries when the uninstalled
9500           # path is not listed in the libpath.  Setting hardcode_minus_L
9501           # to unsupported forces relinking
9502           hardcode_minus_L_CXX=yes
9503           hardcode_libdir_flag_spec_CXX='-L$libdir'
9504           hardcode_libdir_separator_CXX=
9505         fi
9506       esac
9507       shared_flag='-shared'
9508     else
9509       # not using gcc
9510       if test "$host_cpu" = ia64; then
9511         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9512         # chokes on -Wl,-G. The following line is correct:
9513         shared_flag='-G'
9514       else
9515         if test "$aix_use_runtimelinking" = yes; then
9516           shared_flag='${wl}-G'
9517         else
9518           shared_flag='${wl}-bM:SRE'
9519         fi
9520       fi
9521     fi
9522
9523     # It seems that -bexpall does not export symbols beginning with
9524     # underscore (_), so it is better to generate a list of symbols to export.
9525     always_export_symbols_CXX=yes
9526     if test "$aix_use_runtimelinking" = yes; then
9527       # Warning - without using the other runtime loading flags (-brtl),
9528       # -berok will link without error, but may produce a broken library.
9529       allow_undefined_flag_CXX='-berok'
9530       # Determine the default libpath from the value encoded in an empty executable.
9531       cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537
9538 int
9539 main ()
9540 {
9541
9542   ;
9543   return 0;
9544 }
9545 _ACEOF
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548   (eval $ac_link) 2>conftest.er1
9549   ac_status=$?
9550   grep -v '^ *+' conftest.er1 >conftest.err
9551   rm -f conftest.er1
9552   cat conftest.err >&5
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); } &&
9555          { ac_try='test -z "$ac_cxx_werror_flag"
9556                          || test ! -s conftest.err'
9557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558   (eval $ac_try) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); }; } &&
9562          { ac_try='test -s conftest$ac_exeext'
9563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564   (eval $ac_try) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568
9569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9570 }'`
9571 # Check for a 64-bit object if we didn't find anything.
9572 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9573 }'`; fi
9574 else
9575   echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9577
9578 fi
9579 rm -f conftest.err conftest.$ac_objext \
9580       conftest$ac_exeext conftest.$ac_ext
9581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9582
9583       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9584
9585       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9586      else
9587       if test "$host_cpu" = ia64; then
9588         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9589         allow_undefined_flag_CXX="-z nodefs"
9590         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9591       else
9592         # Determine the default libpath from the value encoded in an empty executable.
9593         cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h.  */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h.  */
9599
9600 int
9601 main ()
9602 {
9603
9604   ;
9605   return 0;
9606 }
9607 _ACEOF
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9610   (eval $ac_link) 2>conftest.er1
9611   ac_status=$?
9612   grep -v '^ *+' conftest.er1 >conftest.err
9613   rm -f conftest.er1
9614   cat conftest.err >&5
9615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616   (exit $ac_status); } &&
9617          { ac_try='test -z "$ac_cxx_werror_flag"
9618                          || test ! -s conftest.err'
9619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620   (eval $ac_try) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; } &&
9624          { ac_try='test -s conftest$ac_exeext'
9625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626   (eval $ac_try) 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); }; }; then
9630
9631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9632 }'`
9633 # Check for a 64-bit object if we didn't find anything.
9634 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9635 }'`; fi
9636 else
9637   echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640 fi
9641 rm -f conftest.err conftest.$ac_objext \
9642       conftest$ac_exeext conftest.$ac_ext
9643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9644
9645         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9646         # Warning - without using the other run time loading flags,
9647         # -berok will link without error, but may produce a broken library.
9648         no_undefined_flag_CXX=' ${wl}-bernotok'
9649         allow_undefined_flag_CXX=' ${wl}-berok'
9650         # -bexpall does not export symbols beginning with underscore (_)
9651         always_export_symbols_CXX=yes
9652         # Exported symbols can be pulled into shared objects from archives
9653         whole_archive_flag_spec_CXX=' '
9654         archive_cmds_need_lc_CXX=yes
9655         # This is similar to how AIX traditionally builds it's shared libraries.
9656         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9657       fi
9658     fi
9659     ;;
9660   chorus*)
9661     case $cc_basename in
9662       *)
9663         # FIXME: insert proper C++ library support
9664         ld_shlibs_CXX=no
9665         ;;
9666     esac
9667     ;;
9668
9669   cygwin* | mingw* | pw32*)
9670     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9671     # as there is no search path for DLLs.
9672     hardcode_libdir_flag_spec_CXX='-L$libdir'
9673     allow_undefined_flag_CXX=unsupported
9674     always_export_symbols_CXX=no
9675     enable_shared_with_static_runtimes_CXX=yes
9676
9677     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9678       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9679       # If the export-symbols file already is a .def file (1st line
9680       # is EXPORTS), use it as is; otherwise, prepend...
9681       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9682         cp $export_symbols $output_objdir/$soname.def;
9683       else
9684         echo EXPORTS > $output_objdir/$soname.def;
9685         cat $export_symbols >> $output_objdir/$soname.def;
9686       fi~
9687       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9688     else
9689       ld_shlibs_CXX=no
9690     fi
9691   ;;
9692
9693   darwin* | rhapsody*)
9694   if test "$GXX" = yes; then
9695     archive_cmds_need_lc_CXX=no
9696     case "$host_os" in
9697     rhapsody* | darwin1.[012])
9698       allow_undefined_flag_CXX='-undefined suppress'
9699       ;;
9700     *) # Darwin 1.3 on
9701       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9702         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9703       else
9704         case ${MACOSX_DEPLOYMENT_TARGET} in
9705           10.[012])
9706             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9707             ;;
9708           10.*)
9709             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9710             ;;
9711         esac
9712       fi
9713       ;;
9714     esac
9715     lt_int_apple_cc_single_mod=no
9716     output_verbose_link_cmd='echo'
9717     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9718       lt_int_apple_cc_single_mod=yes
9719     fi
9720     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9721       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9722     else
9723       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9724     fi
9725     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9726
9727     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9728     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9729       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9730     else
9731       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9732     fi
9733     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9734     hardcode_direct_CXX=no
9735     hardcode_automatic_CXX=yes
9736     hardcode_shlibpath_var_CXX=unsupported
9737     whole_archive_flag_spec_CXX='-all_load $convenience'
9738     link_all_deplibs_CXX=yes
9739   else
9740     ld_shlibs_CXX=no
9741   fi
9742     ;;
9743
9744   dgux*)
9745     case $cc_basename in
9746       ec++)
9747         # FIXME: insert proper C++ library support
9748         ld_shlibs_CXX=no
9749         ;;
9750       ghcx)
9751         # Green Hills C++ Compiler
9752         # FIXME: insert proper C++ library support
9753         ld_shlibs_CXX=no
9754         ;;
9755       *)
9756         # FIXME: insert proper C++ library support
9757         ld_shlibs_CXX=no
9758         ;;
9759     esac
9760     ;;
9761   freebsd12*)
9762     # C++ shared libraries reported to be fairly broken before switch to ELF
9763     ld_shlibs_CXX=no
9764     ;;
9765   freebsd-elf*)
9766     archive_cmds_need_lc_CXX=no
9767     ;;
9768   freebsd* | kfreebsd*-gnu)
9769     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9770     # conventions
9771     ld_shlibs_CXX=yes
9772     ;;
9773   gnu*)
9774     ;;
9775   hpux9*)
9776     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9777     hardcode_libdir_separator_CXX=:
9778     export_dynamic_flag_spec_CXX='${wl}-E'
9779     hardcode_direct_CXX=yes
9780     hardcode_minus_L_CXX=yes # Not in the search PATH,
9781                                 # but as the default
9782                                 # location of the library.
9783
9784     case $cc_basename in
9785     CC)
9786       # FIXME: insert proper C++ library support
9787       ld_shlibs_CXX=no
9788       ;;
9789     aCC)
9790       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9791       # Commands to make compiler produce verbose output that lists
9792       # what "hidden" libraries, object files and flags are used when
9793       # linking a shared library.
9794       #
9795       # There doesn't appear to be a way to prevent this compiler from
9796       # explicitly linking system object files so we need to strip them
9797       # from the output so that they don't get included in the library
9798       # dependencies.
9799       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9800       ;;
9801     *)
9802       if test "$GXX" = yes; then
9803         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9804       else
9805         # FIXME: insert proper C++ library support
9806         ld_shlibs_CXX=no
9807       fi
9808       ;;
9809     esac
9810     ;;
9811   hpux10*|hpux11*)
9812     if test $with_gnu_ld = no; then
9813       case "$host_cpu" in
9814       hppa*64*)
9815         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9816         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9817         hardcode_libdir_separator_CXX=:
9818         ;;
9819       ia64*)
9820         hardcode_libdir_flag_spec_CXX='-L$libdir'
9821         ;;
9822       *)
9823         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9824         hardcode_libdir_separator_CXX=:
9825         export_dynamic_flag_spec_CXX='${wl}-E'
9826         ;;
9827       esac
9828     fi
9829     case "$host_cpu" in
9830     hppa*64*)
9831       hardcode_direct_CXX=no
9832       hardcode_shlibpath_var_CXX=no
9833       ;;
9834     ia64*)
9835       hardcode_direct_CXX=no
9836       hardcode_shlibpath_var_CXX=no
9837       hardcode_minus_L_CXX=yes # Not in the search PATH,
9838                                               # but as the default
9839                                               # location of the library.
9840       ;;
9841     *)
9842       hardcode_direct_CXX=yes
9843       hardcode_minus_L_CXX=yes # Not in the search PATH,
9844                                               # but as the default
9845                                               # location of the library.
9846       ;;
9847     esac
9848
9849     case $cc_basename in
9850       CC)
9851         # FIXME: insert proper C++ library support
9852         ld_shlibs_CXX=no
9853         ;;
9854       aCC)
9855         case "$host_cpu" in
9856         hppa*64*|ia64*)
9857           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9858           ;;
9859         *)
9860           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9861           ;;
9862         esac
9863         # Commands to make compiler produce verbose output that lists
9864         # what "hidden" libraries, object files and flags are used when
9865         # linking a shared library.
9866         #
9867         # There doesn't appear to be a way to prevent this compiler from
9868         # explicitly linking system object files so we need to strip them
9869         # from the output so that they don't get included in the library
9870         # dependencies.
9871         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9872         ;;
9873       *)
9874         if test "$GXX" = yes; then
9875           if test $with_gnu_ld = no; then
9876             case "$host_cpu" in
9877             ia64*|hppa*64*)
9878               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9879               ;;
9880             *)
9881               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9882               ;;
9883             esac
9884           fi
9885         else
9886           # FIXME: insert proper C++ library support
9887           ld_shlibs_CXX=no
9888         fi
9889         ;;
9890     esac
9891     ;;
9892   irix5* | irix6*)
9893     case $cc_basename in
9894       CC)
9895         # SGI C++
9896         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9897
9898         # Archives containing C++ object files must be created using
9899         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9900         # necessary to make sure instantiated templates are included
9901         # in the archive.
9902         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9903         ;;
9904       *)
9905         if test "$GXX" = yes; then
9906           if test "$with_gnu_ld" = no; then
9907             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9908           else
9909             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9910           fi
9911         fi
9912         link_all_deplibs_CXX=yes
9913         ;;
9914     esac
9915     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9916     hardcode_libdir_separator_CXX=:
9917     ;;
9918   linux*)
9919     case $cc_basename in
9920       KCC)
9921         # Kuck and Associates, Inc. (KAI) C++ Compiler
9922
9923         # KCC will only create a shared library if the output file
9924         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9925         # to its proper name (with version) after linking.
9926         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9927         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9928         # Commands to make compiler produce verbose output that lists
9929         # what "hidden" libraries, object files and flags are used when
9930         # linking a shared library.
9931         #
9932         # There doesn't appear to be a way to prevent this compiler from
9933         # explicitly linking system object files so we need to strip them
9934         # from the output so that they don't get included in the library
9935         # dependencies.
9936         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9937
9938         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9939         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9940
9941         # Archives containing C++ object files must be created using
9942         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9943         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9944         ;;
9945       icpc)
9946         # Intel C++
9947         with_gnu_ld=yes
9948         archive_cmds_need_lc_CXX=no
9949         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9950         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9951         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9952         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9953         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9954         ;;
9955       cxx)
9956         # Compaq C++
9957         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9959
9960         runpath_var=LD_RUN_PATH
9961         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9962         hardcode_libdir_separator_CXX=:
9963
9964         # Commands to make compiler produce verbose output that lists
9965         # what "hidden" libraries, object files and flags are used when
9966         # linking a shared library.
9967         #
9968         # There doesn't appear to be a way to prevent this compiler from
9969         # explicitly linking system object files so we need to strip them
9970         # from the output so that they don't get included in the library
9971         # dependencies.
9972         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9973         ;;
9974     esac
9975     ;;
9976   lynxos*)
9977     # FIXME: insert proper C++ library support
9978     ld_shlibs_CXX=no
9979     ;;
9980   m88k*)
9981     # FIXME: insert proper C++ library support
9982     ld_shlibs_CXX=no
9983     ;;
9984   mvs*)
9985     case $cc_basename in
9986       cxx)
9987         # FIXME: insert proper C++ library support
9988         ld_shlibs_CXX=no
9989         ;;
9990       *)
9991         # FIXME: insert proper C++ library support
9992         ld_shlibs_CXX=no
9993         ;;
9994     esac
9995     ;;
9996   netbsd*)
9997     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9998       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9999       wlarc=
10000       hardcode_libdir_flag_spec_CXX='-R$libdir'
10001       hardcode_direct_CXX=yes
10002       hardcode_shlibpath_var_CXX=no
10003     fi
10004     # Workaround some broken pre-1.5 toolchains
10005     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10006     ;;
10007   osf3*)
10008     case $cc_basename in
10009       KCC)
10010         # Kuck and Associates, Inc. (KAI) C++ Compiler
10011
10012         # KCC will only create a shared library if the output file
10013         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10014         # to its proper name (with version) after linking.
10015         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10016
10017         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10018         hardcode_libdir_separator_CXX=:
10019
10020         # Archives containing C++ object files must be created using
10021         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10022         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10023
10024         ;;
10025       RCC)
10026         # Rational C++ 2.4.1
10027         # FIXME: insert proper C++ library support
10028         ld_shlibs_CXX=no
10029         ;;
10030       cxx)
10031         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10032         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10033
10034         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10035         hardcode_libdir_separator_CXX=:
10036
10037         # Commands to make compiler produce verbose output that lists
10038         # what "hidden" libraries, object files and flags are used when
10039         # linking a shared library.
10040         #
10041         # There doesn't appear to be a way to prevent this compiler from
10042         # explicitly linking system object files so we need to strip them
10043         # from the output so that they don't get included in the library
10044         # dependencies.
10045         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10046         ;;
10047       *)
10048         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10049           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10050           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10051
10052           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10053           hardcode_libdir_separator_CXX=:
10054
10055           # Commands to make compiler produce verbose output that lists
10056           # what "hidden" libraries, object files and flags are used when
10057           # linking a shared library.
10058           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10059
10060         else
10061           # FIXME: insert proper C++ library support
10062           ld_shlibs_CXX=no
10063         fi
10064         ;;
10065     esac
10066     ;;
10067   osf4* | osf5*)
10068     case $cc_basename in
10069       KCC)
10070         # Kuck and Associates, Inc. (KAI) C++ Compiler
10071
10072         # KCC will only create a shared library if the output file
10073         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10074         # to its proper name (with version) after linking.
10075         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10076
10077         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10078         hardcode_libdir_separator_CXX=:
10079
10080         # Archives containing C++ object files must be created using
10081         # the KAI C++ compiler.
10082         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10083         ;;
10084       RCC)
10085         # Rational C++ 2.4.1
10086         # FIXME: insert proper C++ library support
10087         ld_shlibs_CXX=no
10088         ;;
10089       cxx)
10090         allow_undefined_flag_CXX=' -expect_unresolved \*'
10091         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10092         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10093           echo "-hidden">> $lib.exp~
10094           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10095           $rm $lib.exp'
10096
10097         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10098         hardcode_libdir_separator_CXX=:
10099
10100         # Commands to make compiler produce verbose output that lists
10101         # what "hidden" libraries, object files and flags are used when
10102         # linking a shared library.
10103         #
10104         # There doesn't appear to be a way to prevent this compiler from
10105         # explicitly linking system object files so we need to strip them
10106         # from the output so that they don't get included in the library
10107         # dependencies.
10108         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10109         ;;
10110       *)
10111         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10112           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10113          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10114
10115           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10116           hardcode_libdir_separator_CXX=:
10117
10118           # Commands to make compiler produce verbose output that lists
10119           # what "hidden" libraries, object files and flags are used when
10120           # linking a shared library.
10121           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10122
10123         else
10124           # FIXME: insert proper C++ library support
10125           ld_shlibs_CXX=no
10126         fi
10127         ;;
10128     esac
10129     ;;
10130   psos*)
10131     # FIXME: insert proper C++ library support
10132     ld_shlibs_CXX=no
10133     ;;
10134   sco*)
10135     archive_cmds_need_lc_CXX=no
10136     case $cc_basename in
10137       CC)
10138         # FIXME: insert proper C++ library support
10139         ld_shlibs_CXX=no
10140         ;;
10141       *)
10142         # FIXME: insert proper C++ library support
10143         ld_shlibs_CXX=no
10144         ;;
10145     esac
10146     ;;
10147   sunos4*)
10148     case $cc_basename in
10149       CC)
10150         # Sun C++ 4.x
10151         # FIXME: insert proper C++ library support
10152         ld_shlibs_CXX=no
10153         ;;
10154       lcc)
10155         # Lucid
10156         # FIXME: insert proper C++ library support
10157         ld_shlibs_CXX=no
10158         ;;
10159       *)
10160         # FIXME: insert proper C++ library support
10161         ld_shlibs_CXX=no
10162         ;;
10163     esac
10164     ;;
10165   solaris*)
10166     case $cc_basename in
10167       CC)
10168         # Sun C++ 4.2, 5.x and Centerline C++
10169         no_undefined_flag_CXX=' -zdefs'
10170         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10171         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10172         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10173
10174         hardcode_libdir_flag_spec_CXX='-R$libdir'
10175         hardcode_shlibpath_var_CXX=no
10176         case $host_os in
10177           solaris2.0-5 | solaris2.0-5.*) ;;
10178           *)
10179             # The C++ compiler is used as linker so we must use $wl
10180             # flag to pass the commands to the underlying system
10181             # linker.
10182             # Supported since Solaris 2.6 (maybe 2.5.1?)
10183             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10184             ;;
10185         esac
10186         link_all_deplibs_CXX=yes
10187
10188         # Commands to make compiler produce verbose output that lists
10189         # what "hidden" libraries, object files and flags are used when
10190         # linking a shared library.
10191         #
10192         # There doesn't appear to be a way to prevent this compiler from
10193         # explicitly linking system object files so we need to strip them
10194         # from the output so that they don't get included in the library
10195         # dependencies.
10196         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10197
10198         # Archives containing C++ object files must be created using
10199         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10200         # necessary to make sure instantiated templates are included
10201         # in the archive.
10202         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10203         ;;
10204       gcx)
10205         # Green Hills C++ Compiler
10206         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10207
10208         # The C++ compiler must be used to create the archive.
10209         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10210         ;;
10211       *)
10212         # GNU C++ compiler with Solaris linker
10213         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10214           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10215           if $CC --version | grep -v '^2\.7' > /dev/null; then
10216             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10217             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10218                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10219
10220             # Commands to make compiler produce verbose output that lists
10221             # what "hidden" libraries, object files and flags are used when
10222             # linking a shared library.
10223             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10224           else
10225             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10226             # platform.
10227             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10228             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10229                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10230
10231             # Commands to make compiler produce verbose output that lists
10232             # what "hidden" libraries, object files and flags are used when
10233             # linking a shared library.
10234             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10235           fi
10236
10237           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10238         fi
10239         ;;
10240     esac
10241     ;;
10242   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10243     archive_cmds_need_lc_CXX=no
10244     ;;
10245   tandem*)
10246     case $cc_basename in
10247       NCC)
10248         # NonStop-UX NCC 3.20
10249         # FIXME: insert proper C++ library support
10250         ld_shlibs_CXX=no
10251         ;;
10252       *)
10253         # FIXME: insert proper C++ library support
10254         ld_shlibs_CXX=no
10255         ;;
10256     esac
10257     ;;
10258   vxworks*)
10259     # FIXME: insert proper C++ library support
10260     ld_shlibs_CXX=no
10261     ;;
10262   *)
10263     # FIXME: insert proper C++ library support
10264     ld_shlibs_CXX=no
10265     ;;
10266 esac
10267 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10268 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10269 test "$ld_shlibs_CXX" = no && can_build_shared=no
10270
10271 GCC_CXX="$GXX"
10272 LD_CXX="$LD"
10273
10274
10275 cat > conftest.$ac_ext <<EOF
10276 class Foo
10277 {
10278 public:
10279   Foo (void) { a = 0; }
10280 private:
10281   int a;
10282 };
10283 EOF
10284
10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286   (eval $ac_compile) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; then
10290   # Parse the compiler output and extract the necessary
10291   # objects, libraries and library flags.
10292
10293   # Sentinel used to keep track of whether or not we are before
10294   # the conftest object file.
10295   pre_test_object_deps_done=no
10296
10297   # The `*' in the case matches for architectures that use `case' in
10298   # $output_verbose_cmd can trigger glob expansion during the loop
10299   # eval without this substitution.
10300   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10301
10302   for p in `eval $output_verbose_link_cmd`; do
10303     case $p in
10304
10305     -L* | -R* | -l*)
10306        # Some compilers place space between "-{L,R}" and the path.
10307        # Remove the space.
10308        if test $p = "-L" \
10309           || test $p = "-R"; then
10310          prev=$p
10311          continue
10312        else
10313          prev=
10314        fi
10315
10316        if test "$pre_test_object_deps_done" = no; then
10317          case $p in
10318          -L* | -R*)
10319            # Internal compiler library paths should come after those
10320            # provided the user.  The postdeps already come after the
10321            # user supplied libs so there is no need to process them.
10322            if test -z "$compiler_lib_search_path_CXX"; then
10323              compiler_lib_search_path_CXX="${prev}${p}"
10324            else
10325              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10326            fi
10327            ;;
10328          # The "-l" case would never come before the object being
10329          # linked, so don't bother handling this case.
10330          esac
10331        else
10332          if test -z "$postdeps_CXX"; then
10333            postdeps_CXX="${prev}${p}"
10334          else
10335            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10336          fi
10337        fi
10338        ;;
10339
10340     *.$objext)
10341        # This assumes that the test object file only shows up
10342        # once in the compiler output.
10343        if test "$p" = "conftest.$objext"; then
10344          pre_test_object_deps_done=yes
10345          continue
10346        fi
10347
10348        if test "$pre_test_object_deps_done" = no; then
10349          if test -z "$predep_objects_CXX"; then
10350            predep_objects_CXX="$p"
10351          else
10352            predep_objects_CXX="$predep_objects_CXX $p"
10353          fi
10354        else
10355          if test -z "$postdep_objects_CXX"; then
10356            postdep_objects_CXX="$p"
10357          else
10358            postdep_objects_CXX="$postdep_objects_CXX $p"
10359          fi
10360        fi
10361        ;;
10362
10363     *) ;; # Ignore the rest.
10364
10365     esac
10366   done
10367
10368   # Clean up.
10369   rm -f a.out a.exe
10370 else
10371   echo "libtool.m4: error: problem compiling CXX test program"
10372 fi
10373
10374 $rm -f confest.$objext
10375
10376 case " $postdeps_CXX " in
10377 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10378 esac
10379
10380 lt_prog_compiler_wl_CXX=
10381 lt_prog_compiler_pic_CXX=
10382 lt_prog_compiler_static_CXX=
10383
10384 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10386
10387   # C++ specific cases for pic, static, wl, etc.
10388   if test "$GXX" = yes; then
10389     lt_prog_compiler_wl_CXX='-Wl,'
10390     lt_prog_compiler_static_CXX='-static'
10391
10392     case $host_os in
10393     aix*)
10394       # All AIX code is PIC.
10395       if test "$host_cpu" = ia64; then
10396         # AIX 5 now supports IA64 processor
10397         lt_prog_compiler_static_CXX='-Bstatic'
10398       fi
10399       ;;
10400     amigaos*)
10401       # FIXME: we need at least 68020 code to build shared libraries, but
10402       # adding the `-m68020' flag to GCC prevents building anything better,
10403       # like `-m68040'.
10404       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10405       ;;
10406     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10407       # PIC is the default for these OSes.
10408       ;;
10409     mingw* | os2* | pw32*)
10410       # This hack is so that the source file can tell whether it is being
10411       # built for inclusion in a dll (and should export symbols for example).
10412       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10413       ;;
10414     darwin* | rhapsody*)
10415       # PIC is the default on this platform
10416       # Common symbols not allowed in MH_DYLIB files
10417       lt_prog_compiler_pic_CXX='-fno-common'
10418       ;;
10419     *djgpp*)
10420       # DJGPP does not support shared libraries at all
10421       lt_prog_compiler_pic_CXX=
10422       ;;
10423     sysv4*MP*)
10424       if test -d /usr/nec; then
10425         lt_prog_compiler_pic_CXX=-Kconform_pic
10426       fi
10427       ;;
10428     hpux*)
10429       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10430       # not for PA HP-UX.
10431       case "$host_cpu" in
10432       hppa*64*|ia64*)
10433         ;;
10434       *)
10435         lt_prog_compiler_pic_CXX='-fPIC'
10436         ;;
10437       esac
10438       ;;
10439     *)
10440       lt_prog_compiler_pic_CXX='-fPIC'
10441       ;;
10442     esac
10443   else
10444     case $host_os in
10445       aix4* | aix5*)
10446         # All AIX code is PIC.
10447         if test "$host_cpu" = ia64; then
10448           # AIX 5 now supports IA64 processor
10449           lt_prog_compiler_static_CXX='-Bstatic'
10450         else
10451           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10452         fi
10453         ;;
10454       chorus*)
10455         case $cc_basename in
10456         cxch68)
10457           # Green Hills C++ Compiler
10458           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10459           ;;
10460         esac
10461         ;;
10462       dgux*)
10463         case $cc_basename in
10464           ec++)
10465             lt_prog_compiler_pic_CXX='-KPIC'
10466             ;;
10467           ghcx)
10468             # Green Hills C++ Compiler
10469             lt_prog_compiler_pic_CXX='-pic'
10470             ;;
10471           *)
10472             ;;
10473         esac
10474         ;;
10475       freebsd* | kfreebsd*-gnu)
10476         # FreeBSD uses GNU C++
10477         ;;
10478       hpux9* | hpux10* | hpux11*)
10479         case $cc_basename in
10480           CC)
10481             lt_prog_compiler_wl_CXX='-Wl,'
10482             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10483             if test "$host_cpu" != ia64; then
10484               lt_prog_compiler_pic_CXX='+Z'
10485             fi
10486             ;;
10487           aCC)
10488             lt_prog_compiler_wl_CXX='-Wl,'
10489             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10490             case "$host_cpu" in
10491             hppa*64*|ia64*)
10492               # +Z the default
10493               ;;
10494             *)
10495               lt_prog_compiler_pic_CXX='+Z'
10496               ;;
10497             esac
10498             ;;
10499           *)
10500             ;;
10501         esac
10502         ;;
10503       irix5* | irix6* | nonstopux*)
10504         case $cc_basename in
10505           CC)
10506             lt_prog_compiler_wl_CXX='-Wl,'
10507             lt_prog_compiler_static_CXX='-non_shared'
10508             # CC pic flag -KPIC is the default.
10509             ;;
10510           *)
10511             ;;
10512         esac
10513         ;;
10514       linux*)
10515         case $cc_basename in
10516           KCC)
10517             # KAI C++ Compiler
10518             lt_prog_compiler_wl_CXX='--backend -Wl,'
10519             lt_prog_compiler_pic_CXX='-fPIC'
10520             ;;
10521           icpc)
10522             # Intel C++
10523             lt_prog_compiler_wl_CXX='-Wl,'
10524             lt_prog_compiler_pic_CXX='-KPIC'
10525             lt_prog_compiler_static_CXX='-static'
10526             ;;
10527           cxx)
10528             # Compaq C++
10529             # Make sure the PIC flag is empty.  It appears that all Alpha
10530             # Linux and Compaq Tru64 Unix objects are PIC.
10531             lt_prog_compiler_pic_CXX=
10532             lt_prog_compiler_static_CXX='-non_shared'
10533             ;;
10534           *)
10535             ;;
10536         esac
10537         ;;
10538       lynxos*)
10539         ;;
10540       m88k*)
10541         ;;
10542       mvs*)
10543         case $cc_basename in
10544           cxx)
10545             lt_prog_compiler_pic_CXX='-W c,exportall'
10546             ;;
10547           *)
10548             ;;
10549         esac
10550         ;;
10551       netbsd*)
10552         ;;
10553       osf3* | osf4* | osf5*)
10554         case $cc_basename in
10555           KCC)
10556             lt_prog_compiler_wl_CXX='--backend -Wl,'
10557             ;;
10558           RCC)
10559             # Rational C++ 2.4.1
10560             lt_prog_compiler_pic_CXX='-pic'
10561             ;;
10562           cxx)
10563             # Digital/Compaq C++
10564             lt_prog_compiler_wl_CXX='-Wl,'
10565             # Make sure the PIC flag is empty.  It appears that all Alpha
10566             # Linux and Compaq Tru64 Unix objects are PIC.
10567             lt_prog_compiler_pic_CXX=
10568             lt_prog_compiler_static_CXX='-non_shared'
10569             ;;
10570           *)
10571             ;;
10572         esac
10573         ;;
10574       psos*)
10575         ;;
10576       sco*)
10577         case $cc_basename in
10578           CC)
10579             lt_prog_compiler_pic_CXX='-fPIC'
10580             ;;
10581           *)
10582             ;;
10583         esac
10584         ;;
10585       solaris*)
10586         case $cc_basename in
10587           CC)
10588             # Sun C++ 4.2, 5.x and Centerline C++
10589             lt_prog_compiler_pic_CXX='-KPIC'
10590             lt_prog_compiler_static_CXX='-Bstatic'
10591             lt_prog_compiler_wl_CXX='-Qoption ld '
10592             ;;
10593           gcx)
10594             # Green Hills C++ Compiler
10595             lt_prog_compiler_pic_CXX='-PIC'
10596             ;;
10597           *)
10598             ;;
10599         esac
10600         ;;
10601       sunos4*)
10602         case $cc_basename in
10603           CC)
10604             # Sun C++ 4.x
10605             lt_prog_compiler_pic_CXX='-pic'
10606             lt_prog_compiler_static_CXX='-Bstatic'
10607             ;;
10608           lcc)
10609             # Lucid
10610             lt_prog_compiler_pic_CXX='-pic'
10611             ;;
10612           *)
10613             ;;
10614         esac
10615         ;;
10616       tandem*)
10617         case $cc_basename in
10618           NCC)
10619             # NonStop-UX NCC 3.20
10620             lt_prog_compiler_pic_CXX='-KPIC'
10621             ;;
10622           *)
10623             ;;
10624         esac
10625         ;;
10626       unixware*)
10627         ;;
10628       vxworks*)
10629         ;;
10630       *)
10631         lt_prog_compiler_can_build_shared_CXX=no
10632         ;;
10633     esac
10634   fi
10635
10636 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10637 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10638
10639 #
10640 # Check to make sure the PIC flag actually works.
10641 #
10642 if test -n "$lt_prog_compiler_pic_CXX"; then
10643
10644 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10645 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10646 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10647   echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649   lt_prog_compiler_pic_works_CXX=no
10650   ac_outfile=conftest.$ac_objext
10651    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10652    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10653    # Insert the option either (1) after the last *FLAGS variable, or
10654    # (2) before a word containing "conftest.", or (3) at the end.
10655    # Note that $ac_compile itself does not contain backslashes and begins
10656    # with a dollar sign (not a hyphen), so the echo should work correctly.
10657    # The option is referenced via a variable to avoid confusing sed.
10658    lt_compile=`echo "$ac_compile" | $SED \
10659    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10661    -e 's:$: $lt_compiler_flag:'`
10662    (eval echo "\"\$as_me:10662: $lt_compile\"" >&5)
10663    (eval "$lt_compile" 2>conftest.err)
10664    ac_status=$?
10665    cat conftest.err >&5
10666    echo "$as_me:10666: \$? = $ac_status" >&5
10667    if (exit $ac_status) && test -s "$ac_outfile"; then
10668      # The compiler can only warn and ignore the option if not recognized
10669      # So say no if there are warnings
10670      if test ! -s conftest.err; then
10671        lt_prog_compiler_pic_works_CXX=yes
10672      fi
10673    fi
10674    $rm conftest*
10675
10676 fi
10677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10678 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10679
10680 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10681     case $lt_prog_compiler_pic_CXX in
10682      "" | " "*) ;;
10683      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10684      esac
10685 else
10686     lt_prog_compiler_pic_CXX=
10687      lt_prog_compiler_can_build_shared_CXX=no
10688 fi
10689
10690 fi
10691 case "$host_os" in
10692   # For platforms which do not support PIC, -DPIC is meaningless:
10693   *djgpp*)
10694     lt_prog_compiler_pic_CXX=
10695     ;;
10696   *)
10697     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10698     ;;
10699 esac
10700
10701 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10702 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10703 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10704   echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706   lt_cv_prog_compiler_c_o_CXX=no
10707    $rm -r conftest 2>/dev/null
10708    mkdir conftest
10709    cd conftest
10710    mkdir out
10711    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10712
10713    lt_compiler_flag="-o out/conftest2.$ac_objext"
10714    # Insert the option either (1) after the last *FLAGS variable, or
10715    # (2) before a word containing "conftest.", or (3) at the end.
10716    # Note that $ac_compile itself does not contain backslashes and begins
10717    # with a dollar sign (not a hyphen), so the echo should work correctly.
10718    lt_compile=`echo "$ac_compile" | $SED \
10719    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10721    -e 's:$: $lt_compiler_flag:'`
10722    (eval echo "\"\$as_me:10722: $lt_compile\"" >&5)
10723    (eval "$lt_compile" 2>out/conftest.err)
10724    ac_status=$?
10725    cat out/conftest.err >&5
10726    echo "$as_me:10726: \$? = $ac_status" >&5
10727    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10728    then
10729      # The compiler can only warn and ignore the option if not recognized
10730      # So say no if there are warnings
10731      if test ! -s out/conftest.err; then
10732        lt_cv_prog_compiler_c_o_CXX=yes
10733      fi
10734    fi
10735    chmod u+w .
10736    $rm conftest*
10737    # SGI C++ compiler will create directory out/ii_files/ for
10738    # template instantiation
10739    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10740    $rm out/* && rmdir out
10741    cd ..
10742    rmdir conftest
10743    $rm conftest*
10744
10745 fi
10746 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10747 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10748
10749
10750 hard_links="nottested"
10751 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10752   # do not overwrite the value of need_locks provided by the user
10753   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10754 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10755   hard_links=yes
10756   $rm conftest*
10757   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10758   touch conftest.a
10759   ln conftest.a conftest.b 2>&5 || hard_links=no
10760   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10761   echo "$as_me:$LINENO: result: $hard_links" >&5
10762 echo "${ECHO_T}$hard_links" >&6
10763   if test "$hard_links" = no; then
10764     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10765 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10766     need_locks=warn
10767   fi
10768 else
10769   need_locks=no
10770 fi
10771
10772 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10773 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10774
10775   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10776   case $host_os in
10777   aix4* | aix5*)
10778     # If we're using GNU nm, then we don't want the "-C" option.
10779     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10780     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10781       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10782     else
10783       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10784     fi
10785     ;;
10786   pw32*)
10787     export_symbols_cmds_CXX="$ltdll_cmds"
10788   ;;
10789   cygwin* | mingw*)
10790     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10791   ;;
10792   *)
10793     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10794   ;;
10795   esac
10796
10797 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10798 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10799 test "$ld_shlibs_CXX" = no && can_build_shared=no
10800
10801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10802 if test "$GCC" = yes; then
10803   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10804 fi
10805
10806 #
10807 # Do we need to explicitly link libc?
10808 #
10809 case "x$archive_cmds_need_lc_CXX" in
10810 x|xyes)
10811   # Assume -lc should be added
10812   archive_cmds_need_lc_CXX=yes
10813
10814   if test "$enable_shared" = yes && test "$GCC" = yes; then
10815     case $archive_cmds_CXX in
10816     *'~'*)
10817       # FIXME: we may have to deal with multi-command sequences.
10818       ;;
10819     '$CC '*)
10820       # Test whether the compiler implicitly links with -lc since on some
10821       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10822       # to ld, don't add -lc before -lgcc.
10823       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10824 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10825       $rm conftest*
10826       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10827
10828       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829   (eval $ac_compile) 2>&5
10830   ac_status=$?
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } 2>conftest.err; then
10833         soname=conftest
10834         lib=conftest
10835         libobjs=conftest.$ac_objext
10836         deplibs=
10837         wl=$lt_prog_compiler_wl_CXX
10838         compiler_flags=-v
10839         linker_flags=-v
10840         verstring=
10841         output_objdir=.
10842         libname=conftest
10843         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10844         allow_undefined_flag_CXX=
10845         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10846   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }
10850         then
10851           archive_cmds_need_lc_CXX=no
10852         else
10853           archive_cmds_need_lc_CXX=yes
10854         fi
10855         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10856       else
10857         cat conftest.err 1>&5
10858       fi
10859       $rm conftest*
10860       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10861 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10862       ;;
10863     esac
10864   fi
10865   ;;
10866 esac
10867
10868 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10869 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10870 library_names_spec=
10871 libname_spec='lib$name'
10872 soname_spec=
10873 shrext=".so"
10874 postinstall_cmds=
10875 postuninstall_cmds=
10876 finish_cmds=
10877 finish_eval=
10878 shlibpath_var=
10879 shlibpath_overrides_runpath=unknown
10880 version_type=none
10881 dynamic_linker="$host_os ld.so"
10882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10883 if test "$GCC" = yes; then
10884   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10885   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10886     # if the path contains ";" then we assume it to be the separator
10887     # otherwise default to the standard path separator (i.e. ":") - it is
10888     # assumed that no part of a normal pathname contains ";" but that should
10889     # okay in the real world where ";" in dirpaths is itself problematic.
10890     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10891   else
10892     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10893   fi
10894 else
10895   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10896 fi
10897 need_lib_prefix=unknown
10898 hardcode_into_libs=no
10899
10900 # when you set need_version to no, make sure it does not cause -set_version
10901 # flags to be left without arguments
10902 need_version=unknown
10903
10904 case $host_os in
10905 aix3*)
10906   version_type=linux
10907   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10908   shlibpath_var=LIBPATH
10909
10910   # AIX 3 has no versioning support, so we append a major version to the name.
10911   soname_spec='${libname}${release}${shared_ext}$major'
10912   ;;
10913
10914 aix4* | aix5*)
10915   version_type=linux
10916   need_lib_prefix=no
10917   need_version=no
10918   hardcode_into_libs=yes
10919   if test "$host_cpu" = ia64; then
10920     # AIX 5 supports IA64
10921     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10922     shlibpath_var=LD_LIBRARY_PATH
10923   else
10924     # With GCC up to 2.95.x, collect2 would create an import file
10925     # for dependence libraries.  The import file would start with
10926     # the line `#! .'.  This would cause the generated library to
10927     # depend on `.', always an invalid library.  This was fixed in
10928     # development snapshots of GCC prior to 3.0.
10929     case $host_os in
10930       aix4 | aix4.[01] | aix4.[01].*)
10931       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10932            echo ' yes '
10933            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10934         :
10935       else
10936         can_build_shared=no
10937       fi
10938       ;;
10939     esac
10940     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10941     # soname into executable. Probably we can add versioning support to
10942     # collect2, so additional links can be useful in future.
10943     if test "$aix_use_runtimelinking" = yes; then
10944       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10945       # instead of lib<name>.a to let people know that these are not
10946       # typical AIX shared libraries.
10947       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948     else
10949       # We preserve .a as extension for shared libraries through AIX4.2
10950       # and later when we are not doing run time linking.
10951       library_names_spec='${libname}${release}.a $libname.a'
10952       soname_spec='${libname}${release}${shared_ext}$major'
10953     fi
10954     shlibpath_var=LIBPATH
10955   fi
10956   ;;
10957
10958 amigaos*)
10959   library_names_spec='$libname.ixlibrary $libname.a'
10960   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10961   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'
10962   ;;
10963
10964 beos*)
10965   library_names_spec='${libname}${shared_ext}'
10966   dynamic_linker="$host_os ld.so"
10967   shlibpath_var=LIBRARY_PATH
10968   ;;
10969
10970 bsdi4*)
10971   version_type=linux
10972   need_version=no
10973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974   soname_spec='${libname}${release}${shared_ext}$major'
10975   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10978   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10979   # the default ld.so.conf also contains /usr/contrib/lib and
10980   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10981   # libtool to hard-code these into programs
10982   ;;
10983
10984 cygwin* | mingw* | pw32*)
10985   version_type=windows
10986   shrext=".dll"
10987   need_version=no
10988   need_lib_prefix=no
10989
10990   case $GCC,$host_os in
10991   yes,cygwin* | yes,mingw* | yes,pw32*)
10992     library_names_spec='$libname.dll.a'
10993     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10994     postinstall_cmds='base_file=`basename \${file}`~
10995       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10996       dldir=$destdir/`dirname \$dlpath`~
10997       test -d \$dldir || mkdir -p \$dldir~
10998       $install_prog $dir/$dlname \$dldir/$dlname'
10999     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11000       dlpath=$dir/\$dldll~
11001        $rm \$dlpath'
11002     shlibpath_overrides_runpath=yes
11003
11004     case $host_os in
11005     cygwin*)
11006       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11007       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11008       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11009       ;;
11010     mingw*)
11011       # MinGW DLLs use traditional 'lib' prefix
11012       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11013       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11014       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11015         # It is most probably a Windows format PATH printed by
11016         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11017         # path with ; separators, and with drive letters. We can handle the
11018         # drive letters (cygwin fileutils understands them), so leave them,
11019         # especially as we might pass files found there to a mingw objdump,
11020         # which wouldn't understand a cygwinified path. Ahh.
11021         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11022       else
11023         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11024       fi
11025       ;;
11026     pw32*)
11027       # pw32 DLLs use 'pw' prefix rather than 'lib'
11028       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11029       ;;
11030     esac
11031     ;;
11032
11033   linux*)
11034     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11035       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11036       supports_anon_versioning=no
11037       case `$LD -v 2>/dev/null` in
11038         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11039         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11040         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11041         *\ 2.11.*) ;; # other 2.11 versions
11042         *) supports_anon_versioning=yes ;;
11043       esac
11044       if test $supports_anon_versioning = yes; then
11045         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11046 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11047 $echo "local: *; };" >> $output_objdir/$libname.ver~
11048         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11049       else
11050         $archive_expsym_cmds="$archive_cmds"
11051       fi
11052     else
11053       ld_shlibs=no
11054     fi
11055     ;;
11056
11057   *)
11058     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11059     ;;
11060   esac
11061   dynamic_linker='Win32 ld.exe'
11062   # FIXME: first we should search . and the directory the executable is in
11063   shlibpath_var=PATH
11064   ;;
11065
11066 darwin* | rhapsody*)
11067   dynamic_linker="$host_os dyld"
11068   version_type=darwin
11069   need_lib_prefix=no
11070   need_version=no
11071   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11072   soname_spec='${libname}${release}${major}$shared_ext'
11073   shlibpath_overrides_runpath=yes
11074   shlibpath_var=DYLD_LIBRARY_PATH
11075   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11076   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11077   if test "$GCC" = yes; then
11078     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11079   else
11080     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11081   fi
11082   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11083   ;;
11084
11085 dgux*)
11086   version_type=linux
11087   need_lib_prefix=no
11088   need_version=no
11089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11090   soname_spec='${libname}${release}${shared_ext}$major'
11091   shlibpath_var=LD_LIBRARY_PATH
11092   ;;
11093
11094 freebsd1*)
11095   dynamic_linker=no
11096   ;;
11097
11098 kfreebsd*-gnu)
11099   version_type=linux
11100   need_lib_prefix=no
11101   need_version=no
11102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11103   soname_spec='${libname}${release}${shared_ext}$major'
11104   shlibpath_var=LD_LIBRARY_PATH
11105   shlibpath_overrides_runpath=no
11106   hardcode_into_libs=yes
11107   dynamic_linker='GNU ld.so'
11108   ;;
11109
11110 freebsd*)
11111   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11112   version_type=freebsd-$objformat
11113   case $version_type in
11114     freebsd-elf*)
11115       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11116       need_version=no
11117       need_lib_prefix=no
11118       ;;
11119     freebsd-*)
11120       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11121       need_version=yes
11122       ;;
11123   esac
11124   shlibpath_var=LD_LIBRARY_PATH
11125   case $host_os in
11126   freebsd2*)
11127     shlibpath_overrides_runpath=yes
11128     ;;
11129   freebsd3.01* | freebsdelf3.01*)
11130     shlibpath_overrides_runpath=yes
11131     hardcode_into_libs=yes
11132     ;;
11133   *) # from 3.2 on
11134     shlibpath_overrides_runpath=no
11135     hardcode_into_libs=yes
11136     ;;
11137   esac
11138   ;;
11139
11140 gnu*)
11141   version_type=linux
11142   need_lib_prefix=no
11143   need_version=no
11144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11145   soname_spec='${libname}${release}${shared_ext}$major'
11146   shlibpath_var=LD_LIBRARY_PATH
11147   hardcode_into_libs=yes
11148   ;;
11149
11150 hpux9* | hpux10* | hpux11*)
11151   # Give a soname corresponding to the major version so that dld.sl refuses to
11152   # link against other versions.
11153   version_type=sunos
11154   need_lib_prefix=no
11155   need_version=no
11156   case "$host_cpu" in
11157   ia64*)
11158     shrext='.so'
11159     hardcode_into_libs=yes
11160     dynamic_linker="$host_os dld.so"
11161     shlibpath_var=LD_LIBRARY_PATH
11162     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164     soname_spec='${libname}${release}${shared_ext}$major'
11165     if test "X$HPUX_IA64_MODE" = X32; then
11166       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11167     else
11168       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11169     fi
11170     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11171     ;;
11172    hppa*64*)
11173      shrext='.sl'
11174      hardcode_into_libs=yes
11175      dynamic_linker="$host_os dld.sl"
11176      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11177      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11178      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179      soname_spec='${libname}${release}${shared_ext}$major'
11180      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11181      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11182      ;;
11183    *)
11184     shrext='.sl'
11185     dynamic_linker="$host_os dld.sl"
11186     shlibpath_var=SHLIB_PATH
11187     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189     soname_spec='${libname}${release}${shared_ext}$major'
11190     ;;
11191   esac
11192   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11193   postinstall_cmds='chmod 555 $lib'
11194   ;;
11195
11196 irix5* | irix6* | nonstopux*)
11197   case $host_os in
11198     nonstopux*) version_type=nonstopux ;;
11199     *)
11200         if test "$lt_cv_prog_gnu_ld" = yes; then
11201                 version_type=linux
11202         else
11203                 version_type=irix
11204         fi ;;
11205   esac
11206   need_lib_prefix=no
11207   need_version=no
11208   soname_spec='${libname}${release}${shared_ext}$major'
11209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11210   case $host_os in
11211   irix5* | nonstopux*)
11212     libsuff= shlibsuff=
11213     ;;
11214   *)
11215     case $LD in # libtool.m4 will add one of these switches to LD
11216     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11217       libsuff= shlibsuff= libmagic=32-bit;;
11218     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11219       libsuff=32 shlibsuff=N32 libmagic=N32;;
11220     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11221       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11222     *) libsuff= shlibsuff= libmagic=never-match;;
11223     esac
11224     ;;
11225   esac
11226   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11227   shlibpath_overrides_runpath=no
11228   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11229   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11230   hardcode_into_libs=yes
11231   ;;
11232
11233 # No shared lib support for Linux oldld, aout, or coff.
11234 linux*oldld* | linux*aout* | linux*coff*)
11235   dynamic_linker=no
11236   ;;
11237
11238 # This must be Linux ELF.
11239 linux*)
11240   version_type=linux
11241   need_lib_prefix=no
11242   need_version=no
11243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244   soname_spec='${libname}${release}${shared_ext}$major'
11245   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11246   shlibpath_var=LD_LIBRARY_PATH
11247   shlibpath_overrides_runpath=no
11248   # This implies no fast_install, which is unacceptable.
11249   # Some rework will be needed to allow for fast_install
11250   # before this can be enabled.
11251   hardcode_into_libs=yes
11252
11253   # Append ld.so.conf contents to the search path
11254   if test -f /etc/ld.so.conf; then
11255     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11256     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11257   fi
11258
11259   case $host_cpu:$lt_cv_cc_64bit_output in
11260   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
11261     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
11262     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
11263     ;;
11264   esac
11265
11266   # We used to test for /lib/ld.so.1 and disable shared libraries on
11267   # powerpc, because MkLinux only supported shared libraries with the
11268   # GNU dynamic linker.  Since this was broken with cross compilers,
11269   # most powerpc-linux boxes support dynamic linking these days and
11270   # people can always --disable-shared, the test was removed, and we
11271   # assume the GNU/Linux dynamic linker is in use.
11272   dynamic_linker='GNU/Linux ld.so'
11273
11274   # Find out which ABI we are using (multilib Linux x86_64 hack).
11275   libsuff=
11276   case "$host_cpu" in
11277   x86_64*)
11278     echo '#line 11278 "configure"' > conftest.$ac_ext
11279     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11280   (eval $ac_compile) 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; then
11284       case `/usr/bin/file conftest.$ac_objext` in
11285       *64-bit*)
11286         libsuff=64
11287         ;;
11288       esac
11289     fi
11290     rm -rf conftest*
11291     ;;
11292   *)
11293     ;;
11294   esac
11295   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11296   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11297   ;;
11298
11299 knetbsd*-gnu)
11300   version_type=linux
11301   need_lib_prefix=no
11302   need_version=no
11303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11304   soname_spec='${libname}${release}${shared_ext}$major'
11305   shlibpath_var=LD_LIBRARY_PATH
11306   shlibpath_overrides_runpath=no
11307   hardcode_into_libs=yes
11308   dynamic_linker='GNU ld.so'
11309   ;;
11310
11311 netbsd*)
11312   version_type=sunos
11313   need_lib_prefix=no
11314   need_version=no
11315   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11317     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11318     dynamic_linker='NetBSD (a.out) ld.so'
11319   else
11320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11321     soname_spec='${libname}${release}${shared_ext}$major'
11322     dynamic_linker='NetBSD ld.elf_so'
11323   fi
11324   shlibpath_var=LD_LIBRARY_PATH
11325   shlibpath_overrides_runpath=yes
11326   hardcode_into_libs=yes
11327   ;;
11328
11329 newsos6)
11330   version_type=linux
11331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332   shlibpath_var=LD_LIBRARY_PATH
11333   shlibpath_overrides_runpath=yes
11334   ;;
11335
11336 nto-qnx*)
11337   version_type=linux
11338   need_lib_prefix=no
11339   need_version=no
11340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341   soname_spec='${libname}${release}${shared_ext}$major'
11342   shlibpath_var=LD_LIBRARY_PATH
11343   shlibpath_overrides_runpath=yes
11344   ;;
11345
11346 openbsd*)
11347   version_type=sunos
11348   need_lib_prefix=no
11349   need_version=yes
11350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11352   shlibpath_var=LD_LIBRARY_PATH
11353   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11354     case $host_os in
11355       openbsd2.[89] | openbsd2.[89].*)
11356         shlibpath_overrides_runpath=no
11357         ;;
11358       *)
11359         shlibpath_overrides_runpath=yes
11360         ;;
11361       esac
11362   else
11363     shlibpath_overrides_runpath=yes
11364   fi
11365   ;;
11366
11367 os2*)
11368   libname_spec='$name'
11369   shrext=".dll"
11370   need_lib_prefix=no
11371   library_names_spec='$libname${shared_ext} $libname.a'
11372   dynamic_linker='OS/2 ld.exe'
11373   shlibpath_var=LIBPATH
11374   ;;
11375
11376 osf3* | osf4* | osf5*)
11377   version_type=osf
11378   need_lib_prefix=no
11379   need_version=no
11380   soname_spec='${libname}${release}${shared_ext}$major'
11381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382   shlibpath_var=LD_LIBRARY_PATH
11383   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11384   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11385   ;;
11386
11387 sco3.2v5*)
11388   version_type=osf
11389   soname_spec='${libname}${release}${shared_ext}$major'
11390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11391   shlibpath_var=LD_LIBRARY_PATH
11392   ;;
11393
11394 solaris*)
11395   version_type=linux
11396   need_lib_prefix=no
11397   need_version=no
11398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399   soname_spec='${libname}${release}${shared_ext}$major'
11400   shlibpath_var=LD_LIBRARY_PATH
11401   shlibpath_overrides_runpath=yes
11402   hardcode_into_libs=yes
11403   # ldd complains unless libraries are executable
11404   postinstall_cmds='chmod +x $lib'
11405   ;;
11406
11407 sunos4*)
11408   version_type=sunos
11409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11410   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11411   shlibpath_var=LD_LIBRARY_PATH
11412   shlibpath_overrides_runpath=yes
11413   if test "$with_gnu_ld" = yes; then
11414     need_lib_prefix=no
11415   fi
11416   need_version=yes
11417   ;;
11418
11419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11420   version_type=linux
11421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422   soname_spec='${libname}${release}${shared_ext}$major'
11423   shlibpath_var=LD_LIBRARY_PATH
11424   case $host_vendor in
11425     sni)
11426       shlibpath_overrides_runpath=no
11427       need_lib_prefix=no
11428       export_dynamic_flag_spec='${wl}-Blargedynsym'
11429       runpath_var=LD_RUN_PATH
11430       ;;
11431     siemens)
11432       need_lib_prefix=no
11433       ;;
11434     motorola)
11435       need_lib_prefix=no
11436       need_version=no
11437       shlibpath_overrides_runpath=no
11438       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11439       ;;
11440   esac
11441   ;;
11442
11443 sysv4*MP*)
11444   if test -d /usr/nec ;then
11445     version_type=linux
11446     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11447     soname_spec='$libname${shared_ext}.$major'
11448     shlibpath_var=LD_LIBRARY_PATH
11449   fi
11450   ;;
11451
11452 uts4*)
11453   version_type=linux
11454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455   soname_spec='${libname}${release}${shared_ext}$major'
11456   shlibpath_var=LD_LIBRARY_PATH
11457   ;;
11458
11459 *)
11460   dynamic_linker=no
11461   ;;
11462 esac
11463 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11464 echo "${ECHO_T}$dynamic_linker" >&6
11465 test "$dynamic_linker" = no && can_build_shared=no
11466
11467 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11468 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11469 hardcode_action_CXX=
11470 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11471    test -n "$runpath_var CXX" || \
11472    test "X$hardcode_automatic_CXX"="Xyes" ; then
11473
11474   # We can hardcode non-existant directories.
11475   if test "$hardcode_direct_CXX" != no &&
11476      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11477      # have to relink, otherwise we might link with an installed library
11478      # when we should be linking with a yet-to-be-installed one
11479      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11480      test "$hardcode_minus_L_CXX" != no; then
11481     # Linking always hardcodes the temporary library directory.
11482     hardcode_action_CXX=relink
11483   else
11484     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11485     hardcode_action_CXX=immediate
11486   fi
11487 else
11488   # We cannot hardcode anything, or else we can only hardcode existing
11489   # directories.
11490   hardcode_action_CXX=unsupported
11491 fi
11492 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11493 echo "${ECHO_T}$hardcode_action_CXX" >&6
11494
11495 if test "$hardcode_action_CXX" = relink; then
11496   # Fast installation is not supported
11497   enable_fast_install=no
11498 elif test "$shlibpath_overrides_runpath" = yes ||
11499      test "$enable_shared" = no; then
11500   # Fast installation is not necessary
11501   enable_fast_install=needless
11502 fi
11503
11504 striplib=
11505 old_striplib=
11506 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11507 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11508 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11509   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11510   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11511   echo "$as_me:$LINENO: result: yes" >&5
11512 echo "${ECHO_T}yes" >&6
11513 else
11514 # FIXME - insert some real tests, host_os isn't really good enough
11515   case $host_os in
11516    darwin*)
11517        if test -n "$STRIP" ; then
11518          striplib="$STRIP -x"
11519          echo "$as_me:$LINENO: result: yes" >&5
11520 echo "${ECHO_T}yes" >&6
11521        else
11522   echo "$as_me:$LINENO: result: no" >&5
11523 echo "${ECHO_T}no" >&6
11524 fi
11525        ;;
11526    *)
11527   echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11529     ;;
11530   esac
11531 fi
11532
11533 if test "x$enable_dlopen" != xyes; then
11534   enable_dlopen=unknown
11535   enable_dlopen_self=unknown
11536   enable_dlopen_self_static=unknown
11537 else
11538   lt_cv_dlopen=no
11539   lt_cv_dlopen_libs=
11540
11541   case $host_os in
11542   beos*)
11543     lt_cv_dlopen="load_add_on"
11544     lt_cv_dlopen_libs=
11545     lt_cv_dlopen_self=yes
11546     ;;
11547
11548   mingw* | pw32*)
11549     lt_cv_dlopen="LoadLibrary"
11550     lt_cv_dlopen_libs=
11551    ;;
11552
11553   cygwin*)
11554     lt_cv_dlopen="dlopen"
11555     lt_cv_dlopen_libs=
11556    ;;
11557
11558   darwin*)
11559   # if libdl is installed we need to link against it
11560     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11561 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11563   echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565   ac_check_lib_save_LIBS=$LIBS
11566 LIBS="-ldl  $LIBS"
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h.  */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h.  */
11573
11574 /* Override any gcc2 internal prototype to avoid an error.  */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 /* We use char because int might match the return type of a gcc2
11579    builtin and then its argument prototype would still apply.  */
11580 char dlopen ();
11581 int
11582 main ()
11583 {
11584 dlopen ();
11585   ;
11586   return 0;
11587 }
11588 _ACEOF
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11591   (eval $ac_link) 2>conftest.er1
11592   ac_status=$?
11593   grep -v '^ *+' conftest.er1 >conftest.err
11594   rm -f conftest.er1
11595   cat conftest.err >&5
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -z "$ac_cxx_werror_flag"
11599                          || test ! -s conftest.err'
11600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601   (eval $ac_try) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); }; } &&
11605          { ac_try='test -s conftest$ac_exeext'
11606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607   (eval $ac_try) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); }; }; then
11611   ac_cv_lib_dl_dlopen=yes
11612 else
11613   echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ac_cv_lib_dl_dlopen=no
11617 fi
11618 rm -f conftest.err conftest.$ac_objext \
11619       conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11621 fi
11622 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11623 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11624 if test $ac_cv_lib_dl_dlopen = yes; then
11625   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11626 else
11627
11628     lt_cv_dlopen="dyld"
11629     lt_cv_dlopen_libs=
11630     lt_cv_dlopen_self=yes
11631
11632 fi
11633
11634    ;;
11635
11636   *)
11637     echo "$as_me:$LINENO: checking for shl_load" >&5
11638 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11639 if test "${ac_cv_func_shl_load+set}" = set; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11650 #define shl_load innocuous_shl_load
11651
11652 /* System header to define __stub macros and hopefully few prototypes,
11653     which can conflict with char shl_load (); below.
11654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11655     <limits.h> exists even on freestanding compilers.  */
11656
11657 #ifdef __STDC__
11658 # include <limits.h>
11659 #else
11660 # include <assert.h>
11661 #endif
11662
11663 #undef shl_load
11664
11665 /* Override any gcc2 internal prototype to avoid an error.  */
11666 #ifdef __cplusplus
11667 extern "C"
11668 {
11669 #endif
11670 /* We use char because int might match the return type of a gcc2
11671    builtin and then its argument prototype would still apply.  */
11672 char shl_load ();
11673 /* The GNU C library defines this for functions which it implements
11674     to always fail with ENOSYS.  Some functions are actually named
11675     something starting with __ and the normal name is an alias.  */
11676 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11677 choke me
11678 #else
11679 char (*f) () = shl_load;
11680 #endif
11681 #ifdef __cplusplus
11682 }
11683 #endif
11684
11685 int
11686 main ()
11687 {
11688 return f != shl_load;
11689   ;
11690   return 0;
11691 }
11692 _ACEOF
11693 rm -f conftest.$ac_objext conftest$ac_exeext
11694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11695   (eval $ac_link) 2>conftest.er1
11696   ac_status=$?
11697   grep -v '^ *+' conftest.er1 >conftest.err
11698   rm -f conftest.er1
11699   cat conftest.err >&5
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } &&
11702          { ac_try='test -z "$ac_cxx_werror_flag"
11703                          || test ! -s conftest.err'
11704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705   (eval $ac_try) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }; } &&
11709          { ac_try='test -s conftest$ac_exeext'
11710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711   (eval $ac_try) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; }; then
11715   ac_cv_func_shl_load=yes
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 ac_cv_func_shl_load=no
11721 fi
11722 rm -f conftest.err conftest.$ac_objext \
11723       conftest$ac_exeext conftest.$ac_ext
11724 fi
11725 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11726 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11727 if test $ac_cv_func_shl_load = yes; then
11728   lt_cv_dlopen="shl_load"
11729 else
11730   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11731 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11732 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735   ac_check_lib_save_LIBS=$LIBS
11736 LIBS="-ldld  $LIBS"
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h.  */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h.  */
11743
11744 /* Override any gcc2 internal prototype to avoid an error.  */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 /* We use char because int might match the return type of a gcc2
11749    builtin and then its argument prototype would still apply.  */
11750 char shl_load ();
11751 int
11752 main ()
11753 {
11754 shl_load ();
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761   (eval $ac_link) 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } &&
11768          { ac_try='test -z "$ac_cxx_werror_flag"
11769                          || test ! -s conftest.err'
11770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771   (eval $ac_try) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; } &&
11775          { ac_try='test -s conftest$ac_exeext'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   ac_cv_lib_dld_shl_load=yes
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 ac_cv_lib_dld_shl_load=no
11787 fi
11788 rm -f conftest.err conftest.$ac_objext \
11789       conftest$ac_exeext conftest.$ac_ext
11790 LIBS=$ac_check_lib_save_LIBS
11791 fi
11792 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11793 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11794 if test $ac_cv_lib_dld_shl_load = yes; then
11795   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11796 else
11797   echo "$as_me:$LINENO: checking for dlopen" >&5
11798 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11799 if test "${ac_cv_func_dlopen+set}" = set; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11810 #define dlopen innocuous_dlopen
11811
11812 /* System header to define __stub macros and hopefully few prototypes,
11813     which can conflict with char dlopen (); below.
11814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11815     <limits.h> exists even on freestanding compilers.  */
11816
11817 #ifdef __STDC__
11818 # include <limits.h>
11819 #else
11820 # include <assert.h>
11821 #endif
11822
11823 #undef dlopen
11824
11825 /* Override any gcc2 internal prototype to avoid an error.  */
11826 #ifdef __cplusplus
11827 extern "C"
11828 {
11829 #endif
11830 /* We use char because int might match the return type of a gcc2
11831    builtin and then its argument prototype would still apply.  */
11832 char dlopen ();
11833 /* The GNU C library defines this for functions which it implements
11834     to always fail with ENOSYS.  Some functions are actually named
11835     something starting with __ and the normal name is an alias.  */
11836 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11837 choke me
11838 #else
11839 char (*f) () = dlopen;
11840 #endif
11841 #ifdef __cplusplus
11842 }
11843 #endif
11844
11845 int
11846 main ()
11847 {
11848 return f != dlopen;
11849   ;
11850   return 0;
11851 }
11852 _ACEOF
11853 rm -f conftest.$ac_objext conftest$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855   (eval $ac_link) 2>conftest.er1
11856   ac_status=$?
11857   grep -v '^ *+' conftest.er1 >conftest.err
11858   rm -f conftest.er1
11859   cat conftest.err >&5
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } &&
11862          { ac_try='test -z "$ac_cxx_werror_flag"
11863                          || test ! -s conftest.err'
11864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865   (eval $ac_try) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; } &&
11869          { ac_try='test -s conftest$ac_exeext'
11870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871   (eval $ac_try) 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; }; then
11875   ac_cv_func_dlopen=yes
11876 else
11877   echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880 ac_cv_func_dlopen=no
11881 fi
11882 rm -f conftest.err conftest.$ac_objext \
11883       conftest$ac_exeext conftest.$ac_ext
11884 fi
11885 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11886 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11887 if test $ac_cv_func_dlopen = yes; then
11888   lt_cv_dlopen="dlopen"
11889 else
11890   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11891 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11892 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11893   echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895   ac_check_lib_save_LIBS=$LIBS
11896 LIBS="-ldl  $LIBS"
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903
11904 /* Override any gcc2 internal prototype to avoid an error.  */
11905 #ifdef __cplusplus
11906 extern "C"
11907 #endif
11908 /* We use char because int might match the return type of a gcc2
11909    builtin and then its argument prototype would still apply.  */
11910 char dlopen ();
11911 int
11912 main ()
11913 {
11914 dlopen ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921   (eval $ac_link) 2>conftest.er1
11922   ac_status=$?
11923   grep -v '^ *+' conftest.er1 >conftest.err
11924   rm -f conftest.er1
11925   cat conftest.err >&5
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } &&
11928          { ac_try='test -z "$ac_cxx_werror_flag"
11929                          || test ! -s conftest.err'
11930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931   (eval $ac_try) 2>&5
11932   ac_status=$?
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); }; } &&
11935          { ac_try='test -s conftest$ac_exeext'
11936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937   (eval $ac_try) 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; }; then
11941   ac_cv_lib_dl_dlopen=yes
11942 else
11943   echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11945
11946 ac_cv_lib_dl_dlopen=no
11947 fi
11948 rm -f conftest.err conftest.$ac_objext \
11949       conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11951 fi
11952 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11953 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11954 if test $ac_cv_lib_dl_dlopen = yes; then
11955   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11956 else
11957   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11958 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11959 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   ac_check_lib_save_LIBS=$LIBS
11963 LIBS="-lsvld  $LIBS"
11964 cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970
11971 /* Override any gcc2 internal prototype to avoid an error.  */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 /* We use char because int might match the return type of a gcc2
11976    builtin and then its argument prototype would still apply.  */
11977 char dlopen ();
11978 int
11979 main ()
11980 {
11981 dlopen ();
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988   (eval $ac_link) 2>conftest.er1
11989   ac_status=$?
11990   grep -v '^ *+' conftest.er1 >conftest.err
11991   rm -f conftest.er1
11992   cat conftest.err >&5
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); } &&
11995          { ac_try='test -z "$ac_cxx_werror_flag"
11996                          || test ! -s conftest.err'
11997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998   (eval $ac_try) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; } &&
12002          { ac_try='test -s conftest$ac_exeext'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; }; then
12008   ac_cv_lib_svld_dlopen=yes
12009 else
12010   echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 ac_cv_lib_svld_dlopen=no
12014 fi
12015 rm -f conftest.err conftest.$ac_objext \
12016       conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12018 fi
12019 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12020 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12021 if test $ac_cv_lib_svld_dlopen = yes; then
12022   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12023 else
12024   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12025 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12026 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   ac_check_lib_save_LIBS=$LIBS
12030 LIBS="-ldld  $LIBS"
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h.  */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h.  */
12037
12038 /* Override any gcc2 internal prototype to avoid an error.  */
12039 #ifdef __cplusplus
12040 extern "C"
12041 #endif
12042 /* We use char because int might match the return type of a gcc2
12043    builtin and then its argument prototype would still apply.  */
12044 char dld_link ();
12045 int
12046 main ()
12047 {
12048 dld_link ();
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12055   (eval $ac_link) 2>conftest.er1
12056   ac_status=$?
12057   grep -v '^ *+' conftest.er1 >conftest.err
12058   rm -f conftest.er1
12059   cat conftest.err >&5
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); } &&
12062          { ac_try='test -z "$ac_cxx_werror_flag"
12063                          || test ! -s conftest.err'
12064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065   (eval $ac_try) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); }; } &&
12069          { ac_try='test -s conftest$ac_exeext'
12070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071   (eval $ac_try) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; }; then
12075   ac_cv_lib_dld_dld_link=yes
12076 else
12077   echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 ac_cv_lib_dld_dld_link=no
12081 fi
12082 rm -f conftest.err conftest.$ac_objext \
12083       conftest$ac_exeext conftest.$ac_ext
12084 LIBS=$ac_check_lib_save_LIBS
12085 fi
12086 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12087 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12088 if test $ac_cv_lib_dld_dld_link = yes; then
12089   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12090 fi
12091
12092
12093 fi
12094
12095
12096 fi
12097
12098
12099 fi
12100
12101
12102 fi
12103
12104
12105 fi
12106
12107     ;;
12108   esac
12109
12110   if test "x$lt_cv_dlopen" != xno; then
12111     enable_dlopen=yes
12112   else
12113     enable_dlopen=no
12114   fi
12115
12116   case $lt_cv_dlopen in
12117   dlopen)
12118     save_CPPFLAGS="$CPPFLAGS"
12119     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12120
12121     save_LDFLAGS="$LDFLAGS"
12122     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12123
12124     save_LIBS="$LIBS"
12125     LIBS="$lt_cv_dlopen_libs $LIBS"
12126
12127     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12128 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12129 if test "${lt_cv_dlopen_self+set}" = set; then
12130   echo $ECHO_N "(cached) $ECHO_C" >&6
12131 else
12132           if test "$cross_compiling" = yes; then :
12133   lt_cv_dlopen_self=cross
12134 else
12135   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12136   lt_status=$lt_dlunknown
12137   cat > conftest.$ac_ext <<EOF
12138 #line 12138 "configure"
12139 #include "confdefs.h"
12140
12141 #if HAVE_DLFCN_H
12142 #include <dlfcn.h>
12143 #endif
12144
12145 #include <stdio.h>
12146
12147 #ifdef RTLD_GLOBAL
12148 #  define LT_DLGLOBAL           RTLD_GLOBAL
12149 #else
12150 #  ifdef DL_GLOBAL
12151 #    define LT_DLGLOBAL         DL_GLOBAL
12152 #  else
12153 #    define LT_DLGLOBAL         0
12154 #  endif
12155 #endif
12156
12157 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12158    find out it does not work in some platform. */
12159 #ifndef LT_DLLAZY_OR_NOW
12160 #  ifdef RTLD_LAZY
12161 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12162 #  else
12163 #    ifdef DL_LAZY
12164 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12165 #    else
12166 #      ifdef RTLD_NOW
12167 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12168 #      else
12169 #        ifdef DL_NOW
12170 #          define LT_DLLAZY_OR_NOW      DL_NOW
12171 #        else
12172 #          define LT_DLLAZY_OR_NOW      0
12173 #        endif
12174 #      endif
12175 #    endif
12176 #  endif
12177 #endif
12178
12179 #ifdef __cplusplus
12180 extern "C" void exit (int);
12181 #endif
12182
12183 void fnord() { int i=42;}
12184 int main ()
12185 {
12186   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12187   int status = $lt_dlunknown;
12188
12189   if (self)
12190     {
12191       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12192       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12193       /* dlclose (self); */
12194     }
12195
12196     exit (status);
12197 }
12198 EOF
12199   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12200   (eval $ac_link) 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12204     (./conftest; exit; ) 2>/dev/null
12205     lt_status=$?
12206     case x$lt_status in
12207       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12208       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12209       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12210     esac
12211   else :
12212     # compilation failed
12213     lt_cv_dlopen_self=no
12214   fi
12215 fi
12216 rm -fr conftest*
12217
12218
12219 fi
12220 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12221 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12222
12223     if test "x$lt_cv_dlopen_self" = xyes; then
12224       LDFLAGS="$LDFLAGS $link_static_flag"
12225       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12226 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12227 if test "${lt_cv_dlopen_self_static+set}" = set; then
12228   echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230           if test "$cross_compiling" = yes; then :
12231   lt_cv_dlopen_self_static=cross
12232 else
12233   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12234   lt_status=$lt_dlunknown
12235   cat > conftest.$ac_ext <<EOF
12236 #line 12236 "configure"
12237 #include "confdefs.h"
12238
12239 #if HAVE_DLFCN_H
12240 #include <dlfcn.h>
12241 #endif
12242
12243 #include <stdio.h>
12244
12245 #ifdef RTLD_GLOBAL
12246 #  define LT_DLGLOBAL           RTLD_GLOBAL
12247 #else
12248 #  ifdef DL_GLOBAL
12249 #    define LT_DLGLOBAL         DL_GLOBAL
12250 #  else
12251 #    define LT_DLGLOBAL         0
12252 #  endif
12253 #endif
12254
12255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12256    find out it does not work in some platform. */
12257 #ifndef LT_DLLAZY_OR_NOW
12258 #  ifdef RTLD_LAZY
12259 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12260 #  else
12261 #    ifdef DL_LAZY
12262 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12263 #    else
12264 #      ifdef RTLD_NOW
12265 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12266 #      else
12267 #        ifdef DL_NOW
12268 #          define LT_DLLAZY_OR_NOW      DL_NOW
12269 #        else
12270 #          define LT_DLLAZY_OR_NOW      0
12271 #        endif
12272 #      endif
12273 #    endif
12274 #  endif
12275 #endif
12276
12277 #ifdef __cplusplus
12278 extern "C" void exit (int);
12279 #endif
12280
12281 void fnord() { int i=42;}
12282 int main ()
12283 {
12284   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12285   int status = $lt_dlunknown;
12286
12287   if (self)
12288     {
12289       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12290       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12291       /* dlclose (self); */
12292     }
12293
12294     exit (status);
12295 }
12296 EOF
12297   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298   (eval $ac_link) 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12302     (./conftest; exit; ) 2>/dev/null
12303     lt_status=$?
12304     case x$lt_status in
12305       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12306       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12307       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12308     esac
12309   else :
12310     # compilation failed
12311     lt_cv_dlopen_self_static=no
12312   fi
12313 fi
12314 rm -fr conftest*
12315
12316
12317 fi
12318 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12319 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12320     fi
12321
12322     CPPFLAGS="$save_CPPFLAGS"
12323     LDFLAGS="$save_LDFLAGS"
12324     LIBS="$save_LIBS"
12325     ;;
12326   esac
12327
12328   case $lt_cv_dlopen_self in
12329   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12330   *) enable_dlopen_self=unknown ;;
12331   esac
12332
12333   case $lt_cv_dlopen_self_static in
12334   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12335   *) enable_dlopen_self_static=unknown ;;
12336   esac
12337 fi
12338
12339
12340 # The else clause should only fire when bootstrapping the
12341 # libtool distribution, otherwise you forgot to ship ltmain.sh
12342 # with your package, and you will get complaints that there are
12343 # no rules to generate ltmain.sh.
12344 if test -f "$ltmain"; then
12345   # See if we are running on zsh, and set the options which allow our commands through
12346   # without removal of \ escapes.
12347   if test -n "${ZSH_VERSION+set}" ; then
12348     setopt NO_GLOB_SUBST
12349   fi
12350   # Now quote all the things that may contain metacharacters while being
12351   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12352   # variables and quote the copies for generation of the libtool script.
12353   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12354     SED SHELL STRIP \
12355     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12356     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12357     deplibs_check_method reload_flag reload_cmds need_locks \
12358     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12359     lt_cv_sys_global_symbol_to_c_name_address \
12360     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12361     old_postinstall_cmds old_postuninstall_cmds \
12362     compiler_CXX \
12363     CC_CXX \
12364     LD_CXX \
12365     lt_prog_compiler_wl_CXX \
12366     lt_prog_compiler_pic_CXX \
12367     lt_prog_compiler_static_CXX \
12368     lt_prog_compiler_no_builtin_flag_CXX \
12369     export_dynamic_flag_spec_CXX \
12370     thread_safe_flag_spec_CXX \
12371     whole_archive_flag_spec_CXX \
12372     enable_shared_with_static_runtimes_CXX \
12373     old_archive_cmds_CXX \
12374     old_archive_from_new_cmds_CXX \
12375     predep_objects_CXX \
12376     postdep_objects_CXX \
12377     predeps_CXX \
12378     postdeps_CXX \
12379     compiler_lib_search_path_CXX \
12380     archive_cmds_CXX \
12381     archive_expsym_cmds_CXX \
12382     postinstall_cmds_CXX \
12383     postuninstall_cmds_CXX \
12384     old_archive_from_expsyms_cmds_CXX \
12385     allow_undefined_flag_CXX \
12386     no_undefined_flag_CXX \
12387     export_symbols_cmds_CXX \
12388     hardcode_libdir_flag_spec_CXX \
12389     hardcode_libdir_flag_spec_ld_CXX \
12390     hardcode_libdir_separator_CXX \
12391     hardcode_automatic_CXX \
12392     module_cmds_CXX \
12393     module_expsym_cmds_CXX \
12394     lt_cv_prog_compiler_c_o_CXX \
12395     exclude_expsyms_CXX \
12396     include_expsyms_CXX; do
12397
12398     case $var in
12399     old_archive_cmds_CXX | \
12400     old_archive_from_new_cmds_CXX | \
12401     archive_cmds_CXX | \
12402     archive_expsym_cmds_CXX | \
12403     module_cmds_CXX | \
12404     module_expsym_cmds_CXX | \
12405     old_archive_from_expsyms_cmds_CXX | \
12406     export_symbols_cmds_CXX | \
12407     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12408     postinstall_cmds | postuninstall_cmds | \
12409     old_postinstall_cmds | old_postuninstall_cmds | \
12410     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12411       # Double-quote double-evaled strings.
12412       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12413       ;;
12414     *)
12415       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12416       ;;
12417     esac
12418   done
12419
12420   case $lt_echo in
12421   *'\$0 --fallback-echo"')
12422     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12423     ;;
12424   esac
12425
12426 cfgfile="$ofile"
12427
12428   cat <<__EOF__ >> "$cfgfile"
12429 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12430
12431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12432
12433 # Shell to use when invoking shell scripts.
12434 SHELL=$lt_SHELL
12435
12436 # Whether or not to build shared libraries.
12437 build_libtool_libs=$enable_shared
12438
12439 # Whether or not to build static libraries.
12440 build_old_libs=$enable_static
12441
12442 # Whether or not to add -lc for building shared libraries.
12443 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12444
12445 # Whether or not to disallow shared libs when runtime libs are static
12446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12447
12448 # Whether or not to optimize for fast installation.
12449 fast_install=$enable_fast_install
12450
12451 # The host system.
12452 host_alias=$host_alias
12453 host=$host
12454
12455 # An echo program that does not interpret backslashes.
12456 echo=$lt_echo
12457
12458 # The archiver.
12459 AR=$lt_AR
12460 AR_FLAGS=$lt_AR_FLAGS
12461
12462 # A C compiler.
12463 LTCC=$lt_LTCC
12464
12465 # A language-specific compiler.
12466 CC=$lt_compiler_CXX
12467
12468 # Is the compiler the GNU C compiler?
12469 with_gcc=$GCC_CXX
12470
12471 # An ERE matcher.
12472 EGREP=$lt_EGREP
12473
12474 # The linker used to build libraries.
12475 LD=$lt_LD_CXX
12476
12477 # Whether we need hard or soft links.
12478 LN_S=$lt_LN_S
12479
12480 # A BSD-compatible nm program.
12481 NM=$lt_NM
12482
12483 # A symbol stripping program
12484 STRIP=$lt_STRIP
12485
12486 # Used to examine libraries when file_magic_cmd begins "file"
12487 MAGIC_CMD=$MAGIC_CMD
12488
12489 # Used on cygwin: DLL creation program.
12490 DLLTOOL="$DLLTOOL"
12491
12492 # Used on cygwin: object dumper.
12493 OBJDUMP="$OBJDUMP"
12494
12495 # Used on cygwin: assembler.
12496 AS="$AS"
12497
12498 # The name of the directory that contains temporary libtool files.
12499 objdir=$objdir
12500
12501 # How to create reloadable object files.
12502 reload_flag=$lt_reload_flag
12503 reload_cmds=$lt_reload_cmds
12504
12505 # How to pass a linker flag through the compiler.
12506 wl=$lt_lt_prog_compiler_wl_CXX
12507
12508 # Object file suffix (normally "o").
12509 objext="$ac_objext"
12510
12511 # Old archive suffix (normally "a").
12512 libext="$libext"
12513
12514 # Shared library suffix (normally ".so").
12515 shrext='$shrext'
12516
12517 # Executable file suffix (normally "").
12518 exeext="$exeext"
12519
12520 # Additional compiler flags for building library objects.
12521 pic_flag=$lt_lt_prog_compiler_pic_CXX
12522 pic_mode=$pic_mode
12523
12524 # What is the maximum length of a command?
12525 max_cmd_len=$lt_cv_sys_max_cmd_len
12526
12527 # Does compiler simultaneously support -c and -o options?
12528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12529
12530 # Must we lock files when doing compilation ?
12531 need_locks=$lt_need_locks
12532
12533 # Do we need the lib prefix for modules?
12534 need_lib_prefix=$need_lib_prefix
12535
12536 # Do we need a version for libraries?
12537 need_version=$need_version
12538
12539 # Whether dlopen is supported.
12540 dlopen_support=$enable_dlopen
12541
12542 # Whether dlopen of programs is supported.
12543 dlopen_self=$enable_dlopen_self
12544
12545 # Whether dlopen of statically linked programs is supported.
12546 dlopen_self_static=$enable_dlopen_self_static
12547
12548 # Compiler flag to prevent dynamic linking.
12549 link_static_flag=$lt_lt_prog_compiler_static_CXX
12550
12551 # Compiler flag to turn off builtin functions.
12552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12553
12554 # Compiler flag to allow reflexive dlopens.
12555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12556
12557 # Compiler flag to generate shared objects directly from archives.
12558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12559
12560 # Compiler flag to generate thread-safe objects.
12561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12562
12563 # Library versioning type.
12564 version_type=$version_type
12565
12566 # Format of library name prefix.
12567 libname_spec=$lt_libname_spec
12568
12569 # List of archive names.  First name is the real one, the rest are links.
12570 # The last name is the one that the linker finds with -lNAME.
12571 library_names_spec=$lt_library_names_spec
12572
12573 # The coded name of the library, if different from the real name.
12574 soname_spec=$lt_soname_spec
12575
12576 # Commands used to build and install an old-style archive.
12577 RANLIB=$lt_RANLIB
12578 old_archive_cmds=$lt_old_archive_cmds_CXX
12579 old_postinstall_cmds=$lt_old_postinstall_cmds
12580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12581
12582 # Create an old-style archive from a shared archive.
12583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12584
12585 # Create a temporary old-style archive to link instead of a shared archive.
12586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12587
12588 # Commands used to build and install a shared archive.
12589 archive_cmds=$lt_archive_cmds_CXX
12590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12591 postinstall_cmds=$lt_postinstall_cmds
12592 postuninstall_cmds=$lt_postuninstall_cmds
12593
12594 # Commands used to build a loadable module (assumed same as above if empty)
12595 module_cmds=$lt_module_cmds_CXX
12596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12597
12598 # Commands to strip libraries.
12599 old_striplib=$lt_old_striplib
12600 striplib=$lt_striplib
12601
12602 # Dependencies to place before the objects being linked to create a
12603 # shared library.
12604 predep_objects=$lt_predep_objects_CXX
12605
12606 # Dependencies to place after the objects being linked to create a
12607 # shared library.
12608 postdep_objects=$lt_postdep_objects_CXX
12609
12610 # Dependencies to place before the objects being linked to create a
12611 # shared library.
12612 predeps=$lt_predeps_CXX
12613
12614 # Dependencies to place after the objects being linked to create a
12615 # shared library.
12616 postdeps=$lt_postdeps_CXX
12617
12618 # The library search path used internally by the compiler when linking
12619 # a shared library.
12620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12621
12622 # Method to check whether dependent libraries are shared objects.
12623 deplibs_check_method=$lt_deplibs_check_method
12624
12625 # Command to use when deplibs_check_method == file_magic.
12626 file_magic_cmd=$lt_file_magic_cmd
12627
12628 # Flag that allows shared libraries with undefined symbols to be built.
12629 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12630
12631 # Flag that forces no undefined symbols.
12632 no_undefined_flag=$lt_no_undefined_flag_CXX
12633
12634 # Commands used to finish a libtool library installation in a directory.
12635 finish_cmds=$lt_finish_cmds
12636
12637 # Same as above, but a single script fragment to be evaled but not shown.
12638 finish_eval=$lt_finish_eval
12639
12640 # Take the output of nm and produce a listing of raw symbols and C names.
12641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12642
12643 # Transform the output of nm in a proper C declaration
12644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12645
12646 # Transform the output of nm in a C name address pair
12647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12648
12649 # This is the shared library runtime path variable.
12650 runpath_var=$runpath_var
12651
12652 # This is the shared library path variable.
12653 shlibpath_var=$shlibpath_var
12654
12655 # Is shlibpath searched before the hard-coded library search path?
12656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12657
12658 # How to hardcode a shared library path into an executable.
12659 hardcode_action=$hardcode_action_CXX
12660
12661 # Whether we should hardcode library paths into libraries.
12662 hardcode_into_libs=$hardcode_into_libs
12663
12664 # Flag to hardcode \$libdir into a binary during linking.
12665 # This must work even if \$libdir does not exist.
12666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12667
12668 # If ld is used when linking, flag to hardcode \$libdir into
12669 # a binary during linking. This must work even if \$libdir does
12670 # not exist.
12671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12672
12673 # Whether we need a single -rpath flag with a separated argument.
12674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12675
12676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12677 # resulting binary.
12678 hardcode_direct=$hardcode_direct_CXX
12679
12680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12681 # resulting binary.
12682 hardcode_minus_L=$hardcode_minus_L_CXX
12683
12684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12685 # the resulting binary.
12686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12687
12688 # Set to yes if building a shared library automatically hardcodes DIR into the library
12689 # and all subsequent libraries and executables linked against it.
12690 hardcode_automatic=$hardcode_automatic_CXX
12691
12692 # Variables whose values should be saved in libtool wrapper scripts and
12693 # restored at relink time.
12694 variables_saved_for_relink="$variables_saved_for_relink"
12695
12696 # Whether libtool must link a program against all its dependency libraries.
12697 link_all_deplibs=$link_all_deplibs_CXX
12698
12699 # Compile-time system search path for libraries
12700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12701
12702 # Run-time system search path for libraries
12703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12704
12705 # Fix the shell variable \$srcfile for the compiler.
12706 fix_srcfile_path="$fix_srcfile_path_CXX"
12707
12708 # Set to yes if exported symbols are required.
12709 always_export_symbols=$always_export_symbols_CXX
12710
12711 # The commands to list exported symbols.
12712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12713
12714 # The commands to extract the exported symbol list from a shared archive.
12715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12716
12717 # Symbols that should not be listed in the preloaded symbols.
12718 exclude_expsyms=$lt_exclude_expsyms_CXX
12719
12720 # Symbols that must always be exported.
12721 include_expsyms=$lt_include_expsyms_CXX
12722
12723 # ### END LIBTOOL TAG CONFIG: $tagname
12724
12725 __EOF__
12726
12727
12728 else
12729   # If there is no Makefile yet, we rely on a make rule to execute
12730   # `config.status --recheck' to rerun these tests and create the
12731   # libtool script then.
12732   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12733   if test -f "$ltmain_in"; then
12734     test -f Makefile && make "$ltmain"
12735   fi
12736 fi
12737
12738
12739 ac_ext=c
12740 ac_cpp='$CPP $CPPFLAGS'
12741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12744
12745 CC=$lt_save_CC
12746 LDCXX=$LD
12747 LD=$lt_save_LD
12748 GCC=$lt_save_GCC
12749 with_gnu_ldcxx=$with_gnu_ld
12750 with_gnu_ld=$lt_save_with_gnu_ld
12751 lt_cv_path_LDCXX=$lt_cv_path_LD
12752 lt_cv_path_LD=$lt_save_path_LD
12753 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12754 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12755
12756         else
12757           tagname=""
12758         fi
12759         ;;
12760
12761       F77)
12762         if test -n "$F77" && test "X$F77" != "Xno"; then
12763
12764 ac_ext=f
12765 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12766 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12768
12769
12770 archive_cmds_need_lc_F77=no
12771 allow_undefined_flag_F77=
12772 always_export_symbols_F77=no
12773 archive_expsym_cmds_F77=
12774 export_dynamic_flag_spec_F77=
12775 hardcode_direct_F77=no
12776 hardcode_libdir_flag_spec_F77=
12777 hardcode_libdir_flag_spec_ld_F77=
12778 hardcode_libdir_separator_F77=
12779 hardcode_minus_L_F77=no
12780 hardcode_automatic_F77=no
12781 module_cmds_F77=
12782 module_expsym_cmds_F77=
12783 link_all_deplibs_F77=unknown
12784 old_archive_cmds_F77=$old_archive_cmds
12785 no_undefined_flag_F77=
12786 whole_archive_flag_spec_F77=
12787 enable_shared_with_static_runtimes_F77=no
12788
12789 # Source file extension for f77 test sources.
12790 ac_ext=f
12791
12792 # Object file extension for compiled f77 test sources.
12793 objext=o
12794 objext_F77=$objext
12795
12796 # Code to be used in simple compile tests
12797 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12798
12799 # Code to be used in simple link tests
12800 lt_simple_link_test_code="      program t\n      end\n"
12801
12802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12803
12804 # If no C compiler was specified, use CC.
12805 LTCC=${LTCC-"$CC"}
12806
12807 # Allow CC to be a program name with arguments.
12808 compiler=$CC
12809
12810
12811 # Allow CC to be a program name with arguments.
12812 lt_save_CC="$CC"
12813 CC=${F77-"f77"}
12814 compiler=$CC
12815 compiler_F77=$CC
12816 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12817
12818 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12819 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12820 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12821 echo "${ECHO_T}$can_build_shared" >&6
12822
12823 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12824 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12825 test "$can_build_shared" = "no" && enable_shared=no
12826
12827 # On AIX, shared libraries and static libraries use the same namespace, and
12828 # are all built from PIC.
12829 case "$host_os" in
12830 aix3*)
12831   test "$enable_shared" = yes && enable_static=no
12832   if test -n "$RANLIB"; then
12833     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12834     postinstall_cmds='$RANLIB $lib'
12835   fi
12836   ;;
12837 aix4*)
12838   test "$enable_shared" = yes && enable_static=no
12839   ;;
12840 esac
12841 echo "$as_me:$LINENO: result: $enable_shared" >&5
12842 echo "${ECHO_T}$enable_shared" >&6
12843
12844 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12845 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12846 # Make sure either enable_shared or enable_static is yes.
12847 test "$enable_shared" = yes || enable_static=yes
12848 echo "$as_me:$LINENO: result: $enable_static" >&5
12849 echo "${ECHO_T}$enable_static" >&6
12850
12851 test "$ld_shlibs_F77" = no && can_build_shared=no
12852
12853 GCC_F77="$G77"
12854 LD_F77="$LD"
12855
12856 lt_prog_compiler_wl_F77=
12857 lt_prog_compiler_pic_F77=
12858 lt_prog_compiler_static_F77=
12859
12860 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12861 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12862
12863   if test "$GCC" = yes; then
12864     lt_prog_compiler_wl_F77='-Wl,'
12865     lt_prog_compiler_static_F77='-static'
12866
12867     case $host_os in
12868       aix*)
12869       # All AIX code is PIC.
12870       if test "$host_cpu" = ia64; then
12871         # AIX 5 now supports IA64 processor
12872         lt_prog_compiler_static_F77='-Bstatic'
12873       fi
12874       ;;
12875
12876     amigaos*)
12877       # FIXME: we need at least 68020 code to build shared libraries, but
12878       # adding the `-m68020' flag to GCC prevents building anything better,
12879       # like `-m68040'.
12880       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12881       ;;
12882
12883     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12884       # PIC is the default for these OSes.
12885       ;;
12886
12887     mingw* | pw32* | os2*)
12888       # This hack is so that the source file can tell whether it is being
12889       # built for inclusion in a dll (and should export symbols for example).
12890       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12891       ;;
12892
12893     darwin* | rhapsody*)
12894       # PIC is the default on this platform
12895       # Common symbols not allowed in MH_DYLIB files
12896       lt_prog_compiler_pic_F77='-fno-common'
12897       ;;
12898
12899     msdosdjgpp*)
12900       # Just because we use GCC doesn't mean we suddenly get shared libraries
12901       # on systems that don't support them.
12902       lt_prog_compiler_can_build_shared_F77=no
12903       enable_shared=no
12904       ;;
12905
12906     sysv4*MP*)
12907       if test -d /usr/nec; then
12908         lt_prog_compiler_pic_F77=-Kconform_pic
12909       fi
12910       ;;
12911
12912     hpux*)
12913       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12914       # not for PA HP-UX.
12915       case "$host_cpu" in
12916       hppa*64*|ia64*)
12917         # +Z the default
12918         ;;
12919       *)
12920         lt_prog_compiler_pic_F77='-fPIC'
12921         ;;
12922       esac
12923       ;;
12924
12925     *)
12926       lt_prog_compiler_pic_F77='-fPIC'
12927       ;;
12928     esac
12929   else
12930     # PORTME Check for flag to pass linker flags through the system compiler.
12931     case $host_os in
12932     aix*)
12933       lt_prog_compiler_wl_F77='-Wl,'
12934       if test "$host_cpu" = ia64; then
12935         # AIX 5 now supports IA64 processor
12936         lt_prog_compiler_static_F77='-Bstatic'
12937       else
12938         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12939       fi
12940       ;;
12941
12942     mingw* | pw32* | os2*)
12943       # This hack is so that the source file can tell whether it is being
12944       # built for inclusion in a dll (and should export symbols for example).
12945       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12946       ;;
12947
12948     hpux9* | hpux10* | hpux11*)
12949       lt_prog_compiler_wl_F77='-Wl,'
12950       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12951       # not for PA HP-UX.
12952       case "$host_cpu" in
12953       hppa*64*|ia64*)
12954         # +Z the default
12955         ;;
12956       *)
12957         lt_prog_compiler_pic_F77='+Z'
12958         ;;
12959       esac
12960       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12961       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12962       ;;
12963
12964     irix5* | irix6* | nonstopux*)
12965       lt_prog_compiler_wl_F77='-Wl,'
12966       # PIC (with -KPIC) is the default.
12967       lt_prog_compiler_static_F77='-non_shared'
12968       ;;
12969
12970     newsos6)
12971       lt_prog_compiler_pic_F77='-KPIC'
12972       lt_prog_compiler_static_F77='-Bstatic'
12973       ;;
12974
12975     linux*)
12976       case $CC in
12977       icc* | ecc*)
12978         lt_prog_compiler_wl_F77='-Wl,'
12979         lt_prog_compiler_pic_F77='-KPIC'
12980         lt_prog_compiler_static_F77='-static'
12981         ;;
12982       ccc*)
12983         lt_prog_compiler_wl_F77='-Wl,'
12984         # All Alpha code is PIC.
12985         lt_prog_compiler_static_F77='-non_shared'
12986         ;;
12987       esac
12988       ;;
12989
12990     osf3* | osf4* | osf5*)
12991       lt_prog_compiler_wl_F77='-Wl,'
12992       # All OSF/1 code is PIC.
12993       lt_prog_compiler_static_F77='-non_shared'
12994       ;;
12995
12996     sco3.2v5*)
12997       lt_prog_compiler_pic_F77='-Kpic'
12998       lt_prog_compiler_static_F77='-dn'
12999       ;;
13000
13001     solaris*)
13002       lt_prog_compiler_wl_F77='-Wl,'
13003       lt_prog_compiler_pic_F77='-KPIC'
13004       lt_prog_compiler_static_F77='-Bstatic'
13005       ;;
13006
13007     sunos4*)
13008       lt_prog_compiler_wl_F77='-Qoption ld '
13009       lt_prog_compiler_pic_F77='-PIC'
13010       lt_prog_compiler_static_F77='-Bstatic'
13011       ;;
13012
13013     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13014       lt_prog_compiler_wl_F77='-Wl,'
13015       lt_prog_compiler_pic_F77='-KPIC'
13016       lt_prog_compiler_static_F77='-Bstatic'
13017       ;;
13018
13019     sysv4*MP*)
13020       if test -d /usr/nec ;then
13021         lt_prog_compiler_pic_F77='-Kconform_pic'
13022         lt_prog_compiler_static_F77='-Bstatic'
13023       fi
13024       ;;
13025
13026     uts4*)
13027       lt_prog_compiler_pic_F77='-pic'
13028       lt_prog_compiler_static_F77='-Bstatic'
13029       ;;
13030
13031     *)
13032       lt_prog_compiler_can_build_shared_F77=no
13033       ;;
13034     esac
13035   fi
13036
13037 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13038 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13039
13040 #
13041 # Check to make sure the PIC flag actually works.
13042 #
13043 if test -n "$lt_prog_compiler_pic_F77"; then
13044
13045 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13046 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13047 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13048   echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050   lt_prog_compiler_pic_works_F77=no
13051   ac_outfile=conftest.$ac_objext
13052    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13053    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13054    # Insert the option either (1) after the last *FLAGS variable, or
13055    # (2) before a word containing "conftest.", or (3) at the end.
13056    # Note that $ac_compile itself does not contain backslashes and begins
13057    # with a dollar sign (not a hyphen), so the echo should work correctly.
13058    # The option is referenced via a variable to avoid confusing sed.
13059    lt_compile=`echo "$ac_compile" | $SED \
13060    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13061    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13062    -e 's:$: $lt_compiler_flag:'`
13063    (eval echo "\"\$as_me:13063: $lt_compile\"" >&5)
13064    (eval "$lt_compile" 2>conftest.err)
13065    ac_status=$?
13066    cat conftest.err >&5
13067    echo "$as_me:13067: \$? = $ac_status" >&5
13068    if (exit $ac_status) && test -s "$ac_outfile"; then
13069      # The compiler can only warn and ignore the option if not recognized
13070      # So say no if there are warnings
13071      if test ! -s conftest.err; then
13072        lt_prog_compiler_pic_works_F77=yes
13073      fi
13074    fi
13075    $rm conftest*
13076
13077 fi
13078 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13079 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13080
13081 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13082     case $lt_prog_compiler_pic_F77 in
13083      "" | " "*) ;;
13084      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13085      esac
13086 else
13087     lt_prog_compiler_pic_F77=
13088      lt_prog_compiler_can_build_shared_F77=no
13089 fi
13090
13091 fi
13092 case "$host_os" in
13093   # For platforms which do not support PIC, -DPIC is meaningless:
13094   *djgpp*)
13095     lt_prog_compiler_pic_F77=
13096     ;;
13097   *)
13098     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13099     ;;
13100 esac
13101
13102 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13104 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13105   echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107   lt_cv_prog_compiler_c_o_F77=no
13108    $rm -r conftest 2>/dev/null
13109    mkdir conftest
13110    cd conftest
13111    mkdir out
13112    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13113
13114    lt_compiler_flag="-o out/conftest2.$ac_objext"
13115    # Insert the option either (1) after the last *FLAGS variable, or
13116    # (2) before a word containing "conftest.", or (3) at the end.
13117    # Note that $ac_compile itself does not contain backslashes and begins
13118    # with a dollar sign (not a hyphen), so the echo should work correctly.
13119    lt_compile=`echo "$ac_compile" | $SED \
13120    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13122    -e 's:$: $lt_compiler_flag:'`
13123    (eval echo "\"\$as_me:13123: $lt_compile\"" >&5)
13124    (eval "$lt_compile" 2>out/conftest.err)
13125    ac_status=$?
13126    cat out/conftest.err >&5
13127    echo "$as_me:13127: \$? = $ac_status" >&5
13128    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13129    then
13130      # The compiler can only warn and ignore the option if not recognized
13131      # So say no if there are warnings
13132      if test ! -s out/conftest.err; then
13133        lt_cv_prog_compiler_c_o_F77=yes
13134      fi
13135    fi
13136    chmod u+w .
13137    $rm conftest*
13138    # SGI C++ compiler will create directory out/ii_files/ for
13139    # template instantiation
13140    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13141    $rm out/* && rmdir out
13142    cd ..
13143    rmdir conftest
13144    $rm conftest*
13145
13146 fi
13147 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13148 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13149
13150
13151 hard_links="nottested"
13152 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13153   # do not overwrite the value of need_locks provided by the user
13154   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13155 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13156   hard_links=yes
13157   $rm conftest*
13158   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13159   touch conftest.a
13160   ln conftest.a conftest.b 2>&5 || hard_links=no
13161   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13162   echo "$as_me:$LINENO: result: $hard_links" >&5
13163 echo "${ECHO_T}$hard_links" >&6
13164   if test "$hard_links" = no; then
13165     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13166 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13167     need_locks=warn
13168   fi
13169 else
13170   need_locks=no
13171 fi
13172
13173 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13174 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13175
13176   runpath_var=
13177   allow_undefined_flag_F77=
13178   enable_shared_with_static_runtimes_F77=no
13179   archive_cmds_F77=
13180   archive_expsym_cmds_F77=
13181   old_archive_From_new_cmds_F77=
13182   old_archive_from_expsyms_cmds_F77=
13183   export_dynamic_flag_spec_F77=
13184   whole_archive_flag_spec_F77=
13185   thread_safe_flag_spec_F77=
13186   hardcode_libdir_flag_spec_F77=
13187   hardcode_libdir_flag_spec_ld_F77=
13188   hardcode_libdir_separator_F77=
13189   hardcode_direct_F77=no
13190   hardcode_minus_L_F77=no
13191   hardcode_shlibpath_var_F77=unsupported
13192   link_all_deplibs_F77=unknown
13193   hardcode_automatic_F77=no
13194   module_cmds_F77=
13195   module_expsym_cmds_F77=
13196   always_export_symbols_F77=no
13197   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13198   # include_expsyms should be a list of space-separated symbols to be *always*
13199   # included in the symbol list
13200   include_expsyms_F77=
13201   # exclude_expsyms can be an extended regexp of symbols to exclude
13202   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13203   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13204   # as well as any symbol that contains `d'.
13205   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13206   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13207   # platforms (ab)use it in PIC code, but their linkers get confused if
13208   # the symbol is explicitly referenced.  Since portable code cannot
13209   # rely on this symbol name, it's probably fine to never include it in
13210   # preloaded symbol tables.
13211   extract_expsyms_cmds=
13212
13213   case $host_os in
13214   cygwin* | mingw* | pw32*)
13215     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13216     # When not using gcc, we currently assume that we are using
13217     # Microsoft Visual C++.
13218     if test "$GCC" != yes; then
13219       with_gnu_ld=no
13220     fi
13221     ;;
13222   openbsd*)
13223     with_gnu_ld=no
13224     ;;
13225   esac
13226
13227   ld_shlibs_F77=yes
13228   if test "$with_gnu_ld" = yes; then
13229     # If archive_cmds runs LD, not CC, wlarc should be empty
13230     wlarc='${wl}'
13231
13232     # See if GNU ld supports shared libraries.
13233     case $host_os in
13234     aix3* | aix4* | aix5*)
13235       # On AIX/PPC, the GNU linker is very broken
13236       if test "$host_cpu" != ia64; then
13237         ld_shlibs_F77=no
13238         cat <<EOF 1>&2
13239
13240 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13241 *** to be unable to reliably create shared libraries on AIX.
13242 *** Therefore, libtool is disabling shared libraries support.  If you
13243 *** really care for shared libraries, you may want to modify your PATH
13244 *** so that a non-GNU linker is found, and then restart.
13245
13246 EOF
13247       fi
13248       ;;
13249
13250     amigaos*)
13251       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13252       hardcode_libdir_flag_spec_F77='-L$libdir'
13253       hardcode_minus_L_F77=yes
13254
13255       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13256       # that the semantics of dynamic libraries on AmigaOS, at least up
13257       # to version 4, is to share data among multiple programs linked
13258       # with the same dynamic library.  Since this doesn't match the
13259       # behavior of shared libraries on other platforms, we can't use
13260       # them.
13261       ld_shlibs_F77=no
13262       ;;
13263
13264     beos*)
13265       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13266         allow_undefined_flag_F77=unsupported
13267         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13268         # support --undefined.  This deserves some investigation.  FIXME
13269         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13270       else
13271         ld_shlibs_F77=no
13272       fi
13273       ;;
13274
13275     cygwin* | mingw* | pw32*)
13276       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13277       # as there is no search path for DLLs.
13278       hardcode_libdir_flag_spec_F77='-L$libdir'
13279       allow_undefined_flag_F77=unsupported
13280       always_export_symbols_F77=no
13281       enable_shared_with_static_runtimes_F77=yes
13282       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13283
13284       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13285         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13286         # If the export-symbols file already is a .def file (1st line
13287         # is EXPORTS), use it as is; otherwise, prepend...
13288         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13289           cp $export_symbols $output_objdir/$soname.def;
13290         else
13291           echo EXPORTS > $output_objdir/$soname.def;
13292           cat $export_symbols >> $output_objdir/$soname.def;
13293         fi~
13294         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13295       else
13296         ld_shlibs=no
13297       fi
13298       ;;
13299
13300     netbsd*)
13301       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13302         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13303         wlarc=
13304       else
13305         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13306         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13307       fi
13308       ;;
13309
13310     solaris* | sysv5*)
13311       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13312         ld_shlibs_F77=no
13313         cat <<EOF 1>&2
13314
13315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13316 *** create shared libraries on Solaris systems.  Therefore, libtool
13317 *** is disabling shared libraries support.  We urge you to upgrade GNU
13318 *** binutils to release 2.9.1 or newer.  Another option is to modify
13319 *** your PATH or compiler configuration so that the native linker is
13320 *** used, and then restart.
13321
13322 EOF
13323       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13324         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13325         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13326       else
13327         ld_shlibs_F77=no
13328       fi
13329       ;;
13330
13331     sunos4*)
13332       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13333       wlarc=
13334       hardcode_direct_F77=yes
13335       hardcode_shlibpath_var_F77=no
13336       ;;
13337
13338   linux*)
13339     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13340         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341         archive_cmds_F77="$tmp_archive_cmds"
13342       supports_anon_versioning=no
13343       case `$LD -v 2>/dev/null` in
13344         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13345         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13346         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13347         *\ 2.11.*) ;; # other 2.11 versions
13348         *) supports_anon_versioning=yes ;;
13349       esac
13350       if test $supports_anon_versioning = yes; then
13351         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13353 $echo "local: *; };" >> $output_objdir/$libname.ver~
13354         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13355       else
13356         archive_expsym_cmds_F77="$tmp_archive_cmds"
13357       fi
13358     else
13359       ld_shlibs_F77=no
13360     fi
13361     ;;
13362
13363     *)
13364       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13365         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13366         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13367       else
13368         ld_shlibs_F77=no
13369       fi
13370       ;;
13371     esac
13372
13373     if test "$ld_shlibs_F77" = yes; then
13374       runpath_var=LD_RUN_PATH
13375       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13376       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13377       # ancient GNU ld didn't support --whole-archive et. al.
13378       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13379         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13380       else
13381         whole_archive_flag_spec_F77=
13382       fi
13383     fi
13384   else
13385     # PORTME fill in a description of your system's linker (not GNU ld)
13386     case $host_os in
13387     aix3*)
13388       allow_undefined_flag_F77=unsupported
13389       always_export_symbols_F77=yes
13390       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13391       # Note: this linker hardcodes the directories in LIBPATH if there
13392       # are no directories specified by -L.
13393       hardcode_minus_L_F77=yes
13394       if test "$GCC" = yes && test -z "$link_static_flag"; then
13395         # Neither direct hardcoding nor static linking is supported with a
13396         # broken collect2.
13397         hardcode_direct_F77=unsupported
13398       fi
13399       ;;
13400
13401     aix4* | aix5*)
13402       if test "$host_cpu" = ia64; then
13403         # On IA64, the linker does run time linking by default, so we don't
13404         # have to do anything special.
13405         aix_use_runtimelinking=no
13406         exp_sym_flag='-Bexport'
13407         no_entry_flag=""
13408       else
13409         # If we're using GNU nm, then we don't want the "-C" option.
13410         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13411         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13412           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13413         else
13414           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13415         fi
13416         aix_use_runtimelinking=no
13417
13418         # Test if we are trying to use run time linking or normal
13419         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13420         # need to do runtime linking.
13421         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13422           for ld_flag in $LDFLAGS; do
13423           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13424             aix_use_runtimelinking=yes
13425             break
13426           fi
13427           done
13428         esac
13429
13430         exp_sym_flag='-bexport'
13431         no_entry_flag='-bnoentry'
13432       fi
13433
13434       # When large executables or shared objects are built, AIX ld can
13435       # have problems creating the table of contents.  If linking a library
13436       # or program results in "error TOC overflow" add -mminimal-toc to
13437       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13438       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13439
13440       archive_cmds_F77=''
13441       hardcode_direct_F77=yes
13442       hardcode_libdir_separator_F77=':'
13443       link_all_deplibs_F77=yes
13444
13445       if test "$GCC" = yes; then
13446         case $host_os in aix4.012|aix4.012.*)
13447         # We only want to do this on AIX 4.2 and lower, the check
13448         # below for broken collect2 doesn't work under 4.3+
13449           collect2name=`${CC} -print-prog-name=collect2`
13450           if test -f "$collect2name" && \
13451            strings "$collect2name" | grep resolve_lib_name >/dev/null
13452           then
13453           # We have reworked collect2
13454           hardcode_direct_F77=yes
13455           else
13456           # We have old collect2
13457           hardcode_direct_F77=unsupported
13458           # It fails to find uninstalled libraries when the uninstalled
13459           # path is not listed in the libpath.  Setting hardcode_minus_L
13460           # to unsupported forces relinking
13461           hardcode_minus_L_F77=yes
13462           hardcode_libdir_flag_spec_F77='-L$libdir'
13463           hardcode_libdir_separator_F77=
13464           fi
13465         esac
13466         shared_flag='-shared'
13467       else
13468         # not using gcc
13469         if test "$host_cpu" = ia64; then
13470         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13471         # chokes on -Wl,-G. The following line is correct:
13472           shared_flag='-G'
13473         else
13474         if test "$aix_use_runtimelinking" = yes; then
13475             shared_flag='${wl}-G'
13476           else
13477             shared_flag='${wl}-bM:SRE'
13478         fi
13479         fi
13480       fi
13481
13482       # It seems that -bexpall does not export symbols beginning with
13483       # underscore (_), so it is better to generate a list of symbols to export.
13484       always_export_symbols_F77=yes
13485       if test "$aix_use_runtimelinking" = yes; then
13486         # Warning - without using the other runtime loading flags (-brtl),
13487         # -berok will link without error, but may produce a broken library.
13488         allow_undefined_flag_F77='-berok'
13489        # Determine the default libpath from the value encoded in an empty executable.
13490        cat >conftest.$ac_ext <<_ACEOF
13491       program main
13492
13493       end
13494 _ACEOF
13495 rm -f conftest.$ac_objext conftest$ac_exeext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13497   (eval $ac_link) 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } &&
13504          { ac_try='test -z "$ac_f77_werror_flag"
13505                          || test ! -s conftest.err'
13506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507   (eval $ac_try) 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); }; } &&
13511          { ac_try='test -s conftest$ac_exeext'
13512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513   (eval $ac_try) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; }; then
13517
13518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13519 }'`
13520 # Check for a 64-bit object if we didn't find anything.
13521 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13522 }'`; fi
13523 else
13524   echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 fi
13528 rm -f conftest.err conftest.$ac_objext \
13529       conftest$ac_exeext conftest.$ac_ext
13530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13531
13532        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13533         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13534        else
13535         if test "$host_cpu" = ia64; then
13536           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13537           allow_undefined_flag_F77="-z nodefs"
13538           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13539         else
13540          # Determine the default libpath from the value encoded in an empty executable.
13541          cat >conftest.$ac_ext <<_ACEOF
13542       program main
13543
13544       end
13545 _ACEOF
13546 rm -f conftest.$ac_objext conftest$ac_exeext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13548   (eval $ac_link) 2>conftest.er1
13549   ac_status=$?
13550   grep -v '^ *+' conftest.er1 >conftest.err
13551   rm -f conftest.er1
13552   cat conftest.err >&5
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); } &&
13555          { ac_try='test -z "$ac_f77_werror_flag"
13556                          || test ! -s conftest.err'
13557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558   (eval $ac_try) 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; } &&
13562          { ac_try='test -s conftest$ac_exeext'
13563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564   (eval $ac_try) 2>&5
13565   ac_status=$?
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); }; }; then
13568
13569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13570 }'`
13571 # Check for a 64-bit object if we didn't find anything.
13572 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13573 }'`; fi
13574 else
13575   echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578 fi
13579 rm -f conftest.err conftest.$ac_objext \
13580       conftest$ac_exeext conftest.$ac_ext
13581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13582
13583          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13584           # Warning - without using the other run time loading flags,
13585           # -berok will link without error, but may produce a broken library.
13586           no_undefined_flag_F77=' ${wl}-bernotok'
13587           allow_undefined_flag_F77=' ${wl}-berok'
13588           # -bexpall does not export symbols beginning with underscore (_)
13589           always_export_symbols_F77=yes
13590           # Exported symbols can be pulled into shared objects from archives
13591           whole_archive_flag_spec_F77=' '
13592           archive_cmds_need_lc_F77=yes
13593           # This is similar to how AIX traditionally builds it's shared libraries.
13594           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13595         fi
13596       fi
13597       ;;
13598
13599     amigaos*)
13600       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13601       hardcode_libdir_flag_spec_F77='-L$libdir'
13602       hardcode_minus_L_F77=yes
13603       # see comment about different semantics on the GNU ld section
13604       ld_shlibs_F77=no
13605       ;;
13606
13607     bsdi4*)
13608       export_dynamic_flag_spec_F77=-rdynamic
13609       ;;
13610
13611     cygwin* | mingw* | pw32*)
13612       # When not using gcc, we currently assume that we are using
13613       # Microsoft Visual C++.
13614       # hardcode_libdir_flag_spec is actually meaningless, as there is
13615       # no search path for DLLs.
13616       hardcode_libdir_flag_spec_F77=' '
13617       allow_undefined_flag_F77=unsupported
13618       # Tell ltmain to make .lib files, not .a files.
13619       libext=lib
13620       # Tell ltmain to make .dll files, not .so files.
13621       shrext=".dll"
13622       # FIXME: Setting linknames here is a bad hack.
13623       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13624       # The linker will automatically build a .lib file if we build a DLL.
13625       old_archive_From_new_cmds_F77='true'
13626       # FIXME: Should let the user specify the lib program.
13627       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13628       fix_srcfile_path='`cygpath -w "$srcfile"`'
13629       enable_shared_with_static_runtimes_F77=yes
13630       ;;
13631
13632     darwin* | rhapsody*)
13633     if test "$GXX" = yes ; then
13634       archive_cmds_need_lc_F77=no
13635       case "$host_os" in
13636       rhapsody* | darwin1.[012])
13637         allow_undefined_flag_F77='-undefined suppress'
13638         ;;
13639       *) # Darwin 1.3 on
13640       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13641         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13642       else
13643         case ${MACOSX_DEPLOYMENT_TARGET} in
13644           10.[012])
13645             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13646             ;;
13647           10.*)
13648             allow_undefined_flag_F77='-undefined dynamic_lookup'
13649             ;;
13650         esac
13651       fi
13652         ;;
13653       esac
13654         lt_int_apple_cc_single_mod=no
13655         output_verbose_link_cmd='echo'
13656         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13657           lt_int_apple_cc_single_mod=yes
13658         fi
13659         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13660           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13661         else
13662         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13663       fi
13664       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13665       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13666         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13667           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13668         else
13669           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13670         fi
13671           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13672       hardcode_direct_F77=no
13673       hardcode_automatic_F77=yes
13674       hardcode_shlibpath_var_F77=unsupported
13675       whole_archive_flag_spec_F77='-all_load $convenience'
13676       link_all_deplibs_F77=yes
13677     else
13678       ld_shlibs_F77=no
13679     fi
13680       ;;
13681
13682     dgux*)
13683       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684       hardcode_libdir_flag_spec_F77='-L$libdir'
13685       hardcode_shlibpath_var_F77=no
13686       ;;
13687
13688     freebsd1*)
13689       ld_shlibs_F77=no
13690       ;;
13691
13692     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13693     # support.  Future versions do this automatically, but an explicit c++rt0.o
13694     # does not break anything, and helps significantly (at the cost of a little
13695     # extra space).
13696     freebsd2.2*)
13697       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13698       hardcode_libdir_flag_spec_F77='-R$libdir'
13699       hardcode_direct_F77=yes
13700       hardcode_shlibpath_var_F77=no
13701       ;;
13702
13703     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13704     freebsd2*)
13705       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13706       hardcode_direct_F77=yes
13707       hardcode_minus_L_F77=yes
13708       hardcode_shlibpath_var_F77=no
13709       ;;
13710
13711     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13712     freebsd* | kfreebsd*-gnu)
13713       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13714       hardcode_libdir_flag_spec_F77='-R$libdir'
13715       hardcode_direct_F77=yes
13716       hardcode_shlibpath_var_F77=no
13717       ;;
13718
13719     hpux9*)
13720       if test "$GCC" = yes; then
13721         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13722       else
13723         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13724       fi
13725       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13726       hardcode_libdir_separator_F77=:
13727       hardcode_direct_F77=yes
13728
13729       # hardcode_minus_L: Not really in the search PATH,
13730       # but as the default location of the library.
13731       hardcode_minus_L_F77=yes
13732       export_dynamic_flag_spec_F77='${wl}-E'
13733       ;;
13734
13735     hpux10* | hpux11*)
13736       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13737         case "$host_cpu" in
13738         hppa*64*|ia64*)
13739           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13740           ;;
13741         *)
13742           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13743           ;;
13744         esac
13745       else
13746         case "$host_cpu" in
13747         hppa*64*|ia64*)
13748           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13749           ;;
13750         *)
13751           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13752           ;;
13753         esac
13754       fi
13755       if test "$with_gnu_ld" = no; then
13756         case "$host_cpu" in
13757         hppa*64*)
13758           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13759           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13760           hardcode_libdir_separator_F77=:
13761           hardcode_direct_F77=no
13762           hardcode_shlibpath_var_F77=no
13763           ;;
13764         ia64*)
13765           hardcode_libdir_flag_spec_F77='-L$libdir'
13766           hardcode_direct_F77=no
13767           hardcode_shlibpath_var_F77=no
13768
13769           # hardcode_minus_L: Not really in the search PATH,
13770           # but as the default location of the library.
13771           hardcode_minus_L_F77=yes
13772           ;;
13773         *)
13774           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13775           hardcode_libdir_separator_F77=:
13776           hardcode_direct_F77=yes
13777           export_dynamic_flag_spec_F77='${wl}-E'
13778
13779           # hardcode_minus_L: Not really in the search PATH,
13780           # but as the default location of the library.
13781           hardcode_minus_L_F77=yes
13782           ;;
13783         esac
13784       fi
13785       ;;
13786
13787     irix5* | irix6* | nonstopux*)
13788       if test "$GCC" = yes; then
13789         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13790       else
13791         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13792         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13793       fi
13794       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13795       hardcode_libdir_separator_F77=:
13796       link_all_deplibs_F77=yes
13797       ;;
13798
13799     netbsd*)
13800       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13801         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13802       else
13803         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13804       fi
13805       hardcode_libdir_flag_spec_F77='-R$libdir'
13806       hardcode_direct_F77=yes
13807       hardcode_shlibpath_var_F77=no
13808       ;;
13809
13810     newsos6)
13811       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13812       hardcode_direct_F77=yes
13813       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13814       hardcode_libdir_separator_F77=:
13815       hardcode_shlibpath_var_F77=no
13816       ;;
13817
13818     openbsd*)
13819       hardcode_direct_F77=yes
13820       hardcode_shlibpath_var_F77=no
13821       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13822         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13823         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13824         export_dynamic_flag_spec_F77='${wl}-E'
13825       else
13826        case $host_os in
13827          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13828            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13829            hardcode_libdir_flag_spec_F77='-R$libdir'
13830            ;;
13831          *)
13832            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13833            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13834            ;;
13835        esac
13836       fi
13837       ;;
13838
13839     os2*)
13840       hardcode_libdir_flag_spec_F77='-L$libdir'
13841       hardcode_minus_L_F77=yes
13842       allow_undefined_flag_F77=unsupported
13843       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13844       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13845       ;;
13846
13847     osf3*)
13848       if test "$GCC" = yes; then
13849         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13850         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13851       else
13852         allow_undefined_flag_F77=' -expect_unresolved \*'
13853         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13854       fi
13855       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13856       hardcode_libdir_separator_F77=:
13857       ;;
13858
13859     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13860       if test "$GCC" = yes; then
13861         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13862         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13863         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13864       else
13865         allow_undefined_flag_F77=' -expect_unresolved \*'
13866         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13867         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13868         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13869
13870         # Both c and cxx compiler support -rpath directly
13871         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13872       fi
13873       hardcode_libdir_separator_F77=:
13874       ;;
13875
13876     sco3.2v5*)
13877       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878       hardcode_shlibpath_var_F77=no
13879       export_dynamic_flag_spec_F77='${wl}-Bexport'
13880       runpath_var=LD_RUN_PATH
13881       hardcode_runpath_var=yes
13882       ;;
13883
13884     solaris*)
13885       no_undefined_flag_F77=' -z text'
13886       if test "$GCC" = yes; then
13887         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13888         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13889           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13890       else
13891         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13892         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13893         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13894       fi
13895       hardcode_libdir_flag_spec_F77='-R$libdir'
13896       hardcode_shlibpath_var_F77=no
13897       case $host_os in
13898       solaris2.[0-5] | solaris2.[0-5].*) ;;
13899       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13900         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13901       esac
13902       link_all_deplibs_F77=yes
13903       ;;
13904
13905     sunos4*)
13906       if test "x$host_vendor" = xsequent; then
13907         # Use $CC to link under sequent, because it throws in some extra .o
13908         # files that make .init and .fini sections work.
13909         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13910       else
13911         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13912       fi
13913       hardcode_libdir_flag_spec_F77='-L$libdir'
13914       hardcode_direct_F77=yes
13915       hardcode_minus_L_F77=yes
13916       hardcode_shlibpath_var_F77=no
13917       ;;
13918
13919     sysv4)
13920       case $host_vendor in
13921         sni)
13922           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13923           hardcode_direct_F77=yes # is this really true???
13924         ;;
13925         siemens)
13926           ## LD is ld it makes a PLAMLIB
13927           ## CC just makes a GrossModule.
13928           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13929           reload_cmds_F77='$CC -r -o $output$reload_objs'
13930           hardcode_direct_F77=no
13931         ;;
13932         motorola)
13933           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13934           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13935         ;;
13936       esac
13937       runpath_var='LD_RUN_PATH'
13938       hardcode_shlibpath_var_F77=no
13939       ;;
13940
13941     sysv4.3*)
13942       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13943       hardcode_shlibpath_var_F77=no
13944       export_dynamic_flag_spec_F77='-Bexport'
13945       ;;
13946
13947     sysv4*MP*)
13948       if test -d /usr/nec; then
13949         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13950         hardcode_shlibpath_var_F77=no
13951         runpath_var=LD_RUN_PATH
13952         hardcode_runpath_var=yes
13953         ld_shlibs_F77=yes
13954       fi
13955       ;;
13956
13957     sysv4.2uw2*)
13958       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13959       hardcode_direct_F77=yes
13960       hardcode_minus_L_F77=no
13961       hardcode_shlibpath_var_F77=no
13962       hardcode_runpath_var=yes
13963       runpath_var=LD_RUN_PATH
13964       ;;
13965
13966    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13967       no_undefined_flag_F77='${wl}-z ${wl}text'
13968       if test "$GCC" = yes; then
13969         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13970       else
13971         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13972       fi
13973       runpath_var='LD_RUN_PATH'
13974       hardcode_shlibpath_var_F77=no
13975       ;;
13976
13977     sysv5*)
13978       no_undefined_flag_F77=' -z text'
13979       # $CC -shared without GNU ld will not create a library from C++
13980       # object files and a static libstdc++, better avoid it by now
13981       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13982       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13983                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13984       hardcode_libdir_flag_spec_F77=
13985       hardcode_shlibpath_var_F77=no
13986       runpath_var='LD_RUN_PATH'
13987       ;;
13988
13989     uts4*)
13990       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13991       hardcode_libdir_flag_spec_F77='-L$libdir'
13992       hardcode_shlibpath_var_F77=no
13993       ;;
13994
13995     *)
13996       ld_shlibs_F77=no
13997       ;;
13998     esac
13999   fi
14000
14001 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14002 echo "${ECHO_T}$ld_shlibs_F77" >&6
14003 test "$ld_shlibs_F77" = no && can_build_shared=no
14004
14005 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14006 if test "$GCC" = yes; then
14007   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14008 fi
14009
14010 #
14011 # Do we need to explicitly link libc?
14012 #
14013 case "x$archive_cmds_need_lc_F77" in
14014 x|xyes)
14015   # Assume -lc should be added
14016   archive_cmds_need_lc_F77=yes
14017
14018   if test "$enable_shared" = yes && test "$GCC" = yes; then
14019     case $archive_cmds_F77 in
14020     *'~'*)
14021       # FIXME: we may have to deal with multi-command sequences.
14022       ;;
14023     '$CC '*)
14024       # Test whether the compiler implicitly links with -lc since on some
14025       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14026       # to ld, don't add -lc before -lgcc.
14027       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14028 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14029       $rm conftest*
14030       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14031
14032       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033   (eval $ac_compile) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); } 2>conftest.err; then
14037         soname=conftest
14038         lib=conftest
14039         libobjs=conftest.$ac_objext
14040         deplibs=
14041         wl=$lt_prog_compiler_wl_F77
14042         compiler_flags=-v
14043         linker_flags=-v
14044         verstring=
14045         output_objdir=.
14046         libname=conftest
14047         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14048         allow_undefined_flag_F77=
14049         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14050   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }
14054         then
14055           archive_cmds_need_lc_F77=no
14056         else
14057           archive_cmds_need_lc_F77=yes
14058         fi
14059         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14060       else
14061         cat conftest.err 1>&5
14062       fi
14063       $rm conftest*
14064       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14065 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14066       ;;
14067     esac
14068   fi
14069   ;;
14070 esac
14071
14072 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14073 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14074 library_names_spec=
14075 libname_spec='lib$name'
14076 soname_spec=
14077 shrext=".so"
14078 postinstall_cmds=
14079 postuninstall_cmds=
14080 finish_cmds=
14081 finish_eval=
14082 shlibpath_var=
14083 shlibpath_overrides_runpath=unknown
14084 version_type=none
14085 dynamic_linker="$host_os ld.so"
14086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14087 if test "$GCC" = yes; then
14088   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14089   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14090     # if the path contains ";" then we assume it to be the separator
14091     # otherwise default to the standard path separator (i.e. ":") - it is
14092     # assumed that no part of a normal pathname contains ";" but that should
14093     # okay in the real world where ";" in dirpaths is itself problematic.
14094     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14095   else
14096     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14097   fi
14098 else
14099   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14100 fi
14101 need_lib_prefix=unknown
14102 hardcode_into_libs=no
14103
14104 # when you set need_version to no, make sure it does not cause -set_version
14105 # flags to be left without arguments
14106 need_version=unknown
14107
14108 case $host_os in
14109 aix3*)
14110   version_type=linux
14111   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14112   shlibpath_var=LIBPATH
14113
14114   # AIX 3 has no versioning support, so we append a major version to the name.
14115   soname_spec='${libname}${release}${shared_ext}$major'
14116   ;;
14117
14118 aix4* | aix5*)
14119   version_type=linux
14120   need_lib_prefix=no
14121   need_version=no
14122   hardcode_into_libs=yes
14123   if test "$host_cpu" = ia64; then
14124     # AIX 5 supports IA64
14125     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14126     shlibpath_var=LD_LIBRARY_PATH
14127   else
14128     # With GCC up to 2.95.x, collect2 would create an import file
14129     # for dependence libraries.  The import file would start with
14130     # the line `#! .'.  This would cause the generated library to
14131     # depend on `.', always an invalid library.  This was fixed in
14132     # development snapshots of GCC prior to 3.0.
14133     case $host_os in
14134       aix4 | aix4.[01] | aix4.[01].*)
14135       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14136            echo ' yes '
14137            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14138         :
14139       else
14140         can_build_shared=no
14141       fi
14142       ;;
14143     esac
14144     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14145     # soname into executable. Probably we can add versioning support to
14146     # collect2, so additional links can be useful in future.
14147     if test "$aix_use_runtimelinking" = yes; then
14148       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14149       # instead of lib<name>.a to let people know that these are not
14150       # typical AIX shared libraries.
14151       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14152     else
14153       # We preserve .a as extension for shared libraries through AIX4.2
14154       # and later when we are not doing run time linking.
14155       library_names_spec='${libname}${release}.a $libname.a'
14156       soname_spec='${libname}${release}${shared_ext}$major'
14157     fi
14158     shlibpath_var=LIBPATH
14159   fi
14160   ;;
14161
14162 amigaos*)
14163   library_names_spec='$libname.ixlibrary $libname.a'
14164   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14165   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'
14166   ;;
14167
14168 beos*)
14169   library_names_spec='${libname}${shared_ext}'
14170   dynamic_linker="$host_os ld.so"
14171   shlibpath_var=LIBRARY_PATH
14172   ;;
14173
14174 bsdi4*)
14175   version_type=linux
14176   need_version=no
14177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178   soname_spec='${libname}${release}${shared_ext}$major'
14179   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14180   shlibpath_var=LD_LIBRARY_PATH
14181   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14182   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14183   # the default ld.so.conf also contains /usr/contrib/lib and
14184   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14185   # libtool to hard-code these into programs
14186   ;;
14187
14188 cygwin* | mingw* | pw32*)
14189   version_type=windows
14190   shrext=".dll"
14191   need_version=no
14192   need_lib_prefix=no
14193
14194   case $GCC,$host_os in
14195   yes,cygwin* | yes,mingw* | yes,pw32*)
14196     library_names_spec='$libname.dll.a'
14197     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14198     postinstall_cmds='base_file=`basename \${file}`~
14199       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14200       dldir=$destdir/`dirname \$dlpath`~
14201       test -d \$dldir || mkdir -p \$dldir~
14202       $install_prog $dir/$dlname \$dldir/$dlname'
14203     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14204       dlpath=$dir/\$dldll~
14205        $rm \$dlpath'
14206     shlibpath_overrides_runpath=yes
14207
14208     case $host_os in
14209     cygwin*)
14210       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14211       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14212       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14213       ;;
14214     mingw*)
14215       # MinGW DLLs use traditional 'lib' prefix
14216       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14217       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14218       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14219         # It is most probably a Windows format PATH printed by
14220         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14221         # path with ; separators, and with drive letters. We can handle the
14222         # drive letters (cygwin fileutils understands them), so leave them,
14223         # especially as we might pass files found there to a mingw objdump,
14224         # which wouldn't understand a cygwinified path. Ahh.
14225         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14226       else
14227         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14228       fi
14229       ;;
14230     pw32*)
14231       # pw32 DLLs use 'pw' prefix rather than 'lib'
14232       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14233       ;;
14234     esac
14235     ;;
14236
14237   linux*)
14238     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14239       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14240       supports_anon_versioning=no
14241       case `$LD -v 2>/dev/null` in
14242         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14243         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14244         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14245         *\ 2.11.*) ;; # other 2.11 versions
14246         *) supports_anon_versioning=yes ;;
14247       esac
14248       if test $supports_anon_versioning = yes; then
14249         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14250 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14251 $echo "local: *; };" >> $output_objdir/$libname.ver~
14252         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14253       else
14254         $archive_expsym_cmds="$archive_cmds"
14255       fi
14256     else
14257       ld_shlibs=no
14258     fi
14259     ;;
14260
14261   *)
14262     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14263     ;;
14264   esac
14265   dynamic_linker='Win32 ld.exe'
14266   # FIXME: first we should search . and the directory the executable is in
14267   shlibpath_var=PATH
14268   ;;
14269
14270 darwin* | rhapsody*)
14271   dynamic_linker="$host_os dyld"
14272   version_type=darwin
14273   need_lib_prefix=no
14274   need_version=no
14275   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14276   soname_spec='${libname}${release}${major}$shared_ext'
14277   shlibpath_overrides_runpath=yes
14278   shlibpath_var=DYLD_LIBRARY_PATH
14279   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14280   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14281   if test "$GCC" = yes; then
14282     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14283   else
14284     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14285   fi
14286   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14287   ;;
14288
14289 dgux*)
14290   version_type=linux
14291   need_lib_prefix=no
14292   need_version=no
14293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14294   soname_spec='${libname}${release}${shared_ext}$major'
14295   shlibpath_var=LD_LIBRARY_PATH
14296   ;;
14297
14298 freebsd1*)
14299   dynamic_linker=no
14300   ;;
14301
14302 kfreebsd*-gnu)
14303   version_type=linux
14304   need_lib_prefix=no
14305   need_version=no
14306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14307   soname_spec='${libname}${release}${shared_ext}$major'
14308   shlibpath_var=LD_LIBRARY_PATH
14309   shlibpath_overrides_runpath=no
14310   hardcode_into_libs=yes
14311   dynamic_linker='GNU ld.so'
14312   ;;
14313
14314 freebsd*)
14315   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14316   version_type=freebsd-$objformat
14317   case $version_type in
14318     freebsd-elf*)
14319       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14320       need_version=no
14321       need_lib_prefix=no
14322       ;;
14323     freebsd-*)
14324       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14325       need_version=yes
14326       ;;
14327   esac
14328   shlibpath_var=LD_LIBRARY_PATH
14329   case $host_os in
14330   freebsd2*)
14331     shlibpath_overrides_runpath=yes
14332     ;;
14333   freebsd3.01* | freebsdelf3.01*)
14334     shlibpath_overrides_runpath=yes
14335     hardcode_into_libs=yes
14336     ;;
14337   *) # from 3.2 on
14338     shlibpath_overrides_runpath=no
14339     hardcode_into_libs=yes
14340     ;;
14341   esac
14342   ;;
14343
14344 gnu*)
14345   version_type=linux
14346   need_lib_prefix=no
14347   need_version=no
14348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14349   soname_spec='${libname}${release}${shared_ext}$major'
14350   shlibpath_var=LD_LIBRARY_PATH
14351   hardcode_into_libs=yes
14352   ;;
14353
14354 hpux9* | hpux10* | hpux11*)
14355   # Give a soname corresponding to the major version so that dld.sl refuses to
14356   # link against other versions.
14357   version_type=sunos
14358   need_lib_prefix=no
14359   need_version=no
14360   case "$host_cpu" in
14361   ia64*)
14362     shrext='.so'
14363     hardcode_into_libs=yes
14364     dynamic_linker="$host_os dld.so"
14365     shlibpath_var=LD_LIBRARY_PATH
14366     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368     soname_spec='${libname}${release}${shared_ext}$major'
14369     if test "X$HPUX_IA64_MODE" = X32; then
14370       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14371     else
14372       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14373     fi
14374     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14375     ;;
14376    hppa*64*)
14377      shrext='.sl'
14378      hardcode_into_libs=yes
14379      dynamic_linker="$host_os dld.sl"
14380      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14381      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14382      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14383      soname_spec='${libname}${release}${shared_ext}$major'
14384      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14385      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14386      ;;
14387    *)
14388     shrext='.sl'
14389     dynamic_linker="$host_os dld.sl"
14390     shlibpath_var=SHLIB_PATH
14391     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393     soname_spec='${libname}${release}${shared_ext}$major'
14394     ;;
14395   esac
14396   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14397   postinstall_cmds='chmod 555 $lib'
14398   ;;
14399
14400 irix5* | irix6* | nonstopux*)
14401   case $host_os in
14402     nonstopux*) version_type=nonstopux ;;
14403     *)
14404         if test "$lt_cv_prog_gnu_ld" = yes; then
14405                 version_type=linux
14406         else
14407                 version_type=irix
14408         fi ;;
14409   esac
14410   need_lib_prefix=no
14411   need_version=no
14412   soname_spec='${libname}${release}${shared_ext}$major'
14413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14414   case $host_os in
14415   irix5* | nonstopux*)
14416     libsuff= shlibsuff=
14417     ;;
14418   *)
14419     case $LD in # libtool.m4 will add one of these switches to LD
14420     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14421       libsuff= shlibsuff= libmagic=32-bit;;
14422     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14423       libsuff=32 shlibsuff=N32 libmagic=N32;;
14424     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14425       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14426     *) libsuff= shlibsuff= libmagic=never-match;;
14427     esac
14428     ;;
14429   esac
14430   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14431   shlibpath_overrides_runpath=no
14432   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14433   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14434   hardcode_into_libs=yes
14435   ;;
14436
14437 # No shared lib support for Linux oldld, aout, or coff.
14438 linux*oldld* | linux*aout* | linux*coff*)
14439   dynamic_linker=no
14440   ;;
14441
14442 # This must be Linux ELF.
14443 linux*)
14444   version_type=linux
14445   need_lib_prefix=no
14446   need_version=no
14447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448   soname_spec='${libname}${release}${shared_ext}$major'
14449   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14450   shlibpath_var=LD_LIBRARY_PATH
14451   shlibpath_overrides_runpath=no
14452   # This implies no fast_install, which is unacceptable.
14453   # Some rework will be needed to allow for fast_install
14454   # before this can be enabled.
14455   hardcode_into_libs=yes
14456
14457   # Append ld.so.conf contents to the search path
14458   if test -f /etc/ld.so.conf; then
14459     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14460     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14461   fi
14462
14463   case $host_cpu:$lt_cv_cc_64bit_output in
14464   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
14465     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
14466     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
14467     ;;
14468   esac
14469
14470   # We used to test for /lib/ld.so.1 and disable shared libraries on
14471   # powerpc, because MkLinux only supported shared libraries with the
14472   # GNU dynamic linker.  Since this was broken with cross compilers,
14473   # most powerpc-linux boxes support dynamic linking these days and
14474   # people can always --disable-shared, the test was removed, and we
14475   # assume the GNU/Linux dynamic linker is in use.
14476   dynamic_linker='GNU/Linux ld.so'
14477
14478   # Find out which ABI we are using (multilib Linux x86_64 hack).
14479   libsuff=
14480   case "$host_cpu" in
14481   x86_64*)
14482     echo '#line 14482 "configure"' > conftest.$ac_ext
14483     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14484   (eval $ac_compile) 2>&5
14485   ac_status=$?
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); }; then
14488       case `/usr/bin/file conftest.$ac_objext` in
14489       *64-bit*)
14490         libsuff=64
14491         ;;
14492       esac
14493     fi
14494     rm -rf conftest*
14495     ;;
14496   *)
14497     ;;
14498   esac
14499   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14500   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14501   ;;
14502
14503 knetbsd*-gnu)
14504   version_type=linux
14505   need_lib_prefix=no
14506   need_version=no
14507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14508   soname_spec='${libname}${release}${shared_ext}$major'
14509   shlibpath_var=LD_LIBRARY_PATH
14510   shlibpath_overrides_runpath=no
14511   hardcode_into_libs=yes
14512   dynamic_linker='GNU ld.so'
14513   ;;
14514
14515 netbsd*)
14516   version_type=sunos
14517   need_lib_prefix=no
14518   need_version=no
14519   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14521     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14522     dynamic_linker='NetBSD (a.out) ld.so'
14523   else
14524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14525     soname_spec='${libname}${release}${shared_ext}$major'
14526     dynamic_linker='NetBSD ld.elf_so'
14527   fi
14528   shlibpath_var=LD_LIBRARY_PATH
14529   shlibpath_overrides_runpath=yes
14530   hardcode_into_libs=yes
14531   ;;
14532
14533 newsos6)
14534   version_type=linux
14535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536   shlibpath_var=LD_LIBRARY_PATH
14537   shlibpath_overrides_runpath=yes
14538   ;;
14539
14540 nto-qnx*)
14541   version_type=linux
14542   need_lib_prefix=no
14543   need_version=no
14544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545   soname_spec='${libname}${release}${shared_ext}$major'
14546   shlibpath_var=LD_LIBRARY_PATH
14547   shlibpath_overrides_runpath=yes
14548   ;;
14549
14550 openbsd*)
14551   version_type=sunos
14552   need_lib_prefix=no
14553   need_version=yes
14554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14555   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14556   shlibpath_var=LD_LIBRARY_PATH
14557   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14558     case $host_os in
14559       openbsd2.[89] | openbsd2.[89].*)
14560         shlibpath_overrides_runpath=no
14561         ;;
14562       *)
14563         shlibpath_overrides_runpath=yes
14564         ;;
14565       esac
14566   else
14567     shlibpath_overrides_runpath=yes
14568   fi
14569   ;;
14570
14571 os2*)
14572   libname_spec='$name'
14573   shrext=".dll"
14574   need_lib_prefix=no
14575   library_names_spec='$libname${shared_ext} $libname.a'
14576   dynamic_linker='OS/2 ld.exe'
14577   shlibpath_var=LIBPATH
14578   ;;
14579
14580 osf3* | osf4* | osf5*)
14581   version_type=osf
14582   need_lib_prefix=no
14583   need_version=no
14584   soname_spec='${libname}${release}${shared_ext}$major'
14585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586   shlibpath_var=LD_LIBRARY_PATH
14587   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14588   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14589   ;;
14590
14591 sco3.2v5*)
14592   version_type=osf
14593   soname_spec='${libname}${release}${shared_ext}$major'
14594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595   shlibpath_var=LD_LIBRARY_PATH
14596   ;;
14597
14598 solaris*)
14599   version_type=linux
14600   need_lib_prefix=no
14601   need_version=no
14602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603   soname_spec='${libname}${release}${shared_ext}$major'
14604   shlibpath_var=LD_LIBRARY_PATH
14605   shlibpath_overrides_runpath=yes
14606   hardcode_into_libs=yes
14607   # ldd complains unless libraries are executable
14608   postinstall_cmds='chmod +x $lib'
14609   ;;
14610
14611 sunos4*)
14612   version_type=sunos
14613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14614   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14615   shlibpath_var=LD_LIBRARY_PATH
14616   shlibpath_overrides_runpath=yes
14617   if test "$with_gnu_ld" = yes; then
14618     need_lib_prefix=no
14619   fi
14620   need_version=yes
14621   ;;
14622
14623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14624   version_type=linux
14625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626   soname_spec='${libname}${release}${shared_ext}$major'
14627   shlibpath_var=LD_LIBRARY_PATH
14628   case $host_vendor in
14629     sni)
14630       shlibpath_overrides_runpath=no
14631       need_lib_prefix=no
14632       export_dynamic_flag_spec='${wl}-Blargedynsym'
14633       runpath_var=LD_RUN_PATH
14634       ;;
14635     siemens)
14636       need_lib_prefix=no
14637       ;;
14638     motorola)
14639       need_lib_prefix=no
14640       need_version=no
14641       shlibpath_overrides_runpath=no
14642       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14643       ;;
14644   esac
14645   ;;
14646
14647 sysv4*MP*)
14648   if test -d /usr/nec ;then
14649     version_type=linux
14650     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14651     soname_spec='$libname${shared_ext}.$major'
14652     shlibpath_var=LD_LIBRARY_PATH
14653   fi
14654   ;;
14655
14656 uts4*)
14657   version_type=linux
14658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659   soname_spec='${libname}${release}${shared_ext}$major'
14660   shlibpath_var=LD_LIBRARY_PATH
14661   ;;
14662
14663 *)
14664   dynamic_linker=no
14665   ;;
14666 esac
14667 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14668 echo "${ECHO_T}$dynamic_linker" >&6
14669 test "$dynamic_linker" = no && can_build_shared=no
14670
14671 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14673 hardcode_action_F77=
14674 if test -n "$hardcode_libdir_flag_spec_F77" || \
14675    test -n "$runpath_var F77" || \
14676    test "X$hardcode_automatic_F77"="Xyes" ; then
14677
14678   # We can hardcode non-existant directories.
14679   if test "$hardcode_direct_F77" != no &&
14680      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14681      # have to relink, otherwise we might link with an installed library
14682      # when we should be linking with a yet-to-be-installed one
14683      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14684      test "$hardcode_minus_L_F77" != no; then
14685     # Linking always hardcodes the temporary library directory.
14686     hardcode_action_F77=relink
14687   else
14688     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14689     hardcode_action_F77=immediate
14690   fi
14691 else
14692   # We cannot hardcode anything, or else we can only hardcode existing
14693   # directories.
14694   hardcode_action_F77=unsupported
14695 fi
14696 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14697 echo "${ECHO_T}$hardcode_action_F77" >&6
14698
14699 if test "$hardcode_action_F77" = relink; then
14700   # Fast installation is not supported
14701   enable_fast_install=no
14702 elif test "$shlibpath_overrides_runpath" = yes ||
14703      test "$enable_shared" = no; then
14704   # Fast installation is not necessary
14705   enable_fast_install=needless
14706 fi
14707
14708 striplib=
14709 old_striplib=
14710 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14713   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14714   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14715   echo "$as_me:$LINENO: result: yes" >&5
14716 echo "${ECHO_T}yes" >&6
14717 else
14718 # FIXME - insert some real tests, host_os isn't really good enough
14719   case $host_os in
14720    darwin*)
14721        if test -n "$STRIP" ; then
14722          striplib="$STRIP -x"
14723          echo "$as_me:$LINENO: result: yes" >&5
14724 echo "${ECHO_T}yes" >&6
14725        else
14726   echo "$as_me:$LINENO: result: no" >&5
14727 echo "${ECHO_T}no" >&6
14728 fi
14729        ;;
14730    *)
14731   echo "$as_me:$LINENO: result: no" >&5
14732 echo "${ECHO_T}no" >&6
14733     ;;
14734   esac
14735 fi
14736
14737
14738
14739 # The else clause should only fire when bootstrapping the
14740 # libtool distribution, otherwise you forgot to ship ltmain.sh
14741 # with your package, and you will get complaints that there are
14742 # no rules to generate ltmain.sh.
14743 if test -f "$ltmain"; then
14744   # See if we are running on zsh, and set the options which allow our commands through
14745   # without removal of \ escapes.
14746   if test -n "${ZSH_VERSION+set}" ; then
14747     setopt NO_GLOB_SUBST
14748   fi
14749   # Now quote all the things that may contain metacharacters while being
14750   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14751   # variables and quote the copies for generation of the libtool script.
14752   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14753     SED SHELL STRIP \
14754     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14755     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14756     deplibs_check_method reload_flag reload_cmds need_locks \
14757     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14758     lt_cv_sys_global_symbol_to_c_name_address \
14759     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14760     old_postinstall_cmds old_postuninstall_cmds \
14761     compiler_F77 \
14762     CC_F77 \
14763     LD_F77 \
14764     lt_prog_compiler_wl_F77 \
14765     lt_prog_compiler_pic_F77 \
14766     lt_prog_compiler_static_F77 \
14767     lt_prog_compiler_no_builtin_flag_F77 \
14768     export_dynamic_flag_spec_F77 \
14769     thread_safe_flag_spec_F77 \
14770     whole_archive_flag_spec_F77 \
14771     enable_shared_with_static_runtimes_F77 \
14772     old_archive_cmds_F77 \
14773     old_archive_from_new_cmds_F77 \
14774     predep_objects_F77 \
14775     postdep_objects_F77 \
14776     predeps_F77 \
14777     postdeps_F77 \
14778     compiler_lib_search_path_F77 \
14779     archive_cmds_F77 \
14780     archive_expsym_cmds_F77 \
14781     postinstall_cmds_F77 \
14782     postuninstall_cmds_F77 \
14783     old_archive_from_expsyms_cmds_F77 \
14784     allow_undefined_flag_F77 \
14785     no_undefined_flag_F77 \
14786     export_symbols_cmds_F77 \
14787     hardcode_libdir_flag_spec_F77 \
14788     hardcode_libdir_flag_spec_ld_F77 \
14789     hardcode_libdir_separator_F77 \
14790     hardcode_automatic_F77 \
14791     module_cmds_F77 \
14792     module_expsym_cmds_F77 \
14793     lt_cv_prog_compiler_c_o_F77 \
14794     exclude_expsyms_F77 \
14795     include_expsyms_F77; do
14796
14797     case $var in
14798     old_archive_cmds_F77 | \
14799     old_archive_from_new_cmds_F77 | \
14800     archive_cmds_F77 | \
14801     archive_expsym_cmds_F77 | \
14802     module_cmds_F77 | \
14803     module_expsym_cmds_F77 | \
14804     old_archive_from_expsyms_cmds_F77 | \
14805     export_symbols_cmds_F77 | \
14806     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14807     postinstall_cmds | postuninstall_cmds | \
14808     old_postinstall_cmds | old_postuninstall_cmds | \
14809     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14810       # Double-quote double-evaled strings.
14811       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14812       ;;
14813     *)
14814       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14815       ;;
14816     esac
14817   done
14818
14819   case $lt_echo in
14820   *'\$0 --fallback-echo"')
14821     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14822     ;;
14823   esac
14824
14825 cfgfile="$ofile"
14826
14827   cat <<__EOF__ >> "$cfgfile"
14828 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14829
14830 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14831
14832 # Shell to use when invoking shell scripts.
14833 SHELL=$lt_SHELL
14834
14835 # Whether or not to build shared libraries.
14836 build_libtool_libs=$enable_shared
14837
14838 # Whether or not to build static libraries.
14839 build_old_libs=$enable_static
14840
14841 # Whether or not to add -lc for building shared libraries.
14842 build_libtool_need_lc=$archive_cmds_need_lc_F77
14843
14844 # Whether or not to disallow shared libs when runtime libs are static
14845 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14846
14847 # Whether or not to optimize for fast installation.
14848 fast_install=$enable_fast_install
14849
14850 # The host system.
14851 host_alias=$host_alias
14852 host=$host
14853
14854 # An echo program that does not interpret backslashes.
14855 echo=$lt_echo
14856
14857 # The archiver.
14858 AR=$lt_AR
14859 AR_FLAGS=$lt_AR_FLAGS
14860
14861 # A C compiler.
14862 LTCC=$lt_LTCC
14863
14864 # A language-specific compiler.
14865 CC=$lt_compiler_F77
14866
14867 # Is the compiler the GNU C compiler?
14868 with_gcc=$GCC_F77
14869
14870 # An ERE matcher.
14871 EGREP=$lt_EGREP
14872
14873 # The linker used to build libraries.
14874 LD=$lt_LD_F77
14875
14876 # Whether we need hard or soft links.
14877 LN_S=$lt_LN_S
14878
14879 # A BSD-compatible nm program.
14880 NM=$lt_NM
14881
14882 # A symbol stripping program
14883 STRIP=$lt_STRIP
14884
14885 # Used to examine libraries when file_magic_cmd begins "file"
14886 MAGIC_CMD=$MAGIC_CMD
14887
14888 # Used on cygwin: DLL creation program.
14889 DLLTOOL="$DLLTOOL"
14890
14891 # Used on cygwin: object dumper.
14892 OBJDUMP="$OBJDUMP"
14893
14894 # Used on cygwin: assembler.
14895 AS="$AS"
14896
14897 # The name of the directory that contains temporary libtool files.
14898 objdir=$objdir
14899
14900 # How to create reloadable object files.
14901 reload_flag=$lt_reload_flag
14902 reload_cmds=$lt_reload_cmds
14903
14904 # How to pass a linker flag through the compiler.
14905 wl=$lt_lt_prog_compiler_wl_F77
14906
14907 # Object file suffix (normally "o").
14908 objext="$ac_objext"
14909
14910 # Old archive suffix (normally "a").
14911 libext="$libext"
14912
14913 # Shared library suffix (normally ".so").
14914 shrext='$shrext'
14915
14916 # Executable file suffix (normally "").
14917 exeext="$exeext"
14918
14919 # Additional compiler flags for building library objects.
14920 pic_flag=$lt_lt_prog_compiler_pic_F77
14921 pic_mode=$pic_mode
14922
14923 # What is the maximum length of a command?
14924 max_cmd_len=$lt_cv_sys_max_cmd_len
14925
14926 # Does compiler simultaneously support -c and -o options?
14927 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14928
14929 # Must we lock files when doing compilation ?
14930 need_locks=$lt_need_locks
14931
14932 # Do we need the lib prefix for modules?
14933 need_lib_prefix=$need_lib_prefix
14934
14935 # Do we need a version for libraries?
14936 need_version=$need_version
14937
14938 # Whether dlopen is supported.
14939 dlopen_support=$enable_dlopen
14940
14941 # Whether dlopen of programs is supported.
14942 dlopen_self=$enable_dlopen_self
14943
14944 # Whether dlopen of statically linked programs is supported.
14945 dlopen_self_static=$enable_dlopen_self_static
14946
14947 # Compiler flag to prevent dynamic linking.
14948 link_static_flag=$lt_lt_prog_compiler_static_F77
14949
14950 # Compiler flag to turn off builtin functions.
14951 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14952
14953 # Compiler flag to allow reflexive dlopens.
14954 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14955
14956 # Compiler flag to generate shared objects directly from archives.
14957 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14958
14959 # Compiler flag to generate thread-safe objects.
14960 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14961
14962 # Library versioning type.
14963 version_type=$version_type
14964
14965 # Format of library name prefix.
14966 libname_spec=$lt_libname_spec
14967
14968 # List of archive names.  First name is the real one, the rest are links.
14969 # The last name is the one that the linker finds with -lNAME.
14970 library_names_spec=$lt_library_names_spec
14971
14972 # The coded name of the library, if different from the real name.
14973 soname_spec=$lt_soname_spec
14974
14975 # Commands used to build and install an old-style archive.
14976 RANLIB=$lt_RANLIB
14977 old_archive_cmds=$lt_old_archive_cmds_F77
14978 old_postinstall_cmds=$lt_old_postinstall_cmds
14979 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14980
14981 # Create an old-style archive from a shared archive.
14982 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14983
14984 # Create a temporary old-style archive to link instead of a shared archive.
14985 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14986
14987 # Commands used to build and install a shared archive.
14988 archive_cmds=$lt_archive_cmds_F77
14989 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14990 postinstall_cmds=$lt_postinstall_cmds
14991 postuninstall_cmds=$lt_postuninstall_cmds
14992
14993 # Commands used to build a loadable module (assumed same as above if empty)
14994 module_cmds=$lt_module_cmds_F77
14995 module_expsym_cmds=$lt_module_expsym_cmds_F77
14996
14997 # Commands to strip libraries.
14998 old_striplib=$lt_old_striplib
14999 striplib=$lt_striplib
15000
15001 # Dependencies to place before the objects being linked to create a
15002 # shared library.
15003 predep_objects=$lt_predep_objects_F77
15004
15005 # Dependencies to place after the objects being linked to create a
15006 # shared library.
15007 postdep_objects=$lt_postdep_objects_F77
15008
15009 # Dependencies to place before the objects being linked to create a
15010 # shared library.
15011 predeps=$lt_predeps_F77
15012
15013 # Dependencies to place after the objects being linked to create a
15014 # shared library.
15015 postdeps=$lt_postdeps_F77
15016
15017 # The library search path used internally by the compiler when linking
15018 # a shared library.
15019 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15020
15021 # Method to check whether dependent libraries are shared objects.
15022 deplibs_check_method=$lt_deplibs_check_method
15023
15024 # Command to use when deplibs_check_method == file_magic.
15025 file_magic_cmd=$lt_file_magic_cmd
15026
15027 # Flag that allows shared libraries with undefined symbols to be built.
15028 allow_undefined_flag=$lt_allow_undefined_flag_F77
15029
15030 # Flag that forces no undefined symbols.
15031 no_undefined_flag=$lt_no_undefined_flag_F77
15032
15033 # Commands used to finish a libtool library installation in a directory.
15034 finish_cmds=$lt_finish_cmds
15035
15036 # Same as above, but a single script fragment to be evaled but not shown.
15037 finish_eval=$lt_finish_eval
15038
15039 # Take the output of nm and produce a listing of raw symbols and C names.
15040 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15041
15042 # Transform the output of nm in a proper C declaration
15043 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15044
15045 # Transform the output of nm in a C name address pair
15046 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15047
15048 # This is the shared library runtime path variable.
15049 runpath_var=$runpath_var
15050
15051 # This is the shared library path variable.
15052 shlibpath_var=$shlibpath_var
15053
15054 # Is shlibpath searched before the hard-coded library search path?
15055 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15056
15057 # How to hardcode a shared library path into an executable.
15058 hardcode_action=$hardcode_action_F77
15059
15060 # Whether we should hardcode library paths into libraries.
15061 hardcode_into_libs=$hardcode_into_libs
15062
15063 # Flag to hardcode \$libdir into a binary during linking.
15064 # This must work even if \$libdir does not exist.
15065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15066
15067 # If ld is used when linking, flag to hardcode \$libdir into
15068 # a binary during linking. This must work even if \$libdir does
15069 # not exist.
15070 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15071
15072 # Whether we need a single -rpath flag with a separated argument.
15073 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15074
15075 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15076 # resulting binary.
15077 hardcode_direct=$hardcode_direct_F77
15078
15079 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15080 # resulting binary.
15081 hardcode_minus_L=$hardcode_minus_L_F77
15082
15083 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15084 # the resulting binary.
15085 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15086
15087 # Set to yes if building a shared library automatically hardcodes DIR into the library
15088 # and all subsequent libraries and executables linked against it.
15089 hardcode_automatic=$hardcode_automatic_F77
15090
15091 # Variables whose values should be saved in libtool wrapper scripts and
15092 # restored at relink time.
15093 variables_saved_for_relink="$variables_saved_for_relink"
15094
15095 # Whether libtool must link a program against all its dependency libraries.
15096 link_all_deplibs=$link_all_deplibs_F77
15097
15098 # Compile-time system search path for libraries
15099 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15100
15101 # Run-time system search path for libraries
15102 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15103
15104 # Fix the shell variable \$srcfile for the compiler.
15105 fix_srcfile_path="$fix_srcfile_path_F77"
15106
15107 # Set to yes if exported symbols are required.
15108 always_export_symbols=$always_export_symbols_F77
15109
15110 # The commands to list exported symbols.
15111 export_symbols_cmds=$lt_export_symbols_cmds_F77
15112
15113 # The commands to extract the exported symbol list from a shared archive.
15114 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15115
15116 # Symbols that should not be listed in the preloaded symbols.
15117 exclude_expsyms=$lt_exclude_expsyms_F77
15118
15119 # Symbols that must always be exported.
15120 include_expsyms=$lt_include_expsyms_F77
15121
15122 # ### END LIBTOOL TAG CONFIG: $tagname
15123
15124 __EOF__
15125
15126
15127 else
15128   # If there is no Makefile yet, we rely on a make rule to execute
15129   # `config.status --recheck' to rerun these tests and create the
15130   # libtool script then.
15131   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15132   if test -f "$ltmain_in"; then
15133     test -f Makefile && make "$ltmain"
15134   fi
15135 fi
15136
15137
15138 ac_ext=c
15139 ac_cpp='$CPP $CPPFLAGS'
15140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15143
15144 CC="$lt_save_CC"
15145
15146         else
15147           tagname=""
15148         fi
15149         ;;
15150
15151       GCJ)
15152         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15153
15154
15155
15156 # Source file extension for Java test sources.
15157 ac_ext=java
15158
15159 # Object file extension for compiled Java test sources.
15160 objext=o
15161 objext_GCJ=$objext
15162
15163 # Code to be used in simple compile tests
15164 lt_simple_compile_test_code="class foo {}\n"
15165
15166 # Code to be used in simple link tests
15167 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15168
15169 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15170
15171 # If no C compiler was specified, use CC.
15172 LTCC=${LTCC-"$CC"}
15173
15174 # Allow CC to be a program name with arguments.
15175 compiler=$CC
15176
15177
15178 # Allow CC to be a program name with arguments.
15179 lt_save_CC="$CC"
15180 CC=${GCJ-"gcj"}
15181 compiler=$CC
15182 compiler_GCJ=$CC
15183
15184 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15185 archive_cmds_need_lc_GCJ=no
15186
15187
15188 lt_prog_compiler_no_builtin_flag_GCJ=
15189
15190 if test "$GCC" = yes; then
15191   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15192
15193
15194 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15195 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15196 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15197   echo $ECHO_N "(cached) $ECHO_C" >&6
15198 else
15199   lt_cv_prog_compiler_rtti_exceptions=no
15200   ac_outfile=conftest.$ac_objext
15201    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15202    lt_compiler_flag="-fno-rtti -fno-exceptions"
15203    # Insert the option either (1) after the last *FLAGS variable, or
15204    # (2) before a word containing "conftest.", or (3) at the end.
15205    # Note that $ac_compile itself does not contain backslashes and begins
15206    # with a dollar sign (not a hyphen), so the echo should work correctly.
15207    # The option is referenced via a variable to avoid confusing sed.
15208    lt_compile=`echo "$ac_compile" | $SED \
15209    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15210    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15211    -e 's:$: $lt_compiler_flag:'`
15212    (eval echo "\"\$as_me:15212: $lt_compile\"" >&5)
15213    (eval "$lt_compile" 2>conftest.err)
15214    ac_status=$?
15215    cat conftest.err >&5
15216    echo "$as_me:15216: \$? = $ac_status" >&5
15217    if (exit $ac_status) && test -s "$ac_outfile"; then
15218      # The compiler can only warn and ignore the option if not recognized
15219      # So say no if there are warnings
15220      if test ! -s conftest.err; then
15221        lt_cv_prog_compiler_rtti_exceptions=yes
15222      fi
15223    fi
15224    $rm conftest*
15225
15226 fi
15227 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15228 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15229
15230 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15231     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15232 else
15233     :
15234 fi
15235
15236 fi
15237
15238 lt_prog_compiler_wl_GCJ=
15239 lt_prog_compiler_pic_GCJ=
15240 lt_prog_compiler_static_GCJ=
15241
15242 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15243 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15244
15245   if test "$GCC" = yes; then
15246     lt_prog_compiler_wl_GCJ='-Wl,'
15247     lt_prog_compiler_static_GCJ='-static'
15248
15249     case $host_os in
15250       aix*)
15251       # All AIX code is PIC.
15252       if test "$host_cpu" = ia64; then
15253         # AIX 5 now supports IA64 processor
15254         lt_prog_compiler_static_GCJ='-Bstatic'
15255       fi
15256       ;;
15257
15258     amigaos*)
15259       # FIXME: we need at least 68020 code to build shared libraries, but
15260       # adding the `-m68020' flag to GCC prevents building anything better,
15261       # like `-m68040'.
15262       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15263       ;;
15264
15265     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15266       # PIC is the default for these OSes.
15267       ;;
15268
15269     mingw* | pw32* | os2*)
15270       # This hack is so that the source file can tell whether it is being
15271       # built for inclusion in a dll (and should export symbols for example).
15272       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15273       ;;
15274
15275     darwin* | rhapsody*)
15276       # PIC is the default on this platform
15277       # Common symbols not allowed in MH_DYLIB files
15278       lt_prog_compiler_pic_GCJ='-fno-common'
15279       ;;
15280
15281     msdosdjgpp*)
15282       # Just because we use GCC doesn't mean we suddenly get shared libraries
15283       # on systems that don't support them.
15284       lt_prog_compiler_can_build_shared_GCJ=no
15285       enable_shared=no
15286       ;;
15287
15288     sysv4*MP*)
15289       if test -d /usr/nec; then
15290         lt_prog_compiler_pic_GCJ=-Kconform_pic
15291       fi
15292       ;;
15293
15294     hpux*)
15295       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15296       # not for PA HP-UX.
15297       case "$host_cpu" in
15298       hppa*64*|ia64*)
15299         # +Z the default
15300         ;;
15301       *)
15302         lt_prog_compiler_pic_GCJ='-fPIC'
15303         ;;
15304       esac
15305       ;;
15306
15307     *)
15308       lt_prog_compiler_pic_GCJ='-fPIC'
15309       ;;
15310     esac
15311   else
15312     # PORTME Check for flag to pass linker flags through the system compiler.
15313     case $host_os in
15314     aix*)
15315       lt_prog_compiler_wl_GCJ='-Wl,'
15316       if test "$host_cpu" = ia64; then
15317         # AIX 5 now supports IA64 processor
15318         lt_prog_compiler_static_GCJ='-Bstatic'
15319       else
15320         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15321       fi
15322       ;;
15323
15324     mingw* | pw32* | os2*)
15325       # This hack is so that the source file can tell whether it is being
15326       # built for inclusion in a dll (and should export symbols for example).
15327       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15328       ;;
15329
15330     hpux9* | hpux10* | hpux11*)
15331       lt_prog_compiler_wl_GCJ='-Wl,'
15332       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15333       # not for PA HP-UX.
15334       case "$host_cpu" in
15335       hppa*64*|ia64*)
15336         # +Z the default
15337         ;;
15338       *)
15339         lt_prog_compiler_pic_GCJ='+Z'
15340         ;;
15341       esac
15342       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15343       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15344       ;;
15345
15346     irix5* | irix6* | nonstopux*)
15347       lt_prog_compiler_wl_GCJ='-Wl,'
15348       # PIC (with -KPIC) is the default.
15349       lt_prog_compiler_static_GCJ='-non_shared'
15350       ;;
15351
15352     newsos6)
15353       lt_prog_compiler_pic_GCJ='-KPIC'
15354       lt_prog_compiler_static_GCJ='-Bstatic'
15355       ;;
15356
15357     linux*)
15358       case $CC in
15359       icc* | ecc*)
15360         lt_prog_compiler_wl_GCJ='-Wl,'
15361         lt_prog_compiler_pic_GCJ='-KPIC'
15362         lt_prog_compiler_static_GCJ='-static'
15363         ;;
15364       ccc*)
15365         lt_prog_compiler_wl_GCJ='-Wl,'
15366         # All Alpha code is PIC.
15367         lt_prog_compiler_static_GCJ='-non_shared'
15368         ;;
15369       esac
15370       ;;
15371
15372     osf3* | osf4* | osf5*)
15373       lt_prog_compiler_wl_GCJ='-Wl,'
15374       # All OSF/1 code is PIC.
15375       lt_prog_compiler_static_GCJ='-non_shared'
15376       ;;
15377
15378     sco3.2v5*)
15379       lt_prog_compiler_pic_GCJ='-Kpic'
15380       lt_prog_compiler_static_GCJ='-dn'
15381       ;;
15382
15383     solaris*)
15384       lt_prog_compiler_wl_GCJ='-Wl,'
15385       lt_prog_compiler_pic_GCJ='-KPIC'
15386       lt_prog_compiler_static_GCJ='-Bstatic'
15387       ;;
15388
15389     sunos4*)
15390       lt_prog_compiler_wl_GCJ='-Qoption ld '
15391       lt_prog_compiler_pic_GCJ='-PIC'
15392       lt_prog_compiler_static_GCJ='-Bstatic'
15393       ;;
15394
15395     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15396       lt_prog_compiler_wl_GCJ='-Wl,'
15397       lt_prog_compiler_pic_GCJ='-KPIC'
15398       lt_prog_compiler_static_GCJ='-Bstatic'
15399       ;;
15400
15401     sysv4*MP*)
15402       if test -d /usr/nec ;then
15403         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15404         lt_prog_compiler_static_GCJ='-Bstatic'
15405       fi
15406       ;;
15407
15408     uts4*)
15409       lt_prog_compiler_pic_GCJ='-pic'
15410       lt_prog_compiler_static_GCJ='-Bstatic'
15411       ;;
15412
15413     *)
15414       lt_prog_compiler_can_build_shared_GCJ=no
15415       ;;
15416     esac
15417   fi
15418
15419 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15420 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15421
15422 #
15423 # Check to make sure the PIC flag actually works.
15424 #
15425 if test -n "$lt_prog_compiler_pic_GCJ"; then
15426
15427 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15428 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15429 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15430   echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432   lt_prog_compiler_pic_works_GCJ=no
15433   ac_outfile=conftest.$ac_objext
15434    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15435    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15436    # Insert the option either (1) after the last *FLAGS variable, or
15437    # (2) before a word containing "conftest.", or (3) at the end.
15438    # Note that $ac_compile itself does not contain backslashes and begins
15439    # with a dollar sign (not a hyphen), so the echo should work correctly.
15440    # The option is referenced via a variable to avoid confusing sed.
15441    lt_compile=`echo "$ac_compile" | $SED \
15442    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15443    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15444    -e 's:$: $lt_compiler_flag:'`
15445    (eval echo "\"\$as_me:15445: $lt_compile\"" >&5)
15446    (eval "$lt_compile" 2>conftest.err)
15447    ac_status=$?
15448    cat conftest.err >&5
15449    echo "$as_me:15449: \$? = $ac_status" >&5
15450    if (exit $ac_status) && test -s "$ac_outfile"; then
15451      # The compiler can only warn and ignore the option if not recognized
15452      # So say no if there are warnings
15453      if test ! -s conftest.err; then
15454        lt_prog_compiler_pic_works_GCJ=yes
15455      fi
15456    fi
15457    $rm conftest*
15458
15459 fi
15460 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15461 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15462
15463 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15464     case $lt_prog_compiler_pic_GCJ in
15465      "" | " "*) ;;
15466      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15467      esac
15468 else
15469     lt_prog_compiler_pic_GCJ=
15470      lt_prog_compiler_can_build_shared_GCJ=no
15471 fi
15472
15473 fi
15474 case "$host_os" in
15475   # For platforms which do not support PIC, -DPIC is meaningless:
15476   *djgpp*)
15477     lt_prog_compiler_pic_GCJ=
15478     ;;
15479   *)
15480     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15481     ;;
15482 esac
15483
15484 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15485 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15486 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15487   echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489   lt_cv_prog_compiler_c_o_GCJ=no
15490    $rm -r conftest 2>/dev/null
15491    mkdir conftest
15492    cd conftest
15493    mkdir out
15494    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15495
15496    lt_compiler_flag="-o out/conftest2.$ac_objext"
15497    # Insert the option either (1) after the last *FLAGS variable, or
15498    # (2) before a word containing "conftest.", or (3) at the end.
15499    # Note that $ac_compile itself does not contain backslashes and begins
15500    # with a dollar sign (not a hyphen), so the echo should work correctly.
15501    lt_compile=`echo "$ac_compile" | $SED \
15502    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15504    -e 's:$: $lt_compiler_flag:'`
15505    (eval echo "\"\$as_me:15505: $lt_compile\"" >&5)
15506    (eval "$lt_compile" 2>out/conftest.err)
15507    ac_status=$?
15508    cat out/conftest.err >&5
15509    echo "$as_me:15509: \$? = $ac_status" >&5
15510    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15511    then
15512      # The compiler can only warn and ignore the option if not recognized
15513      # So say no if there are warnings
15514      if test ! -s out/conftest.err; then
15515        lt_cv_prog_compiler_c_o_GCJ=yes
15516      fi
15517    fi
15518    chmod u+w .
15519    $rm conftest*
15520    # SGI C++ compiler will create directory out/ii_files/ for
15521    # template instantiation
15522    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15523    $rm out/* && rmdir out
15524    cd ..
15525    rmdir conftest
15526    $rm conftest*
15527
15528 fi
15529 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15530 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15531
15532
15533 hard_links="nottested"
15534 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15535   # do not overwrite the value of need_locks provided by the user
15536   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15537 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15538   hard_links=yes
15539   $rm conftest*
15540   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15541   touch conftest.a
15542   ln conftest.a conftest.b 2>&5 || hard_links=no
15543   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15544   echo "$as_me:$LINENO: result: $hard_links" >&5
15545 echo "${ECHO_T}$hard_links" >&6
15546   if test "$hard_links" = no; then
15547     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15548 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15549     need_locks=warn
15550   fi
15551 else
15552   need_locks=no
15553 fi
15554
15555 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15556 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15557
15558   runpath_var=
15559   allow_undefined_flag_GCJ=
15560   enable_shared_with_static_runtimes_GCJ=no
15561   archive_cmds_GCJ=
15562   archive_expsym_cmds_GCJ=
15563   old_archive_From_new_cmds_GCJ=
15564   old_archive_from_expsyms_cmds_GCJ=
15565   export_dynamic_flag_spec_GCJ=
15566   whole_archive_flag_spec_GCJ=
15567   thread_safe_flag_spec_GCJ=
15568   hardcode_libdir_flag_spec_GCJ=
15569   hardcode_libdir_flag_spec_ld_GCJ=
15570   hardcode_libdir_separator_GCJ=
15571   hardcode_direct_GCJ=no
15572   hardcode_minus_L_GCJ=no
15573   hardcode_shlibpath_var_GCJ=unsupported
15574   link_all_deplibs_GCJ=unknown
15575   hardcode_automatic_GCJ=no
15576   module_cmds_GCJ=
15577   module_expsym_cmds_GCJ=
15578   always_export_symbols_GCJ=no
15579   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15580   # include_expsyms should be a list of space-separated symbols to be *always*
15581   # included in the symbol list
15582   include_expsyms_GCJ=
15583   # exclude_expsyms can be an extended regexp of symbols to exclude
15584   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15585   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15586   # as well as any symbol that contains `d'.
15587   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15588   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15589   # platforms (ab)use it in PIC code, but their linkers get confused if
15590   # the symbol is explicitly referenced.  Since portable code cannot
15591   # rely on this symbol name, it's probably fine to never include it in
15592   # preloaded symbol tables.
15593   extract_expsyms_cmds=
15594
15595   case $host_os in
15596   cygwin* | mingw* | pw32*)
15597     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15598     # When not using gcc, we currently assume that we are using
15599     # Microsoft Visual C++.
15600     if test "$GCC" != yes; then
15601       with_gnu_ld=no
15602     fi
15603     ;;
15604   openbsd*)
15605     with_gnu_ld=no
15606     ;;
15607   esac
15608
15609   ld_shlibs_GCJ=yes
15610   if test "$with_gnu_ld" = yes; then
15611     # If archive_cmds runs LD, not CC, wlarc should be empty
15612     wlarc='${wl}'
15613
15614     # See if GNU ld supports shared libraries.
15615     case $host_os in
15616     aix3* | aix4* | aix5*)
15617       # On AIX/PPC, the GNU linker is very broken
15618       if test "$host_cpu" != ia64; then
15619         ld_shlibs_GCJ=no
15620         cat <<EOF 1>&2
15621
15622 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15623 *** to be unable to reliably create shared libraries on AIX.
15624 *** Therefore, libtool is disabling shared libraries support.  If you
15625 *** really care for shared libraries, you may want to modify your PATH
15626 *** so that a non-GNU linker is found, and then restart.
15627
15628 EOF
15629       fi
15630       ;;
15631
15632     amigaos*)
15633       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15634       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15635       hardcode_minus_L_GCJ=yes
15636
15637       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15638       # that the semantics of dynamic libraries on AmigaOS, at least up
15639       # to version 4, is to share data among multiple programs linked
15640       # with the same dynamic library.  Since this doesn't match the
15641       # behavior of shared libraries on other platforms, we can't use
15642       # them.
15643       ld_shlibs_GCJ=no
15644       ;;
15645
15646     beos*)
15647       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15648         allow_undefined_flag_GCJ=unsupported
15649         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15650         # support --undefined.  This deserves some investigation.  FIXME
15651         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15652       else
15653         ld_shlibs_GCJ=no
15654       fi
15655       ;;
15656
15657     cygwin* | mingw* | pw32*)
15658       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15659       # as there is no search path for DLLs.
15660       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15661       allow_undefined_flag_GCJ=unsupported
15662       always_export_symbols_GCJ=no
15663       enable_shared_with_static_runtimes_GCJ=yes
15664       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15665
15666       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15667         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15668         # If the export-symbols file already is a .def file (1st line
15669         # is EXPORTS), use it as is; otherwise, prepend...
15670         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15671           cp $export_symbols $output_objdir/$soname.def;
15672         else
15673           echo EXPORTS > $output_objdir/$soname.def;
15674           cat $export_symbols >> $output_objdir/$soname.def;
15675         fi~
15676         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15677       else
15678         ld_shlibs=no
15679       fi
15680       ;;
15681
15682     netbsd*)
15683       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15684         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15685         wlarc=
15686       else
15687         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15688         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15689       fi
15690       ;;
15691
15692     solaris* | sysv5*)
15693       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15694         ld_shlibs_GCJ=no
15695         cat <<EOF 1>&2
15696
15697 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15698 *** create shared libraries on Solaris systems.  Therefore, libtool
15699 *** is disabling shared libraries support.  We urge you to upgrade GNU
15700 *** binutils to release 2.9.1 or newer.  Another option is to modify
15701 *** your PATH or compiler configuration so that the native linker is
15702 *** used, and then restart.
15703
15704 EOF
15705       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15706         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15707         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15708       else
15709         ld_shlibs_GCJ=no
15710       fi
15711       ;;
15712
15713     sunos4*)
15714       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15715       wlarc=
15716       hardcode_direct_GCJ=yes
15717       hardcode_shlibpath_var_GCJ=no
15718       ;;
15719
15720   linux*)
15721     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15722         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15723         archive_cmds_GCJ="$tmp_archive_cmds"
15724       supports_anon_versioning=no
15725       case `$LD -v 2>/dev/null` in
15726         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15727         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15728         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15729         *\ 2.11.*) ;; # other 2.11 versions
15730         *) supports_anon_versioning=yes ;;
15731       esac
15732       if test $supports_anon_versioning = yes; then
15733         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15735 $echo "local: *; };" >> $output_objdir/$libname.ver~
15736         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15737       else
15738         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15739       fi
15740     else
15741       ld_shlibs_GCJ=no
15742     fi
15743     ;;
15744
15745     *)
15746       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15747         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15748         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15749       else
15750         ld_shlibs_GCJ=no
15751       fi
15752       ;;
15753     esac
15754
15755     if test "$ld_shlibs_GCJ" = yes; then
15756       runpath_var=LD_RUN_PATH
15757       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15758       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15759       # ancient GNU ld didn't support --whole-archive et. al.
15760       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15761         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15762       else
15763         whole_archive_flag_spec_GCJ=
15764       fi
15765     fi
15766   else
15767     # PORTME fill in a description of your system's linker (not GNU ld)
15768     case $host_os in
15769     aix3*)
15770       allow_undefined_flag_GCJ=unsupported
15771       always_export_symbols_GCJ=yes
15772       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15773       # Note: this linker hardcodes the directories in LIBPATH if there
15774       # are no directories specified by -L.
15775       hardcode_minus_L_GCJ=yes
15776       if test "$GCC" = yes && test -z "$link_static_flag"; then
15777         # Neither direct hardcoding nor static linking is supported with a
15778         # broken collect2.
15779         hardcode_direct_GCJ=unsupported
15780       fi
15781       ;;
15782
15783     aix4* | aix5*)
15784       if test "$host_cpu" = ia64; then
15785         # On IA64, the linker does run time linking by default, so we don't
15786         # have to do anything special.
15787         aix_use_runtimelinking=no
15788         exp_sym_flag='-Bexport'
15789         no_entry_flag=""
15790       else
15791         # If we're using GNU nm, then we don't want the "-C" option.
15792         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15793         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15794           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15795         else
15796           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15797         fi
15798         aix_use_runtimelinking=no
15799
15800         # Test if we are trying to use run time linking or normal
15801         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15802         # need to do runtime linking.
15803         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15804           for ld_flag in $LDFLAGS; do
15805           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15806             aix_use_runtimelinking=yes
15807             break
15808           fi
15809           done
15810         esac
15811
15812         exp_sym_flag='-bexport'
15813         no_entry_flag='-bnoentry'
15814       fi
15815
15816       # When large executables or shared objects are built, AIX ld can
15817       # have problems creating the table of contents.  If linking a library
15818       # or program results in "error TOC overflow" add -mminimal-toc to
15819       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15820       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15821
15822       archive_cmds_GCJ=''
15823       hardcode_direct_GCJ=yes
15824       hardcode_libdir_separator_GCJ=':'
15825       link_all_deplibs_GCJ=yes
15826
15827       if test "$GCC" = yes; then
15828         case $host_os in aix4.012|aix4.012.*)
15829         # We only want to do this on AIX 4.2 and lower, the check
15830         # below for broken collect2 doesn't work under 4.3+
15831           collect2name=`${CC} -print-prog-name=collect2`
15832           if test -f "$collect2name" && \
15833            strings "$collect2name" | grep resolve_lib_name >/dev/null
15834           then
15835           # We have reworked collect2
15836           hardcode_direct_GCJ=yes
15837           else
15838           # We have old collect2
15839           hardcode_direct_GCJ=unsupported
15840           # It fails to find uninstalled libraries when the uninstalled
15841           # path is not listed in the libpath.  Setting hardcode_minus_L
15842           # to unsupported forces relinking
15843           hardcode_minus_L_GCJ=yes
15844           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15845           hardcode_libdir_separator_GCJ=
15846           fi
15847         esac
15848         shared_flag='-shared'
15849       else
15850         # not using gcc
15851         if test "$host_cpu" = ia64; then
15852         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15853         # chokes on -Wl,-G. The following line is correct:
15854           shared_flag='-G'
15855         else
15856         if test "$aix_use_runtimelinking" = yes; then
15857             shared_flag='${wl}-G'
15858           else
15859             shared_flag='${wl}-bM:SRE'
15860         fi
15861         fi
15862       fi
15863
15864       # It seems that -bexpall does not export symbols beginning with
15865       # underscore (_), so it is better to generate a list of symbols to export.
15866       always_export_symbols_GCJ=yes
15867       if test "$aix_use_runtimelinking" = yes; then
15868         # Warning - without using the other runtime loading flags (-brtl),
15869         # -berok will link without error, but may produce a broken library.
15870         allow_undefined_flag_GCJ='-berok'
15871        # Determine the default libpath from the value encoded in an empty executable.
15872        cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h.  */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h.  */
15878
15879 int
15880 main ()
15881 {
15882
15883   ;
15884   return 0;
15885 }
15886 _ACEOF
15887 rm -f conftest.$ac_objext conftest$ac_exeext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15889   (eval $ac_link) 2>conftest.er1
15890   ac_status=$?
15891   grep -v '^ *+' conftest.er1 >conftest.err
15892   rm -f conftest.er1
15893   cat conftest.err >&5
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); } &&
15896          { ac_try='test -z "$ac_c_werror_flag"
15897                          || test ! -s conftest.err'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; } &&
15903          { ac_try='test -s conftest$ac_exeext'
15904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905   (eval $ac_try) 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); }; }; then
15909
15910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15911 }'`
15912 # Check for a 64-bit object if we didn't find anything.
15913 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15914 }'`; fi
15915 else
15916   echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15918
15919 fi
15920 rm -f conftest.err conftest.$ac_objext \
15921       conftest$ac_exeext conftest.$ac_ext
15922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15923
15924        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15925         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15926        else
15927         if test "$host_cpu" = ia64; then
15928           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15929           allow_undefined_flag_GCJ="-z nodefs"
15930           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15931         else
15932          # Determine the default libpath from the value encoded in an empty executable.
15933          cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h.  */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h.  */
15939
15940 int
15941 main ()
15942 {
15943
15944   ;
15945   return 0;
15946 }
15947 _ACEOF
15948 rm -f conftest.$ac_objext conftest$ac_exeext
15949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15950   (eval $ac_link) 2>conftest.er1
15951   ac_status=$?
15952   grep -v '^ *+' conftest.er1 >conftest.err
15953   rm -f conftest.er1
15954   cat conftest.err >&5
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } &&
15957          { ac_try='test -z "$ac_c_werror_flag"
15958                          || test ! -s conftest.err'
15959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960   (eval $ac_try) 2>&5
15961   ac_status=$?
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); }; } &&
15964          { ac_try='test -s conftest$ac_exeext'
15965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966   (eval $ac_try) 2>&5
15967   ac_status=$?
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); }; }; then
15970
15971 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15972 }'`
15973 # Check for a 64-bit object if we didn't find anything.
15974 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15975 }'`; fi
15976 else
15977   echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15979
15980 fi
15981 rm -f conftest.err conftest.$ac_objext \
15982       conftest$ac_exeext conftest.$ac_ext
15983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15984
15985          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15986           # Warning - without using the other run time loading flags,
15987           # -berok will link without error, but may produce a broken library.
15988           no_undefined_flag_GCJ=' ${wl}-bernotok'
15989           allow_undefined_flag_GCJ=' ${wl}-berok'
15990           # -bexpall does not export symbols beginning with underscore (_)
15991           always_export_symbols_GCJ=yes
15992           # Exported symbols can be pulled into shared objects from archives
15993           whole_archive_flag_spec_GCJ=' '
15994           archive_cmds_need_lc_GCJ=yes
15995           # This is similar to how AIX traditionally builds it's shared libraries.
15996           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15997         fi
15998       fi
15999       ;;
16000
16001     amigaos*)
16002       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16003       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16004       hardcode_minus_L_GCJ=yes
16005       # see comment about different semantics on the GNU ld section
16006       ld_shlibs_GCJ=no
16007       ;;
16008
16009     bsdi4*)
16010       export_dynamic_flag_spec_GCJ=-rdynamic
16011       ;;
16012
16013     cygwin* | mingw* | pw32*)
16014       # When not using gcc, we currently assume that we are using
16015       # Microsoft Visual C++.
16016       # hardcode_libdir_flag_spec is actually meaningless, as there is
16017       # no search path for DLLs.
16018       hardcode_libdir_flag_spec_GCJ=' '
16019       allow_undefined_flag_GCJ=unsupported
16020       # Tell ltmain to make .lib files, not .a files.
16021       libext=lib
16022       # Tell ltmain to make .dll files, not .so files.
16023       shrext=".dll"
16024       # FIXME: Setting linknames here is a bad hack.
16025       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16026       # The linker will automatically build a .lib file if we build a DLL.
16027       old_archive_From_new_cmds_GCJ='true'
16028       # FIXME: Should let the user specify the lib program.
16029       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16030       fix_srcfile_path='`cygpath -w "$srcfile"`'
16031       enable_shared_with_static_runtimes_GCJ=yes
16032       ;;
16033
16034     darwin* | rhapsody*)
16035     if test "$GXX" = yes ; then
16036       archive_cmds_need_lc_GCJ=no
16037       case "$host_os" in
16038       rhapsody* | darwin1.[012])
16039         allow_undefined_flag_GCJ='-undefined suppress'
16040         ;;
16041       *) # Darwin 1.3 on
16042       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16043         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16044       else
16045         case ${MACOSX_DEPLOYMENT_TARGET} in
16046           10.[012])
16047             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16048             ;;
16049           10.*)
16050             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16051             ;;
16052         esac
16053       fi
16054         ;;
16055       esac
16056         lt_int_apple_cc_single_mod=no
16057         output_verbose_link_cmd='echo'
16058         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16059           lt_int_apple_cc_single_mod=yes
16060         fi
16061         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16062           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16063         else
16064         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16065       fi
16066       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16067       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16068         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16069           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16070         else
16071           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16072         fi
16073           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16074       hardcode_direct_GCJ=no
16075       hardcode_automatic_GCJ=yes
16076       hardcode_shlibpath_var_GCJ=unsupported
16077       whole_archive_flag_spec_GCJ='-all_load $convenience'
16078       link_all_deplibs_GCJ=yes
16079     else
16080       ld_shlibs_GCJ=no
16081     fi
16082       ;;
16083
16084     dgux*)
16085       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16087       hardcode_shlibpath_var_GCJ=no
16088       ;;
16089
16090     freebsd1*)
16091       ld_shlibs_GCJ=no
16092       ;;
16093
16094     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16095     # support.  Future versions do this automatically, but an explicit c++rt0.o
16096     # does not break anything, and helps significantly (at the cost of a little
16097     # extra space).
16098     freebsd2.2*)
16099       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16100       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16101       hardcode_direct_GCJ=yes
16102       hardcode_shlibpath_var_GCJ=no
16103       ;;
16104
16105     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16106     freebsd2*)
16107       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16108       hardcode_direct_GCJ=yes
16109       hardcode_minus_L_GCJ=yes
16110       hardcode_shlibpath_var_GCJ=no
16111       ;;
16112
16113     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16114     freebsd* | kfreebsd*-gnu)
16115       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16116       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16117       hardcode_direct_GCJ=yes
16118       hardcode_shlibpath_var_GCJ=no
16119       ;;
16120
16121     hpux9*)
16122       if test "$GCC" = yes; then
16123         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16124       else
16125         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16126       fi
16127       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16128       hardcode_libdir_separator_GCJ=:
16129       hardcode_direct_GCJ=yes
16130
16131       # hardcode_minus_L: Not really in the search PATH,
16132       # but as the default location of the library.
16133       hardcode_minus_L_GCJ=yes
16134       export_dynamic_flag_spec_GCJ='${wl}-E'
16135       ;;
16136
16137     hpux10* | hpux11*)
16138       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16139         case "$host_cpu" in
16140         hppa*64*|ia64*)
16141           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16142           ;;
16143         *)
16144           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16145           ;;
16146         esac
16147       else
16148         case "$host_cpu" in
16149         hppa*64*|ia64*)
16150           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16151           ;;
16152         *)
16153           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16154           ;;
16155         esac
16156       fi
16157       if test "$with_gnu_ld" = no; then
16158         case "$host_cpu" in
16159         hppa*64*)
16160           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16161           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16162           hardcode_libdir_separator_GCJ=:
16163           hardcode_direct_GCJ=no
16164           hardcode_shlibpath_var_GCJ=no
16165           ;;
16166         ia64*)
16167           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16168           hardcode_direct_GCJ=no
16169           hardcode_shlibpath_var_GCJ=no
16170
16171           # hardcode_minus_L: Not really in the search PATH,
16172           # but as the default location of the library.
16173           hardcode_minus_L_GCJ=yes
16174           ;;
16175         *)
16176           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16177           hardcode_libdir_separator_GCJ=:
16178           hardcode_direct_GCJ=yes
16179           export_dynamic_flag_spec_GCJ='${wl}-E'
16180
16181           # hardcode_minus_L: Not really in the search PATH,
16182           # but as the default location of the library.
16183           hardcode_minus_L_GCJ=yes
16184           ;;
16185         esac
16186       fi
16187       ;;
16188
16189     irix5* | irix6* | nonstopux*)
16190       if test "$GCC" = yes; then
16191         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16192       else
16193         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16194         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16195       fi
16196       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16197       hardcode_libdir_separator_GCJ=:
16198       link_all_deplibs_GCJ=yes
16199       ;;
16200
16201     netbsd*)
16202       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16203         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16204       else
16205         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16206       fi
16207       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16208       hardcode_direct_GCJ=yes
16209       hardcode_shlibpath_var_GCJ=no
16210       ;;
16211
16212     newsos6)
16213       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16214       hardcode_direct_GCJ=yes
16215       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16216       hardcode_libdir_separator_GCJ=:
16217       hardcode_shlibpath_var_GCJ=no
16218       ;;
16219
16220     openbsd*)
16221       hardcode_direct_GCJ=yes
16222       hardcode_shlibpath_var_GCJ=no
16223       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16224         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16225         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16226         export_dynamic_flag_spec_GCJ='${wl}-E'
16227       else
16228        case $host_os in
16229          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16230            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16231            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16232            ;;
16233          *)
16234            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16235            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16236            ;;
16237        esac
16238       fi
16239       ;;
16240
16241     os2*)
16242       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16243       hardcode_minus_L_GCJ=yes
16244       allow_undefined_flag_GCJ=unsupported
16245       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16246       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16247       ;;
16248
16249     osf3*)
16250       if test "$GCC" = yes; then
16251         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16252         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16253       else
16254         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16255         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16256       fi
16257       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16258       hardcode_libdir_separator_GCJ=:
16259       ;;
16260
16261     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16262       if test "$GCC" = yes; then
16263         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16264         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16265         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16266       else
16267         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16268         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16269         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16270         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16271
16272         # Both c and cxx compiler support -rpath directly
16273         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16274       fi
16275       hardcode_libdir_separator_GCJ=:
16276       ;;
16277
16278     sco3.2v5*)
16279       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16280       hardcode_shlibpath_var_GCJ=no
16281       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16282       runpath_var=LD_RUN_PATH
16283       hardcode_runpath_var=yes
16284       ;;
16285
16286     solaris*)
16287       no_undefined_flag_GCJ=' -z text'
16288       if test "$GCC" = yes; then
16289         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16290         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16291           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16292       else
16293         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16294         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16295         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16296       fi
16297       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16298       hardcode_shlibpath_var_GCJ=no
16299       case $host_os in
16300       solaris2.[0-5] | solaris2.[0-5].*) ;;
16301       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16302         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16303       esac
16304       link_all_deplibs_GCJ=yes
16305       ;;
16306
16307     sunos4*)
16308       if test "x$host_vendor" = xsequent; then
16309         # Use $CC to link under sequent, because it throws in some extra .o
16310         # files that make .init and .fini sections work.
16311         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16312       else
16313         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16314       fi
16315       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16316       hardcode_direct_GCJ=yes
16317       hardcode_minus_L_GCJ=yes
16318       hardcode_shlibpath_var_GCJ=no
16319       ;;
16320
16321     sysv4)
16322       case $host_vendor in
16323         sni)
16324           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16325           hardcode_direct_GCJ=yes # is this really true???
16326         ;;
16327         siemens)
16328           ## LD is ld it makes a PLAMLIB
16329           ## CC just makes a GrossModule.
16330           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16331           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16332           hardcode_direct_GCJ=no
16333         ;;
16334         motorola)
16335           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16336           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16337         ;;
16338       esac
16339       runpath_var='LD_RUN_PATH'
16340       hardcode_shlibpath_var_GCJ=no
16341       ;;
16342
16343     sysv4.3*)
16344       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16345       hardcode_shlibpath_var_GCJ=no
16346       export_dynamic_flag_spec_GCJ='-Bexport'
16347       ;;
16348
16349     sysv4*MP*)
16350       if test -d /usr/nec; then
16351         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16352         hardcode_shlibpath_var_GCJ=no
16353         runpath_var=LD_RUN_PATH
16354         hardcode_runpath_var=yes
16355         ld_shlibs_GCJ=yes
16356       fi
16357       ;;
16358
16359     sysv4.2uw2*)
16360       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16361       hardcode_direct_GCJ=yes
16362       hardcode_minus_L_GCJ=no
16363       hardcode_shlibpath_var_GCJ=no
16364       hardcode_runpath_var=yes
16365       runpath_var=LD_RUN_PATH
16366       ;;
16367
16368    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16369       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16370       if test "$GCC" = yes; then
16371         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16372       else
16373         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16374       fi
16375       runpath_var='LD_RUN_PATH'
16376       hardcode_shlibpath_var_GCJ=no
16377       ;;
16378
16379     sysv5*)
16380       no_undefined_flag_GCJ=' -z text'
16381       # $CC -shared without GNU ld will not create a library from C++
16382       # object files and a static libstdc++, better avoid it by now
16383       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16384       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16385                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16386       hardcode_libdir_flag_spec_GCJ=
16387       hardcode_shlibpath_var_GCJ=no
16388       runpath_var='LD_RUN_PATH'
16389       ;;
16390
16391     uts4*)
16392       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16393       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16394       hardcode_shlibpath_var_GCJ=no
16395       ;;
16396
16397     *)
16398       ld_shlibs_GCJ=no
16399       ;;
16400     esac
16401   fi
16402
16403 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16404 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16405 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16406
16407 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16408 if test "$GCC" = yes; then
16409   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16410 fi
16411
16412 #
16413 # Do we need to explicitly link libc?
16414 #
16415 case "x$archive_cmds_need_lc_GCJ" in
16416 x|xyes)
16417   # Assume -lc should be added
16418   archive_cmds_need_lc_GCJ=yes
16419
16420   if test "$enable_shared" = yes && test "$GCC" = yes; then
16421     case $archive_cmds_GCJ in
16422     *'~'*)
16423       # FIXME: we may have to deal with multi-command sequences.
16424       ;;
16425     '$CC '*)
16426       # Test whether the compiler implicitly links with -lc since on some
16427       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16428       # to ld, don't add -lc before -lgcc.
16429       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16430 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16431       $rm conftest*
16432       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16433
16434       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16435   (eval $ac_compile) 2>&5
16436   ac_status=$?
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); } 2>conftest.err; then
16439         soname=conftest
16440         lib=conftest
16441         libobjs=conftest.$ac_objext
16442         deplibs=
16443         wl=$lt_prog_compiler_wl_GCJ
16444         compiler_flags=-v
16445         linker_flags=-v
16446         verstring=
16447         output_objdir=.
16448         libname=conftest
16449         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16450         allow_undefined_flag_GCJ=
16451         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16452   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16453   ac_status=$?
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); }
16456         then
16457           archive_cmds_need_lc_GCJ=no
16458         else
16459           archive_cmds_need_lc_GCJ=yes
16460         fi
16461         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16462       else
16463         cat conftest.err 1>&5
16464       fi
16465       $rm conftest*
16466       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16467 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16468       ;;
16469     esac
16470   fi
16471   ;;
16472 esac
16473
16474 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16476 library_names_spec=
16477 libname_spec='lib$name'
16478 soname_spec=
16479 shrext=".so"
16480 postinstall_cmds=
16481 postuninstall_cmds=
16482 finish_cmds=
16483 finish_eval=
16484 shlibpath_var=
16485 shlibpath_overrides_runpath=unknown
16486 version_type=none
16487 dynamic_linker="$host_os ld.so"
16488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16489 if test "$GCC" = yes; then
16490   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16491   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16492     # if the path contains ";" then we assume it to be the separator
16493     # otherwise default to the standard path separator (i.e. ":") - it is
16494     # assumed that no part of a normal pathname contains ";" but that should
16495     # okay in the real world where ";" in dirpaths is itself problematic.
16496     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16497   else
16498     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16499   fi
16500 else
16501   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16502 fi
16503 need_lib_prefix=unknown
16504 hardcode_into_libs=no
16505
16506 # when you set need_version to no, make sure it does not cause -set_version
16507 # flags to be left without arguments
16508 need_version=unknown
16509
16510 case $host_os in
16511 aix3*)
16512   version_type=linux
16513   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16514   shlibpath_var=LIBPATH
16515
16516   # AIX 3 has no versioning support, so we append a major version to the name.
16517   soname_spec='${libname}${release}${shared_ext}$major'
16518   ;;
16519
16520 aix4* | aix5*)
16521   version_type=linux
16522   need_lib_prefix=no
16523   need_version=no
16524   hardcode_into_libs=yes
16525   if test "$host_cpu" = ia64; then
16526     # AIX 5 supports IA64
16527     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16528     shlibpath_var=LD_LIBRARY_PATH
16529   else
16530     # With GCC up to 2.95.x, collect2 would create an import file
16531     # for dependence libraries.  The import file would start with
16532     # the line `#! .'.  This would cause the generated library to
16533     # depend on `.', always an invalid library.  This was fixed in
16534     # development snapshots of GCC prior to 3.0.
16535     case $host_os in
16536       aix4 | aix4.[01] | aix4.[01].*)
16537       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16538            echo ' yes '
16539            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16540         :
16541       else
16542         can_build_shared=no
16543       fi
16544       ;;
16545     esac
16546     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16547     # soname into executable. Probably we can add versioning support to
16548     # collect2, so additional links can be useful in future.
16549     if test "$aix_use_runtimelinking" = yes; then
16550       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16551       # instead of lib<name>.a to let people know that these are not
16552       # typical AIX shared libraries.
16553       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554     else
16555       # We preserve .a as extension for shared libraries through AIX4.2
16556       # and later when we are not doing run time linking.
16557       library_names_spec='${libname}${release}.a $libname.a'
16558       soname_spec='${libname}${release}${shared_ext}$major'
16559     fi
16560     shlibpath_var=LIBPATH
16561   fi
16562   ;;
16563
16564 amigaos*)
16565   library_names_spec='$libname.ixlibrary $libname.a'
16566   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16567   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'
16568   ;;
16569
16570 beos*)
16571   library_names_spec='${libname}${shared_ext}'
16572   dynamic_linker="$host_os ld.so"
16573   shlibpath_var=LIBRARY_PATH
16574   ;;
16575
16576 bsdi4*)
16577   version_type=linux
16578   need_version=no
16579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16580   soname_spec='${libname}${release}${shared_ext}$major'
16581   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16582   shlibpath_var=LD_LIBRARY_PATH
16583   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16584   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16585   # the default ld.so.conf also contains /usr/contrib/lib and
16586   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16587   # libtool to hard-code these into programs
16588   ;;
16589
16590 cygwin* | mingw* | pw32*)
16591   version_type=windows
16592   shrext=".dll"
16593   need_version=no
16594   need_lib_prefix=no
16595
16596   case $GCC,$host_os in
16597   yes,cygwin* | yes,mingw* | yes,pw32*)
16598     library_names_spec='$libname.dll.a'
16599     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16600     postinstall_cmds='base_file=`basename \${file}`~
16601       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16602       dldir=$destdir/`dirname \$dlpath`~
16603       test -d \$dldir || mkdir -p \$dldir~
16604       $install_prog $dir/$dlname \$dldir/$dlname'
16605     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16606       dlpath=$dir/\$dldll~
16607        $rm \$dlpath'
16608     shlibpath_overrides_runpath=yes
16609
16610     case $host_os in
16611     cygwin*)
16612       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16613       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16614       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16615       ;;
16616     mingw*)
16617       # MinGW DLLs use traditional 'lib' prefix
16618       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16619       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16620       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16621         # It is most probably a Windows format PATH printed by
16622         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16623         # path with ; separators, and with drive letters. We can handle the
16624         # drive letters (cygwin fileutils understands them), so leave them,
16625         # especially as we might pass files found there to a mingw objdump,
16626         # which wouldn't understand a cygwinified path. Ahh.
16627         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16628       else
16629         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16630       fi
16631       ;;
16632     pw32*)
16633       # pw32 DLLs use 'pw' prefix rather than 'lib'
16634       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16635       ;;
16636     esac
16637     ;;
16638
16639   linux*)
16640     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16641       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16642       supports_anon_versioning=no
16643       case `$LD -v 2>/dev/null` in
16644         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16645         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16646         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16647         *\ 2.11.*) ;; # other 2.11 versions
16648         *) supports_anon_versioning=yes ;;
16649       esac
16650       if test $supports_anon_versioning = yes; then
16651         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16653 $echo "local: *; };" >> $output_objdir/$libname.ver~
16654         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16655       else
16656         $archive_expsym_cmds="$archive_cmds"
16657       fi
16658     else
16659       ld_shlibs=no
16660     fi
16661     ;;
16662
16663   *)
16664     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16665     ;;
16666   esac
16667   dynamic_linker='Win32 ld.exe'
16668   # FIXME: first we should search . and the directory the executable is in
16669   shlibpath_var=PATH
16670   ;;
16671
16672 darwin* | rhapsody*)
16673   dynamic_linker="$host_os dyld"
16674   version_type=darwin
16675   need_lib_prefix=no
16676   need_version=no
16677   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16678   soname_spec='${libname}${release}${major}$shared_ext'
16679   shlibpath_overrides_runpath=yes
16680   shlibpath_var=DYLD_LIBRARY_PATH
16681   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16682   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16683   if test "$GCC" = yes; then
16684     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16685   else
16686     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16687   fi
16688   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16689   ;;
16690
16691 dgux*)
16692   version_type=linux
16693   need_lib_prefix=no
16694   need_version=no
16695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16696   soname_spec='${libname}${release}${shared_ext}$major'
16697   shlibpath_var=LD_LIBRARY_PATH
16698   ;;
16699
16700 freebsd1*)
16701   dynamic_linker=no
16702   ;;
16703
16704 kfreebsd*-gnu)
16705   version_type=linux
16706   need_lib_prefix=no
16707   need_version=no
16708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16709   soname_spec='${libname}${release}${shared_ext}$major'
16710   shlibpath_var=LD_LIBRARY_PATH
16711   shlibpath_overrides_runpath=no
16712   hardcode_into_libs=yes
16713   dynamic_linker='GNU ld.so'
16714   ;;
16715
16716 freebsd*)
16717   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16718   version_type=freebsd-$objformat
16719   case $version_type in
16720     freebsd-elf*)
16721       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16722       need_version=no
16723       need_lib_prefix=no
16724       ;;
16725     freebsd-*)
16726       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16727       need_version=yes
16728       ;;
16729   esac
16730   shlibpath_var=LD_LIBRARY_PATH
16731   case $host_os in
16732   freebsd2*)
16733     shlibpath_overrides_runpath=yes
16734     ;;
16735   freebsd3.01* | freebsdelf3.01*)
16736     shlibpath_overrides_runpath=yes
16737     hardcode_into_libs=yes
16738     ;;
16739   *) # from 3.2 on
16740     shlibpath_overrides_runpath=no
16741     hardcode_into_libs=yes
16742     ;;
16743   esac
16744   ;;
16745
16746 gnu*)
16747   version_type=linux
16748   need_lib_prefix=no
16749   need_version=no
16750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16751   soname_spec='${libname}${release}${shared_ext}$major'
16752   shlibpath_var=LD_LIBRARY_PATH
16753   hardcode_into_libs=yes
16754   ;;
16755
16756 hpux9* | hpux10* | hpux11*)
16757   # Give a soname corresponding to the major version so that dld.sl refuses to
16758   # link against other versions.
16759   version_type=sunos
16760   need_lib_prefix=no
16761   need_version=no
16762   case "$host_cpu" in
16763   ia64*)
16764     shrext='.so'
16765     hardcode_into_libs=yes
16766     dynamic_linker="$host_os dld.so"
16767     shlibpath_var=LD_LIBRARY_PATH
16768     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16770     soname_spec='${libname}${release}${shared_ext}$major'
16771     if test "X$HPUX_IA64_MODE" = X32; then
16772       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16773     else
16774       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16775     fi
16776     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16777     ;;
16778    hppa*64*)
16779      shrext='.sl'
16780      hardcode_into_libs=yes
16781      dynamic_linker="$host_os dld.sl"
16782      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16783      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16784      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785      soname_spec='${libname}${release}${shared_ext}$major'
16786      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16787      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16788      ;;
16789    *)
16790     shrext='.sl'
16791     dynamic_linker="$host_os dld.sl"
16792     shlibpath_var=SHLIB_PATH
16793     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795     soname_spec='${libname}${release}${shared_ext}$major'
16796     ;;
16797   esac
16798   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16799   postinstall_cmds='chmod 555 $lib'
16800   ;;
16801
16802 irix5* | irix6* | nonstopux*)
16803   case $host_os in
16804     nonstopux*) version_type=nonstopux ;;
16805     *)
16806         if test "$lt_cv_prog_gnu_ld" = yes; then
16807                 version_type=linux
16808         else
16809                 version_type=irix
16810         fi ;;
16811   esac
16812   need_lib_prefix=no
16813   need_version=no
16814   soname_spec='${libname}${release}${shared_ext}$major'
16815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16816   case $host_os in
16817   irix5* | nonstopux*)
16818     libsuff= shlibsuff=
16819     ;;
16820   *)
16821     case $LD in # libtool.m4 will add one of these switches to LD
16822     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16823       libsuff= shlibsuff= libmagic=32-bit;;
16824     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16825       libsuff=32 shlibsuff=N32 libmagic=N32;;
16826     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16827       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16828     *) libsuff= shlibsuff= libmagic=never-match;;
16829     esac
16830     ;;
16831   esac
16832   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16833   shlibpath_overrides_runpath=no
16834   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16835   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16836   hardcode_into_libs=yes
16837   ;;
16838
16839 # No shared lib support for Linux oldld, aout, or coff.
16840 linux*oldld* | linux*aout* | linux*coff*)
16841   dynamic_linker=no
16842   ;;
16843
16844 # This must be Linux ELF.
16845 linux*)
16846   version_type=linux
16847   need_lib_prefix=no
16848   need_version=no
16849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850   soname_spec='${libname}${release}${shared_ext}$major'
16851   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16852   shlibpath_var=LD_LIBRARY_PATH
16853   shlibpath_overrides_runpath=no
16854   # This implies no fast_install, which is unacceptable.
16855   # Some rework will be needed to allow for fast_install
16856   # before this can be enabled.
16857   hardcode_into_libs=yes
16858
16859   # Append ld.so.conf contents to the search path
16860   if test -f /etc/ld.so.conf; then
16861     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16862     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16863   fi
16864
16865   case $host_cpu:$lt_cv_cc_64bit_output in
16866   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
16867     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
16868     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
16869     ;;
16870   esac
16871
16872   # We used to test for /lib/ld.so.1 and disable shared libraries on
16873   # powerpc, because MkLinux only supported shared libraries with the
16874   # GNU dynamic linker.  Since this was broken with cross compilers,
16875   # most powerpc-linux boxes support dynamic linking these days and
16876   # people can always --disable-shared, the test was removed, and we
16877   # assume the GNU/Linux dynamic linker is in use.
16878   dynamic_linker='GNU/Linux ld.so'
16879
16880   # Find out which ABI we are using (multilib Linux x86_64 hack).
16881   libsuff=
16882   case "$host_cpu" in
16883   x86_64*)
16884     echo '#line 16884 "configure"' > conftest.$ac_ext
16885     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886   (eval $ac_compile) 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; then
16890       case `/usr/bin/file conftest.$ac_objext` in
16891       *64-bit*)
16892         libsuff=64
16893         ;;
16894       esac
16895     fi
16896     rm -rf conftest*
16897     ;;
16898   *)
16899     ;;
16900   esac
16901   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16902   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16903   ;;
16904
16905 knetbsd*-gnu)
16906   version_type=linux
16907   need_lib_prefix=no
16908   need_version=no
16909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16910   soname_spec='${libname}${release}${shared_ext}$major'
16911   shlibpath_var=LD_LIBRARY_PATH
16912   shlibpath_overrides_runpath=no
16913   hardcode_into_libs=yes
16914   dynamic_linker='GNU ld.so'
16915   ;;
16916
16917 netbsd*)
16918   version_type=sunos
16919   need_lib_prefix=no
16920   need_version=no
16921   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16923     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16924     dynamic_linker='NetBSD (a.out) ld.so'
16925   else
16926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16927     soname_spec='${libname}${release}${shared_ext}$major'
16928     dynamic_linker='NetBSD ld.elf_so'
16929   fi
16930   shlibpath_var=LD_LIBRARY_PATH
16931   shlibpath_overrides_runpath=yes
16932   hardcode_into_libs=yes
16933   ;;
16934
16935 newsos6)
16936   version_type=linux
16937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938   shlibpath_var=LD_LIBRARY_PATH
16939   shlibpath_overrides_runpath=yes
16940   ;;
16941
16942 nto-qnx*)
16943   version_type=linux
16944   need_lib_prefix=no
16945   need_version=no
16946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947   soname_spec='${libname}${release}${shared_ext}$major'
16948   shlibpath_var=LD_LIBRARY_PATH
16949   shlibpath_overrides_runpath=yes
16950   ;;
16951
16952 openbsd*)
16953   version_type=sunos
16954   need_lib_prefix=no
16955   need_version=yes
16956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16957   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16958   shlibpath_var=LD_LIBRARY_PATH
16959   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16960     case $host_os in
16961       openbsd2.[89] | openbsd2.[89].*)
16962         shlibpath_overrides_runpath=no
16963         ;;
16964       *)
16965         shlibpath_overrides_runpath=yes
16966         ;;
16967       esac
16968   else
16969     shlibpath_overrides_runpath=yes
16970   fi
16971   ;;
16972
16973 os2*)
16974   libname_spec='$name'
16975   shrext=".dll"
16976   need_lib_prefix=no
16977   library_names_spec='$libname${shared_ext} $libname.a'
16978   dynamic_linker='OS/2 ld.exe'
16979   shlibpath_var=LIBPATH
16980   ;;
16981
16982 osf3* | osf4* | osf5*)
16983   version_type=osf
16984   need_lib_prefix=no
16985   need_version=no
16986   soname_spec='${libname}${release}${shared_ext}$major'
16987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988   shlibpath_var=LD_LIBRARY_PATH
16989   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16990   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16991   ;;
16992
16993 sco3.2v5*)
16994   version_type=osf
16995   soname_spec='${libname}${release}${shared_ext}$major'
16996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997   shlibpath_var=LD_LIBRARY_PATH
16998   ;;
16999
17000 solaris*)
17001   version_type=linux
17002   need_lib_prefix=no
17003   need_version=no
17004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005   soname_spec='${libname}${release}${shared_ext}$major'
17006   shlibpath_var=LD_LIBRARY_PATH
17007   shlibpath_overrides_runpath=yes
17008   hardcode_into_libs=yes
17009   # ldd complains unless libraries are executable
17010   postinstall_cmds='chmod +x $lib'
17011   ;;
17012
17013 sunos4*)
17014   version_type=sunos
17015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17016   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17017   shlibpath_var=LD_LIBRARY_PATH
17018   shlibpath_overrides_runpath=yes
17019   if test "$with_gnu_ld" = yes; then
17020     need_lib_prefix=no
17021   fi
17022   need_version=yes
17023   ;;
17024
17025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17026   version_type=linux
17027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028   soname_spec='${libname}${release}${shared_ext}$major'
17029   shlibpath_var=LD_LIBRARY_PATH
17030   case $host_vendor in
17031     sni)
17032       shlibpath_overrides_runpath=no
17033       need_lib_prefix=no
17034       export_dynamic_flag_spec='${wl}-Blargedynsym'
17035       runpath_var=LD_RUN_PATH
17036       ;;
17037     siemens)
17038       need_lib_prefix=no
17039       ;;
17040     motorola)
17041       need_lib_prefix=no
17042       need_version=no
17043       shlibpath_overrides_runpath=no
17044       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17045       ;;
17046   esac
17047   ;;
17048
17049 sysv4*MP*)
17050   if test -d /usr/nec ;then
17051     version_type=linux
17052     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17053     soname_spec='$libname${shared_ext}.$major'
17054     shlibpath_var=LD_LIBRARY_PATH
17055   fi
17056   ;;
17057
17058 uts4*)
17059   version_type=linux
17060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061   soname_spec='${libname}${release}${shared_ext}$major'
17062   shlibpath_var=LD_LIBRARY_PATH
17063   ;;
17064
17065 *)
17066   dynamic_linker=no
17067   ;;
17068 esac
17069 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17070 echo "${ECHO_T}$dynamic_linker" >&6
17071 test "$dynamic_linker" = no && can_build_shared=no
17072
17073 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17074 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17075 hardcode_action_GCJ=
17076 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17077    test -n "$runpath_var GCJ" || \
17078    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17079
17080   # We can hardcode non-existant directories.
17081   if test "$hardcode_direct_GCJ" != no &&
17082      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17083      # have to relink, otherwise we might link with an installed library
17084      # when we should be linking with a yet-to-be-installed one
17085      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17086      test "$hardcode_minus_L_GCJ" != no; then
17087     # Linking always hardcodes the temporary library directory.
17088     hardcode_action_GCJ=relink
17089   else
17090     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17091     hardcode_action_GCJ=immediate
17092   fi
17093 else
17094   # We cannot hardcode anything, or else we can only hardcode existing
17095   # directories.
17096   hardcode_action_GCJ=unsupported
17097 fi
17098 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17099 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17100
17101 if test "$hardcode_action_GCJ" = relink; then
17102   # Fast installation is not supported
17103   enable_fast_install=no
17104 elif test "$shlibpath_overrides_runpath" = yes ||
17105      test "$enable_shared" = no; then
17106   # Fast installation is not necessary
17107   enable_fast_install=needless
17108 fi
17109
17110 striplib=
17111 old_striplib=
17112 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17113 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17114 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17115   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17116   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17117   echo "$as_me:$LINENO: result: yes" >&5
17118 echo "${ECHO_T}yes" >&6
17119 else
17120 # FIXME - insert some real tests, host_os isn't really good enough
17121   case $host_os in
17122    darwin*)
17123        if test -n "$STRIP" ; then
17124          striplib="$STRIP -x"
17125          echo "$as_me:$LINENO: result: yes" >&5
17126 echo "${ECHO_T}yes" >&6
17127        else
17128   echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6
17130 fi
17131        ;;
17132    *)
17133   echo "$as_me:$LINENO: result: no" >&5
17134 echo "${ECHO_T}no" >&6
17135     ;;
17136   esac
17137 fi
17138
17139 if test "x$enable_dlopen" != xyes; then
17140   enable_dlopen=unknown
17141   enable_dlopen_self=unknown
17142   enable_dlopen_self_static=unknown
17143 else
17144   lt_cv_dlopen=no
17145   lt_cv_dlopen_libs=
17146
17147   case $host_os in
17148   beos*)
17149     lt_cv_dlopen="load_add_on"
17150     lt_cv_dlopen_libs=
17151     lt_cv_dlopen_self=yes
17152     ;;
17153
17154   mingw* | pw32*)
17155     lt_cv_dlopen="LoadLibrary"
17156     lt_cv_dlopen_libs=
17157    ;;
17158
17159   cygwin*)
17160     lt_cv_dlopen="dlopen"
17161     lt_cv_dlopen_libs=
17162    ;;
17163
17164   darwin*)
17165   # if libdl is installed we need to link against it
17166     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17167 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17169   echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171   ac_check_lib_save_LIBS=$LIBS
17172 LIBS="-ldl  $LIBS"
17173 cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179
17180 /* Override any gcc2 internal prototype to avoid an error.  */
17181 #ifdef __cplusplus
17182 extern "C"
17183 #endif
17184 /* We use char because int might match the return type of a gcc2
17185    builtin and then its argument prototype would still apply.  */
17186 char dlopen ();
17187 int
17188 main ()
17189 {
17190 dlopen ();
17191   ;
17192   return 0;
17193 }
17194 _ACEOF
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17197   (eval $ac_link) 2>conftest.er1
17198   ac_status=$?
17199   grep -v '^ *+' conftest.er1 >conftest.err
17200   rm -f conftest.er1
17201   cat conftest.err >&5
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); } &&
17204          { ac_try='test -z "$ac_c_werror_flag"
17205                          || test ! -s conftest.err'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; } &&
17211          { ac_try='test -s conftest$ac_exeext'
17212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213   (eval $ac_try) 2>&5
17214   ac_status=$?
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; }; then
17217   ac_cv_lib_dl_dlopen=yes
17218 else
17219   echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17221
17222 ac_cv_lib_dl_dlopen=no
17223 fi
17224 rm -f conftest.err conftest.$ac_objext \
17225       conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17227 fi
17228 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17229 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17230 if test $ac_cv_lib_dl_dlopen = yes; then
17231   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17232 else
17233
17234     lt_cv_dlopen="dyld"
17235     lt_cv_dlopen_libs=
17236     lt_cv_dlopen_self=yes
17237
17238 fi
17239
17240    ;;
17241
17242   *)
17243     echo "$as_me:$LINENO: checking for shl_load" >&5
17244 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17245 if test "${ac_cv_func_shl_load+set}" = set; then
17246   echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248   cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17256 #define shl_load innocuous_shl_load
17257
17258 /* System header to define __stub macros and hopefully few prototypes,
17259     which can conflict with char shl_load (); below.
17260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261     <limits.h> exists even on freestanding compilers.  */
17262
17263 #ifdef __STDC__
17264 # include <limits.h>
17265 #else
17266 # include <assert.h>
17267 #endif
17268
17269 #undef shl_load
17270
17271 /* Override any gcc2 internal prototype to avoid an error.  */
17272 #ifdef __cplusplus
17273 extern "C"
17274 {
17275 #endif
17276 /* We use char because int might match the return type of a gcc2
17277    builtin and then its argument prototype would still apply.  */
17278 char shl_load ();
17279 /* The GNU C library defines this for functions which it implements
17280     to always fail with ENOSYS.  Some functions are actually named
17281     something starting with __ and the normal name is an alias.  */
17282 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17283 choke me
17284 #else
17285 char (*f) () = shl_load;
17286 #endif
17287 #ifdef __cplusplus
17288 }
17289 #endif
17290
17291 int
17292 main ()
17293 {
17294 return f != shl_load;
17295   ;
17296   return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301   (eval $ac_link) 2>conftest.er1
17302   ac_status=$?
17303   grep -v '^ *+' conftest.er1 >conftest.err
17304   rm -f conftest.er1
17305   cat conftest.err >&5
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); } &&
17308          { ac_try='test -z "$ac_c_werror_flag"
17309                          || test ! -s conftest.err'
17310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311   (eval $ac_try) 2>&5
17312   ac_status=$?
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); }; } &&
17315          { ac_try='test -s conftest$ac_exeext'
17316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317   (eval $ac_try) 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); }; }; then
17321   ac_cv_func_shl_load=yes
17322 else
17323   echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17325
17326 ac_cv_func_shl_load=no
17327 fi
17328 rm -f conftest.err conftest.$ac_objext \
17329       conftest$ac_exeext conftest.$ac_ext
17330 fi
17331 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17332 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17333 if test $ac_cv_func_shl_load = yes; then
17334   lt_cv_dlopen="shl_load"
17335 else
17336   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17337 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17338 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341   ac_check_lib_save_LIBS=$LIBS
17342 LIBS="-ldld  $LIBS"
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h.  */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h.  */
17349
17350 /* Override any gcc2 internal prototype to avoid an error.  */
17351 #ifdef __cplusplus
17352 extern "C"
17353 #endif
17354 /* We use char because int might match the return type of a gcc2
17355    builtin and then its argument prototype would still apply.  */
17356 char shl_load ();
17357 int
17358 main ()
17359 {
17360 shl_load ();
17361   ;
17362   return 0;
17363 }
17364 _ACEOF
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17367   (eval $ac_link) 2>conftest.er1
17368   ac_status=$?
17369   grep -v '^ *+' conftest.er1 >conftest.err
17370   rm -f conftest.er1
17371   cat conftest.err >&5
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); } &&
17374          { ac_try='test -z "$ac_c_werror_flag"
17375                          || test ! -s conftest.err'
17376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377   (eval $ac_try) 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; } &&
17381          { ac_try='test -s conftest$ac_exeext'
17382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383   (eval $ac_try) 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; }; then
17387   ac_cv_lib_dld_shl_load=yes
17388 else
17389   echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392 ac_cv_lib_dld_shl_load=no
17393 fi
17394 rm -f conftest.err conftest.$ac_objext \
17395       conftest$ac_exeext conftest.$ac_ext
17396 LIBS=$ac_check_lib_save_LIBS
17397 fi
17398 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17399 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17400 if test $ac_cv_lib_dld_shl_load = yes; then
17401   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17402 else
17403   echo "$as_me:$LINENO: checking for dlopen" >&5
17404 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17405 if test "${ac_cv_func_dlopen+set}" = set; then
17406   echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408   cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h.  */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h.  */
17414 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17416 #define dlopen innocuous_dlopen
17417
17418 /* System header to define __stub macros and hopefully few prototypes,
17419     which can conflict with char dlopen (); below.
17420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17421     <limits.h> exists even on freestanding compilers.  */
17422
17423 #ifdef __STDC__
17424 # include <limits.h>
17425 #else
17426 # include <assert.h>
17427 #endif
17428
17429 #undef dlopen
17430
17431 /* Override any gcc2 internal prototype to avoid an error.  */
17432 #ifdef __cplusplus
17433 extern "C"
17434 {
17435 #endif
17436 /* We use char because int might match the return type of a gcc2
17437    builtin and then its argument prototype would still apply.  */
17438 char dlopen ();
17439 /* The GNU C library defines this for functions which it implements
17440     to always fail with ENOSYS.  Some functions are actually named
17441     something starting with __ and the normal name is an alias.  */
17442 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17443 choke me
17444 #else
17445 char (*f) () = dlopen;
17446 #endif
17447 #ifdef __cplusplus
17448 }
17449 #endif
17450
17451 int
17452 main ()
17453 {
17454 return f != dlopen;
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17461   (eval $ac_link) 2>conftest.er1
17462   ac_status=$?
17463   grep -v '^ *+' conftest.er1 >conftest.err
17464   rm -f conftest.er1
17465   cat conftest.err >&5
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); } &&
17468          { ac_try='test -z "$ac_c_werror_flag"
17469                          || test ! -s conftest.err'
17470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471   (eval $ac_try) 2>&5
17472   ac_status=$?
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); }; } &&
17475          { ac_try='test -s conftest$ac_exeext'
17476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477   (eval $ac_try) 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; }; then
17481   ac_cv_func_dlopen=yes
17482 else
17483   echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17485
17486 ac_cv_func_dlopen=no
17487 fi
17488 rm -f conftest.err conftest.$ac_objext \
17489       conftest$ac_exeext conftest.$ac_ext
17490 fi
17491 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17492 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17493 if test $ac_cv_func_dlopen = yes; then
17494   lt_cv_dlopen="dlopen"
17495 else
17496   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17497 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17499   echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501   ac_check_lib_save_LIBS=$LIBS
17502 LIBS="-ldl  $LIBS"
17503 cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509
17510 /* Override any gcc2 internal prototype to avoid an error.  */
17511 #ifdef __cplusplus
17512 extern "C"
17513 #endif
17514 /* We use char because int might match the return type of a gcc2
17515    builtin and then its argument prototype would still apply.  */
17516 char dlopen ();
17517 int
17518 main ()
17519 {
17520 dlopen ();
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527   (eval $ac_link) 2>conftest.er1
17528   ac_status=$?
17529   grep -v '^ *+' conftest.er1 >conftest.err
17530   rm -f conftest.er1
17531   cat conftest.err >&5
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } &&
17534          { ac_try='test -z "$ac_c_werror_flag"
17535                          || test ! -s conftest.err'
17536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537   (eval $ac_try) 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); }; } &&
17541          { ac_try='test -s conftest$ac_exeext'
17542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543   (eval $ac_try) 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }; }; then
17547   ac_cv_lib_dl_dlopen=yes
17548 else
17549   echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17551
17552 ac_cv_lib_dl_dlopen=no
17553 fi
17554 rm -f conftest.err conftest.$ac_objext \
17555       conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17557 fi
17558 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17559 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17560 if test $ac_cv_lib_dl_dlopen = yes; then
17561   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17562 else
17563   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17564 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17565 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17566   echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568   ac_check_lib_save_LIBS=$LIBS
17569 LIBS="-lsvld  $LIBS"
17570 cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h.  */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h.  */
17576
17577 /* Override any gcc2 internal prototype to avoid an error.  */
17578 #ifdef __cplusplus
17579 extern "C"
17580 #endif
17581 /* We use char because int might match the return type of a gcc2
17582    builtin and then its argument prototype would still apply.  */
17583 char dlopen ();
17584 int
17585 main ()
17586 {
17587 dlopen ();
17588   ;
17589   return 0;
17590 }
17591 _ACEOF
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594   (eval $ac_link) 2>conftest.er1
17595   ac_status=$?
17596   grep -v '^ *+' conftest.er1 >conftest.err
17597   rm -f conftest.er1
17598   cat conftest.err >&5
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } &&
17601          { ac_try='test -z "$ac_c_werror_flag"
17602                          || test ! -s conftest.err'
17603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604   (eval $ac_try) 2>&5
17605   ac_status=$?
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); }; } &&
17608          { ac_try='test -s conftest$ac_exeext'
17609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610   (eval $ac_try) 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); }; }; then
17614   ac_cv_lib_svld_dlopen=yes
17615 else
17616   echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17618
17619 ac_cv_lib_svld_dlopen=no
17620 fi
17621 rm -f conftest.err conftest.$ac_objext \
17622       conftest$ac_exeext conftest.$ac_ext
17623 LIBS=$ac_check_lib_save_LIBS
17624 fi
17625 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17626 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17627 if test $ac_cv_lib_svld_dlopen = yes; then
17628   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17629 else
17630   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17631 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17632 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17633   echo $ECHO_N "(cached) $ECHO_C" >&6
17634 else
17635   ac_check_lib_save_LIBS=$LIBS
17636 LIBS="-ldld  $LIBS"
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643
17644 /* Override any gcc2 internal prototype to avoid an error.  */
17645 #ifdef __cplusplus
17646 extern "C"
17647 #endif
17648 /* We use char because int might match the return type of a gcc2
17649    builtin and then its argument prototype would still apply.  */
17650 char dld_link ();
17651 int
17652 main ()
17653 {
17654 dld_link ();
17655   ;
17656   return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17661   (eval $ac_link) 2>conftest.er1
17662   ac_status=$?
17663   grep -v '^ *+' conftest.er1 >conftest.err
17664   rm -f conftest.er1
17665   cat conftest.err >&5
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); } &&
17668          { ac_try='test -z "$ac_c_werror_flag"
17669                          || test ! -s conftest.err'
17670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671   (eval $ac_try) 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; } &&
17675          { ac_try='test -s conftest$ac_exeext'
17676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677   (eval $ac_try) 2>&5
17678   ac_status=$?
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); }; }; then
17681   ac_cv_lib_dld_dld_link=yes
17682 else
17683   echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17685
17686 ac_cv_lib_dld_dld_link=no
17687 fi
17688 rm -f conftest.err conftest.$ac_objext \
17689       conftest$ac_exeext conftest.$ac_ext
17690 LIBS=$ac_check_lib_save_LIBS
17691 fi
17692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17693 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17694 if test $ac_cv_lib_dld_dld_link = yes; then
17695   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17696 fi
17697
17698
17699 fi
17700
17701
17702 fi
17703
17704
17705 fi
17706
17707
17708 fi
17709
17710
17711 fi
17712
17713     ;;
17714   esac
17715
17716   if test "x$lt_cv_dlopen" != xno; then
17717     enable_dlopen=yes
17718   else
17719     enable_dlopen=no
17720   fi
17721
17722   case $lt_cv_dlopen in
17723   dlopen)
17724     save_CPPFLAGS="$CPPFLAGS"
17725     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17726
17727     save_LDFLAGS="$LDFLAGS"
17728     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17729
17730     save_LIBS="$LIBS"
17731     LIBS="$lt_cv_dlopen_libs $LIBS"
17732
17733     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17734 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17735 if test "${lt_cv_dlopen_self+set}" = set; then
17736   echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738           if test "$cross_compiling" = yes; then :
17739   lt_cv_dlopen_self=cross
17740 else
17741   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17742   lt_status=$lt_dlunknown
17743   cat > conftest.$ac_ext <<EOF
17744 #line 17744 "configure"
17745 #include "confdefs.h"
17746
17747 #if HAVE_DLFCN_H
17748 #include <dlfcn.h>
17749 #endif
17750
17751 #include <stdio.h>
17752
17753 #ifdef RTLD_GLOBAL
17754 #  define LT_DLGLOBAL           RTLD_GLOBAL
17755 #else
17756 #  ifdef DL_GLOBAL
17757 #    define LT_DLGLOBAL         DL_GLOBAL
17758 #  else
17759 #    define LT_DLGLOBAL         0
17760 #  endif
17761 #endif
17762
17763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17764    find out it does not work in some platform. */
17765 #ifndef LT_DLLAZY_OR_NOW
17766 #  ifdef RTLD_LAZY
17767 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17768 #  else
17769 #    ifdef DL_LAZY
17770 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17771 #    else
17772 #      ifdef RTLD_NOW
17773 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17774 #      else
17775 #        ifdef DL_NOW
17776 #          define LT_DLLAZY_OR_NOW      DL_NOW
17777 #        else
17778 #          define LT_DLLAZY_OR_NOW      0
17779 #        endif
17780 #      endif
17781 #    endif
17782 #  endif
17783 #endif
17784
17785 #ifdef __cplusplus
17786 extern "C" void exit (int);
17787 #endif
17788
17789 void fnord() { int i=42;}
17790 int main ()
17791 {
17792   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17793   int status = $lt_dlunknown;
17794
17795   if (self)
17796     {
17797       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17798       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17799       /* dlclose (self); */
17800     }
17801
17802     exit (status);
17803 }
17804 EOF
17805   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17806   (eval $ac_link) 2>&5
17807   ac_status=$?
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17810     (./conftest; exit; ) 2>/dev/null
17811     lt_status=$?
17812     case x$lt_status in
17813       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17814       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17815       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17816     esac
17817   else :
17818     # compilation failed
17819     lt_cv_dlopen_self=no
17820   fi
17821 fi
17822 rm -fr conftest*
17823
17824
17825 fi
17826 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17828
17829     if test "x$lt_cv_dlopen_self" = xyes; then
17830       LDFLAGS="$LDFLAGS $link_static_flag"
17831       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17833 if test "${lt_cv_dlopen_self_static+set}" = set; then
17834   echo $ECHO_N "(cached) $ECHO_C" >&6
17835 else
17836           if test "$cross_compiling" = yes; then :
17837   lt_cv_dlopen_self_static=cross
17838 else
17839   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17840   lt_status=$lt_dlunknown
17841   cat > conftest.$ac_ext <<EOF
17842 #line 17842 "configure"
17843 #include "confdefs.h"
17844
17845 #if HAVE_DLFCN_H
17846 #include <dlfcn.h>
17847 #endif
17848
17849 #include <stdio.h>
17850
17851 #ifdef RTLD_GLOBAL
17852 #  define LT_DLGLOBAL           RTLD_GLOBAL
17853 #else
17854 #  ifdef DL_GLOBAL
17855 #    define LT_DLGLOBAL         DL_GLOBAL
17856 #  else
17857 #    define LT_DLGLOBAL         0
17858 #  endif
17859 #endif
17860
17861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17862    find out it does not work in some platform. */
17863 #ifndef LT_DLLAZY_OR_NOW
17864 #  ifdef RTLD_LAZY
17865 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17866 #  else
17867 #    ifdef DL_LAZY
17868 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17869 #    else
17870 #      ifdef RTLD_NOW
17871 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17872 #      else
17873 #        ifdef DL_NOW
17874 #          define LT_DLLAZY_OR_NOW      DL_NOW
17875 #        else
17876 #          define LT_DLLAZY_OR_NOW      0
17877 #        endif
17878 #      endif
17879 #    endif
17880 #  endif
17881 #endif
17882
17883 #ifdef __cplusplus
17884 extern "C" void exit (int);
17885 #endif
17886
17887 void fnord() { int i=42;}
17888 int main ()
17889 {
17890   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17891   int status = $lt_dlunknown;
17892
17893   if (self)
17894     {
17895       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17896       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17897       /* dlclose (self); */
17898     }
17899
17900     exit (status);
17901 }
17902 EOF
17903   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17904   (eval $ac_link) 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17908     (./conftest; exit; ) 2>/dev/null
17909     lt_status=$?
17910     case x$lt_status in
17911       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17912       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17913       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17914     esac
17915   else :
17916     # compilation failed
17917     lt_cv_dlopen_self_static=no
17918   fi
17919 fi
17920 rm -fr conftest*
17921
17922
17923 fi
17924 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17925 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17926     fi
17927
17928     CPPFLAGS="$save_CPPFLAGS"
17929     LDFLAGS="$save_LDFLAGS"
17930     LIBS="$save_LIBS"
17931     ;;
17932   esac
17933
17934   case $lt_cv_dlopen_self in
17935   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17936   *) enable_dlopen_self=unknown ;;
17937   esac
17938
17939   case $lt_cv_dlopen_self_static in
17940   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17941   *) enable_dlopen_self_static=unknown ;;
17942   esac
17943 fi
17944
17945
17946 # The else clause should only fire when bootstrapping the
17947 # libtool distribution, otherwise you forgot to ship ltmain.sh
17948 # with your package, and you will get complaints that there are
17949 # no rules to generate ltmain.sh.
17950 if test -f "$ltmain"; then
17951   # See if we are running on zsh, and set the options which allow our commands through
17952   # without removal of \ escapes.
17953   if test -n "${ZSH_VERSION+set}" ; then
17954     setopt NO_GLOB_SUBST
17955   fi
17956   # Now quote all the things that may contain metacharacters while being
17957   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17958   # variables and quote the copies for generation of the libtool script.
17959   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17960     SED SHELL STRIP \
17961     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17962     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17963     deplibs_check_method reload_flag reload_cmds need_locks \
17964     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17965     lt_cv_sys_global_symbol_to_c_name_address \
17966     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17967     old_postinstall_cmds old_postuninstall_cmds \
17968     compiler_GCJ \
17969     CC_GCJ \
17970     LD_GCJ \
17971     lt_prog_compiler_wl_GCJ \
17972     lt_prog_compiler_pic_GCJ \
17973     lt_prog_compiler_static_GCJ \
17974     lt_prog_compiler_no_builtin_flag_GCJ \
17975     export_dynamic_flag_spec_GCJ \
17976     thread_safe_flag_spec_GCJ \
17977     whole_archive_flag_spec_GCJ \
17978     enable_shared_with_static_runtimes_GCJ \
17979     old_archive_cmds_GCJ \
17980     old_archive_from_new_cmds_GCJ \
17981     predep_objects_GCJ \
17982     postdep_objects_GCJ \
17983     predeps_GCJ \
17984     postdeps_GCJ \
17985     compiler_lib_search_path_GCJ \
17986     archive_cmds_GCJ \
17987     archive_expsym_cmds_GCJ \
17988     postinstall_cmds_GCJ \
17989     postuninstall_cmds_GCJ \
17990     old_archive_from_expsyms_cmds_GCJ \
17991     allow_undefined_flag_GCJ \
17992     no_undefined_flag_GCJ \
17993     export_symbols_cmds_GCJ \
17994     hardcode_libdir_flag_spec_GCJ \
17995     hardcode_libdir_flag_spec_ld_GCJ \
17996     hardcode_libdir_separator_GCJ \
17997     hardcode_automatic_GCJ \
17998     module_cmds_GCJ \
17999     module_expsym_cmds_GCJ \
18000     lt_cv_prog_compiler_c_o_GCJ \
18001     exclude_expsyms_GCJ \
18002     include_expsyms_GCJ; do
18003
18004     case $var in
18005     old_archive_cmds_GCJ | \
18006     old_archive_from_new_cmds_GCJ | \
18007     archive_cmds_GCJ | \
18008     archive_expsym_cmds_GCJ | \
18009     module_cmds_GCJ | \
18010     module_expsym_cmds_GCJ | \
18011     old_archive_from_expsyms_cmds_GCJ | \
18012     export_symbols_cmds_GCJ | \
18013     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18014     postinstall_cmds | postuninstall_cmds | \
18015     old_postinstall_cmds | old_postuninstall_cmds | \
18016     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18017       # Double-quote double-evaled strings.
18018       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18019       ;;
18020     *)
18021       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18022       ;;
18023     esac
18024   done
18025
18026   case $lt_echo in
18027   *'\$0 --fallback-echo"')
18028     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18029     ;;
18030   esac
18031
18032 cfgfile="$ofile"
18033
18034   cat <<__EOF__ >> "$cfgfile"
18035 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18036
18037 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18038
18039 # Shell to use when invoking shell scripts.
18040 SHELL=$lt_SHELL
18041
18042 # Whether or not to build shared libraries.
18043 build_libtool_libs=$enable_shared
18044
18045 # Whether or not to build static libraries.
18046 build_old_libs=$enable_static
18047
18048 # Whether or not to add -lc for building shared libraries.
18049 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18050
18051 # Whether or not to disallow shared libs when runtime libs are static
18052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18053
18054 # Whether or not to optimize for fast installation.
18055 fast_install=$enable_fast_install
18056
18057 # The host system.
18058 host_alias=$host_alias
18059 host=$host
18060
18061 # An echo program that does not interpret backslashes.
18062 echo=$lt_echo
18063
18064 # The archiver.
18065 AR=$lt_AR
18066 AR_FLAGS=$lt_AR_FLAGS
18067
18068 # A C compiler.
18069 LTCC=$lt_LTCC
18070
18071 # A language-specific compiler.
18072 CC=$lt_compiler_GCJ
18073
18074 # Is the compiler the GNU C compiler?
18075 with_gcc=$GCC_GCJ
18076
18077 # An ERE matcher.
18078 EGREP=$lt_EGREP
18079
18080 # The linker used to build libraries.
18081 LD=$lt_LD_GCJ
18082
18083 # Whether we need hard or soft links.
18084 LN_S=$lt_LN_S
18085
18086 # A BSD-compatible nm program.
18087 NM=$lt_NM
18088
18089 # A symbol stripping program
18090 STRIP=$lt_STRIP
18091
18092 # Used to examine libraries when file_magic_cmd begins "file"
18093 MAGIC_CMD=$MAGIC_CMD
18094
18095 # Used on cygwin: DLL creation program.
18096 DLLTOOL="$DLLTOOL"
18097
18098 # Used on cygwin: object dumper.
18099 OBJDUMP="$OBJDUMP"
18100
18101 # Used on cygwin: assembler.
18102 AS="$AS"
18103
18104 # The name of the directory that contains temporary libtool files.
18105 objdir=$objdir
18106
18107 # How to create reloadable object files.
18108 reload_flag=$lt_reload_flag
18109 reload_cmds=$lt_reload_cmds
18110
18111 # How to pass a linker flag through the compiler.
18112 wl=$lt_lt_prog_compiler_wl_GCJ
18113
18114 # Object file suffix (normally "o").
18115 objext="$ac_objext"
18116
18117 # Old archive suffix (normally "a").
18118 libext="$libext"
18119
18120 # Shared library suffix (normally ".so").
18121 shrext='$shrext'
18122
18123 # Executable file suffix (normally "").
18124 exeext="$exeext"
18125
18126 # Additional compiler flags for building library objects.
18127 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18128 pic_mode=$pic_mode
18129
18130 # What is the maximum length of a command?
18131 max_cmd_len=$lt_cv_sys_max_cmd_len
18132
18133 # Does compiler simultaneously support -c and -o options?
18134 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18135
18136 # Must we lock files when doing compilation ?
18137 need_locks=$lt_need_locks
18138
18139 # Do we need the lib prefix for modules?
18140 need_lib_prefix=$need_lib_prefix
18141
18142 # Do we need a version for libraries?
18143 need_version=$need_version
18144
18145 # Whether dlopen is supported.
18146 dlopen_support=$enable_dlopen
18147
18148 # Whether dlopen of programs is supported.
18149 dlopen_self=$enable_dlopen_self
18150
18151 # Whether dlopen of statically linked programs is supported.
18152 dlopen_self_static=$enable_dlopen_self_static
18153
18154 # Compiler flag to prevent dynamic linking.
18155 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18156
18157 # Compiler flag to turn off builtin functions.
18158 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18159
18160 # Compiler flag to allow reflexive dlopens.
18161 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18162
18163 # Compiler flag to generate shared objects directly from archives.
18164 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18165
18166 # Compiler flag to generate thread-safe objects.
18167 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18168
18169 # Library versioning type.
18170 version_type=$version_type
18171
18172 # Format of library name prefix.
18173 libname_spec=$lt_libname_spec
18174
18175 # List of archive names.  First name is the real one, the rest are links.
18176 # The last name is the one that the linker finds with -lNAME.
18177 library_names_spec=$lt_library_names_spec
18178
18179 # The coded name of the library, if different from the real name.
18180 soname_spec=$lt_soname_spec
18181
18182 # Commands used to build and install an old-style archive.
18183 RANLIB=$lt_RANLIB
18184 old_archive_cmds=$lt_old_archive_cmds_GCJ
18185 old_postinstall_cmds=$lt_old_postinstall_cmds
18186 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18187
18188 # Create an old-style archive from a shared archive.
18189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18190
18191 # Create a temporary old-style archive to link instead of a shared archive.
18192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18193
18194 # Commands used to build and install a shared archive.
18195 archive_cmds=$lt_archive_cmds_GCJ
18196 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18197 postinstall_cmds=$lt_postinstall_cmds
18198 postuninstall_cmds=$lt_postuninstall_cmds
18199
18200 # Commands used to build a loadable module (assumed same as above if empty)
18201 module_cmds=$lt_module_cmds_GCJ
18202 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18203
18204 # Commands to strip libraries.
18205 old_striplib=$lt_old_striplib
18206 striplib=$lt_striplib
18207
18208 # Dependencies to place before the objects being linked to create a
18209 # shared library.
18210 predep_objects=$lt_predep_objects_GCJ
18211
18212 # Dependencies to place after the objects being linked to create a
18213 # shared library.
18214 postdep_objects=$lt_postdep_objects_GCJ
18215
18216 # Dependencies to place before the objects being linked to create a
18217 # shared library.
18218 predeps=$lt_predeps_GCJ
18219
18220 # Dependencies to place after the objects being linked to create a
18221 # shared library.
18222 postdeps=$lt_postdeps_GCJ
18223
18224 # The library search path used internally by the compiler when linking
18225 # a shared library.
18226 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18227
18228 # Method to check whether dependent libraries are shared objects.
18229 deplibs_check_method=$lt_deplibs_check_method
18230
18231 # Command to use when deplibs_check_method == file_magic.
18232 file_magic_cmd=$lt_file_magic_cmd
18233
18234 # Flag that allows shared libraries with undefined symbols to be built.
18235 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18236
18237 # Flag that forces no undefined symbols.
18238 no_undefined_flag=$lt_no_undefined_flag_GCJ
18239
18240 # Commands used to finish a libtool library installation in a directory.
18241 finish_cmds=$lt_finish_cmds
18242
18243 # Same as above, but a single script fragment to be evaled but not shown.
18244 finish_eval=$lt_finish_eval
18245
18246 # Take the output of nm and produce a listing of raw symbols and C names.
18247 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18248
18249 # Transform the output of nm in a proper C declaration
18250 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18251
18252 # Transform the output of nm in a C name address pair
18253 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18254
18255 # This is the shared library runtime path variable.
18256 runpath_var=$runpath_var
18257
18258 # This is the shared library path variable.
18259 shlibpath_var=$shlibpath_var
18260
18261 # Is shlibpath searched before the hard-coded library search path?
18262 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18263
18264 # How to hardcode a shared library path into an executable.
18265 hardcode_action=$hardcode_action_GCJ
18266
18267 # Whether we should hardcode library paths into libraries.
18268 hardcode_into_libs=$hardcode_into_libs
18269
18270 # Flag to hardcode \$libdir into a binary during linking.
18271 # This must work even if \$libdir does not exist.
18272 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18273
18274 # If ld is used when linking, flag to hardcode \$libdir into
18275 # a binary during linking. This must work even if \$libdir does
18276 # not exist.
18277 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18278
18279 # Whether we need a single -rpath flag with a separated argument.
18280 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18281
18282 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18283 # resulting binary.
18284 hardcode_direct=$hardcode_direct_GCJ
18285
18286 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18287 # resulting binary.
18288 hardcode_minus_L=$hardcode_minus_L_GCJ
18289
18290 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18291 # the resulting binary.
18292 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18293
18294 # Set to yes if building a shared library automatically hardcodes DIR into the library
18295 # and all subsequent libraries and executables linked against it.
18296 hardcode_automatic=$hardcode_automatic_GCJ
18297
18298 # Variables whose values should be saved in libtool wrapper scripts and
18299 # restored at relink time.
18300 variables_saved_for_relink="$variables_saved_for_relink"
18301
18302 # Whether libtool must link a program against all its dependency libraries.
18303 link_all_deplibs=$link_all_deplibs_GCJ
18304
18305 # Compile-time system search path for libraries
18306 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18307
18308 # Run-time system search path for libraries
18309 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18310
18311 # Fix the shell variable \$srcfile for the compiler.
18312 fix_srcfile_path="$fix_srcfile_path_GCJ"
18313
18314 # Set to yes if exported symbols are required.
18315 always_export_symbols=$always_export_symbols_GCJ
18316
18317 # The commands to list exported symbols.
18318 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18319
18320 # The commands to extract the exported symbol list from a shared archive.
18321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18322
18323 # Symbols that should not be listed in the preloaded symbols.
18324 exclude_expsyms=$lt_exclude_expsyms_GCJ
18325
18326 # Symbols that must always be exported.
18327 include_expsyms=$lt_include_expsyms_GCJ
18328
18329 # ### END LIBTOOL TAG CONFIG: $tagname
18330
18331 __EOF__
18332
18333
18334 else
18335   # If there is no Makefile yet, we rely on a make rule to execute
18336   # `config.status --recheck' to rerun these tests and create the
18337   # libtool script then.
18338   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18339   if test -f "$ltmain_in"; then
18340     test -f Makefile && make "$ltmain"
18341   fi
18342 fi
18343
18344
18345 ac_ext=c
18346 ac_cpp='$CPP $CPPFLAGS'
18347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18350
18351 CC="$lt_save_CC"
18352
18353         else
18354           tagname=""
18355         fi
18356         ;;
18357
18358       RC)
18359
18360
18361
18362 # Source file extension for RC test sources.
18363 ac_ext=rc
18364
18365 # Object file extension for compiled RC test sources.
18366 objext=o
18367 objext_RC=$objext
18368
18369 # Code to be used in simple compile tests
18370 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18371
18372 # Code to be used in simple link tests
18373 lt_simple_link_test_code="$lt_simple_compile_test_code"
18374
18375 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18376
18377 # If no C compiler was specified, use CC.
18378 LTCC=${LTCC-"$CC"}
18379
18380 # Allow CC to be a program name with arguments.
18381 compiler=$CC
18382
18383
18384 # Allow CC to be a program name with arguments.
18385 lt_save_CC="$CC"
18386 CC=${RC-"windres"}
18387 compiler=$CC
18388 compiler_RC=$CC
18389 lt_cv_prog_compiler_c_o_RC=yes
18390
18391 # The else clause should only fire when bootstrapping the
18392 # libtool distribution, otherwise you forgot to ship ltmain.sh
18393 # with your package, and you will get complaints that there are
18394 # no rules to generate ltmain.sh.
18395 if test -f "$ltmain"; then
18396   # See if we are running on zsh, and set the options which allow our commands through
18397   # without removal of \ escapes.
18398   if test -n "${ZSH_VERSION+set}" ; then
18399     setopt NO_GLOB_SUBST
18400   fi
18401   # Now quote all the things that may contain metacharacters while being
18402   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18403   # variables and quote the copies for generation of the libtool script.
18404   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18405     SED SHELL STRIP \
18406     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18407     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18408     deplibs_check_method reload_flag reload_cmds need_locks \
18409     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18410     lt_cv_sys_global_symbol_to_c_name_address \
18411     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18412     old_postinstall_cmds old_postuninstall_cmds \
18413     compiler_RC \
18414     CC_RC \
18415     LD_RC \
18416     lt_prog_compiler_wl_RC \
18417     lt_prog_compiler_pic_RC \
18418     lt_prog_compiler_static_RC \
18419     lt_prog_compiler_no_builtin_flag_RC \
18420     export_dynamic_flag_spec_RC \
18421     thread_safe_flag_spec_RC \
18422     whole_archive_flag_spec_RC \
18423     enable_shared_with_static_runtimes_RC \
18424     old_archive_cmds_RC \
18425     old_archive_from_new_cmds_RC \
18426     predep_objects_RC \
18427     postdep_objects_RC \
18428     predeps_RC \
18429     postdeps_RC \
18430     compiler_lib_search_path_RC \
18431     archive_cmds_RC \
18432     archive_expsym_cmds_RC \
18433     postinstall_cmds_RC \
18434     postuninstall_cmds_RC \
18435     old_archive_from_expsyms_cmds_RC \
18436     allow_undefined_flag_RC \
18437     no_undefined_flag_RC \
18438     export_symbols_cmds_RC \
18439     hardcode_libdir_flag_spec_RC \
18440     hardcode_libdir_flag_spec_ld_RC \
18441     hardcode_libdir_separator_RC \
18442     hardcode_automatic_RC \
18443     module_cmds_RC \
18444     module_expsym_cmds_RC \
18445     lt_cv_prog_compiler_c_o_RC \
18446     exclude_expsyms_RC \
18447     include_expsyms_RC; do
18448
18449     case $var in
18450     old_archive_cmds_RC | \
18451     old_archive_from_new_cmds_RC | \
18452     archive_cmds_RC | \
18453     archive_expsym_cmds_RC | \
18454     module_cmds_RC | \
18455     module_expsym_cmds_RC | \
18456     old_archive_from_expsyms_cmds_RC | \
18457     export_symbols_cmds_RC | \
18458     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18459     postinstall_cmds | postuninstall_cmds | \
18460     old_postinstall_cmds | old_postuninstall_cmds | \
18461     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18462       # Double-quote double-evaled strings.
18463       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18464       ;;
18465     *)
18466       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18467       ;;
18468     esac
18469   done
18470
18471   case $lt_echo in
18472   *'\$0 --fallback-echo"')
18473     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18474     ;;
18475   esac
18476
18477 cfgfile="$ofile"
18478
18479   cat <<__EOF__ >> "$cfgfile"
18480 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18481
18482 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18483
18484 # Shell to use when invoking shell scripts.
18485 SHELL=$lt_SHELL
18486
18487 # Whether or not to build shared libraries.
18488 build_libtool_libs=$enable_shared
18489
18490 # Whether or not to build static libraries.
18491 build_old_libs=$enable_static
18492
18493 # Whether or not to add -lc for building shared libraries.
18494 build_libtool_need_lc=$archive_cmds_need_lc_RC
18495
18496 # Whether or not to disallow shared libs when runtime libs are static
18497 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18498
18499 # Whether or not to optimize for fast installation.
18500 fast_install=$enable_fast_install
18501
18502 # The host system.
18503 host_alias=$host_alias
18504 host=$host
18505
18506 # An echo program that does not interpret backslashes.
18507 echo=$lt_echo
18508
18509 # The archiver.
18510 AR=$lt_AR
18511 AR_FLAGS=$lt_AR_FLAGS
18512
18513 # A C compiler.
18514 LTCC=$lt_LTCC
18515
18516 # A language-specific compiler.
18517 CC=$lt_compiler_RC
18518
18519 # Is the compiler the GNU C compiler?
18520 with_gcc=$GCC_RC
18521
18522 # An ERE matcher.
18523 EGREP=$lt_EGREP
18524
18525 # The linker used to build libraries.
18526 LD=$lt_LD_RC
18527
18528 # Whether we need hard or soft links.
18529 LN_S=$lt_LN_S
18530
18531 # A BSD-compatible nm program.
18532 NM=$lt_NM
18533
18534 # A symbol stripping program
18535 STRIP=$lt_STRIP
18536
18537 # Used to examine libraries when file_magic_cmd begins "file"
18538 MAGIC_CMD=$MAGIC_CMD
18539
18540 # Used on cygwin: DLL creation program.
18541 DLLTOOL="$DLLTOOL"
18542
18543 # Used on cygwin: object dumper.
18544 OBJDUMP="$OBJDUMP"
18545
18546 # Used on cygwin: assembler.
18547 AS="$AS"
18548
18549 # The name of the directory that contains temporary libtool files.
18550 objdir=$objdir
18551
18552 # How to create reloadable object files.
18553 reload_flag=$lt_reload_flag
18554 reload_cmds=$lt_reload_cmds
18555
18556 # How to pass a linker flag through the compiler.
18557 wl=$lt_lt_prog_compiler_wl_RC
18558
18559 # Object file suffix (normally "o").
18560 objext="$ac_objext"
18561
18562 # Old archive suffix (normally "a").
18563 libext="$libext"
18564
18565 # Shared library suffix (normally ".so").
18566 shrext='$shrext'
18567
18568 # Executable file suffix (normally "").
18569 exeext="$exeext"
18570
18571 # Additional compiler flags for building library objects.
18572 pic_flag=$lt_lt_prog_compiler_pic_RC
18573 pic_mode=$pic_mode
18574
18575 # What is the maximum length of a command?
18576 max_cmd_len=$lt_cv_sys_max_cmd_len
18577
18578 # Does compiler simultaneously support -c and -o options?
18579 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18580
18581 # Must we lock files when doing compilation ?
18582 need_locks=$lt_need_locks
18583
18584 # Do we need the lib prefix for modules?
18585 need_lib_prefix=$need_lib_prefix
18586
18587 # Do we need a version for libraries?
18588 need_version=$need_version
18589
18590 # Whether dlopen is supported.
18591 dlopen_support=$enable_dlopen
18592
18593 # Whether dlopen of programs is supported.
18594 dlopen_self=$enable_dlopen_self
18595
18596 # Whether dlopen of statically linked programs is supported.
18597 dlopen_self_static=$enable_dlopen_self_static
18598
18599 # Compiler flag to prevent dynamic linking.
18600 link_static_flag=$lt_lt_prog_compiler_static_RC
18601
18602 # Compiler flag to turn off builtin functions.
18603 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18604
18605 # Compiler flag to allow reflexive dlopens.
18606 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18607
18608 # Compiler flag to generate shared objects directly from archives.
18609 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18610
18611 # Compiler flag to generate thread-safe objects.
18612 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18613
18614 # Library versioning type.
18615 version_type=$version_type
18616
18617 # Format of library name prefix.
18618 libname_spec=$lt_libname_spec
18619
18620 # List of archive names.  First name is the real one, the rest are links.
18621 # The last name is the one that the linker finds with -lNAME.
18622 library_names_spec=$lt_library_names_spec
18623
18624 # The coded name of the library, if different from the real name.
18625 soname_spec=$lt_soname_spec
18626
18627 # Commands used to build and install an old-style archive.
18628 RANLIB=$lt_RANLIB
18629 old_archive_cmds=$lt_old_archive_cmds_RC
18630 old_postinstall_cmds=$lt_old_postinstall_cmds
18631 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18632
18633 # Create an old-style archive from a shared archive.
18634 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18635
18636 # Create a temporary old-style archive to link instead of a shared archive.
18637 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18638
18639 # Commands used to build and install a shared archive.
18640 archive_cmds=$lt_archive_cmds_RC
18641 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18642 postinstall_cmds=$lt_postinstall_cmds
18643 postuninstall_cmds=$lt_postuninstall_cmds
18644
18645 # Commands used to build a loadable module (assumed same as above if empty)
18646 module_cmds=$lt_module_cmds_RC
18647 module_expsym_cmds=$lt_module_expsym_cmds_RC
18648
18649 # Commands to strip libraries.
18650 old_striplib=$lt_old_striplib
18651 striplib=$lt_striplib
18652
18653 # Dependencies to place before the objects being linked to create a
18654 # shared library.
18655 predep_objects=$lt_predep_objects_RC
18656
18657 # Dependencies to place after the objects being linked to create a
18658 # shared library.
18659 postdep_objects=$lt_postdep_objects_RC
18660
18661 # Dependencies to place before the objects being linked to create a
18662 # shared library.
18663 predeps=$lt_predeps_RC
18664
18665 # Dependencies to place after the objects being linked to create a
18666 # shared library.
18667 postdeps=$lt_postdeps_RC
18668
18669 # The library search path used internally by the compiler when linking
18670 # a shared library.
18671 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18672
18673 # Method to check whether dependent libraries are shared objects.
18674 deplibs_check_method=$lt_deplibs_check_method
18675
18676 # Command to use when deplibs_check_method == file_magic.
18677 file_magic_cmd=$lt_file_magic_cmd
18678
18679 # Flag that allows shared libraries with undefined symbols to be built.
18680 allow_undefined_flag=$lt_allow_undefined_flag_RC
18681
18682 # Flag that forces no undefined symbols.
18683 no_undefined_flag=$lt_no_undefined_flag_RC
18684
18685 # Commands used to finish a libtool library installation in a directory.
18686 finish_cmds=$lt_finish_cmds
18687
18688 # Same as above, but a single script fragment to be evaled but not shown.
18689 finish_eval=$lt_finish_eval
18690
18691 # Take the output of nm and produce a listing of raw symbols and C names.
18692 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18693
18694 # Transform the output of nm in a proper C declaration
18695 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18696
18697 # Transform the output of nm in a C name address pair
18698 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18699
18700 # This is the shared library runtime path variable.
18701 runpath_var=$runpath_var
18702
18703 # This is the shared library path variable.
18704 shlibpath_var=$shlibpath_var
18705
18706 # Is shlibpath searched before the hard-coded library search path?
18707 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18708
18709 # How to hardcode a shared library path into an executable.
18710 hardcode_action=$hardcode_action_RC
18711
18712 # Whether we should hardcode library paths into libraries.
18713 hardcode_into_libs=$hardcode_into_libs
18714
18715 # Flag to hardcode \$libdir into a binary during linking.
18716 # This must work even if \$libdir does not exist.
18717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18718
18719 # If ld is used when linking, flag to hardcode \$libdir into
18720 # a binary during linking. This must work even if \$libdir does
18721 # not exist.
18722 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18723
18724 # Whether we need a single -rpath flag with a separated argument.
18725 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18726
18727 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18728 # resulting binary.
18729 hardcode_direct=$hardcode_direct_RC
18730
18731 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18732 # resulting binary.
18733 hardcode_minus_L=$hardcode_minus_L_RC
18734
18735 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18736 # the resulting binary.
18737 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18738
18739 # Set to yes if building a shared library automatically hardcodes DIR into the library
18740 # and all subsequent libraries and executables linked against it.
18741 hardcode_automatic=$hardcode_automatic_RC
18742
18743 # Variables whose values should be saved in libtool wrapper scripts and
18744 # restored at relink time.
18745 variables_saved_for_relink="$variables_saved_for_relink"
18746
18747 # Whether libtool must link a program against all its dependency libraries.
18748 link_all_deplibs=$link_all_deplibs_RC
18749
18750 # Compile-time system search path for libraries
18751 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18752
18753 # Run-time system search path for libraries
18754 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18755
18756 # Fix the shell variable \$srcfile for the compiler.
18757 fix_srcfile_path="$fix_srcfile_path_RC"
18758
18759 # Set to yes if exported symbols are required.
18760 always_export_symbols=$always_export_symbols_RC
18761
18762 # The commands to list exported symbols.
18763 export_symbols_cmds=$lt_export_symbols_cmds_RC
18764
18765 # The commands to extract the exported symbol list from a shared archive.
18766 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18767
18768 # Symbols that should not be listed in the preloaded symbols.
18769 exclude_expsyms=$lt_exclude_expsyms_RC
18770
18771 # Symbols that must always be exported.
18772 include_expsyms=$lt_include_expsyms_RC
18773
18774 # ### END LIBTOOL TAG CONFIG: $tagname
18775
18776 __EOF__
18777
18778
18779 else
18780   # If there is no Makefile yet, we rely on a make rule to execute
18781   # `config.status --recheck' to rerun these tests and create the
18782   # libtool script then.
18783   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18784   if test -f "$ltmain_in"; then
18785     test -f Makefile && make "$ltmain"
18786   fi
18787 fi
18788
18789
18790 ac_ext=c
18791 ac_cpp='$CPP $CPPFLAGS'
18792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18795
18796 CC="$lt_save_CC"
18797
18798         ;;
18799
18800       *)
18801         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18802 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18803    { (exit 1); exit 1; }; }
18804         ;;
18805       esac
18806
18807       # Append the new tag name to the list of available tags.
18808       if test -n "$tagname" ; then
18809       available_tags="$available_tags $tagname"
18810     fi
18811     fi
18812   done
18813   IFS="$lt_save_ifs"
18814
18815   # Now substitute the updated list of available tags.
18816   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18817     mv "${ofile}T" "$ofile"
18818     chmod +x "$ofile"
18819   else
18820     rm -f "${ofile}T"
18821     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18822 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18823    { (exit 1); exit 1; }; }
18824   fi
18825 fi
18826
18827
18828   if test ! -f "${ofile}"; then
18829     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18830 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18831   fi
18832   if test -z `grep -e 'shared_ext.*shrext' $ofile`; then
18833     # Make sure $shared_ext gets set to $shrext
18834     if sed -e 's/shared_ext/shrext/g' "$ofile" > "${ofile}T"; then
18835       mv "${ofile}T" "$ofile"
18836       chmod +x "$ofile"
18837     else
18838       rm -f "${ofile}T"
18839       { { echo "$as_me:$LINENO: error: unable to update shared_ext." >&5
18840 echo "$as_me: error: unable to update shared_ext." >&2;}
18841    { (exit 1); exit 1; }; }
18842     fi
18843   fi
18844
18845
18846
18847 # This can be used to rebuild libtool when needed
18848 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18849
18850 # Always use our own libtool.
18851 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18852
18853 # Prevent multiple expansion
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874  for ac_prog in gzip uncompress compress
18875 do
18876   # Extract the first word of "$ac_prog", so it can be a program name with args.
18877 set dummy $ac_prog; ac_word=$2
18878 echo "$as_me:$LINENO: checking for $ac_word" >&5
18879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18880 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
18881   echo $ECHO_N "(cached) $ECHO_C" >&6
18882 else
18883   if test -n "$UNCOMPRESS"; then
18884   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
18885 else
18886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18887 for as_dir in $PATH
18888 do
18889   IFS=$as_save_IFS
18890   test -z "$as_dir" && as_dir=.
18891   for ac_exec_ext in '' $ac_executable_extensions; do
18892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18893     ac_cv_prog_UNCOMPRESS="$ac_prog"
18894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18895     break 2
18896   fi
18897 done
18898 done
18899
18900 fi
18901 fi
18902 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
18903 if test -n "$UNCOMPRESS"; then
18904   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
18905 echo "${ECHO_T}$UNCOMPRESS" >&6
18906 else
18907   echo "$as_me:$LINENO: result: no" >&5
18908 echo "${ECHO_T}no" >&6
18909 fi
18910
18911   test -n "$UNCOMPRESS" && break
18912 done
18913
18914
18915
18916
18917
18918
18919
18920
18921 echo "$as_me:$LINENO: checking for target system" >&5
18922 echo $ECHO_N "checking for target system... $ECHO_C" >&6
18923 CYGWIN=
18924 MINGW=
18925 case $host_os in
18926     *cygwin* ) CYGWIN=yes;;
18927     *mingw* ) MINGW=yes;;
18928 esac
18929
18930 AR=ar
18931 if test "x$MINGW" = "xyes"; then
18932     #fix for the debian distribution of mingw
18933     if test -x "/usr/i586-mingw32msvc/bin/ar";then
18934         AR="/usr/i586-mingw32msvc/bin/ar"
18935     fi
18936     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
18937         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
18938     fi
18939     #fix for the gentoo distribution of mingw
18940     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
18941         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
18942     fi
18943     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
18944         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
18945     fi
18946     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
18947         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
18948     fi
18949 fi
18950
18951
18952
18953 if test "x${CYGWIN}" = "xyes"; then
18954     cat >>confdefs.h <<_ACEOF
18955 #define CYGWIN 1
18956 _ACEOF
18957
18958     echo "$as_me:$LINENO: result: cygwin" >&5
18959 echo "${ECHO_T}cygwin" >&6
18960 else
18961     if test "x${MINGW}" = "xyes"; then
18962         cat >>confdefs.h <<_ACEOF
18963 #define MINGW 1
18964 _ACEOF
18965
18966         WIN32=1
18967         cat >>confdefs.h <<_ACEOF
18968 #define WIN32 1
18969 _ACEOF
18970
18971         LIBS="$LIBS -lws2_32"
18972         echo "$as_me:$LINENO: result: mingw" >&5
18973 echo "${ECHO_T}mingw" >&6
18974     else
18975         LINUX=1
18976         export LINUX
18977         cat >>confdefs.h <<_ACEOF
18978 #define LINUX 1
18979 _ACEOF
18980
18981         echo "$as_me:$LINENO: result: " >&5
18982 echo "${ECHO_T}" >&6
18983     fi
18984 fi
18985
18986
18987 SLEXT="so"
18988 if test "x${MINGW}" != "xyes"; then
18989     # no mingW
18990     cat >>confdefs.h <<_ACEOF
18991 #define O_BINARY 0
18992 _ACEOF
18993
18994 else
18995     # mingW
18996     SLEXT="dll"
18997 fi
18998 export SLEXT
18999
19000
19001 # The following tries to make use of includes and libraries in
19002 # /usr/local, too. Notice: A -I/usr/local/include might break
19003 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
19004 # especially on systems which link /usr/local to /usr, so it has yet
19005 # to be seen how useful this is.
19006 if test -d /usr/local/lib; then
19007     LDFLAGS="$LDFLAGS -L/usr/local/lib"
19008 fi
19009 if test -d /usr/local/include; then
19010 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
19011 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
19012     echo > /dev/null
19013 fi
19014 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
19015     # if the user has a special prefix (like /opt), there might also be $prefix/lib
19016     # and $prefix/include, which should be included in our search paths for libraries
19017     # and includes.
19018     LDFLAGS="$LDFLAGS -L${libdir}"
19019     CPPFLAGS="$CPPFLAGS -I${includedir}"
19020     # TODO- test whether gcc still works after this
19021 fi
19022
19023 # this must be done after (I believe) AC_PROG_MAKE_SET
19024 if test "x$DEBUG" '!=' "x";then
19025     STRIP="@echo debug enabled, not stripping "
19026     export STRIP
19027
19028 fi
19029
19030
19031 echo "$as_me:$LINENO: checking for sin in -lm" >&5
19032 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19033 if test "${ac_cv_lib_m_sin+set}" = set; then
19034   echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19036   ac_check_lib_save_LIBS=$LIBS
19037 LIBS="-lm  $LIBS"
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h.  */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h.  */
19044
19045 /* Override any gcc2 internal prototype to avoid an error.  */
19046 #ifdef __cplusplus
19047 extern "C"
19048 #endif
19049 /* We use char because int might match the return type of a gcc2
19050    builtin and then its argument prototype would still apply.  */
19051 char sin ();
19052 int
19053 main ()
19054 {
19055 sin ();
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19062   (eval $ac_link) 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } &&
19069          { ac_try='test -z "$ac_c_werror_flag"
19070                          || test ! -s conftest.err'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; } &&
19076          { ac_try='test -s conftest$ac_exeext'
19077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078   (eval $ac_try) 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; }; then
19082   ac_cv_lib_m_sin=yes
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 ac_cv_lib_m_sin=no
19088 fi
19089 rm -f conftest.err conftest.$ac_objext \
19090       conftest$ac_exeext conftest.$ac_ext
19091 LIBS=$ac_check_lib_save_LIBS
19092 fi
19093 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19094 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19095 if test $ac_cv_lib_m_sin = yes; then
19096   cat >>confdefs.h <<_ACEOF
19097 #define HAVE_LIBM 1
19098 _ACEOF
19099
19100   LIBS="-lm $LIBS"
19101
19102 else
19103   echo "Error: Math library not found.";
19104  exit;
19105
19106 fi
19107
19108
19109 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19110 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19111 if test "${ac_cv_lib_z_deflate+set}" = set; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114   ac_check_lib_save_LIBS=$LIBS
19115 LIBS="-lz  $LIBS"
19116 cat >conftest.$ac_ext <<_ACEOF
19117 /* confdefs.h.  */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h.  */
19122
19123 /* Override any gcc2 internal prototype to avoid an error.  */
19124 #ifdef __cplusplus
19125 extern "C"
19126 #endif
19127 /* We use char because int might match the return type of a gcc2
19128    builtin and then its argument prototype would still apply.  */
19129 char deflate ();
19130 int
19131 main ()
19132 {
19133 deflate ();
19134   ;
19135   return 0;
19136 }
19137 _ACEOF
19138 rm -f conftest.$ac_objext conftest$ac_exeext
19139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19140   (eval $ac_link) 2>conftest.er1
19141   ac_status=$?
19142   grep -v '^ *+' conftest.er1 >conftest.err
19143   rm -f conftest.er1
19144   cat conftest.err >&5
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); } &&
19147          { ac_try='test -z "$ac_c_werror_flag"
19148                          || test ! -s conftest.err'
19149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150   (eval $ac_try) 2>&5
19151   ac_status=$?
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); }; } &&
19154          { ac_try='test -s conftest$ac_exeext'
19155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156   (eval $ac_try) 2>&5
19157   ac_status=$?
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); }; }; then
19160   ac_cv_lib_z_deflate=yes
19161 else
19162   echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19164
19165 ac_cv_lib_z_deflate=no
19166 fi
19167 rm -f conftest.err conftest.$ac_objext \
19168       conftest$ac_exeext conftest.$ac_ext
19169 LIBS=$ac_check_lib_save_LIBS
19170 fi
19171 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19172 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19173 if test $ac_cv_lib_z_deflate = yes; then
19174   cat >>confdefs.h <<_ACEOF
19175 #define HAVE_LIBZ 1
19176 _ACEOF
19177
19178   LIBS="-lz $LIBS"
19179
19180 else
19181   ZLIBMISSING=true
19182 fi
19183
19184
19185 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
19186 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
19187 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
19188   echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190   ac_check_lib_save_LIBS=$LIBS
19191 LIBS="-ljpeg  $LIBS"
19192 cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h.  */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h.  */
19198
19199 /* Override any gcc2 internal prototype to avoid an error.  */
19200 #ifdef __cplusplus
19201 extern "C"
19202 #endif
19203 /* We use char because int might match the return type of a gcc2
19204    builtin and then its argument prototype would still apply.  */
19205 char jpeg_write_raw_data ();
19206 int
19207 main ()
19208 {
19209 jpeg_write_raw_data ();
19210   ;
19211   return 0;
19212 }
19213 _ACEOF
19214 rm -f conftest.$ac_objext conftest$ac_exeext
19215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19216   (eval $ac_link) 2>conftest.er1
19217   ac_status=$?
19218   grep -v '^ *+' conftest.er1 >conftest.err
19219   rm -f conftest.er1
19220   cat conftest.err >&5
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } &&
19223          { ac_try='test -z "$ac_c_werror_flag"
19224                          || test ! -s conftest.err'
19225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226   (eval $ac_try) 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; } &&
19230          { ac_try='test -s conftest$ac_exeext'
19231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232   (eval $ac_try) 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); }; }; then
19236   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
19237 else
19238   echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19240
19241 ac_cv_lib_jpeg_jpeg_write_raw_data=no
19242 fi
19243 rm -f conftest.err conftest.$ac_objext \
19244       conftest$ac_exeext conftest.$ac_ext
19245 LIBS=$ac_check_lib_save_LIBS
19246 fi
19247 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
19248 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
19249 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
19250   cat >>confdefs.h <<_ACEOF
19251 #define HAVE_LIBJPEG 1
19252 _ACEOF
19253
19254   LIBS="-ljpeg $LIBS"
19255
19256 else
19257   JPEGLIBMISSING=true
19258 fi
19259
19260
19261 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
19262 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
19263 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
19264   echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266   ac_check_lib_save_LIBS=$LIBS
19267 LIBS="-lt1  $LIBS"
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h.  */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h.  */
19274
19275 /* Override any gcc2 internal prototype to avoid an error.  */
19276 #ifdef __cplusplus
19277 extern "C"
19278 #endif
19279 /* We use char because int might match the return type of a gcc2
19280    builtin and then its argument prototype would still apply.  */
19281 char T1_LoadFont ();
19282 int
19283 main ()
19284 {
19285 T1_LoadFont ();
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292   (eval $ac_link) 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } &&
19299          { ac_try='test -z "$ac_c_werror_flag"
19300                          || test ! -s conftest.err'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; } &&
19306          { ac_try='test -s conftest$ac_exeext'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   ac_cv_lib_t1_T1_LoadFont=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317 ac_cv_lib_t1_T1_LoadFont=no
19318 fi
19319 rm -f conftest.err conftest.$ac_objext \
19320       conftest$ac_exeext conftest.$ac_ext
19321 LIBS=$ac_check_lib_save_LIBS
19322 fi
19323 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
19324 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
19325 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
19326   cat >>confdefs.h <<_ACEOF
19327 #define HAVE_LIBT1 1
19328 _ACEOF
19329
19330   LIBS="-lt1 $LIBS"
19331
19332 else
19333   T1LIBMISSING=true
19334 fi
19335
19336
19337
19338 echo "$as_me:$LINENO: checking for byte order" >&5
19339 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
19340 if test "$cross_compiling" = yes; then
19341   CROSSCOMPILE=1
19342 else
19343   cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h.  */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h.  */
19349
19350 int main (int argc, char *argv[])
19351 {
19352     int i = 1;
19353     return *(char*)&i;
19354 }
19355
19356 _ACEOF
19357 rm -f conftest$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359   (eval $ac_link) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364   (eval $ac_try) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; }; then
19368   BIGENDIAN=1
19369 else
19370   echo "$as_me: program exited with status $ac_status" >&5
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19373
19374 ( exit $ac_status )
19375 LITTLEENDIAN=1
19376 fi
19377 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19378 fi
19379 export CROSSCOMPILE
19380
19381 if test "x${CROSSCOMPILE}" = "x1"; then
19382  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
19383 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
19384  echo "$as_me:$LINENO: checking target system type" >&5
19385 echo $ECHO_N "checking target system type... $ECHO_C" >&6
19386 if test "${ac_cv_target+set}" = set; then
19387   echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389   ac_cv_target_alias=$target_alias
19390 test "x$ac_cv_target_alias" = "x" &&
19391   ac_cv_target_alias=$ac_cv_host_alias
19392 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
19393   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
19394 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
19395    { (exit 1); exit 1; }; }
19396
19397 fi
19398 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
19399 echo "${ECHO_T}$ac_cv_target" >&6
19400 target=$ac_cv_target
19401 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
19402 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
19403 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
19404
19405
19406 # The aliases save the names the user supplied, while $host etc.
19407 # will get canonicalized.
19408 test -n "$target_alias" &&
19409   test "$program_prefix$program_suffix$program_transform_name" = \
19410     NONENONEs,x,x, &&
19411   program_prefix=${target_alias}-
19412  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
19413 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
19414  case "${target}" in
19415   *86* | *-pc-* )
19416      LITTLEENDIAN=1
19417      ;;
19418   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
19419      BIGENDIAN=1
19420      ;;
19421  esac
19422 fi
19423
19424 export LITTLEENDIAN
19425 if test "x${LITTLEENDIAN}" = "x1"; then
19426 echo "$as_me:$LINENO: result: little endian" >&5
19427 echo "${ECHO_T}little endian" >&6
19428 BYTEORDERCHECKOK=1
19429 fi
19430 export BIGENDIAN
19431 if test "x${BIGENDIAN}" = "x1"; then
19432 echo "$as_me:$LINENO: result: big endian" >&5
19433 echo "${ECHO_T}big endian" >&6
19434 BYTEORDERCHECKOK=1
19435 WORDS_BIGENDIAN=1
19436 export WORDS_BIGENDIAN
19437 cat >>confdefs.h <<_ACEOF
19438 #define WORDS_BIGENDIAN 1
19439 _ACEOF
19440
19441 fi
19442 if test "x${BYTEORDERCHECKOK}" != "x1"; then
19443 echo "$as_me:$LINENO: result: unknown" >&5
19444 echo "${ECHO_T}unknown" >&6
19445 echo Byte order could not determined.
19446 exit 1
19447 fi
19448
19449
19450
19451 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
19452 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
19453 if test "$cross_compiling" = yes; then
19454   CROSSCOMPILE=1
19455 else
19456   cat >conftest.$ac_ext <<_ACEOF
19457 /* confdefs.h.  */
19458 _ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h.  */
19462
19463 #include "stdlib.h"
19464 int main (int argc, char*argv[])
19465 {
19466     return system("test `touch config.tmp2`");
19467 }
19468
19469 _ACEOF
19470 rm -f conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472   (eval $ac_link) 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   OK=OK
19482 else
19483   echo "$as_me: program exited with status $ac_status" >&5
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 fi
19488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19489 fi
19490
19491 if test "x${OK}" = "xOK";then
19492     test -f config.tmp2 || OK=
19493 fi
19494
19495 if test "x${CROSSCOMPILE}" = "x1";then
19496     OK=OK;
19497 fi
19498 if test "x${OK}" = "xOK";then
19499 rm -f config.tmp2
19500 echo "$as_me:$LINENO: result: yes" >&5
19501 echo "${ECHO_T}yes" >&6
19502 SYSTEM_BACKTICKS=1
19503 export SYSTEM_BACKTICKS
19504 cat >>confdefs.h <<_ACEOF
19505 #define SYSTEM_BACKTICKS 1
19506 _ACEOF
19507
19508 else
19509 echo "$as_me:$LINENO: result: no" >&5
19510 echo "${ECHO_T}no" >&6
19511 fi
19512
19513
19514
19515 test "$program_prefix" != NONE &&
19516   program_transform_name="s,^,$program_prefix,;$program_transform_name"
19517 # Use a double $ so make ignores it.
19518 test "$program_suffix" != NONE &&
19519   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
19520 # Double any \ or $.  echo might interpret backslashes.
19521 # By default was `s,x,x', remove it if useless.
19522 cat <<\_ACEOF >conftest.sed
19523 s/[\\$]/&&/g;s/;s,x,x,$//
19524 _ACEOF
19525 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
19526 rm conftest.sed
19527
19528
19529            ac_config_headers="$ac_config_headers config.h"
19530
19531
19532
19533
19534
19535
19536 ac_header_dirent=no
19537 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19538   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19539 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19540 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19542   echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544   cat >conftest.$ac_ext <<_ACEOF
19545 /* confdefs.h.  */
19546 _ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h.  */
19550 #include <sys/types.h>
19551 #include <$ac_hdr>
19552
19553 int
19554 main ()
19555 {
19556 if ((DIR *) 0)
19557 return 0;
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564   (eval $ac_compile) 2>conftest.er1
19565   ac_status=$?
19566   grep -v '^ *+' conftest.er1 >conftest.err
19567   rm -f conftest.er1
19568   cat conftest.err >&5
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); } &&
19571          { ac_try='test -z "$ac_c_werror_flag"
19572                          || test ! -s conftest.err'
19573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574   (eval $ac_try) 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; } &&
19578          { ac_try='test -s conftest.$ac_objext'
19579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580   (eval $ac_try) 2>&5
19581   ac_status=$?
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); }; }; then
19584   eval "$as_ac_Header=yes"
19585 else
19586   echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589 eval "$as_ac_Header=no"
19590 fi
19591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19592 fi
19593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19596   cat >>confdefs.h <<_ACEOF
19597 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19598 _ACEOF
19599
19600 ac_header_dirent=$ac_hdr; break
19601 fi
19602
19603 done
19604 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19605 if test $ac_header_dirent = dirent.h; then
19606   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19607 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19608 if test "${ac_cv_search_opendir+set}" = set; then
19609   echo $ECHO_N "(cached) $ECHO_C" >&6
19610 else
19611   ac_func_search_save_LIBS=$LIBS
19612 ac_cv_search_opendir=no
19613 cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h.  */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h.  */
19619
19620 /* Override any gcc2 internal prototype to avoid an error.  */
19621 #ifdef __cplusplus
19622 extern "C"
19623 #endif
19624 /* We use char because int might match the return type of a gcc2
19625    builtin and then its argument prototype would still apply.  */
19626 char opendir ();
19627 int
19628 main ()
19629 {
19630 opendir ();
19631   ;
19632   return 0;
19633 }
19634 _ACEOF
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19637   (eval $ac_link) 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } &&
19644          { ac_try='test -z "$ac_c_werror_flag"
19645                          || test ! -s conftest.err'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; } &&
19651          { ac_try='test -s conftest$ac_exeext'
19652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653   (eval $ac_try) 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }; }; then
19657   ac_cv_search_opendir="none required"
19658 else
19659   echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19661
19662 fi
19663 rm -f conftest.err conftest.$ac_objext \
19664       conftest$ac_exeext conftest.$ac_ext
19665 if test "$ac_cv_search_opendir" = no; then
19666   for ac_lib in dir; do
19667     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19668     cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h.  */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h.  */
19674
19675 /* Override any gcc2 internal prototype to avoid an error.  */
19676 #ifdef __cplusplus
19677 extern "C"
19678 #endif
19679 /* We use char because int might match the return type of a gcc2
19680    builtin and then its argument prototype would still apply.  */
19681 char opendir ();
19682 int
19683 main ()
19684 {
19685 opendir ();
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext conftest$ac_exeext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692   (eval $ac_link) 2>conftest.er1
19693   ac_status=$?
19694   grep -v '^ *+' conftest.er1 >conftest.err
19695   rm -f conftest.er1
19696   cat conftest.err >&5
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); } &&
19699          { ac_try='test -z "$ac_c_werror_flag"
19700                          || test ! -s conftest.err'
19701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702   (eval $ac_try) 2>&5
19703   ac_status=$?
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); }; } &&
19706          { ac_try='test -s conftest$ac_exeext'
19707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708   (eval $ac_try) 2>&5
19709   ac_status=$?
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); }; }; then
19712   ac_cv_search_opendir="-l$ac_lib"
19713 break
19714 else
19715   echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718 fi
19719 rm -f conftest.err conftest.$ac_objext \
19720       conftest$ac_exeext conftest.$ac_ext
19721   done
19722 fi
19723 LIBS=$ac_func_search_save_LIBS
19724 fi
19725 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19726 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19727 if test "$ac_cv_search_opendir" != no; then
19728   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19729
19730 fi
19731
19732 else
19733   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19734 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19735 if test "${ac_cv_search_opendir+set}" = set; then
19736   echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738   ac_func_search_save_LIBS=$LIBS
19739 ac_cv_search_opendir=no
19740 cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h.  */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h.  */
19746
19747 /* Override any gcc2 internal prototype to avoid an error.  */
19748 #ifdef __cplusplus
19749 extern "C"
19750 #endif
19751 /* We use char because int might match the return type of a gcc2
19752    builtin and then its argument prototype would still apply.  */
19753 char opendir ();
19754 int
19755 main ()
19756 {
19757 opendir ();
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19764   (eval $ac_link) 2>conftest.er1
19765   ac_status=$?
19766   grep -v '^ *+' conftest.er1 >conftest.err
19767   rm -f conftest.er1
19768   cat conftest.err >&5
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); } &&
19771          { ac_try='test -z "$ac_c_werror_flag"
19772                          || test ! -s conftest.err'
19773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774   (eval $ac_try) 2>&5
19775   ac_status=$?
19776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777   (exit $ac_status); }; } &&
19778          { ac_try='test -s conftest$ac_exeext'
19779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780   (eval $ac_try) 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); }; }; then
19784   ac_cv_search_opendir="none required"
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 fi
19790 rm -f conftest.err conftest.$ac_objext \
19791       conftest$ac_exeext conftest.$ac_ext
19792 if test "$ac_cv_search_opendir" = no; then
19793   for ac_lib in x; do
19794     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19795     cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h.  */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h.  */
19801
19802 /* Override any gcc2 internal prototype to avoid an error.  */
19803 #ifdef __cplusplus
19804 extern "C"
19805 #endif
19806 /* We use char because int might match the return type of a gcc2
19807    builtin and then its argument prototype would still apply.  */
19808 char opendir ();
19809 int
19810 main ()
19811 {
19812 opendir ();
19813   ;
19814   return 0;
19815 }
19816 _ACEOF
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19819   (eval $ac_link) 2>conftest.er1
19820   ac_status=$?
19821   grep -v '^ *+' conftest.er1 >conftest.err
19822   rm -f conftest.er1
19823   cat conftest.err >&5
19824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825   (exit $ac_status); } &&
19826          { ac_try='test -z "$ac_c_werror_flag"
19827                          || test ! -s conftest.err'
19828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829   (eval $ac_try) 2>&5
19830   ac_status=$?
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); }; } &&
19833          { ac_try='test -s conftest$ac_exeext'
19834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835   (eval $ac_try) 2>&5
19836   ac_status=$?
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); }; }; then
19839   ac_cv_search_opendir="-l$ac_lib"
19840 break
19841 else
19842   echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845 fi
19846 rm -f conftest.err conftest.$ac_objext \
19847       conftest$ac_exeext conftest.$ac_ext
19848   done
19849 fi
19850 LIBS=$ac_func_search_save_LIBS
19851 fi
19852 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19853 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19854 if test "$ac_cv_search_opendir" != no; then
19855   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19856
19857 fi
19858
19859 fi
19860
19861  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19863 if test "${ac_cv_header_stdc+set}" = set; then
19864   echo $ECHO_N "(cached) $ECHO_C" >&6
19865 else
19866   cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h.  */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h.  */
19872 #include <stdlib.h>
19873 #include <stdarg.h>
19874 #include <string.h>
19875 #include <float.h>
19876
19877 int
19878 main ()
19879 {
19880
19881   ;
19882   return 0;
19883 }
19884 _ACEOF
19885 rm -f conftest.$ac_objext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19887   (eval $ac_compile) 2>conftest.er1
19888   ac_status=$?
19889   grep -v '^ *+' conftest.er1 >conftest.err
19890   rm -f conftest.er1
19891   cat conftest.err >&5
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } &&
19894          { ac_try='test -z "$ac_c_werror_flag"
19895                          || test ! -s conftest.err'
19896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897   (eval $ac_try) 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); }; } &&
19901          { ac_try='test -s conftest.$ac_objext'
19902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903   (eval $ac_try) 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; }; then
19907   ac_cv_header_stdc=yes
19908 else
19909   echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912 ac_cv_header_stdc=no
19913 fi
19914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19915
19916 if test $ac_cv_header_stdc = yes; then
19917   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19918   cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h.  */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h.  */
19924 #include <string.h>
19925
19926 _ACEOF
19927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19928   $EGREP "memchr" >/dev/null 2>&1; then
19929   :
19930 else
19931   ac_cv_header_stdc=no
19932 fi
19933 rm -f conftest*
19934
19935 fi
19936
19937 if test $ac_cv_header_stdc = yes; then
19938   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19939   cat >conftest.$ac_ext <<_ACEOF
19940 /* confdefs.h.  */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h.  */
19945 #include <stdlib.h>
19946
19947 _ACEOF
19948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19949   $EGREP "free" >/dev/null 2>&1; then
19950   :
19951 else
19952   ac_cv_header_stdc=no
19953 fi
19954 rm -f conftest*
19955
19956 fi
19957
19958 if test $ac_cv_header_stdc = yes; then
19959   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19960   if test "$cross_compiling" = yes; then
19961   :
19962 else
19963   cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h.  */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h.  */
19969 #include <ctype.h>
19970 #if ((' ' & 0x0FF) == 0x020)
19971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19973 #else
19974 # define ISLOWER(c) \
19975                    (('a' <= (c) && (c) <= 'i') \
19976                      || ('j' <= (c) && (c) <= 'r') \
19977                      || ('s' <= (c) && (c) <= 'z'))
19978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19979 #endif
19980
19981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19982 int
19983 main ()
19984 {
19985   int i;
19986   for (i = 0; i < 256; i++)
19987     if (XOR (islower (i), ISLOWER (i))
19988         || toupper (i) != TOUPPER (i))
19989       exit(2);
19990   exit (0);
19991 }
19992 _ACEOF
19993 rm -f conftest$ac_exeext
19994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19995   (eval $ac_link) 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; }; then
20004   :
20005 else
20006   echo "$as_me: program exited with status $ac_status" >&5
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20009
20010 ( exit $ac_status )
20011 ac_cv_header_stdc=no
20012 fi
20013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20014 fi
20015 fi
20016 fi
20017 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20018 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20019 if test $ac_cv_header_stdc = yes; then
20020
20021 cat >>confdefs.h <<\_ACEOF
20022 #define STDC_HEADERS 1
20023 _ACEOF
20024
20025 fi
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041 for ac_header in zlib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
20042 do
20043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20045   echo "$as_me:$LINENO: checking for $ac_header" >&5
20046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 fi
20050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20052 else
20053   # Is the header compilable?
20054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062 $ac_includes_default
20063 #include <$ac_header>
20064 _ACEOF
20065 rm -f conftest.$ac_objext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20067   (eval $ac_compile) 2>conftest.er1
20068   ac_status=$?
20069   grep -v '^ *+' conftest.er1 >conftest.err
20070   rm -f conftest.er1
20071   cat conftest.err >&5
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); } &&
20074          { ac_try='test -z "$ac_c_werror_flag"
20075                          || test ! -s conftest.err'
20076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077   (eval $ac_try) 2>&5
20078   ac_status=$?
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); }; } &&
20081          { ac_try='test -s conftest.$ac_objext'
20082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083   (eval $ac_try) 2>&5
20084   ac_status=$?
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); }; }; then
20087   ac_header_compiler=yes
20088 else
20089   echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20091
20092 ac_header_compiler=no
20093 fi
20094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20096 echo "${ECHO_T}$ac_header_compiler" >&6
20097
20098 # Is the header present?
20099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20101 cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h.  */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h.  */
20107 #include <$ac_header>
20108 _ACEOF
20109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20111   ac_status=$?
20112   grep -v '^ *+' conftest.er1 >conftest.err
20113   rm -f conftest.er1
20114   cat conftest.err >&5
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); } >/dev/null; then
20117   if test -s conftest.err; then
20118     ac_cpp_err=$ac_c_preproc_warn_flag
20119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20120   else
20121     ac_cpp_err=
20122   fi
20123 else
20124   ac_cpp_err=yes
20125 fi
20126 if test -z "$ac_cpp_err"; then
20127   ac_header_preproc=yes
20128 else
20129   echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20131
20132   ac_header_preproc=no
20133 fi
20134 rm -f conftest.err conftest.$ac_ext
20135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20136 echo "${ECHO_T}$ac_header_preproc" >&6
20137
20138 # So?  What about this header?
20139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20140   yes:no: )
20141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20145     ac_header_preproc=yes
20146     ;;
20147   no:yes:* )
20148     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20150     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20151 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20152     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20154     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20155 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20158     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20160     (
20161       cat <<\_ASBOX
20162 ## ------------------------------------------ ##
20163 ## Report this to the AC_PACKAGE_NAME lists.  ##
20164 ## ------------------------------------------ ##
20165 _ASBOX
20166     ) |
20167       sed "s/^/$as_me: WARNING:     /" >&2
20168     ;;
20169 esac
20170 echo "$as_me:$LINENO: checking for $ac_header" >&5
20171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20173   echo $ECHO_N "(cached) $ECHO_C" >&6
20174 else
20175   eval "$as_ac_Header=\$ac_header_preproc"
20176 fi
20177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20179
20180 fi
20181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20182   cat >>confdefs.h <<_ACEOF
20183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20184 _ACEOF
20185
20186 fi
20187
20188 done
20189
20190
20191 cat >>confdefs.h <<_ACEOF
20192 #define PACKAGE "$PACKAGE"
20193 _ACEOF
20194
20195 cat >>confdefs.h <<_ACEOF
20196 #define VERSION "$VERSION"
20197 _ACEOF
20198
20199
20200
20201
20202
20203
20204
20205  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20206 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20207 if test "${ac_cv_c_const+set}" = set; then
20208   echo $ECHO_N "(cached) $ECHO_C" >&6
20209 else
20210   cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h.  */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h.  */
20216
20217 int
20218 main ()
20219 {
20220 /* FIXME: Include the comments suggested by Paul. */
20221 #ifndef __cplusplus
20222   /* Ultrix mips cc rejects this.  */
20223   typedef int charset[2];
20224   const charset x;
20225   /* SunOS 4.1.1 cc rejects this.  */
20226   char const *const *ccp;
20227   char **p;
20228   /* NEC SVR4.0.2 mips cc rejects this.  */
20229   struct point {int x, y;};
20230   static struct point const zero = {0,0};
20231   /* AIX XL C 1.02.0.0 rejects this.
20232      It does not let you subtract one const X* pointer from another in
20233      an arm of an if-expression whose if-part is not a constant
20234      expression */
20235   const char *g = "string";
20236   ccp = &g + (g ? g-g : 0);
20237   /* HPUX 7.0 cc rejects these. */
20238   ++ccp;
20239   p = (char**) ccp;
20240   ccp = (char const *const *) p;
20241   { /* SCO 3.2v4 cc rejects this.  */
20242     char *t;
20243     char const *s = 0 ? (char *) 0 : (char const *) 0;
20244
20245     *t++ = 0;
20246   }
20247   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20248     int x[] = {25, 17};
20249     const int *foo = &x[0];
20250     ++foo;
20251   }
20252   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20253     typedef const int *iptr;
20254     iptr p = 0;
20255     ++p;
20256   }
20257   { /* AIX XL C 1.02.0.0 rejects this saying
20258        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20259     struct s { int j; const int *ap[3]; };
20260     struct s *b; b->j = 5;
20261   }
20262   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20263     const int foo = 10;
20264   }
20265 #endif
20266
20267   ;
20268   return 0;
20269 }
20270 _ACEOF
20271 rm -f conftest.$ac_objext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273   (eval $ac_compile) 2>conftest.er1
20274   ac_status=$?
20275   grep -v '^ *+' conftest.er1 >conftest.err
20276   rm -f conftest.er1
20277   cat conftest.err >&5
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } &&
20280          { ac_try='test -z "$ac_c_werror_flag"
20281                          || test ! -s conftest.err'
20282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283   (eval $ac_try) 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }; } &&
20287          { ac_try='test -s conftest.$ac_objext'
20288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289   (eval $ac_try) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; }; then
20293   ac_cv_c_const=yes
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 ac_cv_c_const=no
20299 fi
20300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20301 fi
20302 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20303 echo "${ECHO_T}$ac_cv_c_const" >&6
20304 if test $ac_cv_c_const = no; then
20305
20306 cat >>confdefs.h <<\_ACEOF
20307 #define const
20308 _ACEOF
20309
20310 fi
20311
20312  echo "$as_me:$LINENO: checking for inline" >&5
20313 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20314 if test "${ac_cv_c_inline+set}" = set; then
20315   echo $ECHO_N "(cached) $ECHO_C" >&6
20316 else
20317   ac_cv_c_inline=no
20318 for ac_kw in inline __inline__ __inline; do
20319   cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h.  */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h.  */
20325 #ifndef __cplusplus
20326 typedef int foo_t;
20327 static $ac_kw foo_t static_foo () {return 0; }
20328 $ac_kw foo_t foo () {return 0; }
20329 #endif
20330
20331 _ACEOF
20332 rm -f conftest.$ac_objext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20334   (eval $ac_compile) 2>conftest.er1
20335   ac_status=$?
20336   grep -v '^ *+' conftest.er1 >conftest.err
20337   rm -f conftest.er1
20338   cat conftest.err >&5
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); } &&
20341          { ac_try='test -z "$ac_c_werror_flag"
20342                          || test ! -s conftest.err'
20343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344   (eval $ac_try) 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; } &&
20348          { ac_try='test -s conftest.$ac_objext'
20349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350   (eval $ac_try) 2>&5
20351   ac_status=$?
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); }; }; then
20354   ac_cv_c_inline=$ac_kw; break
20355 else
20356   echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20358
20359 fi
20360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20361 done
20362
20363 fi
20364 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20365 echo "${ECHO_T}$ac_cv_c_inline" >&6
20366
20367
20368 case $ac_cv_c_inline in
20369   inline | yes) ;;
20370   *)
20371     case $ac_cv_c_inline in
20372       no) ac_val=;;
20373       *) ac_val=$ac_cv_c_inline;;
20374     esac
20375     cat >>confdefs.h <<_ACEOF
20376 #ifndef __cplusplus
20377 #define inline $ac_val
20378 #endif
20379 _ACEOF
20380     ;;
20381 esac
20382
20383  echo "$as_me:$LINENO: checking for off_t" >&5
20384 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20385 if test "${ac_cv_type_off_t+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 $ac_includes_default
20395 int
20396 main ()
20397 {
20398 if ((off_t *) 0)
20399   return 0;
20400 if (sizeof (off_t))
20401   return 0;
20402   ;
20403   return 0;
20404 }
20405 _ACEOF
20406 rm -f conftest.$ac_objext
20407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20408   (eval $ac_compile) 2>conftest.er1
20409   ac_status=$?
20410   grep -v '^ *+' conftest.er1 >conftest.err
20411   rm -f conftest.er1
20412   cat conftest.err >&5
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } &&
20415          { ac_try='test -z "$ac_c_werror_flag"
20416                          || test ! -s conftest.err'
20417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418   (eval $ac_try) 2>&5
20419   ac_status=$?
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); }; } &&
20422          { ac_try='test -s conftest.$ac_objext'
20423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424   (eval $ac_try) 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); }; }; then
20428   ac_cv_type_off_t=yes
20429 else
20430   echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ac_cv_type_off_t=no
20434 fi
20435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20436 fi
20437 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20438 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20439 if test $ac_cv_type_off_t = yes; then
20440   :
20441 else
20442
20443 cat >>confdefs.h <<_ACEOF
20444 #define off_t long
20445 _ACEOF
20446
20447 fi
20448
20449  echo "$as_me:$LINENO: checking for size_t" >&5
20450 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20451 if test "${ac_cv_type_size_t+set}" = set; then
20452   echo $ECHO_N "(cached) $ECHO_C" >&6
20453 else
20454   cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h.  */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h.  */
20460 $ac_includes_default
20461 int
20462 main ()
20463 {
20464 if ((size_t *) 0)
20465   return 0;
20466 if (sizeof (size_t))
20467   return 0;
20468   ;
20469   return 0;
20470 }
20471 _ACEOF
20472 rm -f conftest.$ac_objext
20473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20474   (eval $ac_compile) 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } &&
20481          { ac_try='test -z "$ac_c_werror_flag"
20482                          || test ! -s conftest.err'
20483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484   (eval $ac_try) 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; } &&
20488          { ac_try='test -s conftest.$ac_objext'
20489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490   (eval $ac_try) 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; }; then
20494   ac_cv_type_size_t=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 ac_cv_type_size_t=no
20500 fi
20501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20502 fi
20503 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20504 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20505 if test $ac_cv_type_size_t = yes; then
20506   :
20507 else
20508
20509 cat >>confdefs.h <<_ACEOF
20510 #define size_t unsigned
20511 _ACEOF
20512
20513 fi
20514
20515  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20516 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20517 if test "${ac_cv_struct_tm+set}" = set; then
20518   echo $ECHO_N "(cached) $ECHO_C" >&6
20519 else
20520   cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h.  */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h.  */
20526 #include <sys/types.h>
20527 #include <time.h>
20528
20529 int
20530 main ()
20531 {
20532 struct tm *tp; tp->tm_sec;
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539   (eval $ac_compile) 2>conftest.er1
20540   ac_status=$?
20541   grep -v '^ *+' conftest.er1 >conftest.err
20542   rm -f conftest.er1
20543   cat conftest.err >&5
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); } &&
20546          { ac_try='test -z "$ac_c_werror_flag"
20547                          || test ! -s conftest.err'
20548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549   (eval $ac_try) 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); }; } &&
20553          { ac_try='test -s conftest.$ac_objext'
20554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555   (eval $ac_try) 2>&5
20556   ac_status=$?
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); }; }; then
20559   ac_cv_struct_tm=time.h
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 ac_cv_struct_tm=sys/time.h
20565 fi
20566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20567 fi
20568 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20569 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20570 if test $ac_cv_struct_tm = sys/time.h; then
20571
20572 cat >>confdefs.h <<\_ACEOF
20573 #define TM_IN_SYS_TIME 1
20574 _ACEOF
20575
20576 fi
20577
20578  echo "$as_me:$LINENO: checking for boolean" >&5
20579 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
20580 if test "${ac_cv_type_boolean+set}" = set; then
20581   echo $ECHO_N "(cached) $ECHO_C" >&6
20582 else
20583   cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589 $ac_includes_default
20590 int
20591 main ()
20592 {
20593 if ((boolean *) 0)
20594   return 0;
20595 if (sizeof (boolean))
20596   return 0;
20597   ;
20598   return 0;
20599 }
20600 _ACEOF
20601 rm -f conftest.$ac_objext
20602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20603   (eval $ac_compile) 2>conftest.er1
20604   ac_status=$?
20605   grep -v '^ *+' conftest.er1 >conftest.err
20606   rm -f conftest.er1
20607   cat conftest.err >&5
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); } &&
20610          { ac_try='test -z "$ac_c_werror_flag"
20611                          || test ! -s conftest.err'
20612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613   (eval $ac_try) 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); }; } &&
20617          { ac_try='test -s conftest.$ac_objext'
20618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619   (eval $ac_try) 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); }; }; then
20623   ac_cv_type_boolean=yes
20624 else
20625   echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628 ac_cv_type_boolean=no
20629 fi
20630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20631 fi
20632 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
20633 echo "${ECHO_T}$ac_cv_type_boolean" >&6
20634 if test $ac_cv_type_boolean = yes; then
20635   :
20636 else
20637
20638 cat >>confdefs.h <<_ACEOF
20639 #define boolean int
20640 _ACEOF
20641
20642 fi
20643  #needed for jpeglib
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
20656 do
20657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20658 echo "$as_me:$LINENO: checking for $ac_func" >&5
20659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20660 if eval "test \"\${$as_ac_var+set}\" = set"; then
20661   echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663   cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h.  */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h.  */
20669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20671 #define $ac_func innocuous_$ac_func
20672
20673 /* System header to define __stub macros and hopefully few prototypes,
20674     which can conflict with char $ac_func (); below.
20675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20676     <limits.h> exists even on freestanding compilers.  */
20677
20678 #ifdef __STDC__
20679 # include <limits.h>
20680 #else
20681 # include <assert.h>
20682 #endif
20683
20684 #undef $ac_func
20685
20686 /* Override any gcc2 internal prototype to avoid an error.  */
20687 #ifdef __cplusplus
20688 extern "C"
20689 {
20690 #endif
20691 /* We use char because int might match the return type of a gcc2
20692    builtin and then its argument prototype would still apply.  */
20693 char $ac_func ();
20694 /* The GNU C library defines this for functions which it implements
20695     to always fail with ENOSYS.  Some functions are actually named
20696     something starting with __ and the normal name is an alias.  */
20697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20698 choke me
20699 #else
20700 char (*f) () = $ac_func;
20701 #endif
20702 #ifdef __cplusplus
20703 }
20704 #endif
20705
20706 int
20707 main ()
20708 {
20709 return f != $ac_func;
20710   ;
20711   return 0;
20712 }
20713 _ACEOF
20714 rm -f conftest.$ac_objext conftest$ac_exeext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716   (eval $ac_link) 2>conftest.er1
20717   ac_status=$?
20718   grep -v '^ *+' conftest.er1 >conftest.err
20719   rm -f conftest.er1
20720   cat conftest.err >&5
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); } &&
20723          { ac_try='test -z "$ac_c_werror_flag"
20724                          || test ! -s conftest.err'
20725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726   (eval $ac_try) 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); }; } &&
20730          { ac_try='test -s conftest$ac_exeext'
20731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732   (eval $ac_try) 2>&5
20733   ac_status=$?
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); }; }; then
20736   eval "$as_ac_var=yes"
20737 else
20738   echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20740
20741 eval "$as_ac_var=no"
20742 fi
20743 rm -f conftest.err conftest.$ac_objext \
20744       conftest$ac_exeext conftest.$ac_ext
20745 fi
20746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20748 if test `eval echo '${'$as_ac_var'}'` = yes; then
20749   cat >>confdefs.h <<_ACEOF
20750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20751 _ACEOF
20752
20753 fi
20754 done
20755
20756
20757 # ------------------------------------------------------------------
20758
20759
20760 for ac_prog in freetype-config
20761 do
20762   # Extract the first word of "$ac_prog", so it can be a program name with args.
20763 set dummy $ac_prog; ac_word=$2
20764 echo "$as_me:$LINENO: checking for $ac_word" >&5
20765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20766 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
20767   echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769   if test -n "$FREETYPE_CONFIG"; then
20770   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
20771 else
20772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20773 for as_dir in $PATH
20774 do
20775   IFS=$as_save_IFS
20776   test -z "$as_dir" && as_dir=.
20777   for ac_exec_ext in '' $ac_executable_extensions; do
20778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20779     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
20780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20781     break 2
20782   fi
20783 done
20784 done
20785
20786 fi
20787 fi
20788 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
20789 if test -n "$FREETYPE_CONFIG"; then
20790   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
20791 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
20792 else
20793   echo "$as_me:$LINENO: result: no" >&5
20794 echo "${ECHO_T}no" >&6
20795 fi
20796
20797   test -n "$FREETYPE_CONFIG" && break
20798 done
20799
20800 OLDCPPFLAGS="${CPPFLAGS}"
20801 OLDLIBS="${LIBS}"
20802 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
20803     CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
20804 else if test -d /usr/include/freetype2; then
20805     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
20806 else if test -d /usr/local/include/freetype2; then
20807     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
20808 fi
20809 fi
20810 fi
20811
20812 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
20813 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
20814 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
20815   echo $ECHO_N "(cached) $ECHO_C" >&6
20816 else
20817   ac_check_lib_save_LIBS=$LIBS
20818 LIBS="-lfreetype  $LIBS"
20819 cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h.  */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h.  */
20825
20826 /* Override any gcc2 internal prototype to avoid an error.  */
20827 #ifdef __cplusplus
20828 extern "C"
20829 #endif
20830 /* We use char because int might match the return type of a gcc2
20831    builtin and then its argument prototype would still apply.  */
20832 char FT_Init_FreeType ();
20833 int
20834 main ()
20835 {
20836 FT_Init_FreeType ();
20837   ;
20838   return 0;
20839 }
20840 _ACEOF
20841 rm -f conftest.$ac_objext conftest$ac_exeext
20842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20843   (eval $ac_link) 2>conftest.er1
20844   ac_status=$?
20845   grep -v '^ *+' conftest.er1 >conftest.err
20846   rm -f conftest.er1
20847   cat conftest.err >&5
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); } &&
20850          { ac_try='test -z "$ac_c_werror_flag"
20851                          || test ! -s conftest.err'
20852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853   (eval $ac_try) 2>&5
20854   ac_status=$?
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); }; } &&
20857          { ac_try='test -s conftest$ac_exeext'
20858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859   (eval $ac_try) 2>&5
20860   ac_status=$?
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); }; }; then
20863   ac_cv_lib_freetype_FT_Init_FreeType=yes
20864 else
20865   echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20867
20868 ac_cv_lib_freetype_FT_Init_FreeType=no
20869 fi
20870 rm -f conftest.err conftest.$ac_objext \
20871       conftest$ac_exeext conftest.$ac_ext
20872 LIBS=$ac_check_lib_save_LIBS
20873 fi
20874 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
20875 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
20876 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
20877   HAVE_LIB_FREETYPE=1
20878 fi
20879
20880
20881 for ac_header in freetype/freetype.h
20882 do
20883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20885   echo "$as_me:$LINENO: checking for $ac_header" >&5
20886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20888   echo $ECHO_N "(cached) $ECHO_C" >&6
20889 fi
20890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20892 else
20893   # Is the header compilable?
20894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20896 cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h.  */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h.  */
20902 $ac_includes_default
20903 #include <$ac_header>
20904 _ACEOF
20905 rm -f conftest.$ac_objext
20906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20907   (eval $ac_compile) 2>conftest.er1
20908   ac_status=$?
20909   grep -v '^ *+' conftest.er1 >conftest.err
20910   rm -f conftest.er1
20911   cat conftest.err >&5
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); } &&
20914          { ac_try='test -z "$ac_c_werror_flag"
20915                          || test ! -s conftest.err'
20916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917   (eval $ac_try) 2>&5
20918   ac_status=$?
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); }; } &&
20921          { ac_try='test -s conftest.$ac_objext'
20922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923   (eval $ac_try) 2>&5
20924   ac_status=$?
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); }; }; then
20927   ac_header_compiler=yes
20928 else
20929   echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20931
20932 ac_header_compiler=no
20933 fi
20934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20936 echo "${ECHO_T}$ac_header_compiler" >&6
20937
20938 # Is the header present?
20939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20941 cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h.  */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h.  */
20947 #include <$ac_header>
20948 _ACEOF
20949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20951   ac_status=$?
20952   grep -v '^ *+' conftest.er1 >conftest.err
20953   rm -f conftest.er1
20954   cat conftest.err >&5
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); } >/dev/null; then
20957   if test -s conftest.err; then
20958     ac_cpp_err=$ac_c_preproc_warn_flag
20959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20960   else
20961     ac_cpp_err=
20962   fi
20963 else
20964   ac_cpp_err=yes
20965 fi
20966 if test -z "$ac_cpp_err"; then
20967   ac_header_preproc=yes
20968 else
20969   echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972   ac_header_preproc=no
20973 fi
20974 rm -f conftest.err conftest.$ac_ext
20975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20976 echo "${ECHO_T}$ac_header_preproc" >&6
20977
20978 # So?  What about this header?
20979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20980   yes:no: )
20981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20985     ac_header_preproc=yes
20986     ;;
20987   no:yes:* )
20988     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20990     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20991 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20992     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20994     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20995 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20998     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21000     (
21001       cat <<\_ASBOX
21002 ## ------------------------------------------ ##
21003 ## Report this to the AC_PACKAGE_NAME lists.  ##
21004 ## ------------------------------------------ ##
21005 _ASBOX
21006     ) |
21007       sed "s/^/$as_me: WARNING:     /" >&2
21008     ;;
21009 esac
21010 echo "$as_me:$LINENO: checking for $ac_header" >&5
21011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21013   echo $ECHO_N "(cached) $ECHO_C" >&6
21014 else
21015   eval "$as_ac_Header=\$ac_header_preproc"
21016 fi
21017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21019
21020 fi
21021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21022   cat >>confdefs.h <<_ACEOF
21023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21024 _ACEOF
21025  HAVE_FREETYPE_FREETYPE_H=1
21026 fi
21027
21028 done
21029
21030
21031 for ac_header in ft2build.h
21032 do
21033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21035   echo "$as_me:$LINENO: checking for $ac_header" >&5
21036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 fi
21040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21042 else
21043   # Is the header compilable?
21044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052 $ac_includes_default
21053 #include <$ac_header>
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057   (eval $ac_compile) 2>conftest.er1
21058   ac_status=$?
21059   grep -v '^ *+' conftest.er1 >conftest.err
21060   rm -f conftest.er1
21061   cat conftest.err >&5
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); } &&
21064          { ac_try='test -z "$ac_c_werror_flag"
21065                          || test ! -s conftest.err'
21066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067   (eval $ac_try) 2>&5
21068   ac_status=$?
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); }; } &&
21071          { ac_try='test -s conftest.$ac_objext'
21072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073   (eval $ac_try) 2>&5
21074   ac_status=$?
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); }; }; then
21077   ac_header_compiler=yes
21078 else
21079   echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082 ac_header_compiler=no
21083 fi
21084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21086 echo "${ECHO_T}$ac_header_compiler" >&6
21087
21088 # Is the header present?
21089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21091 cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #include <$ac_header>
21098 _ACEOF
21099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } >/dev/null; then
21107   if test -s conftest.err; then
21108     ac_cpp_err=$ac_c_preproc_warn_flag
21109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21110   else
21111     ac_cpp_err=
21112   fi
21113 else
21114   ac_cpp_err=yes
21115 fi
21116 if test -z "$ac_cpp_err"; then
21117   ac_header_preproc=yes
21118 else
21119   echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21121
21122   ac_header_preproc=no
21123 fi
21124 rm -f conftest.err conftest.$ac_ext
21125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126 echo "${ECHO_T}$ac_header_preproc" >&6
21127
21128 # So?  What about this header?
21129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21130   yes:no: )
21131     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21135     ac_header_preproc=yes
21136     ;;
21137   no:yes:* )
21138     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21140     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21141 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21142     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21144     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21145 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21148     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21150     (
21151       cat <<\_ASBOX
21152 ## ------------------------------------------ ##
21153 ## Report this to the AC_PACKAGE_NAME lists.  ##
21154 ## ------------------------------------------ ##
21155 _ASBOX
21156     ) |
21157       sed "s/^/$as_me: WARNING:     /" >&2
21158     ;;
21159 esac
21160 echo "$as_me:$LINENO: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21163   echo $ECHO_N "(cached) $ECHO_C" >&6
21164 else
21165   eval "$as_ac_Header=\$ac_header_preproc"
21166 fi
21167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21169
21170 fi
21171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21172   cat >>confdefs.h <<_ACEOF
21173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21174 _ACEOF
21175  HAVE_FT2BUILD_H=1
21176 fi
21177
21178 done
21179
21180
21181 if test "x${HAVE_LIB_FREETYPE}" '!=' "x";then
21182     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
21183         HAVE_FREETYPE=1
21184     fi
21185     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
21186         HAVE_FREETYPE=1
21187     fi
21188 fi
21189
21190 if test "x${HAVE_FREETYPE}" = "x1"; then
21191     if test "x{$FREETYPE_CONFIG}" '!=' "x"; then
21192         LIBS="$LIBS "`freetype-config --libs`
21193     else
21194         LIBS="$LIBS -lfreetype"
21195     fi
21196
21197 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
21198     HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
21199 fi
21200
21201     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
21202 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
21203
21204     cat > conftest.c << EOF
21205 $HAVE_FT2BUILD_H_DEFINE
21206
21207 #ifdef HAVE_FT2BUILD_H
21208 #include <ft2build.h>
21209 #include FT_FREETYPE_H
21210 #include FT_GLYPH_H
21211 #include FT_SIZES_H
21212 #include FT_SFNT_NAMES_H
21213 #include FT_TRUETYPE_IDS_H
21214 #include FT_OUTLINE_H
21215 #else
21216 #include <freetype/freetype.h>
21217 #include <freetype/ftglyph.h>
21218 #include <freetype/ftsizes.h>
21219 #include <freetype/ftsnames.h>
21220 #include <freetype/ttnameid.h>
21221 #include <freetype/ftoutln.h>
21222 #endif
21223
21224 int main()
21225 {
21226     FT_Library ftlibrary;
21227     FT_Face face;
21228     FT_Error error;
21229     FT_ULong charcode;
21230     FT_UInt gindex;
21231     FT_Glyph glyph;
21232     FT_BBox bbox;
21233     FT_Matrix matrix;
21234     FT_UInt i;
21235     char* name = 0;
21236     char italic, bold;
21237
21238     FT_Init_FreeType(&ftlibrary);
21239     FT_New_Face(ftlibrary, "filename", 0, &face);
21240     i = face->num_glyphs - 1;
21241     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
21242     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
21243     FT_Get_Postscript_Name(face);
21244     FT_Get_Char_Index(face, 33);
21245     FT_Get_First_Char(face, &i);
21246     FT_Get_Next_Char(face, 33, &i);
21247     if(FT_HAS_GLYPH_NAMES(face)) {
21248         FT_Get_Glyph_Name(face, 33, name, 127);
21249     }
21250     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
21251     FT_Get_Glyph(face->glyph, &glyph);
21252     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
21253     FT_Done_Glyph(glyph);
21254     FT_Done_Face(face);
21255     FT_Done_FreeType(ftlibrary);
21256     return 0;
21257 }
21258 EOF
21259
21260     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21261     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21262         echo "$as_me:$LINENO: result: yes" >&5
21263 echo "${ECHO_T}yes" >&6
21264         cat >>confdefs.h <<_ACEOF
21265 #define HAVE_FREETYPE 1
21266 _ACEOF
21267
21268         cat >>confdefs.h <<_ACEOF
21269 #define USE_FREETYPE 1
21270 _ACEOF
21271   # for ttf2tp1
21272     else
21273         echo "configure: failed program was:" >&5
21274         cat conftest.c >&5
21275         HAVE_FREETYPE=0
21276         echo "$as_me:$LINENO: result: no" >&5
21277 echo "${ECHO_T}no" >&6
21278     fi
21279     rm -f conftest*
21280 fi
21281
21282 # if the above didn't work out, reset all changes to the compiler variables.
21283 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
21284     CPPFLAGS=$OLDCPPFLAGS
21285     LIBS=$OLDLIBS
21286 fi
21287
21288
21289
21290 OLDCPPFLAGS="${CPPFLAGS}"
21291 OLDLIBS="${LIBS}"
21292
21293 if test -d /usr/include/fontconfig; then
21294     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
21295 fi
21296
21297 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
21298 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
21299 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
21300   echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302   ac_check_lib_save_LIBS=$LIBS
21303 LIBS="-lfontconfig  $LIBS"
21304 cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h.  */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h.  */
21310
21311 /* Override any gcc2 internal prototype to avoid an error.  */
21312 #ifdef __cplusplus
21313 extern "C"
21314 #endif
21315 /* We use char because int might match the return type of a gcc2
21316    builtin and then its argument prototype would still apply.  */
21317 char FcInit ();
21318 int
21319 main ()
21320 {
21321 FcInit ();
21322   ;
21323   return 0;
21324 }
21325 _ACEOF
21326 rm -f conftest.$ac_objext conftest$ac_exeext
21327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21328   (eval $ac_link) 2>conftest.er1
21329   ac_status=$?
21330   grep -v '^ *+' conftest.er1 >conftest.err
21331   rm -f conftest.er1
21332   cat conftest.err >&5
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); } &&
21335          { ac_try='test -z "$ac_c_werror_flag"
21336                          || test ! -s conftest.err'
21337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338   (eval $ac_try) 2>&5
21339   ac_status=$?
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); }; } &&
21342          { ac_try='test -s conftest$ac_exeext'
21343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344   (eval $ac_try) 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); }; }; then
21348   ac_cv_lib_fontconfig_FcInit=yes
21349 else
21350   echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21352
21353 ac_cv_lib_fontconfig_FcInit=no
21354 fi
21355 rm -f conftest.err conftest.$ac_objext \
21356       conftest$ac_exeext conftest.$ac_ext
21357 LIBS=$ac_check_lib_save_LIBS
21358 fi
21359 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
21360 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
21361 if test $ac_cv_lib_fontconfig_FcInit = yes; then
21362   HAVE_LIB_FONTCONFIG=1
21363 fi
21364
21365
21366 for ac_header in fontconfig.h
21367 do
21368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21370   echo "$as_me:$LINENO: checking for $ac_header" >&5
21371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21373   echo $ECHO_N "(cached) $ECHO_C" >&6
21374 fi
21375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21377 else
21378   # Is the header compilable?
21379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387 $ac_includes_default
21388 #include <$ac_header>
21389 _ACEOF
21390 rm -f conftest.$ac_objext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392   (eval $ac_compile) 2>conftest.er1
21393   ac_status=$?
21394   grep -v '^ *+' conftest.er1 >conftest.err
21395   rm -f conftest.er1
21396   cat conftest.err >&5
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); } &&
21399          { ac_try='test -z "$ac_c_werror_flag"
21400                          || test ! -s conftest.err'
21401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402   (eval $ac_try) 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); }; } &&
21406          { ac_try='test -s conftest.$ac_objext'
21407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408   (eval $ac_try) 2>&5
21409   ac_status=$?
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); }; }; then
21412   ac_header_compiler=yes
21413 else
21414   echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21416
21417 ac_header_compiler=no
21418 fi
21419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21421 echo "${ECHO_T}$ac_header_compiler" >&6
21422
21423 # Is the header present?
21424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21426 cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h.  */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h.  */
21432 #include <$ac_header>
21433 _ACEOF
21434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21436   ac_status=$?
21437   grep -v '^ *+' conftest.er1 >conftest.err
21438   rm -f conftest.er1
21439   cat conftest.err >&5
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); } >/dev/null; then
21442   if test -s conftest.err; then
21443     ac_cpp_err=$ac_c_preproc_warn_flag
21444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21445   else
21446     ac_cpp_err=
21447   fi
21448 else
21449   ac_cpp_err=yes
21450 fi
21451 if test -z "$ac_cpp_err"; then
21452   ac_header_preproc=yes
21453 else
21454   echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457   ac_header_preproc=no
21458 fi
21459 rm -f conftest.err conftest.$ac_ext
21460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21461 echo "${ECHO_T}$ac_header_preproc" >&6
21462
21463 # So?  What about this header?
21464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21465   yes:no: )
21466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21470     ac_header_preproc=yes
21471     ;;
21472   no:yes:* )
21473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21485     (
21486       cat <<\_ASBOX
21487 ## ------------------------------------------ ##
21488 ## Report this to the AC_PACKAGE_NAME lists.  ##
21489 ## ------------------------------------------ ##
21490 _ASBOX
21491     ) |
21492       sed "s/^/$as_me: WARNING:     /" >&2
21493     ;;
21494 esac
21495 echo "$as_me:$LINENO: checking for $ac_header" >&5
21496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21498   echo $ECHO_N "(cached) $ECHO_C" >&6
21499 else
21500   eval "$as_ac_Header=\$ac_header_preproc"
21501 fi
21502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21504
21505 fi
21506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21507   cat >>confdefs.h <<_ACEOF
21508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21509 _ACEOF
21510  HAVE_FONTCONFIG_H=1
21511 fi
21512
21513 done
21514
21515
21516 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
21517 if test "x${HAVE_FONTCONFIG_H}" != "x";then
21518     HAVE_FONTCONFIG=1
21519 fi
21520 fi
21521
21522 if test "x${HAVE_FONTCONFIG}" = "x1"; then
21523     LIBS="$LIBS -lfontconfig"
21524 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
21525 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
21526
21527 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
21528     #move freetype library to the end of libraries, otherwise fontconfig
21529     #won't compile.
21530     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
21531 fi
21532
21533 cat > conftest.c << EOF
21534 #include <fontconfig.h>
21535
21536 int main()
21537 {
21538     FcPattern *pattern, *match;
21539     FcResult result;
21540     FcChar8 *v;
21541     FcInit();
21542     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
21543     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
21544     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
21545     FcConfigSubstitute(0, pattern, FcMatchPattern);
21546     FcDefaultSubstitute(pattern);
21547     match = FcFontMatch(0, pattern, &result);
21548     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
21549     FcPatternPrint(pattern);
21550     FcPatternDestroy(pattern);
21551     FcPatternDestroy(match);
21552     return 0;
21553 }
21554 EOF
21555
21556     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21557     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21558         echo "$as_me:$LINENO: result: yes" >&5
21559 echo "${ECHO_T}yes" >&6
21560         cat >>confdefs.h <<_ACEOF
21561 #define HAVE_FONTCONFIG 1
21562 _ACEOF
21563
21564     else
21565         echo "configure: failed program was:" >&5
21566         cat conftest.c >&5
21567         HAVE_FONTCONFIG=0
21568         echo "$as_me:$LINENO: result: no" >&5
21569 echo "${ECHO_T}no" >&6
21570     fi
21571     rm -f conftest*
21572 fi
21573
21574 # if the above didn't work out, reset all changes to the compiler variables.
21575 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
21576     CPPFLAGS=$OLDCPPFLAGS
21577     LIBS=$OLDLIBS
21578 fi
21579
21580
21581 # ------------------------------------------------------------------
21582
21583 lame_objects=
21584 lame_makefile=
21585 if test "x${DISABLE_LAME}" = "xtrue"; then
21586     echo "*" Disabling lame support...
21587 else
21588     # old lame code at lib/lame
21589     if test -f lib/lame/Makefile.in; then
21590         lame_objects="lame/psymodel.o lame/fft.o lame/newmdct.o lame/quantize.o lame/takehiro.o lame/reservoir.o lame/quantize_pvt.o lame/vbrquantize.o lame/encoder.o lame/id3tag.o lame/version.o lame/tables.o lame/util.o lame/bitstream.o lame/set_get.o lame/VbrTag.o lame/lame.o"
21591         lame_makefile="lib/lame/Makefile"
21592         CPPFLAGS="$CPPFLAGS -Ilame"
21593         cat >>confdefs.h <<_ACEOF
21594 #define HAVE_LAME 1
21595 _ACEOF
21596
21597     else
21598         if test -d /usr/include/lame; then
21599             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
21600         else
21601             if test -d /usr/local/include/lame; then
21602                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
21603             fi
21604         fi
21605
21606 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
21607 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
21608 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
21609   echo $ECHO_N "(cached) $ECHO_C" >&6
21610 else
21611   ac_check_lib_save_LIBS=$LIBS
21612 LIBS="-lmp3lame  $LIBS"
21613 cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h.  */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h.  */
21619
21620 /* Override any gcc2 internal prototype to avoid an error.  */
21621 #ifdef __cplusplus
21622 extern "C"
21623 #endif
21624 /* We use char because int might match the return type of a gcc2
21625    builtin and then its argument prototype would still apply.  */
21626 char lame_init ();
21627 int
21628 main ()
21629 {
21630 lame_init ();
21631   ;
21632   return 0;
21633 }
21634 _ACEOF
21635 rm -f conftest.$ac_objext conftest$ac_exeext
21636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21637   (eval $ac_link) 2>conftest.er1
21638   ac_status=$?
21639   grep -v '^ *+' conftest.er1 >conftest.err
21640   rm -f conftest.er1
21641   cat conftest.err >&5
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); } &&
21644          { ac_try='test -z "$ac_c_werror_flag"
21645                          || test ! -s conftest.err'
21646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647   (eval $ac_try) 2>&5
21648   ac_status=$?
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); }; } &&
21651          { ac_try='test -s conftest$ac_exeext'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; }; then
21657   ac_cv_lib_mp3lame_lame_init=yes
21658 else
21659   echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21661
21662 ac_cv_lib_mp3lame_lame_init=no
21663 fi
21664 rm -f conftest.err conftest.$ac_objext \
21665       conftest$ac_exeext conftest.$ac_ext
21666 LIBS=$ac_check_lib_save_LIBS
21667 fi
21668 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
21669 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
21670 if test $ac_cv_lib_mp3lame_lame_init = yes; then
21671   cat >>confdefs.h <<_ACEOF
21672 #define HAVE_LIBMP3LAME 1
21673 _ACEOF
21674
21675   LIBS="-lmp3lame $LIBS"
21676
21677 else
21678   NO_LIBMP3LAME=1
21679 fi
21680
21681
21682 for ac_header in lame.h
21683 do
21684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21686   echo "$as_me:$LINENO: checking for $ac_header" >&5
21687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21689   echo $ECHO_N "(cached) $ECHO_C" >&6
21690 fi
21691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21693 else
21694   # Is the header compilable?
21695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21697 cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h.  */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h.  */
21703 $ac_includes_default
21704 #include <$ac_header>
21705 _ACEOF
21706 rm -f conftest.$ac_objext
21707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21708   (eval $ac_compile) 2>conftest.er1
21709   ac_status=$?
21710   grep -v '^ *+' conftest.er1 >conftest.err
21711   rm -f conftest.er1
21712   cat conftest.err >&5
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); } &&
21715          { ac_try='test -z "$ac_c_werror_flag"
21716                          || test ! -s conftest.err'
21717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718   (eval $ac_try) 2>&5
21719   ac_status=$?
21720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721   (exit $ac_status); }; } &&
21722          { ac_try='test -s conftest.$ac_objext'
21723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724   (eval $ac_try) 2>&5
21725   ac_status=$?
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); }; }; then
21728   ac_header_compiler=yes
21729 else
21730   echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21732
21733 ac_header_compiler=no
21734 fi
21735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21737 echo "${ECHO_T}$ac_header_compiler" >&6
21738
21739 # Is the header present?
21740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21742 cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h.  */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h.  */
21748 #include <$ac_header>
21749 _ACEOF
21750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21751   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21752   ac_status=$?
21753   grep -v '^ *+' conftest.er1 >conftest.err
21754   rm -f conftest.er1
21755   cat conftest.err >&5
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); } >/dev/null; then
21758   if test -s conftest.err; then
21759     ac_cpp_err=$ac_c_preproc_warn_flag
21760     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21761   else
21762     ac_cpp_err=
21763   fi
21764 else
21765   ac_cpp_err=yes
21766 fi
21767 if test -z "$ac_cpp_err"; then
21768   ac_header_preproc=yes
21769 else
21770   echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773   ac_header_preproc=no
21774 fi
21775 rm -f conftest.err conftest.$ac_ext
21776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21777 echo "${ECHO_T}$ac_header_preproc" >&6
21778
21779 # So?  What about this header?
21780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21781   yes:no: )
21782     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21786     ac_header_preproc=yes
21787     ;;
21788   no:yes:* )
21789     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21791     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21792 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21793     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21795     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21796 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21799     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21801     (
21802       cat <<\_ASBOX
21803 ## ------------------------------------------ ##
21804 ## Report this to the AC_PACKAGE_NAME lists.  ##
21805 ## ------------------------------------------ ##
21806 _ASBOX
21807     ) |
21808       sed "s/^/$as_me: WARNING:     /" >&2
21809     ;;
21810 esac
21811 echo "$as_me:$LINENO: checking for $ac_header" >&5
21812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21814   echo $ECHO_N "(cached) $ECHO_C" >&6
21815 else
21816   eval "$as_ac_Header=\$ac_header_preproc"
21817 fi
21818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21820
21821 fi
21822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21823   cat >>confdefs.h <<_ACEOF
21824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21825 _ACEOF
21826
21827 fi
21828
21829 done
21830
21831         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
21832             cat >>confdefs.h <<_ACEOF
21833 #define HAVE_LAME 1
21834 _ACEOF
21835
21836         fi
21837     fi
21838 fi
21839
21840
21841 # ------------------------------------------------------------------
21842
21843
21844
21845 for ac_prog in avifile-config
21846 do
21847   # Extract the first word of "$ac_prog", so it can be a program name with args.
21848 set dummy $ac_prog; ac_word=$2
21849 echo "$as_me:$LINENO: checking for $ac_word" >&5
21850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21851 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
21852   echo $ECHO_N "(cached) $ECHO_C" >&6
21853 else
21854   if test -n "$AVIFILE_CONFIG"; then
21855   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
21856 else
21857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21858 for as_dir in $PATH
21859 do
21860   IFS=$as_save_IFS
21861   test -z "$as_dir" && as_dir=.
21862   for ac_exec_ext in '' $ac_executable_extensions; do
21863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21864     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
21865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21866     break 2
21867   fi
21868 done
21869 done
21870
21871 fi
21872 fi
21873 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
21874 if test -n "$AVIFILE_CONFIG"; then
21875   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
21876 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
21877 else
21878   echo "$as_me:$LINENO: result: no" >&5
21879 echo "${ECHO_T}no" >&6
21880 fi
21881
21882   test -n "$AVIFILE_CONFIG" && break
21883 done
21884
21885
21886 if test "x$AVIFILE_CONFIG" '!=' "x";then
21887     OLDCPPFLAGS="$CPPFLAGS"
21888     #OLDLDFLAGS="$LDFLAGS"
21889     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
21890     #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
21891
21892
21893 for ac_header in avifile/version.h version.h
21894 do
21895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21897   echo "$as_me:$LINENO: checking for $ac_header" >&5
21898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21900   echo $ECHO_N "(cached) $ECHO_C" >&6
21901 fi
21902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21904 else
21905   # Is the header compilable?
21906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21908 cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h.  */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h.  */
21914 $ac_includes_default
21915 #include <$ac_header>
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21919   (eval $ac_compile) 2>conftest.er1
21920   ac_status=$?
21921   grep -v '^ *+' conftest.er1 >conftest.err
21922   rm -f conftest.er1
21923   cat conftest.err >&5
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); } &&
21926          { ac_try='test -z "$ac_c_werror_flag"
21927                          || test ! -s conftest.err'
21928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929   (eval $ac_try) 2>&5
21930   ac_status=$?
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); }; } &&
21933          { ac_try='test -s conftest.$ac_objext'
21934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935   (eval $ac_try) 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; }; then
21939   ac_header_compiler=yes
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944 ac_header_compiler=no
21945 fi
21946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21948 echo "${ECHO_T}$ac_header_compiler" >&6
21949
21950 # Is the header present?
21951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21953 cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h.  */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h.  */
21959 #include <$ac_header>
21960 _ACEOF
21961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21963   ac_status=$?
21964   grep -v '^ *+' conftest.er1 >conftest.err
21965   rm -f conftest.er1
21966   cat conftest.err >&5
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); } >/dev/null; then
21969   if test -s conftest.err; then
21970     ac_cpp_err=$ac_c_preproc_warn_flag
21971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21972   else
21973     ac_cpp_err=
21974   fi
21975 else
21976   ac_cpp_err=yes
21977 fi
21978 if test -z "$ac_cpp_err"; then
21979   ac_header_preproc=yes
21980 else
21981   echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21983
21984   ac_header_preproc=no
21985 fi
21986 rm -f conftest.err conftest.$ac_ext
21987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21988 echo "${ECHO_T}$ac_header_preproc" >&6
21989
21990 # So?  What about this header?
21991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21992   yes:no: )
21993     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21997     ac_header_preproc=yes
21998     ;;
21999   no:yes:* )
22000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22002     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22003 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22004     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22006     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22007 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22010     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22012     (
22013       cat <<\_ASBOX
22014 ## ------------------------------------------ ##
22015 ## Report this to the AC_PACKAGE_NAME lists.  ##
22016 ## ------------------------------------------ ##
22017 _ASBOX
22018     ) |
22019       sed "s/^/$as_me: WARNING:     /" >&2
22020     ;;
22021 esac
22022 echo "$as_me:$LINENO: checking for $ac_header" >&5
22023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22025   echo $ECHO_N "(cached) $ECHO_C" >&6
22026 else
22027   eval "$as_ac_Header=\$ac_header_preproc"
22028 fi
22029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22031
22032 fi
22033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22034   cat >>confdefs.h <<_ACEOF
22035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22036 _ACEOF
22037
22038 fi
22039
22040 done
22041
22042     #LDFLAGS="$OLDLDFLAGS"
22043     CPPFLAGS="$OLDCPPFLAGS"
22044 fi
22045
22046 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
22047 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
22048
22049 if test "x${ac_cv_header_version_h}" '=' "xyes";then
22050     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
22051 fi
22052 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
22053     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
22054 fi
22055
22056 cat > conftest.cpp << EOF
22057
22058 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
22059 // so we have to introduce them this way
22060 $HAVE_VERSION_H_DEFINE
22061 $HAVE_AVIFILE_VERSION_H_DEFINE
22062
22063 #ifdef HAVE_VERSION_H
22064   #include <version.h>
22065 #endif
22066 #ifdef HAVE_AVIFILE_VERSION_H
22067   #include <avifile/version.h>
22068 #endif
22069
22070 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
22071    #include <avifile.h>
22072    #include <aviplay.h>
22073    #include <fourcc.h>
22074    #include <creators.h>
22075    #include <StreamInfo.h>
22076    #define VERSION6
22077 #else
22078    #include <avifile.h>
22079    #include <aviplay.h>
22080    #include <aviutil.h>
22081    #define Width width
22082    #define Height height
22083    #define Data data
22084    #define Bpp bpp
22085 #endif
22086
22087 void test()
22088 {
22089   IAviReadFile* player;
22090   IAviReadStream* astream;
22091   IAviReadStream* vstream;
22092   player = CreateIAviReadFile(0);
22093   astream = player->GetStream(0, AviStream::Audio);
22094   vstream = player->GetStream(0, AviStream::Video);
22095   vstream -> StartStreaming();
22096   astream -> StartStreaming();
22097 #ifndef VERSION6
22098   MainAVIHeader head;
22099   player->GetFileHeader(&head);
22100   head.dwMicroSecPerFrame;
22101   head.dwTotalFrames;
22102   head.dwStreams;
22103   head.dwWidth;
22104   head.dwHeight;
22105   head.dwMicroSecPerFrame;
22106   astream->GetEndPos(),
22107   astream->GetEndTime());
22108   player->StreamCount();
22109 #else
22110   StreamInfo*audioinfo;
22111   StreamInfo*videoinfo;
22112   audioinfo = astream->GetStreamInfo();
22113   videoinfo = vstream->GetStreamInfo();
22114   videoinfo->GetVideoWidth();
22115   videoinfo->GetVideoHeight();
22116   audioinfo->GetAudioSamplesPerSec();
22117   videoinfo->GetFps();
22118 #endif
22119   CImage*img = vstream->GetFrame();
22120   img->ToRGB();
22121   img->Data();
22122   img->Bpp();
22123   img->Width();
22124   img->Height();
22125   WAVEFORMATEX wave;
22126   astream->GetAudioFormatInfo(&wave,0);
22127   uint_t a,b;
22128   astream->ReadFrames(0,0,0,a,b);
22129 }
22130 int main (int argc, char*argv)
22131 {
22132     return 0;
22133 }
22134 EOF
22135
22136 if test "x$AVIFILE_CONFIG" '!=' "x";then
22137     ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
22138     if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
22139       echo "$as_me:$LINENO: result: yes" >&5
22140 echo "${ECHO_T}yes" >&6
22141       AVIFILE=true
22142       export AVIFILE
22143       cat >>confdefs.h <<_ACEOF
22144 #define AVIFILE true
22145 _ACEOF
22146
22147     else
22148       echo "configure: failed program was:" >&5
22149       cat conftest.cpp >&5
22150       echo "$as_me:$LINENO: result: no" >&5
22151 echo "${ECHO_T}no" >&6
22152     fi
22153 else
22154     echo "$as_me:$LINENO: result: no" >&5
22155 echo "${ECHO_T}no" >&6
22156 fi
22157 rm -f conftest*
22158
22159
22160 # ------------------------------------------------------------------
22161
22162 if test "x${UNCOMPRESS}" = "xgzip"; then
22163     cat >>confdefs.h <<_ACEOF
22164 #define USE_GZIP 1
22165 _ACEOF
22166
22167 fi
22168
22169
22170 # ------------------------------------------------------------------
22171
22172
22173 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
22174 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
22175 # should we support python versions below 2.2?
22176 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
22177     PY_VERSION=2.2
22178 fi
22179 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
22180     PY_VERSION=2.3
22181 fi
22182 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
22183     PY_VERSION=2.4
22184 fi
22185
22186 if test "x$PY_VERSION" "!=" "x"; then
22187     echo "$as_me:$LINENO: result: python$PY_VERSION" >&5
22188 echo "${ECHO_T}python$PY_VERSION" >&6
22189     if test "x$PYTHON_LIB" = "x";then
22190         PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
22191     fi
22192     if test "x$PYTHON_INCLUDES" = "x";then
22193         PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
22194     fi
22195     export PYTHON_INCLUDES PYTHON_LIB
22196
22197
22198     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
22199 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
22200
22201     cat > conftest.c << EOF
22202 #include <Python.h>
22203 #include <Imaging.h>
22204
22205 int main(int argn, char*argv)
22206 {
22207     int ret;
22208     ret = Py_Main(argn, argv);
22209     int x; // check also for gcc 2.95.x incompatibilities
22210     return ret;
22211 }
22212 EOF
22213     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
22214     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22215         echo "$as_me:$LINENO: result: yes" >&5
22216 echo "${ECHO_T}yes" >&6
22217         PYTHON_OK=yes
22218     else
22219         echo "configure: failed program was:" >&5
22220         cat conftest.c >&5
22221         echo "$as_me:$LINENO: result: no" >&5
22222 echo "${ECHO_T}no" >&6
22223     fi
22224     rm -f conftest*
22225 else
22226     echo "$as_me:$LINENO: result: nope" >&5
22227 echo "${ECHO_T}nope" >&6
22228 fi
22229
22230
22231 if test "x$PYTHON_OK" '!=' "xyes";then
22232     echo all install uninstall clean: > lib/python/Makefile
22233     # fail silently- the most users won't have any need for the
22234     # python interface anyway
22235 else
22236     pythonrfxswf="lib/python/Makefile"
22237 fi
22238
22239 # ------------------------------------------------------------------
22240
22241 echo "$as_me:$LINENO: checking for missing libraries" >&5
22242 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
22243
22244 if test "x$ZLIBMISSING" = "xtrue";then
22245     MISSINGLIBS="${MISSINGLIBS} zlib"
22246     DISABLEPNG2SWF=true;
22247 fi
22248 if test "x$JPEGLIBMISSING" = "xtrue";then
22249     MISSINGLIBS="${MISSINGLIBS} jpeglib"
22250     DISABLEPDF2SWF=true;
22251     DISABLEJPEG2SWF=true;
22252 fi
22253 if test "x$T1LIBMISSING" = "xtrue";then
22254     MISSINGLIBS="${MISSINGLIBS} t1lib"
22255 fi
22256
22257 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
22258  DISABLEPDF2SWF=true;
22259  DISABLEJPEG2SWF=true;
22260  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
22261 fi
22262 if test "x$HAVE_FREETYPE" != "x1"; then
22263  DISABLEPDF2SWF=true;
22264  MISSINGLIBS="${MISSINGLIBS} freetype"
22265 fi
22266 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
22267  DISABLEPDF2SWF=true;
22268  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
22269 fi
22270 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
22271  DISABLEPNG2SWF=true;
22272  MISSINGLIBS="${MISSINGLIBS} zlib.h"
22273 fi
22274 if test "x${AVIFILE}" != "xtrue"; then
22275  MISSINGLIBS="${MISSINGLIBS} avifile"
22276 fi
22277
22278 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
22279 echo "${ECHO_T}${MISSINGLIBS}" >&6
22280
22281 # ------------------------------------------------------------------
22282
22283 if test "x${MISSINGLIBS}" '!=' "x"; then
22284   echo "***************************************************"
22285   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
22286 fi
22287
22288 avi2swf="avi2swf/Makefile"
22289 if test "x${AVIFILE}" != "xtrue"; then
22290  echo "* Disabling avi2swf tool..."
22291  echo all install uninstall clean: > avi2swf/Makefile
22292  avi2swf=
22293 fi
22294
22295 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
22296 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
22297   echo "* Disabling pdf2swf tool..."
22298   rm -f pdf2swf/Makefile
22299   echo all install uninstall clean: > pdf2swf/Makefile
22300   pdf2swf_makefile=""
22301 fi
22302
22303 if test "x${ZLIBMISSING}" = "xtrue"; then
22304   echo
22305   echo "* Warning! Without zlib, you will not be able to read"
22306   echo "* or write compressed Flash MX files!"
22307 fi
22308
22309 JPEG2SWF='jpeg2swf$(E)'
22310 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
22311   echo "* Disabling jpeg2swf tool..."
22312   JPEG2SWF=
22313 fi
22314 export JPEG2SWF
22315
22316
22317 PNG2SWF='png2swf$(E)'
22318 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
22319   echo "* Disabling png2swf tool..."
22320   PNG2SWF=
22321 fi
22322 export PNG2SWF
22323
22324
22325 if test "x${MISSINGLIBS}" '!=' "x"; then
22326   echo "***************************************************"
22327 fi
22328
22329 # ------------------------------------------------------------------
22330
22331 if test -f "release.in"; then release_in="./release"; fi
22332 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
22333
22334           ac_config_files="$ac_config_files ${FILES}"
22335
22336 cat >confcache <<\_ACEOF
22337 # This file is a shell script that caches the results of configure
22338 # tests run on this system so they can be shared between configure
22339 # scripts and configure runs, see configure's option --config-cache.
22340 # It is not useful on other systems.  If it contains results you don't
22341 # want to keep, you may remove or edit it.
22342 #
22343 # config.status only pays attention to the cache file if you give it
22344 # the --recheck option to rerun configure.
22345 #
22346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22348 # following values.
22349
22350 _ACEOF
22351
22352 # The following way of writing the cache mishandles newlines in values,
22353 # but we know of no workaround that is simple, portable, and efficient.
22354 # So, don't put newlines in cache variables' values.
22355 # Ultrix sh set writes to stderr and can't be redirected directly,
22356 # and sets the high bit in the cache file unless we assign to the vars.
22357 {
22358   (set) 2>&1 |
22359     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22360     *ac_space=\ *)
22361       # `set' does not quote correctly, so add quotes (double-quote
22362       # substitution turns \\\\ into \\, and sed turns \\ into \).
22363       sed -n \
22364         "s/'/'\\\\''/g;
22365           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22366       ;;
22367     *)
22368       # `set' quotes correctly as required by POSIX, so do not add quotes.
22369       sed -n \
22370         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22371       ;;
22372     esac;
22373 } |
22374   sed '
22375      t clear
22376      : clear
22377      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22378      t end
22379      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22380      : end' >>confcache
22381 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22382   if test -w $cache_file; then
22383     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22384     cat confcache >$cache_file
22385   else
22386     echo "not updating unwritable cache $cache_file"
22387   fi
22388 fi
22389 rm -f confcache
22390
22391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22392 # Let make expand exec_prefix.
22393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22394
22395 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22396 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22397 # trailing colons and then remove the whole line if VPATH becomes empty
22398 # (actually we leave an empty line to preserve line numbers).
22399 if test "x$srcdir" = x.; then
22400   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22401 s/:*\$(srcdir):*/:/;
22402 s/:*\${srcdir}:*/:/;
22403 s/:*@srcdir@:*/:/;
22404 s/^\([^=]*=[     ]*\):*/\1/;
22405 s/:*$//;
22406 s/^[^=]*=[       ]*$//;
22407 }'
22408 fi
22409
22410 DEFS=-DHAVE_CONFIG_H
22411
22412 ac_libobjs=
22413 ac_ltlibobjs=
22414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22415   # 1. Remove the extension, and $U if already installed.
22416   ac_i=`echo "$ac_i" |
22417          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22418   # 2. Add them.
22419   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22420   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22421 done
22422 LIBOBJS=$ac_libobjs
22423
22424 LTLIBOBJS=$ac_ltlibobjs
22425
22426
22427
22428 : ${CONFIG_STATUS=./config.status}
22429 ac_clean_files_save=$ac_clean_files
22430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22433 cat >$CONFIG_STATUS <<_ACEOF
22434 #! $SHELL
22435 # Generated by $as_me.
22436 # Run this file to recreate the current configuration.
22437 # Compiler output produced by configure, useful for debugging
22438 # configure, is in config.log if it exists.
22439
22440 debug=false
22441 ac_cs_recheck=false
22442 ac_cs_silent=false
22443 SHELL=\${CONFIG_SHELL-$SHELL}
22444 _ACEOF
22445
22446 cat >>$CONFIG_STATUS <<\_ACEOF
22447 ## --------------------- ##
22448 ## M4sh Initialization.  ##
22449 ## --------------------- ##
22450
22451 # Be Bourne compatible
22452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22453   emulate sh
22454   NULLCMD=:
22455   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22456   # is contrary to our usage.  Disable this feature.
22457   alias -g '${1+"$@"}'='"$@"'
22458 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22459   set -o posix
22460 fi
22461 DUALCASE=1; export DUALCASE # for MKS sh
22462
22463 # Support unset when possible.
22464 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22465   as_unset=unset
22466 else
22467   as_unset=false
22468 fi
22469
22470
22471 # Work around bugs in pre-3.0 UWIN ksh.
22472 $as_unset ENV MAIL MAILPATH
22473 PS1='$ '
22474 PS2='> '
22475 PS4='+ '
22476
22477 # NLS nuisances.
22478 for as_var in \
22479   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22480   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22481   LC_TELEPHONE LC_TIME
22482 do
22483   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22484     eval $as_var=C; export $as_var
22485   else
22486     $as_unset $as_var
22487   fi
22488 done
22489
22490 # Required to use basename.
22491 if expr a : '\(a\)' >/dev/null 2>&1; then
22492   as_expr=expr
22493 else
22494   as_expr=false
22495 fi
22496
22497 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22498   as_basename=basename
22499 else
22500   as_basename=false
22501 fi
22502
22503
22504 # Name of the executable.
22505 as_me=`$as_basename "$0" ||
22506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22507          X"$0" : 'X\(//\)$' \| \
22508          X"$0" : 'X\(/\)$' \| \
22509          .     : '\(.\)' 2>/dev/null ||
22510 echo X/"$0" |
22511     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22512           /^X\/\(\/\/\)$/{ s//\1/; q; }
22513           /^X\/\(\/\).*/{ s//\1/; q; }
22514           s/.*/./; q'`
22515
22516
22517 # PATH needs CR, and LINENO needs CR and PATH.
22518 # Avoid depending upon Character Ranges.
22519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22522 as_cr_digits='0123456789'
22523 as_cr_alnum=$as_cr_Letters$as_cr_digits
22524
22525 # The user is always right.
22526 if test "${PATH_SEPARATOR+set}" != set; then
22527   echo "#! /bin/sh" >conf$$.sh
22528   echo  "exit 0"   >>conf$$.sh
22529   chmod +x conf$$.sh
22530   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22531     PATH_SEPARATOR=';'
22532   else
22533     PATH_SEPARATOR=:
22534   fi
22535   rm -f conf$$.sh
22536 fi
22537
22538
22539   as_lineno_1=$LINENO
22540   as_lineno_2=$LINENO
22541   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22542   test "x$as_lineno_1" != "x$as_lineno_2" &&
22543   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22544   # Find who we are.  Look in the path if we contain no path at all
22545   # relative or not.
22546   case $0 in
22547     *[\\/]* ) as_myself=$0 ;;
22548     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22549 for as_dir in $PATH
22550 do
22551   IFS=$as_save_IFS
22552   test -z "$as_dir" && as_dir=.
22553   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22554 done
22555
22556        ;;
22557   esac
22558   # We did not find ourselves, most probably we were run as `sh COMMAND'
22559   # in which case we are not to be found in the path.
22560   if test "x$as_myself" = x; then
22561     as_myself=$0
22562   fi
22563   if test ! -f "$as_myself"; then
22564     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22565 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22566    { (exit 1); exit 1; }; }
22567   fi
22568   case $CONFIG_SHELL in
22569   '')
22570     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22571 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22572 do
22573   IFS=$as_save_IFS
22574   test -z "$as_dir" && as_dir=.
22575   for as_base in sh bash ksh sh5; do
22576          case $as_dir in
22577          /*)
22578            if ("$as_dir/$as_base" -c '
22579   as_lineno_1=$LINENO
22580   as_lineno_2=$LINENO
22581   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22582   test "x$as_lineno_1" != "x$as_lineno_2" &&
22583   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22584              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22585              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22586              CONFIG_SHELL=$as_dir/$as_base
22587              export CONFIG_SHELL
22588              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22589            fi;;
22590          esac
22591        done
22592 done
22593 ;;
22594   esac
22595
22596   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22597   # uniformly replaced by the line number.  The first 'sed' inserts a
22598   # line-number line before each line; the second 'sed' does the real
22599   # work.  The second script uses 'N' to pair each line-number line
22600   # with the numbered line, and appends trailing '-' during
22601   # substitution so that $LINENO is not a special case at line end.
22602   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22603   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22604   sed '=' <$as_myself |
22605     sed '
22606       N
22607       s,$,-,
22608       : loop
22609       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22610       t loop
22611       s,-$,,
22612       s,^['$as_cr_digits']*\n,,
22613     ' >$as_me.lineno &&
22614   chmod +x $as_me.lineno ||
22615     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22616 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22617    { (exit 1); exit 1; }; }
22618
22619   # Don't try to exec as it changes $[0], causing all sort of problems
22620   # (the dirname of $[0] is not the place where we might find the
22621   # original and so on.  Autoconf is especially sensible to this).
22622   . ./$as_me.lineno
22623   # Exit status is that of the last command.
22624   exit
22625 }
22626
22627
22628 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22629   *c*,-n*) ECHO_N= ECHO_C='
22630 ' ECHO_T='      ' ;;
22631   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22632   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22633 esac
22634
22635 if expr a : '\(a\)' >/dev/null 2>&1; then
22636   as_expr=expr
22637 else
22638   as_expr=false
22639 fi
22640
22641 rm -f conf$$ conf$$.exe conf$$.file
22642 echo >conf$$.file
22643 if ln -s conf$$.file conf$$ 2>/dev/null; then
22644   # We could just check for DJGPP; but this test a) works b) is more generic
22645   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22646   if test -f conf$$.exe; then
22647     # Don't use ln at all; we don't have any links
22648     as_ln_s='cp -p'
22649   else
22650     as_ln_s='ln -s'
22651   fi
22652 elif ln conf$$.file conf$$ 2>/dev/null; then
22653   as_ln_s=ln
22654 else
22655   as_ln_s='cp -p'
22656 fi
22657 rm -f conf$$ conf$$.exe conf$$.file
22658
22659 if mkdir -p . 2>/dev/null; then
22660   as_mkdir_p=:
22661 else
22662   test -d ./-p && rmdir ./-p
22663   as_mkdir_p=false
22664 fi
22665
22666 as_executable_p="test -f"
22667
22668 # Sed expression to map a string onto a valid CPP name.
22669 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22670
22671 # Sed expression to map a string onto a valid variable name.
22672 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22673
22674
22675 # IFS
22676 # We need space, tab and new line, in precisely that order.
22677 as_nl='
22678 '
22679 IFS="   $as_nl"
22680
22681 # CDPATH.
22682 $as_unset CDPATH
22683
22684 exec 6>&1
22685
22686 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22687 # report actual input values of CONFIG_FILES etc. instead of their
22688 # values after options handling.  Logging --version etc. is OK.
22689 exec 5>>config.log
22690 {
22691   echo
22692   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22693 ## Running $as_me. ##
22694 _ASBOX
22695 } >&5
22696 cat >&5 <<_CSEOF
22697
22698 This file was extended by $as_me, which was
22699 generated by GNU Autoconf 2.59.  Invocation command line was
22700
22701   CONFIG_FILES    = $CONFIG_FILES
22702   CONFIG_HEADERS  = $CONFIG_HEADERS
22703   CONFIG_LINKS    = $CONFIG_LINKS
22704   CONFIG_COMMANDS = $CONFIG_COMMANDS
22705   $ $0 $@
22706
22707 _CSEOF
22708 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22709 echo >&5
22710 _ACEOF
22711
22712 # Files that config.status was made for.
22713 if test -n "$ac_config_files"; then
22714   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22715 fi
22716
22717 if test -n "$ac_config_headers"; then
22718   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22719 fi
22720
22721 if test -n "$ac_config_links"; then
22722   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22723 fi
22724
22725 if test -n "$ac_config_commands"; then
22726   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22727 fi
22728
22729 cat >>$CONFIG_STATUS <<\_ACEOF
22730
22731 ac_cs_usage="\
22732 \`$as_me' instantiates files from templates according to the
22733 current configuration.
22734
22735 Usage: $0 [OPTIONS] [FILE]...
22736
22737   -h, --help       print this help, then exit
22738   -V, --version    print version number, then exit
22739   -q, --quiet      do not print progress messages
22740   -d, --debug      don't remove temporary files
22741       --recheck    update $as_me by reconfiguring in the same conditions
22742   --file=FILE[:TEMPLATE]
22743                    instantiate the configuration file FILE
22744   --header=FILE[:TEMPLATE]
22745                    instantiate the configuration header FILE
22746
22747 Configuration files:
22748 $config_files
22749
22750 Configuration headers:
22751 $config_headers
22752
22753 Report bugs to <bug-autoconf@gnu.org>."
22754 _ACEOF
22755
22756 cat >>$CONFIG_STATUS <<_ACEOF
22757 ac_cs_version="\\
22758 config.status
22759 configured by $0, generated by GNU Autoconf 2.59,
22760   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22761
22762 Copyright (C) 2003 Free Software Foundation, Inc.
22763 This config.status script is free software; the Free Software Foundation
22764 gives unlimited permission to copy, distribute and modify it."
22765 srcdir=$srcdir
22766 INSTALL="$INSTALL"
22767 _ACEOF
22768
22769 cat >>$CONFIG_STATUS <<\_ACEOF
22770 # If no file are specified by the user, then we need to provide default
22771 # value.  By we need to know if files were specified by the user.
22772 ac_need_defaults=:
22773 while test $# != 0
22774 do
22775   case $1 in
22776   --*=*)
22777     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22778     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22779     ac_shift=:
22780     ;;
22781   -*)
22782     ac_option=$1
22783     ac_optarg=$2
22784     ac_shift=shift
22785     ;;
22786   *) # This is not an option, so the user has probably given explicit
22787      # arguments.
22788      ac_option=$1
22789      ac_need_defaults=false;;
22790   esac
22791
22792   case $ac_option in
22793   # Handling of the options.
22794 _ACEOF
22795 cat >>$CONFIG_STATUS <<\_ACEOF
22796   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22797     ac_cs_recheck=: ;;
22798   --version | --vers* | -V )
22799     echo "$ac_cs_version"; exit 0 ;;
22800   --he | --h)
22801     # Conflict between --help and --header
22802     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22803 Try \`$0 --help' for more information." >&5
22804 echo "$as_me: error: ambiguous option: $1
22805 Try \`$0 --help' for more information." >&2;}
22806    { (exit 1); exit 1; }; };;
22807   --help | --hel | -h )
22808     echo "$ac_cs_usage"; exit 0 ;;
22809   --debug | --d* | -d )
22810     debug=: ;;
22811   --file | --fil | --fi | --f )
22812     $ac_shift
22813     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22814     ac_need_defaults=false;;
22815   --header | --heade | --head | --hea )
22816     $ac_shift
22817     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22818     ac_need_defaults=false;;
22819   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22820   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22821     ac_cs_silent=: ;;
22822
22823   # This is an error.
22824   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22825 Try \`$0 --help' for more information." >&5
22826 echo "$as_me: error: unrecognized option: $1
22827 Try \`$0 --help' for more information." >&2;}
22828    { (exit 1); exit 1; }; } ;;
22829
22830   *) ac_config_targets="$ac_config_targets $1" ;;
22831
22832   esac
22833   shift
22834 done
22835
22836 ac_configure_extra_args=
22837
22838 if $ac_cs_silent; then
22839   exec 6>/dev/null
22840   ac_configure_extra_args="$ac_configure_extra_args --silent"
22841 fi
22842
22843 _ACEOF
22844 cat >>$CONFIG_STATUS <<_ACEOF
22845 if \$ac_cs_recheck; then
22846   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22847   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22848 fi
22849
22850 _ACEOF
22851
22852
22853
22854
22855
22856 cat >>$CONFIG_STATUS <<\_ACEOF
22857 for ac_config_target in $ac_config_targets
22858 do
22859   case "$ac_config_target" in
22860   # Handling of arguments.
22861   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
22862   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22863   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22864 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22865    { (exit 1); exit 1; }; };;
22866   esac
22867 done
22868
22869 # If the user did not use the arguments to specify the items to instantiate,
22870 # then the envvar interface is used.  Set only those that are not.
22871 # We use the long form for the default assignment because of an extremely
22872 # bizarre bug on SunOS 4.1.3.
22873 if $ac_need_defaults; then
22874   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22875   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22876 fi
22877
22878 # Have a temporary directory for convenience.  Make it in the build tree
22879 # simply because there is no reason to put it here, and in addition,
22880 # creating and moving files from /tmp can sometimes cause problems.
22881 # Create a temporary directory, and hook for its removal unless debugging.
22882 $debug ||
22883 {
22884   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22885   trap '{ (exit 1); exit 1; }' 1 2 13 15
22886 }
22887
22888 # Create a (secure) tmp directory for tmp files.
22889
22890 {
22891   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22892   test -n "$tmp" && test -d "$tmp"
22893 }  ||
22894 {
22895   tmp=./confstat$$-$RANDOM
22896   (umask 077 && mkdir $tmp)
22897 } ||
22898 {
22899    echo "$me: cannot create a temporary directory in ." >&2
22900    { (exit 1); exit 1; }
22901 }
22902
22903 _ACEOF
22904
22905 cat >>$CONFIG_STATUS <<_ACEOF
22906
22907 #
22908 # CONFIG_FILES section.
22909 #
22910
22911 # No need to generate the scripts if there are no CONFIG_FILES.
22912 # This happens for instance when ./config.status config.h
22913 if test -n "\$CONFIG_FILES"; then
22914   # Protect against being on the right side of a sed subst in config.status.
22915   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22916    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22917 s,@SHELL@,$SHELL,;t t
22918 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22919 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22920 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22921 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22922 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22923 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22924 s,@exec_prefix@,$exec_prefix,;t t
22925 s,@prefix@,$prefix,;t t
22926 s,@program_transform_name@,$program_transform_name,;t t
22927 s,@bindir@,$bindir,;t t
22928 s,@sbindir@,$sbindir,;t t
22929 s,@libexecdir@,$libexecdir,;t t
22930 s,@datadir@,$datadir,;t t
22931 s,@sysconfdir@,$sysconfdir,;t t
22932 s,@sharedstatedir@,$sharedstatedir,;t t
22933 s,@localstatedir@,$localstatedir,;t t
22934 s,@libdir@,$libdir,;t t
22935 s,@includedir@,$includedir,;t t
22936 s,@oldincludedir@,$oldincludedir,;t t
22937 s,@infodir@,$infodir,;t t
22938 s,@mandir@,$mandir,;t t
22939 s,@build_alias@,$build_alias,;t t
22940 s,@host_alias@,$host_alias,;t t
22941 s,@target_alias@,$target_alias,;t t
22942 s,@DEFS@,$DEFS,;t t
22943 s,@ECHO_C@,$ECHO_C,;t t
22944 s,@ECHO_N@,$ECHO_N,;t t
22945 s,@ECHO_T@,$ECHO_T,;t t
22946 s,@LIBS@,$LIBS,;t t
22947 s,@build@,$build,;t t
22948 s,@build_cpu@,$build_cpu,;t t
22949 s,@build_vendor@,$build_vendor,;t t
22950 s,@build_os@,$build_os,;t t
22951 s,@host@,$host,;t t
22952 s,@host_cpu@,$host_cpu,;t t
22953 s,@host_vendor@,$host_vendor,;t t
22954 s,@host_os@,$host_os,;t t
22955 s,@CC@,$CC,;t t
22956 s,@CFLAGS@,$CFLAGS,;t t
22957 s,@LDFLAGS@,$LDFLAGS,;t t
22958 s,@CPPFLAGS@,$CPPFLAGS,;t t
22959 s,@ac_ct_CC@,$ac_ct_CC,;t t
22960 s,@EXEEXT@,$EXEEXT,;t t
22961 s,@OBJEXT@,$OBJEXT,;t t
22962 s,@CXX@,$CXX,;t t
22963 s,@CXXFLAGS@,$CXXFLAGS,;t t
22964 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22965 s,@CPP@,$CPP,;t t
22966 s,@RANLIB@,$RANLIB,;t t
22967 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22968 s,@SET_MAKE@,$SET_MAKE,;t t
22969 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22970 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22971 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22972 s,@LN_S@,$LN_S,;t t
22973 s,@EGREP@,$EGREP,;t t
22974 s,@ECHO@,$ECHO,;t t
22975 s,@AR@,$AR,;t t
22976 s,@ac_ct_AR@,$ac_ct_AR,;t t
22977 s,@STRIP@,$STRIP,;t t
22978 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22979 s,@CXXCPP@,$CXXCPP,;t t
22980 s,@F77@,$F77,;t t
22981 s,@FFLAGS@,$FFLAGS,;t t
22982 s,@ac_ct_F77@,$ac_ct_F77,;t t
22983 s,@LIBTOOL@,$LIBTOOL,;t t
22984 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
22985 s,@SLEXT@,$SLEXT,;t t
22986 s,@target@,$target,;t t
22987 s,@target_cpu@,$target_cpu,;t t
22988 s,@target_vendor@,$target_vendor,;t t
22989 s,@target_os@,$target_os,;t t
22990 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
22991 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
22992 s,@PACKAGE@,$PACKAGE,;t t
22993 s,@VERSION@,$VERSION,;t t
22994 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
22995 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
22996 s,@lame_objects@,$lame_objects,;t t
22997 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
22998 s,@USE_GZIP@,$USE_GZIP,;t t
22999 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
23000 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
23001 s,@JPEG2SWF@,$JPEG2SWF,;t t
23002 s,@PNG2SWF@,$PNG2SWF,;t t
23003 s,@LIBOBJS@,$LIBOBJS,;t t
23004 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23005 CEOF
23006
23007 _ACEOF
23008
23009   cat >>$CONFIG_STATUS <<\_ACEOF
23010   # Split the substitutions into bite-sized pieces for seds with
23011   # small command number limits, like on Digital OSF/1 and HP-UX.
23012   ac_max_sed_lines=48
23013   ac_sed_frag=1 # Number of current file.
23014   ac_beg=1 # First line for current file.
23015   ac_end=$ac_max_sed_lines # Line after last line for current file.
23016   ac_more_lines=:
23017   ac_sed_cmds=
23018   while $ac_more_lines; do
23019     if test $ac_beg -gt 1; then
23020       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23021     else
23022       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23023     fi
23024     if test ! -s $tmp/subs.frag; then
23025       ac_more_lines=false
23026     else
23027       # The purpose of the label and of the branching condition is to
23028       # speed up the sed processing (if there are no `@' at all, there
23029       # is no need to browse any of the substitutions).
23030       # These are the two extra sed commands mentioned above.
23031       (echo ':t
23032   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23033       if test -z "$ac_sed_cmds"; then
23034         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23035       else
23036         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23037       fi
23038       ac_sed_frag=`expr $ac_sed_frag + 1`
23039       ac_beg=$ac_end
23040       ac_end=`expr $ac_end + $ac_max_sed_lines`
23041     fi
23042   done
23043   if test -z "$ac_sed_cmds"; then
23044     ac_sed_cmds=cat
23045   fi
23046 fi # test -n "$CONFIG_FILES"
23047
23048 _ACEOF
23049 cat >>$CONFIG_STATUS <<\_ACEOF
23050 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23051   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23052   case $ac_file in
23053   - | *:- | *:-:* ) # input from stdin
23054         cat >$tmp/stdin
23055         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23056         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23057   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23058         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23059   * )   ac_file_in=$ac_file.in ;;
23060   esac
23061
23062   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23063   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23065          X"$ac_file" : 'X\(//\)[^/]' \| \
23066          X"$ac_file" : 'X\(//\)$' \| \
23067          X"$ac_file" : 'X\(/\)' \| \
23068          .     : '\(.\)' 2>/dev/null ||
23069 echo X"$ac_file" |
23070     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23071           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23072           /^X\(\/\/\)$/{ s//\1/; q; }
23073           /^X\(\/\).*/{ s//\1/; q; }
23074           s/.*/./; q'`
23075   { if $as_mkdir_p; then
23076     mkdir -p "$ac_dir"
23077   else
23078     as_dir="$ac_dir"
23079     as_dirs=
23080     while test ! -d "$as_dir"; do
23081       as_dirs="$as_dir $as_dirs"
23082       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23084          X"$as_dir" : 'X\(//\)[^/]' \| \
23085          X"$as_dir" : 'X\(//\)$' \| \
23086          X"$as_dir" : 'X\(/\)' \| \
23087          .     : '\(.\)' 2>/dev/null ||
23088 echo X"$as_dir" |
23089     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23090           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23091           /^X\(\/\/\)$/{ s//\1/; q; }
23092           /^X\(\/\).*/{ s//\1/; q; }
23093           s/.*/./; q'`
23094     done
23095     test ! -n "$as_dirs" || mkdir $as_dirs
23096   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23097 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23098    { (exit 1); exit 1; }; }; }
23099
23100   ac_builddir=.
23101
23102 if test "$ac_dir" != .; then
23103   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23104   # A "../" for each directory in $ac_dir_suffix.
23105   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23106 else
23107   ac_dir_suffix= ac_top_builddir=
23108 fi
23109
23110 case $srcdir in
23111   .)  # No --srcdir option.  We are building in place.
23112     ac_srcdir=.
23113     if test -z "$ac_top_builddir"; then
23114        ac_top_srcdir=.
23115     else
23116        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23117     fi ;;
23118   [\\/]* | ?:[\\/]* )  # Absolute path.
23119     ac_srcdir=$srcdir$ac_dir_suffix;
23120     ac_top_srcdir=$srcdir ;;
23121   *) # Relative path.
23122     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23123     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23124 esac
23125
23126 # Do not use `cd foo && pwd` to compute absolute paths, because
23127 # the directories may not exist.
23128 case `pwd` in
23129 .) ac_abs_builddir="$ac_dir";;
23130 *)
23131   case "$ac_dir" in
23132   .) ac_abs_builddir=`pwd`;;
23133   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23134   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23135   esac;;
23136 esac
23137 case $ac_abs_builddir in
23138 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23139 *)
23140   case ${ac_top_builddir}. in
23141   .) ac_abs_top_builddir=$ac_abs_builddir;;
23142   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23143   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23144   esac;;
23145 esac
23146 case $ac_abs_builddir in
23147 .) ac_abs_srcdir=$ac_srcdir;;
23148 *)
23149   case $ac_srcdir in
23150   .) ac_abs_srcdir=$ac_abs_builddir;;
23151   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23152   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23153   esac;;
23154 esac
23155 case $ac_abs_builddir in
23156 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23157 *)
23158   case $ac_top_srcdir in
23159   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23160   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23161   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23162   esac;;
23163 esac
23164
23165
23166   case $INSTALL in
23167   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23168   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23169   esac
23170
23171   if test x"$ac_file" != x-; then
23172     { echo "$as_me:$LINENO: creating $ac_file" >&5
23173 echo "$as_me: creating $ac_file" >&6;}
23174     rm -f "$ac_file"
23175   fi
23176   # Let's still pretend it is `configure' which instantiates (i.e., don't
23177   # use $as_me), people would be surprised to read:
23178   #    /* config.h.  Generated by config.status.  */
23179   if test x"$ac_file" = x-; then
23180     configure_input=
23181   else
23182     configure_input="$ac_file.  "
23183   fi
23184   configure_input=$configure_input"Generated from `echo $ac_file_in |
23185                                      sed 's,.*/,,'` by configure."
23186
23187   # First look for the input files in the build tree, otherwise in the
23188   # src tree.
23189   ac_file_inputs=`IFS=:
23190     for f in $ac_file_in; do
23191       case $f in
23192       -) echo $tmp/stdin ;;
23193       [\\/$]*)
23194          # Absolute (can't be DOS-style, as IFS=:)
23195          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23196 echo "$as_me: error: cannot find input file: $f" >&2;}
23197    { (exit 1); exit 1; }; }
23198          echo "$f";;
23199       *) # Relative
23200          if test -f "$f"; then
23201            # Build tree
23202            echo "$f"
23203          elif test -f "$srcdir/$f"; then
23204            # Source tree
23205            echo "$srcdir/$f"
23206          else
23207            # /dev/null tree
23208            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23209 echo "$as_me: error: cannot find input file: $f" >&2;}
23210    { (exit 1); exit 1; }; }
23211          fi;;
23212       esac
23213     done` || { (exit 1); exit 1; }
23214 _ACEOF
23215 cat >>$CONFIG_STATUS <<_ACEOF
23216   sed "$ac_vpsub
23217 $extrasub
23218 _ACEOF
23219 cat >>$CONFIG_STATUS <<\_ACEOF
23220 :t
23221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23222 s,@configure_input@,$configure_input,;t t
23223 s,@srcdir@,$ac_srcdir,;t t
23224 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23225 s,@top_srcdir@,$ac_top_srcdir,;t t
23226 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23227 s,@builddir@,$ac_builddir,;t t
23228 s,@abs_builddir@,$ac_abs_builddir,;t t
23229 s,@top_builddir@,$ac_top_builddir,;t t
23230 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23231 s,@INSTALL@,$ac_INSTALL,;t t
23232 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23233   rm -f $tmp/stdin
23234   if test x"$ac_file" != x-; then
23235     mv $tmp/out $ac_file
23236   else
23237     cat $tmp/out
23238     rm -f $tmp/out
23239   fi
23240
23241 done
23242 _ACEOF
23243 cat >>$CONFIG_STATUS <<\_ACEOF
23244
23245 #
23246 # CONFIG_HEADER section.
23247 #
23248
23249 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23250 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23251 #
23252 # ac_d sets the value in "#define NAME VALUE" lines.
23253 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23254 ac_dB='[         ].*$,\1#\2'
23255 ac_dC=' '
23256 ac_dD=',;t'
23257 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23258 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23259 ac_uB='$,\1#\2define\3'
23260 ac_uC=' '
23261 ac_uD=',;t'
23262
23263 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23264   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23265   case $ac_file in
23266   - | *:- | *:-:* ) # input from stdin
23267         cat >$tmp/stdin
23268         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23269         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23270   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23271         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23272   * )   ac_file_in=$ac_file.in ;;
23273   esac
23274
23275   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23276 echo "$as_me: creating $ac_file" >&6;}
23277
23278   # First look for the input files in the build tree, otherwise in the
23279   # src tree.
23280   ac_file_inputs=`IFS=:
23281     for f in $ac_file_in; do
23282       case $f in
23283       -) echo $tmp/stdin ;;
23284       [\\/$]*)
23285          # Absolute (can't be DOS-style, as IFS=:)
23286          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23287 echo "$as_me: error: cannot find input file: $f" >&2;}
23288    { (exit 1); exit 1; }; }
23289          # Do quote $f, to prevent DOS paths from being IFS'd.
23290          echo "$f";;
23291       *) # Relative
23292          if test -f "$f"; then
23293            # Build tree
23294            echo "$f"
23295          elif test -f "$srcdir/$f"; then
23296            # Source tree
23297            echo "$srcdir/$f"
23298          else
23299            # /dev/null tree
23300            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23301 echo "$as_me: error: cannot find input file: $f" >&2;}
23302    { (exit 1); exit 1; }; }
23303          fi;;
23304       esac
23305     done` || { (exit 1); exit 1; }
23306   # Remove the trailing spaces.
23307   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23308
23309 _ACEOF
23310
23311 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23312 # `conftest.undefs', that substitutes the proper values into
23313 # config.h.in to produce config.h.  The first handles `#define'
23314 # templates, and the second `#undef' templates.
23315 # And first: Protect against being on the right side of a sed subst in
23316 # config.status.  Protect against being in an unquoted here document
23317 # in config.status.
23318 rm -f conftest.defines conftest.undefs
23319 # Using a here document instead of a string reduces the quoting nightmare.
23320 # Putting comments in sed scripts is not portable.
23321 #
23322 # `end' is used to avoid that the second main sed command (meant for
23323 # 0-ary CPP macros) applies to n-ary macro definitions.
23324 # See the Autoconf documentation for `clear'.
23325 cat >confdef2sed.sed <<\_ACEOF
23326 s/[\\&,]/\\&/g
23327 s,[\\$`],\\&,g
23328 t clear
23329 : clear
23330 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23331 t end
23332 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23333 : end
23334 _ACEOF
23335 # If some macros were called several times there might be several times
23336 # the same #defines, which is useless.  Nevertheless, we may not want to
23337 # sort them, since we want the *last* AC-DEFINE to be honored.
23338 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23339 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23340 rm -f confdef2sed.sed
23341
23342 # This sed command replaces #undef with comments.  This is necessary, for
23343 # example, in the case of _POSIX_SOURCE, which is predefined and required
23344 # on some systems where configure will not decide to define it.
23345 cat >>conftest.undefs <<\_ACEOF
23346 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23347 _ACEOF
23348
23349 # Break up conftest.defines because some shells have a limit on the size
23350 # of here documents, and old seds have small limits too (100 cmds).
23351 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23352 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23353 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23354 echo '  :' >>$CONFIG_STATUS
23355 rm -f conftest.tail
23356 while grep . conftest.defines >/dev/null
23357 do
23358   # Write a limited-size here document to $tmp/defines.sed.
23359   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23360   # Speed up: don't consider the non `#define' lines.
23361   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23362   # Work around the forget-to-reset-the-flag bug.
23363   echo 't clr' >>$CONFIG_STATUS
23364   echo ': clr' >>$CONFIG_STATUS
23365   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23366   echo 'CEOF
23367   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23368   rm -f $tmp/in
23369   mv $tmp/out $tmp/in
23370 ' >>$CONFIG_STATUS
23371   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23372   rm -f conftest.defines
23373   mv conftest.tail conftest.defines
23374 done
23375 rm -f conftest.defines
23376 echo '  fi # grep' >>$CONFIG_STATUS
23377 echo >>$CONFIG_STATUS
23378
23379 # Break up conftest.undefs because some shells have a limit on the size
23380 # of here documents, and old seds have small limits too (100 cmds).
23381 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23382 rm -f conftest.tail
23383 while grep . conftest.undefs >/dev/null
23384 do
23385   # Write a limited-size here document to $tmp/undefs.sed.
23386   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23387   # Speed up: don't consider the non `#undef'
23388   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23389   # Work around the forget-to-reset-the-flag bug.
23390   echo 't clr' >>$CONFIG_STATUS
23391   echo ': clr' >>$CONFIG_STATUS
23392   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23393   echo 'CEOF
23394   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23395   rm -f $tmp/in
23396   mv $tmp/out $tmp/in
23397 ' >>$CONFIG_STATUS
23398   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23399   rm -f conftest.undefs
23400   mv conftest.tail conftest.undefs
23401 done
23402 rm -f conftest.undefs
23403
23404 cat >>$CONFIG_STATUS <<\_ACEOF
23405   # Let's still pretend it is `configure' which instantiates (i.e., don't
23406   # use $as_me), people would be surprised to read:
23407   #    /* config.h.  Generated by config.status.  */
23408   if test x"$ac_file" = x-; then
23409     echo "/* Generated by configure.  */" >$tmp/config.h
23410   else
23411     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23412   fi
23413   cat $tmp/in >>$tmp/config.h
23414   rm -f $tmp/in
23415   if test x"$ac_file" != x-; then
23416     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23417       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23418 echo "$as_me: $ac_file is unchanged" >&6;}
23419     else
23420       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23422          X"$ac_file" : 'X\(//\)[^/]' \| \
23423          X"$ac_file" : 'X\(//\)$' \| \
23424          X"$ac_file" : 'X\(/\)' \| \
23425          .     : '\(.\)' 2>/dev/null ||
23426 echo X"$ac_file" |
23427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23428           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23429           /^X\(\/\/\)$/{ s//\1/; q; }
23430           /^X\(\/\).*/{ s//\1/; q; }
23431           s/.*/./; q'`
23432       { if $as_mkdir_p; then
23433     mkdir -p "$ac_dir"
23434   else
23435     as_dir="$ac_dir"
23436     as_dirs=
23437     while test ! -d "$as_dir"; do
23438       as_dirs="$as_dir $as_dirs"
23439       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23441          X"$as_dir" : 'X\(//\)[^/]' \| \
23442          X"$as_dir" : 'X\(//\)$' \| \
23443          X"$as_dir" : 'X\(/\)' \| \
23444          .     : '\(.\)' 2>/dev/null ||
23445 echo X"$as_dir" |
23446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23447           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23448           /^X\(\/\/\)$/{ s//\1/; q; }
23449           /^X\(\/\).*/{ s//\1/; q; }
23450           s/.*/./; q'`
23451     done
23452     test ! -n "$as_dirs" || mkdir $as_dirs
23453   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23454 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23455    { (exit 1); exit 1; }; }; }
23456
23457       rm -f $ac_file
23458       mv $tmp/config.h $ac_file
23459     fi
23460   else
23461     cat $tmp/config.h
23462     rm -f $tmp/config.h
23463   fi
23464 done
23465 _ACEOF
23466
23467 cat >>$CONFIG_STATUS <<\_ACEOF
23468
23469 { (exit 0); exit 0; }
23470 _ACEOF
23471 chmod +x $CONFIG_STATUS
23472 ac_clean_files=$ac_clean_files_save
23473
23474
23475 # configure is writing to config.log, and then calls config.status.
23476 # config.status does its own redirection, appending to config.log.
23477 # Unfortunately, on DOS this fails, as config.log is still kept open
23478 # by configure, so config.status won't be able to write to it; its
23479 # output is simply discarded.  So we exec the FD to /dev/null,
23480 # effectively closing config.log, so it can be properly (re)opened and
23481 # appended to by config.status.  When coming back to configure, we
23482 # need to make the FD available again.
23483 if test "$no_create" != yes; then
23484   ac_cs_success=:
23485   ac_config_status_args=
23486   test "$silent" = yes &&
23487     ac_config_status_args="$ac_config_status_args --quiet"
23488   exec 5>/dev/null
23489   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23490   exec 5>>config.log
23491   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23492   # would make configure fail if this is the last instruction.
23493   $ac_cs_success || { (exit 1); exit 1; }
23494 fi
23495
23496