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 # Find the correct PATH separator.  Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247   UNAME=${UNAME-`uname 2>/dev/null`}
248   case X$UNAME in
249     *-DOS) lt_cv_sys_path_separator=';' ;;
250     *)     lt_cv_sys_path_separator=':' ;;
251   esac
252   PATH_SEPARATOR=$lt_cv_sys_path_separator
253 fi
254
255
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
258
259 case X$ECHO in
260 X*--fallback-echo)
261   # Remove one level of quotation (which was required for Make).
262   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263   ;;
264 esac
265
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268   # Discard the --no-reexec flag, and continue.
269   shift
270 elif test "X$1" = X--fallback-echo; then
271   # Avoid inline document here, it may be left over
272   :
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274   # Yippee, $echo works!
275   :
276 else
277   # Restart under the correct shell.
278   exec $SHELL "$0" --no-reexec ${1+"$@"}
279 fi
280
281 if test "X$1" = X--fallback-echo; then
282   # used as fallback echo
283   shift
284   cat <<EOF
285
286 EOF
287   exit 0
288 fi
289
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300        echo_test_string="`eval $cmd`" &&
301        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302     then
303       break
304     fi
305   done
306 fi
307
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310    test "X$echo_testing_string" = "X$echo_test_string"; then
311   :
312 else
313   # The Solaris, AIX, and Digital Unix default echo programs unquote
314   # backslashes.  This makes it impossible to quote backslashes using
315   #   echo "$something" | sed 's/\\/\\\\/g'
316   #
317   # So, first we look for a working echo in the user's PATH.
318
319   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320   for dir in $PATH /usr/ucb; do
321     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       echo="$dir/echo"
326       break
327     fi
328   done
329   IFS="$save_ifs"
330
331   if test "X$echo" = Xecho; then
332     # We didn't find a better echo, so look for alternatives.
333     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335        test "X$echo_testing_string" = "X$echo_test_string"; then
336       # This shell has a builtin print -r that does the trick.
337       echo='print -r'
338     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339          test "X$CONFIG_SHELL" != X/bin/ksh; then
340       # If we have ksh, try running configure again with it.
341       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342       export ORIGINAL_CONFIG_SHELL
343       CONFIG_SHELL=/bin/ksh
344       export CONFIG_SHELL
345       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346     else
347       # Try using printf.
348       echo='printf %s\n'
349       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351          test "X$echo_testing_string" = "X$echo_test_string"; then
352         # Cool, printf works
353         :
354       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359         export CONFIG_SHELL
360         SHELL="$CONFIG_SHELL"
361         export SHELL
362         echo="$CONFIG_SHELL $0 --fallback-echo"
363       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364            test "X$echo_testing_string" = 'X\t' &&
365            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366            test "X$echo_testing_string" = "X$echo_test_string"; then
367         echo="$CONFIG_SHELL $0 --fallback-echo"
368       else
369         # maybe with a smaller string...
370         prev=:
371
372         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374           then
375             break
376           fi
377           prev="$cmd"
378         done
379
380         if test "$prev" != 'sed 50q "$0"'; then
381           echo_test_string=`eval $prev`
382           export echo_test_string
383           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384         else
385           # Oops.  We lost completely, so just stick with echo.
386           echo=echo
387         fi
388       fi
389     fi
390   fi
391 fi
392 fi
393
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 fi
400
401
402
403 # Name of the host.
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408 exec 6>&1
409
410 #
411 # Initializations.
412 #
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
419 SHELL=${CONFIG_SHELL-/bin/sh}
420
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete.  It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
425
426 # Identity of this package.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
432
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 #  include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 #  include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 #  include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 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 ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR 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'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515   # If the previous option needs an argument, assign it.
516   if test -n "$ac_prev"; then
517     eval "$ac_prev=\$ac_option"
518     ac_prev=
519     continue
520   fi
521
522   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524   # Accept the important Cygnus configure options, so we can diagnose typos.
525
526   case $ac_option in
527
528   -bindir | --bindir | --bindi | --bind | --bin | --bi)
529     ac_prev=bindir ;;
530   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531     bindir=$ac_optarg ;;
532
533   -build | --build | --buil | --bui | --bu)
534     ac_prev=build_alias ;;
535   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536     build_alias=$ac_optarg ;;
537
538   -cache-file | --cache-file | --cache-fil | --cache-fi \
539   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540     ac_prev=cache_file ;;
541   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543     cache_file=$ac_optarg ;;
544
545   --config-cache | -C)
546     cache_file=config.cache ;;
547
548   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549     ac_prev=datadir ;;
550   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551   | --da=*)
552     datadir=$ac_optarg ;;
553
554   -disable-* | --disable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     eval "enable_$ac_feature=no" ;;
562
563   -enable-* | --enable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     case $ac_option in
571       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572       *) ac_optarg=yes ;;
573     esac
574     eval "enable_$ac_feature='$ac_optarg'" ;;
575
576   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578   | --exec | --exe | --ex)
579     ac_prev=exec_prefix ;;
580   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582   | --exec=* | --exe=* | --ex=*)
583     exec_prefix=$ac_optarg ;;
584
585   -gas | --gas | --ga | --g)
586     # Obsolete; use --with-gas.
587     with_gas=yes ;;
588
589   -help | --help | --hel | --he | -h)
590     ac_init_help=long ;;
591   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592     ac_init_help=recursive ;;
593   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594     ac_init_help=short ;;
595
596   -host | --host | --hos | --ho)
597     ac_prev=host_alias ;;
598   -host=* | --host=* | --hos=* | --ho=*)
599     host_alias=$ac_optarg ;;
600
601   -includedir | --includedir | --includedi | --included | --include \
602   | --includ | --inclu | --incl | --inc)
603     ac_prev=includedir ;;
604   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605   | --includ=* | --inclu=* | --incl=* | --inc=*)
606     includedir=$ac_optarg ;;
607
608   -infodir | --infodir | --infodi | --infod | --info | --inf)
609     ac_prev=infodir ;;
610   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611     infodir=$ac_optarg ;;
612
613   -libdir | --libdir | --libdi | --libd)
614     ac_prev=libdir ;;
615   -libdir=* | --libdir=* | --libdi=* | --libd=*)
616     libdir=$ac_optarg ;;
617
618   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619   | --libexe | --libex | --libe)
620     ac_prev=libexecdir ;;
621   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622   | --libexe=* | --libex=* | --libe=*)
623     libexecdir=$ac_optarg ;;
624
625   -localstatedir | --localstatedir | --localstatedi | --localstated \
626   | --localstate | --localstat | --localsta | --localst \
627   | --locals | --local | --loca | --loc | --lo)
628     ac_prev=localstatedir ;;
629   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632     localstatedir=$ac_optarg ;;
633
634   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635     ac_prev=mandir ;;
636   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637     mandir=$ac_optarg ;;
638
639   -nfp | --nfp | --nf)
640     # Obsolete; use --without-fp.
641     with_fp=no ;;
642
643   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644   | --no-cr | --no-c | -n)
645     no_create=yes ;;
646
647   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649     no_recursion=yes ;;
650
651   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653   | --oldin | --oldi | --old | --ol | --o)
654     ac_prev=oldincludedir ;;
655   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658     oldincludedir=$ac_optarg ;;
659
660   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661     ac_prev=prefix ;;
662   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663     prefix=$ac_optarg ;;
664
665   -program-prefix | --program-prefix | --program-prefi | --program-pref \
666   | --program-pre | --program-pr | --program-p)
667     ac_prev=program_prefix ;;
668   -program-prefix=* | --program-prefix=* | --program-prefi=* \
669   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670     program_prefix=$ac_optarg ;;
671
672   -program-suffix | --program-suffix | --program-suffi | --program-suff \
673   | --program-suf | --program-su | --program-s)
674     ac_prev=program_suffix ;;
675   -program-suffix=* | --program-suffix=* | --program-suffi=* \
676   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677     program_suffix=$ac_optarg ;;
678
679   -program-transform-name | --program-transform-name \
680   | --program-transform-nam | --program-transform-na \
681   | --program-transform-n | --program-transform- \
682   | --program-transform | --program-transfor \
683   | --program-transfo | --program-transf \
684   | --program-trans | --program-tran \
685   | --progr-tra | --program-tr | --program-t)
686     ac_prev=program_transform_name ;;
687   -program-transform-name=* | --program-transform-name=* \
688   | --program-transform-nam=* | --program-transform-na=* \
689   | --program-transform-n=* | --program-transform-=* \
690   | --program-transform=* | --program-transfor=* \
691   | --program-transfo=* | --program-transf=* \
692   | --program-trans=* | --program-tran=* \
693   | --progr-tra=* | --program-tr=* | --program-t=*)
694     program_transform_name=$ac_optarg ;;
695
696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697   | -silent | --silent | --silen | --sile | --sil)
698     silent=yes ;;
699
700   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701     ac_prev=sbindir ;;
702   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703   | --sbi=* | --sb=*)
704     sbindir=$ac_optarg ;;
705
706   -sharedstatedir | --sharedstatedir | --sharedstatedi \
707   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708   | --sharedst | --shareds | --shared | --share | --shar \
709   | --sha | --sh)
710     ac_prev=sharedstatedir ;;
711   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714   | --sha=* | --sh=*)
715     sharedstatedir=$ac_optarg ;;
716
717   -site | --site | --sit)
718     ac_prev=site ;;
719   -site=* | --site=* | --sit=*)
720     site=$ac_optarg ;;
721
722   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723     ac_prev=srcdir ;;
724   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725     srcdir=$ac_optarg ;;
726
727   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728   | --syscon | --sysco | --sysc | --sys | --sy)
729     ac_prev=sysconfdir ;;
730   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732     sysconfdir=$ac_optarg ;;
733
734   -target | --target | --targe | --targ | --tar | --ta | --t)
735     ac_prev=target_alias ;;
736   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737     target_alias=$ac_optarg ;;
738
739   -v | -verbose | --verbose | --verbos | --verbo | --verb)
740     verbose=yes ;;
741
742   -version | --version | --versio | --versi | --vers | -V)
743     ac_init_version=: ;;
744
745   -with-* | --with-*)
746     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747     # Reject names that are not valid shell variable names.
748     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749       { echo "$as_me: error: invalid package name: $ac_package" >&2
750    { (exit 1); exit 1; }; }
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case $ac_option in
753       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_$ac_package='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760     # Reject names that are not valid shell variable names.
761     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762       { echo "$as_me: error: invalid package name: $ac_package" >&2
763    { (exit 1); exit 1; }; }
764     ac_package=`echo $ac_package | sed 's/-/_/g'`
765     eval "with_$ac_package=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes=$ac_optarg ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries=$ac_optarg ;;
784
785   -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787    { (exit 1); exit 1; }; }
788     ;;
789
790   *=*)
791     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795    { (exit 1); exit 1; }; }
796     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797     eval "$ac_envvar='$ac_optarg'"
798     export $ac_envvar ;;
799
800   *)
801     # FIXME: should be removed in autoconf 3.0.
802     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806     ;;
807
808   esac
809 done
810
811 if test -n "$ac_prev"; then
812   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813   { echo "$as_me: error: missing argument to $ac_option" >&2
814    { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820   eval ac_val=$`echo $ac_var`
821   case $ac_val in
822     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824    { (exit 1); exit 1; }; };;
825   esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830               localstatedir libdir includedir oldincludedir infodir mandir
831 do
832   eval ac_val=$`echo $ac_var`
833   case $ac_val in
834     [\\/$]* | ?:[\\/]* ) ;;
835     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836    { (exit 1); exit 1; }; };;
837   esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849   if test "x$build_alias" = x; then
850     cross_compiling=maybe
851     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852     If a cross compiler is detected then cross compile mode will be used." >&2
853   elif test "x$build_alias" != "x$host_alias"; then
854     cross_compiling=yes
855   fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866   ac_srcdir_defaulted=yes
867   # Try the directory containing this script, then its parent.
868   ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870          X"$0" : 'X\(//\)[^/]' \| \
871          X"$0" : 'X\(//\)$' \| \
872          X"$0" : 'X\(/\)' \| \
873          .     : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877           /^X\(\/\/\)$/{ s//\1/; q; }
878           /^X\(\/\).*/{ s//\1/; q; }
879           s/.*/./; q'`
880   srcdir=$ac_confdir
881   if test ! -r $srcdir/$ac_unique_file; then
882     srcdir=..
883   fi
884 else
885   ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888   if test "$ac_srcdir_defaulted" = yes; then
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890    { (exit 1); exit 1; }; }
891   else
892     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893    { (exit 1); exit 1; }; }
894   fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898    { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940
941 #
942 # Report the --help message.
943 #
944 if test "$ac_init_help" = "long"; then
945   # Omit some internal or obsolete options to make the list less imposing.
946   # This message is too long to be a string in the A/UX 3.1 sh.
947   cat <<_ACEOF
948 \`configure' configures this package to adapt to many kinds of systems.
949
950 Usage: $0 [OPTION]... [VAR=VALUE]...
951
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE.  See below for descriptions of some of the useful variables.
954
955 Defaults for the options are specified in brackets.
956
957 Configuration:
958   -h, --help              display this help and exit
959       --help=short        display options specific to this package
960       --help=recursive    display the short help of all the included packages
961   -V, --version           display version information and exit
962   -q, --quiet, --silent   do not print \`checking...' messages
963       --cache-file=FILE   cache test results in FILE [disabled]
964   -C, --config-cache      alias for \`--cache-file=config.cache'
965   -n, --no-create         do not create output files
966       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
967
968 _ACEOF
969
970   cat <<_ACEOF
971 Installation directories:
972   --prefix=PREFIX         install architecture-independent files in PREFIX
973                           [$ac_default_prefix]
974   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
975                           [PREFIX]
976
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
981
982 For better control, use the options below.
983
984 Fine tuning of the installation directories:
985   --bindir=DIR           user executables [EPREFIX/bin]
986   --sbindir=DIR          system admin executables [EPREFIX/sbin]
987   --libexecdir=DIR       program executables [EPREFIX/libexec]
988   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
989   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
990   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
991   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
992   --libdir=DIR           object code libraries [EPREFIX/lib]
993   --includedir=DIR       C header files [PREFIX/include]
994   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
995   --infodir=DIR          info documentation [PREFIX/info]
996   --mandir=DIR           man documentation [PREFIX/man]
997 _ACEOF
998
999   cat <<\_ACEOF
1000
1001 Program names:
1002   --program-prefix=PREFIX            prepend PREFIX to installed program names
1003   --program-suffix=SUFFIX            append SUFFIX to installed program names
1004   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1005
1006 System types:
1007   --build=BUILD     configure for building on BUILD [guessed]
1008   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1009   --target=TARGET   configure for building compilers for TARGET [HOST]
1010 _ACEOF
1011 fi
1012
1013 if test -n "$ac_init_help"; then
1014
1015   cat <<\_ACEOF
1016
1017 Optional Features:
1018   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1019   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1020   --enable-checkmem       turn on ccmalloc debugging
1021   --enable-debug          turn on debugging
1022   --enable-warnings        turn on compiler warnings
1023   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1024   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1025   --enable-shared=PKGS  build shared libraries default=yes
1026   --enable-static=PKGS  build static libraries default=yes
1027   --enable-fast-install=PKGS  optimize for fast installation default=yes
1028   --disable-libtool-lock  avoid locking (might break parallel builds)
1029
1030 Optional Packages:
1031   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1032   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1033   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1034   --with-pic              try to use only PIC/non-PIC objects default=use both
1035
1036 Some influential environment variables:
1037   CC          C compiler command
1038   CFLAGS      C compiler flags
1039   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1040               nonstandard directory <lib dir>
1041   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042               headers in a nonstandard directory <include dir>
1043   CXX         C++ compiler command
1044   CXXFLAGS    C++ compiler flags
1045   CPP         C preprocessor
1046
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1049
1050 _ACEOF
1051 fi
1052
1053 if test "$ac_init_help" = "recursive"; then
1054   # If there are subdirs, report their specific --help.
1055   ac_popdir=`pwd`
1056   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057     test -d $ac_dir || continue
1058     ac_builddir=.
1059
1060 if test "$ac_dir" != .; then
1061   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062   # A "../" for each directory in $ac_dir_suffix.
1063   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065   ac_dir_suffix= ac_top_builddir=
1066 fi
1067
1068 case $srcdir in
1069   .)  # No --srcdir option.  We are building in place.
1070     ac_srcdir=.
1071     if test -z "$ac_top_builddir"; then
1072        ac_top_srcdir=.
1073     else
1074        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075     fi ;;
1076   [\\/]* | ?:[\\/]* )  # Absolute path.
1077     ac_srcdir=$srcdir$ac_dir_suffix;
1078     ac_top_srcdir=$srcdir ;;
1079   *) # Relative path.
1080     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1083
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1086 case `pwd` in
1087 .) ac_abs_builddir="$ac_dir";;
1088 *)
1089   case "$ac_dir" in
1090   .) ac_abs_builddir=`pwd`;;
1091   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093   esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 *)
1098   case ${ac_top_builddir}. in
1099   .) ac_abs_top_builddir=$ac_abs_builddir;;
1100   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102   esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1106 *)
1107   case $ac_srcdir in
1108   .) ac_abs_srcdir=$ac_abs_builddir;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 *)
1116   case $ac_top_srcdir in
1117   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120   esac;;
1121 esac
1122
1123     cd $ac_dir
1124     # Check for guested configure; otherwise get Cygnus style configure.
1125     if test -f $ac_srcdir/configure.gnu; then
1126       echo
1127       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1128     elif test -f $ac_srcdir/configure; then
1129       echo
1130       $SHELL $ac_srcdir/configure  --help=recursive
1131     elif test -f $ac_srcdir/configure.ac ||
1132            test -f $ac_srcdir/configure.in; then
1133       echo
1134       $ac_configure --help
1135     else
1136       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137     fi
1138     cd $ac_popdir
1139   done
1140 fi
1141
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1144   cat <<\_ACEOF
1145
1146 Copyright (C) 2003 Free Software Foundation, Inc.
1147 This configure script is free software; the Free Software Foundation
1148 gives unlimited permission to copy, distribute and modify it.
1149 _ACEOF
1150   exit 0
1151 fi
1152 exec 5>config.log
1153 cat >&5 <<_ACEOF
1154 This file contains any messages produced by compilers while
1155 running configure, to aid debugging if configure makes a mistake.
1156
1157 It was created by $as_me, which was
1158 generated by GNU Autoconf 2.59.  Invocation command line was
1159
1160   $ $0 $@
1161
1162 _ACEOF
1163 {
1164 cat <<_ASUNAME
1165 ## --------- ##
1166 ## Platform. ##
1167 ## --------- ##
1168
1169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1177
1178 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1179 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1182 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1183 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1184 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1185
1186 _ASUNAME
1187
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 for as_dir in $PATH
1190 do
1191   IFS=$as_save_IFS
1192   test -z "$as_dir" && as_dir=.
1193   echo "PATH: $as_dir"
1194 done
1195
1196 } >&5
1197
1198 cat >&5 <<_ACEOF
1199
1200
1201 ## ----------- ##
1202 ## Core tests. ##
1203 ## ----------- ##
1204
1205 _ACEOF
1206
1207
1208 # Keep a trace of the command line.
1209 # Strip out --no-create and --no-recursion so they do not pile up.
1210 # Strip out --silent because we don't want to record it for future runs.
1211 # Also quote any args containing shell meta-characters.
1212 # Make two passes to allow for proper duplicate-argument suppression.
1213 ac_configure_args=
1214 ac_configure_args0=
1215 ac_configure_args1=
1216 ac_sep=
1217 ac_must_keep_next=false
1218 for ac_pass in 1 2
1219 do
1220   for ac_arg
1221   do
1222     case $ac_arg in
1223     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225     | -silent | --silent | --silen | --sile | --sil)
1226       continue ;;
1227     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229     esac
1230     case $ac_pass in
1231     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232     2)
1233       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234       if test $ac_must_keep_next = true; then
1235         ac_must_keep_next=false # Got value, back to normal.
1236       else
1237         case $ac_arg in
1238           *=* | --config-cache | -C | -disable-* | --disable-* \
1239           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241           | -with-* | --with-* | -without-* | --without-* | --x)
1242             case "$ac_configure_args0 " in
1243               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244             esac
1245             ;;
1246           -* ) ac_must_keep_next=true ;;
1247         esac
1248       fi
1249       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250       # Get rid of the leading space.
1251       ac_sep=" "
1252       ;;
1253     esac
1254   done
1255 done
1256 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259 # When interrupted or exit'd, cleanup temporary files, and complete
1260 # config.log.  We remove comments because anyway the quotes in there
1261 # would cause problems or look ugly.
1262 # WARNING: Be sure not to use single quotes in there, as some shells,
1263 # such as our DU 5.0 friend, will then `close' the trap.
1264 trap 'exit_status=$?
1265   # Save into config.log some information that might help in debugging.
1266   {
1267     echo
1268
1269     cat <<\_ASBOX
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1273 _ASBOX
1274     echo
1275     # The following way of writing the cache mishandles newlines in values,
1276 {
1277   (set) 2>&1 |
1278     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279     *ac_space=\ *)
1280       sed -n \
1281         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283       ;;
1284     *)
1285       sed -n \
1286         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287       ;;
1288     esac;
1289 }
1290     echo
1291
1292     cat <<\_ASBOX
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1296 _ASBOX
1297     echo
1298     for ac_var in $ac_subst_vars
1299     do
1300       eval ac_val=$`echo $ac_var`
1301       echo "$ac_var='"'"'$ac_val'"'"'"
1302     done | sort
1303     echo
1304
1305     if test -n "$ac_subst_files"; then
1306       cat <<\_ASBOX
1307 ## ------------- ##
1308 ## Output files. ##
1309 ## ------------- ##
1310 _ASBOX
1311       echo
1312       for ac_var in $ac_subst_files
1313       do
1314         eval ac_val=$`echo $ac_var`
1315         echo "$ac_var='"'"'$ac_val'"'"'"
1316       done | sort
1317       echo
1318     fi
1319
1320     if test -s confdefs.h; then
1321       cat <<\_ASBOX
1322 ## ----------- ##
1323 ## confdefs.h. ##
1324 ## ----------- ##
1325 _ASBOX
1326       echo
1327       sed "/^$/d" confdefs.h | sort
1328       echo
1329     fi
1330     test "$ac_signal" != 0 &&
1331       echo "$as_me: caught signal $ac_signal"
1332     echo "$as_me: exit $exit_status"
1333   } >&5
1334   rm -f core *.core &&
1335   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336     exit $exit_status
1337      ' 0
1338 for ac_signal in 1 2 13 15; do
1339   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 done
1341 ac_signal=0
1342
1343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344 rm -rf conftest* confdefs.h
1345 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346 echo >confdefs.h
1347
1348 # Predefined preprocessor variables.
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 _ACEOF
1363
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 _ACEOF
1368
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 _ACEOF
1373
1374
1375 # Let the site file select an alternate cache file if it wants to.
1376 # Prefer explicitly selected file to automatically selected ones.
1377 if test -z "$CONFIG_SITE"; then
1378   if test "x$prefix" != xNONE; then
1379     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380   else
1381     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382   fi
1383 fi
1384 for ac_site_file in $CONFIG_SITE; do
1385   if test -r "$ac_site_file"; then
1386     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387 echo "$as_me: loading site script $ac_site_file" >&6;}
1388     sed 's/^/| /' "$ac_site_file" >&5
1389     . "$ac_site_file"
1390   fi
1391 done
1392
1393 if test -r "$cache_file"; then
1394   # Some versions of bash will fail to source /dev/null (special
1395   # files actually), so we avoid doing that.
1396   if test -f "$cache_file"; then
1397     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398 echo "$as_me: loading cache $cache_file" >&6;}
1399     case $cache_file in
1400       [\\/]* | ?:[\\/]* ) . $cache_file;;
1401       *)                      . ./$cache_file;;
1402     esac
1403   fi
1404 else
1405   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1407   >$cache_file
1408 fi
1409
1410 # Check that the precious variables saved in the cache have kept the same
1411 # value.
1412 ac_cache_corrupted=false
1413 for ac_var in `(set) 2>&1 |
1414                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416   eval ac_new_set=\$ac_env_${ac_var}_set
1417   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418   eval ac_new_val="\$ac_env_${ac_var}_value"
1419   case $ac_old_set,$ac_new_set in
1420     set,)
1421       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423       ac_cache_corrupted=: ;;
1424     ,set)
1425       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427       ac_cache_corrupted=: ;;
1428     ,);;
1429     *)
1430       if test "x$ac_old_val" != "x$ac_new_val"; then
1431         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1432 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1433         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1434 echo "$as_me:   former value:  $ac_old_val" >&2;}
1435         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1436 echo "$as_me:   current value: $ac_new_val" >&2;}
1437         ac_cache_corrupted=:
1438       fi;;
1439   esac
1440   # Pass precious variables to config.status.
1441   if test "$ac_new_set" = set; then
1442     case $ac_new_val in
1443     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445     *) ac_arg=$ac_var=$ac_new_val ;;
1446     esac
1447     case " $ac_configure_args " in
1448       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1449       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450     esac
1451   fi
1452 done
1453 if $ac_cache_corrupted; then
1454   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1455 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1456   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1457 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1458    { (exit 1); exit 1; }; }
1459 fi
1460
1461 ac_ext=c
1462 ac_cpp='$CPP $CPPFLAGS'
1463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 # Check whether --enable-checkmem or --disable-checkmem was given.
1488 if test "${enable_checkmem+set}" = set; then
1489   enableval="$enable_checkmem"
1490   CHECKMEM=true
1491 fi;
1492 # Check whether --enable-debug or --disable-debug was given.
1493 if test "${enable_debug+set}" = set; then
1494   enableval="$enable_debug"
1495   DEBUG=true
1496 fi;
1497 # Check whether --enable-warnings or --disable-warnings was given.
1498 if test "${enable_warnings+set}" = set; then
1499   enableval="$enable_warnings"
1500   ENABLE_WARNINGS=true
1501 fi;
1502 # Check whether --enable-optimizations or --disable-optimizations was given.
1503 if test "${enable_optimizations+set}" = set; then
1504   enableval="$enable_optimizations"
1505   OPTIMIZE=true
1506 fi;
1507 # Check whether --enable-lame or --disable-lame was given.
1508 if test "${enable_lame+set}" = set; then
1509   enableval="$enable_lame"
1510   DISABLE_LAME=true
1511 fi;
1512
1513 PACKAGE=swftools
1514 VERSION=2004-09-02-2157
1515
1516
1517
1518
1519 # ------------------------------------------------------------------
1520
1521 if test "x${srcdir}" != "x."; then
1522     echo "--srcdir is not supported"
1523     exit 1
1524 fi
1525
1526 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1527 if test "x$ENABLE_WARNINGS" '!=' "x";then
1528     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1529 fi
1530
1531 if test "x$CHECKMEM" '!=' "x";then
1532     DEBUG=yes
1533 fi
1534 if test "x$DEBUG" '!=' "x";then
1535     CFLAGS="$WARNINGS -g $CFLAGS"
1536     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1537 else if test "x$OPTIMIZE" '!=' "x"; then
1538     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1539     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1540 else
1541     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1542     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1543 fi
1544 fi
1545 #OLDGCC=1
1546 #if test "x$OLDGCC" '!=' "x";then
1547 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1548 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1549 #     CFLAGS="$CFLAGS -ansi -pendantic"
1550 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1551 #fi
1552
1553 export PACKAGE VERSION CFLAGS CXXFLAGS
1554
1555  ac_aux_dir=
1556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1557   if test -f $ac_dir/install-sh; then
1558     ac_aux_dir=$ac_dir
1559     ac_install_sh="$ac_aux_dir/install-sh -c"
1560     break
1561   elif test -f $ac_dir/install.sh; then
1562     ac_aux_dir=$ac_dir
1563     ac_install_sh="$ac_aux_dir/install.sh -c"
1564     break
1565   elif test -f $ac_dir/shtool; then
1566     ac_aux_dir=$ac_dir
1567     ac_install_sh="$ac_aux_dir/shtool install -c"
1568     break
1569   fi
1570 done
1571 if test -z "$ac_aux_dir"; then
1572   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1573 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1574    { (exit 1); exit 1; }; }
1575 fi
1576 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1577 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1578 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1579
1580 # Make sure we can run config.sub.
1581 $ac_config_sub sun4 >/dev/null 2>&1 ||
1582   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1583 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1584    { (exit 1); exit 1; }; }
1585
1586 echo "$as_me:$LINENO: checking build system type" >&5
1587 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1588 if test "${ac_cv_build+set}" = set; then
1589   echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591   ac_cv_build_alias=$build_alias
1592 test -z "$ac_cv_build_alias" &&
1593   ac_cv_build_alias=`$ac_config_guess`
1594 test -z "$ac_cv_build_alias" &&
1595   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1596 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1597    { (exit 1); exit 1; }; }
1598 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1599   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1600 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1601    { (exit 1); exit 1; }; }
1602
1603 fi
1604 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1605 echo "${ECHO_T}$ac_cv_build" >&6
1606 build=$ac_cv_build
1607 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610
1611
1612 echo "$as_me:$LINENO: checking host system type" >&5
1613 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1614 if test "${ac_cv_host+set}" = set; then
1615   echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617   ac_cv_host_alias=$host_alias
1618 test -z "$ac_cv_host_alias" &&
1619   ac_cv_host_alias=$ac_cv_build_alias
1620 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1621   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1622 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1623    { (exit 1); exit 1; }; }
1624
1625 fi
1626 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1627 echo "${ECHO_T}$ac_cv_host" >&6
1628 host=$ac_cv_host
1629 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632
1633
1634 MACOSX=
1635 case $host_os in
1636     *darwin* )
1637         MACOSX=yes
1638         CFLAGS="$CFLAGS -fno-rtti"
1639         CXXFLAGS="$CXXFLAGS -fno-rtti"
1640         ;;
1641 esac
1642  ac_ext=c
1643 ac_cpp='$CPP $CPPFLAGS'
1644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1647 if test -n "$ac_tool_prefix"; then
1648   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1649 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   if test -n "$CC"; then
1656   ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661   IFS=$as_save_IFS
1662   test -z "$as_dir" && as_dir=.
1663   for ac_exec_ext in '' $ac_executable_extensions; do
1664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667     break 2
1668   fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676   echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679   echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 fi
1684 if test -z "$ac_cv_prog_CC"; then
1685   ac_ct_CC=$CC
1686   # Extract the first word of "gcc", so it can be a program name with args.
1687 set dummy gcc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1691   echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693   if test -n "$ac_ct_CC"; then
1694   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   for ac_exec_ext in '' $ac_executable_extensions; do
1702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703     ac_cv_prog_ac_ct_CC="gcc"
1704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705     break 2
1706   fi
1707 done
1708 done
1709
1710 fi
1711 fi
1712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1713 if test -n "$ac_ct_CC"; then
1714   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1715 echo "${ECHO_T}$ac_ct_CC" >&6
1716 else
1717   echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1719 fi
1720
1721   CC=$ac_ct_CC
1722 else
1723   CC="$ac_cv_prog_CC"
1724 fi
1725
1726 if test -z "$CC"; then
1727   if test -n "$ac_tool_prefix"; then
1728   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1729 set dummy ${ac_tool_prefix}cc; ac_word=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_CC+set}" = set; then
1733   echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735   if test -n "$CC"; then
1736   ac_cv_prog_CC="$CC" # Let the user override the test.
1737 else
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741   IFS=$as_save_IFS
1742   test -z "$as_dir" && as_dir=.
1743   for ac_exec_ext in '' $ac_executable_extensions; do
1744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745     ac_cv_prog_CC="${ac_tool_prefix}cc"
1746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747     break 2
1748   fi
1749 done
1750 done
1751
1752 fi
1753 fi
1754 CC=$ac_cv_prog_CC
1755 if test -n "$CC"; then
1756   echo "$as_me:$LINENO: result: $CC" >&5
1757 echo "${ECHO_T}$CC" >&6
1758 else
1759   echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1761 fi
1762
1763 fi
1764 if test -z "$ac_cv_prog_CC"; then
1765   ac_ct_CC=$CC
1766   # Extract the first word of "cc", so it can be a program name with args.
1767 set dummy cc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   if test -n "$ac_ct_CC"; then
1774   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1775 else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779   IFS=$as_save_IFS
1780   test -z "$as_dir" && as_dir=.
1781   for ac_exec_ext in '' $ac_executable_extensions; do
1782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783     ac_cv_prog_ac_ct_CC="cc"
1784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785     break 2
1786   fi
1787 done
1788 done
1789
1790 fi
1791 fi
1792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1793 if test -n "$ac_ct_CC"; then
1794   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1795 echo "${ECHO_T}$ac_ct_CC" >&6
1796 else
1797   echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 fi
1800
1801   CC=$ac_ct_CC
1802 else
1803   CC="$ac_cv_prog_CC"
1804 fi
1805
1806 fi
1807 if test -z "$CC"; then
1808   # Extract the first word of "cc", so it can be a program name with args.
1809 set dummy cc; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_CC+set}" = set; then
1813   echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815   if test -n "$CC"; then
1816   ac_cv_prog_CC="$CC" # Let the user override the test.
1817 else
1818   ac_prog_rejected=no
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
1822   IFS=$as_save_IFS
1823   test -z "$as_dir" && as_dir=.
1824   for ac_exec_ext in '' $ac_executable_extensions; do
1825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1827        ac_prog_rejected=yes
1828        continue
1829      fi
1830     ac_cv_prog_CC="cc"
1831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832     break 2
1833   fi
1834 done
1835 done
1836
1837 if test $ac_prog_rejected = yes; then
1838   # We found a bogon in the path, so make sure we never use it.
1839   set dummy $ac_cv_prog_CC
1840   shift
1841   if test $# != 0; then
1842     # We chose a different compiler from the bogus one.
1843     # However, it has the same basename, so the bogon will be chosen
1844     # first if we set CC to just the basename; use the full file name.
1845     shift
1846     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1847   fi
1848 fi
1849 fi
1850 fi
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853   echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1855 else
1856   echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860 fi
1861 if test -z "$CC"; then
1862   if test -n "$ac_tool_prefix"; then
1863   for ac_prog in cl
1864   do
1865     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_CC+set}" = set; then
1870   echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872   if test -n "$CC"; then
1873   ac_cv_prog_CC="$CC" # Let the user override the test.
1874 else
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1877 do
1878   IFS=$as_save_IFS
1879   test -z "$as_dir" && as_dir=.
1880   for ac_exec_ext in '' $ac_executable_extensions; do
1881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884     break 2
1885   fi
1886 done
1887 done
1888
1889 fi
1890 fi
1891 CC=$ac_cv_prog_CC
1892 if test -n "$CC"; then
1893   echo "$as_me:$LINENO: result: $CC" >&5
1894 echo "${ECHO_T}$CC" >&6
1895 else
1896   echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1898 fi
1899
1900     test -n "$CC" && break
1901   done
1902 fi
1903 if test -z "$CC"; then
1904   ac_ct_CC=$CC
1905   for ac_prog in cl
1906 do
1907   # Extract the first word of "$ac_prog", so it can be a program name with args.
1908 set dummy $ac_prog; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1912   echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914   if test -n "$ac_ct_CC"; then
1915   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922   for ac_exec_ext in '' $ac_executable_extensions; do
1923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924     ac_cv_prog_ac_ct_CC="$ac_prog"
1925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926     break 2
1927   fi
1928 done
1929 done
1930
1931 fi
1932 fi
1933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1934 if test -n "$ac_ct_CC"; then
1935   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1936 echo "${ECHO_T}$ac_ct_CC" >&6
1937 else
1938   echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1940 fi
1941
1942   test -n "$ac_ct_CC" && break
1943 done
1944
1945   CC=$ac_ct_CC
1946 fi
1947
1948 fi
1949
1950
1951 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: no acceptable C compiler found in \$PATH
1954 See \`config.log' for more details." >&2;}
1955    { (exit 1); exit 1; }; }
1956
1957 # Provide some information about the compiler.
1958 echo "$as_me:$LINENO:" \
1959      "checking for C compiler version" >&5
1960 ac_compiler=`set X $ac_compile; echo $2`
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1962   (eval $ac_compiler --version </dev/null >&5) 2>&5
1963   ac_status=$?
1964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965   (exit $ac_status); }
1966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1967   (eval $ac_compiler -v </dev/null >&5) 2>&5
1968   ac_status=$?
1969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970   (exit $ac_status); }
1971 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1972   (eval $ac_compiler -V </dev/null >&5) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }
1976
1977 cat >conftest.$ac_ext <<_ACEOF
1978 /* confdefs.h.  */
1979 _ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h.  */
1983
1984 int
1985 main ()
1986 {
1987
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 ac_clean_files_save=$ac_clean_files
1993 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1994 # Try to create an executable without -o first, disregard a.out.
1995 # It will help us diagnose broken compilers, and finding out an intuition
1996 # of exeext.
1997 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1998 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1999 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2000 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2001   (eval $ac_link_default) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }; then
2005   # Find the output, starting from the most likely.  This scheme is
2006 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2007 # resort.
2008
2009 # Be careful to initialize this variable, since it used to be cached.
2010 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2011 ac_cv_exeext=
2012 # b.out is created by i960 compilers.
2013 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2014 do
2015   test -f "$ac_file" || continue
2016   case $ac_file in
2017     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2018         ;;
2019     conftest.$ac_ext )
2020         # This is the source file.
2021         ;;
2022     [ab].out )
2023         # We found the default executable, but exeext='' is most
2024         # certainly right.
2025         break;;
2026     *.* )
2027         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2028         # FIXME: I believe we export ac_cv_exeext for Libtool,
2029         # but it would be cool to find out if it's true.  Does anybody
2030         # maintain Libtool? --akim.
2031         export ac_cv_exeext
2032         break;;
2033     * )
2034         break;;
2035   esac
2036 done
2037 else
2038   echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: C compiler cannot create executables
2044 See \`config.log' for more details." >&2;}
2045    { (exit 77); exit 77; }; }
2046 fi
2047
2048 ac_exeext=$ac_cv_exeext
2049 echo "$as_me:$LINENO: result: $ac_file" >&5
2050 echo "${ECHO_T}$ac_file" >&6
2051
2052 # Check the compiler produces executables we can run.  If not, either
2053 # the compiler is broken, or we cross compile.
2054 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2055 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2056 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2057 # If not cross compiling, check that we can run a simple program.
2058 if test "$cross_compiling" != yes; then
2059   if { ac_try='./$ac_file'
2060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061   (eval $ac_try) 2>&5
2062   ac_status=$?
2063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064   (exit $ac_status); }; }; then
2065     cross_compiling=no
2066   else
2067     if test "$cross_compiling" = maybe; then
2068         cross_compiling=yes
2069     else
2070         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2071 If you meant to cross compile, use \`--host'.
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: cannot run C compiled programs.
2074 If you meant to cross compile, use \`--host'.
2075 See \`config.log' for more details." >&2;}
2076    { (exit 1); exit 1; }; }
2077     fi
2078   fi
2079 fi
2080 echo "$as_me:$LINENO: result: yes" >&5
2081 echo "${ECHO_T}yes" >&6
2082
2083 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2084 ac_clean_files=$ac_clean_files_save
2085 # Check the compiler produces executables we can run.  If not, either
2086 # the compiler is broken, or we cross compile.
2087 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2088 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2089 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2090 echo "${ECHO_T}$cross_compiling" >&6
2091
2092 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2093 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2095   (eval $ac_link) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }; then
2099   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2100 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2101 # work properly (i.e., refer to `conftest.exe'), while it won't with
2102 # `rm'.
2103 for ac_file in conftest.exe conftest conftest.*; do
2104   test -f "$ac_file" || continue
2105   case $ac_file in
2106     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2107     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108           export ac_cv_exeext
2109           break;;
2110     * ) break;;
2111   esac
2112 done
2113 else
2114   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2115 See \`config.log' for more details." >&5
2116 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2117 See \`config.log' for more details." >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120
2121 rm -f conftest$ac_cv_exeext
2122 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2123 echo "${ECHO_T}$ac_cv_exeext" >&6
2124
2125 rm -f conftest.$ac_ext
2126 EXEEXT=$ac_cv_exeext
2127 ac_exeext=$EXEEXT
2128 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2129 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2130 if test "${ac_cv_objext+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 rm -f conftest.o conftest.obj
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150   (eval $ac_compile) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }; then
2154   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2155   case $ac_file in
2156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2157     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2158        break;;
2159   esac
2160 done
2161 else
2162   echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2164
2165 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2168 See \`config.log' for more details." >&2;}
2169    { (exit 1); exit 1; }; }
2170 fi
2171
2172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2173 fi
2174 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2175 echo "${ECHO_T}$ac_cv_objext" >&6
2176 OBJEXT=$ac_cv_objext
2177 ac_objext=$OBJEXT
2178 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2179 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2180 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   cat >conftest.$ac_ext <<_ACEOF
2184 /* confdefs.h.  */
2185 _ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h.  */
2189
2190 int
2191 main ()
2192 {
2193 #ifndef __GNUC__
2194        choke me
2195 #endif
2196
2197   ;
2198   return 0;
2199 }
2200 _ACEOF
2201 rm -f conftest.$ac_objext
2202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203   (eval $ac_compile) 2>conftest.er1
2204   ac_status=$?
2205   grep -v '^ *+' conftest.er1 >conftest.err
2206   rm -f conftest.er1
2207   cat conftest.err >&5
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); } &&
2210          { ac_try='test -z "$ac_c_werror_flag"
2211                          || test ! -s conftest.err'
2212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213   (eval $ac_try) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; } &&
2217          { ac_try='test -s conftest.$ac_objext'
2218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219   (eval $ac_try) 2>&5
2220   ac_status=$?
2221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222   (exit $ac_status); }; }; then
2223   ac_compiler_gnu=yes
2224 else
2225   echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228 ac_compiler_gnu=no
2229 fi
2230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2231 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2232
2233 fi
2234 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2235 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2236 GCC=`test $ac_compiler_gnu = yes && echo yes`
2237 ac_test_CFLAGS=${CFLAGS+set}
2238 ac_save_CFLAGS=$CFLAGS
2239 CFLAGS="-g"
2240 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2241 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2242 if test "${ac_cv_prog_cc_g+set}" = set; then
2243   echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245   cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251
2252 int
2253 main ()
2254 {
2255
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>conftest.er1
2263   ac_status=$?
2264   grep -v '^ *+' conftest.er1 >conftest.err
2265   rm -f conftest.er1
2266   cat conftest.err >&5
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); } &&
2269          { ac_try='test -z "$ac_c_werror_flag"
2270                          || test ! -s conftest.err'
2271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272   (eval $ac_try) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; } &&
2276          { ac_try='test -s conftest.$ac_objext'
2277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278   (eval $ac_try) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; }; then
2282   ac_cv_prog_cc_g=yes
2283 else
2284   echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 ac_cv_prog_cc_g=no
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 fi
2291 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2293 if test "$ac_test_CFLAGS" = set; then
2294   CFLAGS=$ac_save_CFLAGS
2295 elif test $ac_cv_prog_cc_g = yes; then
2296   if test "$GCC" = yes; then
2297     CFLAGS="-g -O2"
2298   else
2299     CFLAGS="-g"
2300   fi
2301 else
2302   if test "$GCC" = yes; then
2303     CFLAGS="-O2"
2304   else
2305     CFLAGS=
2306   fi
2307 fi
2308 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2309 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2310 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2311   echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313   ac_cv_prog_cc_stdc=no
2314 ac_save_CC=$CC
2315 cat >conftest.$ac_ext <<_ACEOF
2316 /* confdefs.h.  */
2317 _ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h.  */
2321 #include <stdarg.h>
2322 #include <stdio.h>
2323 #include <sys/types.h>
2324 #include <sys/stat.h>
2325 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2326 struct buf { int x; };
2327 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2328 static char *e (p, i)
2329      char **p;
2330      int i;
2331 {
2332   return p[i];
2333 }
2334 static char *f (char * (*g) (char **, int), char **p, ...)
2335 {
2336   char *s;
2337   va_list v;
2338   va_start (v,p);
2339   s = g (p, va_arg (v,int));
2340   va_end (v);
2341   return s;
2342 }
2343
2344 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2345    function prototypes and stuff, but not '\xHH' hex character constants.
2346    These don't provoke an error unfortunately, instead are silently treated
2347    as 'x'.  The following induces an error, until -std1 is added to get
2348    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2349    array size at least.  It's necessary to write '\x00'==0 to get something
2350    that's true only with -std1.  */
2351 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2352
2353 int test (int i, double x);
2354 struct s1 {int (*f) (int a);};
2355 struct s2 {int (*f) (double a);};
2356 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2357 int argc;
2358 char **argv;
2359 int
2360 main ()
2361 {
2362 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 # Don't try gcc -ansi; that turns off useful extensions and
2368 # breaks some systems' header files.
2369 # AIX                   -qlanglvl=ansi
2370 # Ultrix and OSF/1      -std1
2371 # HP-UX 10.20 and later -Ae
2372 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2373 # SVR4                  -Xc -D__EXTENSIONS__
2374 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2375 do
2376   CC="$ac_save_CC $ac_arg"
2377   rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379   (eval $ac_compile) 2>conftest.er1
2380   ac_status=$?
2381   grep -v '^ *+' conftest.er1 >conftest.err
2382   rm -f conftest.er1
2383   cat conftest.err >&5
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); } &&
2386          { ac_try='test -z "$ac_c_werror_flag"
2387                          || test ! -s conftest.err'
2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389   (eval $ac_try) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; } &&
2393          { ac_try='test -s conftest.$ac_objext'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; }; then
2399   ac_cv_prog_cc_stdc=$ac_arg
2400 break
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 fi
2406 rm -f conftest.err conftest.$ac_objext
2407 done
2408 rm -f conftest.$ac_ext conftest.$ac_objext
2409 CC=$ac_save_CC
2410
2411 fi
2412
2413 case "x$ac_cv_prog_cc_stdc" in
2414   x|xno)
2415     echo "$as_me:$LINENO: result: none needed" >&5
2416 echo "${ECHO_T}none needed" >&6 ;;
2417   *)
2418     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2419 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2420     CC="$CC $ac_cv_prog_cc_stdc" ;;
2421 esac
2422
2423 # Some people use a C++ compiler to compile C.  Since we use `exit',
2424 # in C++ we need to declare it.  In case someone uses the same compiler
2425 # for both compiling C and C++ we need to have the C++ compiler decide
2426 # the declaration of exit, since it's the most demanding environment.
2427 cat >conftest.$ac_ext <<_ACEOF
2428 #ifndef __cplusplus
2429   choke me
2430 #endif
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag"
2442                          || test ! -s conftest.err'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   for ac_declaration in \
2455    '' \
2456    'extern "C" void std::exit (int) throw (); using std::exit;' \
2457    'extern "C" void std::exit (int); using std::exit;' \
2458    'extern "C" void exit (int) throw ();' \
2459    'extern "C" void exit (int);' \
2460    'void exit (int);'
2461 do
2462   cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h.  */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h.  */
2468 $ac_declaration
2469 #include <stdlib.h>
2470 int
2471 main ()
2472 {
2473 exit (42);
2474   ;
2475   return 0;
2476 }
2477 _ACEOF
2478 rm -f conftest.$ac_objext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480   (eval $ac_compile) 2>conftest.er1
2481   ac_status=$?
2482   grep -v '^ *+' conftest.er1 >conftest.err
2483   rm -f conftest.er1
2484   cat conftest.err >&5
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); } &&
2487          { ac_try='test -z "$ac_c_werror_flag"
2488                          || test ! -s conftest.err'
2489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490   (eval $ac_try) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; } &&
2494          { ac_try='test -s conftest.$ac_objext'
2495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496   (eval $ac_try) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }; }; then
2500   :
2501 else
2502   echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 continue
2506 fi
2507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508   cat >conftest.$ac_ext <<_ACEOF
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514 $ac_declaration
2515 int
2516 main ()
2517 {
2518 exit (42);
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>conftest.er1
2526   ac_status=$?
2527   grep -v '^ *+' conftest.er1 >conftest.err
2528   rm -f conftest.er1
2529   cat conftest.err >&5
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); } &&
2532          { ac_try='test -z "$ac_c_werror_flag"
2533                          || test ! -s conftest.err'
2534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535   (eval $ac_try) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; } &&
2539          { ac_try='test -s conftest.$ac_objext'
2540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541   (eval $ac_try) 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; }; then
2545   break
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 fi
2551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2552 done
2553 rm -f conftest*
2554 if test -n "$ac_declaration"; then
2555   echo '#ifdef __cplusplus' >>confdefs.h
2556   echo $ac_declaration      >>confdefs.h
2557   echo '#endif'             >>confdefs.h
2558 fi
2559
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 fi
2565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571
2572  ac_ext=cc
2573 ac_cpp='$CXXCPP $CPPFLAGS'
2574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2577 if test -n "$ac_tool_prefix"; then
2578   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2579   do
2580     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_prog_CXX+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   if test -n "$CXX"; then
2588   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595   for ac_exec_ext in '' $ac_executable_extensions; do
2596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602 done
2603
2604 fi
2605 fi
2606 CXX=$ac_cv_prog_CXX
2607 if test -n "$CXX"; then
2608   echo "$as_me:$LINENO: result: $CXX" >&5
2609 echo "${ECHO_T}$CXX" >&6
2610 else
2611   echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2613 fi
2614
2615     test -n "$CXX" && break
2616   done
2617 fi
2618 if test -z "$CXX"; then
2619   ac_ct_CXX=$CXX
2620   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2621 do
2622   # Extract the first word of "$ac_prog", so it can be a program name with args.
2623 set dummy $ac_prog; ac_word=$2
2624 echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2626 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   if test -n "$ac_ct_CXX"; then
2630   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635   IFS=$as_save_IFS
2636   test -z "$as_dir" && as_dir=.
2637   for ac_exec_ext in '' $ac_executable_extensions; do
2638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639     ac_cv_prog_ac_ct_CXX="$ac_prog"
2640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641     break 2
2642   fi
2643 done
2644 done
2645
2646 fi
2647 fi
2648 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2649 if test -n "$ac_ct_CXX"; then
2650   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2651 echo "${ECHO_T}$ac_ct_CXX" >&6
2652 else
2653   echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6
2655 fi
2656
2657   test -n "$ac_ct_CXX" && break
2658 done
2659 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2660
2661   CXX=$ac_ct_CXX
2662 fi
2663
2664
2665 # Provide some information about the compiler.
2666 echo "$as_me:$LINENO:" \
2667      "checking for C++ compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2670   (eval $ac_compiler --version </dev/null >&5) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }
2674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2675   (eval $ac_compiler -v </dev/null >&5) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }
2679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2680   (eval $ac_compiler -V </dev/null >&5) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }
2684
2685 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2686 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2687 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   cat >conftest.$ac_ext <<_ACEOF
2691 /* confdefs.h.  */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h.  */
2696
2697 int
2698 main ()
2699 {
2700 #ifndef __GNUC__
2701        choke me
2702 #endif
2703
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710   (eval $ac_compile) 2>conftest.er1
2711   ac_status=$?
2712   grep -v '^ *+' conftest.er1 >conftest.err
2713   rm -f conftest.er1
2714   cat conftest.err >&5
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); } &&
2717          { ac_try='test -z "$ac_cxx_werror_flag"
2718                          || test ! -s conftest.err'
2719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720   (eval $ac_try) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }; } &&
2724          { ac_try='test -s conftest.$ac_objext'
2725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726   (eval $ac_try) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; }; then
2730   ac_compiler_gnu=yes
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 ac_compiler_gnu=no
2736 fi
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2739
2740 fi
2741 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2742 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2743 GXX=`test $ac_compiler_gnu = yes && echo yes`
2744 ac_test_CXXFLAGS=${CXXFLAGS+set}
2745 ac_save_CXXFLAGS=$CXXFLAGS
2746 CXXFLAGS="-g"
2747 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2748 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2749 if test "${ac_cv_prog_cxx_g+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   cat >conftest.$ac_ext <<_ACEOF
2753 /* confdefs.h.  */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h.  */
2758
2759 int
2760 main ()
2761 {
2762
2763   ;
2764   return 0;
2765 }
2766 _ACEOF
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769   (eval $ac_compile) 2>conftest.er1
2770   ac_status=$?
2771   grep -v '^ *+' conftest.er1 >conftest.err
2772   rm -f conftest.er1
2773   cat conftest.err >&5
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); } &&
2776          { ac_try='test -z "$ac_cxx_werror_flag"
2777                          || test ! -s conftest.err'
2778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; } &&
2783          { ac_try='test -s conftest.$ac_objext'
2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; }; then
2789   ac_cv_prog_cxx_g=yes
2790 else
2791   echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 ac_cv_prog_cxx_g=no
2795 fi
2796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2797 fi
2798 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2799 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2800 if test "$ac_test_CXXFLAGS" = set; then
2801   CXXFLAGS=$ac_save_CXXFLAGS
2802 elif test $ac_cv_prog_cxx_g = yes; then
2803   if test "$GXX" = yes; then
2804     CXXFLAGS="-g -O2"
2805   else
2806     CXXFLAGS="-g"
2807   fi
2808 else
2809   if test "$GXX" = yes; then
2810     CXXFLAGS="-O2"
2811   else
2812     CXXFLAGS=
2813   fi
2814 fi
2815 for ac_declaration in \
2816    '' \
2817    'extern "C" void std::exit (int) throw (); using std::exit;' \
2818    'extern "C" void std::exit (int); using std::exit;' \
2819    'extern "C" void exit (int) throw ();' \
2820    'extern "C" void exit (int);' \
2821    'void exit (int);'
2822 do
2823   cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829 $ac_declaration
2830 #include <stdlib.h>
2831 int
2832 main ()
2833 {
2834 exit (42);
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841   (eval $ac_compile) 2>conftest.er1
2842   ac_status=$?
2843   grep -v '^ *+' conftest.er1 >conftest.err
2844   rm -f conftest.er1
2845   cat conftest.err >&5
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } &&
2848          { ac_try='test -z "$ac_cxx_werror_flag"
2849                          || test ! -s conftest.err'
2850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; } &&
2855          { ac_try='test -s conftest.$ac_objext'
2856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); }; }; then
2861   :
2862 else
2863   echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866 continue
2867 fi
2868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869   cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875 $ac_declaration
2876 int
2877 main ()
2878 {
2879 exit (42);
2880   ;
2881   return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886   (eval $ac_compile) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } &&
2893          { ac_try='test -z "$ac_cxx_werror_flag"
2894                          || test ! -s conftest.err'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   break
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 fi
2912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913 done
2914 rm -f conftest*
2915 if test -n "$ac_declaration"; then
2916   echo '#ifdef __cplusplus' >>confdefs.h
2917   echo $ac_declaration      >>confdefs.h
2918   echo '#endif'             >>confdefs.h
2919 fi
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926
2927
2928 if test "x$CHECKMEM" '!=' "x";then
2929     CC="ccmalloc $CC"
2930     CXX="ccmalloc $CXX"
2931     #echo running again
2932     #unset ac_cv_prog_CC
2933     #unset ac_cv_prog_CXX
2934     #AC_PROG_CC
2935     #AC_PROG_CXX
2936 fi
2937  ac_ext=c
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2943 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2944 # On Suns, sometimes $CPP names a directory.
2945 if test -n "$CPP" && test -d "$CPP"; then
2946   CPP=
2947 fi
2948 if test -z "$CPP"; then
2949   if test "${ac_cv_prog_CPP+set}" = set; then
2950   echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952       # Double quotes because CPP needs to be expanded
2953     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2954     do
2955       ac_preproc_ok=false
2956 for ac_c_preproc_warn_flag in '' yes
2957 do
2958   # Use a header file that comes with gcc, so configuring glibc
2959   # with a fresh cross-compiler works.
2960   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2961   # <limits.h> exists even on freestanding compilers.
2962   # On the NeXT, cc -E runs the code through the compiler's parser,
2963   # not just through cpp. "Syntax error" is here to catch this case.
2964   cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970 #ifdef __STDC__
2971 # include <limits.h>
2972 #else
2973 # include <assert.h>
2974 #endif
2975                      Syntax error
2976 _ACEOF
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } >/dev/null; then
2985   if test -s conftest.err; then
2986     ac_cpp_err=$ac_c_preproc_warn_flag
2987     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2988   else
2989     ac_cpp_err=
2990   fi
2991 else
2992   ac_cpp_err=yes
2993 fi
2994 if test -z "$ac_cpp_err"; then
2995   :
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000   # Broken: fails on valid input.
3001 continue
3002 fi
3003 rm -f conftest.err conftest.$ac_ext
3004
3005   # OK, works on sane cases.  Now check whether non-existent headers
3006   # can be detected and how.
3007   cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013 #include <ac_nonexistent.h>
3014 _ACEOF
3015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017   ac_status=$?
3018   grep -v '^ *+' conftest.er1 >conftest.err
3019   rm -f conftest.er1
3020   cat conftest.err >&5
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); } >/dev/null; then
3023   if test -s conftest.err; then
3024     ac_cpp_err=$ac_c_preproc_warn_flag
3025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3026   else
3027     ac_cpp_err=
3028   fi
3029 else
3030   ac_cpp_err=yes
3031 fi
3032 if test -z "$ac_cpp_err"; then
3033   # Broken: success on invalid input.
3034 continue
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039   # Passes both tests.
3040 ac_preproc_ok=:
3041 break
3042 fi
3043 rm -f conftest.err conftest.$ac_ext
3044
3045 done
3046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3047 rm -f conftest.err conftest.$ac_ext
3048 if $ac_preproc_ok; then
3049   break
3050 fi
3051
3052     done
3053     ac_cv_prog_CPP=$CPP
3054
3055 fi
3056   CPP=$ac_cv_prog_CPP
3057 else
3058   ac_cv_prog_CPP=$CPP
3059 fi
3060 echo "$as_me:$LINENO: result: $CPP" >&5
3061 echo "${ECHO_T}$CPP" >&6
3062 ac_preproc_ok=false
3063 for ac_c_preproc_warn_flag in '' yes
3064 do
3065   # Use a header file that comes with gcc, so configuring glibc
3066   # with a fresh cross-compiler works.
3067   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3068   # <limits.h> exists even on freestanding compilers.
3069   # On the NeXT, cc -E runs the code through the compiler's parser,
3070   # not just through cpp. "Syntax error" is here to catch this case.
3071   cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077 #ifdef __STDC__
3078 # include <limits.h>
3079 #else
3080 # include <assert.h>
3081 #endif
3082                      Syntax error
3083 _ACEOF
3084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } >/dev/null; then
3092   if test -s conftest.err; then
3093     ac_cpp_err=$ac_c_preproc_warn_flag
3094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3095   else
3096     ac_cpp_err=
3097   fi
3098 else
3099   ac_cpp_err=yes
3100 fi
3101 if test -z "$ac_cpp_err"; then
3102   :
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107   # Broken: fails on valid input.
3108 continue
3109 fi
3110 rm -f conftest.err conftest.$ac_ext
3111
3112   # OK, works on sane cases.  Now check whether non-existent headers
3113   # can be detected and how.
3114   cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120 #include <ac_nonexistent.h>
3121 _ACEOF
3122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3124   ac_status=$?
3125   grep -v '^ *+' conftest.er1 >conftest.err
3126   rm -f conftest.er1
3127   cat conftest.err >&5
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } >/dev/null; then
3130   if test -s conftest.err; then
3131     ac_cpp_err=$ac_c_preproc_warn_flag
3132     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3133   else
3134     ac_cpp_err=
3135   fi
3136 else
3137   ac_cpp_err=yes
3138 fi
3139 if test -z "$ac_cpp_err"; then
3140   # Broken: success on invalid input.
3141 continue
3142 else
3143   echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146   # Passes both tests.
3147 ac_preproc_ok=:
3148 break
3149 fi
3150 rm -f conftest.err conftest.$ac_ext
3151
3152 done
3153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3154 rm -f conftest.err conftest.$ac_ext
3155 if $ac_preproc_ok; then
3156   :
3157 else
3158   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." >&5
3160 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3161 See \`config.log' for more details." >&2;}
3162    { (exit 1); exit 1; }; }
3163 fi
3164
3165 ac_ext=c
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170
3171
3172  if test -n "$ac_tool_prefix"; then
3173   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$RANLIB"; then
3181   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196
3197 fi
3198 fi
3199 RANLIB=$ac_cv_prog_RANLIB
3200 if test -n "$RANLIB"; then
3201   echo "$as_me:$LINENO: result: $RANLIB" >&5
3202 echo "${ECHO_T}$RANLIB" >&6
3203 else
3204   echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3206 fi
3207
3208 fi
3209 if test -z "$ac_cv_prog_RANLIB"; then
3210   ac_ct_RANLIB=$RANLIB
3211   # Extract the first word of "ranlib", so it can be a program name with args.
3212 set dummy ranlib; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   if test -n "$ac_ct_RANLIB"; then
3219   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224   IFS=$as_save_IFS
3225   test -z "$as_dir" && as_dir=.
3226   for ac_exec_ext in '' $ac_executable_extensions; do
3227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228     ac_cv_prog_ac_ct_RANLIB="ranlib"
3229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230     break 2
3231   fi
3232 done
3233 done
3234
3235   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3236 fi
3237 fi
3238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3239 if test -n "$ac_ct_RANLIB"; then
3240   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3241 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3242 else
3243   echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3245 fi
3246
3247   RANLIB=$ac_ct_RANLIB
3248 else
3249   RANLIB="$ac_cv_prog_RANLIB"
3250 fi
3251
3252  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3253 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3254 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3255 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   cat >conftest.make <<\_ACEOF
3259 all:
3260         @echo 'ac_maketemp="$(MAKE)"'
3261 _ACEOF
3262 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3263 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3264 if test -n "$ac_maketemp"; then
3265   eval ac_cv_prog_make_${ac_make}_set=yes
3266 else
3267   eval ac_cv_prog_make_${ac_make}_set=no
3268 fi
3269 rm -f conftest.make
3270 fi
3271 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3272   echo "$as_me:$LINENO: result: yes" >&5
3273 echo "${ECHO_T}yes" >&6
3274   SET_MAKE=
3275 else
3276   echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6
3278   SET_MAKE="MAKE=${MAKE-make}"
3279 fi
3280
3281  # Find a good install program.  We prefer a C program (faster),
3282 # so one script is as good as another.  But avoid the broken or
3283 # incompatible versions:
3284 # SysV /etc/install, /usr/sbin/install
3285 # SunOS /usr/etc/install
3286 # IRIX /sbin/install
3287 # AIX /bin/install
3288 # AmigaOS /C/install, which installs bootblocks on floppy discs
3289 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3290 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3291 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3292 # OS/2's system install, which has a completely different semantic
3293 # ./install, which can be erroneously created by make from ./install.sh.
3294 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3295 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3296 if test -z "$INSTALL"; then
3297 if test "${ac_cv_path_install+set}" = set; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303   IFS=$as_save_IFS
3304   test -z "$as_dir" && as_dir=.
3305   # Account for people who put trailing slashes in PATH elements.
3306 case $as_dir/ in
3307   ./ | .// | /cC/* | \
3308   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3309   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3310   /usr/ucb/* ) ;;
3311   *)
3312     # OSF1 and SCO ODT 3.0 have their own names for install.
3313     # Don't use installbsd from OSF since it installs stuff as root
3314     # by default.
3315     for ac_prog in ginstall scoinst install; do
3316       for ac_exec_ext in '' $ac_executable_extensions; do
3317         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3318           if test $ac_prog = install &&
3319             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3320             # AIX install.  It has an incompatible calling convention.
3321             :
3322           elif test $ac_prog = install &&
3323             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3324             # program-specific install script used by HP pwplus--don't use.
3325             :
3326           else
3327             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3328             break 3
3329           fi
3330         fi
3331       done
3332     done
3333     ;;
3334 esac
3335 done
3336
3337
3338 fi
3339   if test "${ac_cv_path_install+set}" = set; then
3340     INSTALL=$ac_cv_path_install
3341   else
3342     # As a last resort, use the slow shell script.  We don't cache a
3343     # path for INSTALL within a source directory, because that will
3344     # break other packages using the cache if that directory is
3345     # removed, or if the path is relative.
3346     INSTALL=$ac_install_sh
3347   fi
3348 fi
3349 echo "$as_me:$LINENO: result: $INSTALL" >&5
3350 echo "${ECHO_T}$INSTALL" >&6
3351
3352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3353 # It thinks the first close brace ends the variable substitution.
3354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3355
3356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3357
3358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3359
3360  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3362 LN_S=$as_ln_s
3363 if test "$LN_S" = "ln -s"; then
3364   echo "$as_me:$LINENO: result: yes" >&5
3365 echo "${ECHO_T}yes" >&6
3366 else
3367   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3368 echo "${ECHO_T}no, using $LN_S" >&6
3369 fi
3370
3371  # Check whether --enable-shared or --disable-shared was given.
3372 if test "${enable_shared+set}" = set; then
3373   enableval="$enable_shared"
3374   p=${PACKAGE-default}
3375 case $enableval in
3376 yes) enable_shared=yes ;;
3377 no) enable_shared=no ;;
3378 *)
3379   enable_shared=no
3380   # Look at the argument we got.  We use all the common list separators.
3381   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3382   for pkg in $enableval; do
3383     if test "X$pkg" = "X$p"; then
3384       enable_shared=yes
3385     fi
3386   done
3387   IFS="$ac_save_ifs"
3388   ;;
3389 esac
3390 else
3391   enable_shared=yes
3392 fi;
3393 # Check whether --enable-static or --disable-static was given.
3394 if test "${enable_static+set}" = set; then
3395   enableval="$enable_static"
3396   p=${PACKAGE-default}
3397 case $enableval in
3398 yes) enable_static=yes ;;
3399 no) enable_static=no ;;
3400 *)
3401   enable_static=no
3402   # Look at the argument we got.  We use all the common list separators.
3403   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3404   for pkg in $enableval; do
3405     if test "X$pkg" = "X$p"; then
3406       enable_static=yes
3407     fi
3408   done
3409   IFS="$ac_save_ifs"
3410   ;;
3411 esac
3412 else
3413   enable_static=yes
3414 fi;
3415 # Check whether --enable-fast-install or --disable-fast-install was given.
3416 if test "${enable_fast_install+set}" = set; then
3417   enableval="$enable_fast_install"
3418   p=${PACKAGE-default}
3419 case $enableval in
3420 yes) enable_fast_install=yes ;;
3421 no) enable_fast_install=no ;;
3422 *)
3423   enable_fast_install=no
3424   # Look at the argument we got.  We use all the common list separators.
3425   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3426   for pkg in $enableval; do
3427     if test "X$pkg" = "X$p"; then
3428       enable_fast_install=yes
3429     fi
3430   done
3431   IFS="$ac_save_ifs"
3432   ;;
3433 esac
3434 else
3435   enable_fast_install=yes
3436 fi;
3437 # Find the correct PATH separator.  Usually this is `:', but
3438 # DJGPP uses `;' like DOS.
3439 if test "X${PATH_SEPARATOR+set}" != Xset; then
3440   UNAME=${UNAME-`uname 2>/dev/null`}
3441   case X$UNAME in
3442     *-DOS) lt_cv_sys_path_separator=';' ;;
3443     *)     lt_cv_sys_path_separator=':' ;;
3444   esac
3445   PATH_SEPARATOR=$lt_cv_sys_path_separator
3446 fi
3447
3448
3449 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3450 if test "${with_gnu_ld+set}" = set; then
3451   withval="$with_gnu_ld"
3452   test "$withval" = no || with_gnu_ld=yes
3453 else
3454   with_gnu_ld=no
3455 fi;
3456 ac_prog=ld
3457 if test "$GCC" = yes; then
3458   # Check if gcc -print-prog-name=ld gives a path.
3459   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3460 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3461   case $host in
3462   *-*-mingw*)
3463     # gcc leaves a trailing carriage return which upsets mingw
3464     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3465   *)
3466     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3467   esac
3468   case $ac_prog in
3469     # Accept absolute paths.
3470     [\\/]* | [A-Za-z]:[\\/]*)
3471       re_direlt='/[^/][^/]*/\.\./'
3472       # Canonicalize the path of ld
3473       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3474       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3475         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3476       done
3477       test -z "$LD" && LD="$ac_prog"
3478       ;;
3479   "")
3480     # If it fails, then pretend we aren't using GCC.
3481     ac_prog=ld
3482     ;;
3483   *)
3484     # If it is relative, then search for the first ld in PATH.
3485     with_gnu_ld=unknown
3486     ;;
3487   esac
3488 elif test "$with_gnu_ld" = yes; then
3489   echo "$as_me:$LINENO: checking for GNU ld" >&5
3490 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3491 else
3492   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3493 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3494 fi
3495 if test "${lt_cv_path_LD+set}" = set; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   if test -z "$LD"; then
3499   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3500   for ac_dir in $PATH; do
3501     test -z "$ac_dir" && ac_dir=.
3502     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3503       lt_cv_path_LD="$ac_dir/$ac_prog"
3504       # Check to see if the program is GNU ld.  I'd rather use --version,
3505       # but apparently some GNU ld's only accept -v.
3506       # Break only if it was the GNU/non-GNU ld that we prefer.
3507       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3508         test "$with_gnu_ld" != no && break
3509       else
3510         test "$with_gnu_ld" != yes && break
3511       fi
3512     fi
3513   done
3514   IFS="$ac_save_ifs"
3515 else
3516   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3517 fi
3518 fi
3519
3520 LD="$lt_cv_path_LD"
3521 if test -n "$LD"; then
3522   echo "$as_me:$LINENO: result: $LD" >&5
3523 echo "${ECHO_T}$LD" >&6
3524 else
3525   echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3527 fi
3528 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3529 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3530    { (exit 1); exit 1; }; }
3531 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3532 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3533 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3537 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3538   lt_cv_prog_gnu_ld=yes
3539 else
3540   lt_cv_prog_gnu_ld=no
3541 fi
3542 fi
3543 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3544 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3545 with_gnu_ld=$lt_cv_prog_gnu_ld
3546
3547
3548 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3549 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3550 if test "${lt_cv_ld_reload_flag+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   lt_cv_ld_reload_flag='-r'
3554 fi
3555 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3556 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3557 reload_flag=$lt_cv_ld_reload_flag
3558 test -n "$reload_flag" && reload_flag=" $reload_flag"
3559
3560 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3561 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3562 if test "${lt_cv_path_NM+set}" = set; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565   if test -n "$NM"; then
3566   # Let the user override the test.
3567   lt_cv_path_NM="$NM"
3568 else
3569   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3570   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3571     test -z "$ac_dir" && ac_dir=.
3572     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3573     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3574       # Check to see if the nm accepts a BSD-compat flag.
3575       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3576       #   nm: unknown option "B" ignored
3577       # Tru64's nm complains that /dev/null is an invalid object file
3578       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3579         lt_cv_path_NM="$tmp_nm -B"
3580         break
3581       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3582         lt_cv_path_NM="$tmp_nm -p"
3583         break
3584       else
3585         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3586         continue # so that we can try to find one that supports BSD flags
3587       fi
3588     fi
3589   done
3590   IFS="$ac_save_ifs"
3591   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3592 fi
3593 fi
3594
3595 NM="$lt_cv_path_NM"
3596 echo "$as_me:$LINENO: result: $NM" >&5
3597 echo "${ECHO_T}$NM" >&6
3598
3599 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3600 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3601 if test "${lt_cv_path_SED+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   # Loop through the user's path and test for sed and gsed.
3605 # Then use that list of sed's as ones to test for truncation.
3606 as_executable_p="test -f"
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610   IFS=$as_save_IFS
3611   test -z "$as_dir" && as_dir=.
3612   for ac_prog in sed gsed; do
3613     for ac_exec_ext in '' $ac_executable_extensions; do
3614       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3615         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3616       fi
3617     done
3618   done
3619 done
3620
3621   # Create a temporary directory, and hook for its removal unless debugging.
3622 $debug ||
3623 {
3624   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3625   trap '{ (exit 1); exit 1; }' 1 2 13 15
3626 }
3627
3628 # Create a (secure) tmp directory for tmp files.
3629 : ${TMPDIR=/tmp}
3630 {
3631   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3632   test -n "$tmp" && test -d "$tmp"
3633 }  ||
3634 {
3635   tmp=$TMPDIR/sed$$-$RANDOM
3636   (umask 077 && mkdir $tmp)
3637 } ||
3638 {
3639    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3640    { (exit 1); exit 1; }
3641 }
3642   _max=0
3643   _count=0
3644   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3645   # along with /bin/sed that truncates output.
3646   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3647     test ! -f ${_sed} && break
3648     cat /dev/null > "$tmp/sed.in"
3649     _count=0
3650     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3651     # Check for GNU sed and select it if it is found.
3652     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3653       lt_cv_path_SED=${_sed}
3654       break
3655     fi
3656     while true; do
3657       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3658       mv "$tmp/sed.tmp" "$tmp/sed.in"
3659       cp "$tmp/sed.in" "$tmp/sed.nl"
3660       echo >>"$tmp/sed.nl"
3661       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3662       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3663       # 40000 chars as input seems more than enough
3664       test $_count -gt 10 && break
3665       _count=`expr $_count + 1`
3666       if test $_count -gt $_max; then
3667         _max=$_count
3668         lt_cv_path_SED=$_sed
3669       fi
3670     done
3671   done
3672   rm -rf "$tmp"
3673
3674 fi
3675
3676 if test "X$SED" != "X"; then
3677   lt_cv_path_SED=$SED
3678 else
3679   SED=$lt_cv_path_SED
3680 fi
3681 echo "$as_me:$LINENO: result: $SED" >&5
3682 echo "${ECHO_T}$SED" >&6
3683
3684 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3685 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3686 if test "${lt_cv_deplibs_check_method+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   lt_cv_file_magic_cmd='$MAGIC_CMD'
3690 lt_cv_file_magic_test_file=
3691 lt_cv_deplibs_check_method='unknown'
3692 # Need to set the preceding variable on all platforms that support
3693 # interlibrary dependencies.
3694 # 'none' -- dependencies not supported.
3695 # `unknown' -- same as none, but documents that we really don't know.
3696 # 'pass_all' -- all dependencies passed with no checks.
3697 # 'test_compile' -- check by making test program.
3698 # 'file_magic [[regex]]' -- check by looking for files in library path
3699 # which responds to the $file_magic_cmd with a given egrep regex.
3700 # If you have `file' or equivalent on your system and you're not sure
3701 # whether `pass_all' will *always* work, you probably want this one.
3702
3703 case $host_os in
3704 aix4* | aix5*)
3705   lt_cv_deplibs_check_method=pass_all
3706   ;;
3707
3708 beos*)
3709   lt_cv_deplibs_check_method=pass_all
3710   ;;
3711
3712 bsdi4*)
3713   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3714   lt_cv_file_magic_cmd='/usr/bin/file -L'
3715   lt_cv_file_magic_test_file=/shlib/libc.so
3716   ;;
3717
3718 cygwin* | mingw* | pw32*)
3719   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3720   lt_cv_file_magic_cmd='$OBJDUMP -f'
3721   ;;
3722
3723 darwin* | rhapsody*)
3724   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3725   lt_cv_file_magic_cmd='/usr/bin/file -L'
3726   case "$host_os" in
3727   rhapsody* | darwin1.[012])
3728     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3729     ;;
3730   *) # Darwin 1.3 on
3731     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3732     ;;
3733   esac
3734   ;;
3735
3736 freebsd*)
3737   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3738     case $host_cpu in
3739     i*86 )
3740       # Not sure whether the presence of OpenBSD here was a mistake.
3741       # Let's accept both of them until this is cleared up.
3742       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3743       lt_cv_file_magic_cmd=/usr/bin/file
3744       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3745       ;;
3746     esac
3747   else
3748     lt_cv_deplibs_check_method=pass_all
3749   fi
3750   ;;
3751
3752 gnu*)
3753   lt_cv_deplibs_check_method=pass_all
3754   ;;
3755
3756 hpux10.20*|hpux11*)
3757   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3758   lt_cv_file_magic_cmd=/usr/bin/file
3759   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3760   ;;
3761
3762 irix5* | irix6* | nonstopux*)
3763   case $host_os in
3764   irix5* | nonstopux*)
3765     # this will be overridden with pass_all, but let us keep it just in case
3766     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3767     ;;
3768   *)
3769     case $LD in
3770     *-32|*"-32 ") libmagic=32-bit;;
3771     *-n32|*"-n32 ") libmagic=N32;;
3772     *-64|*"-64 ") libmagic=64-bit;;
3773     *) libmagic=never-match;;
3774     esac
3775     # this will be overridden with pass_all, but let us keep it just in case
3776     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3777     ;;
3778   esac
3779   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3780   lt_cv_deplibs_check_method=pass_all
3781   ;;
3782
3783 # This must be Linux ELF.
3784 linux-gnu*)
3785   case $host_cpu in
3786   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3787     lt_cv_deplibs_check_method=pass_all ;;
3788   *)
3789     # glibc up to 2.1.1 does not perform some relocations on ARM
3790     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3791   esac
3792   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3793   ;;
3794
3795 netbsd*)
3796   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3797     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3798   else
3799     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3800   fi
3801   ;;
3802
3803 newos6*)
3804   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3805   lt_cv_file_magic_cmd=/usr/bin/file
3806   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3807   ;;
3808
3809 openbsd*)
3810   lt_cv_file_magic_cmd=/usr/bin/file
3811   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3812   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3813     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3814   else
3815     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3816   fi
3817   ;;
3818
3819 osf3* | osf4* | osf5*)
3820   # this will be overridden with pass_all, but let us keep it just in case
3821   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3822   lt_cv_file_magic_test_file=/shlib/libc.so
3823   lt_cv_deplibs_check_method=pass_all
3824   ;;
3825
3826 sco3.2v5*)
3827   lt_cv_deplibs_check_method=pass_all
3828   ;;
3829
3830 solaris*)
3831   lt_cv_deplibs_check_method=pass_all
3832   lt_cv_file_magic_test_file=/lib/libc.so
3833   ;;
3834
3835 sysv5uw[78]* | sysv4*uw2*)
3836   lt_cv_deplibs_check_method=pass_all
3837   ;;
3838
3839 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3840   case $host_vendor in
3841   motorola)
3842     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]'
3843     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3844     ;;
3845   ncr)
3846     lt_cv_deplibs_check_method=pass_all
3847     ;;
3848   sequent)
3849     lt_cv_file_magic_cmd='/bin/file'
3850     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3851     ;;
3852   sni)
3853     lt_cv_file_magic_cmd='/bin/file'
3854     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3855     lt_cv_file_magic_test_file=/lib/libc.so
3856     ;;
3857   siemens)
3858     lt_cv_deplibs_check_method=pass_all
3859     ;;
3860   esac
3861   ;;
3862 esac
3863
3864 fi
3865 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3866 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3867 file_magic_cmd=$lt_cv_file_magic_cmd
3868 deplibs_check_method=$lt_cv_deplibs_check_method
3869
3870
3871
3872
3873
3874
3875
3876
3877 # Check for command to grab the raw symbol name followed by C symbol from nm.
3878 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3879 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3880 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883
3884 # These are sane defaults that work on at least a few old systems.
3885 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3886
3887 # Character class describing NM global symbol codes.
3888 symcode='[BCDEGRST]'
3889
3890 # Regexp to match symbols that can be accessed directly from C.
3891 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3892
3893 # Transform the above into a raw symbol and a C symbol.
3894 symxfrm='\1 \2\3 \3'
3895
3896 # Transform an extracted symbol line into a proper C declaration
3897 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3898
3899 # Transform an extracted symbol line into symbol name and symbol address
3900 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3901
3902 # Define system-specific variables.
3903 case $host_os in
3904 aix*)
3905   symcode='[BCDT]'
3906   ;;
3907 cygwin* | mingw* | pw32*)
3908   symcode='[ABCDGISTW]'
3909   ;;
3910 hpux*) # Its linker distinguishes data from code symbols
3911   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3912   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3913   ;;
3914 irix* | nonstopux*)
3915   symcode='[BCDEGRST]'
3916   ;;
3917 osf*)
3918   symcode='[BCDEGQRST]'
3919   ;;
3920 solaris* | sysv5*)
3921   symcode='[BDT]'
3922   ;;
3923 sysv4)
3924   symcode='[DFNSTU]'
3925   ;;
3926 esac
3927
3928 # Handle CRLF in mingw tool chain
3929 opt_cr=
3930 case $host_os in
3931 mingw*)
3932   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3933   ;;
3934 esac
3935
3936 # If we're using GNU nm, then use its standard symbol codes.
3937 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3938   symcode='[ABCDGISTW]'
3939 fi
3940
3941 # Try without a prefix undercore, then with it.
3942 for ac_symprfx in "" "_"; do
3943
3944   # Write the raw and C identifiers.
3945 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3946
3947   # Check to see that the pipe works correctly.
3948   pipe_works=no
3949   rm -f conftest*
3950   cat > conftest.$ac_ext <<EOF
3951 #ifdef __cplusplus
3952 extern "C" {
3953 #endif
3954 char nm_test_var;
3955 void nm_test_func(){}
3956 #ifdef __cplusplus
3957 }
3958 #endif
3959 int main(){nm_test_var='a';nm_test_func();return(0);}
3960 EOF
3961
3962   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963   (eval $ac_compile) 2>&5
3964   ac_status=$?
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); }; then
3967     # Now try to grab the symbols.
3968     nlist=conftest.nm
3969     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3970   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); } && test -s "$nlist"; then
3974       # Try sorting and uniquifying the output.
3975       if sort "$nlist" | uniq > "$nlist"T; then
3976         mv -f "$nlist"T "$nlist"
3977       else
3978         rm -f "$nlist"T
3979       fi
3980
3981       # Make sure that we snagged all the symbols we need.
3982       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3983         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3984           cat <<EOF > conftest.$ac_ext
3985 #ifdef __cplusplus
3986 extern "C" {
3987 #endif
3988
3989 EOF
3990           # Now generate the symbol file.
3991           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3992
3993           cat <<EOF >> conftest.$ac_ext
3994 #if defined (__STDC__) && __STDC__
3995 # define lt_ptr void *
3996 #else
3997 # define lt_ptr char *
3998 # define const
3999 #endif
4000
4001 /* The mapping between symbol names and symbols. */
4002 const struct {
4003   const char *name;
4004   lt_ptr address;
4005 }
4006 lt_preloaded_symbols[] =
4007 {
4008 EOF
4009           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4010           cat <<\EOF >> conftest.$ac_ext
4011   {0, (lt_ptr) 0}
4012 };
4013
4014 #ifdef __cplusplus
4015 }
4016 #endif
4017 EOF
4018           # Now try linking the two files.
4019           mv conftest.$ac_objext conftstm.$ac_objext
4020           save_LIBS="$LIBS"
4021           save_CFLAGS="$CFLAGS"
4022           LIBS="conftstm.$ac_objext"
4023           CFLAGS="$CFLAGS$no_builtin_flag"
4024           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4025   (eval $ac_link) 2>&5
4026   ac_status=$?
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } && test -s conftest$ac_exeext; then
4029             pipe_works=yes
4030           fi
4031           LIBS="$save_LIBS"
4032           CFLAGS="$save_CFLAGS"
4033         else
4034           echo "cannot find nm_test_func in $nlist" >&5
4035         fi
4036       else
4037         echo "cannot find nm_test_var in $nlist" >&5
4038       fi
4039     else
4040       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4041     fi
4042   else
4043     echo "$progname: failed program was:" >&5
4044     cat conftest.$ac_ext >&5
4045   fi
4046   rm -f conftest* conftst*
4047
4048   # Do not use the global_symbol_pipe unless it works.
4049   if test "$pipe_works" = yes; then
4050     break
4051   else
4052     lt_cv_sys_global_symbol_pipe=
4053   fi
4054 done
4055
4056 fi
4057
4058 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4059 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4060   global_symbol_to_cdecl=
4061   global_symbol_to_c_name_address=
4062 else
4063   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4064   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4065 fi
4066 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4067 then
4068   echo "$as_me:$LINENO: result: failed" >&5
4069 echo "${ECHO_T}failed" >&6
4070 else
4071   echo "$as_me:$LINENO: result: ok" >&5
4072 echo "${ECHO_T}ok" >&6
4073 fi
4074
4075
4076 echo "$as_me:$LINENO: checking for egrep" >&5
4077 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4078 if test "${ac_cv_prog_egrep+set}" = set; then
4079   echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4082     then ac_cv_prog_egrep='grep -E'
4083     else ac_cv_prog_egrep='egrep'
4084     fi
4085 fi
4086 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4087 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4088  EGREP=$ac_cv_prog_egrep
4089
4090
4091 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4093 if test "${ac_cv_header_stdc+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h.  */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h.  */
4102 #include <stdlib.h>
4103 #include <stdarg.h>
4104 #include <string.h>
4105 #include <float.h>
4106
4107 int
4108 main ()
4109 {
4110
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117   (eval $ac_compile) 2>conftest.er1
4118   ac_status=$?
4119   grep -v '^ *+' conftest.er1 >conftest.err
4120   rm -f conftest.er1
4121   cat conftest.err >&5
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); } &&
4124          { ac_try='test -z "$ac_c_werror_flag"
4125                          || test ! -s conftest.err'
4126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127   (eval $ac_try) 2>&5
4128   ac_status=$?
4129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130   (exit $ac_status); }; } &&
4131          { ac_try='test -s conftest.$ac_objext'
4132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133   (eval $ac_try) 2>&5
4134   ac_status=$?
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); }; }; then
4137   ac_cv_header_stdc=yes
4138 else
4139   echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 ac_cv_header_stdc=no
4143 fi
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145
4146 if test $ac_cv_header_stdc = yes; then
4147   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148   cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h.  */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h.  */
4154 #include <string.h>
4155
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158   $EGREP "memchr" >/dev/null 2>&1; then
4159   :
4160 else
4161   ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest*
4164
4165 fi
4166
4167 if test $ac_cv_header_stdc = yes; then
4168   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169   cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h.  */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h.  */
4175 #include <stdlib.h>
4176
4177 _ACEOF
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179   $EGREP "free" >/dev/null 2>&1; then
4180   :
4181 else
4182   ac_cv_header_stdc=no
4183 fi
4184 rm -f conftest*
4185
4186 fi
4187
4188 if test $ac_cv_header_stdc = yes; then
4189   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190   if test "$cross_compiling" = yes; then
4191   :
4192 else
4193   cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 #include <ctype.h>
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4203 #else
4204 # define ISLOWER(c) \
4205                    (('a' <= (c) && (c) <= 'i') \
4206                      || ('j' <= (c) && (c) <= 'r') \
4207                      || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4209 #endif
4210
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4212 int
4213 main ()
4214 {
4215   int i;
4216   for (i = 0; i < 256; i++)
4217     if (XOR (islower (i), ISLOWER (i))
4218         || toupper (i) != TOUPPER (i))
4219       exit(2);
4220   exit (0);
4221 }
4222 _ACEOF
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225   (eval $ac_link) 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; }; then
4234   :
4235 else
4236   echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 ( exit $ac_status )
4241 ac_cv_header_stdc=no
4242 fi
4243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4244 fi
4245 fi
4246 fi
4247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249 if test $ac_cv_header_stdc = yes; then
4250
4251 cat >>confdefs.h <<\_ACEOF
4252 #define STDC_HEADERS 1
4253 _ACEOF
4254
4255 fi
4256
4257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268                   inttypes.h stdint.h unistd.h
4269 do
4270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 echo "$as_me:$LINENO: checking for $ac_header" >&5
4272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h.  */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h.  */
4282 $ac_includes_default
4283
4284 #include <$ac_header>
4285 _ACEOF
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288   (eval $ac_compile) 2>conftest.er1
4289   ac_status=$?
4290   grep -v '^ *+' conftest.er1 >conftest.err
4291   rm -f conftest.er1
4292   cat conftest.err >&5
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); } &&
4295          { ac_try='test -z "$ac_c_werror_flag"
4296                          || test ! -s conftest.err'
4297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298   (eval $ac_try) 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }; } &&
4302          { ac_try='test -s conftest.$ac_objext'
4303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304   (eval $ac_try) 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; }; then
4308   eval "$as_ac_Header=yes"
4309 else
4310   echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4312
4313 eval "$as_ac_Header=no"
4314 fi
4315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316 fi
4317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4320   cat >>confdefs.h <<_ACEOF
4321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322 _ACEOF
4323
4324 fi
4325
4326 done
4327
4328
4329
4330 for ac_header in dlfcn.h
4331 do
4332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4334   echo "$as_me:$LINENO: checking for $ac_header" >&5
4335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 fi
4339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4341 else
4342   # Is the header compilable?
4343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4345 cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h.  */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h.  */
4351 $ac_includes_default
4352 #include <$ac_header>
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356   (eval $ac_compile) 2>conftest.er1
4357   ac_status=$?
4358   grep -v '^ *+' conftest.er1 >conftest.err
4359   rm -f conftest.er1
4360   cat conftest.err >&5
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } &&
4363          { ac_try='test -z "$ac_c_werror_flag"
4364                          || test ! -s conftest.err'
4365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366   (eval $ac_try) 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); }; } &&
4370          { ac_try='test -s conftest.$ac_objext'
4371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372   (eval $ac_try) 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }; }; then
4376   ac_header_compiler=yes
4377 else
4378   echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4380
4381 ac_header_compiler=no
4382 fi
4383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4385 echo "${ECHO_T}$ac_header_compiler" >&6
4386
4387 # Is the header present?
4388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4390 cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h.  */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h.  */
4396 #include <$ac_header>
4397 _ACEOF
4398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } >/dev/null; then
4406   if test -s conftest.err; then
4407     ac_cpp_err=$ac_c_preproc_warn_flag
4408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4409   else
4410     ac_cpp_err=
4411   fi
4412 else
4413   ac_cpp_err=yes
4414 fi
4415 if test -z "$ac_cpp_err"; then
4416   ac_header_preproc=yes
4417 else
4418   echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4420
4421   ac_header_preproc=no
4422 fi
4423 rm -f conftest.err conftest.$ac_ext
4424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4425 echo "${ECHO_T}$ac_header_preproc" >&6
4426
4427 # So?  What about this header?
4428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4429   yes:no: )
4430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4434     ac_header_preproc=yes
4435     ;;
4436   no:yes:* )
4437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4449     (
4450       cat <<\_ASBOX
4451 ## ------------------------------------------ ##
4452 ## Report this to the AC_PACKAGE_NAME lists.  ##
4453 ## ------------------------------------------ ##
4454 _ASBOX
4455     ) |
4456       sed "s/^/$as_me: WARNING:     /" >&2
4457     ;;
4458 esac
4459 echo "$as_me:$LINENO: checking for $ac_header" >&5
4460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4462   echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464   eval "$as_ac_Header=\$ac_header_preproc"
4465 fi
4466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4468
4469 fi
4470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4471   cat >>confdefs.h <<_ACEOF
4472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4473 _ACEOF
4474
4475 fi
4476
4477 done
4478
4479
4480
4481
4482
4483
4484 # Only perform the check for file, if the check method requires it
4485 case $deplibs_check_method in
4486 file_magic*)
4487   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4488     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4489 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4490 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   case $MAGIC_CMD in
4494   /*)
4495   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4496   ;;
4497   ?:/*)
4498   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4499   ;;
4500   *)
4501   ac_save_MAGIC_CMD="$MAGIC_CMD"
4502   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4503   ac_dummy="/usr/bin:$PATH"
4504   for ac_dir in $ac_dummy; do
4505     test -z "$ac_dir" && ac_dir=.
4506     if test -f $ac_dir/${ac_tool_prefix}file; then
4507       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4508       if test -n "$file_magic_test_file"; then
4509         case $deplibs_check_method in
4510         "file_magic "*)
4511           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4512           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4513           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4514             egrep "$file_magic_regex" > /dev/null; then
4515             :
4516           else
4517             cat <<EOF 1>&2
4518
4519 *** Warning: the command libtool uses to detect shared libraries,
4520 *** $file_magic_cmd, produces output that libtool cannot recognize.
4521 *** The result is that libtool may fail to recognize shared libraries
4522 *** as such.  This will affect the creation of libtool libraries that
4523 *** depend on shared libraries, but programs linked with such libtool
4524 *** libraries will work regardless of this problem.  Nevertheless, you
4525 *** may want to report the problem to your system manager and/or to
4526 *** bug-libtool@gnu.org
4527
4528 EOF
4529           fi ;;
4530         esac
4531       fi
4532       break
4533     fi
4534   done
4535   IFS="$ac_save_ifs"
4536   MAGIC_CMD="$ac_save_MAGIC_CMD"
4537   ;;
4538 esac
4539 fi
4540
4541 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4542 if test -n "$MAGIC_CMD"; then
4543   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4544 echo "${ECHO_T}$MAGIC_CMD" >&6
4545 else
4546   echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4548 fi
4549
4550 if test -z "$lt_cv_path_MAGIC_CMD"; then
4551   if test -n "$ac_tool_prefix"; then
4552     echo "$as_me:$LINENO: checking for file" >&5
4553 echo $ECHO_N "checking for file... $ECHO_C" >&6
4554 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   case $MAGIC_CMD in
4558   /*)
4559   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4560   ;;
4561   ?:/*)
4562   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4563   ;;
4564   *)
4565   ac_save_MAGIC_CMD="$MAGIC_CMD"
4566   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4567   ac_dummy="/usr/bin:$PATH"
4568   for ac_dir in $ac_dummy; do
4569     test -z "$ac_dir" && ac_dir=.
4570     if test -f $ac_dir/file; then
4571       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4572       if test -n "$file_magic_test_file"; then
4573         case $deplibs_check_method in
4574         "file_magic "*)
4575           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4576           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4577           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4578             egrep "$file_magic_regex" > /dev/null; then
4579             :
4580           else
4581             cat <<EOF 1>&2
4582
4583 *** Warning: the command libtool uses to detect shared libraries,
4584 *** $file_magic_cmd, produces output that libtool cannot recognize.
4585 *** The result is that libtool may fail to recognize shared libraries
4586 *** as such.  This will affect the creation of libtool libraries that
4587 *** depend on shared libraries, but programs linked with such libtool
4588 *** libraries will work regardless of this problem.  Nevertheless, you
4589 *** may want to report the problem to your system manager and/or to
4590 *** bug-libtool@gnu.org
4591
4592 EOF
4593           fi ;;
4594         esac
4595       fi
4596       break
4597     fi
4598   done
4599   IFS="$ac_save_ifs"
4600   MAGIC_CMD="$ac_save_MAGIC_CMD"
4601   ;;
4602 esac
4603 fi
4604
4605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4606 if test -n "$MAGIC_CMD"; then
4607   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4608 echo "${ECHO_T}$MAGIC_CMD" >&6
4609 else
4610   echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4612 fi
4613
4614   else
4615     MAGIC_CMD=:
4616   fi
4617 fi
4618
4619   fi
4620   ;;
4621 esac
4622
4623 if test -n "$ac_tool_prefix"; then
4624   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4626 echo "$as_me:$LINENO: checking for $ac_word" >&5
4627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4628 if test "${ac_cv_prog_RANLIB+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631   if test -n "$RANLIB"; then
4632   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637   IFS=$as_save_IFS
4638   test -z "$as_dir" && as_dir=.
4639   for ac_exec_ext in '' $ac_executable_extensions; do
4640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643     break 2
4644   fi
4645 done
4646 done
4647
4648 fi
4649 fi
4650 RANLIB=$ac_cv_prog_RANLIB
4651 if test -n "$RANLIB"; then
4652   echo "$as_me:$LINENO: result: $RANLIB" >&5
4653 echo "${ECHO_T}$RANLIB" >&6
4654 else
4655   echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6
4657 fi
4658
4659 fi
4660 if test -z "$ac_cv_prog_RANLIB"; then
4661   ac_ct_RANLIB=$RANLIB
4662   # Extract the first word of "ranlib", so it can be a program name with args.
4663 set dummy ranlib; ac_word=$2
4664 echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4666 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   if test -n "$ac_ct_RANLIB"; then
4670   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675   IFS=$as_save_IFS
4676   test -z "$as_dir" && as_dir=.
4677   for ac_exec_ext in '' $ac_executable_extensions; do
4678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679     ac_cv_prog_ac_ct_RANLIB="ranlib"
4680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681     break 2
4682   fi
4683 done
4684 done
4685
4686   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4687 fi
4688 fi
4689 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4690 if test -n "$ac_ct_RANLIB"; then
4691   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4692 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4693 else
4694   echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6
4696 fi
4697
4698   RANLIB=$ac_ct_RANLIB
4699 else
4700   RANLIB="$ac_cv_prog_RANLIB"
4701 fi
4702
4703 if test -n "$ac_tool_prefix"; then
4704   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4705 set dummy ${ac_tool_prefix}strip; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_prog_STRIP+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   if test -n "$STRIP"; then
4712   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719   for ac_exec_ext in '' $ac_executable_extensions; do
4720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726 done
4727
4728 fi
4729 fi
4730 STRIP=$ac_cv_prog_STRIP
4731 if test -n "$STRIP"; then
4732   echo "$as_me:$LINENO: result: $STRIP" >&5
4733 echo "${ECHO_T}$STRIP" >&6
4734 else
4735   echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6
4737 fi
4738
4739 fi
4740 if test -z "$ac_cv_prog_STRIP"; then
4741   ac_ct_STRIP=$STRIP
4742   # Extract the first word of "strip", so it can be a program name with args.
4743 set dummy strip; ac_word=$2
4744 echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749   if test -n "$ac_ct_STRIP"; then
4750   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757   for ac_exec_ext in '' $ac_executable_extensions; do
4758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759     ac_cv_prog_ac_ct_STRIP="strip"
4760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764 done
4765
4766   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4767 fi
4768 fi
4769 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4770 if test -n "$ac_ct_STRIP"; then
4771   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4772 echo "${ECHO_T}$ac_ct_STRIP" >&6
4773 else
4774   echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6
4776 fi
4777
4778   STRIP=$ac_ct_STRIP
4779 else
4780   STRIP="$ac_cv_prog_STRIP"
4781 fi
4782
4783
4784 enable_dlopen=no
4785 enable_win32_dll=no
4786
4787 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4788 if test "${enable_libtool_lock+set}" = set; then
4789   enableval="$enable_libtool_lock"
4790
4791 fi;
4792 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4793
4794 # Some flags need to be propagated to the compiler or linker for good
4795 # libtool support.
4796 case $host in
4797 *-*-irix6*)
4798   # Find out which ABI we are using.
4799   echo '#line 4799 "configure"' > conftest.$ac_ext
4800   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801   (eval $ac_compile) 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); }; then
4805     case `/usr/bin/file conftest.$ac_objext` in
4806     *32-bit*)
4807       LD="${LD-ld} -32"
4808       ;;
4809     *N32*)
4810       LD="${LD-ld} -n32"
4811       ;;
4812     *64-bit*)
4813       LD="${LD-ld} -64"
4814       ;;
4815     esac
4816   fi
4817   rm -rf conftest*
4818   ;;
4819
4820 *-*-linux*)
4821   # Test if the compiler is 64bit
4822   echo 'int i;' > conftest.$ac_ext
4823   lt_cv_cc_64bit_output=no
4824   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825   (eval $ac_compile) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; then
4829     case `/usr/bin/file conftest.$ac_objext` in
4830     *"ELF 64"*)
4831       lt_cv_cc_64bit_output=yes
4832       ;;
4833     esac
4834   fi
4835   rm -rf conftest*
4836   ;;
4837
4838 *-*-sco3.2v5*)
4839   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4840   SAVE_CFLAGS="$CFLAGS"
4841   CFLAGS="$CFLAGS -belf"
4842   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4843 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4844 if test "${lt_cv_cc_needs_belf+set}" = set; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847
4848
4849      ac_ext=c
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854
4855      cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h.  */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h.  */
4861
4862 int
4863 main ()
4864 {
4865
4866   ;
4867   return 0;
4868 }
4869 _ACEOF
4870 rm -f conftest.$ac_objext conftest$ac_exeext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4872   (eval $ac_link) 2>conftest.er1
4873   ac_status=$?
4874   grep -v '^ *+' conftest.er1 >conftest.err
4875   rm -f conftest.er1
4876   cat conftest.err >&5
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); } &&
4879          { ac_try='test -z "$ac_c_werror_flag"
4880                          || test ! -s conftest.err'
4881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882   (eval $ac_try) 2>&5
4883   ac_status=$?
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); }; } &&
4886          { ac_try='test -s conftest$ac_exeext'
4887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888   (eval $ac_try) 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); }; }; then
4892   lt_cv_cc_needs_belf=yes
4893 else
4894   echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4896
4897 lt_cv_cc_needs_belf=no
4898 fi
4899 rm -f conftest.err conftest.$ac_objext \
4900       conftest$ac_exeext conftest.$ac_ext
4901      ac_ext=c
4902 ac_cpp='$CPP $CPPFLAGS'
4903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906
4907 fi
4908 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4909 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4910   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4911     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4912     CFLAGS="$SAVE_CFLAGS"
4913   fi
4914   ;;
4915
4916
4917 esac
4918
4919 # Sed substitution that helps us do robust quoting.  It backslashifies
4920 # metacharacters that are still active within double-quoted strings.
4921 Xsed='sed -e s/^X//'
4922 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4923
4924 # Same as above, but do not quote variable references.
4925 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4926
4927 # Sed substitution to delay expansion of an escaped shell variable in a
4928 # double_quote_subst'ed string.
4929 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4930
4931 # Constants:
4932 rm="rm -f"
4933
4934 # Global variables:
4935 default_ofile=libtool
4936 can_build_shared=yes
4937
4938 # All known linkers require a `.a' archive for static linking (except M$VC,
4939 # which needs '.lib').
4940 libext=a
4941 ltmain="$ac_aux_dir/ltmain.sh"
4942 ofile="$default_ofile"
4943 with_gnu_ld="$lt_cv_prog_gnu_ld"
4944 need_locks="$enable_libtool_lock"
4945
4946 old_CC="$CC"
4947 old_CFLAGS="$CFLAGS"
4948
4949 # Set sane defaults for various variables
4950 test -z "$AR" && AR=ar
4951 test -z "$AR_FLAGS" && AR_FLAGS=cru
4952 test -z "$AS" && AS=as
4953 test -z "$CC" && CC=cc
4954 test -z "$DLLTOOL" && DLLTOOL=dlltool
4955 test -z "$LD" && LD=ld
4956 test -z "$LN_S" && LN_S="ln -s"
4957 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4958 test -z "$NM" && NM=nm
4959 test -z "$OBJDUMP" && OBJDUMP=objdump
4960 test -z "$RANLIB" && RANLIB=:
4961 test -z "$STRIP" && STRIP=:
4962 test -z "$ac_objext" && ac_objext=o
4963
4964 if test x"$host" != x"$build"; then
4965   ac_tool_prefix=${host_alias}-
4966 else
4967   ac_tool_prefix=
4968 fi
4969
4970 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4971 case $host_os in
4972 linux-gnu*) ;;
4973 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4974 esac
4975
4976 case $host_os in
4977 aix3*)
4978   # AIX sometimes has problems with the GCC collect2 program.  For some
4979   # reason, if we set the COLLECT_NAMES environment variable, the problems
4980   # vanish in a puff of smoke.
4981   if test "X${COLLECT_NAMES+set}" != Xset; then
4982     COLLECT_NAMES=
4983     export COLLECT_NAMES
4984   fi
4985   ;;
4986 esac
4987
4988 # Determine commands to create old-style static archives.
4989 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4990 old_postinstall_cmds='chmod 644 $oldlib'
4991 old_postuninstall_cmds=
4992
4993 if test -n "$RANLIB"; then
4994   case $host_os in
4995   openbsd*)
4996     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4997     ;;
4998   *)
4999     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5000     ;;
5001   esac
5002   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5003 fi
5004
5005 # Allow CC to be a program name with arguments.
5006 set dummy $CC
5007 compiler="$2"
5008
5009 echo "$as_me:$LINENO: checking for objdir" >&5
5010 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5011 rm -f .libs 2>/dev/null
5012 mkdir .libs 2>/dev/null
5013 if test -d .libs; then
5014   objdir=.libs
5015 else
5016   # MS-DOS does not allow filenames that begin with a dot.
5017   objdir=_libs
5018 fi
5019 rmdir .libs 2>/dev/null
5020 echo "$as_me:$LINENO: result: $objdir" >&5
5021 echo "${ECHO_T}$objdir" >&6
5022
5023
5024
5025 # Check whether --with-pic or --without-pic was given.
5026 if test "${with_pic+set}" = set; then
5027   withval="$with_pic"
5028   pic_mode="$withval"
5029 else
5030   pic_mode=default
5031 fi;
5032 test -z "$pic_mode" && pic_mode=default
5033
5034 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5035 # in isolation, and that seeing it set (from the cache) indicates that
5036 # the associated values are set (in the cache) correctly too.
5037 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5038 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5039 if test "${lt_cv_prog_cc_pic+set}" = set; then
5040   echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042    lt_cv_prog_cc_pic=
5043   lt_cv_prog_cc_shlib=
5044   lt_cv_prog_cc_wl=
5045   lt_cv_prog_cc_static=
5046   lt_cv_prog_cc_no_builtin=
5047   lt_cv_prog_cc_can_build_shared=$can_build_shared
5048
5049   if test "$GCC" = yes; then
5050     lt_cv_prog_cc_wl='-Wl,'
5051     lt_cv_prog_cc_static='-static'
5052
5053     case $host_os in
5054     aix*)
5055       # Below there is a dirty hack to force normal static linking with -ldl
5056       # The problem is because libdl dynamically linked with both libc and
5057       # libC (AIX C++ library), which obviously doesn't included in libraries
5058       # list by gcc. This cause undefined symbols with -static flags.
5059       # This hack allows C programs to be linked with "-static -ldl", but
5060       # not sure about C++ programs.
5061       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5062       ;;
5063     amigaos*)
5064       # FIXME: we need at least 68020 code to build shared libraries, but
5065       # adding the `-m68020' flag to GCC prevents building anything better,
5066       # like `-m68040'.
5067       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5068       ;;
5069     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5070       # PIC is the default for these OSes.
5071       ;;
5072     darwin* | rhapsody*)
5073       # PIC is the default on this platform
5074       # Common symbols not allowed in MH_DYLIB files
5075       lt_cv_prog_cc_pic='-fno-common'
5076       ;;
5077     cygwin* | mingw* | pw32* | os2*)
5078       # This hack is so that the source file can tell whether it is being
5079       # built for inclusion in a dll (and should export symbols for example).
5080       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5081       ;;
5082     sysv4*MP*)
5083       if test -d /usr/nec; then
5084          lt_cv_prog_cc_pic=-Kconform_pic
5085       fi
5086       ;;
5087     *)
5088       lt_cv_prog_cc_pic='-fPIC'
5089       ;;
5090     esac
5091   else
5092     # PORTME Check for PIC flags for the system compiler.
5093     case $host_os in
5094     aix3* | aix4* | aix5*)
5095       lt_cv_prog_cc_wl='-Wl,'
5096       # All AIX code is PIC.
5097       if test "$host_cpu" = ia64; then
5098         # AIX 5 now supports IA64 processor
5099         lt_cv_prog_cc_static='-Bstatic'
5100       else
5101         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5102       fi
5103       ;;
5104
5105     hpux9* | hpux10* | hpux11*)
5106       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5107       lt_cv_prog_cc_wl='-Wl,'
5108       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5109       lt_cv_prog_cc_pic='+Z'
5110       ;;
5111
5112     irix5* | irix6* | nonstopux*)
5113       lt_cv_prog_cc_wl='-Wl,'
5114       lt_cv_prog_cc_static='-non_shared'
5115       # PIC (with -KPIC) is the default.
5116       ;;
5117
5118     cygwin* | mingw* | pw32* | os2*)
5119       # This hack is so that the source file can tell whether it is being
5120       # built for inclusion in a dll (and should export symbols for example).
5121       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5122       ;;
5123
5124     newsos6)
5125       lt_cv_prog_cc_pic='-KPIC'
5126       lt_cv_prog_cc_static='-Bstatic'
5127       ;;
5128
5129     osf3* | osf4* | osf5*)
5130       # All OSF/1 code is PIC.
5131       lt_cv_prog_cc_wl='-Wl,'
5132       lt_cv_prog_cc_static='-non_shared'
5133       ;;
5134
5135     sco3.2v5*)
5136       lt_cv_prog_cc_pic='-Kpic'
5137       lt_cv_prog_cc_static='-dn'
5138       lt_cv_prog_cc_shlib='-belf'
5139       ;;
5140
5141     solaris*)
5142       lt_cv_prog_cc_pic='-KPIC'
5143       lt_cv_prog_cc_static='-Bstatic'
5144       lt_cv_prog_cc_wl='-Wl,'
5145       ;;
5146
5147     sunos4*)
5148       lt_cv_prog_cc_pic='-PIC'
5149       lt_cv_prog_cc_static='-Bstatic'
5150       lt_cv_prog_cc_wl='-Qoption ld '
5151       ;;
5152
5153     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5154       lt_cv_prog_cc_pic='-KPIC'
5155       lt_cv_prog_cc_static='-Bstatic'
5156       lt_cv_prog_cc_wl='-Wl,'
5157       ;;
5158
5159     uts4*)
5160       lt_cv_prog_cc_pic='-pic'
5161       lt_cv_prog_cc_static='-Bstatic'
5162       ;;
5163
5164     sysv4*MP*)
5165       if test -d /usr/nec ;then
5166         lt_cv_prog_cc_pic='-Kconform_pic'
5167         lt_cv_prog_cc_static='-Bstatic'
5168       fi
5169       ;;
5170
5171     *)
5172       lt_cv_prog_cc_can_build_shared=no
5173       ;;
5174     esac
5175   fi
5176
5177 fi
5178
5179 if test -z "$lt_cv_prog_cc_pic"; then
5180   echo "$as_me:$LINENO: result: none" >&5
5181 echo "${ECHO_T}none" >&6
5182 else
5183   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5184 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5185
5186   # Check to make sure the pic_flag actually works.
5187   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5188 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5189   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192       save_CFLAGS="$CFLAGS"
5193     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5194     cat >conftest.$ac_ext <<_ACEOF
5195 /* confdefs.h.  */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h.  */
5200
5201 int
5202 main ()
5203 {
5204
5205   ;
5206   return 0;
5207 }
5208 _ACEOF
5209 rm -f conftest.$ac_objext
5210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5211   (eval $ac_compile) 2>conftest.er1
5212   ac_status=$?
5213   grep -v '^ *+' conftest.er1 >conftest.err
5214   rm -f conftest.er1
5215   cat conftest.err >&5
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); } &&
5218          { ac_try='test -z "$ac_c_werror_flag"
5219                          || test ! -s conftest.err'
5220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221   (eval $ac_try) 2>&5
5222   ac_status=$?
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); }; } &&
5225          { ac_try='test -s conftest.$ac_objext'
5226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227   (eval $ac_try) 2>&5
5228   ac_status=$?
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); }; }; then
5231         case $host_os in
5232       hpux9* | hpux10* | hpux11*)
5233         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5234         # they create non-PIC objects.  So, if there were any warnings, we
5235         # assume that PIC is not supported.
5236         if test -s conftest.err; then
5237           lt_cv_prog_cc_pic_works=no
5238         else
5239           lt_cv_prog_cc_pic_works=yes
5240         fi
5241         ;;
5242       *)
5243         lt_cv_prog_cc_pic_works=yes
5244         ;;
5245       esac
5246
5247 else
5248   echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5250
5251       lt_cv_prog_cc_pic_works=no
5252
5253 fi
5254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5255     CFLAGS="$save_CFLAGS"
5256
5257 fi
5258
5259
5260   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5261     lt_cv_prog_cc_pic=
5262     lt_cv_prog_cc_can_build_shared=no
5263   else
5264     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5265   fi
5266
5267   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5268 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5269 fi
5270
5271 # Check for any special shared library compilation flags.
5272 if test -n "$lt_cv_prog_cc_shlib"; then
5273   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5274 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5275   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5276   else
5277    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5278 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5279     lt_cv_prog_cc_can_build_shared=no
5280   fi
5281 fi
5282
5283 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5284 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5285 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288     lt_cv_prog_cc_static_works=no
5289   save_LDFLAGS="$LDFLAGS"
5290   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5291   cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h.  */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h.  */
5297
5298 int
5299 main ()
5300 {
5301
5302   ;
5303   return 0;
5304 }
5305 _ACEOF
5306 rm -f conftest.$ac_objext conftest$ac_exeext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5308   (eval $ac_link) 2>conftest.er1
5309   ac_status=$?
5310   grep -v '^ *+' conftest.er1 >conftest.err
5311   rm -f conftest.er1
5312   cat conftest.err >&5
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); } &&
5315          { ac_try='test -z "$ac_c_werror_flag"
5316                          || test ! -s conftest.err'
5317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318   (eval $ac_try) 2>&5
5319   ac_status=$?
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); }; } &&
5322          { ac_try='test -s conftest$ac_exeext'
5323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324   (eval $ac_try) 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); }; }; then
5328   lt_cv_prog_cc_static_works=yes
5329 else
5330   echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5332
5333 fi
5334 rm -f conftest.err conftest.$ac_objext \
5335       conftest$ac_exeext conftest.$ac_ext
5336   LDFLAGS="$save_LDFLAGS"
5337
5338 fi
5339
5340
5341 # Belt *and* braces to stop my trousers falling down:
5342 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5343 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5344 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5345
5346 pic_flag="$lt_cv_prog_cc_pic"
5347 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5348 wl="$lt_cv_prog_cc_wl"
5349 link_static_flag="$lt_cv_prog_cc_static"
5350 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5351 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5352
5353
5354 # Check to see if options -o and -c are simultaneously supported by compiler
5355 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5356 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5357 if test "${lt_cv_compiler_c_o+set}" = set; then
5358   echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360
5361 $rm -r conftest 2>/dev/null
5362 mkdir conftest
5363 cd conftest
5364 echo "int some_variable = 0;" > conftest.$ac_ext
5365 mkdir out
5366 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5367 # that will create temporary files in the current directory regardless of
5368 # the output directory.  Thus, making CWD read-only will cause this test
5369 # to fail, enabling locking or at least warning the user not to do parallel
5370 # builds.
5371 chmod -w .
5372 save_CFLAGS="$CFLAGS"
5373 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5374 compiler_c_o=no
5375 if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5376   # The compiler can only warn and ignore the option if not recognized
5377   # So say no if there are warnings
5378   if test -s out/conftest.err; then
5379     lt_cv_compiler_c_o=no
5380   else
5381     lt_cv_compiler_c_o=yes
5382   fi
5383 else
5384   # Append any errors to the config.log.
5385   cat out/conftest.err 1>&5
5386   lt_cv_compiler_c_o=no
5387 fi
5388 CFLAGS="$save_CFLAGS"
5389 chmod u+w .
5390 $rm conftest* out/*
5391 rmdir out
5392 cd ..
5393 rmdir conftest
5394 $rm -r conftest 2>/dev/null
5395
5396 fi
5397
5398 compiler_c_o=$lt_cv_compiler_c_o
5399 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5400 echo "${ECHO_T}$compiler_c_o" >&6
5401
5402 if test x"$compiler_c_o" = x"yes"; then
5403   # Check to see if we can write to a .lo
5404   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5405 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5406   if test "${lt_cv_compiler_o_lo+set}" = set; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409
5410   lt_cv_compiler_o_lo=no
5411   save_CFLAGS="$CFLAGS"
5412   CFLAGS="$CFLAGS -c -o conftest.lo"
5413   save_objext="$ac_objext"
5414   ac_objext=lo
5415   cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h.  */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h.  */
5421
5422 int
5423 main ()
5424 {
5425 int some_variable = 0;
5426   ;
5427   return 0;
5428 }
5429 _ACEOF
5430 rm -f conftest.$ac_objext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432   (eval $ac_compile) 2>conftest.er1
5433   ac_status=$?
5434   grep -v '^ *+' conftest.er1 >conftest.err
5435   rm -f conftest.er1
5436   cat conftest.err >&5
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } &&
5439          { ac_try='test -z "$ac_c_werror_flag"
5440                          || test ! -s conftest.err'
5441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442   (eval $ac_try) 2>&5
5443   ac_status=$?
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); }; } &&
5446          { ac_try='test -s conftest.$ac_objext'
5447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448   (eval $ac_try) 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); }; }; then
5452       # The compiler can only warn and ignore the option if not recognized
5453     # So say no if there are warnings
5454     if test -s conftest.err; then
5455       lt_cv_compiler_o_lo=no
5456     else
5457       lt_cv_compiler_o_lo=yes
5458     fi
5459
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 fi
5465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5466   ac_objext="$save_objext"
5467   CFLAGS="$save_CFLAGS"
5468
5469 fi
5470
5471   compiler_o_lo=$lt_cv_compiler_o_lo
5472   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5473 echo "${ECHO_T}$compiler_o_lo" >&6
5474 else
5475   compiler_o_lo=no
5476 fi
5477
5478 # Check to see if we can do hard links to lock some files if needed
5479 hard_links="nottested"
5480 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5481   # do not overwrite the value of need_locks provided by the user
5482   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5483 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5484   hard_links=yes
5485   $rm conftest*
5486   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5487   touch conftest.a
5488   ln conftest.a conftest.b 2>&5 || hard_links=no
5489   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5490   echo "$as_me:$LINENO: result: $hard_links" >&5
5491 echo "${ECHO_T}$hard_links" >&6
5492   if test "$hard_links" = no; then
5493     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5494 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5495     need_locks=warn
5496   fi
5497 else
5498   need_locks=no
5499 fi
5500
5501 if test "$GCC" = yes; then
5502   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5503   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5504 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5505   echo "int some_variable = 0;" > conftest.$ac_ext
5506   save_CFLAGS="$CFLAGS"
5507   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5508   compiler_rtti_exceptions=no
5509   cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h.  */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h.  */
5515
5516 int
5517 main ()
5518 {
5519 int some_variable = 0;
5520   ;
5521   return 0;
5522 }
5523 _ACEOF
5524 rm -f conftest.$ac_objext
5525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5526   (eval $ac_compile) 2>conftest.er1
5527   ac_status=$?
5528   grep -v '^ *+' conftest.er1 >conftest.err
5529   rm -f conftest.er1
5530   cat conftest.err >&5
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } &&
5533          { ac_try='test -z "$ac_c_werror_flag"
5534                          || test ! -s conftest.err'
5535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536   (eval $ac_try) 2>&5
5537   ac_status=$?
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); }; } &&
5540          { ac_try='test -s conftest.$ac_objext'
5541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542   (eval $ac_try) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); }; }; then
5546       # The compiler can only warn and ignore the option if not recognized
5547     # So say no if there are warnings
5548     if test -s conftest.err; then
5549       compiler_rtti_exceptions=no
5550     else
5551       compiler_rtti_exceptions=yes
5552     fi
5553
5554 else
5555   echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5557
5558 fi
5559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5560   CFLAGS="$save_CFLAGS"
5561   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5562 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5563
5564   if test "$compiler_rtti_exceptions" = "yes"; then
5565     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5566   else
5567     no_builtin_flag=' -fno-builtin'
5568   fi
5569 fi
5570
5571 # See if the linker supports building shared libraries.
5572 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5573 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5574
5575 allow_undefined_flag=
5576 no_undefined_flag=
5577 need_lib_prefix=unknown
5578 need_version=unknown
5579 # when you set need_version to no, make sure it does not cause -set_version
5580 # flags to be left without arguments
5581 archive_cmds=
5582 archive_expsym_cmds=
5583 old_archive_from_new_cmds=
5584 old_archive_from_expsyms_cmds=
5585 export_dynamic_flag_spec=
5586 whole_archive_flag_spec=
5587 thread_safe_flag_spec=
5588 hardcode_into_libs=no
5589 hardcode_libdir_flag_spec=
5590 hardcode_libdir_separator=
5591 hardcode_direct=no
5592 hardcode_minus_L=no
5593 hardcode_shlibpath_var=unsupported
5594 runpath_var=
5595 link_all_deplibs=unknown
5596 always_export_symbols=no
5597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5598 # include_expsyms should be a list of space-separated symbols to be *always*
5599 # included in the symbol list
5600 include_expsyms=
5601 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5602 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5603 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5604 # as well as any symbol that contains `d'.
5605 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5606 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5607 # platforms (ab)use it in PIC code, but their linkers get confused if
5608 # the symbol is explicitly referenced.  Since portable code cannot
5609 # rely on this symbol name, it's probably fine to never include it in
5610 # preloaded symbol tables.
5611 extract_expsyms_cmds=
5612
5613 case $host_os in
5614 cygwin* | mingw* | pw32*)
5615   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5616   # When not using gcc, we currently assume that we are using
5617   # Microsoft Visual C++.
5618   if test "$GCC" != yes; then
5619     with_gnu_ld=no
5620   fi
5621   ;;
5622 openbsd*)
5623   with_gnu_ld=no
5624   ;;
5625 esac
5626
5627 ld_shlibs=yes
5628 if test "$with_gnu_ld" = yes; then
5629   # If archive_cmds runs LD, not CC, wlarc should be empty
5630   wlarc='${wl}'
5631
5632   # See if GNU ld supports shared libraries.
5633   case $host_os in
5634   aix3* | aix4* | aix5*)
5635     # On AIX, the GNU linker is very broken
5636     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5637     ld_shlibs=no
5638     cat <<EOF 1>&2
5639
5640 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5641 *** to be unable to reliably create shared libraries on AIX.
5642 *** Therefore, libtool is disabling shared libraries support.  If you
5643 *** really care for shared libraries, you may want to modify your PATH
5644 *** so that a non-GNU linker is found, and then restart.
5645
5646 EOF
5647     ;;
5648
5649   amigaos*)
5650     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)'
5651     hardcode_libdir_flag_spec='-L$libdir'
5652     hardcode_minus_L=yes
5653
5654     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5655     # that the semantics of dynamic libraries on AmigaOS, at least up
5656     # to version 4, is to share data among multiple programs linked
5657     # with the same dynamic library.  Since this doesn't match the
5658     # behavior of shared libraries on other platforms, we can use
5659     # them.
5660     ld_shlibs=no
5661     ;;
5662
5663   beos*)
5664     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5665       allow_undefined_flag=unsupported
5666       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5667       # support --undefined.  This deserves some investigation.  FIXME
5668       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5669     else
5670       ld_shlibs=no
5671     fi
5672     ;;
5673
5674   cygwin* | mingw* | pw32*)
5675     # hardcode_libdir_flag_spec is actually meaningless, as there is
5676     # no search path for DLLs.
5677     hardcode_libdir_flag_spec='-L$libdir'
5678     allow_undefined_flag=unsupported
5679     always_export_symbols=yes
5680
5681     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5682       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5683       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5684       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5685       else $CC -o impgen impgen.c ; fi)~
5686       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5687
5688     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5689
5690     # cygwin and mingw dlls have different entry points and sets of symbols
5691     # to exclude.
5692     # FIXME: what about values for MSVC?
5693     dll_entry=__cygwin_dll_entry@12
5694     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5695     case $host_os in
5696     mingw*)
5697       # mingw values
5698       dll_entry=_DllMainCRTStartup@12
5699       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5700       ;;
5701     esac
5702
5703     # mingw and cygwin differ, and it's simplest to just exclude the union
5704     # of the two symbol sets.
5705     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5706
5707     # recent cygwin and mingw systems supply a stub DllMain which the user
5708     # can override, but on older systems we have to supply one (in ltdll.c)
5709     if test "x$lt_cv_need_dllmain" = "xyes"; then
5710       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5711       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5712         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5713     else
5714       ltdll_obj=
5715       ltdll_cmds=
5716     fi
5717
5718     # Extract the symbol export list from an `--export-all' def file,
5719     # then regenerate the def file from the symbol export list, so that
5720     # the compiled dll only exports the symbol export list.
5721     # Be careful not to strip the DATA tag left be newer dlltools.
5722     export_symbols_cmds="$ltdll_cmds"'
5723       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5724       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5725
5726     # If the export-symbols file already is a .def file (1st line
5727     # is EXPORTS), use it as is.
5728     # If DATA tags from a recent dlltool are present, honour them!
5729     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5730         cp $export_symbols $output_objdir/$soname-def;
5731       else
5732         echo EXPORTS > $output_objdir/$soname-def;
5733         _lt_hint=1;
5734         cat $export_symbols | while read symbol; do
5735          set dummy \$symbol;
5736          case \$# in
5737            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5738            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5739            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5740          esac;
5741          _lt_hint=`expr 1 + \$_lt_hint`;
5742         done;
5743       fi~
5744       '"$ltdll_cmds"'
5745       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5746       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5747       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5748       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5749       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5750     ;;
5751
5752   netbsd*)
5753     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5754       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5755       wlarc=
5756     else
5757       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5758       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5759     fi
5760     ;;
5761
5762   solaris* | sysv5*)
5763     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5764       ld_shlibs=no
5765       cat <<EOF 1>&2
5766
5767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5768 *** create shared libraries on Solaris systems.  Therefore, libtool
5769 *** is disabling shared libraries support.  We urge you to upgrade GNU
5770 *** binutils to release 2.9.1 or newer.  Another option is to modify
5771 *** your PATH or compiler configuration so that the native linker is
5772 *** used, and then restart.
5773
5774 EOF
5775     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5776       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5777       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5778     else
5779       ld_shlibs=no
5780     fi
5781     ;;
5782
5783   sunos4*)
5784     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5785     wlarc=
5786     hardcode_direct=yes
5787     hardcode_shlibpath_var=no
5788     ;;
5789
5790   linux*)
5791     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5792       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5793       supports_anon_versioning=no
5794       case `$LD -v 2>/dev/null` in
5795         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5796         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5797         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5798         *\ 2.11.*) ;; # other 2.11 versions
5799         *) supports_anon_versioning=yes ;;
5800       esac
5801       if test $supports_anon_versioning = yes; then
5802         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5804 $echo "local: *; };" >> $output_objdir/$libname.ver~
5805         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5806       else
5807         $archive_expsym_cmds="$archive_cmds"
5808       fi
5809     else
5810       ld_shlibs=no
5811     fi
5812     ;;
5813
5814   *)
5815     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5816       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5817       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5818     else
5819       ld_shlibs=no
5820     fi
5821     ;;
5822   esac
5823
5824   if test "$ld_shlibs" = yes; then
5825     runpath_var=LD_RUN_PATH
5826     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5827     export_dynamic_flag_spec='${wl}--export-dynamic'
5828     case $host_os in
5829     cygwin* | mingw* | pw32*)
5830       # dlltool doesn't understand --whole-archive et. al.
5831       whole_archive_flag_spec=
5832       ;;
5833     *)
5834       # ancient GNU ld didn't support --whole-archive et. al.
5835       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5836         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5837       else
5838         whole_archive_flag_spec=
5839       fi
5840       ;;
5841     esac
5842   fi
5843 else
5844   # PORTME fill in a description of your system's linker (not GNU ld)
5845   case $host_os in
5846   aix3*)
5847     allow_undefined_flag=unsupported
5848     always_export_symbols=yes
5849     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'
5850     # Note: this linker hardcodes the directories in LIBPATH if there
5851     # are no directories specified by -L.
5852     hardcode_minus_L=yes
5853     if test "$GCC" = yes && test -z "$link_static_flag"; then
5854       # Neither direct hardcoding nor static linking is supported with a
5855       # broken collect2.
5856       hardcode_direct=unsupported
5857     fi
5858     ;;
5859
5860   aix4* | aix5*)
5861     if test "$host_cpu" = ia64; then
5862       # On IA64, the linker does run time linking by default, so we don't
5863       # have to do anything special.
5864       aix_use_runtimelinking=no
5865       exp_sym_flag='-Bexport'
5866       no_entry_flag=""
5867     else
5868       aix_use_runtimelinking=no
5869
5870       # Test if we are trying to use run time linking or normal
5871       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5872       # need to do runtime linking.
5873       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5874         for ld_flag in $LDFLAGS; do
5875           case $ld_flag in
5876           *-brtl*)
5877             aix_use_runtimelinking=yes
5878             break
5879           ;;
5880           esac
5881         done
5882       esac
5883
5884       exp_sym_flag='-bexport'
5885       no_entry_flag='-bnoentry'
5886     fi
5887
5888     # When large executables or shared objects are built, AIX ld can
5889     # have problems creating the table of contents.  If linking a library
5890     # or program results in "error TOC overflow" add -mminimal-toc to
5891     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5892     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5893
5894     hardcode_direct=yes
5895     archive_cmds=''
5896     hardcode_libdir_separator=':'
5897     if test "$GCC" = yes; then
5898       case $host_os in aix4.[012]|aix4.[012].*)
5899         collect2name=`${CC} -print-prog-name=collect2`
5900         if test -f "$collect2name" && \
5901           strings "$collect2name" | grep resolve_lib_name >/dev/null
5902         then
5903           # We have reworked collect2
5904           hardcode_direct=yes
5905         else
5906           # We have old collect2
5907           hardcode_direct=unsupported
5908           # It fails to find uninstalled libraries when the uninstalled
5909           # path is not listed in the libpath.  Setting hardcode_minus_L
5910           # to unsupported forces relinking
5911           hardcode_minus_L=yes
5912           hardcode_libdir_flag_spec='-L$libdir'
5913           hardcode_libdir_separator=
5914         fi
5915       esac
5916
5917       shared_flag='-shared'
5918     else
5919       # not using gcc
5920       if test "$host_cpu" = ia64; then
5921         shared_flag='${wl}-G'
5922       else
5923         if test "$aix_use_runtimelinking" = yes; then
5924           shared_flag='${wl}-G'
5925         else
5926           shared_flag='${wl}-bM:SRE'
5927         fi
5928       fi
5929     fi
5930
5931     # It seems that -bexpall can do strange things, so it is better to
5932     # generate a list of symbols to export.
5933     always_export_symbols=yes
5934     if test "$aix_use_runtimelinking" = yes; then
5935       # Warning - without using the other runtime loading flags (-brtl),
5936       # -berok will link without error, but may produce a broken library.
5937       allow_undefined_flag='-berok'
5938       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5939       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"
5940     else
5941       if test "$host_cpu" = ia64; then
5942         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5943         allow_undefined_flag="-z nodefs"
5944         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5945       else
5946         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5947         # Warning - without using the other run time loading flags,
5948         # -berok will link without error, but may produce a broken library.
5949         allow_undefined_flag='${wl}-berok'
5950         # This is a bit strange, but is similar to how AIX traditionally builds
5951         # it's shared libraries.
5952         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5953       fi
5954     fi
5955     ;;
5956
5957   amigaos*)
5958     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)'
5959     hardcode_libdir_flag_spec='-L$libdir'
5960     hardcode_minus_L=yes
5961     # see comment about different semantics on the GNU ld section
5962     ld_shlibs=no
5963     ;;
5964
5965   cygwin* | mingw* | pw32*)
5966     # When not using gcc, we currently assume that we are using
5967     # Microsoft Visual C++.
5968     # hardcode_libdir_flag_spec is actually meaningless, as there is
5969     # no search path for DLLs.
5970     hardcode_libdir_flag_spec=' '
5971     allow_undefined_flag=unsupported
5972     # Tell ltmain to make .lib files, not .a files.
5973     libext=lib
5974     # FIXME: Setting linknames here is a bad hack.
5975     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5976     # The linker will automatically build a .lib file if we build a DLL.
5977     old_archive_from_new_cmds='true'
5978     # FIXME: Should let the user specify the lib program.
5979     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5980     fix_srcfile_path='`cygpath -w "$srcfile"`'
5981     ;;
5982
5983   darwin* | rhapsody*)
5984     case "$host_os" in
5985     rhapsody* | darwin1.[012])
5986       allow_undefined_flag='-undefined suppress'
5987       ;;
5988     *) # Darwin 1.3 on
5989       allow_undefined_flag='-flat_namespace -undefined suppress'
5990       ;;
5991     esac
5992     # FIXME: Relying on posixy $() will cause problems for
5993     #        cross-compilation, but unfortunately the echo tests do not
5994     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5995     #        `"' quotes if we put them in here... so don't!
5996     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5997     # We need to add '_' to the symbols in $export_symbols first
5998     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5999     hardcode_direct=yes
6000     hardcode_shlibpath_var=no
6001     whole_archive_flag_spec='-all_load $convenience'
6002     ;;
6003
6004   freebsd1*)
6005     ld_shlibs=no
6006     ;;
6007
6008   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6009   # support.  Future versions do this automatically, but an explicit c++rt0.o
6010   # does not break anything, and helps significantly (at the cost of a little
6011   # extra space).
6012   freebsd2.2*)
6013     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6014     hardcode_libdir_flag_spec='-R$libdir'
6015     hardcode_direct=yes
6016     hardcode_shlibpath_var=no
6017     ;;
6018
6019   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6020   freebsd2*)
6021     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6022     hardcode_direct=yes
6023     hardcode_minus_L=yes
6024     hardcode_shlibpath_var=no
6025     ;;
6026
6027   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6028   freebsd*)
6029     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6030     hardcode_libdir_flag_spec='-R$libdir'
6031     hardcode_direct=yes
6032     hardcode_shlibpath_var=no
6033     ;;
6034
6035   hpux9* | hpux10* | hpux11*)
6036     case $host_os in
6037     hpux9*) 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' ;;
6038     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6039     esac
6040     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6041     hardcode_libdir_separator=:
6042     hardcode_direct=yes
6043     hardcode_minus_L=yes # Not in the search PATH, but as the default
6044                          # location of the library.
6045     export_dynamic_flag_spec='${wl}-E'
6046     ;;
6047
6048   irix5* | irix6* | nonstopux*)
6049     if test "$GCC" = yes; then
6050       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'
6051       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6052     else
6053       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'
6054       hardcode_libdir_flag_spec='-rpath $libdir'
6055     fi
6056     hardcode_libdir_separator=:
6057     link_all_deplibs=yes
6058     ;;
6059
6060   netbsd*)
6061     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6062       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6063     else
6064       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6065     fi
6066     hardcode_libdir_flag_spec='-R$libdir'
6067     hardcode_direct=yes
6068     hardcode_shlibpath_var=no
6069     ;;
6070
6071   newsos6)
6072     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6073     hardcode_direct=yes
6074     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6075     hardcode_libdir_separator=:
6076     hardcode_shlibpath_var=no
6077     ;;
6078
6079   openbsd*)
6080     hardcode_direct=yes
6081     hardcode_shlibpath_var=no
6082     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6083       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6084       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6085       export_dynamic_flag_spec='${wl}-E'
6086     else
6087       case "$host_os" in
6088       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6089         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6090         hardcode_libdir_flag_spec='-R$libdir'
6091         ;;
6092       *)
6093         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6094         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6095         ;;
6096       esac
6097     fi
6098     ;;
6099
6100   os2*)
6101     hardcode_libdir_flag_spec='-L$libdir'
6102     hardcode_minus_L=yes
6103     allow_undefined_flag=unsupported
6104     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'
6105     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6106     ;;
6107
6108   osf3*)
6109     if test "$GCC" = yes; then
6110       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6111       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'
6112     else
6113       allow_undefined_flag=' -expect_unresolved \*'
6114       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'
6115     fi
6116     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6117     hardcode_libdir_separator=:
6118     ;;
6119
6120   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6121     if test "$GCC" = yes; then
6122       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6123       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'
6124       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6125     else
6126       allow_undefined_flag=' -expect_unresolved \*'
6127       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'
6128       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6129       $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'
6130
6131       #Both c and cxx compiler support -rpath directly
6132       hardcode_libdir_flag_spec='-rpath $libdir'
6133     fi
6134     hardcode_libdir_separator=:
6135     ;;
6136
6137   sco3.2v5*)
6138     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6139     hardcode_shlibpath_var=no
6140     runpath_var=LD_RUN_PATH
6141     hardcode_runpath_var=yes
6142     export_dynamic_flag_spec='${wl}-Bexport'
6143     ;;
6144
6145   solaris*)
6146     # gcc --version < 3.0 without binutils cannot create self contained
6147     # shared libraries reliably, requiring libgcc.a to resolve some of
6148     # the object symbols generated in some cases.  Libraries that use
6149     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6150     # a copy of libgcc.a into every shared library to guarantee resolving
6151     # such symbols causes other problems:  According to Tim Van Holder
6152     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6153     # (to the application) exception stack for one thing.
6154     no_undefined_flag=' -z defs'
6155     if test "$GCC" = yes; then
6156       case `$CC --version 2>/dev/null` in
6157       [12].*)
6158         cat <<EOF 1>&2
6159
6160 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6161 *** create self contained shared libraries on Solaris systems, without
6162 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6163 *** -no-undefined support, which will at least allow you to build shared
6164 *** libraries.  However, you may find that when you link such libraries
6165 *** into an application without using GCC, you have to manually add
6166 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6167 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6168 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6169
6170 EOF
6171         no_undefined_flag=
6172         ;;
6173       esac
6174     fi
6175     # $CC -shared without GNU ld will not create a library from C++
6176     # object files and a static libstdc++, better avoid it by now
6177     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6178     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6179                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6180     hardcode_libdir_flag_spec='-R$libdir'
6181     hardcode_shlibpath_var=no
6182     case $host_os in
6183     solaris2.[0-5] | solaris2.[0-5].*) ;;
6184     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6185       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6186     esac
6187     link_all_deplibs=yes
6188     ;;
6189
6190   sunos4*)
6191     if test "x$host_vendor" = xsequent; then
6192       # Use $CC to link under sequent, because it throws in some extra .o
6193       # files that make .init and .fini sections work.
6194       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6195     else
6196       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6197     fi
6198     hardcode_libdir_flag_spec='-L$libdir'
6199     hardcode_direct=yes
6200     hardcode_minus_L=yes
6201     hardcode_shlibpath_var=no
6202     ;;
6203
6204   sysv4)
6205     case $host_vendor in
6206       sni)
6207         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6208         hardcode_direct=yes # is this really true???
6209         ;;
6210       siemens)
6211         ## LD is ld it makes a PLAMLIB
6212         ## CC just makes a GrossModule.
6213         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6214         reload_cmds='$CC -r -o $output$reload_objs'
6215         hardcode_direct=no
6216         ;;
6217       motorola)
6218         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6219         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6220         ;;
6221     esac
6222     runpath_var='LD_RUN_PATH'
6223     hardcode_shlibpath_var=no
6224     ;;
6225
6226   sysv4.3*)
6227     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6228     hardcode_shlibpath_var=no
6229     export_dynamic_flag_spec='-Bexport'
6230     ;;
6231
6232   sysv5*)
6233     no_undefined_flag=' -z text'
6234     # $CC -shared without GNU ld will not create a library from C++
6235     # object files and a static libstdc++, better avoid it by now
6236     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6237     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6238                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6239     hardcode_libdir_flag_spec=
6240     hardcode_shlibpath_var=no
6241     runpath_var='LD_RUN_PATH'
6242     ;;
6243
6244   uts4*)
6245     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6246     hardcode_libdir_flag_spec='-L$libdir'
6247     hardcode_shlibpath_var=no
6248     ;;
6249
6250   dgux*)
6251     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6252     hardcode_libdir_flag_spec='-L$libdir'
6253     hardcode_shlibpath_var=no
6254     ;;
6255
6256   sysv4*MP*)
6257     if test -d /usr/nec; then
6258       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6259       hardcode_shlibpath_var=no
6260       runpath_var=LD_RUN_PATH
6261       hardcode_runpath_var=yes
6262       ld_shlibs=yes
6263     fi
6264     ;;
6265
6266   sysv4.2uw2*)
6267     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6268     hardcode_direct=yes
6269     hardcode_minus_L=no
6270     hardcode_shlibpath_var=no
6271     hardcode_runpath_var=yes
6272     runpath_var=LD_RUN_PATH
6273     ;;
6274
6275   sysv5uw7* | unixware7*)
6276     no_undefined_flag='${wl}-z ${wl}text'
6277     if test "$GCC" = yes; then
6278       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6279     else
6280       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6281     fi
6282     runpath_var='LD_RUN_PATH'
6283     hardcode_shlibpath_var=no
6284     ;;
6285
6286   *)
6287     ld_shlibs=no
6288     ;;
6289   esac
6290 fi
6291 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6292 echo "${ECHO_T}$ld_shlibs" >&6
6293 test "$ld_shlibs" = no && can_build_shared=no
6294
6295 # Check hardcoding attributes.
6296 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6297 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6298 hardcode_action=
6299 if test -n "$hardcode_libdir_flag_spec" || \
6300    test -n "$runpath_var"; then
6301
6302   # We can hardcode non-existant directories.
6303   if test "$hardcode_direct" != no &&
6304      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6305      # have to relink, otherwise we might link with an installed library
6306      # when we should be linking with a yet-to-be-installed one
6307      ## test "$hardcode_shlibpath_var" != no &&
6308      test "$hardcode_minus_L" != no; then
6309     # Linking always hardcodes the temporary library directory.
6310     hardcode_action=relink
6311   else
6312     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6313     hardcode_action=immediate
6314   fi
6315 else
6316   # We cannot hardcode anything, or else we can only hardcode existing
6317   # directories.
6318   hardcode_action=unsupported
6319 fi
6320 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6321 echo "${ECHO_T}$hardcode_action" >&6
6322
6323 striplib=
6324 old_striplib=
6325 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6326 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6327 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6328   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6329   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6330   echo "$as_me:$LINENO: result: yes" >&5
6331 echo "${ECHO_T}yes" >&6
6332 else
6333   echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6
6335 fi
6336
6337 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6338 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6339
6340 # PORTME Fill in your ld.so characteristics
6341 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6342 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6343 library_names_spec=
6344 libname_spec='lib$name'
6345 soname_spec=
6346 postinstall_cmds=
6347 postuninstall_cmds=
6348 finish_cmds=
6349 finish_eval=
6350 shlibpath_var=
6351 shlibpath_overrides_runpath=unknown
6352 version_type=none
6353 dynamic_linker="$host_os ld.so"
6354 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6355 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6356
6357 case $host_os in
6358 aix3*)
6359   version_type=linux
6360   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6361   shlibpath_var=LIBPATH
6362
6363   # AIX has no versioning support, so we append a major version to the name.
6364   soname_spec='${libname}${release}.so$major'
6365   ;;
6366
6367 aix4* | aix5*)
6368   version_type=linux
6369   need_lib_prefix=no
6370   need_version=no
6371   hardcode_into_libs=yes
6372   if test "$host_cpu" = ia64; then
6373     # AIX 5 supports IA64
6374     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6375     shlibpath_var=LD_LIBRARY_PATH
6376   else
6377     # With GCC up to 2.95.x, collect2 would create an import file
6378     # for dependence libraries.  The import file would start with
6379     # the line `#! .'.  This would cause the generated library to
6380     # depend on `.', always an invalid library.  This was fixed in
6381     # development snapshots of GCC prior to 3.0.
6382     case $host_os in
6383       aix4 | aix4.[01] | aix4.[01].*)
6384         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6385              echo ' yes '
6386              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6387           :
6388         else
6389           can_build_shared=no
6390         fi
6391         ;;
6392     esac
6393     # AIX (on Power*) has no versioning support, so currently we can
6394     # not hardcode correct soname into executable. Probably we can
6395     # add versioning support to collect2, so additional links can
6396     # be useful in future.
6397     if test "$aix_use_runtimelinking" = yes; then
6398       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6399       # instead of lib<name>.a to let people know that these are not
6400       # typical AIX shared libraries.
6401       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6402     else
6403       # We preserve .a as extension for shared libraries through AIX4.2
6404       # and later when we are not doing run time linking.
6405       library_names_spec='${libname}${release}.a $libname.a'
6406       soname_spec='${libname}${release}.so$major'
6407     fi
6408     shlibpath_var=LIBPATH
6409   fi
6410   hardcode_into_libs=yes
6411   ;;
6412
6413 amigaos*)
6414   library_names_spec='$libname.ixlibrary $libname.a'
6415   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6416   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'
6417   ;;
6418
6419 beos*)
6420   library_names_spec='${libname}.so'
6421   dynamic_linker="$host_os ld.so"
6422   shlibpath_var=LIBRARY_PATH
6423   ;;
6424
6425 bsdi4*)
6426   version_type=linux
6427   need_version=no
6428   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6429   soname_spec='${libname}${release}.so$major'
6430   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6431   shlibpath_var=LD_LIBRARY_PATH
6432   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6433   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6434   export_dynamic_flag_spec=-rdynamic
6435   # the default ld.so.conf also contains /usr/contrib/lib and
6436   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6437   # libtool to hard-code these into programs
6438   ;;
6439
6440 cygwin* | mingw* | pw32*)
6441   version_type=windows
6442   need_version=no
6443   need_lib_prefix=no
6444   case $GCC,$host_os in
6445   yes,cygwin*)
6446     library_names_spec='$libname.dll.a'
6447     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6448     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6449       dldir=$destdir/`dirname \$dlpath`~
6450       test -d \$dldir || mkdir -p \$dldir~
6451       $install_prog .libs/$dlname \$dldir/$dlname'
6452     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6453       dlpath=$dir/\$dldll~
6454        $rm \$dlpath'
6455     ;;
6456   yes,mingw*)
6457     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6458     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6459     ;;
6460   yes,pw32*)
6461     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6462     ;;
6463   *)
6464     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6465     ;;
6466   esac
6467   dynamic_linker='Win32 ld.exe'
6468   # FIXME: first we should search . and the directory the executable is in
6469   shlibpath_var=PATH
6470   ;;
6471
6472 darwin* | rhapsody*)
6473   dynamic_linker="$host_os dyld"
6474   version_type=darwin
6475   need_lib_prefix=no
6476   need_version=no
6477   # FIXME: Relying on posixy $() will cause problems for
6478   #        cross-compilation, but unfortunately the echo tests do not
6479   #        yet detect zsh echo's removal of \ escapes.
6480   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6481   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6482   shlibpath_overrides_runpath=yes
6483   shlibpath_var=DYLD_LIBRARY_PATH
6484   ;;
6485
6486 freebsd1*)
6487   dynamic_linker=no
6488   ;;
6489
6490 freebsd*)
6491   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6492   version_type=freebsd-$objformat
6493   case $version_type in
6494     freebsd-elf*)
6495       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6496       need_version=no
6497       need_lib_prefix=no
6498       ;;
6499     freebsd-*)
6500       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6501       need_version=yes
6502       ;;
6503   esac
6504   shlibpath_var=LD_LIBRARY_PATH
6505   case $host_os in
6506   freebsd2*)
6507     shlibpath_overrides_runpath=yes
6508     ;;
6509   *)
6510     shlibpath_overrides_runpath=no
6511     hardcode_into_libs=yes
6512     ;;
6513   esac
6514   ;;
6515
6516 gnu*)
6517   version_type=linux
6518   need_lib_prefix=no
6519   need_version=no
6520   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6521   soname_spec='${libname}${release}.so$major'
6522   shlibpath_var=LD_LIBRARY_PATH
6523   hardcode_into_libs=yes
6524   ;;
6525
6526 hpux9* | hpux10* | hpux11*)
6527   # Give a soname corresponding to the major version so that dld.sl refuses to
6528   # link against other versions.
6529   dynamic_linker="$host_os dld.sl"
6530   version_type=sunos
6531   need_lib_prefix=no
6532   need_version=no
6533   shlibpath_var=SHLIB_PATH
6534   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6535   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6536   soname_spec='${libname}${release}.sl$major'
6537   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6538   postinstall_cmds='chmod 555 $lib'
6539   ;;
6540
6541 irix5* | irix6* | nonstopux*)
6542   case $host_os in
6543     nonstopux*) version_type=nonstopux ;;
6544     *)          version_type=irix ;;
6545   esac
6546   need_lib_prefix=no
6547   need_version=no
6548   soname_spec='${libname}${release}.so$major'
6549   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6550   case $host_os in
6551   irix5* | nonstopux*)
6552     libsuff= shlibsuff=
6553     ;;
6554   *)
6555     case $LD in # libtool.m4 will add one of these switches to LD
6556     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6557     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6558     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6559     *) libsuff= shlibsuff= libmagic=never-match;;
6560     esac
6561     ;;
6562   esac
6563   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6564   shlibpath_overrides_runpath=no
6565   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6566   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6567   ;;
6568
6569 # No shared lib support for Linux oldld, aout, or coff.
6570 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6571   dynamic_linker=no
6572   ;;
6573
6574 # This must be Linux ELF.
6575 linux-gnu*)
6576   version_type=linux
6577   need_lib_prefix=no
6578   need_version=no
6579   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6580   soname_spec='${libname}${release}.so$major'
6581   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6582   shlibpath_var=LD_LIBRARY_PATH
6583   shlibpath_overrides_runpath=no
6584   # This implies no fast_install, which is unacceptable.
6585   # Some rework will be needed to allow for fast_install
6586   # before this can be enabled.
6587   hardcode_into_libs=yes
6588
6589   case $host_cpu:$lt_cv_cc_64bit_output in
6590   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6591     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6592     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6593     ;;
6594   esac
6595
6596   # We used to test for /lib/ld.so.1 and disable shared libraries on
6597   # powerpc, because MkLinux only supported shared libraries with the
6598   # GNU dynamic linker.  Since this was broken with cross compilers,
6599   # most powerpc-linux boxes support dynamic linking these days and
6600   # people can always --disable-shared, the test was removed, and we
6601   # assume the GNU/Linux dynamic linker is in use.
6602   dynamic_linker='GNU/Linux ld.so'
6603
6604   # Find out which ABI we are using (multilib Linux x86_64 hack).
6605   libsuff=
6606   case "$host_cpu" in
6607   x86_64*)
6608     echo '#line 6608 "configure"' > conftest.$ac_ext
6609     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610   (eval $ac_compile) 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); }; then
6614       case `/usr/bin/file conftest.$ac_objext` in
6615       *64-bit*)
6616         libsuff=64
6617         ;;
6618       esac
6619     fi
6620     rm -rf conftest*
6621     ;;
6622   *)
6623     ;;
6624   esac
6625   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6626   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6627   ;;
6628
6629 netbsd*)
6630   version_type=sunos
6631   need_lib_prefix=no
6632   need_version=no
6633   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6634     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6635     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6636     dynamic_linker='NetBSD (a.out) ld.so'
6637   else
6638     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6639     soname_spec='${libname}${release}.so$major'
6640     dynamic_linker='NetBSD ld.elf_so'
6641   fi
6642   shlibpath_var=LD_LIBRARY_PATH
6643   shlibpath_overrides_runpath=yes
6644   hardcode_into_libs=yes
6645   ;;
6646
6647 newsos6)
6648   version_type=linux
6649   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6650   shlibpath_var=LD_LIBRARY_PATH
6651   shlibpath_overrides_runpath=yes
6652   ;;
6653
6654 openbsd*)
6655   version_type=sunos
6656   need_lib_prefix=no
6657   need_version=no
6658   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6659     case "$host_os" in
6660     openbsd2.[89] | openbsd2.[89].*)
6661       shlibpath_overrides_runpath=no
6662       ;;
6663     *)
6664       shlibpath_overrides_runpath=yes
6665       ;;
6666     esac
6667   else
6668     shlibpath_overrides_runpath=yes
6669   fi
6670   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6671   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6672   shlibpath_var=LD_LIBRARY_PATH
6673   ;;
6674
6675 os2*)
6676   libname_spec='$name'
6677   need_lib_prefix=no
6678   library_names_spec='$libname.dll $libname.a'
6679   dynamic_linker='OS/2 ld.exe'
6680   shlibpath_var=LIBPATH
6681   ;;
6682
6683 osf3* | osf4* | osf5*)
6684   version_type=osf
6685   need_version=no
6686   soname_spec='${libname}${release}.so$major'
6687   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6688   shlibpath_var=LD_LIBRARY_PATH
6689   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6690   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6691   hardcode_into_libs=yes
6692   ;;
6693
6694 sco3.2v5*)
6695   version_type=osf
6696   soname_spec='${libname}${release}.so$major'
6697   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6698   shlibpath_var=LD_LIBRARY_PATH
6699   ;;
6700
6701 solaris*)
6702   version_type=linux
6703   need_lib_prefix=no
6704   need_version=no
6705   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6706   soname_spec='${libname}${release}.so$major'
6707   shlibpath_var=LD_LIBRARY_PATH
6708   shlibpath_overrides_runpath=yes
6709   hardcode_into_libs=yes
6710   # ldd complains unless libraries are executable
6711   postinstall_cmds='chmod +x $lib'
6712   ;;
6713
6714 sunos4*)
6715   version_type=sunos
6716   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6717   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6718   shlibpath_var=LD_LIBRARY_PATH
6719   shlibpath_overrides_runpath=yes
6720   if test "$with_gnu_ld" = yes; then
6721     need_lib_prefix=no
6722   fi
6723   need_version=yes
6724   ;;
6725
6726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6727   version_type=linux
6728   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6729   soname_spec='${libname}${release}.so$major'
6730   shlibpath_var=LD_LIBRARY_PATH
6731   case $host_vendor in
6732     sni)
6733       shlibpath_overrides_runpath=no
6734       need_lib_prefix=no
6735       export_dynamic_flag_spec='${wl}-Blargedynsym'
6736       runpath_var=LD_RUN_PATH
6737       ;;
6738     siemens)
6739       need_lib_prefix=no
6740       ;;
6741     motorola)
6742       need_lib_prefix=no
6743       need_version=no
6744       shlibpath_overrides_runpath=no
6745       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6746       ;;
6747   esac
6748   ;;
6749
6750 uts4*)
6751   version_type=linux
6752   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6753   soname_spec='${libname}${release}.so$major'
6754   shlibpath_var=LD_LIBRARY_PATH
6755   ;;
6756
6757 dgux*)
6758   version_type=linux
6759   need_lib_prefix=no
6760   need_version=no
6761   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6762   soname_spec='${libname}${release}.so$major'
6763   shlibpath_var=LD_LIBRARY_PATH
6764   ;;
6765
6766 sysv4*MP*)
6767   if test -d /usr/nec ;then
6768     version_type=linux
6769     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6770     soname_spec='$libname.so.$major'
6771     shlibpath_var=LD_LIBRARY_PATH
6772   fi
6773   ;;
6774
6775 *)
6776   dynamic_linker=no
6777   ;;
6778 esac
6779 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6780 echo "${ECHO_T}$dynamic_linker" >&6
6781 test "$dynamic_linker" = no && can_build_shared=no
6782
6783 # Report the final consequences.
6784 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6785 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6786 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6787 echo "${ECHO_T}$can_build_shared" >&6
6788
6789 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6790 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6791 test "$can_build_shared" = "no" && enable_shared=no
6792
6793 # On AIX, shared libraries and static libraries use the same namespace, and
6794 # are all built from PIC.
6795 case "$host_os" in
6796 aix3*)
6797   test "$enable_shared" = yes && enable_static=no
6798   if test -n "$RANLIB"; then
6799     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6800     postinstall_cmds='$RANLIB $lib'
6801   fi
6802   ;;
6803
6804 aix4*)
6805   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6806     test "$enable_shared" = yes && enable_static=no
6807   fi
6808   ;;
6809 esac
6810 echo "$as_me:$LINENO: result: $enable_shared" >&5
6811 echo "${ECHO_T}$enable_shared" >&6
6812
6813 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6814 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6815 # Make sure either enable_shared or enable_static is yes.
6816 test "$enable_shared" = yes || enable_static=yes
6817 echo "$as_me:$LINENO: result: $enable_static" >&5
6818 echo "${ECHO_T}$enable_static" >&6
6819
6820 if test "$hardcode_action" = relink; then
6821   # Fast installation is not supported
6822   enable_fast_install=no
6823 elif test "$shlibpath_overrides_runpath" = yes ||
6824      test "$enable_shared" = no; then
6825   # Fast installation is not necessary
6826   enable_fast_install=needless
6827 fi
6828
6829 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6830 if test "$GCC" = yes; then
6831   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6832 fi
6833
6834 if test "x$enable_dlopen" != xyes; then
6835   enable_dlopen=unknown
6836   enable_dlopen_self=unknown
6837   enable_dlopen_self_static=unknown
6838 else
6839   lt_cv_dlopen=no
6840   lt_cv_dlopen_libs=
6841
6842   case $host_os in
6843   beos*)
6844     lt_cv_dlopen="load_add_on"
6845     lt_cv_dlopen_libs=
6846     lt_cv_dlopen_self=yes
6847     ;;
6848
6849   cygwin* | mingw* | pw32*)
6850     lt_cv_dlopen="LoadLibrary"
6851     lt_cv_dlopen_libs=
6852    ;;
6853
6854   *)
6855     echo "$as_me:$LINENO: checking for shl_load" >&5
6856 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6857 if test "${ac_cv_func_shl_load+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h.  */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h.  */
6866 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6868 #define shl_load innocuous_shl_load
6869
6870 /* System header to define __stub macros and hopefully few prototypes,
6871     which can conflict with char shl_load (); below.
6872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873     <limits.h> exists even on freestanding compilers.  */
6874
6875 #ifdef __STDC__
6876 # include <limits.h>
6877 #else
6878 # include <assert.h>
6879 #endif
6880
6881 #undef shl_load
6882
6883 /* Override any gcc2 internal prototype to avoid an error.  */
6884 #ifdef __cplusplus
6885 extern "C"
6886 {
6887 #endif
6888 /* We use char because int might match the return type of a gcc2
6889    builtin and then its argument prototype would still apply.  */
6890 char shl_load ();
6891 /* The GNU C library defines this for functions which it implements
6892     to always fail with ENOSYS.  Some functions are actually named
6893     something starting with __ and the normal name is an alias.  */
6894 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6895 choke me
6896 #else
6897 char (*f) () = shl_load;
6898 #endif
6899 #ifdef __cplusplus
6900 }
6901 #endif
6902
6903 int
6904 main ()
6905 {
6906 return f != shl_load;
6907   ;
6908   return 0;
6909 }
6910 _ACEOF
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913   (eval $ac_link) 2>conftest.er1
6914   ac_status=$?
6915   grep -v '^ *+' conftest.er1 >conftest.err
6916   rm -f conftest.er1
6917   cat conftest.err >&5
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } &&
6920          { ac_try='test -z "$ac_c_werror_flag"
6921                          || test ! -s conftest.err'
6922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923   (eval $ac_try) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); }; } &&
6927          { ac_try='test -s conftest$ac_exeext'
6928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929   (eval $ac_try) 2>&5
6930   ac_status=$?
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); }; }; then
6933   ac_cv_func_shl_load=yes
6934 else
6935   echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 ac_cv_func_shl_load=no
6939 fi
6940 rm -f conftest.err conftest.$ac_objext \
6941       conftest$ac_exeext conftest.$ac_ext
6942 fi
6943 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6944 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6945 if test $ac_cv_func_shl_load = yes; then
6946   lt_cv_dlopen="shl_load"
6947 else
6948   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6949 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6950 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   ac_check_lib_save_LIBS=$LIBS
6954 LIBS="-ldld  $LIBS"
6955 cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h.  */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h.  */
6961
6962 /* Override any gcc2 internal prototype to avoid an error.  */
6963 #ifdef __cplusplus
6964 extern "C"
6965 #endif
6966 /* We use char because int might match the return type of a gcc2
6967    builtin and then its argument prototype would still apply.  */
6968 char shl_load ();
6969 int
6970 main ()
6971 {
6972 shl_load ();
6973   ;
6974   return 0;
6975 }
6976 _ACEOF
6977 rm -f conftest.$ac_objext conftest$ac_exeext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979   (eval $ac_link) 2>conftest.er1
6980   ac_status=$?
6981   grep -v '^ *+' conftest.er1 >conftest.err
6982   rm -f conftest.er1
6983   cat conftest.err >&5
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } &&
6986          { ac_try='test -z "$ac_c_werror_flag"
6987                          || test ! -s conftest.err'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; } &&
6993          { ac_try='test -s conftest$ac_exeext'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; }; then
6999   ac_cv_lib_dld_shl_load=yes
7000 else
7001   echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 ac_cv_lib_dld_shl_load=no
7005 fi
7006 rm -f conftest.err conftest.$ac_objext \
7007       conftest$ac_exeext conftest.$ac_ext
7008 LIBS=$ac_check_lib_save_LIBS
7009 fi
7010 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7011 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7012 if test $ac_cv_lib_dld_shl_load = yes; then
7013   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7014 else
7015   echo "$as_me:$LINENO: checking for dlopen" >&5
7016 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7017 if test "${ac_cv_func_dlopen+set}" = set; then
7018   echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020   cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7028 #define dlopen innocuous_dlopen
7029
7030 /* System header to define __stub macros and hopefully few prototypes,
7031     which can conflict with char dlopen (); below.
7032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7033     <limits.h> exists even on freestanding compilers.  */
7034
7035 #ifdef __STDC__
7036 # include <limits.h>
7037 #else
7038 # include <assert.h>
7039 #endif
7040
7041 #undef dlopen
7042
7043 /* Override any gcc2 internal prototype to avoid an error.  */
7044 #ifdef __cplusplus
7045 extern "C"
7046 {
7047 #endif
7048 /* We use char because int might match the return type of a gcc2
7049    builtin and then its argument prototype would still apply.  */
7050 char dlopen ();
7051 /* The GNU C library defines this for functions which it implements
7052     to always fail with ENOSYS.  Some functions are actually named
7053     something starting with __ and the normal name is an alias.  */
7054 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7055 choke me
7056 #else
7057 char (*f) () = dlopen;
7058 #endif
7059 #ifdef __cplusplus
7060 }
7061 #endif
7062
7063 int
7064 main ()
7065 {
7066 return f != dlopen;
7067   ;
7068   return 0;
7069 }
7070 _ACEOF
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073   (eval $ac_link) 2>conftest.er1
7074   ac_status=$?
7075   grep -v '^ *+' conftest.er1 >conftest.err
7076   rm -f conftest.er1
7077   cat conftest.err >&5
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); } &&
7080          { ac_try='test -z "$ac_c_werror_flag"
7081                          || test ! -s conftest.err'
7082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083   (eval $ac_try) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; } &&
7087          { ac_try='test -s conftest$ac_exeext'
7088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089   (eval $ac_try) 2>&5
7090   ac_status=$?
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); }; }; then
7093   ac_cv_func_dlopen=yes
7094 else
7095   echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098 ac_cv_func_dlopen=no
7099 fi
7100 rm -f conftest.err conftest.$ac_objext \
7101       conftest$ac_exeext conftest.$ac_ext
7102 fi
7103 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7104 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7105 if test $ac_cv_func_dlopen = yes; then
7106   lt_cv_dlopen="dlopen"
7107 else
7108   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7109 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7110 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   ac_check_lib_save_LIBS=$LIBS
7114 LIBS="-ldl  $LIBS"
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h.  */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h.  */
7121
7122 /* Override any gcc2 internal prototype to avoid an error.  */
7123 #ifdef __cplusplus
7124 extern "C"
7125 #endif
7126 /* We use char because int might match the return type of a gcc2
7127    builtin and then its argument prototype would still apply.  */
7128 char dlopen ();
7129 int
7130 main ()
7131 {
7132 dlopen ();
7133   ;
7134   return 0;
7135 }
7136 _ACEOF
7137 rm -f conftest.$ac_objext conftest$ac_exeext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7139   (eval $ac_link) 2>conftest.er1
7140   ac_status=$?
7141   grep -v '^ *+' conftest.er1 >conftest.err
7142   rm -f conftest.er1
7143   cat conftest.err >&5
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); } &&
7146          { ac_try='test -z "$ac_c_werror_flag"
7147                          || test ! -s conftest.err'
7148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149   (eval $ac_try) 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); }; } &&
7153          { ac_try='test -s conftest$ac_exeext'
7154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155   (eval $ac_try) 2>&5
7156   ac_status=$?
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); }; }; then
7159   ac_cv_lib_dl_dlopen=yes
7160 else
7161   echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7163
7164 ac_cv_lib_dl_dlopen=no
7165 fi
7166 rm -f conftest.err conftest.$ac_objext \
7167       conftest$ac_exeext conftest.$ac_ext
7168 LIBS=$ac_check_lib_save_LIBS
7169 fi
7170 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7171 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7172 if test $ac_cv_lib_dl_dlopen = yes; then
7173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7174 else
7175   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7176 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7177 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   ac_check_lib_save_LIBS=$LIBS
7181 LIBS="-lsvld  $LIBS"
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h.  */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h.  */
7188
7189 /* Override any gcc2 internal prototype to avoid an error.  */
7190 #ifdef __cplusplus
7191 extern "C"
7192 #endif
7193 /* We use char because int might match the return type of a gcc2
7194    builtin and then its argument prototype would still apply.  */
7195 char dlopen ();
7196 int
7197 main ()
7198 {
7199 dlopen ();
7200   ;
7201   return 0;
7202 }
7203 _ACEOF
7204 rm -f conftest.$ac_objext conftest$ac_exeext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7206   (eval $ac_link) 2>conftest.er1
7207   ac_status=$?
7208   grep -v '^ *+' conftest.er1 >conftest.err
7209   rm -f conftest.er1
7210   cat conftest.err >&5
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); } &&
7213          { ac_try='test -z "$ac_c_werror_flag"
7214                          || test ! -s conftest.err'
7215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216   (eval $ac_try) 2>&5
7217   ac_status=$?
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); }; } &&
7220          { ac_try='test -s conftest$ac_exeext'
7221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222   (eval $ac_try) 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }; }; then
7226   ac_cv_lib_svld_dlopen=yes
7227 else
7228   echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7230
7231 ac_cv_lib_svld_dlopen=no
7232 fi
7233 rm -f conftest.err conftest.$ac_objext \
7234       conftest$ac_exeext conftest.$ac_ext
7235 LIBS=$ac_check_lib_save_LIBS
7236 fi
7237 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7238 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7239 if test $ac_cv_lib_svld_dlopen = yes; then
7240   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7241 else
7242   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7243 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7244 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7245   echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247   ac_check_lib_save_LIBS=$LIBS
7248 LIBS="-ldld  $LIBS"
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h.  */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h.  */
7255
7256 /* Override any gcc2 internal prototype to avoid an error.  */
7257 #ifdef __cplusplus
7258 extern "C"
7259 #endif
7260 /* We use char because int might match the return type of a gcc2
7261    builtin and then its argument prototype would still apply.  */
7262 char dld_link ();
7263 int
7264 main ()
7265 {
7266 dld_link ();
7267   ;
7268   return 0;
7269 }
7270 _ACEOF
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273   (eval $ac_link) 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } &&
7280          { ac_try='test -z "$ac_c_werror_flag"
7281                          || test ! -s conftest.err'
7282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283   (eval $ac_try) 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; } &&
7287          { ac_try='test -s conftest$ac_exeext'
7288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289   (eval $ac_try) 2>&5
7290   ac_status=$?
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); }; }; then
7293   ac_cv_lib_dld_dld_link=yes
7294 else
7295   echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7297
7298 ac_cv_lib_dld_dld_link=no
7299 fi
7300 rm -f conftest.err conftest.$ac_objext \
7301       conftest$ac_exeext conftest.$ac_ext
7302 LIBS=$ac_check_lib_save_LIBS
7303 fi
7304 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7305 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7306 if test $ac_cv_lib_dld_dld_link = yes; then
7307   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7308 fi
7309
7310
7311 fi
7312
7313
7314 fi
7315
7316
7317 fi
7318
7319
7320 fi
7321
7322
7323 fi
7324
7325     ;;
7326   esac
7327
7328   if test "x$lt_cv_dlopen" != xno; then
7329     enable_dlopen=yes
7330   else
7331     enable_dlopen=no
7332   fi
7333
7334   case $lt_cv_dlopen in
7335   dlopen)
7336     save_CPPFLAGS="$CPPFLAGS"
7337         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7338
7339     save_LDFLAGS="$LDFLAGS"
7340     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7341
7342     save_LIBS="$LIBS"
7343     LIBS="$lt_cv_dlopen_libs $LIBS"
7344
7345     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7346 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7347 if test "${lt_cv_dlopen_self+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350           if test "$cross_compiling" = yes; then :
7351   lt_cv_dlopen_self=cross
7352 else
7353     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7354   lt_status=$lt_dlunknown
7355   cat > conftest.$ac_ext <<EOF
7356 #line 7356 "configure"
7357 #include "confdefs.h"
7358
7359 #if HAVE_DLFCN_H
7360 #include <dlfcn.h>
7361 #endif
7362
7363 #include <stdio.h>
7364
7365 #ifdef RTLD_GLOBAL
7366 #  define LT_DLGLOBAL           RTLD_GLOBAL
7367 #else
7368 #  ifdef DL_GLOBAL
7369 #    define LT_DLGLOBAL         DL_GLOBAL
7370 #  else
7371 #    define LT_DLGLOBAL         0
7372 #  endif
7373 #endif
7374
7375 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7376    find out it does not work in some platform. */
7377 #ifndef LT_DLLAZY_OR_NOW
7378 #  ifdef RTLD_LAZY
7379 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7380 #  else
7381 #    ifdef DL_LAZY
7382 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7383 #    else
7384 #      ifdef RTLD_NOW
7385 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7386 #      else
7387 #        ifdef DL_NOW
7388 #          define LT_DLLAZY_OR_NOW      DL_NOW
7389 #        else
7390 #          define LT_DLLAZY_OR_NOW      0
7391 #        endif
7392 #      endif
7393 #    endif
7394 #  endif
7395 #endif
7396
7397 #ifdef __cplusplus
7398 extern "C" void exit (int);
7399 #endif
7400
7401 void fnord() { int i=42;}
7402 int main ()
7403 {
7404   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7405   int status = $lt_dlunknown;
7406
7407   if (self)
7408     {
7409       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7410       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7411       /* dlclose (self); */
7412     }
7413
7414     exit (status);
7415 }
7416 EOF
7417   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418   (eval $ac_link) 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7422     (./conftest; exit; ) 2>/dev/null
7423     lt_status=$?
7424     case x$lt_status in
7425       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7426       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7427       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7428     esac
7429   else :
7430     # compilation failed
7431     lt_cv_dlopen_self=no
7432   fi
7433 fi
7434 rm -fr conftest*
7435
7436
7437 fi
7438 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7439 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7440
7441     if test "x$lt_cv_dlopen_self" = xyes; then
7442       LDFLAGS="$LDFLAGS $link_static_flag"
7443       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7444 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7445 if test "${lt_cv_dlopen_self_static+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448           if test "$cross_compiling" = yes; then :
7449   lt_cv_dlopen_self_static=cross
7450 else
7451     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7452   lt_status=$lt_dlunknown
7453   cat > conftest.$ac_ext <<EOF
7454 #line 7454 "configure"
7455 #include "confdefs.h"
7456
7457 #if HAVE_DLFCN_H
7458 #include <dlfcn.h>
7459 #endif
7460
7461 #include <stdio.h>
7462
7463 #ifdef RTLD_GLOBAL
7464 #  define LT_DLGLOBAL           RTLD_GLOBAL
7465 #else
7466 #  ifdef DL_GLOBAL
7467 #    define LT_DLGLOBAL         DL_GLOBAL
7468 #  else
7469 #    define LT_DLGLOBAL         0
7470 #  endif
7471 #endif
7472
7473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7474    find out it does not work in some platform. */
7475 #ifndef LT_DLLAZY_OR_NOW
7476 #  ifdef RTLD_LAZY
7477 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7478 #  else
7479 #    ifdef DL_LAZY
7480 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7481 #    else
7482 #      ifdef RTLD_NOW
7483 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7484 #      else
7485 #        ifdef DL_NOW
7486 #          define LT_DLLAZY_OR_NOW      DL_NOW
7487 #        else
7488 #          define LT_DLLAZY_OR_NOW      0
7489 #        endif
7490 #      endif
7491 #    endif
7492 #  endif
7493 #endif
7494
7495 #ifdef __cplusplus
7496 extern "C" void exit (int);
7497 #endif
7498
7499 void fnord() { int i=42;}
7500 int main ()
7501 {
7502   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7503   int status = $lt_dlunknown;
7504
7505   if (self)
7506     {
7507       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7508       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7509       /* dlclose (self); */
7510     }
7511
7512     exit (status);
7513 }
7514 EOF
7515   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516   (eval $ac_link) 2>&5
7517   ac_status=$?
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7520     (./conftest; exit; ) 2>/dev/null
7521     lt_status=$?
7522     case x$lt_status in
7523       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7524       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7525       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7526     esac
7527   else :
7528     # compilation failed
7529     lt_cv_dlopen_self_static=no
7530   fi
7531 fi
7532 rm -fr conftest*
7533
7534
7535 fi
7536 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7537 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7538     fi
7539
7540     CPPFLAGS="$save_CPPFLAGS"
7541     LDFLAGS="$save_LDFLAGS"
7542     LIBS="$save_LIBS"
7543     ;;
7544   esac
7545
7546   case $lt_cv_dlopen_self in
7547   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7548   *) enable_dlopen_self=unknown ;;
7549   esac
7550
7551   case $lt_cv_dlopen_self_static in
7552   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7553   *) enable_dlopen_self_static=unknown ;;
7554   esac
7555 fi
7556
7557
7558 if test "$enable_shared" = yes && test "$GCC" = yes; then
7559   case $archive_cmds in
7560   *'~'*)
7561     # FIXME: we may have to deal with multi-command sequences.
7562     ;;
7563   '$CC '*)
7564     # Test whether the compiler implicitly links with -lc since on some
7565     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7566     # to ld, don't add -lc before -lgcc.
7567     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7568 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7569     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   $rm conftest*
7573     echo 'static int dummy;' > conftest.$ac_ext
7574
7575     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7576   (eval $ac_compile) 2>&5
7577   ac_status=$?
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); }; then
7580       soname=conftest
7581       lib=conftest
7582       libobjs=conftest.$ac_objext
7583       deplibs=
7584       wl=$lt_cv_prog_cc_wl
7585       compiler_flags=-v
7586       linker_flags=-v
7587       verstring=
7588       output_objdir=.
7589       libname=conftest
7590       save_allow_undefined_flag=$allow_undefined_flag
7591       allow_undefined_flag=
7592       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7593   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7594   ac_status=$?
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); }
7597       then
7598         lt_cv_archive_cmds_need_lc=no
7599       else
7600         lt_cv_archive_cmds_need_lc=yes
7601       fi
7602       allow_undefined_flag=$save_allow_undefined_flag
7603     else
7604       cat conftest.err 1>&5
7605     fi
7606 fi
7607
7608     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7609 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7610     ;;
7611   esac
7612 fi
7613 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7614
7615 # The second clause should only fire when bootstrapping the
7616 # libtool distribution, otherwise you forgot to ship ltmain.sh
7617 # with your package, and you will get complaints that there are
7618 # no rules to generate ltmain.sh.
7619 if test -f "$ltmain"; then
7620   :
7621 else
7622   # If there is no Makefile yet, we rely on a make rule to execute
7623   # `config.status --recheck' to rerun these tests and create the
7624   # libtool script then.
7625   test -f Makefile && make "$ltmain"
7626 fi
7627
7628 if test -f "$ltmain"; then
7629   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7630   $rm -f "${ofile}T"
7631
7632   echo creating $ofile
7633
7634   # Now quote all the things that may contain metacharacters while being
7635   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7636   # variables and quote the copies for generation of the libtool script.
7637   for var in echo old_CC old_CFLAGS SED \
7638     AR AR_FLAGS CC LD LN_S NM SHELL \
7639     reload_flag reload_cmds wl \
7640     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7641     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7642     library_names_spec soname_spec \
7643     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7644     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7645     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7646     old_striplib striplib file_magic_cmd export_symbols_cmds \
7647     deplibs_check_method allow_undefined_flag no_undefined_flag \
7648     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7649     global_symbol_to_c_name_address \
7650     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7651     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7652     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7653
7654     case $var in
7655     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7656     old_postinstall_cmds | old_postuninstall_cmds | \
7657     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7658     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7659     postinstall_cmds | postuninstall_cmds | \
7660     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7661       # Double-quote double-evaled strings.
7662       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7663       ;;
7664     *)
7665       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7666       ;;
7667     esac
7668   done
7669
7670   cat <<__EOF__ > "${ofile}T"
7671 #! $SHELL
7672
7673 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7674 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7675 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7676 #
7677 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7678 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7679 #
7680 # This program is free software; you can redistribute it and/or modify
7681 # it under the terms of the GNU General Public License as published by
7682 # the Free Software Foundation; either version 2 of the License, or
7683 # (at your option) any later version.
7684 #
7685 # This program is distributed in the hope that it will be useful, but
7686 # WITHOUT ANY WARRANTY; without even the implied warranty of
7687 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7688 # General Public License for more details.
7689 #
7690 # You should have received a copy of the GNU General Public License
7691 # along with this program; if not, write to the Free Software
7692 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7693 #
7694 # As a special exception to the GNU General Public License, if you
7695 # distribute this file as part of a program that contains a
7696 # configuration script generated by Autoconf, you may include it under
7697 # the same distribution terms that you use for the rest of that program.
7698
7699 # A sed that does not truncate output.
7700 SED=$lt_SED
7701
7702 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7703 Xsed="${SED} -e s/^X//"
7704
7705 # The HP-UX ksh and POSIX shell print the target directory to stdout
7706 # if CDPATH is set.
7707 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7708
7709 # ### BEGIN LIBTOOL CONFIG
7710
7711 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7712
7713 # Shell to use when invoking shell scripts.
7714 SHELL=$lt_SHELL
7715
7716 # Whether or not to build shared libraries.
7717 build_libtool_libs=$enable_shared
7718
7719 # Whether or not to build static libraries.
7720 build_old_libs=$enable_static
7721
7722 # Whether or not to add -lc for building shared libraries.
7723 build_libtool_need_lc=$need_lc
7724
7725 # Whether or not to optimize for fast installation.
7726 fast_install=$enable_fast_install
7727
7728 # The host system.
7729 host_alias=$host_alias
7730 host=$host
7731
7732 # An echo program that does not interpret backslashes.
7733 echo=$lt_echo
7734
7735 # The archiver.
7736 AR=$lt_AR
7737 AR_FLAGS=$lt_AR_FLAGS
7738
7739 # The default C compiler.
7740 CC=$lt_CC
7741
7742 # Is the compiler the GNU C compiler?
7743 with_gcc=$GCC
7744
7745 # The linker used to build libraries.
7746 LD=$lt_LD
7747
7748 # Whether we need hard or soft links.
7749 LN_S=$lt_LN_S
7750
7751 # A BSD-compatible nm program.
7752 NM=$lt_NM
7753
7754 # A symbol stripping program
7755 STRIP=$STRIP
7756
7757 # Used to examine libraries when file_magic_cmd begins "file"
7758 MAGIC_CMD=$MAGIC_CMD
7759
7760 # Used on cygwin: DLL creation program.
7761 DLLTOOL="$DLLTOOL"
7762
7763 # Used on cygwin: object dumper.
7764 OBJDUMP="$OBJDUMP"
7765
7766 # Used on cygwin: assembler.
7767 AS="$AS"
7768
7769 # The name of the directory that contains temporary libtool files.
7770 objdir=$objdir
7771
7772 # How to create reloadable object files.
7773 reload_flag=$lt_reload_flag
7774 reload_cmds=$lt_reload_cmds
7775
7776 # How to pass a linker flag through the compiler.
7777 wl=$lt_wl
7778
7779 # Object file suffix (normally "o").
7780 objext="$ac_objext"
7781
7782 # Old archive suffix (normally "a").
7783 libext="$libext"
7784
7785 # Executable file suffix (normally "").
7786 exeext="$exeext"
7787
7788 # Additional compiler flags for building library objects.
7789 pic_flag=$lt_pic_flag
7790 pic_mode=$pic_mode
7791
7792 # Does compiler simultaneously support -c and -o options?
7793 compiler_c_o=$lt_compiler_c_o
7794
7795 # Can we write directly to a .lo ?
7796 compiler_o_lo=$lt_compiler_o_lo
7797
7798 # Must we lock files when doing compilation ?
7799 need_locks=$lt_need_locks
7800
7801 # Do we need the lib prefix for modules?
7802 need_lib_prefix=$need_lib_prefix
7803
7804 # Do we need a version for libraries?
7805 need_version=$need_version
7806
7807 # Whether dlopen is supported.
7808 dlopen_support=$enable_dlopen
7809
7810 # Whether dlopen of programs is supported.
7811 dlopen_self=$enable_dlopen_self
7812
7813 # Whether dlopen of statically linked programs is supported.
7814 dlopen_self_static=$enable_dlopen_self_static
7815
7816 # Compiler flag to prevent dynamic linking.
7817 link_static_flag=$lt_link_static_flag
7818
7819 # Compiler flag to turn off builtin functions.
7820 no_builtin_flag=$lt_no_builtin_flag
7821
7822 # Compiler flag to allow reflexive dlopens.
7823 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7824
7825 # Compiler flag to generate shared objects directly from archives.
7826 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7827
7828 # Compiler flag to generate thread-safe objects.
7829 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7830
7831 # Library versioning type.
7832 version_type=$version_type
7833
7834 # Format of library name prefix.
7835 libname_spec=$lt_libname_spec
7836
7837 # List of archive names.  First name is the real one, the rest are links.
7838 # The last name is the one that the linker finds with -lNAME.
7839 library_names_spec=$lt_library_names_spec
7840
7841 # The coded name of the library, if different from the real name.
7842 soname_spec=$lt_soname_spec
7843
7844 # Commands used to build and install an old-style archive.
7845 RANLIB=$lt_RANLIB
7846 old_archive_cmds=$lt_old_archive_cmds
7847 old_postinstall_cmds=$lt_old_postinstall_cmds
7848 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7849
7850 # Create an old-style archive from a shared archive.
7851 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7852
7853 # Create a temporary old-style archive to link instead of a shared archive.
7854 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7855
7856 # Commands used to build and install a shared archive.
7857 archive_cmds=$lt_archive_cmds
7858 archive_expsym_cmds=$lt_archive_expsym_cmds
7859 postinstall_cmds=$lt_postinstall_cmds
7860 postuninstall_cmds=$lt_postuninstall_cmds
7861
7862 # Commands to strip libraries.
7863 old_striplib=$lt_old_striplib
7864 striplib=$lt_striplib
7865
7866 # Method to check whether dependent libraries are shared objects.
7867 deplibs_check_method=$lt_deplibs_check_method
7868
7869 # Command to use when deplibs_check_method == file_magic.
7870 file_magic_cmd=$lt_file_magic_cmd
7871
7872 # Flag that allows shared libraries with undefined symbols to be built.
7873 allow_undefined_flag=$lt_allow_undefined_flag
7874
7875 # Flag that forces no undefined symbols.
7876 no_undefined_flag=$lt_no_undefined_flag
7877
7878 # Commands used to finish a libtool library installation in a directory.
7879 finish_cmds=$lt_finish_cmds
7880
7881 # Same as above, but a single script fragment to be evaled but not shown.
7882 finish_eval=$lt_finish_eval
7883
7884 # Take the output of nm and produce a listing of raw symbols and C names.
7885 global_symbol_pipe=$lt_global_symbol_pipe
7886
7887 # Transform the output of nm in a proper C declaration
7888 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7889
7890 # Transform the output of nm in a C name address pair
7891 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7892
7893 # This is the shared library runtime path variable.
7894 runpath_var=$runpath_var
7895
7896 # This is the shared library path variable.
7897 shlibpath_var=$shlibpath_var
7898
7899 # Is shlibpath searched before the hard-coded library search path?
7900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7901
7902 # How to hardcode a shared library path into an executable.
7903 hardcode_action=$hardcode_action
7904
7905 # Whether we should hardcode library paths into libraries.
7906 hardcode_into_libs=$hardcode_into_libs
7907
7908 # Flag to hardcode \$libdir into a binary during linking.
7909 # This must work even if \$libdir does not exist.
7910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7911
7912 # Whether we need a single -rpath flag with a separated argument.
7913 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7914
7915 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7916 # resulting binary.
7917 hardcode_direct=$hardcode_direct
7918
7919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7920 # resulting binary.
7921 hardcode_minus_L=$hardcode_minus_L
7922
7923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7924 # the resulting binary.
7925 hardcode_shlibpath_var=$hardcode_shlibpath_var
7926
7927 # Variables whose values should be saved in libtool wrapper scripts and
7928 # restored at relink time.
7929 variables_saved_for_relink="$variables_saved_for_relink"
7930
7931 # Whether libtool must link a program against all its dependency libraries.
7932 link_all_deplibs=$link_all_deplibs
7933
7934 # Compile-time system search path for libraries
7935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7936
7937 # Run-time system search path for libraries
7938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7939
7940 # Fix the shell variable \$srcfile for the compiler.
7941 fix_srcfile_path="$fix_srcfile_path"
7942
7943 # Set to yes if exported symbols are required.
7944 always_export_symbols=$always_export_symbols
7945
7946 # The commands to list exported symbols.
7947 export_symbols_cmds=$lt_export_symbols_cmds
7948
7949 # The commands to extract the exported symbol list from a shared archive.
7950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7951
7952 # Symbols that should not be listed in the preloaded symbols.
7953 exclude_expsyms=$lt_exclude_expsyms
7954
7955 # Symbols that must always be exported.
7956 include_expsyms=$lt_include_expsyms
7957
7958 # ### END LIBTOOL CONFIG
7959
7960 __EOF__
7961
7962   case $host_os in
7963   aix3*)
7964     cat <<\EOF >> "${ofile}T"
7965
7966 # AIX sometimes has problems with the GCC collect2 program.  For some
7967 # reason, if we set the COLLECT_NAMES environment variable, the problems
7968 # vanish in a puff of smoke.
7969 if test "X${COLLECT_NAMES+set}" != Xset; then
7970   COLLECT_NAMES=
7971   export COLLECT_NAMES
7972 fi
7973 EOF
7974     ;;
7975   esac
7976
7977   case $host_os in
7978   cygwin* | mingw* | pw32* | os2*)
7979     cat <<'EOF' >> "${ofile}T"
7980       # This is a source program that is used to create dlls on Windows
7981       # Don't remove nor modify the starting and closing comments
7982 # /* ltdll.c starts here */
7983 # #define WIN32_LEAN_AND_MEAN
7984 # #include <windows.h>
7985 # #undef WIN32_LEAN_AND_MEAN
7986 # #include <stdio.h>
7987 #
7988 # #ifndef __CYGWIN__
7989 # #  ifdef __CYGWIN32__
7990 # #    define __CYGWIN__ __CYGWIN32__
7991 # #  endif
7992 # #endif
7993 #
7994 # #ifdef __cplusplus
7995 # extern "C" {
7996 # #endif
7997 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7998 # #ifdef __cplusplus
7999 # }
8000 # #endif
8001 #
8002 # #ifdef __CYGWIN__
8003 # #include <cygwin/cygwin_dll.h>
8004 # DECLARE_CYGWIN_DLL( DllMain );
8005 # #endif
8006 # HINSTANCE __hDllInstance_base;
8007 #
8008 # BOOL APIENTRY
8009 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8010 # {
8011 #   __hDllInstance_base = hInst;
8012 #   return TRUE;
8013 # }
8014 # /* ltdll.c ends here */
8015         # This is a source program that is used to create import libraries
8016         # on Windows for dlls which lack them. Don't remove nor modify the
8017         # starting and closing comments
8018 # /* impgen.c starts here */
8019 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8020 #
8021 #  This file is part of GNU libtool.
8022 #
8023 #  This program is free software; you can redistribute it and/or modify
8024 #  it under the terms of the GNU General Public License as published by
8025 #  the Free Software Foundation; either version 2 of the License, or
8026 #  (at your option) any later version.
8027 #
8028 #  This program is distributed in the hope that it will be useful,
8029 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8030 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8031 #  GNU General Public License for more details.
8032 #
8033 #  You should have received a copy of the GNU General Public License
8034 #  along with this program; if not, write to the Free Software
8035 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8036 #  */
8037 #
8038 # #include <stdio.h>            /* for printf() */
8039 # #include <unistd.h>           /* for open(), lseek(), read() */
8040 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8041 # #include <string.h>           /* for strdup() */
8042 #
8043 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8044 # #ifndef O_BINARY
8045 # #define O_BINARY 0
8046 # #endif
8047 #
8048 # static unsigned int
8049 # pe_get16 (fd, offset)
8050 #      int fd;
8051 #      int offset;
8052 # {
8053 #   unsigned char b[2];
8054 #   lseek (fd, offset, SEEK_SET);
8055 #   read (fd, b, 2);
8056 #   return b[0] + (b[1]<<8);
8057 # }
8058 #
8059 # static unsigned int
8060 # pe_get32 (fd, offset)
8061 #     int fd;
8062 #     int offset;
8063 # {
8064 #   unsigned char b[4];
8065 #   lseek (fd, offset, SEEK_SET);
8066 #   read (fd, b, 4);
8067 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8068 # }
8069 #
8070 # static unsigned int
8071 # pe_as32 (ptr)
8072 #      void *ptr;
8073 # {
8074 #   unsigned char *b = ptr;
8075 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8076 # }
8077 #
8078 # int
8079 # main (argc, argv)
8080 #     int argc;
8081 #     char *argv[];
8082 # {
8083 #     int dll;
8084 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8085 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8086 #     unsigned long name_rvas, nexp;
8087 #     unsigned char *expdata, *erva;
8088 #     char *filename, *dll_name;
8089 #
8090 #     filename = argv[1];
8091 #
8092 #     dll = open(filename, O_RDONLY|O_BINARY);
8093 #     if (dll < 1)
8094 #       return 1;
8095 #
8096 #     dll_name = filename;
8097 #
8098 #     for (i=0; filename[i]; i++)
8099 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8100 #           dll_name = filename + i +1;
8101 #
8102 #     pe_header_offset = pe_get32 (dll, 0x3c);
8103 #     opthdr_ofs = pe_header_offset + 4 + 20;
8104 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8105 #
8106 #     if (num_entries < 1) /* no exports */
8107 #       return 1;
8108 #
8109 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8110 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8111 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8112 #     secptr = (pe_header_offset + 4 + 20 +
8113 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8114 #
8115 #     expptr = 0;
8116 #     for (i = 0; i < nsections; i++)
8117 #     {
8118 #       char sname[8];
8119 #       unsigned long secptr1 = secptr + 40 * i;
8120 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8121 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8122 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8123 #       lseek(dll, secptr1, SEEK_SET);
8124 #       read(dll, sname, 8);
8125 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8126 #       {
8127 #           expptr = fptr + (export_rva - vaddr);
8128 #           if (export_rva + export_size > vaddr + vsize)
8129 #               export_size = vsize - (export_rva - vaddr);
8130 #           break;
8131 #       }
8132 #     }
8133 #
8134 #     expdata = (unsigned char*)malloc(export_size);
8135 #     lseek (dll, expptr, SEEK_SET);
8136 #     read (dll, expdata, export_size);
8137 #     erva = expdata - export_rva;
8138 #
8139 #     nexp = pe_as32 (expdata+24);
8140 #     name_rvas = pe_as32 (expdata+32);
8141 #
8142 #     printf ("EXPORTS\n");
8143 #     for (i = 0; i<nexp; i++)
8144 #     {
8145 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8146 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8147 #     }
8148 #
8149 #     return 0;
8150 # }
8151 # /* impgen.c ends here */
8152
8153 EOF
8154     ;;
8155   esac
8156
8157   # We use sed instead of cat because bash on DJGPP gets confused if
8158   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8159   # text mode, it properly converts lines to CR/LF.  This bash problem
8160   # is reportedly fixed, but why not run on old versions too?
8161   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8162
8163   mv -f "${ofile}T" "$ofile" || \
8164     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8165   chmod +x "$ofile"
8166 fi
8167
8168
8169
8170
8171
8172 # This can be used to rebuild libtool when needed
8173 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8174
8175 # Always use our own libtool.
8176 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8177
8178 # Prevent multiple expansion
8179
8180
8181  for ac_prog in gzip uncompress compress
8182 do
8183   # Extract the first word of "$ac_prog", so it can be a program name with args.
8184 set dummy $ac_prog; ac_word=$2
8185 echo "$as_me:$LINENO: checking for $ac_word" >&5
8186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8187 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8188   echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190   if test -n "$UNCOMPRESS"; then
8191   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196   IFS=$as_save_IFS
8197   test -z "$as_dir" && as_dir=.
8198   for ac_exec_ext in '' $ac_executable_extensions; do
8199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200     ac_cv_prog_UNCOMPRESS="$ac_prog"
8201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203   fi
8204 done
8205 done
8206
8207 fi
8208 fi
8209 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8210 if test -n "$UNCOMPRESS"; then
8211   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8212 echo "${ECHO_T}$UNCOMPRESS" >&6
8213 else
8214   echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6
8216 fi
8217
8218   test -n "$UNCOMPRESS" && break
8219 done
8220
8221
8222
8223
8224
8225
8226
8227
8228 echo "$as_me:$LINENO: checking for target system" >&5
8229 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8230 CYGWIN=
8231 MINGW=
8232 case $host_os in
8233     *cygwin* ) CYGWIN=yes;;
8234     *mingw* ) MINGW=yes;;
8235 esac
8236
8237 AR=ar
8238 if test "x$MINGW" = "xyes"; then
8239     #fix for the debian distribution of mingw
8240     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8241         AR="/usr/i586-mingw32msvc/bin/ar"
8242     fi
8243     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8244         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8245     fi
8246     #fix for the gentoo distribution of mingw
8247     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8248         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8249     fi
8250     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8251         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8252     fi
8253     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8254         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8255     fi
8256 fi
8257
8258
8259
8260 if test "x${CYGWIN}" = "xyes"; then
8261     cat >>confdefs.h <<_ACEOF
8262 #define CYGWIN 1
8263 _ACEOF
8264
8265     echo "$as_me:$LINENO: result: cygwin" >&5
8266 echo "${ECHO_T}cygwin" >&6
8267 else
8268     if test "x${MINGW}" = "xyes"; then
8269         cat >>confdefs.h <<_ACEOF
8270 #define MINGW 1
8271 _ACEOF
8272
8273         WIN32=1
8274         cat >>confdefs.h <<_ACEOF
8275 #define WIN32 1
8276 _ACEOF
8277
8278         LIBS="$LIBS -lws2_32"
8279         echo "$as_me:$LINENO: result: mingw" >&5
8280 echo "${ECHO_T}mingw" >&6
8281     else
8282         LINUX=1
8283         export LINUX
8284         cat >>confdefs.h <<_ACEOF
8285 #define LINUX 1
8286 _ACEOF
8287
8288         echo "$as_me:$LINENO: result: " >&5
8289 echo "${ECHO_T}" >&6
8290     fi
8291 fi
8292
8293
8294 SLEXT="so"
8295 if test "x${MINGW}" != "xyes"; then
8296     # no mingW
8297     cat >>confdefs.h <<_ACEOF
8298 #define O_BINARY 0
8299 _ACEOF
8300
8301 else
8302     # mingW
8303     SLEXT="dll"
8304 fi
8305 export SLEXT
8306
8307
8308 # The following tries to make use of includes and libraries in
8309 # /usr/local, too. Notice: A -I/usr/local/include might break
8310 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8311 # especially on systems which link /usr/local to /usr, so it has yet
8312 # to be seen how useful this is.
8313 if test -d /usr/local/lib; then
8314     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8315 fi
8316 if test -d /usr/local/include; then
8317 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8318 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8319     echo > /dev/null
8320 fi
8321 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8322     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8323     # and $prefix/include, which should be included in our search paths for libraries
8324     # and includes.
8325     LDFLAGS="$LDFLAGS -L${libdir}"
8326     CPPFLAGS="$CPPFLAGS -I${includedir}"
8327     # TODO- test whether gcc still works after this
8328 fi
8329
8330 # this must be done after (I believe) AC_PROG_MAKE_SET
8331 if test "x$DEBUG" '!=' "x";then
8332     STRIP="@echo debug enabled, not stripping "
8333     export STRIP
8334
8335 fi
8336
8337
8338 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8339 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8340 if test "${ac_cv_lib_m_sin+set}" = set; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   ac_check_lib_save_LIBS=$LIBS
8344 LIBS="-lm  $LIBS"
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h.  */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h.  */
8351
8352 /* Override any gcc2 internal prototype to avoid an error.  */
8353 #ifdef __cplusplus
8354 extern "C"
8355 #endif
8356 /* We use char because int might match the return type of a gcc2
8357    builtin and then its argument prototype would still apply.  */
8358 char sin ();
8359 int
8360 main ()
8361 {
8362 sin ();
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369   (eval $ac_link) 2>conftest.er1
8370   ac_status=$?
8371   grep -v '^ *+' conftest.er1 >conftest.err
8372   rm -f conftest.er1
8373   cat conftest.err >&5
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } &&
8376          { ac_try='test -z "$ac_c_werror_flag"
8377                          || test ! -s conftest.err'
8378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379   (eval $ac_try) 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); }; } &&
8383          { ac_try='test -s conftest$ac_exeext'
8384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; }; then
8389   ac_cv_lib_m_sin=yes
8390 else
8391   echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394 ac_cv_lib_m_sin=no
8395 fi
8396 rm -f conftest.err conftest.$ac_objext \
8397       conftest$ac_exeext conftest.$ac_ext
8398 LIBS=$ac_check_lib_save_LIBS
8399 fi
8400 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8401 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8402 if test $ac_cv_lib_m_sin = yes; then
8403   cat >>confdefs.h <<_ACEOF
8404 #define HAVE_LIBM 1
8405 _ACEOF
8406
8407   LIBS="-lm $LIBS"
8408
8409 else
8410   echo "Error: Math library not found.";
8411  exit;
8412
8413 fi
8414
8415
8416 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8417 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8418 if test "${ac_cv_lib_z_deflate+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   ac_check_lib_save_LIBS=$LIBS
8422 LIBS="-lz  $LIBS"
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429
8430 /* Override any gcc2 internal prototype to avoid an error.  */
8431 #ifdef __cplusplus
8432 extern "C"
8433 #endif
8434 /* We use char because int might match the return type of a gcc2
8435    builtin and then its argument prototype would still apply.  */
8436 char deflate ();
8437 int
8438 main ()
8439 {
8440 deflate ();
8441   ;
8442   return 0;
8443 }
8444 _ACEOF
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447   (eval $ac_link) 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } &&
8454          { ac_try='test -z "$ac_c_werror_flag"
8455                          || test ! -s conftest.err'
8456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457   (eval $ac_try) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; } &&
8461          { ac_try='test -s conftest$ac_exeext'
8462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463   (eval $ac_try) 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   ac_cv_lib_z_deflate=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ac_cv_lib_z_deflate=no
8473 fi
8474 rm -f conftest.err conftest.$ac_objext \
8475       conftest$ac_exeext conftest.$ac_ext
8476 LIBS=$ac_check_lib_save_LIBS
8477 fi
8478 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8479 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8480 if test $ac_cv_lib_z_deflate = yes; then
8481   cat >>confdefs.h <<_ACEOF
8482 #define HAVE_LIBZ 1
8483 _ACEOF
8484
8485   LIBS="-lz $LIBS"
8486
8487 else
8488   ZLIBMISSING=true
8489 fi
8490
8491
8492 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8493 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8494 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   ac_check_lib_save_LIBS=$LIBS
8498 LIBS="-ljpeg  $LIBS"
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h.  */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h.  */
8505
8506 /* Override any gcc2 internal prototype to avoid an error.  */
8507 #ifdef __cplusplus
8508 extern "C"
8509 #endif
8510 /* We use char because int might match the return type of a gcc2
8511    builtin and then its argument prototype would still apply.  */
8512 char jpeg_write_raw_data ();
8513 int
8514 main ()
8515 {
8516 jpeg_write_raw_data ();
8517   ;
8518   return 0;
8519 }
8520 _ACEOF
8521 rm -f conftest.$ac_objext conftest$ac_exeext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523   (eval $ac_link) 2>conftest.er1
8524   ac_status=$?
8525   grep -v '^ *+' conftest.er1 >conftest.err
8526   rm -f conftest.er1
8527   cat conftest.err >&5
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); } &&
8530          { ac_try='test -z "$ac_c_werror_flag"
8531                          || test ! -s conftest.err'
8532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533   (eval $ac_try) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; } &&
8537          { ac_try='test -s conftest$ac_exeext'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; }; then
8543   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8549 fi
8550 rm -f conftest.err conftest.$ac_objext \
8551       conftest$ac_exeext conftest.$ac_ext
8552 LIBS=$ac_check_lib_save_LIBS
8553 fi
8554 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8555 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8556 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8557   cat >>confdefs.h <<_ACEOF
8558 #define HAVE_LIBJPEG 1
8559 _ACEOF
8560
8561   LIBS="-ljpeg $LIBS"
8562
8563 else
8564   JPEGLIBMISSING=true
8565 fi
8566
8567
8568 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8569 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8570 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   ac_check_lib_save_LIBS=$LIBS
8574 LIBS="-lt1  $LIBS"
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h.  */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h.  */
8581
8582 /* Override any gcc2 internal prototype to avoid an error.  */
8583 #ifdef __cplusplus
8584 extern "C"
8585 #endif
8586 /* We use char because int might match the return type of a gcc2
8587    builtin and then its argument prototype would still apply.  */
8588 char T1_LoadFont ();
8589 int
8590 main ()
8591 {
8592 T1_LoadFont ();
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599   (eval $ac_link) 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } &&
8606          { ac_try='test -z "$ac_c_werror_flag"
8607                          || test ! -s conftest.err'
8608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609   (eval $ac_try) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); }; } &&
8613          { ac_try='test -s conftest$ac_exeext'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; }; then
8619   ac_cv_lib_t1_T1_LoadFont=yes
8620 else
8621   echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8623
8624 ac_cv_lib_t1_T1_LoadFont=no
8625 fi
8626 rm -f conftest.err conftest.$ac_objext \
8627       conftest$ac_exeext conftest.$ac_ext
8628 LIBS=$ac_check_lib_save_LIBS
8629 fi
8630 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8631 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8632 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8633   cat >>confdefs.h <<_ACEOF
8634 #define HAVE_LIBT1 1
8635 _ACEOF
8636
8637   LIBS="-lt1 $LIBS"
8638
8639 else
8640   T1LIBMISSING=true
8641 fi
8642
8643
8644
8645 echo "$as_me:$LINENO: checking for byte order" >&5
8646 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8647 if test "$cross_compiling" = yes; then
8648   CROSSCOMPILE=1
8649 else
8650   cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656
8657 int main (int argc, char *argv[])
8658 {
8659     int i = 1;
8660     return *(char*)&i;
8661 }
8662
8663 _ACEOF
8664 rm -f conftest$ac_exeext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666   (eval $ac_link) 2>&5
8667   ac_status=$?
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671   (eval $ac_try) 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; }; then
8675   BIGENDIAN=1
8676 else
8677   echo "$as_me: program exited with status $ac_status" >&5
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8680
8681 ( exit $ac_status )
8682 LITTLEENDIAN=1
8683 fi
8684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 export CROSSCOMPILE
8687
8688 if test "x${CROSSCOMPILE}" = "x1"; then
8689  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8690 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8691  echo "$as_me:$LINENO: checking target system type" >&5
8692 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8693 if test "${ac_cv_target+set}" = set; then
8694   echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696   ac_cv_target_alias=$target_alias
8697 test "x$ac_cv_target_alias" = "x" &&
8698   ac_cv_target_alias=$ac_cv_host_alias
8699 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8700   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8701 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8702    { (exit 1); exit 1; }; }
8703
8704 fi
8705 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8706 echo "${ECHO_T}$ac_cv_target" >&6
8707 target=$ac_cv_target
8708 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8709 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8710 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8711
8712
8713 # The aliases save the names the user supplied, while $host etc.
8714 # will get canonicalized.
8715 test -n "$target_alias" &&
8716   test "$program_prefix$program_suffix$program_transform_name" = \
8717     NONENONEs,x,x, &&
8718   program_prefix=${target_alias}-
8719  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8720 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8721  case "${target}" in
8722   *86* | *-pc-* )
8723      LITTLEENDIAN=1
8724      ;;
8725   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8726      BIGENDIAN=1
8727      ;;
8728  esac
8729 fi
8730
8731 export LITTLEENDIAN
8732 if test "x${LITTLEENDIAN}" = "x1"; then
8733 echo "$as_me:$LINENO: result: little endian" >&5
8734 echo "${ECHO_T}little endian" >&6
8735 BYTEORDERCHECKOK=1
8736 fi
8737 export BIGENDIAN
8738 if test "x${BIGENDIAN}" = "x1"; then
8739 echo "$as_me:$LINENO: result: big endian" >&5
8740 echo "${ECHO_T}big endian" >&6
8741 BYTEORDERCHECKOK=1
8742 WORDS_BIGENDIAN=1
8743 export WORDS_BIGENDIAN
8744 cat >>confdefs.h <<_ACEOF
8745 #define WORDS_BIGENDIAN 1
8746 _ACEOF
8747
8748 fi
8749 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8750 echo "$as_me:$LINENO: result: unknown" >&5
8751 echo "${ECHO_T}unknown" >&6
8752 echo Byte order could not determined.
8753 exit 1
8754 fi
8755
8756
8757
8758 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8759 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8760 if test "$cross_compiling" = yes; then
8761   CROSSCOMPILE=1
8762 else
8763   cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h.  */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h.  */
8769
8770 #include "stdlib.h"
8771 int main (int argc, char*argv[])
8772 {
8773     return system("test `touch config.tmp2`");
8774 }
8775
8776 _ACEOF
8777 rm -f conftest$ac_exeext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8779   (eval $ac_link) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784   (eval $ac_try) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; }; then
8788   OK=OK
8789 else
8790   echo "$as_me: program exited with status $ac_status" >&5
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 fi
8795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8796 fi
8797
8798 if test "x${OK}" = "xOK";then
8799     test -f config.tmp2 || OK=
8800 fi
8801
8802 if test "x${CROSSCOMPILE}" = "x1";then
8803     OK=OK;
8804 fi
8805 if test "x${OK}" = "xOK";then
8806 rm -f config.tmp2
8807 echo "$as_me:$LINENO: result: yes" >&5
8808 echo "${ECHO_T}yes" >&6
8809 SYSTEM_BACKTICKS=1
8810 export SYSTEM_BACKTICKS
8811 cat >>confdefs.h <<_ACEOF
8812 #define SYSTEM_BACKTICKS 1
8813 _ACEOF
8814
8815 else
8816 echo "$as_me:$LINENO: result: no" >&5
8817 echo "${ECHO_T}no" >&6
8818 fi
8819
8820
8821
8822 test "$program_prefix" != NONE &&
8823   program_transform_name="s,^,$program_prefix,;$program_transform_name"
8824 # Use a double $ so make ignores it.
8825 test "$program_suffix" != NONE &&
8826   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8827 # Double any \ or $.  echo might interpret backslashes.
8828 # By default was `s,x,x', remove it if useless.
8829 cat <<\_ACEOF >conftest.sed
8830 s/[\\$]/&&/g;s/;s,x,x,$//
8831 _ACEOF
8832 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8833 rm conftest.sed
8834
8835
8836            ac_config_headers="$ac_config_headers config.h"
8837
8838
8839
8840
8841
8842
8843 ac_header_dirent=no
8844 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8845   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8846 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8847 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8849   echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851   cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h.  */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h.  */
8857 #include <sys/types.h>
8858 #include <$ac_hdr>
8859
8860 int
8861 main ()
8862 {
8863 if ((DIR *) 0)
8864 return 0;
8865   ;
8866   return 0;
8867 }
8868 _ACEOF
8869 rm -f conftest.$ac_objext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871   (eval $ac_compile) 2>conftest.er1
8872   ac_status=$?
8873   grep -v '^ *+' conftest.er1 >conftest.err
8874   rm -f conftest.er1
8875   cat conftest.err >&5
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); } &&
8878          { ac_try='test -z "$ac_c_werror_flag"
8879                          || test ! -s conftest.err'
8880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881   (eval $ac_try) 2>&5
8882   ac_status=$?
8883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884   (exit $ac_status); }; } &&
8885          { ac_try='test -s conftest.$ac_objext'
8886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887   (eval $ac_try) 2>&5
8888   ac_status=$?
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); }; }; then
8891   eval "$as_ac_Header=yes"
8892 else
8893   echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8895
8896 eval "$as_ac_Header=no"
8897 fi
8898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8899 fi
8900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8903   cat >>confdefs.h <<_ACEOF
8904 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8905 _ACEOF
8906
8907 ac_header_dirent=$ac_hdr; break
8908 fi
8909
8910 done
8911 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8912 if test $ac_header_dirent = dirent.h; then
8913   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8914 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8915 if test "${ac_cv_search_opendir+set}" = set; then
8916   echo $ECHO_N "(cached) $ECHO_C" >&6
8917 else
8918   ac_func_search_save_LIBS=$LIBS
8919 ac_cv_search_opendir=no
8920 cat >conftest.$ac_ext <<_ACEOF
8921 /* confdefs.h.  */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h.  */
8926
8927 /* Override any gcc2 internal prototype to avoid an error.  */
8928 #ifdef __cplusplus
8929 extern "C"
8930 #endif
8931 /* We use char because int might match the return type of a gcc2
8932    builtin and then its argument prototype would still apply.  */
8933 char opendir ();
8934 int
8935 main ()
8936 {
8937 opendir ();
8938   ;
8939   return 0;
8940 }
8941 _ACEOF
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944   (eval $ac_link) 2>conftest.er1
8945   ac_status=$?
8946   grep -v '^ *+' conftest.er1 >conftest.err
8947   rm -f conftest.er1
8948   cat conftest.err >&5
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); } &&
8951          { ac_try='test -z "$ac_c_werror_flag"
8952                          || test ! -s conftest.err'
8953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954   (eval $ac_try) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; } &&
8958          { ac_try='test -s conftest$ac_exeext'
8959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960   (eval $ac_try) 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; }; then
8964   ac_cv_search_opendir="none required"
8965 else
8966   echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969 fi
8970 rm -f conftest.err conftest.$ac_objext \
8971       conftest$ac_exeext conftest.$ac_ext
8972 if test "$ac_cv_search_opendir" = no; then
8973   for ac_lib in dir; do
8974     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8975     cat >conftest.$ac_ext <<_ACEOF
8976 /* confdefs.h.  */
8977 _ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h.  */
8981
8982 /* Override any gcc2 internal prototype to avoid an error.  */
8983 #ifdef __cplusplus
8984 extern "C"
8985 #endif
8986 /* We use char because int might match the return type of a gcc2
8987    builtin and then its argument prototype would still apply.  */
8988 char opendir ();
8989 int
8990 main ()
8991 {
8992 opendir ();
8993   ;
8994   return 0;
8995 }
8996 _ACEOF
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999   (eval $ac_link) 2>conftest.er1
9000   ac_status=$?
9001   grep -v '^ *+' conftest.er1 >conftest.err
9002   rm -f conftest.er1
9003   cat conftest.err >&5
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); } &&
9006          { ac_try='test -z "$ac_c_werror_flag"
9007                          || test ! -s conftest.err'
9008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009   (eval $ac_try) 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); }; } &&
9013          { ac_try='test -s conftest$ac_exeext'
9014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015   (eval $ac_try) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); }; }; then
9019   ac_cv_search_opendir="-l$ac_lib"
9020 break
9021 else
9022   echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025 fi
9026 rm -f conftest.err conftest.$ac_objext \
9027       conftest$ac_exeext conftest.$ac_ext
9028   done
9029 fi
9030 LIBS=$ac_func_search_save_LIBS
9031 fi
9032 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9033 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9034 if test "$ac_cv_search_opendir" != no; then
9035   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9036
9037 fi
9038
9039 else
9040   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9041 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9042 if test "${ac_cv_search_opendir+set}" = set; then
9043   echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045   ac_func_search_save_LIBS=$LIBS
9046 ac_cv_search_opendir=no
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h.  */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h.  */
9053
9054 /* Override any gcc2 internal prototype to avoid an error.  */
9055 #ifdef __cplusplus
9056 extern "C"
9057 #endif
9058 /* We use char because int might match the return type of a gcc2
9059    builtin and then its argument prototype would still apply.  */
9060 char opendir ();
9061 int
9062 main ()
9063 {
9064 opendir ();
9065   ;
9066   return 0;
9067 }
9068 _ACEOF
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071   (eval $ac_link) 2>conftest.er1
9072   ac_status=$?
9073   grep -v '^ *+' conftest.er1 >conftest.err
9074   rm -f conftest.er1
9075   cat conftest.err >&5
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); } &&
9078          { ac_try='test -z "$ac_c_werror_flag"
9079                          || test ! -s conftest.err'
9080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081   (eval $ac_try) 2>&5
9082   ac_status=$?
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); }; } &&
9085          { ac_try='test -s conftest$ac_exeext'
9086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087   (eval $ac_try) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); }; }; then
9091   ac_cv_search_opendir="none required"
9092 else
9093   echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9095
9096 fi
9097 rm -f conftest.err conftest.$ac_objext \
9098       conftest$ac_exeext conftest.$ac_ext
9099 if test "$ac_cv_search_opendir" = no; then
9100   for ac_lib in x; do
9101     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9102     cat >conftest.$ac_ext <<_ACEOF
9103 /* confdefs.h.  */
9104 _ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h.  */
9108
9109 /* Override any gcc2 internal prototype to avoid an error.  */
9110 #ifdef __cplusplus
9111 extern "C"
9112 #endif
9113 /* We use char because int might match the return type of a gcc2
9114    builtin and then its argument prototype would still apply.  */
9115 char opendir ();
9116 int
9117 main ()
9118 {
9119 opendir ();
9120   ;
9121   return 0;
9122 }
9123 _ACEOF
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126   (eval $ac_link) 2>conftest.er1
9127   ac_status=$?
9128   grep -v '^ *+' conftest.er1 >conftest.err
9129   rm -f conftest.er1
9130   cat conftest.err >&5
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); } &&
9133          { ac_try='test -z "$ac_c_werror_flag"
9134                          || test ! -s conftest.err'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; } &&
9140          { ac_try='test -s conftest$ac_exeext'
9141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142   (eval $ac_try) 2>&5
9143   ac_status=$?
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); }; }; then
9146   ac_cv_search_opendir="-l$ac_lib"
9147 break
9148 else
9149   echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 fi
9153 rm -f conftest.err conftest.$ac_objext \
9154       conftest$ac_exeext conftest.$ac_ext
9155   done
9156 fi
9157 LIBS=$ac_func_search_save_LIBS
9158 fi
9159 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9160 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9161 if test "$ac_cv_search_opendir" != no; then
9162   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9163
9164 fi
9165
9166 fi
9167
9168  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9169 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9170 if test "${ac_cv_header_stdc+set}" = set; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173   cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h.  */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h.  */
9179 #include <stdlib.h>
9180 #include <stdarg.h>
9181 #include <string.h>
9182 #include <float.h>
9183
9184 int
9185 main ()
9186 {
9187
9188   ;
9189   return 0;
9190 }
9191 _ACEOF
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194   (eval $ac_compile) 2>conftest.er1
9195   ac_status=$?
9196   grep -v '^ *+' conftest.er1 >conftest.err
9197   rm -f conftest.er1
9198   cat conftest.err >&5
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } &&
9201          { ac_try='test -z "$ac_c_werror_flag"
9202                          || test ! -s conftest.err'
9203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204   (eval $ac_try) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); }; } &&
9208          { ac_try='test -s conftest.$ac_objext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   ac_cv_header_stdc=yes
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_cv_header_stdc=no
9220 fi
9221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9222
9223 if test $ac_cv_header_stdc = yes; then
9224   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9225   cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231 #include <string.h>
9232
9233 _ACEOF
9234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9235   $EGREP "memchr" >/dev/null 2>&1; then
9236   :
9237 else
9238   ac_cv_header_stdc=no
9239 fi
9240 rm -f conftest*
9241
9242 fi
9243
9244 if test $ac_cv_header_stdc = yes; then
9245   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9246   cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h.  */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h.  */
9252 #include <stdlib.h>
9253
9254 _ACEOF
9255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9256   $EGREP "free" >/dev/null 2>&1; then
9257   :
9258 else
9259   ac_cv_header_stdc=no
9260 fi
9261 rm -f conftest*
9262
9263 fi
9264
9265 if test $ac_cv_header_stdc = yes; then
9266   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9267   if test "$cross_compiling" = yes; then
9268   :
9269 else
9270   cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h.  */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h.  */
9276 #include <ctype.h>
9277 #if ((' ' & 0x0FF) == 0x020)
9278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9280 #else
9281 # define ISLOWER(c) \
9282                    (('a' <= (c) && (c) <= 'i') \
9283                      || ('j' <= (c) && (c) <= 'r') \
9284                      || ('s' <= (c) && (c) <= 'z'))
9285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9286 #endif
9287
9288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9289 int
9290 main ()
9291 {
9292   int i;
9293   for (i = 0; i < 256; i++)
9294     if (XOR (islower (i), ISLOWER (i))
9295         || toupper (i) != TOUPPER (i))
9296       exit(2);
9297   exit (0);
9298 }
9299 _ACEOF
9300 rm -f conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302   (eval $ac_link) 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   :
9312 else
9313   echo "$as_me: program exited with status $ac_status" >&5
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317 ( exit $ac_status )
9318 ac_cv_header_stdc=no
9319 fi
9320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9321 fi
9322 fi
9323 fi
9324 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9325 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9326 if test $ac_cv_header_stdc = yes; then
9327
9328 cat >>confdefs.h <<\_ACEOF
9329 #define STDC_HEADERS 1
9330 _ACEOF
9331
9332 fi
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348 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
9349 do
9350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9352   echo "$as_me:$LINENO: checking for $ac_header" >&5
9353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9355   echo $ECHO_N "(cached) $ECHO_C" >&6
9356 fi
9357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9359 else
9360   # Is the header compilable?
9361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369 $ac_includes_default
9370 #include <$ac_header>
9371 _ACEOF
9372 rm -f conftest.$ac_objext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374   (eval $ac_compile) 2>conftest.er1
9375   ac_status=$?
9376   grep -v '^ *+' conftest.er1 >conftest.err
9377   rm -f conftest.er1
9378   cat conftest.err >&5
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); } &&
9381          { ac_try='test -z "$ac_c_werror_flag"
9382                          || test ! -s conftest.err'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; } &&
9388          { ac_try='test -s conftest.$ac_objext'
9389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390   (eval $ac_try) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; }; then
9394   ac_header_compiler=yes
9395 else
9396   echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399 ac_header_compiler=no
9400 fi
9401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9403 echo "${ECHO_T}$ac_header_compiler" >&6
9404
9405 # Is the header present?
9406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h.  */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h.  */
9414 #include <$ac_header>
9415 _ACEOF
9416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9418   ac_status=$?
9419   grep -v '^ *+' conftest.er1 >conftest.err
9420   rm -f conftest.er1
9421   cat conftest.err >&5
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); } >/dev/null; then
9424   if test -s conftest.err; then
9425     ac_cpp_err=$ac_c_preproc_warn_flag
9426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9427   else
9428     ac_cpp_err=
9429   fi
9430 else
9431   ac_cpp_err=yes
9432 fi
9433 if test -z "$ac_cpp_err"; then
9434   ac_header_preproc=yes
9435 else
9436   echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439   ac_header_preproc=no
9440 fi
9441 rm -f conftest.err conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9443 echo "${ECHO_T}$ac_header_preproc" >&6
9444
9445 # So?  What about this header?
9446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9447   yes:no: )
9448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9452     ac_header_preproc=yes
9453     ;;
9454   no:yes:* )
9455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9467     (
9468       cat <<\_ASBOX
9469 ## ------------------------------------------ ##
9470 ## Report this to the AC_PACKAGE_NAME lists.  ##
9471 ## ------------------------------------------ ##
9472 _ASBOX
9473     ) |
9474       sed "s/^/$as_me: WARNING:     /" >&2
9475     ;;
9476 esac
9477 echo "$as_me:$LINENO: checking for $ac_header" >&5
9478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482   eval "$as_ac_Header=\$ac_header_preproc"
9483 fi
9484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9486
9487 fi
9488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9489   cat >>confdefs.h <<_ACEOF
9490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9491 _ACEOF
9492
9493 fi
9494
9495 done
9496
9497
9498 cat >>confdefs.h <<_ACEOF
9499 #define PACKAGE "$PACKAGE"
9500 _ACEOF
9501
9502 cat >>confdefs.h <<_ACEOF
9503 #define VERSION "$VERSION"
9504 _ACEOF
9505
9506
9507
9508
9509
9510
9511
9512  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9513 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9514 if test "${ac_cv_c_const+set}" = set; then
9515   echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517   cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h.  */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h.  */
9523
9524 int
9525 main ()
9526 {
9527 /* FIXME: Include the comments suggested by Paul. */
9528 #ifndef __cplusplus
9529   /* Ultrix mips cc rejects this.  */
9530   typedef int charset[2];
9531   const charset x;
9532   /* SunOS 4.1.1 cc rejects this.  */
9533   char const *const *ccp;
9534   char **p;
9535   /* NEC SVR4.0.2 mips cc rejects this.  */
9536   struct point {int x, y;};
9537   static struct point const zero = {0,0};
9538   /* AIX XL C 1.02.0.0 rejects this.
9539      It does not let you subtract one const X* pointer from another in
9540      an arm of an if-expression whose if-part is not a constant
9541      expression */
9542   const char *g = "string";
9543   ccp = &g + (g ? g-g : 0);
9544   /* HPUX 7.0 cc rejects these. */
9545   ++ccp;
9546   p = (char**) ccp;
9547   ccp = (char const *const *) p;
9548   { /* SCO 3.2v4 cc rejects this.  */
9549     char *t;
9550     char const *s = 0 ? (char *) 0 : (char const *) 0;
9551
9552     *t++ = 0;
9553   }
9554   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9555     int x[] = {25, 17};
9556     const int *foo = &x[0];
9557     ++foo;
9558   }
9559   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9560     typedef const int *iptr;
9561     iptr p = 0;
9562     ++p;
9563   }
9564   { /* AIX XL C 1.02.0.0 rejects this saying
9565        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9566     struct s { int j; const int *ap[3]; };
9567     struct s *b; b->j = 5;
9568   }
9569   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9570     const int foo = 10;
9571   }
9572 #endif
9573
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9580   (eval $ac_compile) 2>conftest.er1
9581   ac_status=$?
9582   grep -v '^ *+' conftest.er1 >conftest.err
9583   rm -f conftest.er1
9584   cat conftest.err >&5
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); } &&
9587          { ac_try='test -z "$ac_c_werror_flag"
9588                          || test ! -s conftest.err'
9589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590   (eval $ac_try) 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }; } &&
9594          { ac_try='test -s conftest.$ac_objext'
9595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596   (eval $ac_try) 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); }; }; then
9600   ac_cv_c_const=yes
9601 else
9602   echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605 ac_cv_c_const=no
9606 fi
9607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9608 fi
9609 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9610 echo "${ECHO_T}$ac_cv_c_const" >&6
9611 if test $ac_cv_c_const = no; then
9612
9613 cat >>confdefs.h <<\_ACEOF
9614 #define const
9615 _ACEOF
9616
9617 fi
9618
9619  echo "$as_me:$LINENO: checking for inline" >&5
9620 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9621 if test "${ac_cv_c_inline+set}" = set; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   ac_cv_c_inline=no
9625 for ac_kw in inline __inline__ __inline; do
9626   cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h.  */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h.  */
9632 #ifndef __cplusplus
9633 typedef int foo_t;
9634 static $ac_kw foo_t static_foo () {return 0; }
9635 $ac_kw foo_t foo () {return 0; }
9636 #endif
9637
9638 _ACEOF
9639 rm -f conftest.$ac_objext
9640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9641   (eval $ac_compile) 2>conftest.er1
9642   ac_status=$?
9643   grep -v '^ *+' conftest.er1 >conftest.err
9644   rm -f conftest.er1
9645   cat conftest.err >&5
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } &&
9648          { ac_try='test -z "$ac_c_werror_flag"
9649                          || test ! -s conftest.err'
9650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651   (eval $ac_try) 2>&5
9652   ac_status=$?
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); }; } &&
9655          { ac_try='test -s conftest.$ac_objext'
9656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657   (eval $ac_try) 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); }; }; then
9661   ac_cv_c_inline=$ac_kw; break
9662 else
9663   echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9665
9666 fi
9667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668 done
9669
9670 fi
9671 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9672 echo "${ECHO_T}$ac_cv_c_inline" >&6
9673
9674
9675 case $ac_cv_c_inline in
9676   inline | yes) ;;
9677   *)
9678     case $ac_cv_c_inline in
9679       no) ac_val=;;
9680       *) ac_val=$ac_cv_c_inline;;
9681     esac
9682     cat >>confdefs.h <<_ACEOF
9683 #ifndef __cplusplus
9684 #define inline $ac_val
9685 #endif
9686 _ACEOF
9687     ;;
9688 esac
9689
9690  echo "$as_me:$LINENO: checking for off_t" >&5
9691 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9692 if test "${ac_cv_type_off_t+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701 $ac_includes_default
9702 int
9703 main ()
9704 {
9705 if ((off_t *) 0)
9706   return 0;
9707 if (sizeof (off_t))
9708   return 0;
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715   (eval $ac_compile) 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } &&
9722          { ac_try='test -z "$ac_c_werror_flag"
9723                          || test ! -s conftest.err'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; } &&
9729          { ac_try='test -s conftest.$ac_objext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_cv_type_off_t=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ac_cv_type_off_t=no
9741 fi
9742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9743 fi
9744 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9745 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9746 if test $ac_cv_type_off_t = yes; then
9747   :
9748 else
9749
9750 cat >>confdefs.h <<_ACEOF
9751 #define off_t long
9752 _ACEOF
9753
9754 fi
9755
9756  echo "$as_me:$LINENO: checking for size_t" >&5
9757 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9758 if test "${ac_cv_type_size_t+set}" = set; then
9759   echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761   cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h.  */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h.  */
9767 $ac_includes_default
9768 int
9769 main ()
9770 {
9771 if ((size_t *) 0)
9772   return 0;
9773 if (sizeof (size_t))
9774   return 0;
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781   (eval $ac_compile) 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -z "$ac_c_werror_flag"
9789                          || test ! -s conftest.err'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; } &&
9795          { ac_try='test -s conftest.$ac_objext'
9796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797   (eval $ac_try) 2>&5
9798   ac_status=$?
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); }; }; then
9801   ac_cv_type_size_t=yes
9802 else
9803   echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9805
9806 ac_cv_type_size_t=no
9807 fi
9808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9809 fi
9810 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9811 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9812 if test $ac_cv_type_size_t = yes; then
9813   :
9814 else
9815
9816 cat >>confdefs.h <<_ACEOF
9817 #define size_t unsigned
9818 _ACEOF
9819
9820 fi
9821
9822  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9823 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9824 if test "${ac_cv_struct_tm+set}" = set; then
9825   echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827   cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833 #include <sys/types.h>
9834 #include <time.h>
9835
9836 int
9837 main ()
9838 {
9839 struct tm *tp; tp->tm_sec;
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846   (eval $ac_compile) 2>conftest.er1
9847   ac_status=$?
9848   grep -v '^ *+' conftest.er1 >conftest.err
9849   rm -f conftest.er1
9850   cat conftest.err >&5
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); } &&
9853          { ac_try='test -z "$ac_c_werror_flag"
9854                          || test ! -s conftest.err'
9855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856   (eval $ac_try) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; } &&
9860          { ac_try='test -s conftest.$ac_objext'
9861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862   (eval $ac_try) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; }; then
9866   ac_cv_struct_tm=time.h
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 ac_cv_struct_tm=sys/time.h
9872 fi
9873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9874 fi
9875 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9876 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9877 if test $ac_cv_struct_tm = sys/time.h; then
9878
9879 cat >>confdefs.h <<\_ACEOF
9880 #define TM_IN_SYS_TIME 1
9881 _ACEOF
9882
9883 fi
9884
9885  echo "$as_me:$LINENO: checking for boolean" >&5
9886 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9887 if test "${ac_cv_type_boolean+set}" = set; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890   cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896 $ac_includes_default
9897 int
9898 main ()
9899 {
9900 if ((boolean *) 0)
9901   return 0;
9902 if (sizeof (boolean))
9903   return 0;
9904   ;
9905   return 0;
9906 }
9907 _ACEOF
9908 rm -f conftest.$ac_objext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9910   (eval $ac_compile) 2>conftest.er1
9911   ac_status=$?
9912   grep -v '^ *+' conftest.er1 >conftest.err
9913   rm -f conftest.er1
9914   cat conftest.err >&5
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); } &&
9917          { ac_try='test -z "$ac_c_werror_flag"
9918                          || test ! -s conftest.err'
9919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920   (eval $ac_try) 2>&5
9921   ac_status=$?
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); }; } &&
9924          { ac_try='test -s conftest.$ac_objext'
9925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926   (eval $ac_try) 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; }; then
9930   ac_cv_type_boolean=yes
9931 else
9932   echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9934
9935 ac_cv_type_boolean=no
9936 fi
9937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9938 fi
9939 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
9940 echo "${ECHO_T}$ac_cv_type_boolean" >&6
9941 if test $ac_cv_type_boolean = yes; then
9942   :
9943 else
9944
9945 cat >>confdefs.h <<_ACEOF
9946 #define boolean int
9947 _ACEOF
9948
9949 fi
9950  #needed for jpeglib
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
9963 do
9964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9965 echo "$as_me:$LINENO: checking for $ac_func" >&5
9966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9967 if eval "test \"\${$as_ac_var+set}\" = set"; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970   cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h.  */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h.  */
9976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9978 #define $ac_func innocuous_$ac_func
9979
9980 /* System header to define __stub macros and hopefully few prototypes,
9981     which can conflict with char $ac_func (); below.
9982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9983     <limits.h> exists even on freestanding compilers.  */
9984
9985 #ifdef __STDC__
9986 # include <limits.h>
9987 #else
9988 # include <assert.h>
9989 #endif
9990
9991 #undef $ac_func
9992
9993 /* Override any gcc2 internal prototype to avoid an error.  */
9994 #ifdef __cplusplus
9995 extern "C"
9996 {
9997 #endif
9998 /* We use char because int might match the return type of a gcc2
9999    builtin and then its argument prototype would still apply.  */
10000 char $ac_func ();
10001 /* The GNU C library defines this for functions which it implements
10002     to always fail with ENOSYS.  Some functions are actually named
10003     something starting with __ and the normal name is an alias.  */
10004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10005 choke me
10006 #else
10007 char (*f) () = $ac_func;
10008 #endif
10009 #ifdef __cplusplus
10010 }
10011 #endif
10012
10013 int
10014 main ()
10015 {
10016 return f != $ac_func;
10017   ;
10018   return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023   (eval $ac_link) 2>conftest.er1
10024   ac_status=$?
10025   grep -v '^ *+' conftest.er1 >conftest.err
10026   rm -f conftest.er1
10027   cat conftest.err >&5
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); } &&
10030          { ac_try='test -z "$ac_c_werror_flag"
10031                          || test ! -s conftest.err'
10032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033   (eval $ac_try) 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; } &&
10037          { ac_try='test -s conftest$ac_exeext'
10038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039   (eval $ac_try) 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; }; then
10043   eval "$as_ac_var=yes"
10044 else
10045   echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10047
10048 eval "$as_ac_var=no"
10049 fi
10050 rm -f conftest.err conftest.$ac_objext \
10051       conftest$ac_exeext conftest.$ac_ext
10052 fi
10053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10055 if test `eval echo '${'$as_ac_var'}'` = yes; then
10056   cat >>confdefs.h <<_ACEOF
10057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10058 _ACEOF
10059
10060 fi
10061 done
10062
10063
10064 # ------------------------------------------------------------------
10065
10066
10067 for ac_prog in freetype-config
10068 do
10069   # Extract the first word of "$ac_prog", so it can be a program name with args.
10070 set dummy $ac_prog; ac_word=$2
10071 echo "$as_me:$LINENO: checking for $ac_word" >&5
10072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10073 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
10074   echo $ECHO_N "(cached) $ECHO_C" >&6
10075 else
10076   if test -n "$FREETYPE_CONFIG"; then
10077   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
10078 else
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10081 do
10082   IFS=$as_save_IFS
10083   test -z "$as_dir" && as_dir=.
10084   for ac_exec_ext in '' $ac_executable_extensions; do
10085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10086     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
10087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10088     break 2
10089   fi
10090 done
10091 done
10092
10093 fi
10094 fi
10095 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
10096 if test -n "$FREETYPE_CONFIG"; then
10097   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10098 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10099 else
10100   echo "$as_me:$LINENO: result: no" >&5
10101 echo "${ECHO_T}no" >&6
10102 fi
10103
10104   test -n "$FREETYPE_CONFIG" && break
10105 done
10106
10107 OLDCPPFLAGS="${CPPFLAGS}"
10108 OLDLIBS="${LIBS}"
10109 if test "x${FREETYPE_CONFIG}" != "x"; then
10110     CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
10111 else if test -d /usr/include/freetype2; then
10112     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10113 else if test -d /usr/local/include/freetype2; then
10114     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10115 fi
10116 fi
10117 fi
10118
10119 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10120 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10121 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-lfreetype  $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132
10133 /* Override any gcc2 internal prototype to avoid an error.  */
10134 #ifdef __cplusplus
10135 extern "C"
10136 #endif
10137 /* We use char because int might match the return type of a gcc2
10138    builtin and then its argument prototype would still apply.  */
10139 char FT_Init_FreeType ();
10140 int
10141 main ()
10142 {
10143 FT_Init_FreeType ();
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150   (eval $ac_link) 2>conftest.er1
10151   ac_status=$?
10152   grep -v '^ *+' conftest.er1 >conftest.err
10153   rm -f conftest.er1
10154   cat conftest.err >&5
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); } &&
10157          { ac_try='test -z "$ac_c_werror_flag"
10158                          || test ! -s conftest.err'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; } &&
10164          { ac_try='test -s conftest$ac_exeext'
10165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166   (eval $ac_try) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; }; then
10170   ac_cv_lib_freetype_FT_Init_FreeType=yes
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 ac_cv_lib_freetype_FT_Init_FreeType=no
10176 fi
10177 rm -f conftest.err conftest.$ac_objext \
10178       conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10180 fi
10181 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10182 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10183 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10184   HAVE_LIB_FREETYPE=1
10185 fi
10186
10187
10188 for ac_header in freetype/freetype.h
10189 do
10190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10192   echo "$as_me:$LINENO: checking for $ac_header" >&5
10193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10195   echo $ECHO_N "(cached) $ECHO_C" >&6
10196 fi
10197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10199 else
10200   # Is the header compilable?
10201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h.  */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h.  */
10209 $ac_includes_default
10210 #include <$ac_header>
10211 _ACEOF
10212 rm -f conftest.$ac_objext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10214   (eval $ac_compile) 2>conftest.er1
10215   ac_status=$?
10216   grep -v '^ *+' conftest.er1 >conftest.err
10217   rm -f conftest.er1
10218   cat conftest.err >&5
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); } &&
10221          { ac_try='test -z "$ac_c_werror_flag"
10222                          || test ! -s conftest.err'
10223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224   (eval $ac_try) 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; } &&
10228          { ac_try='test -s conftest.$ac_objext'
10229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230   (eval $ac_try) 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); }; }; then
10234   ac_header_compiler=yes
10235 else
10236   echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10238
10239 ac_header_compiler=no
10240 fi
10241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10243 echo "${ECHO_T}$ac_header_compiler" >&6
10244
10245 # Is the header present?
10246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10248 cat >conftest.$ac_ext <<_ACEOF
10249 /* confdefs.h.  */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h.  */
10254 #include <$ac_header>
10255 _ACEOF
10256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10258   ac_status=$?
10259   grep -v '^ *+' conftest.er1 >conftest.err
10260   rm -f conftest.er1
10261   cat conftest.err >&5
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); } >/dev/null; then
10264   if test -s conftest.err; then
10265     ac_cpp_err=$ac_c_preproc_warn_flag
10266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10267   else
10268     ac_cpp_err=
10269   fi
10270 else
10271   ac_cpp_err=yes
10272 fi
10273 if test -z "$ac_cpp_err"; then
10274   ac_header_preproc=yes
10275 else
10276   echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10278
10279   ac_header_preproc=no
10280 fi
10281 rm -f conftest.err conftest.$ac_ext
10282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10283 echo "${ECHO_T}$ac_header_preproc" >&6
10284
10285 # So?  What about this header?
10286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10287   yes:no: )
10288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10292     ac_header_preproc=yes
10293     ;;
10294   no:yes:* )
10295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10307     (
10308       cat <<\_ASBOX
10309 ## ------------------------------------------ ##
10310 ## Report this to the AC_PACKAGE_NAME lists.  ##
10311 ## ------------------------------------------ ##
10312 _ASBOX
10313     ) |
10314       sed "s/^/$as_me: WARNING:     /" >&2
10315     ;;
10316 esac
10317 echo "$as_me:$LINENO: checking for $ac_header" >&5
10318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10320   echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322   eval "$as_ac_Header=\$ac_header_preproc"
10323 fi
10324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10326
10327 fi
10328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10329   cat >>confdefs.h <<_ACEOF
10330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10331 _ACEOF
10332  HAVE_FREETYPE_FREETYPE_H=1
10333 fi
10334
10335 done
10336
10337
10338 for ac_header in ft2build.h
10339 do
10340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10342   echo "$as_me:$LINENO: checking for $ac_header" >&5
10343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10345   echo $ECHO_N "(cached) $ECHO_C" >&6
10346 fi
10347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10349 else
10350   # Is the header compilable?
10351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h.  */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h.  */
10359 $ac_includes_default
10360 #include <$ac_header>
10361 _ACEOF
10362 rm -f conftest.$ac_objext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10364   (eval $ac_compile) 2>conftest.er1
10365   ac_status=$?
10366   grep -v '^ *+' conftest.er1 >conftest.err
10367   rm -f conftest.er1
10368   cat conftest.err >&5
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } &&
10371          { ac_try='test -z "$ac_c_werror_flag"
10372                          || test ! -s conftest.err'
10373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374   (eval $ac_try) 2>&5
10375   ac_status=$?
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); }; } &&
10378          { ac_try='test -s conftest.$ac_objext'
10379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380   (eval $ac_try) 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); }; }; then
10384   ac_header_compiler=yes
10385 else
10386   echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389 ac_header_compiler=no
10390 fi
10391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10393 echo "${ECHO_T}$ac_header_compiler" >&6
10394
10395 # Is the header present?
10396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10398 cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h.  */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h.  */
10404 #include <$ac_header>
10405 _ACEOF
10406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10408   ac_status=$?
10409   grep -v '^ *+' conftest.er1 >conftest.err
10410   rm -f conftest.er1
10411   cat conftest.err >&5
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } >/dev/null; then
10414   if test -s conftest.err; then
10415     ac_cpp_err=$ac_c_preproc_warn_flag
10416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10417   else
10418     ac_cpp_err=
10419   fi
10420 else
10421   ac_cpp_err=yes
10422 fi
10423 if test -z "$ac_cpp_err"; then
10424   ac_header_preproc=yes
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429   ac_header_preproc=no
10430 fi
10431 rm -f conftest.err conftest.$ac_ext
10432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10433 echo "${ECHO_T}$ac_header_preproc" >&6
10434
10435 # So?  What about this header?
10436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10437   yes:no: )
10438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10442     ac_header_preproc=yes
10443     ;;
10444   no:yes:* )
10445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10457     (
10458       cat <<\_ASBOX
10459 ## ------------------------------------------ ##
10460 ## Report this to the AC_PACKAGE_NAME lists.  ##
10461 ## ------------------------------------------ ##
10462 _ASBOX
10463     ) |
10464       sed "s/^/$as_me: WARNING:     /" >&2
10465     ;;
10466 esac
10467 echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10470   echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472   eval "$as_ac_Header=\$ac_header_preproc"
10473 fi
10474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10476
10477 fi
10478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10479   cat >>confdefs.h <<_ACEOF
10480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10481 _ACEOF
10482  HAVE_FT2BUILD_H=1
10483 fi
10484
10485 done
10486
10487
10488 if test "x${HAVE_LIB_FREETYPE}" != "x";then
10489 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
10490     HAVE_FREETYPE=1
10491 fi
10492 fi
10493
10494 if test "x${HAVE_FREETYPE}" = "x1"; then
10495     if test "x{$FREETYPE_CONFIG}" != "x"; then
10496         LIBS="$LIBS "`freetype-config --libs`
10497     else
10498         LIBS="$LIBS -lfreetype"
10499     fi
10500
10501 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10502     HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10503 fi
10504
10505     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10506 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10507
10508     cat > conftest.c << EOF
10509 $HAVE_FT2BUILD_H_DEFINE
10510
10511 #ifdef HAVE_FT2BUILD_H
10512 #include <ft2build.h>
10513 #include FT_FREETYPE_H
10514 #include FT_GLYPH_H
10515 #include FT_SIZES_H
10516 #include FT_SFNT_NAMES_H
10517 #include FT_TRUETYPE_IDS_H
10518 #include FT_OUTLINE_H
10519 #else
10520 #include <freetype/freetype.h>
10521 #include <freetype/ftglyph.h>
10522 #include <freetype/ftsizes.h>
10523 #include <freetype/ftsnames.h>
10524 #include <freetype/ttnameid.h>
10525 #include <freetype/ftoutln.h>
10526 #endif
10527
10528 int main()
10529 {
10530     FT_Library ftlibrary;
10531     FT_Face face;
10532     FT_Error error;
10533     FT_ULong charcode;
10534     FT_UInt gindex;
10535     FT_Glyph glyph;
10536     FT_BBox bbox;
10537     FT_Matrix matrix;
10538     FT_UInt i;
10539     char* name = 0;
10540     char italic, bold;
10541
10542     FT_Init_FreeType(&ftlibrary);
10543     FT_New_Face(ftlibrary, "filename", 0, &face);
10544     i = face->num_glyphs - 1;
10545     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10546     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10547     FT_Get_Postscript_Name(face);
10548     FT_Get_Char_Index(face, 33);
10549     FT_Get_First_Char(face, &i);
10550     FT_Get_Next_Char(face, 33, &i);
10551     if(FT_HAS_GLYPH_NAMES(face)) {
10552         FT_Get_Glyph_Name(face, 33, name, 127);
10553     }
10554     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10555     FT_Get_Glyph(face->glyph, &glyph);
10556     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10557     FT_Done_Glyph(glyph);
10558     FT_Done_Face(face);
10559     FT_Done_FreeType(ftlibrary);
10560     return 0;
10561 }
10562 EOF
10563
10564     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10565     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10566         echo "$as_me:$LINENO: result: yes" >&5
10567 echo "${ECHO_T}yes" >&6
10568         cat >>confdefs.h <<_ACEOF
10569 #define HAVE_FREETYPE 1
10570 _ACEOF
10571
10572         cat >>confdefs.h <<_ACEOF
10573 #define USE_FREETYPE 1
10574 _ACEOF
10575   # for ttf2tp1
10576     else
10577         echo "configure: failed program was:" >&5
10578         cat conftest.c >&5
10579         HAVE_FREETYPE=0
10580         echo "$as_me:$LINENO: result: no" >&5
10581 echo "${ECHO_T}no" >&6
10582     fi
10583     rm -f conftest*
10584 fi
10585
10586 # if the above didn't work out, reset all changes to the compiler variables.
10587 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
10588     CPPFLAGS=$OLDCPPFLAGS
10589     LIBS=$OLDLIBS
10590 fi
10591
10592
10593 # ------------------------------------------------------------------
10594
10595 lame_objects=
10596 lame_makefile=
10597 if test "x${DISABLE_LAME}" = "xtrue"; then
10598     echo "*" Disabling lame support...
10599 else
10600     # old lame code at lib/lame
10601     if test -f lib/lame/Makefile.in; then
10602         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"
10603         lame_makefile="lib/lame/Makefile"
10604         CPPFLAGS="$CPPFLAGS -Ilame"
10605         cat >>confdefs.h <<_ACEOF
10606 #define HAVE_LAME 1
10607 _ACEOF
10608
10609     else
10610         if test -d /usr/include/lame; then
10611             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10612         else
10613             if test -d /usr/local/include/lame; then
10614                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10615             fi
10616         fi
10617
10618 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10619 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10620 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623   ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-lmp3lame  $LIBS"
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h.  */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h.  */
10631
10632 /* Override any gcc2 internal prototype to avoid an error.  */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 /* We use char because int might match the return type of a gcc2
10637    builtin and then its argument prototype would still apply.  */
10638 char lame_init ();
10639 int
10640 main ()
10641 {
10642 lame_init ();
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649   (eval $ac_link) 2>conftest.er1
10650   ac_status=$?
10651   grep -v '^ *+' conftest.er1 >conftest.err
10652   rm -f conftest.er1
10653   cat conftest.err >&5
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); } &&
10656          { ac_try='test -z "$ac_c_werror_flag"
10657                          || test ! -s conftest.err'
10658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659   (eval $ac_try) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); }; } &&
10663          { ac_try='test -s conftest$ac_exeext'
10664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665   (eval $ac_try) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; }; then
10669   ac_cv_lib_mp3lame_lame_init=yes
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674 ac_cv_lib_mp3lame_lame_init=no
10675 fi
10676 rm -f conftest.err conftest.$ac_objext \
10677       conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10679 fi
10680 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
10681 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
10682 if test $ac_cv_lib_mp3lame_lame_init = yes; then
10683   cat >>confdefs.h <<_ACEOF
10684 #define HAVE_LIBMP3LAME 1
10685 _ACEOF
10686
10687   LIBS="-lmp3lame $LIBS"
10688
10689 else
10690   NO_LIBMP3LAME=1
10691 fi
10692
10693
10694 for ac_header in lame.h
10695 do
10696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10698   echo "$as_me:$LINENO: checking for $ac_header" >&5
10699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 fi
10703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10705 else
10706   # Is the header compilable?
10707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715 $ac_includes_default
10716 #include <$ac_header>
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720   (eval $ac_compile) 2>conftest.er1
10721   ac_status=$?
10722   grep -v '^ *+' conftest.er1 >conftest.err
10723   rm -f conftest.er1
10724   cat conftest.err >&5
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } &&
10727          { ac_try='test -z "$ac_c_werror_flag"
10728                          || test ! -s conftest.err'
10729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730   (eval $ac_try) 2>&5
10731   ac_status=$?
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); }; } &&
10734          { ac_try='test -s conftest.$ac_objext'
10735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736   (eval $ac_try) 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }; }; then
10740   ac_header_compiler=yes
10741 else
10742   echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745 ac_header_compiler=no
10746 fi
10747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10749 echo "${ECHO_T}$ac_header_compiler" >&6
10750
10751 # Is the header present?
10752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h.  */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h.  */
10760 #include <$ac_header>
10761 _ACEOF
10762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10764   ac_status=$?
10765   grep -v '^ *+' conftest.er1 >conftest.err
10766   rm -f conftest.er1
10767   cat conftest.err >&5
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } >/dev/null; then
10770   if test -s conftest.err; then
10771     ac_cpp_err=$ac_c_preproc_warn_flag
10772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10773   else
10774     ac_cpp_err=
10775   fi
10776 else
10777   ac_cpp_err=yes
10778 fi
10779 if test -z "$ac_cpp_err"; then
10780   ac_header_preproc=yes
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785   ac_header_preproc=no
10786 fi
10787 rm -f conftest.err conftest.$ac_ext
10788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789 echo "${ECHO_T}$ac_header_preproc" >&6
10790
10791 # So?  What about this header?
10792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10793   yes:no: )
10794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798     ac_header_preproc=yes
10799     ;;
10800   no:yes:* )
10801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10813     (
10814       cat <<\_ASBOX
10815 ## ------------------------------------------ ##
10816 ## Report this to the AC_PACKAGE_NAME lists.  ##
10817 ## ------------------------------------------ ##
10818 _ASBOX
10819     ) |
10820       sed "s/^/$as_me: WARNING:     /" >&2
10821     ;;
10822 esac
10823 echo "$as_me:$LINENO: checking for $ac_header" >&5
10824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828   eval "$as_ac_Header=\$ac_header_preproc"
10829 fi
10830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10832
10833 fi
10834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10835   cat >>confdefs.h <<_ACEOF
10836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10837 _ACEOF
10838
10839 fi
10840
10841 done
10842
10843         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
10844             cat >>confdefs.h <<_ACEOF
10845 #define HAVE_LAME 1
10846 _ACEOF
10847
10848         fi
10849     fi
10850 fi
10851
10852
10853 # ------------------------------------------------------------------
10854
10855
10856
10857 for ac_prog in avifile-config
10858 do
10859   # Extract the first word of "$ac_prog", so it can be a program name with args.
10860 set dummy $ac_prog; ac_word=$2
10861 echo "$as_me:$LINENO: checking for $ac_word" >&5
10862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10863 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10864   echo $ECHO_N "(cached) $ECHO_C" >&6
10865 else
10866   if test -n "$AVIFILE_CONFIG"; then
10867   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10868 else
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10871 do
10872   IFS=$as_save_IFS
10873   test -z "$as_dir" && as_dir=.
10874   for ac_exec_ext in '' $ac_executable_extensions; do
10875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10878     break 2
10879   fi
10880 done
10881 done
10882
10883 fi
10884 fi
10885 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10886 if test -n "$AVIFILE_CONFIG"; then
10887   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10888 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10889 else
10890   echo "$as_me:$LINENO: result: no" >&5
10891 echo "${ECHO_T}no" >&6
10892 fi
10893
10894   test -n "$AVIFILE_CONFIG" && break
10895 done
10896
10897
10898 if test "x$AVIFILE_CONFIG" '!=' "x";then
10899     OLDCPPFLAGS="$CPPFLAGS"
10900     #OLDLDFLAGS="$LDFLAGS"
10901     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10902     #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10903
10904
10905 for ac_header in avifile/version.h version.h
10906 do
10907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10909   echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 fi
10914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10916 else
10917   # Is the header compilable?
10918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h.  */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h.  */
10926 $ac_includes_default
10927 #include <$ac_header>
10928 _ACEOF
10929 rm -f conftest.$ac_objext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10931   (eval $ac_compile) 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } &&
10938          { ac_try='test -z "$ac_c_werror_flag"
10939                          || test ! -s conftest.err'
10940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941   (eval $ac_try) 2>&5
10942   ac_status=$?
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); }; } &&
10945          { ac_try='test -s conftest.$ac_objext'
10946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947   (eval $ac_try) 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; }; then
10951   ac_header_compiler=yes
10952 else
10953   echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10955
10956 ac_header_compiler=no
10957 fi
10958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10960 echo "${ECHO_T}$ac_header_compiler" >&6
10961
10962 # Is the header present?
10963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971 #include <$ac_header>
10972 _ACEOF
10973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10975   ac_status=$?
10976   grep -v '^ *+' conftest.er1 >conftest.err
10977   rm -f conftest.er1
10978   cat conftest.err >&5
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); } >/dev/null; then
10981   if test -s conftest.err; then
10982     ac_cpp_err=$ac_c_preproc_warn_flag
10983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10984   else
10985     ac_cpp_err=
10986   fi
10987 else
10988   ac_cpp_err=yes
10989 fi
10990 if test -z "$ac_cpp_err"; then
10991   ac_header_preproc=yes
10992 else
10993   echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10995
10996   ac_header_preproc=no
10997 fi
10998 rm -f conftest.err conftest.$ac_ext
10999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11000 echo "${ECHO_T}$ac_header_preproc" >&6
11001
11002 # So?  What about this header?
11003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11004   yes:no: )
11005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11009     ac_header_preproc=yes
11010     ;;
11011   no:yes:* )
11012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11014     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11015 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11016     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11018     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11019 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11022     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11024     (
11025       cat <<\_ASBOX
11026 ## ------------------------------------------ ##
11027 ## Report this to the AC_PACKAGE_NAME lists.  ##
11028 ## ------------------------------------------ ##
11029 _ASBOX
11030     ) |
11031       sed "s/^/$as_me: WARNING:     /" >&2
11032     ;;
11033 esac
11034 echo "$as_me:$LINENO: checking for $ac_header" >&5
11035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11037   echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039   eval "$as_ac_Header=\$ac_header_preproc"
11040 fi
11041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11043
11044 fi
11045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11046   cat >>confdefs.h <<_ACEOF
11047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11048 _ACEOF
11049
11050 fi
11051
11052 done
11053
11054     #LDFLAGS="$OLDLDFLAGS"
11055     CPPFLAGS="$OLDCPPFLAGS"
11056 fi
11057
11058 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11059 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11060
11061 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11062     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11063 fi
11064 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11065     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11066 fi
11067
11068 cat > conftest.cpp << EOF
11069
11070 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11071 // so we have to introduce them this way
11072 $HAVE_VERSION_H_DEFINE
11073 $HAVE_AVIFILE_VERSION_H_DEFINE
11074
11075 #ifdef HAVE_VERSION_H
11076   #include <version.h>
11077 #endif
11078 #ifdef HAVE_AVIFILE_VERSION_H
11079   #include <avifile/version.h>
11080 #endif
11081
11082 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11083    #include <avifile.h>
11084    #include <aviplay.h>
11085    #include <fourcc.h>
11086    #include <creators.h>
11087    #include <StreamInfo.h>
11088    #define VERSION6
11089 #else
11090    #include <avifile.h>
11091    #include <aviplay.h>
11092    #include <aviutil.h>
11093    #define Width width
11094    #define Height height
11095    #define Data data
11096    #define Bpp bpp
11097 #endif
11098
11099 void test()
11100 {
11101   IAviReadFile* player;
11102   IAviReadStream* astream;
11103   IAviReadStream* vstream;
11104   player = CreateIAviReadFile(0);
11105   astream = player->GetStream(0, AviStream::Audio);
11106   vstream = player->GetStream(0, AviStream::Video);
11107   vstream -> StartStreaming();
11108   astream -> StartStreaming();
11109 #ifndef VERSION6
11110   MainAVIHeader head;
11111   player->GetFileHeader(&head);
11112   head.dwMicroSecPerFrame;
11113   head.dwTotalFrames;
11114   head.dwStreams;
11115   head.dwWidth;
11116   head.dwHeight;
11117   head.dwMicroSecPerFrame;
11118   astream->GetEndPos(),
11119   astream->GetEndTime());
11120   player->StreamCount();
11121 #else
11122   StreamInfo*audioinfo;
11123   StreamInfo*videoinfo;
11124   audioinfo = astream->GetStreamInfo();
11125   videoinfo = vstream->GetStreamInfo();
11126   videoinfo->GetVideoWidth();
11127   videoinfo->GetVideoHeight();
11128   audioinfo->GetAudioSamplesPerSec();
11129   videoinfo->GetFps();
11130 #endif
11131   CImage*img = vstream->GetFrame();
11132   img->ToRGB();
11133   img->Data();
11134   img->Bpp();
11135   img->Width();
11136   img->Height();
11137   WAVEFORMATEX wave;
11138   astream->GetAudioFormatInfo(&wave,0);
11139   uint_t a,b;
11140   astream->ReadFrames(0,0,0,a,b);
11141 }
11142 int main (int argc, char*argv)
11143 {
11144     return 0;
11145 }
11146 EOF
11147
11148 if test "x$AVIFILE_CONFIG" '!=' "x";then
11149     ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
11150     if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11151       echo "$as_me:$LINENO: result: yes" >&5
11152 echo "${ECHO_T}yes" >&6
11153       AVIFILE=true
11154       export AVIFILE
11155       cat >>confdefs.h <<_ACEOF
11156 #define AVIFILE true
11157 _ACEOF
11158
11159     else
11160       echo "configure: failed program was:" >&5
11161       cat conftest.cpp >&5
11162       echo "$as_me:$LINENO: result: no" >&5
11163 echo "${ECHO_T}no" >&6
11164     fi
11165 else
11166     echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6
11168 fi
11169 rm -f conftest*
11170
11171
11172 # ------------------------------------------------------------------
11173
11174 if test "x${UNCOMPRESS}" = "xgzip"; then
11175     cat >>confdefs.h <<_ACEOF
11176 #define USE_GZIP 1
11177 _ACEOF
11178
11179 fi
11180
11181
11182 # ------------------------------------------------------------------
11183
11184
11185 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11186 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11187 # should we support python versions below 2.2?
11188 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
11189     PY_VERSION=2.2
11190 fi
11191 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
11192     PY_VERSION=2.3
11193 fi
11194 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
11195     PY_VERSION=2.4
11196 fi
11197
11198 if test "x$PY_VERSION" "!=" "x"; then
11199     echo "$as_me:$LINENO: result: python$PY_VERSION" >&5
11200 echo "${ECHO_T}python$PY_VERSION" >&6
11201     if test "x$PYTHON_LIB" = "x";then
11202         PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11203     fi
11204     if test "x$PYTHON_INCLUDES" = "x";then
11205         PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11206     fi
11207     export PYTHON_INCLUDES PYTHON_LIB
11208
11209
11210     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11211 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11212
11213     cat > conftest.c << EOF
11214 #include <Python.h>
11215 #include <Imaging.h>
11216
11217 int main(int argn, char*argv)
11218 {
11219     return Py_Main(argn, argv);
11220 }
11221 bli bla blo
11222 EOF
11223     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11224     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11225         echo "$as_me:$LINENO: result: yes" >&5
11226 echo "${ECHO_T}yes" >&6
11227         PYTHON_OK=yes
11228     else
11229         echo "configure: failed program was:" >&5
11230         cat conftest.c >&5
11231         echo "$as_me:$LINENO: result: no" >&5
11232 echo "${ECHO_T}no" >&6
11233     fi
11234     rm -f conftest*
11235 else
11236     echo "$as_me:$LINENO: result: nope" >&5
11237 echo "${ECHO_T}nope" >&6
11238 fi
11239
11240
11241 if test "x$PYTHON_OK" '!=' "xyes";then
11242     echo all install uninstall clean: > lib/python/Makefile
11243     # fail silently- the most users won't have any need for the
11244     # python interface anyway
11245 else
11246     pythonrfxswf="lib/python/Makefile"
11247 fi
11248
11249 # ------------------------------------------------------------------
11250
11251 echo "$as_me:$LINENO: checking for missing libraries" >&5
11252 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11253
11254 if test "x$ZLIBMISSING" = "xtrue";then
11255     MISSINGLIBS="${MISSINGLIBS} zlib"
11256     DISABLEPNG2SWF=true;
11257 fi
11258 if test "x$JPEGLIBMISSING" = "xtrue";then
11259     MISSINGLIBS="${MISSINGLIBS} jpeglib"
11260     DISABLEPDF2SWF=true;
11261     DISABLEJPEG2SWF=true;
11262 fi
11263 if test "x$T1LIBMISSING" = "xtrue";then
11264     MISSINGLIBS="${MISSINGLIBS} t1lib"
11265 fi
11266
11267 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
11268  DISABLEPDF2SWF=true;
11269  DISABLEJPEG2SWF=true;
11270  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11271 fi
11272 if test "x$HAVE_FREETYPE" != "x1"; then
11273  DISABLEPDF2SWF=true;
11274  MISSINGLIBS="${MISSINGLIBS} freetype"
11275 fi
11276 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
11277  DISABLEPDF2SWF=true;
11278  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11279 fi
11280 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
11281  DISABLEPNG2SWF=true;
11282  MISSINGLIBS="${MISSINGLIBS} zlib.h"
11283 fi
11284 if test "x${AVIFILE}" != "xtrue"; then
11285  MISSINGLIBS="${MISSINGLIBS} avifile"
11286 fi
11287
11288 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11289 echo "${ECHO_T}${MISSINGLIBS}" >&6
11290
11291 # ------------------------------------------------------------------
11292
11293 if test "x${MISSINGLIBS}" '!=' "x"; then
11294   echo "***************************************************"
11295   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11296 fi
11297
11298 avi2swf="avi2swf/Makefile"
11299 if test "x${AVIFILE}" != "xtrue"; then
11300  echo "* Disabling avi2swf tool..."
11301  echo all install uninstall clean: > avi2swf/Makefile
11302  avi2swf=
11303 fi
11304
11305 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11306 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11307   echo "* Disabling pdf2swf tool..."
11308   rm -f pdf2swf/Makefile
11309   echo all install uninstall clean: > pdf2swf/Makefile
11310   pdf2swf_makefile=""
11311 fi
11312
11313 if test "x${ZLIBMISSING}" = "xtrue"; then
11314   echo
11315   echo "* Warning! Without zlib, you will not be able to read"
11316   echo "* or write compressed Flash MX files!"
11317 fi
11318
11319 JPEG2SWF='jpeg2swf$(E)'
11320 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11321   echo "* Disabling jpeg2swf tool..."
11322   JPEG2SWF=
11323 fi
11324 export JPEG2SWF
11325
11326
11327 PNG2SWF='png2swf$(E)'
11328 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11329   echo "* Disabling png2swf tool..."
11330   PNG2SWF=
11331 fi
11332 export PNG2SWF
11333
11334
11335 if test "x${MISSINGLIBS}" '!=' "x"; then
11336   echo "***************************************************"
11337 fi
11338
11339 # ------------------------------------------------------------------
11340
11341 FILES="./release Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11342
11343           ac_config_files="$ac_config_files ${FILES}"
11344
11345 cat >confcache <<\_ACEOF
11346 # This file is a shell script that caches the results of configure
11347 # tests run on this system so they can be shared between configure
11348 # scripts and configure runs, see configure's option --config-cache.
11349 # It is not useful on other systems.  If it contains results you don't
11350 # want to keep, you may remove or edit it.
11351 #
11352 # config.status only pays attention to the cache file if you give it
11353 # the --recheck option to rerun configure.
11354 #
11355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11357 # following values.
11358
11359 _ACEOF
11360
11361 # The following way of writing the cache mishandles newlines in values,
11362 # but we know of no workaround that is simple, portable, and efficient.
11363 # So, don't put newlines in cache variables' values.
11364 # Ultrix sh set writes to stderr and can't be redirected directly,
11365 # and sets the high bit in the cache file unless we assign to the vars.
11366 {
11367   (set) 2>&1 |
11368     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11369     *ac_space=\ *)
11370       # `set' does not quote correctly, so add quotes (double-quote
11371       # substitution turns \\\\ into \\, and sed turns \\ into \).
11372       sed -n \
11373         "s/'/'\\\\''/g;
11374           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11375       ;;
11376     *)
11377       # `set' quotes correctly as required by POSIX, so do not add quotes.
11378       sed -n \
11379         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11380       ;;
11381     esac;
11382 } |
11383   sed '
11384      t clear
11385      : clear
11386      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11387      t end
11388      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11389      : end' >>confcache
11390 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11391   if test -w $cache_file; then
11392     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11393     cat confcache >$cache_file
11394   else
11395     echo "not updating unwritable cache $cache_file"
11396   fi
11397 fi
11398 rm -f confcache
11399
11400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11401 # Let make expand exec_prefix.
11402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11403
11404 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11405 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11406 # trailing colons and then remove the whole line if VPATH becomes empty
11407 # (actually we leave an empty line to preserve line numbers).
11408 if test "x$srcdir" = x.; then
11409   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11410 s/:*\$(srcdir):*/:/;
11411 s/:*\${srcdir}:*/:/;
11412 s/:*@srcdir@:*/:/;
11413 s/^\([^=]*=[     ]*\):*/\1/;
11414 s/:*$//;
11415 s/^[^=]*=[       ]*$//;
11416 }'
11417 fi
11418
11419 DEFS=-DHAVE_CONFIG_H
11420
11421 ac_libobjs=
11422 ac_ltlibobjs=
11423 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11424   # 1. Remove the extension, and $U if already installed.
11425   ac_i=`echo "$ac_i" |
11426          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11427   # 2. Add them.
11428   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11429   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11430 done
11431 LIBOBJS=$ac_libobjs
11432
11433 LTLIBOBJS=$ac_ltlibobjs
11434
11435
11436
11437 : ${CONFIG_STATUS=./config.status}
11438 ac_clean_files_save=$ac_clean_files
11439 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11440 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11441 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11442 cat >$CONFIG_STATUS <<_ACEOF
11443 #! $SHELL
11444 # Generated by $as_me.
11445 # Run this file to recreate the current configuration.
11446 # Compiler output produced by configure, useful for debugging
11447 # configure, is in config.log if it exists.
11448
11449 debug=false
11450 ac_cs_recheck=false
11451 ac_cs_silent=false
11452 SHELL=\${CONFIG_SHELL-$SHELL}
11453 _ACEOF
11454
11455 cat >>$CONFIG_STATUS <<\_ACEOF
11456 ## --------------------- ##
11457 ## M4sh Initialization.  ##
11458 ## --------------------- ##
11459
11460 # Be Bourne compatible
11461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11462   emulate sh
11463   NULLCMD=:
11464   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11465   # is contrary to our usage.  Disable this feature.
11466   alias -g '${1+"$@"}'='"$@"'
11467 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11468   set -o posix
11469 fi
11470 DUALCASE=1; export DUALCASE # for MKS sh
11471
11472 # Support unset when possible.
11473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11474   as_unset=unset
11475 else
11476   as_unset=false
11477 fi
11478
11479
11480 # Work around bugs in pre-3.0 UWIN ksh.
11481 $as_unset ENV MAIL MAILPATH
11482 PS1='$ '
11483 PS2='> '
11484 PS4='+ '
11485
11486 # NLS nuisances.
11487 for as_var in \
11488   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11489   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11490   LC_TELEPHONE LC_TIME
11491 do
11492   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11493     eval $as_var=C; export $as_var
11494   else
11495     $as_unset $as_var
11496   fi
11497 done
11498
11499 # Required to use basename.
11500 if expr a : '\(a\)' >/dev/null 2>&1; then
11501   as_expr=expr
11502 else
11503   as_expr=false
11504 fi
11505
11506 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11507   as_basename=basename
11508 else
11509   as_basename=false
11510 fi
11511
11512
11513 # Name of the executable.
11514 as_me=`$as_basename "$0" ||
11515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11516          X"$0" : 'X\(//\)$' \| \
11517          X"$0" : 'X\(/\)$' \| \
11518          .     : '\(.\)' 2>/dev/null ||
11519 echo X/"$0" |
11520     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11521           /^X\/\(\/\/\)$/{ s//\1/; q; }
11522           /^X\/\(\/\).*/{ s//\1/; q; }
11523           s/.*/./; q'`
11524
11525
11526 # PATH needs CR, and LINENO needs CR and PATH.
11527 # Avoid depending upon Character Ranges.
11528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11531 as_cr_digits='0123456789'
11532 as_cr_alnum=$as_cr_Letters$as_cr_digits
11533
11534 # The user is always right.
11535 if test "${PATH_SEPARATOR+set}" != set; then
11536   echo "#! /bin/sh" >conf$$.sh
11537   echo  "exit 0"   >>conf$$.sh
11538   chmod +x conf$$.sh
11539   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11540     PATH_SEPARATOR=';'
11541   else
11542     PATH_SEPARATOR=:
11543   fi
11544   rm -f conf$$.sh
11545 fi
11546
11547
11548   as_lineno_1=$LINENO
11549   as_lineno_2=$LINENO
11550   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11551   test "x$as_lineno_1" != "x$as_lineno_2" &&
11552   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11553   # Find who we are.  Look in the path if we contain no path at all
11554   # relative or not.
11555   case $0 in
11556     *[\\/]* ) as_myself=$0 ;;
11557     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11559 do
11560   IFS=$as_save_IFS
11561   test -z "$as_dir" && as_dir=.
11562   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11563 done
11564
11565        ;;
11566   esac
11567   # We did not find ourselves, most probably we were run as `sh COMMAND'
11568   # in which case we are not to be found in the path.
11569   if test "x$as_myself" = x; then
11570     as_myself=$0
11571   fi
11572   if test ! -f "$as_myself"; then
11573     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11574 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11575    { (exit 1); exit 1; }; }
11576   fi
11577   case $CONFIG_SHELL in
11578   '')
11579     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11581 do
11582   IFS=$as_save_IFS
11583   test -z "$as_dir" && as_dir=.
11584   for as_base in sh bash ksh sh5; do
11585          case $as_dir in
11586          /*)
11587            if ("$as_dir/$as_base" -c '
11588   as_lineno_1=$LINENO
11589   as_lineno_2=$LINENO
11590   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11591   test "x$as_lineno_1" != "x$as_lineno_2" &&
11592   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11593              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11594              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11595              CONFIG_SHELL=$as_dir/$as_base
11596              export CONFIG_SHELL
11597              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11598            fi;;
11599          esac
11600        done
11601 done
11602 ;;
11603   esac
11604
11605   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11606   # uniformly replaced by the line number.  The first 'sed' inserts a
11607   # line-number line before each line; the second 'sed' does the real
11608   # work.  The second script uses 'N' to pair each line-number line
11609   # with the numbered line, and appends trailing '-' during
11610   # substitution so that $LINENO is not a special case at line end.
11611   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11612   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11613   sed '=' <$as_myself |
11614     sed '
11615       N
11616       s,$,-,
11617       : loop
11618       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11619       t loop
11620       s,-$,,
11621       s,^['$as_cr_digits']*\n,,
11622     ' >$as_me.lineno &&
11623   chmod +x $as_me.lineno ||
11624     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11625 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11626    { (exit 1); exit 1; }; }
11627
11628   # Don't try to exec as it changes $[0], causing all sort of problems
11629   # (the dirname of $[0] is not the place where we might find the
11630   # original and so on.  Autoconf is especially sensible to this).
11631   . ./$as_me.lineno
11632   # Exit status is that of the last command.
11633   exit
11634 }
11635
11636
11637 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11638   *c*,-n*) ECHO_N= ECHO_C='
11639 ' ECHO_T='      ' ;;
11640   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11641   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11642 esac
11643
11644 if expr a : '\(a\)' >/dev/null 2>&1; then
11645   as_expr=expr
11646 else
11647   as_expr=false
11648 fi
11649
11650 rm -f conf$$ conf$$.exe conf$$.file
11651 echo >conf$$.file
11652 if ln -s conf$$.file conf$$ 2>/dev/null; then
11653   # We could just check for DJGPP; but this test a) works b) is more generic
11654   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11655   if test -f conf$$.exe; then
11656     # Don't use ln at all; we don't have any links
11657     as_ln_s='cp -p'
11658   else
11659     as_ln_s='ln -s'
11660   fi
11661 elif ln conf$$.file conf$$ 2>/dev/null; then
11662   as_ln_s=ln
11663 else
11664   as_ln_s='cp -p'
11665 fi
11666 rm -f conf$$ conf$$.exe conf$$.file
11667
11668 if mkdir -p . 2>/dev/null; then
11669   as_mkdir_p=:
11670 else
11671   test -d ./-p && rmdir ./-p
11672   as_mkdir_p=false
11673 fi
11674
11675 as_executable_p="test -f"
11676
11677 # Sed expression to map a string onto a valid CPP name.
11678 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11679
11680 # Sed expression to map a string onto a valid variable name.
11681 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11682
11683
11684 # IFS
11685 # We need space, tab and new line, in precisely that order.
11686 as_nl='
11687 '
11688 IFS="   $as_nl"
11689
11690 # CDPATH.
11691 $as_unset CDPATH
11692
11693 exec 6>&1
11694
11695 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11696 # report actual input values of CONFIG_FILES etc. instead of their
11697 # values after options handling.  Logging --version etc. is OK.
11698 exec 5>>config.log
11699 {
11700   echo
11701   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11702 ## Running $as_me. ##
11703 _ASBOX
11704 } >&5
11705 cat >&5 <<_CSEOF
11706
11707 This file was extended by $as_me, which was
11708 generated by GNU Autoconf 2.59.  Invocation command line was
11709
11710   CONFIG_FILES    = $CONFIG_FILES
11711   CONFIG_HEADERS  = $CONFIG_HEADERS
11712   CONFIG_LINKS    = $CONFIG_LINKS
11713   CONFIG_COMMANDS = $CONFIG_COMMANDS
11714   $ $0 $@
11715
11716 _CSEOF
11717 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11718 echo >&5
11719 _ACEOF
11720
11721 # Files that config.status was made for.
11722 if test -n "$ac_config_files"; then
11723   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11724 fi
11725
11726 if test -n "$ac_config_headers"; then
11727   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11728 fi
11729
11730 if test -n "$ac_config_links"; then
11731   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11732 fi
11733
11734 if test -n "$ac_config_commands"; then
11735   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11736 fi
11737
11738 cat >>$CONFIG_STATUS <<\_ACEOF
11739
11740 ac_cs_usage="\
11741 \`$as_me' instantiates files from templates according to the
11742 current configuration.
11743
11744 Usage: $0 [OPTIONS] [FILE]...
11745
11746   -h, --help       print this help, then exit
11747   -V, --version    print version number, then exit
11748   -q, --quiet      do not print progress messages
11749   -d, --debug      don't remove temporary files
11750       --recheck    update $as_me by reconfiguring in the same conditions
11751   --file=FILE[:TEMPLATE]
11752                    instantiate the configuration file FILE
11753   --header=FILE[:TEMPLATE]
11754                    instantiate the configuration header FILE
11755
11756 Configuration files:
11757 $config_files
11758
11759 Configuration headers:
11760 $config_headers
11761
11762 Report bugs to <bug-autoconf@gnu.org>."
11763 _ACEOF
11764
11765 cat >>$CONFIG_STATUS <<_ACEOF
11766 ac_cs_version="\\
11767 config.status
11768 configured by $0, generated by GNU Autoconf 2.59,
11769   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11770
11771 Copyright (C) 2003 Free Software Foundation, Inc.
11772 This config.status script is free software; the Free Software Foundation
11773 gives unlimited permission to copy, distribute and modify it."
11774 srcdir=$srcdir
11775 INSTALL="$INSTALL"
11776 _ACEOF
11777
11778 cat >>$CONFIG_STATUS <<\_ACEOF
11779 # If no file are specified by the user, then we need to provide default
11780 # value.  By we need to know if files were specified by the user.
11781 ac_need_defaults=:
11782 while test $# != 0
11783 do
11784   case $1 in
11785   --*=*)
11786     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11787     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11788     ac_shift=:
11789     ;;
11790   -*)
11791     ac_option=$1
11792     ac_optarg=$2
11793     ac_shift=shift
11794     ;;
11795   *) # This is not an option, so the user has probably given explicit
11796      # arguments.
11797      ac_option=$1
11798      ac_need_defaults=false;;
11799   esac
11800
11801   case $ac_option in
11802   # Handling of the options.
11803 _ACEOF
11804 cat >>$CONFIG_STATUS <<\_ACEOF
11805   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11806     ac_cs_recheck=: ;;
11807   --version | --vers* | -V )
11808     echo "$ac_cs_version"; exit 0 ;;
11809   --he | --h)
11810     # Conflict between --help and --header
11811     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11812 Try \`$0 --help' for more information." >&5
11813 echo "$as_me: error: ambiguous option: $1
11814 Try \`$0 --help' for more information." >&2;}
11815    { (exit 1); exit 1; }; };;
11816   --help | --hel | -h )
11817     echo "$ac_cs_usage"; exit 0 ;;
11818   --debug | --d* | -d )
11819     debug=: ;;
11820   --file | --fil | --fi | --f )
11821     $ac_shift
11822     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11823     ac_need_defaults=false;;
11824   --header | --heade | --head | --hea )
11825     $ac_shift
11826     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11827     ac_need_defaults=false;;
11828   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11829   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11830     ac_cs_silent=: ;;
11831
11832   # This is an error.
11833   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11834 Try \`$0 --help' for more information." >&5
11835 echo "$as_me: error: unrecognized option: $1
11836 Try \`$0 --help' for more information." >&2;}
11837    { (exit 1); exit 1; }; } ;;
11838
11839   *) ac_config_targets="$ac_config_targets $1" ;;
11840
11841   esac
11842   shift
11843 done
11844
11845 ac_configure_extra_args=
11846
11847 if $ac_cs_silent; then
11848   exec 6>/dev/null
11849   ac_configure_extra_args="$ac_configure_extra_args --silent"
11850 fi
11851
11852 _ACEOF
11853 cat >>$CONFIG_STATUS <<_ACEOF
11854 if \$ac_cs_recheck; then
11855   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11856   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11857 fi
11858
11859 _ACEOF
11860
11861
11862
11863
11864
11865 cat >>$CONFIG_STATUS <<\_ACEOF
11866 for ac_config_target in $ac_config_targets
11867 do
11868   case "$ac_config_target" in
11869   # Handling of arguments.
11870   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11871   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11872   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11873 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11874    { (exit 1); exit 1; }; };;
11875   esac
11876 done
11877
11878 # If the user did not use the arguments to specify the items to instantiate,
11879 # then the envvar interface is used.  Set only those that are not.
11880 # We use the long form for the default assignment because of an extremely
11881 # bizarre bug on SunOS 4.1.3.
11882 if $ac_need_defaults; then
11883   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11884   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11885 fi
11886
11887 # Have a temporary directory for convenience.  Make it in the build tree
11888 # simply because there is no reason to put it here, and in addition,
11889 # creating and moving files from /tmp can sometimes cause problems.
11890 # Create a temporary directory, and hook for its removal unless debugging.
11891 $debug ||
11892 {
11893   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11894   trap '{ (exit 1); exit 1; }' 1 2 13 15
11895 }
11896
11897 # Create a (secure) tmp directory for tmp files.
11898
11899 {
11900   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11901   test -n "$tmp" && test -d "$tmp"
11902 }  ||
11903 {
11904   tmp=./confstat$$-$RANDOM
11905   (umask 077 && mkdir $tmp)
11906 } ||
11907 {
11908    echo "$me: cannot create a temporary directory in ." >&2
11909    { (exit 1); exit 1; }
11910 }
11911
11912 _ACEOF
11913
11914 cat >>$CONFIG_STATUS <<_ACEOF
11915
11916 #
11917 # CONFIG_FILES section.
11918 #
11919
11920 # No need to generate the scripts if there are no CONFIG_FILES.
11921 # This happens for instance when ./config.status config.h
11922 if test -n "\$CONFIG_FILES"; then
11923   # Protect against being on the right side of a sed subst in config.status.
11924   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11925    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11926 s,@SHELL@,$SHELL,;t t
11927 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11928 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11929 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11930 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11931 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11932 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11933 s,@exec_prefix@,$exec_prefix,;t t
11934 s,@prefix@,$prefix,;t t
11935 s,@program_transform_name@,$program_transform_name,;t t
11936 s,@bindir@,$bindir,;t t
11937 s,@sbindir@,$sbindir,;t t
11938 s,@libexecdir@,$libexecdir,;t t
11939 s,@datadir@,$datadir,;t t
11940 s,@sysconfdir@,$sysconfdir,;t t
11941 s,@sharedstatedir@,$sharedstatedir,;t t
11942 s,@localstatedir@,$localstatedir,;t t
11943 s,@libdir@,$libdir,;t t
11944 s,@includedir@,$includedir,;t t
11945 s,@oldincludedir@,$oldincludedir,;t t
11946 s,@infodir@,$infodir,;t t
11947 s,@mandir@,$mandir,;t t
11948 s,@build_alias@,$build_alias,;t t
11949 s,@host_alias@,$host_alias,;t t
11950 s,@target_alias@,$target_alias,;t t
11951 s,@DEFS@,$DEFS,;t t
11952 s,@ECHO_C@,$ECHO_C,;t t
11953 s,@ECHO_N@,$ECHO_N,;t t
11954 s,@ECHO_T@,$ECHO_T,;t t
11955 s,@LIBS@,$LIBS,;t t
11956 s,@build@,$build,;t t
11957 s,@build_cpu@,$build_cpu,;t t
11958 s,@build_vendor@,$build_vendor,;t t
11959 s,@build_os@,$build_os,;t t
11960 s,@host@,$host,;t t
11961 s,@host_cpu@,$host_cpu,;t t
11962 s,@host_vendor@,$host_vendor,;t t
11963 s,@host_os@,$host_os,;t t
11964 s,@CC@,$CC,;t t
11965 s,@CFLAGS@,$CFLAGS,;t t
11966 s,@LDFLAGS@,$LDFLAGS,;t t
11967 s,@CPPFLAGS@,$CPPFLAGS,;t t
11968 s,@ac_ct_CC@,$ac_ct_CC,;t t
11969 s,@EXEEXT@,$EXEEXT,;t t
11970 s,@OBJEXT@,$OBJEXT,;t t
11971 s,@CXX@,$CXX,;t t
11972 s,@CXXFLAGS@,$CXXFLAGS,;t t
11973 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11974 s,@CPP@,$CPP,;t t
11975 s,@RANLIB@,$RANLIB,;t t
11976 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11977 s,@SET_MAKE@,$SET_MAKE,;t t
11978 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11979 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11980 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11981 s,@LN_S@,$LN_S,;t t
11982 s,@ECHO@,$ECHO,;t t
11983 s,@STRIP@,$STRIP,;t t
11984 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11985 s,@EGREP@,$EGREP,;t t
11986 s,@LIBTOOL@,$LIBTOOL,;t t
11987 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11988 s,@AR@,$AR,;t t
11989 s,@SLEXT@,$SLEXT,;t t
11990 s,@target@,$target,;t t
11991 s,@target_cpu@,$target_cpu,;t t
11992 s,@target_vendor@,$target_vendor,;t t
11993 s,@target_os@,$target_os,;t t
11994 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11995 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11996 s,@PACKAGE@,$PACKAGE,;t t
11997 s,@VERSION@,$VERSION,;t t
11998 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11999 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12000 s,@lame_objects@,$lame_objects,;t t
12001 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12002 s,@USE_GZIP@,$USE_GZIP,;t t
12003 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12004 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12005 s,@JPEG2SWF@,$JPEG2SWF,;t t
12006 s,@PNG2SWF@,$PNG2SWF,;t t
12007 s,@LIBOBJS@,$LIBOBJS,;t t
12008 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12009 CEOF
12010
12011 _ACEOF
12012
12013   cat >>$CONFIG_STATUS <<\_ACEOF
12014   # Split the substitutions into bite-sized pieces for seds with
12015   # small command number limits, like on Digital OSF/1 and HP-UX.
12016   ac_max_sed_lines=48
12017   ac_sed_frag=1 # Number of current file.
12018   ac_beg=1 # First line for current file.
12019   ac_end=$ac_max_sed_lines # Line after last line for current file.
12020   ac_more_lines=:
12021   ac_sed_cmds=
12022   while $ac_more_lines; do
12023     if test $ac_beg -gt 1; then
12024       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12025     else
12026       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12027     fi
12028     if test ! -s $tmp/subs.frag; then
12029       ac_more_lines=false
12030     else
12031       # The purpose of the label and of the branching condition is to
12032       # speed up the sed processing (if there are no `@' at all, there
12033       # is no need to browse any of the substitutions).
12034       # These are the two extra sed commands mentioned above.
12035       (echo ':t
12036   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12037       if test -z "$ac_sed_cmds"; then
12038         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12039       else
12040         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12041       fi
12042       ac_sed_frag=`expr $ac_sed_frag + 1`
12043       ac_beg=$ac_end
12044       ac_end=`expr $ac_end + $ac_max_sed_lines`
12045     fi
12046   done
12047   if test -z "$ac_sed_cmds"; then
12048     ac_sed_cmds=cat
12049   fi
12050 fi # test -n "$CONFIG_FILES"
12051
12052 _ACEOF
12053 cat >>$CONFIG_STATUS <<\_ACEOF
12054 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12055   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12056   case $ac_file in
12057   - | *:- | *:-:* ) # input from stdin
12058         cat >$tmp/stdin
12059         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12060         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12061   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12062         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12063   * )   ac_file_in=$ac_file.in ;;
12064   esac
12065
12066   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12067   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12069          X"$ac_file" : 'X\(//\)[^/]' \| \
12070          X"$ac_file" : 'X\(//\)$' \| \
12071          X"$ac_file" : 'X\(/\)' \| \
12072          .     : '\(.\)' 2>/dev/null ||
12073 echo X"$ac_file" |
12074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12075           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12076           /^X\(\/\/\)$/{ s//\1/; q; }
12077           /^X\(\/\).*/{ s//\1/; q; }
12078           s/.*/./; q'`
12079   { if $as_mkdir_p; then
12080     mkdir -p "$ac_dir"
12081   else
12082     as_dir="$ac_dir"
12083     as_dirs=
12084     while test ! -d "$as_dir"; do
12085       as_dirs="$as_dir $as_dirs"
12086       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12088          X"$as_dir" : 'X\(//\)[^/]' \| \
12089          X"$as_dir" : 'X\(//\)$' \| \
12090          X"$as_dir" : 'X\(/\)' \| \
12091          .     : '\(.\)' 2>/dev/null ||
12092 echo X"$as_dir" |
12093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12094           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12095           /^X\(\/\/\)$/{ s//\1/; q; }
12096           /^X\(\/\).*/{ s//\1/; q; }
12097           s/.*/./; q'`
12098     done
12099     test ! -n "$as_dirs" || mkdir $as_dirs
12100   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12102    { (exit 1); exit 1; }; }; }
12103
12104   ac_builddir=.
12105
12106 if test "$ac_dir" != .; then
12107   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12108   # A "../" for each directory in $ac_dir_suffix.
12109   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12110 else
12111   ac_dir_suffix= ac_top_builddir=
12112 fi
12113
12114 case $srcdir in
12115   .)  # No --srcdir option.  We are building in place.
12116     ac_srcdir=.
12117     if test -z "$ac_top_builddir"; then
12118        ac_top_srcdir=.
12119     else
12120        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12121     fi ;;
12122   [\\/]* | ?:[\\/]* )  # Absolute path.
12123     ac_srcdir=$srcdir$ac_dir_suffix;
12124     ac_top_srcdir=$srcdir ;;
12125   *) # Relative path.
12126     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12127     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12128 esac
12129
12130 # Do not use `cd foo && pwd` to compute absolute paths, because
12131 # the directories may not exist.
12132 case `pwd` in
12133 .) ac_abs_builddir="$ac_dir";;
12134 *)
12135   case "$ac_dir" in
12136   .) ac_abs_builddir=`pwd`;;
12137   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12138   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12139   esac;;
12140 esac
12141 case $ac_abs_builddir in
12142 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12143 *)
12144   case ${ac_top_builddir}. in
12145   .) ac_abs_top_builddir=$ac_abs_builddir;;
12146   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12147   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12148   esac;;
12149 esac
12150 case $ac_abs_builddir in
12151 .) ac_abs_srcdir=$ac_srcdir;;
12152 *)
12153   case $ac_srcdir in
12154   .) ac_abs_srcdir=$ac_abs_builddir;;
12155   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12156   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12157   esac;;
12158 esac
12159 case $ac_abs_builddir in
12160 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12161 *)
12162   case $ac_top_srcdir in
12163   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12164   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12165   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12166   esac;;
12167 esac
12168
12169
12170   case $INSTALL in
12171   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12172   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12173   esac
12174
12175   if test x"$ac_file" != x-; then
12176     { echo "$as_me:$LINENO: creating $ac_file" >&5
12177 echo "$as_me: creating $ac_file" >&6;}
12178     rm -f "$ac_file"
12179   fi
12180   # Let's still pretend it is `configure' which instantiates (i.e., don't
12181   # use $as_me), people would be surprised to read:
12182   #    /* config.h.  Generated by config.status.  */
12183   if test x"$ac_file" = x-; then
12184     configure_input=
12185   else
12186     configure_input="$ac_file.  "
12187   fi
12188   configure_input=$configure_input"Generated from `echo $ac_file_in |
12189                                      sed 's,.*/,,'` by configure."
12190
12191   # First look for the input files in the build tree, otherwise in the
12192   # src tree.
12193   ac_file_inputs=`IFS=:
12194     for f in $ac_file_in; do
12195       case $f in
12196       -) echo $tmp/stdin ;;
12197       [\\/$]*)
12198          # Absolute (can't be DOS-style, as IFS=:)
12199          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12200 echo "$as_me: error: cannot find input file: $f" >&2;}
12201    { (exit 1); exit 1; }; }
12202          echo "$f";;
12203       *) # Relative
12204          if test -f "$f"; then
12205            # Build tree
12206            echo "$f"
12207          elif test -f "$srcdir/$f"; then
12208            # Source tree
12209            echo "$srcdir/$f"
12210          else
12211            # /dev/null tree
12212            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12213 echo "$as_me: error: cannot find input file: $f" >&2;}
12214    { (exit 1); exit 1; }; }
12215          fi;;
12216       esac
12217     done` || { (exit 1); exit 1; }
12218 _ACEOF
12219 cat >>$CONFIG_STATUS <<_ACEOF
12220   sed "$ac_vpsub
12221 $extrasub
12222 _ACEOF
12223 cat >>$CONFIG_STATUS <<\_ACEOF
12224 :t
12225 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12226 s,@configure_input@,$configure_input,;t t
12227 s,@srcdir@,$ac_srcdir,;t t
12228 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12229 s,@top_srcdir@,$ac_top_srcdir,;t t
12230 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12231 s,@builddir@,$ac_builddir,;t t
12232 s,@abs_builddir@,$ac_abs_builddir,;t t
12233 s,@top_builddir@,$ac_top_builddir,;t t
12234 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12235 s,@INSTALL@,$ac_INSTALL,;t t
12236 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12237   rm -f $tmp/stdin
12238   if test x"$ac_file" != x-; then
12239     mv $tmp/out $ac_file
12240   else
12241     cat $tmp/out
12242     rm -f $tmp/out
12243   fi
12244
12245 done
12246 _ACEOF
12247 cat >>$CONFIG_STATUS <<\_ACEOF
12248
12249 #
12250 # CONFIG_HEADER section.
12251 #
12252
12253 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12254 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12255 #
12256 # ac_d sets the value in "#define NAME VALUE" lines.
12257 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12258 ac_dB='[         ].*$,\1#\2'
12259 ac_dC=' '
12260 ac_dD=',;t'
12261 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12262 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12263 ac_uB='$,\1#\2define\3'
12264 ac_uC=' '
12265 ac_uD=',;t'
12266
12267 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12268   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12269   case $ac_file in
12270   - | *:- | *:-:* ) # input from stdin
12271         cat >$tmp/stdin
12272         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12273         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12274   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12275         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12276   * )   ac_file_in=$ac_file.in ;;
12277   esac
12278
12279   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12280 echo "$as_me: creating $ac_file" >&6;}
12281
12282   # First look for the input files in the build tree, otherwise in the
12283   # src tree.
12284   ac_file_inputs=`IFS=:
12285     for f in $ac_file_in; do
12286       case $f in
12287       -) echo $tmp/stdin ;;
12288       [\\/$]*)
12289          # Absolute (can't be DOS-style, as IFS=:)
12290          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12291 echo "$as_me: error: cannot find input file: $f" >&2;}
12292    { (exit 1); exit 1; }; }
12293          # Do quote $f, to prevent DOS paths from being IFS'd.
12294          echo "$f";;
12295       *) # Relative
12296          if test -f "$f"; then
12297            # Build tree
12298            echo "$f"
12299          elif test -f "$srcdir/$f"; then
12300            # Source tree
12301            echo "$srcdir/$f"
12302          else
12303            # /dev/null tree
12304            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12305 echo "$as_me: error: cannot find input file: $f" >&2;}
12306    { (exit 1); exit 1; }; }
12307          fi;;
12308       esac
12309     done` || { (exit 1); exit 1; }
12310   # Remove the trailing spaces.
12311   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12312
12313 _ACEOF
12314
12315 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12316 # `conftest.undefs', that substitutes the proper values into
12317 # config.h.in to produce config.h.  The first handles `#define'
12318 # templates, and the second `#undef' templates.
12319 # And first: Protect against being on the right side of a sed subst in
12320 # config.status.  Protect against being in an unquoted here document
12321 # in config.status.
12322 rm -f conftest.defines conftest.undefs
12323 # Using a here document instead of a string reduces the quoting nightmare.
12324 # Putting comments in sed scripts is not portable.
12325 #
12326 # `end' is used to avoid that the second main sed command (meant for
12327 # 0-ary CPP macros) applies to n-ary macro definitions.
12328 # See the Autoconf documentation for `clear'.
12329 cat >confdef2sed.sed <<\_ACEOF
12330 s/[\\&,]/\\&/g
12331 s,[\\$`],\\&,g
12332 t clear
12333 : clear
12334 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12335 t end
12336 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12337 : end
12338 _ACEOF
12339 # If some macros were called several times there might be several times
12340 # the same #defines, which is useless.  Nevertheless, we may not want to
12341 # sort them, since we want the *last* AC-DEFINE to be honored.
12342 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12343 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12344 rm -f confdef2sed.sed
12345
12346 # This sed command replaces #undef with comments.  This is necessary, for
12347 # example, in the case of _POSIX_SOURCE, which is predefined and required
12348 # on some systems where configure will not decide to define it.
12349 cat >>conftest.undefs <<\_ACEOF
12350 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12351 _ACEOF
12352
12353 # Break up conftest.defines because some shells have a limit on the size
12354 # of here documents, and old seds have small limits too (100 cmds).
12355 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12356 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12357 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12358 echo '  :' >>$CONFIG_STATUS
12359 rm -f conftest.tail
12360 while grep . conftest.defines >/dev/null
12361 do
12362   # Write a limited-size here document to $tmp/defines.sed.
12363   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12364   # Speed up: don't consider the non `#define' lines.
12365   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12366   # Work around the forget-to-reset-the-flag bug.
12367   echo 't clr' >>$CONFIG_STATUS
12368   echo ': clr' >>$CONFIG_STATUS
12369   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12370   echo 'CEOF
12371   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12372   rm -f $tmp/in
12373   mv $tmp/out $tmp/in
12374 ' >>$CONFIG_STATUS
12375   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12376   rm -f conftest.defines
12377   mv conftest.tail conftest.defines
12378 done
12379 rm -f conftest.defines
12380 echo '  fi # grep' >>$CONFIG_STATUS
12381 echo >>$CONFIG_STATUS
12382
12383 # Break up conftest.undefs because some shells have a limit on the size
12384 # of here documents, and old seds have small limits too (100 cmds).
12385 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12386 rm -f conftest.tail
12387 while grep . conftest.undefs >/dev/null
12388 do
12389   # Write a limited-size here document to $tmp/undefs.sed.
12390   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12391   # Speed up: don't consider the non `#undef'
12392   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12393   # Work around the forget-to-reset-the-flag bug.
12394   echo 't clr' >>$CONFIG_STATUS
12395   echo ': clr' >>$CONFIG_STATUS
12396   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12397   echo 'CEOF
12398   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12399   rm -f $tmp/in
12400   mv $tmp/out $tmp/in
12401 ' >>$CONFIG_STATUS
12402   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12403   rm -f conftest.undefs
12404   mv conftest.tail conftest.undefs
12405 done
12406 rm -f conftest.undefs
12407
12408 cat >>$CONFIG_STATUS <<\_ACEOF
12409   # Let's still pretend it is `configure' which instantiates (i.e., don't
12410   # use $as_me), people would be surprised to read:
12411   #    /* config.h.  Generated by config.status.  */
12412   if test x"$ac_file" = x-; then
12413     echo "/* Generated by configure.  */" >$tmp/config.h
12414   else
12415     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12416   fi
12417   cat $tmp/in >>$tmp/config.h
12418   rm -f $tmp/in
12419   if test x"$ac_file" != x-; then
12420     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12421       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12422 echo "$as_me: $ac_file is unchanged" >&6;}
12423     else
12424       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12425 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12426          X"$ac_file" : 'X\(//\)[^/]' \| \
12427          X"$ac_file" : 'X\(//\)$' \| \
12428          X"$ac_file" : 'X\(/\)' \| \
12429          .     : '\(.\)' 2>/dev/null ||
12430 echo X"$ac_file" |
12431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12432           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12433           /^X\(\/\/\)$/{ s//\1/; q; }
12434           /^X\(\/\).*/{ s//\1/; q; }
12435           s/.*/./; q'`
12436       { if $as_mkdir_p; then
12437     mkdir -p "$ac_dir"
12438   else
12439     as_dir="$ac_dir"
12440     as_dirs=
12441     while test ! -d "$as_dir"; do
12442       as_dirs="$as_dir $as_dirs"
12443       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12445          X"$as_dir" : 'X\(//\)[^/]' \| \
12446          X"$as_dir" : 'X\(//\)$' \| \
12447          X"$as_dir" : 'X\(/\)' \| \
12448          .     : '\(.\)' 2>/dev/null ||
12449 echo X"$as_dir" |
12450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12451           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12452           /^X\(\/\/\)$/{ s//\1/; q; }
12453           /^X\(\/\).*/{ s//\1/; q; }
12454           s/.*/./; q'`
12455     done
12456     test ! -n "$as_dirs" || mkdir $as_dirs
12457   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12458 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12459    { (exit 1); exit 1; }; }; }
12460
12461       rm -f $ac_file
12462       mv $tmp/config.h $ac_file
12463     fi
12464   else
12465     cat $tmp/config.h
12466     rm -f $tmp/config.h
12467   fi
12468 done
12469 _ACEOF
12470
12471 cat >>$CONFIG_STATUS <<\_ACEOF
12472
12473 { (exit 0); exit 0; }
12474 _ACEOF
12475 chmod +x $CONFIG_STATUS
12476 ac_clean_files=$ac_clean_files_save
12477
12478
12479 # configure is writing to config.log, and then calls config.status.
12480 # config.status does its own redirection, appending to config.log.
12481 # Unfortunately, on DOS this fails, as config.log is still kept open
12482 # by configure, so config.status won't be able to write to it; its
12483 # output is simply discarded.  So we exec the FD to /dev/null,
12484 # effectively closing config.log, so it can be properly (re)opened and
12485 # appended to by config.status.  When coming back to configure, we
12486 # need to make the FD available again.
12487 if test "$no_create" != yes; then
12488   ac_cs_success=:
12489   ac_config_status_args=
12490   test "$silent" = yes &&
12491     ac_config_status_args="$ac_config_status_args --quiet"
12492   exec 5>/dev/null
12493   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12494   exec 5>>config.log
12495   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12496   # would make configure fail if this is the last instruction.
12497   $ac_cs_success || { (exit 1); exit 1; }
12498 fi
12499
12500