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 FREETYPE_CONFIG target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H 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-05-18-1254
1515
1516
1517
1518 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1519 if test "x$ENABLE_WARNINGS" '!=' "x";then
1520     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1521 fi
1522
1523 if test "x$CHECKMEM" '!=' "x";then
1524     DEBUG=yes
1525 fi
1526 if test "x$DEBUG" '!=' "x";then
1527     CFLAGS="$WARNINGS -g $CFLAGS"
1528     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1529 else if test "x$OPTIMIZE" '!=' "x"; then
1530     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1531     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1532 else
1533     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1534     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1535 fi
1536 fi
1537 #OLDGCC=1
1538 #if test "x$OLDGCC" '!=' "x";then
1539 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1540 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1541 #     CFLAGS="$CFLAGS -ansi -pendantic"
1542 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1543 #fi
1544
1545 export PACKAGE VERSION CFLAGS CXXFLAGS
1546
1547  ac_aux_dir=
1548 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1549   if test -f $ac_dir/install-sh; then
1550     ac_aux_dir=$ac_dir
1551     ac_install_sh="$ac_aux_dir/install-sh -c"
1552     break
1553   elif test -f $ac_dir/install.sh; then
1554     ac_aux_dir=$ac_dir
1555     ac_install_sh="$ac_aux_dir/install.sh -c"
1556     break
1557   elif test -f $ac_dir/shtool; then
1558     ac_aux_dir=$ac_dir
1559     ac_install_sh="$ac_aux_dir/shtool install -c"
1560     break
1561   fi
1562 done
1563 if test -z "$ac_aux_dir"; then
1564   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1565 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1566    { (exit 1); exit 1; }; }
1567 fi
1568 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1571
1572 # Make sure we can run config.sub.
1573 $ac_config_sub sun4 >/dev/null 2>&1 ||
1574   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1575 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1576    { (exit 1); exit 1; }; }
1577
1578 echo "$as_me:$LINENO: checking build system type" >&5
1579 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1580 if test "${ac_cv_build+set}" = set; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   ac_cv_build_alias=$build_alias
1584 test -z "$ac_cv_build_alias" &&
1585   ac_cv_build_alias=`$ac_config_guess`
1586 test -z "$ac_cv_build_alias" &&
1587   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1588 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1589    { (exit 1); exit 1; }; }
1590 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1591   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1593    { (exit 1); exit 1; }; }
1594
1595 fi
1596 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1597 echo "${ECHO_T}$ac_cv_build" >&6
1598 build=$ac_cv_build
1599 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602
1603
1604 echo "$as_me:$LINENO: checking host system type" >&5
1605 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1606 if test "${ac_cv_host+set}" = set; then
1607   echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609   ac_cv_host_alias=$host_alias
1610 test -z "$ac_cv_host_alias" &&
1611   ac_cv_host_alias=$ac_cv_build_alias
1612 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1613   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1615    { (exit 1); exit 1; }; }
1616
1617 fi
1618 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1619 echo "${ECHO_T}$ac_cv_host" >&6
1620 host=$ac_cv_host
1621 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626 MACOSX=
1627 case $host_os in
1628     *darwin* )
1629         MACOSX=yes
1630         CFLAGS="$CFLAGS -fno-rtti"
1631         CXXFLAGS="$CXXFLAGS -fno-rtti"
1632         ;;
1633 esac
1634  ac_ext=c
1635 ac_cpp='$CPP $CPPFLAGS'
1636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1639 if test -n "$ac_tool_prefix"; then
1640   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_CC+set}" = set; then
1645   echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647   if test -n "$CC"; then
1648   ac_cv_prog_CC="$CC" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1652 do
1653   IFS=$as_save_IFS
1654   test -z "$as_dir" && as_dir=.
1655   for ac_exec_ext in '' $ac_executable_extensions; do
1656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659     break 2
1660   fi
1661 done
1662 done
1663
1664 fi
1665 fi
1666 CC=$ac_cv_prog_CC
1667 if test -n "$CC"; then
1668   echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1670 else
1671   echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1673 fi
1674
1675 fi
1676 if test -z "$ac_cv_prog_CC"; then
1677   ac_ct_CC=$CC
1678   # Extract the first word of "gcc", so it can be a program name with args.
1679 set dummy gcc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   if test -n "$ac_ct_CC"; then
1686   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691   IFS=$as_save_IFS
1692   test -z "$as_dir" && as_dir=.
1693   for ac_exec_ext in '' $ac_executable_extensions; do
1694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695     ac_cv_prog_ac_ct_CC="gcc"
1696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697     break 2
1698   fi
1699 done
1700 done
1701
1702 fi
1703 fi
1704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1705 if test -n "$ac_ct_CC"; then
1706   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1707 echo "${ECHO_T}$ac_ct_CC" >&6
1708 else
1709   echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1711 fi
1712
1713   CC=$ac_ct_CC
1714 else
1715   CC="$ac_cv_prog_CC"
1716 fi
1717
1718 if test -z "$CC"; then
1719   if test -n "$ac_tool_prefix"; then
1720   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1721 set dummy ${ac_tool_prefix}cc; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CC+set}" = set; then
1725   echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727   if test -n "$CC"; then
1728   ac_cv_prog_CC="$CC" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1732 do
1733   IFS=$as_save_IFS
1734   test -z "$as_dir" && as_dir=.
1735   for ac_exec_ext in '' $ac_executable_extensions; do
1736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737     ac_cv_prog_CC="${ac_tool_prefix}cc"
1738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739     break 2
1740   fi
1741 done
1742 done
1743
1744 fi
1745 fi
1746 CC=$ac_cv_prog_CC
1747 if test -n "$CC"; then
1748   echo "$as_me:$LINENO: result: $CC" >&5
1749 echo "${ECHO_T}$CC" >&6
1750 else
1751   echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1753 fi
1754
1755 fi
1756 if test -z "$ac_cv_prog_CC"; then
1757   ac_ct_CC=$CC
1758   # Extract the first word of "cc", so it can be a program name with args.
1759 set dummy cc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1763   echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765   if test -n "$ac_ct_CC"; then
1766   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1770 do
1771   IFS=$as_save_IFS
1772   test -z "$as_dir" && as_dir=.
1773   for ac_exec_ext in '' $ac_executable_extensions; do
1774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775     ac_cv_prog_ac_ct_CC="cc"
1776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777     break 2
1778   fi
1779 done
1780 done
1781
1782 fi
1783 fi
1784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1785 if test -n "$ac_ct_CC"; then
1786   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1787 echo "${ECHO_T}$ac_ct_CC" >&6
1788 else
1789   echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 fi
1792
1793   CC=$ac_ct_CC
1794 else
1795   CC="$ac_cv_prog_CC"
1796 fi
1797
1798 fi
1799 if test -z "$CC"; then
1800   # Extract the first word of "cc", so it can be a program name with args.
1801 set dummy cc; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_CC+set}" = set; then
1805   echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807   if test -n "$CC"; then
1808   ac_cv_prog_CC="$CC" # Let the user override the test.
1809 else
1810   ac_prog_rejected=no
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814   IFS=$as_save_IFS
1815   test -z "$as_dir" && as_dir=.
1816   for ac_exec_ext in '' $ac_executable_extensions; do
1817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1819        ac_prog_rejected=yes
1820        continue
1821      fi
1822     ac_cv_prog_CC="cc"
1823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824     break 2
1825   fi
1826 done
1827 done
1828
1829 if test $ac_prog_rejected = yes; then
1830   # We found a bogon in the path, so make sure we never use it.
1831   set dummy $ac_cv_prog_CC
1832   shift
1833   if test $# != 0; then
1834     # We chose a different compiler from the bogus one.
1835     # However, it has the same basename, so the bogon will be chosen
1836     # first if we set CC to just the basename; use the full file name.
1837     shift
1838     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1839   fi
1840 fi
1841 fi
1842 fi
1843 CC=$ac_cv_prog_CC
1844 if test -n "$CC"; then
1845   echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1847 else
1848   echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1850 fi
1851
1852 fi
1853 if test -z "$CC"; then
1854   if test -n "$ac_tool_prefix"; then
1855   for ac_prog in cl
1856   do
1857     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862   echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864   if test -n "$CC"; then
1865   ac_cv_prog_CC="$CC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870   IFS=$as_save_IFS
1871   test -z "$as_dir" && as_dir=.
1872   for ac_exec_ext in '' $ac_executable_extensions; do
1873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876     break 2
1877   fi
1878 done
1879 done
1880
1881 fi
1882 fi
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885   echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1887 else
1888   echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890 fi
1891
1892     test -n "$CC" && break
1893   done
1894 fi
1895 if test -z "$CC"; then
1896   ac_ct_CC=$CC
1897   for ac_prog in cl
1898 do
1899   # Extract the first word of "$ac_prog", so it can be a program name with args.
1900 set dummy $ac_prog; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1904   echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906   if test -n "$ac_ct_CC"; then
1907   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1908 else
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1911 do
1912   IFS=$as_save_IFS
1913   test -z "$as_dir" && as_dir=.
1914   for ac_exec_ext in '' $ac_executable_extensions; do
1915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916     ac_cv_prog_ac_ct_CC="$ac_prog"
1917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918     break 2
1919   fi
1920 done
1921 done
1922
1923 fi
1924 fi
1925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1926 if test -n "$ac_ct_CC"; then
1927   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1928 echo "${ECHO_T}$ac_ct_CC" >&6
1929 else
1930   echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6
1932 fi
1933
1934   test -n "$ac_ct_CC" && break
1935 done
1936
1937   CC=$ac_ct_CC
1938 fi
1939
1940 fi
1941
1942
1943 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1944 See \`config.log' for more details." >&5
1945 echo "$as_me: error: no acceptable C compiler found in \$PATH
1946 See \`config.log' for more details." >&2;}
1947    { (exit 1); exit 1; }; }
1948
1949 # Provide some information about the compiler.
1950 echo "$as_me:$LINENO:" \
1951      "checking for C compiler version" >&5
1952 ac_compiler=`set X $ac_compile; echo $2`
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1954   (eval $ac_compiler --version </dev/null >&5) 2>&5
1955   ac_status=$?
1956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957   (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1959   (eval $ac_compiler -v </dev/null >&5) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1964   (eval $ac_compiler -V </dev/null >&5) 2>&5
1965   ac_status=$?
1966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967   (exit $ac_status); }
1968
1969 cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h.  */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h.  */
1975
1976 int
1977 main ()
1978 {
1979
1980   ;
1981   return 0;
1982 }
1983 _ACEOF
1984 ac_clean_files_save=$ac_clean_files
1985 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1986 # Try to create an executable without -o first, disregard a.out.
1987 # It will help us diagnose broken compilers, and finding out an intuition
1988 # of exeext.
1989 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1990 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1991 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1992 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1993   (eval $ac_link_default) 2>&5
1994   ac_status=$?
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); }; then
1997   # Find the output, starting from the most likely.  This scheme is
1998 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1999 # resort.
2000
2001 # Be careful to initialize this variable, since it used to be cached.
2002 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2003 ac_cv_exeext=
2004 # b.out is created by i960 compilers.
2005 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2006 do
2007   test -f "$ac_file" || continue
2008   case $ac_file in
2009     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2010         ;;
2011     conftest.$ac_ext )
2012         # This is the source file.
2013         ;;
2014     [ab].out )
2015         # We found the default executable, but exeext='' is most
2016         # certainly right.
2017         break;;
2018     *.* )
2019         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2020         # FIXME: I believe we export ac_cv_exeext for Libtool,
2021         # but it would be cool to find out if it's true.  Does anybody
2022         # maintain Libtool? --akim.
2023         export ac_cv_exeext
2024         break;;
2025     * )
2026         break;;
2027   esac
2028 done
2029 else
2030   echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: C compiler cannot create executables
2036 See \`config.log' for more details." >&2;}
2037    { (exit 77); exit 77; }; }
2038 fi
2039
2040 ac_exeext=$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_file" >&5
2042 echo "${ECHO_T}$ac_file" >&6
2043
2044 # Check the compiler produces executables we can run.  If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2049 # If not cross compiling, check that we can run a simple program.
2050 if test "$cross_compiling" != yes; then
2051   if { ac_try='./$ac_file'
2052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053   (eval $ac_try) 2>&5
2054   ac_status=$?
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); }; }; then
2057     cross_compiling=no
2058   else
2059     if test "$cross_compiling" = maybe; then
2060         cross_compiling=yes
2061     else
2062         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'.
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: cannot run C compiled programs.
2066 If you meant to cross compile, use \`--host'.
2067 See \`config.log' for more details." >&2;}
2068    { (exit 1); exit 1; }; }
2069     fi
2070   fi
2071 fi
2072 echo "$as_me:$LINENO: result: yes" >&5
2073 echo "${ECHO_T}yes" >&6
2074
2075 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2076 ac_clean_files=$ac_clean_files_save
2077 # Check the compiler produces executables we can run.  If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2082 echo "${ECHO_T}$cross_compiling" >&6
2083
2084 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2087   (eval $ac_link) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }; then
2091   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2092 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2093 # work properly (i.e., refer to `conftest.exe'), while it won't with
2094 # `rm'.
2095 for ac_file in conftest.exe conftest conftest.*; do
2096   test -f "$ac_file" || continue
2097   case $ac_file in
2098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2099     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2100           export ac_cv_exeext
2101           break;;
2102     * ) break;;
2103   esac
2104 done
2105 else
2106   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2109 See \`config.log' for more details." >&2;}
2110    { (exit 1); exit 1; }; }
2111 fi
2112
2113 rm -f conftest$ac_cv_exeext
2114 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2115 echo "${ECHO_T}$ac_cv_exeext" >&6
2116
2117 rm -f conftest.$ac_ext
2118 EXEEXT=$ac_cv_exeext
2119 ac_exeext=$EXEEXT
2120 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2121 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2122 if test "${ac_cv_objext+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131
2132 int
2133 main ()
2134 {
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 rm -f conftest.o conftest.obj
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }; then
2146   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2147   case $ac_file in
2148     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2149     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2150        break;;
2151   esac
2152 done
2153 else
2154   echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2156
2157 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2160 See \`config.log' for more details." >&2;}
2161    { (exit 1); exit 1; }; }
2162 fi
2163
2164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2165 fi
2166 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2167 echo "${ECHO_T}$ac_cv_objext" >&6
2168 OBJEXT=$ac_cv_objext
2169 ac_objext=$OBJEXT
2170 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h.  */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h.  */
2181
2182 int
2183 main ()
2184 {
2185 #ifndef __GNUC__
2186        choke me
2187 #endif
2188
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195   (eval $ac_compile) 2>conftest.er1
2196   ac_status=$?
2197   grep -v '^ *+' conftest.er1 >conftest.err
2198   rm -f conftest.er1
2199   cat conftest.err >&5
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); } &&
2202          { ac_try='test -z "$ac_c_werror_flag"
2203                          || test ! -s conftest.err'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; } &&
2209          { ac_try='test -s conftest.$ac_objext'
2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; }; then
2215   ac_compiler_gnu=yes
2216 else
2217   echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 ac_compiler_gnu=no
2221 fi
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2224
2225 fi
2226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2228 GCC=`test $ac_compiler_gnu = yes && echo yes`
2229 ac_test_CFLAGS=${CFLAGS+set}
2230 ac_save_CFLAGS=$CFLAGS
2231 CFLAGS="-g"
2232 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2234 if test "${ac_cv_prog_cc_g+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   cat >conftest.$ac_ext <<_ACEOF
2238 /* confdefs.h.  */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h.  */
2243
2244 int
2245 main ()
2246 {
2247
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254   (eval $ac_compile) 2>conftest.er1
2255   ac_status=$?
2256   grep -v '^ *+' conftest.er1 >conftest.err
2257   rm -f conftest.er1
2258   cat conftest.err >&5
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); } &&
2261          { ac_try='test -z "$ac_c_werror_flag"
2262                          || test ! -s conftest.err'
2263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264   (eval $ac_try) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; } &&
2268          { ac_try='test -s conftest.$ac_objext'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; }; then
2274   ac_cv_prog_cc_g=yes
2275 else
2276   echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_cv_prog_cc_g=no
2280 fi
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282 fi
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2285 if test "$ac_test_CFLAGS" = set; then
2286   CFLAGS=$ac_save_CFLAGS
2287 elif test $ac_cv_prog_cc_g = yes; then
2288   if test "$GCC" = yes; then
2289     CFLAGS="-g -O2"
2290   else
2291     CFLAGS="-g"
2292   fi
2293 else
2294   if test "$GCC" = yes; then
2295     CFLAGS="-O2"
2296   else
2297     CFLAGS=
2298   fi
2299 fi
2300 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2301 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   ac_cv_prog_cc_stdc=no
2306 ac_save_CC=$CC
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h.  */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h.  */
2313 #include <stdarg.h>
2314 #include <stdio.h>
2315 #include <sys/types.h>
2316 #include <sys/stat.h>
2317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2318 struct buf { int x; };
2319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2320 static char *e (p, i)
2321      char **p;
2322      int i;
2323 {
2324   return p[i];
2325 }
2326 static char *f (char * (*g) (char **, int), char **p, ...)
2327 {
2328   char *s;
2329   va_list v;
2330   va_start (v,p);
2331   s = g (p, va_arg (v,int));
2332   va_end (v);
2333   return s;
2334 }
2335
2336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2337    function prototypes and stuff, but not '\xHH' hex character constants.
2338    These don't provoke an error unfortunately, instead are silently treated
2339    as 'x'.  The following induces an error, until -std1 is added to get
2340    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2341    array size at least.  It's necessary to write '\x00'==0 to get something
2342    that's true only with -std1.  */
2343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2344
2345 int test (int i, double x);
2346 struct s1 {int (*f) (int a);};
2347 struct s2 {int (*f) (double a);};
2348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2349 int argc;
2350 char **argv;
2351 int
2352 main ()
2353 {
2354 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 # Don't try gcc -ansi; that turns off useful extensions and
2360 # breaks some systems' header files.
2361 # AIX                   -qlanglvl=ansi
2362 # Ultrix and OSF/1      -std1
2363 # HP-UX 10.20 and later -Ae
2364 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2365 # SVR4                  -Xc -D__EXTENSIONS__
2366 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2367 do
2368   CC="$ac_save_CC $ac_arg"
2369   rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371   (eval $ac_compile) 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } &&
2378          { ac_try='test -z "$ac_c_werror_flag"
2379                          || test ! -s conftest.err'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; } &&
2385          { ac_try='test -s conftest.$ac_objext'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; }; then
2391   ac_cv_prog_cc_stdc=$ac_arg
2392 break
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 fi
2398 rm -f conftest.err conftest.$ac_objext
2399 done
2400 rm -f conftest.$ac_ext conftest.$ac_objext
2401 CC=$ac_save_CC
2402
2403 fi
2404
2405 case "x$ac_cv_prog_cc_stdc" in
2406   x|xno)
2407     echo "$as_me:$LINENO: result: none needed" >&5
2408 echo "${ECHO_T}none needed" >&6 ;;
2409   *)
2410     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2412     CC="$CC $ac_cv_prog_cc_stdc" ;;
2413 esac
2414
2415 # Some people use a C++ compiler to compile C.  Since we use `exit',
2416 # in C++ we need to declare it.  In case someone uses the same compiler
2417 # for both compiling C and C++ we need to have the C++ compiler decide
2418 # the declaration of exit, since it's the most demanding environment.
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #ifndef __cplusplus
2421   choke me
2422 #endif
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426   (eval $ac_compile) 2>conftest.er1
2427   ac_status=$?
2428   grep -v '^ *+' conftest.er1 >conftest.err
2429   rm -f conftest.er1
2430   cat conftest.err >&5
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); } &&
2433          { ac_try='test -z "$ac_c_werror_flag"
2434                          || test ! -s conftest.err'
2435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436   (eval $ac_try) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; } &&
2440          { ac_try='test -s conftest.$ac_objext'
2441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442   (eval $ac_try) 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); }; }; then
2446   for ac_declaration in \
2447    '' \
2448    'extern "C" void std::exit (int) throw (); using std::exit;' \
2449    'extern "C" void std::exit (int); using std::exit;' \
2450    'extern "C" void exit (int) throw ();' \
2451    'extern "C" void exit (int);' \
2452    'void exit (int);'
2453 do
2454   cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h.  */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h.  */
2460 $ac_declaration
2461 #include <stdlib.h>
2462 int
2463 main ()
2464 {
2465 exit (42);
2466   ;
2467   return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472   (eval $ac_compile) 2>conftest.er1
2473   ac_status=$?
2474   grep -v '^ *+' conftest.er1 >conftest.err
2475   rm -f conftest.er1
2476   cat conftest.err >&5
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -z "$ac_c_werror_flag"
2480                          || test ! -s conftest.err'
2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482   (eval $ac_try) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; } &&
2486          { ac_try='test -s conftest.$ac_objext'
2487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488   (eval $ac_try) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }; }; then
2492   :
2493 else
2494   echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2496
2497 continue
2498 fi
2499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500   cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h.  */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h.  */
2506 $ac_declaration
2507 int
2508 main ()
2509 {
2510 exit (42);
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517   (eval $ac_compile) 2>conftest.er1
2518   ac_status=$?
2519   grep -v '^ *+' conftest.er1 >conftest.err
2520   rm -f conftest.er1
2521   cat conftest.err >&5
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); } &&
2524          { ac_try='test -z "$ac_c_werror_flag"
2525                          || test ! -s conftest.err'
2526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527   (eval $ac_try) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; } &&
2531          { ac_try='test -s conftest.$ac_objext'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   break
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 fi
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 done
2545 rm -f conftest*
2546 if test -n "$ac_declaration"; then
2547   echo '#ifdef __cplusplus' >>confdefs.h
2548   echo $ac_declaration      >>confdefs.h
2549   echo '#endif'             >>confdefs.h
2550 fi
2551
2552 else
2553   echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2555
2556 fi
2557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2558 ac_ext=c
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563
2564  ac_ext=cc
2565 ac_cpp='$CXXCPP $CPPFLAGS'
2566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2571   do
2572     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2574 echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2576 if test "${ac_cv_prog_CXX+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   if test -n "$CXX"; then
2580   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585   IFS=$as_save_IFS
2586   test -z "$as_dir" && as_dir=.
2587   for ac_exec_ext in '' $ac_executable_extensions; do
2588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591     break 2
2592   fi
2593 done
2594 done
2595
2596 fi
2597 fi
2598 CXX=$ac_cv_prog_CXX
2599 if test -n "$CXX"; then
2600   echo "$as_me:$LINENO: result: $CXX" >&5
2601 echo "${ECHO_T}$CXX" >&6
2602 else
2603   echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6
2605 fi
2606
2607     test -n "$CXX" && break
2608   done
2609 fi
2610 if test -z "$CXX"; then
2611   ac_ct_CXX=$CXX
2612   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2613 do
2614   # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   if test -n "$ac_ct_CXX"; then
2622   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629   for ac_exec_ext in '' $ac_executable_extensions; do
2630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631     ac_cv_prog_ac_ct_CXX="$ac_prog"
2632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633     break 2
2634   fi
2635 done
2636 done
2637
2638 fi
2639 fi
2640 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2641 if test -n "$ac_ct_CXX"; then
2642   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2643 echo "${ECHO_T}$ac_ct_CXX" >&6
2644 else
2645   echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6
2647 fi
2648
2649   test -n "$ac_ct_CXX" && break
2650 done
2651 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2652
2653   CXX=$ac_ct_CXX
2654 fi
2655
2656
2657 # Provide some information about the compiler.
2658 echo "$as_me:$LINENO:" \
2659      "checking for C++ compiler version" >&5
2660 ac_compiler=`set X $ac_compile; echo $2`
2661 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2662   (eval $ac_compiler --version </dev/null >&5) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2667   (eval $ac_compiler -v </dev/null >&5) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2672   (eval $ac_compiler -V </dev/null >&5) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }
2676
2677 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2678 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692 #ifndef __GNUC__
2693        choke me
2694 #endif
2695
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702   (eval $ac_compile) 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } &&
2709          { ac_try='test -z "$ac_cxx_werror_flag"
2710                          || test ! -s conftest.err'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   ac_compiler_gnu=yes
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 ac_compiler_gnu=no
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2731
2732 fi
2733 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2734 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2735 GXX=`test $ac_compiler_gnu = yes && echo yes`
2736 ac_test_CXXFLAGS=${CXXFLAGS+set}
2737 ac_save_CXXFLAGS=$CXXFLAGS
2738 CXXFLAGS="-g"
2739 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2740 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2741 if test "${ac_cv_prog_cxx_g+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744   cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h.  */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h.  */
2750
2751 int
2752 main ()
2753 {
2754
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761   (eval $ac_compile) 2>conftest.er1
2762   ac_status=$?
2763   grep -v '^ *+' conftest.er1 >conftest.err
2764   rm -f conftest.er1
2765   cat conftest.err >&5
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } &&
2768          { ac_try='test -z "$ac_cxx_werror_flag"
2769                          || test ! -s conftest.err'
2770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; } &&
2775          { ac_try='test -s conftest.$ac_objext'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; }; then
2781   ac_cv_prog_cxx_g=yes
2782 else
2783   echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 ac_cv_prog_cxx_g=no
2787 fi
2788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789 fi
2790 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2792 if test "$ac_test_CXXFLAGS" = set; then
2793   CXXFLAGS=$ac_save_CXXFLAGS
2794 elif test $ac_cv_prog_cxx_g = yes; then
2795   if test "$GXX" = yes; then
2796     CXXFLAGS="-g -O2"
2797   else
2798     CXXFLAGS="-g"
2799   fi
2800 else
2801   if test "$GXX" = yes; then
2802     CXXFLAGS="-O2"
2803   else
2804     CXXFLAGS=
2805   fi
2806 fi
2807 for ac_declaration in \
2808    '' \
2809    'extern "C" void std::exit (int) throw (); using std::exit;' \
2810    'extern "C" void std::exit (int); using std::exit;' \
2811    'extern "C" void exit (int) throw ();' \
2812    'extern "C" void exit (int);' \
2813    'void exit (int);'
2814 do
2815   cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h.  */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h.  */
2821 $ac_declaration
2822 #include <stdlib.h>
2823 int
2824 main ()
2825 {
2826 exit (42);
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833   (eval $ac_compile) 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } &&
2840          { ac_try='test -z "$ac_cxx_werror_flag"
2841                          || test ! -s conftest.err'
2842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; } &&
2847          { ac_try='test -s conftest.$ac_objext'
2848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; }; then
2853   :
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 continue
2859 fi
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861   cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 $ac_declaration
2868 int
2869 main ()
2870 {
2871 exit (42);
2872   ;
2873   return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878   (eval $ac_compile) 2>conftest.er1
2879   ac_status=$?
2880   grep -v '^ *+' conftest.er1 >conftest.err
2881   rm -f conftest.er1
2882   cat conftest.err >&5
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } &&
2885          { ac_try='test -z "$ac_cxx_werror_flag"
2886                          || test ! -s conftest.err'
2887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888   (eval $ac_try) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; } &&
2892          { ac_try='test -s conftest.$ac_objext'
2893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894   (eval $ac_try) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; }; then
2898   break
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 fi
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 done
2906 rm -f conftest*
2907 if test -n "$ac_declaration"; then
2908   echo '#ifdef __cplusplus' >>confdefs.h
2909   echo $ac_declaration      >>confdefs.h
2910   echo '#endif'             >>confdefs.h
2911 fi
2912
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918
2919
2920 if test "x$CHECKMEM" '!=' "x";then
2921     CC="ccmalloc $CC"
2922     CXX="ccmalloc $CXX"
2923     #echo running again
2924     #unset ac_cv_prog_CC
2925     #unset ac_cv_prog_CXX
2926     #AC_PROG_CC
2927     #AC_PROG_CXX
2928 fi
2929  ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2935 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2936 # On Suns, sometimes $CPP names a directory.
2937 if test -n "$CPP" && test -d "$CPP"; then
2938   CPP=
2939 fi
2940 if test -z "$CPP"; then
2941   if test "${ac_cv_prog_CPP+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944       # Double quotes because CPP needs to be expanded
2945     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2946     do
2947       ac_preproc_ok=false
2948 for ac_c_preproc_warn_flag in '' yes
2949 do
2950   # Use a header file that comes with gcc, so configuring glibc
2951   # with a fresh cross-compiler works.
2952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2953   # <limits.h> exists even on freestanding compilers.
2954   # On the NeXT, cc -E runs the code through the compiler's parser,
2955   # not just through cpp. "Syntax error" is here to catch this case.
2956   cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h.  */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h.  */
2962 #ifdef __STDC__
2963 # include <limits.h>
2964 #else
2965 # include <assert.h>
2966 #endif
2967                      Syntax error
2968 _ACEOF
2969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2971   ac_status=$?
2972   grep -v '^ *+' conftest.er1 >conftest.err
2973   rm -f conftest.er1
2974   cat conftest.err >&5
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } >/dev/null; then
2977   if test -s conftest.err; then
2978     ac_cpp_err=$ac_c_preproc_warn_flag
2979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2980   else
2981     ac_cpp_err=
2982   fi
2983 else
2984   ac_cpp_err=yes
2985 fi
2986 if test -z "$ac_cpp_err"; then
2987   :
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992   # Broken: fails on valid input.
2993 continue
2994 fi
2995 rm -f conftest.err conftest.$ac_ext
2996
2997   # OK, works on sane cases.  Now check whether non-existent headers
2998   # can be detected and how.
2999   cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005 #include <ac_nonexistent.h>
3006 _ACEOF
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } >/dev/null; then
3015   if test -s conftest.err; then
3016     ac_cpp_err=$ac_c_preproc_warn_flag
3017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3018   else
3019     ac_cpp_err=
3020   fi
3021 else
3022   ac_cpp_err=yes
3023 fi
3024 if test -z "$ac_cpp_err"; then
3025   # Broken: success on invalid input.
3026 continue
3027 else
3028   echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031   # Passes both tests.
3032 ac_preproc_ok=:
3033 break
3034 fi
3035 rm -f conftest.err conftest.$ac_ext
3036
3037 done
3038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3039 rm -f conftest.err conftest.$ac_ext
3040 if $ac_preproc_ok; then
3041   break
3042 fi
3043
3044     done
3045     ac_cv_prog_CPP=$CPP
3046
3047 fi
3048   CPP=$ac_cv_prog_CPP
3049 else
3050   ac_cv_prog_CPP=$CPP
3051 fi
3052 echo "$as_me:$LINENO: result: $CPP" >&5
3053 echo "${ECHO_T}$CPP" >&6
3054 ac_preproc_ok=false
3055 for ac_c_preproc_warn_flag in '' yes
3056 do
3057   # Use a header file that comes with gcc, so configuring glibc
3058   # with a fresh cross-compiler works.
3059   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060   # <limits.h> exists even on freestanding compilers.
3061   # On the NeXT, cc -E runs the code through the compiler's parser,
3062   # not just through cpp. "Syntax error" is here to catch this case.
3063   cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069 #ifdef __STDC__
3070 # include <limits.h>
3071 #else
3072 # include <assert.h>
3073 #endif
3074                      Syntax error
3075 _ACEOF
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } >/dev/null; then
3084   if test -s conftest.err; then
3085     ac_cpp_err=$ac_c_preproc_warn_flag
3086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3087   else
3088     ac_cpp_err=
3089   fi
3090 else
3091   ac_cpp_err=yes
3092 fi
3093 if test -z "$ac_cpp_err"; then
3094   :
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099   # Broken: fails on valid input.
3100 continue
3101 fi
3102 rm -f conftest.err conftest.$ac_ext
3103
3104   # OK, works on sane cases.  Now check whether non-existent headers
3105   # can be detected and how.
3106   cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3112 #include <ac_nonexistent.h>
3113 _ACEOF
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
3119   cat conftest.err >&5
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } >/dev/null; then
3122   if test -s conftest.err; then
3123     ac_cpp_err=$ac_c_preproc_warn_flag
3124     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3125   else
3126     ac_cpp_err=
3127   fi
3128 else
3129   ac_cpp_err=yes
3130 fi
3131 if test -z "$ac_cpp_err"; then
3132   # Broken: success on invalid input.
3133 continue
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138   # Passes both tests.
3139 ac_preproc_ok=:
3140 break
3141 fi
3142 rm -f conftest.err conftest.$ac_ext
3143
3144 done
3145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146 rm -f conftest.err conftest.$ac_ext
3147 if $ac_preproc_ok; then
3148   :
3149 else
3150   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3151 See \`config.log' for more details." >&5
3152 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3153 See \`config.log' for more details." >&2;}
3154    { (exit 1); exit 1; }; }
3155 fi
3156
3157 ac_ext=c
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162
3163
3164  if test -n "$ac_tool_prefix"; then
3165   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3167 echo "$as_me:$LINENO: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_prog_RANLIB+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172   if test -n "$RANLIB"; then
3173   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180   for ac_exec_ext in '' $ac_executable_extensions; do
3181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184     break 2
3185   fi
3186 done
3187 done
3188
3189 fi
3190 fi
3191 RANLIB=$ac_cv_prog_RANLIB
3192 if test -n "$RANLIB"; then
3193   echo "$as_me:$LINENO: result: $RANLIB" >&5
3194 echo "${ECHO_T}$RANLIB" >&6
3195 else
3196   echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 fi
3199
3200 fi
3201 if test -z "$ac_cv_prog_RANLIB"; then
3202   ac_ct_RANLIB=$RANLIB
3203   # Extract the first word of "ranlib", so it can be a program name with args.
3204 set dummy ranlib; ac_word=$2
3205 echo "$as_me:$LINENO: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   if test -n "$ac_ct_RANLIB"; then
3211   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218   for ac_exec_ext in '' $ac_executable_extensions; do
3219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220     ac_cv_prog_ac_ct_RANLIB="ranlib"
3221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222     break 2
3223   fi
3224 done
3225 done
3226
3227   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3228 fi
3229 fi
3230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3231 if test -n "$ac_ct_RANLIB"; then
3232   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3233 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3234 else
3235   echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3237 fi
3238
3239   RANLIB=$ac_ct_RANLIB
3240 else
3241   RANLIB="$ac_cv_prog_RANLIB"
3242 fi
3243
3244  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3245 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3246 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3247 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   cat >conftest.make <<\_ACEOF
3251 all:
3252         @echo 'ac_maketemp="$(MAKE)"'
3253 _ACEOF
3254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3255 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3256 if test -n "$ac_maketemp"; then
3257   eval ac_cv_prog_make_${ac_make}_set=yes
3258 else
3259   eval ac_cv_prog_make_${ac_make}_set=no
3260 fi
3261 rm -f conftest.make
3262 fi
3263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3264   echo "$as_me:$LINENO: result: yes" >&5
3265 echo "${ECHO_T}yes" >&6
3266   SET_MAKE=
3267 else
3268   echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3270   SET_MAKE="MAKE=${MAKE-make}"
3271 fi
3272
3273  # Find a good install program.  We prefer a C program (faster),
3274 # so one script is as good as another.  But avoid the broken or
3275 # incompatible versions:
3276 # SysV /etc/install, /usr/sbin/install
3277 # SunOS /usr/etc/install
3278 # IRIX /sbin/install
3279 # AIX /bin/install
3280 # AmigaOS /C/install, which installs bootblocks on floppy discs
3281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3284 # OS/2's system install, which has a completely different semantic
3285 # ./install, which can be erroneously created by make from ./install.sh.
3286 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3288 if test -z "$INSTALL"; then
3289 if test "${ac_cv_path_install+set}" = set; then
3290   echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   # Account for people who put trailing slashes in PATH elements.
3298 case $as_dir/ in
3299   ./ | .// | /cC/* | \
3300   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3301   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3302   /usr/ucb/* ) ;;
3303   *)
3304     # OSF1 and SCO ODT 3.0 have their own names for install.
3305     # Don't use installbsd from OSF since it installs stuff as root
3306     # by default.
3307     for ac_prog in ginstall scoinst install; do
3308       for ac_exec_ext in '' $ac_executable_extensions; do
3309         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3310           if test $ac_prog = install &&
3311             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3312             # AIX install.  It has an incompatible calling convention.
3313             :
3314           elif test $ac_prog = install &&
3315             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3316             # program-specific install script used by HP pwplus--don't use.
3317             :
3318           else
3319             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3320             break 3
3321           fi
3322         fi
3323       done
3324     done
3325     ;;
3326 esac
3327 done
3328
3329
3330 fi
3331   if test "${ac_cv_path_install+set}" = set; then
3332     INSTALL=$ac_cv_path_install
3333   else
3334     # As a last resort, use the slow shell script.  We don't cache a
3335     # path for INSTALL within a source directory, because that will
3336     # break other packages using the cache if that directory is
3337     # removed, or if the path is relative.
3338     INSTALL=$ac_install_sh
3339   fi
3340 fi
3341 echo "$as_me:$LINENO: result: $INSTALL" >&5
3342 echo "${ECHO_T}$INSTALL" >&6
3343
3344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3345 # It thinks the first close brace ends the variable substitution.
3346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3347
3348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3349
3350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3351
3352  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3354 LN_S=$as_ln_s
3355 if test "$LN_S" = "ln -s"; then
3356   echo "$as_me:$LINENO: result: yes" >&5
3357 echo "${ECHO_T}yes" >&6
3358 else
3359   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3360 echo "${ECHO_T}no, using $LN_S" >&6
3361 fi
3362
3363  # Check whether --enable-shared or --disable-shared was given.
3364 if test "${enable_shared+set}" = set; then
3365   enableval="$enable_shared"
3366   p=${PACKAGE-default}
3367 case $enableval in
3368 yes) enable_shared=yes ;;
3369 no) enable_shared=no ;;
3370 *)
3371   enable_shared=no
3372   # Look at the argument we got.  We use all the common list separators.
3373   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3374   for pkg in $enableval; do
3375     if test "X$pkg" = "X$p"; then
3376       enable_shared=yes
3377     fi
3378   done
3379   IFS="$ac_save_ifs"
3380   ;;
3381 esac
3382 else
3383   enable_shared=yes
3384 fi;
3385 # Check whether --enable-static or --disable-static was given.
3386 if test "${enable_static+set}" = set; then
3387   enableval="$enable_static"
3388   p=${PACKAGE-default}
3389 case $enableval in
3390 yes) enable_static=yes ;;
3391 no) enable_static=no ;;
3392 *)
3393   enable_static=no
3394   # Look at the argument we got.  We use all the common list separators.
3395   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3396   for pkg in $enableval; do
3397     if test "X$pkg" = "X$p"; then
3398       enable_static=yes
3399     fi
3400   done
3401   IFS="$ac_save_ifs"
3402   ;;
3403 esac
3404 else
3405   enable_static=yes
3406 fi;
3407 # Check whether --enable-fast-install or --disable-fast-install was given.
3408 if test "${enable_fast_install+set}" = set; then
3409   enableval="$enable_fast_install"
3410   p=${PACKAGE-default}
3411 case $enableval in
3412 yes) enable_fast_install=yes ;;
3413 no) enable_fast_install=no ;;
3414 *)
3415   enable_fast_install=no
3416   # Look at the argument we got.  We use all the common list separators.
3417   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3418   for pkg in $enableval; do
3419     if test "X$pkg" = "X$p"; then
3420       enable_fast_install=yes
3421     fi
3422   done
3423   IFS="$ac_save_ifs"
3424   ;;
3425 esac
3426 else
3427   enable_fast_install=yes
3428 fi;
3429 # Find the correct PATH separator.  Usually this is `:', but
3430 # DJGPP uses `;' like DOS.
3431 if test "X${PATH_SEPARATOR+set}" != Xset; then
3432   UNAME=${UNAME-`uname 2>/dev/null`}
3433   case X$UNAME in
3434     *-DOS) lt_cv_sys_path_separator=';' ;;
3435     *)     lt_cv_sys_path_separator=':' ;;
3436   esac
3437   PATH_SEPARATOR=$lt_cv_sys_path_separator
3438 fi
3439
3440
3441 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3442 if test "${with_gnu_ld+set}" = set; then
3443   withval="$with_gnu_ld"
3444   test "$withval" = no || with_gnu_ld=yes
3445 else
3446   with_gnu_ld=no
3447 fi;
3448 ac_prog=ld
3449 if test "$GCC" = yes; then
3450   # Check if gcc -print-prog-name=ld gives a path.
3451   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3452 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3453   case $host in
3454   *-*-mingw*)
3455     # gcc leaves a trailing carriage return which upsets mingw
3456     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3457   *)
3458     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3459   esac
3460   case $ac_prog in
3461     # Accept absolute paths.
3462     [\\/]* | [A-Za-z]:[\\/]*)
3463       re_direlt='/[^/][^/]*/\.\./'
3464       # Canonicalize the path of ld
3465       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3466       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3467         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3468       done
3469       test -z "$LD" && LD="$ac_prog"
3470       ;;
3471   "")
3472     # If it fails, then pretend we aren't using GCC.
3473     ac_prog=ld
3474     ;;
3475   *)
3476     # If it is relative, then search for the first ld in PATH.
3477     with_gnu_ld=unknown
3478     ;;
3479   esac
3480 elif test "$with_gnu_ld" = yes; then
3481   echo "$as_me:$LINENO: checking for GNU ld" >&5
3482 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3483 else
3484   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3485 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3486 fi
3487 if test "${lt_cv_path_LD+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   if test -z "$LD"; then
3491   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3492   for ac_dir in $PATH; do
3493     test -z "$ac_dir" && ac_dir=.
3494     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3495       lt_cv_path_LD="$ac_dir/$ac_prog"
3496       # Check to see if the program is GNU ld.  I'd rather use --version,
3497       # but apparently some GNU ld's only accept -v.
3498       # Break only if it was the GNU/non-GNU ld that we prefer.
3499       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3500         test "$with_gnu_ld" != no && break
3501       else
3502         test "$with_gnu_ld" != yes && break
3503       fi
3504     fi
3505   done
3506   IFS="$ac_save_ifs"
3507 else
3508   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3509 fi
3510 fi
3511
3512 LD="$lt_cv_path_LD"
3513 if test -n "$LD"; then
3514   echo "$as_me:$LINENO: result: $LD" >&5
3515 echo "${ECHO_T}$LD" >&6
3516 else
3517   echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3519 fi
3520 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3521 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3522    { (exit 1); exit 1; }; }
3523 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3524 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3525 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3529 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3530   lt_cv_prog_gnu_ld=yes
3531 else
3532   lt_cv_prog_gnu_ld=no
3533 fi
3534 fi
3535 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3536 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3537 with_gnu_ld=$lt_cv_prog_gnu_ld
3538
3539
3540 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3541 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3542 if test "${lt_cv_ld_reload_flag+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   lt_cv_ld_reload_flag='-r'
3546 fi
3547 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3548 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3549 reload_flag=$lt_cv_ld_reload_flag
3550 test -n "$reload_flag" && reload_flag=" $reload_flag"
3551
3552 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3553 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3554 if test "${lt_cv_path_NM+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   if test -n "$NM"; then
3558   # Let the user override the test.
3559   lt_cv_path_NM="$NM"
3560 else
3561   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3562   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3563     test -z "$ac_dir" && ac_dir=.
3564     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3565     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3566       # Check to see if the nm accepts a BSD-compat flag.
3567       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3568       #   nm: unknown option "B" ignored
3569       # Tru64's nm complains that /dev/null is an invalid object file
3570       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3571         lt_cv_path_NM="$tmp_nm -B"
3572         break
3573       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3574         lt_cv_path_NM="$tmp_nm -p"
3575         break
3576       else
3577         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3578         continue # so that we can try to find one that supports BSD flags
3579       fi
3580     fi
3581   done
3582   IFS="$ac_save_ifs"
3583   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3584 fi
3585 fi
3586
3587 NM="$lt_cv_path_NM"
3588 echo "$as_me:$LINENO: result: $NM" >&5
3589 echo "${ECHO_T}$NM" >&6
3590
3591 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3592 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3593 if test "${lt_cv_path_SED+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   # Loop through the user's path and test for sed and gsed.
3597 # Then use that list of sed's as ones to test for truncation.
3598 as_executable_p="test -f"
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604   for ac_prog in sed gsed; do
3605     for ac_exec_ext in '' $ac_executable_extensions; do
3606       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3608       fi
3609     done
3610   done
3611 done
3612
3613   # Create a temporary directory, and hook for its removal unless debugging.
3614 $debug ||
3615 {
3616   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3617   trap '{ (exit 1); exit 1; }' 1 2 13 15
3618 }
3619
3620 # Create a (secure) tmp directory for tmp files.
3621 : ${TMPDIR=/tmp}
3622 {
3623   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3624   test -n "$tmp" && test -d "$tmp"
3625 }  ||
3626 {
3627   tmp=$TMPDIR/sed$$-$RANDOM
3628   (umask 077 && mkdir $tmp)
3629 } ||
3630 {
3631    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3632    { (exit 1); exit 1; }
3633 }
3634   _max=0
3635   _count=0
3636   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3637   # along with /bin/sed that truncates output.
3638   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3639     test ! -f ${_sed} && break
3640     cat /dev/null > "$tmp/sed.in"
3641     _count=0
3642     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3643     # Check for GNU sed and select it if it is found.
3644     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3645       lt_cv_path_SED=${_sed}
3646       break
3647     fi
3648     while true; do
3649       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3650       mv "$tmp/sed.tmp" "$tmp/sed.in"
3651       cp "$tmp/sed.in" "$tmp/sed.nl"
3652       echo >>"$tmp/sed.nl"
3653       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3654       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3655       # 40000 chars as input seems more than enough
3656       test $_count -gt 10 && break
3657       _count=`expr $_count + 1`
3658       if test $_count -gt $_max; then
3659         _max=$_count
3660         lt_cv_path_SED=$_sed
3661       fi
3662     done
3663   done
3664   rm -rf "$tmp"
3665
3666 fi
3667
3668 if test "X$SED" != "X"; then
3669   lt_cv_path_SED=$SED
3670 else
3671   SED=$lt_cv_path_SED
3672 fi
3673 echo "$as_me:$LINENO: result: $SED" >&5
3674 echo "${ECHO_T}$SED" >&6
3675
3676 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3677 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3678 if test "${lt_cv_deplibs_check_method+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   lt_cv_file_magic_cmd='$MAGIC_CMD'
3682 lt_cv_file_magic_test_file=
3683 lt_cv_deplibs_check_method='unknown'
3684 # Need to set the preceding variable on all platforms that support
3685 # interlibrary dependencies.
3686 # 'none' -- dependencies not supported.
3687 # `unknown' -- same as none, but documents that we really don't know.
3688 # 'pass_all' -- all dependencies passed with no checks.
3689 # 'test_compile' -- check by making test program.
3690 # 'file_magic [[regex]]' -- check by looking for files in library path
3691 # which responds to the $file_magic_cmd with a given egrep regex.
3692 # If you have `file' or equivalent on your system and you're not sure
3693 # whether `pass_all' will *always* work, you probably want this one.
3694
3695 case $host_os in
3696 aix4* | aix5*)
3697   lt_cv_deplibs_check_method=pass_all
3698   ;;
3699
3700 beos*)
3701   lt_cv_deplibs_check_method=pass_all
3702   ;;
3703
3704 bsdi4*)
3705   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3706   lt_cv_file_magic_cmd='/usr/bin/file -L'
3707   lt_cv_file_magic_test_file=/shlib/libc.so
3708   ;;
3709
3710 cygwin* | mingw* | pw32*)
3711   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3712   lt_cv_file_magic_cmd='$OBJDUMP -f'
3713   ;;
3714
3715 darwin* | rhapsody*)
3716   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3717   lt_cv_file_magic_cmd='/usr/bin/file -L'
3718   case "$host_os" in
3719   rhapsody* | darwin1.[012])
3720     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3721     ;;
3722   *) # Darwin 1.3 on
3723     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3724     ;;
3725   esac
3726   ;;
3727
3728 freebsd*)
3729   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3730     case $host_cpu in
3731     i*86 )
3732       # Not sure whether the presence of OpenBSD here was a mistake.
3733       # Let's accept both of them until this is cleared up.
3734       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3735       lt_cv_file_magic_cmd=/usr/bin/file
3736       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3737       ;;
3738     esac
3739   else
3740     lt_cv_deplibs_check_method=pass_all
3741   fi
3742   ;;
3743
3744 gnu*)
3745   lt_cv_deplibs_check_method=pass_all
3746   ;;
3747
3748 hpux10.20*|hpux11*)
3749   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3750   lt_cv_file_magic_cmd=/usr/bin/file
3751   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3752   ;;
3753
3754 irix5* | irix6* | nonstopux*)
3755   case $host_os in
3756   irix5* | nonstopux*)
3757     # this will be overridden with pass_all, but let us keep it just in case
3758     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3759     ;;
3760   *)
3761     case $LD in
3762     *-32|*"-32 ") libmagic=32-bit;;
3763     *-n32|*"-n32 ") libmagic=N32;;
3764     *-64|*"-64 ") libmagic=64-bit;;
3765     *) libmagic=never-match;;
3766     esac
3767     # this will be overridden with pass_all, but let us keep it just in case
3768     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3769     ;;
3770   esac
3771   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3772   lt_cv_deplibs_check_method=pass_all
3773   ;;
3774
3775 # This must be Linux ELF.
3776 linux-gnu*)
3777   case $host_cpu in
3778   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3779     lt_cv_deplibs_check_method=pass_all ;;
3780   *)
3781     # glibc up to 2.1.1 does not perform some relocations on ARM
3782     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3783   esac
3784   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3785   ;;
3786
3787 netbsd*)
3788   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3789     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3790   else
3791     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3792   fi
3793   ;;
3794
3795 newos6*)
3796   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3797   lt_cv_file_magic_cmd=/usr/bin/file
3798   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3799   ;;
3800
3801 openbsd*)
3802   lt_cv_file_magic_cmd=/usr/bin/file
3803   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3804   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3805     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3806   else
3807     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3808   fi
3809   ;;
3810
3811 osf3* | osf4* | osf5*)
3812   # this will be overridden with pass_all, but let us keep it just in case
3813   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3814   lt_cv_file_magic_test_file=/shlib/libc.so
3815   lt_cv_deplibs_check_method=pass_all
3816   ;;
3817
3818 sco3.2v5*)
3819   lt_cv_deplibs_check_method=pass_all
3820   ;;
3821
3822 solaris*)
3823   lt_cv_deplibs_check_method=pass_all
3824   lt_cv_file_magic_test_file=/lib/libc.so
3825   ;;
3826
3827 sysv5uw[78]* | sysv4*uw2*)
3828   lt_cv_deplibs_check_method=pass_all
3829   ;;
3830
3831 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3832   case $host_vendor in
3833   motorola)
3834     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]'
3835     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3836     ;;
3837   ncr)
3838     lt_cv_deplibs_check_method=pass_all
3839     ;;
3840   sequent)
3841     lt_cv_file_magic_cmd='/bin/file'
3842     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3843     ;;
3844   sni)
3845     lt_cv_file_magic_cmd='/bin/file'
3846     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3847     lt_cv_file_magic_test_file=/lib/libc.so
3848     ;;
3849   siemens)
3850     lt_cv_deplibs_check_method=pass_all
3851     ;;
3852   esac
3853   ;;
3854 esac
3855
3856 fi
3857 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3858 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3859 file_magic_cmd=$lt_cv_file_magic_cmd
3860 deplibs_check_method=$lt_cv_deplibs_check_method
3861
3862
3863
3864
3865
3866
3867
3868
3869 # Check for command to grab the raw symbol name followed by C symbol from nm.
3870 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3871 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3872 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875
3876 # These are sane defaults that work on at least a few old systems.
3877 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3878
3879 # Character class describing NM global symbol codes.
3880 symcode='[BCDEGRST]'
3881
3882 # Regexp to match symbols that can be accessed directly from C.
3883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3884
3885 # Transform the above into a raw symbol and a C symbol.
3886 symxfrm='\1 \2\3 \3'
3887
3888 # Transform an extracted symbol line into a proper C declaration
3889 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3890
3891 # Transform an extracted symbol line into symbol name and symbol address
3892 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'"
3893
3894 # Define system-specific variables.
3895 case $host_os in
3896 aix*)
3897   symcode='[BCDT]'
3898   ;;
3899 cygwin* | mingw* | pw32*)
3900   symcode='[ABCDGISTW]'
3901   ;;
3902 hpux*) # Its linker distinguishes data from code symbols
3903   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3904   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'"
3905   ;;
3906 irix* | nonstopux*)
3907   symcode='[BCDEGRST]'
3908   ;;
3909 osf*)
3910   symcode='[BCDEGQRST]'
3911   ;;
3912 solaris* | sysv5*)
3913   symcode='[BDT]'
3914   ;;
3915 sysv4)
3916   symcode='[DFNSTU]'
3917   ;;
3918 esac
3919
3920 # Handle CRLF in mingw tool chain
3921 opt_cr=
3922 case $host_os in
3923 mingw*)
3924   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3925   ;;
3926 esac
3927
3928 # If we're using GNU nm, then use its standard symbol codes.
3929 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3930   symcode='[ABCDGISTW]'
3931 fi
3932
3933 # Try without a prefix undercore, then with it.
3934 for ac_symprfx in "" "_"; do
3935
3936   # Write the raw and C identifiers.
3937 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3938
3939   # Check to see that the pipe works correctly.
3940   pipe_works=no
3941   rm -f conftest*
3942   cat > conftest.$ac_ext <<EOF
3943 #ifdef __cplusplus
3944 extern "C" {
3945 #endif
3946 char nm_test_var;
3947 void nm_test_func(){}
3948 #ifdef __cplusplus
3949 }
3950 #endif
3951 int main(){nm_test_var='a';nm_test_func();return(0);}
3952 EOF
3953
3954   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955   (eval $ac_compile) 2>&5
3956   ac_status=$?
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); }; then
3959     # Now try to grab the symbols.
3960     nlist=conftest.nm
3961     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3962   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } && test -s "$nlist"; then
3966       # Try sorting and uniquifying the output.
3967       if sort "$nlist" | uniq > "$nlist"T; then
3968         mv -f "$nlist"T "$nlist"
3969       else
3970         rm -f "$nlist"T
3971       fi
3972
3973       # Make sure that we snagged all the symbols we need.
3974       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3975         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3976           cat <<EOF > conftest.$ac_ext
3977 #ifdef __cplusplus
3978 extern "C" {
3979 #endif
3980
3981 EOF
3982           # Now generate the symbol file.
3983           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3984
3985           cat <<EOF >> conftest.$ac_ext
3986 #if defined (__STDC__) && __STDC__
3987 # define lt_ptr void *
3988 #else
3989 # define lt_ptr char *
3990 # define const
3991 #endif
3992
3993 /* The mapping between symbol names and symbols. */
3994 const struct {
3995   const char *name;
3996   lt_ptr address;
3997 }
3998 lt_preloaded_symbols[] =
3999 {
4000 EOF
4001           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4002           cat <<\EOF >> conftest.$ac_ext
4003   {0, (lt_ptr) 0}
4004 };
4005
4006 #ifdef __cplusplus
4007 }
4008 #endif
4009 EOF
4010           # Now try linking the two files.
4011           mv conftest.$ac_objext conftstm.$ac_objext
4012           save_LIBS="$LIBS"
4013           save_CFLAGS="$CFLAGS"
4014           LIBS="conftstm.$ac_objext"
4015           CFLAGS="$CFLAGS$no_builtin_flag"
4016           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017   (eval $ac_link) 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); } && test -s conftest$ac_exeext; then
4021             pipe_works=yes
4022           fi
4023           LIBS="$save_LIBS"
4024           CFLAGS="$save_CFLAGS"
4025         else
4026           echo "cannot find nm_test_func in $nlist" >&5
4027         fi
4028       else
4029         echo "cannot find nm_test_var in $nlist" >&5
4030       fi
4031     else
4032       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4033     fi
4034   else
4035     echo "$progname: failed program was:" >&5
4036     cat conftest.$ac_ext >&5
4037   fi
4038   rm -f conftest* conftst*
4039
4040   # Do not use the global_symbol_pipe unless it works.
4041   if test "$pipe_works" = yes; then
4042     break
4043   else
4044     lt_cv_sys_global_symbol_pipe=
4045   fi
4046 done
4047
4048 fi
4049
4050 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4051 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4052   global_symbol_to_cdecl=
4053   global_symbol_to_c_name_address=
4054 else
4055   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4056   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4057 fi
4058 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4059 then
4060   echo "$as_me:$LINENO: result: failed" >&5
4061 echo "${ECHO_T}failed" >&6
4062 else
4063   echo "$as_me:$LINENO: result: ok" >&5
4064 echo "${ECHO_T}ok" >&6
4065 fi
4066
4067
4068 echo "$as_me:$LINENO: checking for egrep" >&5
4069 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4070 if test "${ac_cv_prog_egrep+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4074     then ac_cv_prog_egrep='grep -E'
4075     else ac_cv_prog_egrep='egrep'
4076     fi
4077 fi
4078 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4079 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4080  EGREP=$ac_cv_prog_egrep
4081
4082
4083 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4085 if test "${ac_cv_header_stdc+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h.  */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h.  */
4094 #include <stdlib.h>
4095 #include <stdarg.h>
4096 #include <string.h>
4097 #include <float.h>
4098
4099 int
4100 main ()
4101 {
4102
4103   ;
4104   return 0;
4105 }
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109   (eval $ac_compile) 2>conftest.er1
4110   ac_status=$?
4111   grep -v '^ *+' conftest.er1 >conftest.err
4112   rm -f conftest.er1
4113   cat conftest.err >&5
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } &&
4116          { ac_try='test -z "$ac_c_werror_flag"
4117                          || test ! -s conftest.err'
4118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119   (eval $ac_try) 2>&5
4120   ac_status=$?
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); }; } &&
4123          { ac_try='test -s conftest.$ac_objext'
4124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125   (eval $ac_try) 2>&5
4126   ac_status=$?
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); }; }; then
4129   ac_cv_header_stdc=yes
4130 else
4131   echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 ac_cv_header_stdc=no
4135 fi
4136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4137
4138 if test $ac_cv_header_stdc = yes; then
4139   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <string.h>
4147
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150   $EGREP "memchr" >/dev/null 2>&1; then
4151   :
4152 else
4153   ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest*
4156
4157 fi
4158
4159 if test $ac_cv_header_stdc = yes; then
4160   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <stdlib.h>
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "free" >/dev/null 2>&1; then
4172   :
4173 else
4174   ac_cv_header_stdc=no
4175 fi
4176 rm -f conftest*
4177
4178 fi
4179
4180 if test $ac_cv_header_stdc = yes; then
4181   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182   if test "$cross_compiling" = yes; then
4183   :
4184 else
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #include <ctype.h>
4192 #if ((' ' & 0x0FF) == 0x020)
4193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4195 #else
4196 # define ISLOWER(c) \
4197                    (('a' <= (c) && (c) <= 'i') \
4198                      || ('j' <= (c) && (c) <= 'r') \
4199                      || ('s' <= (c) && (c) <= 'z'))
4200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4201 #endif
4202
4203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4204 int
4205 main ()
4206 {
4207   int i;
4208   for (i = 0; i < 256; i++)
4209     if (XOR (islower (i), ISLOWER (i))
4210         || toupper (i) != TOUPPER (i))
4211       exit(2);
4212   exit (0);
4213 }
4214 _ACEOF
4215 rm -f conftest$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217   (eval $ac_link) 2>&5
4218   ac_status=$?
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222   (eval $ac_try) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; }; then
4226   :
4227 else
4228   echo "$as_me: program exited with status $ac_status" >&5
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4232 ( exit $ac_status )
4233 ac_cv_header_stdc=no
4234 fi
4235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4236 fi
4237 fi
4238 fi
4239 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4240 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4241 if test $ac_cv_header_stdc = yes; then
4242
4243 cat >>confdefs.h <<\_ACEOF
4244 #define STDC_HEADERS 1
4245 _ACEOF
4246
4247 fi
4248
4249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4260                   inttypes.h stdint.h unistd.h
4261 do
4262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4263 echo "$as_me:$LINENO: checking for $ac_header" >&5
4264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h.  */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h.  */
4274 $ac_includes_default
4275
4276 #include <$ac_header>
4277 _ACEOF
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280   (eval $ac_compile) 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } &&
4287          { ac_try='test -z "$ac_c_werror_flag"
4288                          || test ! -s conftest.err'
4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290   (eval $ac_try) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; } &&
4294          { ac_try='test -s conftest.$ac_objext'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; }; then
4300   eval "$as_ac_Header=yes"
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 eval "$as_ac_Header=no"
4306 fi
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4312   cat >>confdefs.h <<_ACEOF
4313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4314 _ACEOF
4315
4316 fi
4317
4318 done
4319
4320
4321
4322 for ac_header in dlfcn.h
4323 do
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326   echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 fi
4331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4333 else
4334   # Is the header compilable?
4335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h.  */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h.  */
4343 $ac_includes_default
4344 #include <$ac_header>
4345 _ACEOF
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348   (eval $ac_compile) 2>conftest.er1
4349   ac_status=$?
4350   grep -v '^ *+' conftest.er1 >conftest.err
4351   rm -f conftest.er1
4352   cat conftest.err >&5
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); } &&
4355          { ac_try='test -z "$ac_c_werror_flag"
4356                          || test ! -s conftest.err'
4357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358   (eval $ac_try) 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); }; } &&
4362          { ac_try='test -s conftest.$ac_objext'
4363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364   (eval $ac_try) 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; }; then
4368   ac_header_compiler=yes
4369 else
4370   echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 ac_header_compiler=no
4374 fi
4375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4377 echo "${ECHO_T}$ac_header_compiler" >&6
4378
4379 # Is the header present?
4380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388 #include <$ac_header>
4389 _ACEOF
4390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392   ac_status=$?
4393   grep -v '^ *+' conftest.er1 >conftest.err
4394   rm -f conftest.er1
4395   cat conftest.err >&5
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); } >/dev/null; then
4398   if test -s conftest.err; then
4399     ac_cpp_err=$ac_c_preproc_warn_flag
4400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4401   else
4402     ac_cpp_err=
4403   fi
4404 else
4405   ac_cpp_err=yes
4406 fi
4407 if test -z "$ac_cpp_err"; then
4408   ac_header_preproc=yes
4409 else
4410   echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413   ac_header_preproc=no
4414 fi
4415 rm -f conftest.err conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4417 echo "${ECHO_T}$ac_header_preproc" >&6
4418
4419 # So?  What about this header?
4420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4421   yes:no: )
4422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4426     ac_header_preproc=yes
4427     ;;
4428   no:yes:* )
4429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4441     (
4442       cat <<\_ASBOX
4443 ## ------------------------------------------ ##
4444 ## Report this to the AC_PACKAGE_NAME lists.  ##
4445 ## ------------------------------------------ ##
4446 _ASBOX
4447     ) |
4448       sed "s/^/$as_me: WARNING:     /" >&2
4449     ;;
4450 esac
4451 echo "$as_me:$LINENO: checking for $ac_header" >&5
4452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   eval "$as_ac_Header=\$ac_header_preproc"
4457 fi
4458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4460
4461 fi
4462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463   cat >>confdefs.h <<_ACEOF
4464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465 _ACEOF
4466
4467 fi
4468
4469 done
4470
4471
4472
4473
4474
4475
4476 # Only perform the check for file, if the check method requires it
4477 case $deplibs_check_method in
4478 file_magic*)
4479   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4480     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4481 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   case $MAGIC_CMD in
4486   /*)
4487   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4488   ;;
4489   ?:/*)
4490   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4491   ;;
4492   *)
4493   ac_save_MAGIC_CMD="$MAGIC_CMD"
4494   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4495   ac_dummy="/usr/bin:$PATH"
4496   for ac_dir in $ac_dummy; do
4497     test -z "$ac_dir" && ac_dir=.
4498     if test -f $ac_dir/${ac_tool_prefix}file; then
4499       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4500       if test -n "$file_magic_test_file"; then
4501         case $deplibs_check_method in
4502         "file_magic "*)
4503           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4504           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4505           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4506             egrep "$file_magic_regex" > /dev/null; then
4507             :
4508           else
4509             cat <<EOF 1>&2
4510
4511 *** Warning: the command libtool uses to detect shared libraries,
4512 *** $file_magic_cmd, produces output that libtool cannot recognize.
4513 *** The result is that libtool may fail to recognize shared libraries
4514 *** as such.  This will affect the creation of libtool libraries that
4515 *** depend on shared libraries, but programs linked with such libtool
4516 *** libraries will work regardless of this problem.  Nevertheless, you
4517 *** may want to report the problem to your system manager and/or to
4518 *** bug-libtool@gnu.org
4519
4520 EOF
4521           fi ;;
4522         esac
4523       fi
4524       break
4525     fi
4526   done
4527   IFS="$ac_save_ifs"
4528   MAGIC_CMD="$ac_save_MAGIC_CMD"
4529   ;;
4530 esac
4531 fi
4532
4533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4534 if test -n "$MAGIC_CMD"; then
4535   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4536 echo "${ECHO_T}$MAGIC_CMD" >&6
4537 else
4538   echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4540 fi
4541
4542 if test -z "$lt_cv_path_MAGIC_CMD"; then
4543   if test -n "$ac_tool_prefix"; then
4544     echo "$as_me:$LINENO: checking for file" >&5
4545 echo $ECHO_N "checking for file... $ECHO_C" >&6
4546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4547   echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549   case $MAGIC_CMD in
4550   /*)
4551   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4552   ;;
4553   ?:/*)
4554   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4555   ;;
4556   *)
4557   ac_save_MAGIC_CMD="$MAGIC_CMD"
4558   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4559   ac_dummy="/usr/bin:$PATH"
4560   for ac_dir in $ac_dummy; do
4561     test -z "$ac_dir" && ac_dir=.
4562     if test -f $ac_dir/file; then
4563       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4564       if test -n "$file_magic_test_file"; then
4565         case $deplibs_check_method in
4566         "file_magic "*)
4567           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4568           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4569           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4570             egrep "$file_magic_regex" > /dev/null; then
4571             :
4572           else
4573             cat <<EOF 1>&2
4574
4575 *** Warning: the command libtool uses to detect shared libraries,
4576 *** $file_magic_cmd, produces output that libtool cannot recognize.
4577 *** The result is that libtool may fail to recognize shared libraries
4578 *** as such.  This will affect the creation of libtool libraries that
4579 *** depend on shared libraries, but programs linked with such libtool
4580 *** libraries will work regardless of this problem.  Nevertheless, you
4581 *** may want to report the problem to your system manager and/or to
4582 *** bug-libtool@gnu.org
4583
4584 EOF
4585           fi ;;
4586         esac
4587       fi
4588       break
4589     fi
4590   done
4591   IFS="$ac_save_ifs"
4592   MAGIC_CMD="$ac_save_MAGIC_CMD"
4593   ;;
4594 esac
4595 fi
4596
4597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4598 if test -n "$MAGIC_CMD"; then
4599   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4600 echo "${ECHO_T}$MAGIC_CMD" >&6
4601 else
4602   echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4604 fi
4605
4606   else
4607     MAGIC_CMD=:
4608   fi
4609 fi
4610
4611   fi
4612   ;;
4613 esac
4614
4615 if test -n "$ac_tool_prefix"; then
4616   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_prog_RANLIB+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   if test -n "$RANLIB"; then
4624   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639
4640 fi
4641 fi
4642 RANLIB=$ac_cv_prog_RANLIB
4643 if test -n "$RANLIB"; then
4644   echo "$as_me:$LINENO: result: $RANLIB" >&5
4645 echo "${ECHO_T}$RANLIB" >&6
4646 else
4647   echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6
4649 fi
4650
4651 fi
4652 if test -z "$ac_cv_prog_RANLIB"; then
4653   ac_ct_RANLIB=$RANLIB
4654   # Extract the first word of "ranlib", so it can be a program name with args.
4655 set dummy ranlib; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   if test -n "$ac_ct_RANLIB"; then
4662   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669   for ac_exec_ext in '' $ac_executable_extensions; do
4670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671     ac_cv_prog_ac_ct_RANLIB="ranlib"
4672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673     break 2
4674   fi
4675 done
4676 done
4677
4678   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4679 fi
4680 fi
4681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4682 if test -n "$ac_ct_RANLIB"; then
4683   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4685 else
4686   echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4688 fi
4689
4690   RANLIB=$ac_ct_RANLIB
4691 else
4692   RANLIB="$ac_cv_prog_RANLIB"
4693 fi
4694
4695 if test -n "$ac_tool_prefix"; then
4696   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}strip; ac_word=$2
4698 echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4700 if test "${ac_cv_prog_STRIP+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   if test -n "$STRIP"; then
4704   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719
4720 fi
4721 fi
4722 STRIP=$ac_cv_prog_STRIP
4723 if test -n "$STRIP"; then
4724   echo "$as_me:$LINENO: result: $STRIP" >&5
4725 echo "${ECHO_T}$STRIP" >&6
4726 else
4727   echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6
4729 fi
4730
4731 fi
4732 if test -z "$ac_cv_prog_STRIP"; then
4733   ac_ct_STRIP=$STRIP
4734   # Extract the first word of "strip", so it can be a program name with args.
4735 set dummy strip; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   if test -n "$ac_ct_STRIP"; then
4742   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749   for ac_exec_ext in '' $ac_executable_extensions; do
4750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751     ac_cv_prog_ac_ct_STRIP="strip"
4752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756 done
4757
4758   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4759 fi
4760 fi
4761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4762 if test -n "$ac_ct_STRIP"; then
4763   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4764 echo "${ECHO_T}$ac_ct_STRIP" >&6
4765 else
4766   echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4768 fi
4769
4770   STRIP=$ac_ct_STRIP
4771 else
4772   STRIP="$ac_cv_prog_STRIP"
4773 fi
4774
4775
4776 enable_dlopen=no
4777 enable_win32_dll=no
4778
4779 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4780 if test "${enable_libtool_lock+set}" = set; then
4781   enableval="$enable_libtool_lock"
4782
4783 fi;
4784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4785
4786 # Some flags need to be propagated to the compiler or linker for good
4787 # libtool support.
4788 case $host in
4789 *-*-irix6*)
4790   # Find out which ABI we are using.
4791   echo '#line 4791 "configure"' > conftest.$ac_ext
4792   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793   (eval $ac_compile) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; then
4797     case `/usr/bin/file conftest.$ac_objext` in
4798     *32-bit*)
4799       LD="${LD-ld} -32"
4800       ;;
4801     *N32*)
4802       LD="${LD-ld} -n32"
4803       ;;
4804     *64-bit*)
4805       LD="${LD-ld} -64"
4806       ;;
4807     esac
4808   fi
4809   rm -rf conftest*
4810   ;;
4811
4812 *-*-linux*)
4813   # Test if the compiler is 64bit
4814   echo 'int i;' > conftest.$ac_ext
4815   lt_cv_cc_64bit_output=no
4816   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817   (eval $ac_compile) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); }; then
4821     case `/usr/bin/file conftest.$ac_objext` in
4822     *"ELF 64"*)
4823       lt_cv_cc_64bit_output=yes
4824       ;;
4825     esac
4826   fi
4827   rm -rf conftest*
4828   ;;
4829
4830 *-*-sco3.2v5*)
4831   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4832   SAVE_CFLAGS="$CFLAGS"
4833   CFLAGS="$CFLAGS -belf"
4834   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4835 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4836 if test "${lt_cv_cc_needs_belf+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839
4840
4841      ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
4847      cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h.  */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h.  */
4853
4854 int
4855 main ()
4856 {
4857
4858   ;
4859   return 0;
4860 }
4861 _ACEOF
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4864   (eval $ac_link) 2>conftest.er1
4865   ac_status=$?
4866   grep -v '^ *+' conftest.er1 >conftest.err
4867   rm -f conftest.er1
4868   cat conftest.err >&5
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); } &&
4871          { ac_try='test -z "$ac_c_werror_flag"
4872                          || test ! -s conftest.err'
4873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; } &&
4878          { ac_try='test -s conftest$ac_exeext'
4879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880   (eval $ac_try) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; }; then
4884   lt_cv_cc_needs_belf=yes
4885 else
4886   echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889 lt_cv_cc_needs_belf=no
4890 fi
4891 rm -f conftest.err conftest.$ac_objext \
4892       conftest$ac_exeext conftest.$ac_ext
4893      ac_ext=c
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898
4899 fi
4900 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4901 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4902   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4903     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4904     CFLAGS="$SAVE_CFLAGS"
4905   fi
4906   ;;
4907
4908
4909 esac
4910
4911 # Sed substitution that helps us do robust quoting.  It backslashifies
4912 # metacharacters that are still active within double-quoted strings.
4913 Xsed='sed -e s/^X//'
4914 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4915
4916 # Same as above, but do not quote variable references.
4917 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4918
4919 # Sed substitution to delay expansion of an escaped shell variable in a
4920 # double_quote_subst'ed string.
4921 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4922
4923 # Constants:
4924 rm="rm -f"
4925
4926 # Global variables:
4927 default_ofile=libtool
4928 can_build_shared=yes
4929
4930 # All known linkers require a `.a' archive for static linking (except M$VC,
4931 # which needs '.lib').
4932 libext=a
4933 ltmain="$ac_aux_dir/ltmain.sh"
4934 ofile="$default_ofile"
4935 with_gnu_ld="$lt_cv_prog_gnu_ld"
4936 need_locks="$enable_libtool_lock"
4937
4938 old_CC="$CC"
4939 old_CFLAGS="$CFLAGS"
4940
4941 # Set sane defaults for various variables
4942 test -z "$AR" && AR=ar
4943 test -z "$AR_FLAGS" && AR_FLAGS=cru
4944 test -z "$AS" && AS=as
4945 test -z "$CC" && CC=cc
4946 test -z "$DLLTOOL" && DLLTOOL=dlltool
4947 test -z "$LD" && LD=ld
4948 test -z "$LN_S" && LN_S="ln -s"
4949 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4950 test -z "$NM" && NM=nm
4951 test -z "$OBJDUMP" && OBJDUMP=objdump
4952 test -z "$RANLIB" && RANLIB=:
4953 test -z "$STRIP" && STRIP=:
4954 test -z "$ac_objext" && ac_objext=o
4955
4956 if test x"$host" != x"$build"; then
4957   ac_tool_prefix=${host_alias}-
4958 else
4959   ac_tool_prefix=
4960 fi
4961
4962 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4963 case $host_os in
4964 linux-gnu*) ;;
4965 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4966 esac
4967
4968 case $host_os in
4969 aix3*)
4970   # AIX sometimes has problems with the GCC collect2 program.  For some
4971   # reason, if we set the COLLECT_NAMES environment variable, the problems
4972   # vanish in a puff of smoke.
4973   if test "X${COLLECT_NAMES+set}" != Xset; then
4974     COLLECT_NAMES=
4975     export COLLECT_NAMES
4976   fi
4977   ;;
4978 esac
4979
4980 # Determine commands to create old-style static archives.
4981 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4982 old_postinstall_cmds='chmod 644 $oldlib'
4983 old_postuninstall_cmds=
4984
4985 if test -n "$RANLIB"; then
4986   case $host_os in
4987   openbsd*)
4988     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4989     ;;
4990   *)
4991     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4992     ;;
4993   esac
4994   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4995 fi
4996
4997 # Allow CC to be a program name with arguments.
4998 set dummy $CC
4999 compiler="$2"
5000
5001 echo "$as_me:$LINENO: checking for objdir" >&5
5002 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5003 rm -f .libs 2>/dev/null
5004 mkdir .libs 2>/dev/null
5005 if test -d .libs; then
5006   objdir=.libs
5007 else
5008   # MS-DOS does not allow filenames that begin with a dot.
5009   objdir=_libs
5010 fi
5011 rmdir .libs 2>/dev/null
5012 echo "$as_me:$LINENO: result: $objdir" >&5
5013 echo "${ECHO_T}$objdir" >&6
5014
5015
5016
5017 # Check whether --with-pic or --without-pic was given.
5018 if test "${with_pic+set}" = set; then
5019   withval="$with_pic"
5020   pic_mode="$withval"
5021 else
5022   pic_mode=default
5023 fi;
5024 test -z "$pic_mode" && pic_mode=default
5025
5026 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5027 # in isolation, and that seeing it set (from the cache) indicates that
5028 # the associated values are set (in the cache) correctly too.
5029 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5031 if test "${lt_cv_prog_cc_pic+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034    lt_cv_prog_cc_pic=
5035   lt_cv_prog_cc_shlib=
5036   lt_cv_prog_cc_wl=
5037   lt_cv_prog_cc_static=
5038   lt_cv_prog_cc_no_builtin=
5039   lt_cv_prog_cc_can_build_shared=$can_build_shared
5040
5041   if test "$GCC" = yes; then
5042     lt_cv_prog_cc_wl='-Wl,'
5043     lt_cv_prog_cc_static='-static'
5044
5045     case $host_os in
5046     aix*)
5047       # Below there is a dirty hack to force normal static linking with -ldl
5048       # The problem is because libdl dynamically linked with both libc and
5049       # libC (AIX C++ library), which obviously doesn't included in libraries
5050       # list by gcc. This cause undefined symbols with -static flags.
5051       # This hack allows C programs to be linked with "-static -ldl", but
5052       # not sure about C++ programs.
5053       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5054       ;;
5055     amigaos*)
5056       # FIXME: we need at least 68020 code to build shared libraries, but
5057       # adding the `-m68020' flag to GCC prevents building anything better,
5058       # like `-m68040'.
5059       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5060       ;;
5061     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5062       # PIC is the default for these OSes.
5063       ;;
5064     darwin* | rhapsody*)
5065       # PIC is the default on this platform
5066       # Common symbols not allowed in MH_DYLIB files
5067       lt_cv_prog_cc_pic='-fno-common'
5068       ;;
5069     cygwin* | mingw* | pw32* | os2*)
5070       # This hack is so that the source file can tell whether it is being
5071       # built for inclusion in a dll (and should export symbols for example).
5072       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5073       ;;
5074     sysv4*MP*)
5075       if test -d /usr/nec; then
5076          lt_cv_prog_cc_pic=-Kconform_pic
5077       fi
5078       ;;
5079     *)
5080       lt_cv_prog_cc_pic='-fPIC'
5081       ;;
5082     esac
5083   else
5084     # PORTME Check for PIC flags for the system compiler.
5085     case $host_os in
5086     aix3* | aix4* | aix5*)
5087       lt_cv_prog_cc_wl='-Wl,'
5088       # All AIX code is PIC.
5089       if test "$host_cpu" = ia64; then
5090         # AIX 5 now supports IA64 processor
5091         lt_cv_prog_cc_static='-Bstatic'
5092       else
5093         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5094       fi
5095       ;;
5096
5097     hpux9* | hpux10* | hpux11*)
5098       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5099       lt_cv_prog_cc_wl='-Wl,'
5100       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5101       lt_cv_prog_cc_pic='+Z'
5102       ;;
5103
5104     irix5* | irix6* | nonstopux*)
5105       lt_cv_prog_cc_wl='-Wl,'
5106       lt_cv_prog_cc_static='-non_shared'
5107       # PIC (with -KPIC) is the default.
5108       ;;
5109
5110     cygwin* | mingw* | pw32* | os2*)
5111       # This hack is so that the source file can tell whether it is being
5112       # built for inclusion in a dll (and should export symbols for example).
5113       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5114       ;;
5115
5116     newsos6)
5117       lt_cv_prog_cc_pic='-KPIC'
5118       lt_cv_prog_cc_static='-Bstatic'
5119       ;;
5120
5121     osf3* | osf4* | osf5*)
5122       # All OSF/1 code is PIC.
5123       lt_cv_prog_cc_wl='-Wl,'
5124       lt_cv_prog_cc_static='-non_shared'
5125       ;;
5126
5127     sco3.2v5*)
5128       lt_cv_prog_cc_pic='-Kpic'
5129       lt_cv_prog_cc_static='-dn'
5130       lt_cv_prog_cc_shlib='-belf'
5131       ;;
5132
5133     solaris*)
5134       lt_cv_prog_cc_pic='-KPIC'
5135       lt_cv_prog_cc_static='-Bstatic'
5136       lt_cv_prog_cc_wl='-Wl,'
5137       ;;
5138
5139     sunos4*)
5140       lt_cv_prog_cc_pic='-PIC'
5141       lt_cv_prog_cc_static='-Bstatic'
5142       lt_cv_prog_cc_wl='-Qoption ld '
5143       ;;
5144
5145     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5146       lt_cv_prog_cc_pic='-KPIC'
5147       lt_cv_prog_cc_static='-Bstatic'
5148       lt_cv_prog_cc_wl='-Wl,'
5149       ;;
5150
5151     uts4*)
5152       lt_cv_prog_cc_pic='-pic'
5153       lt_cv_prog_cc_static='-Bstatic'
5154       ;;
5155
5156     sysv4*MP*)
5157       if test -d /usr/nec ;then
5158         lt_cv_prog_cc_pic='-Kconform_pic'
5159         lt_cv_prog_cc_static='-Bstatic'
5160       fi
5161       ;;
5162
5163     *)
5164       lt_cv_prog_cc_can_build_shared=no
5165       ;;
5166     esac
5167   fi
5168
5169 fi
5170
5171 if test -z "$lt_cv_prog_cc_pic"; then
5172   echo "$as_me:$LINENO: result: none" >&5
5173 echo "${ECHO_T}none" >&6
5174 else
5175   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5176 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5177
5178   # Check to make sure the pic_flag actually works.
5179   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5180 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5181   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5182   echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184       save_CFLAGS="$CFLAGS"
5185     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5186     cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h.  */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h.  */
5192
5193 int
5194 main ()
5195 {
5196
5197   ;
5198   return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5203   (eval $ac_compile) 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } &&
5210          { ac_try='test -z "$ac_c_werror_flag"
5211                          || test ! -s conftest.err'
5212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213   (eval $ac_try) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; } &&
5217          { ac_try='test -s conftest.$ac_objext'
5218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219   (eval $ac_try) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); }; }; then
5223         case $host_os in
5224       hpux9* | hpux10* | hpux11*)
5225         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5226         # they create non-PIC objects.  So, if there were any warnings, we
5227         # assume that PIC is not supported.
5228         if test -s conftest.err; then
5229           lt_cv_prog_cc_pic_works=no
5230         else
5231           lt_cv_prog_cc_pic_works=yes
5232         fi
5233         ;;
5234       *)
5235         lt_cv_prog_cc_pic_works=yes
5236         ;;
5237       esac
5238
5239 else
5240   echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5242
5243       lt_cv_prog_cc_pic_works=no
5244
5245 fi
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247     CFLAGS="$save_CFLAGS"
5248
5249 fi
5250
5251
5252   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5253     lt_cv_prog_cc_pic=
5254     lt_cv_prog_cc_can_build_shared=no
5255   else
5256     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5257   fi
5258
5259   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5260 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5261 fi
5262
5263 # Check for any special shared library compilation flags.
5264 if test -n "$lt_cv_prog_cc_shlib"; then
5265   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5266 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5267   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5268   else
5269    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5270 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5271     lt_cv_prog_cc_can_build_shared=no
5272   fi
5273 fi
5274
5275 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5276 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5277 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280     lt_cv_prog_cc_static_works=no
5281   save_LDFLAGS="$LDFLAGS"
5282   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5283   cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289
5290 int
5291 main ()
5292 {
5293
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 rm -f conftest.$ac_objext conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300   (eval $ac_link) 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } &&
5307          { ac_try='test -z "$ac_c_werror_flag"
5308                          || test ! -s conftest.err'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; } &&
5314          { ac_try='test -s conftest$ac_exeext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   lt_cv_prog_cc_static_works=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 fi
5326 rm -f conftest.err conftest.$ac_objext \
5327       conftest$ac_exeext conftest.$ac_ext
5328   LDFLAGS="$save_LDFLAGS"
5329
5330 fi
5331
5332
5333 # Belt *and* braces to stop my trousers falling down:
5334 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5335 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5336 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5337
5338 pic_flag="$lt_cv_prog_cc_pic"
5339 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5340 wl="$lt_cv_prog_cc_wl"
5341 link_static_flag="$lt_cv_prog_cc_static"
5342 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5343 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5344
5345
5346 # Check to see if options -o and -c are simultaneously supported by compiler
5347 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5349 if test "${lt_cv_compiler_c_o+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352
5353 $rm -r conftest 2>/dev/null
5354 mkdir conftest
5355 cd conftest
5356 echo "int some_variable = 0;" > conftest.$ac_ext
5357 mkdir out
5358 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5359 # that will create temporary files in the current directory regardless of
5360 # the output directory.  Thus, making CWD read-only will cause this test
5361 # to fail, enabling locking or at least warning the user not to do parallel
5362 # builds.
5363 chmod -w .
5364 save_CFLAGS="$CFLAGS"
5365 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5366 compiler_c_o=no
5367 if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5368   # The compiler can only warn and ignore the option if not recognized
5369   # So say no if there are warnings
5370   if test -s out/conftest.err; then
5371     lt_cv_compiler_c_o=no
5372   else
5373     lt_cv_compiler_c_o=yes
5374   fi
5375 else
5376   # Append any errors to the config.log.
5377   cat out/conftest.err 1>&5
5378   lt_cv_compiler_c_o=no
5379 fi
5380 CFLAGS="$save_CFLAGS"
5381 chmod u+w .
5382 $rm conftest* out/*
5383 rmdir out
5384 cd ..
5385 rmdir conftest
5386 $rm -r conftest 2>/dev/null
5387
5388 fi
5389
5390 compiler_c_o=$lt_cv_compiler_c_o
5391 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5392 echo "${ECHO_T}$compiler_c_o" >&6
5393
5394 if test x"$compiler_c_o" = x"yes"; then
5395   # Check to see if we can write to a .lo
5396   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5397 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5398   if test "${lt_cv_compiler_o_lo+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401
5402   lt_cv_compiler_o_lo=no
5403   save_CFLAGS="$CFLAGS"
5404   CFLAGS="$CFLAGS -c -o conftest.lo"
5405   save_objext="$ac_objext"
5406   ac_objext=lo
5407   cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h.  */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h.  */
5413
5414 int
5415 main ()
5416 {
5417 int some_variable = 0;
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424   (eval $ac_compile) 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } &&
5431          { ac_try='test -z "$ac_c_werror_flag"
5432                          || test ! -s conftest.err'
5433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; } &&
5438          { ac_try='test -s conftest.$ac_objext'
5439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444       # The compiler can only warn and ignore the option if not recognized
5445     # So say no if there are warnings
5446     if test -s conftest.err; then
5447       lt_cv_compiler_o_lo=no
5448     else
5449       lt_cv_compiler_o_lo=yes
5450     fi
5451
5452 else
5453   echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 fi
5457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458   ac_objext="$save_objext"
5459   CFLAGS="$save_CFLAGS"
5460
5461 fi
5462
5463   compiler_o_lo=$lt_cv_compiler_o_lo
5464   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5465 echo "${ECHO_T}$compiler_o_lo" >&6
5466 else
5467   compiler_o_lo=no
5468 fi
5469
5470 # Check to see if we can do hard links to lock some files if needed
5471 hard_links="nottested"
5472 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5473   # do not overwrite the value of need_locks provided by the user
5474   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5476   hard_links=yes
5477   $rm conftest*
5478   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5479   touch conftest.a
5480   ln conftest.a conftest.b 2>&5 || hard_links=no
5481   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5482   echo "$as_me:$LINENO: result: $hard_links" >&5
5483 echo "${ECHO_T}$hard_links" >&6
5484   if test "$hard_links" = no; then
5485     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5487     need_locks=warn
5488   fi
5489 else
5490   need_locks=no
5491 fi
5492
5493 if test "$GCC" = yes; then
5494   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5495   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5496 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5497   echo "int some_variable = 0;" > conftest.$ac_ext
5498   save_CFLAGS="$CFLAGS"
5499   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5500   compiler_rtti_exceptions=no
5501   cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h.  */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h.  */
5507
5508 int
5509 main ()
5510 {
5511 int some_variable = 0;
5512   ;
5513   return 0;
5514 }
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518   (eval $ac_compile) 2>conftest.er1
5519   ac_status=$?
5520   grep -v '^ *+' conftest.er1 >conftest.err
5521   rm -f conftest.er1
5522   cat conftest.err >&5
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } &&
5525          { ac_try='test -z "$ac_c_werror_flag"
5526                          || test ! -s conftest.err'
5527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528   (eval $ac_try) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }; } &&
5532          { ac_try='test -s conftest.$ac_objext'
5533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; }; then
5538       # The compiler can only warn and ignore the option if not recognized
5539     # So say no if there are warnings
5540     if test -s conftest.err; then
5541       compiler_rtti_exceptions=no
5542     else
5543       compiler_rtti_exceptions=yes
5544     fi
5545
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550 fi
5551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5552   CFLAGS="$save_CFLAGS"
5553   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5554 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5555
5556   if test "$compiler_rtti_exceptions" = "yes"; then
5557     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5558   else
5559     no_builtin_flag=' -fno-builtin'
5560   fi
5561 fi
5562
5563 # See if the linker supports building shared libraries.
5564 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5565 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5566
5567 allow_undefined_flag=
5568 no_undefined_flag=
5569 need_lib_prefix=unknown
5570 need_version=unknown
5571 # when you set need_version to no, make sure it does not cause -set_version
5572 # flags to be left without arguments
5573 archive_cmds=
5574 archive_expsym_cmds=
5575 old_archive_from_new_cmds=
5576 old_archive_from_expsyms_cmds=
5577 export_dynamic_flag_spec=
5578 whole_archive_flag_spec=
5579 thread_safe_flag_spec=
5580 hardcode_into_libs=no
5581 hardcode_libdir_flag_spec=
5582 hardcode_libdir_separator=
5583 hardcode_direct=no
5584 hardcode_minus_L=no
5585 hardcode_shlibpath_var=unsupported
5586 runpath_var=
5587 link_all_deplibs=unknown
5588 always_export_symbols=no
5589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5590 # include_expsyms should be a list of space-separated symbols to be *always*
5591 # included in the symbol list
5592 include_expsyms=
5593 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5594 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5595 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5596 # as well as any symbol that contains `d'.
5597 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5598 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5599 # platforms (ab)use it in PIC code, but their linkers get confused if
5600 # the symbol is explicitly referenced.  Since portable code cannot
5601 # rely on this symbol name, it's probably fine to never include it in
5602 # preloaded symbol tables.
5603 extract_expsyms_cmds=
5604
5605 case $host_os in
5606 cygwin* | mingw* | pw32*)
5607   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5608   # When not using gcc, we currently assume that we are using
5609   # Microsoft Visual C++.
5610   if test "$GCC" != yes; then
5611     with_gnu_ld=no
5612   fi
5613   ;;
5614 openbsd*)
5615   with_gnu_ld=no
5616   ;;
5617 esac
5618
5619 ld_shlibs=yes
5620 if test "$with_gnu_ld" = yes; then
5621   # If archive_cmds runs LD, not CC, wlarc should be empty
5622   wlarc='${wl}'
5623
5624   # See if GNU ld supports shared libraries.
5625   case $host_os in
5626   aix3* | aix4* | aix5*)
5627     # On AIX, the GNU linker is very broken
5628     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5629     ld_shlibs=no
5630     cat <<EOF 1>&2
5631
5632 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5633 *** to be unable to reliably create shared libraries on AIX.
5634 *** Therefore, libtool is disabling shared libraries support.  If you
5635 *** really care for shared libraries, you may want to modify your PATH
5636 *** so that a non-GNU linker is found, and then restart.
5637
5638 EOF
5639     ;;
5640
5641   amigaos*)
5642     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)'
5643     hardcode_libdir_flag_spec='-L$libdir'
5644     hardcode_minus_L=yes
5645
5646     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5647     # that the semantics of dynamic libraries on AmigaOS, at least up
5648     # to version 4, is to share data among multiple programs linked
5649     # with the same dynamic library.  Since this doesn't match the
5650     # behavior of shared libraries on other platforms, we can use
5651     # them.
5652     ld_shlibs=no
5653     ;;
5654
5655   beos*)
5656     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5657       allow_undefined_flag=unsupported
5658       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5659       # support --undefined.  This deserves some investigation.  FIXME
5660       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5661     else
5662       ld_shlibs=no
5663     fi
5664     ;;
5665
5666   cygwin* | mingw* | pw32*)
5667     # hardcode_libdir_flag_spec is actually meaningless, as there is
5668     # no search path for DLLs.
5669     hardcode_libdir_flag_spec='-L$libdir'
5670     allow_undefined_flag=unsupported
5671     always_export_symbols=yes
5672
5673     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5674       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5675       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5676       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5677       else $CC -o impgen impgen.c ; fi)~
5678       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5679
5680     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5681
5682     # cygwin and mingw dlls have different entry points and sets of symbols
5683     # to exclude.
5684     # FIXME: what about values for MSVC?
5685     dll_entry=__cygwin_dll_entry@12
5686     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5687     case $host_os in
5688     mingw*)
5689       # mingw values
5690       dll_entry=_DllMainCRTStartup@12
5691       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5692       ;;
5693     esac
5694
5695     # mingw and cygwin differ, and it's simplest to just exclude the union
5696     # of the two symbol sets.
5697     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5698
5699     # recent cygwin and mingw systems supply a stub DllMain which the user
5700     # can override, but on older systems we have to supply one (in ltdll.c)
5701     if test "x$lt_cv_need_dllmain" = "xyes"; then
5702       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5703       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~
5704         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5705     else
5706       ltdll_obj=
5707       ltdll_cmds=
5708     fi
5709
5710     # Extract the symbol export list from an `--export-all' def file,
5711     # then regenerate the def file from the symbol export list, so that
5712     # the compiled dll only exports the symbol export list.
5713     # Be careful not to strip the DATA tag left be newer dlltools.
5714     export_symbols_cmds="$ltdll_cmds"'
5715       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5716       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5717
5718     # If the export-symbols file already is a .def file (1st line
5719     # is EXPORTS), use it as is.
5720     # If DATA tags from a recent dlltool are present, honour them!
5721     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5722         cp $export_symbols $output_objdir/$soname-def;
5723       else
5724         echo EXPORTS > $output_objdir/$soname-def;
5725         _lt_hint=1;
5726         cat $export_symbols | while read symbol; do
5727          set dummy \$symbol;
5728          case \$# in
5729            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5730            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5731            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5732          esac;
5733          _lt_hint=`expr 1 + \$_lt_hint`;
5734         done;
5735       fi~
5736       '"$ltdll_cmds"'
5737       $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~
5738       $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~
5739       $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~
5740       $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~
5741       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5742     ;;
5743
5744   netbsd*)
5745     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5746       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5747       wlarc=
5748     else
5749       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5750       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5751     fi
5752     ;;
5753
5754   solaris* | sysv5*)
5755     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5756       ld_shlibs=no
5757       cat <<EOF 1>&2
5758
5759 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5760 *** create shared libraries on Solaris systems.  Therefore, libtool
5761 *** is disabling shared libraries support.  We urge you to upgrade GNU
5762 *** binutils to release 2.9.1 or newer.  Another option is to modify
5763 *** your PATH or compiler configuration so that the native linker is
5764 *** used, and then restart.
5765
5766 EOF
5767     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5768       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5769       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5770     else
5771       ld_shlibs=no
5772     fi
5773     ;;
5774
5775   sunos4*)
5776     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5777     wlarc=
5778     hardcode_direct=yes
5779     hardcode_shlibpath_var=no
5780     ;;
5781
5782   linux*)
5783     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5784       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5785       supports_anon_versioning=no
5786       case `$LD -v 2>/dev/null` in
5787         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5788         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5789         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5790         *\ 2.11.*) ;; # other 2.11 versions
5791         *) supports_anon_versioning=yes ;;
5792       esac
5793       if test $supports_anon_versioning = yes; then
5794         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5796 $echo "local: *; };" >> $output_objdir/$libname.ver~
5797         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5798       else
5799         $archive_expsym_cmds="$archive_cmds"
5800       fi
5801     else
5802       ld_shlibs=no
5803     fi
5804     ;;
5805
5806   *)
5807     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5808       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5809       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5810     else
5811       ld_shlibs=no
5812     fi
5813     ;;
5814   esac
5815
5816   if test "$ld_shlibs" = yes; then
5817     runpath_var=LD_RUN_PATH
5818     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5819     export_dynamic_flag_spec='${wl}--export-dynamic'
5820     case $host_os in
5821     cygwin* | mingw* | pw32*)
5822       # dlltool doesn't understand --whole-archive et. al.
5823       whole_archive_flag_spec=
5824       ;;
5825     *)
5826       # ancient GNU ld didn't support --whole-archive et. al.
5827       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5828         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5829       else
5830         whole_archive_flag_spec=
5831       fi
5832       ;;
5833     esac
5834   fi
5835 else
5836   # PORTME fill in a description of your system's linker (not GNU ld)
5837   case $host_os in
5838   aix3*)
5839     allow_undefined_flag=unsupported
5840     always_export_symbols=yes
5841     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'
5842     # Note: this linker hardcodes the directories in LIBPATH if there
5843     # are no directories specified by -L.
5844     hardcode_minus_L=yes
5845     if test "$GCC" = yes && test -z "$link_static_flag"; then
5846       # Neither direct hardcoding nor static linking is supported with a
5847       # broken collect2.
5848       hardcode_direct=unsupported
5849     fi
5850     ;;
5851
5852   aix4* | aix5*)
5853     if test "$host_cpu" = ia64; then
5854       # On IA64, the linker does run time linking by default, so we don't
5855       # have to do anything special.
5856       aix_use_runtimelinking=no
5857       exp_sym_flag='-Bexport'
5858       no_entry_flag=""
5859     else
5860       aix_use_runtimelinking=no
5861
5862       # Test if we are trying to use run time linking or normal
5863       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5864       # need to do runtime linking.
5865       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5866         for ld_flag in $LDFLAGS; do
5867           case $ld_flag in
5868           *-brtl*)
5869             aix_use_runtimelinking=yes
5870             break
5871           ;;
5872           esac
5873         done
5874       esac
5875
5876       exp_sym_flag='-bexport'
5877       no_entry_flag='-bnoentry'
5878     fi
5879
5880     # When large executables or shared objects are built, AIX ld can
5881     # have problems creating the table of contents.  If linking a library
5882     # or program results in "error TOC overflow" add -mminimal-toc to
5883     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5884     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5885
5886     hardcode_direct=yes
5887     archive_cmds=''
5888     hardcode_libdir_separator=':'
5889     if test "$GCC" = yes; then
5890       case $host_os in aix4.[012]|aix4.[012].*)
5891         collect2name=`${CC} -print-prog-name=collect2`
5892         if test -f "$collect2name" && \
5893           strings "$collect2name" | grep resolve_lib_name >/dev/null
5894         then
5895           # We have reworked collect2
5896           hardcode_direct=yes
5897         else
5898           # We have old collect2
5899           hardcode_direct=unsupported
5900           # It fails to find uninstalled libraries when the uninstalled
5901           # path is not listed in the libpath.  Setting hardcode_minus_L
5902           # to unsupported forces relinking
5903           hardcode_minus_L=yes
5904           hardcode_libdir_flag_spec='-L$libdir'
5905           hardcode_libdir_separator=
5906         fi
5907       esac
5908
5909       shared_flag='-shared'
5910     else
5911       # not using gcc
5912       if test "$host_cpu" = ia64; then
5913         shared_flag='${wl}-G'
5914       else
5915         if test "$aix_use_runtimelinking" = yes; then
5916           shared_flag='${wl}-G'
5917         else
5918           shared_flag='${wl}-bM:SRE'
5919         fi
5920       fi
5921     fi
5922
5923     # It seems that -bexpall can do strange things, so it is better to
5924     # generate a list of symbols to export.
5925     always_export_symbols=yes
5926     if test "$aix_use_runtimelinking" = yes; then
5927       # Warning - without using the other runtime loading flags (-brtl),
5928       # -berok will link without error, but may produce a broken library.
5929       allow_undefined_flag='-berok'
5930       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5931       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"
5932     else
5933       if test "$host_cpu" = ia64; then
5934         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5935         allow_undefined_flag="-z nodefs"
5936         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"
5937       else
5938         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5939         # Warning - without using the other run time loading flags,
5940         # -berok will link without error, but may produce a broken library.
5941         allow_undefined_flag='${wl}-berok'
5942         # This is a bit strange, but is similar to how AIX traditionally builds
5943         # it's shared libraries.
5944         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'
5945       fi
5946     fi
5947     ;;
5948
5949   amigaos*)
5950     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)'
5951     hardcode_libdir_flag_spec='-L$libdir'
5952     hardcode_minus_L=yes
5953     # see comment about different semantics on the GNU ld section
5954     ld_shlibs=no
5955     ;;
5956
5957   cygwin* | mingw* | pw32*)
5958     # When not using gcc, we currently assume that we are using
5959     # Microsoft Visual C++.
5960     # hardcode_libdir_flag_spec is actually meaningless, as there is
5961     # no search path for DLLs.
5962     hardcode_libdir_flag_spec=' '
5963     allow_undefined_flag=unsupported
5964     # Tell ltmain to make .lib files, not .a files.
5965     libext=lib
5966     # FIXME: Setting linknames here is a bad hack.
5967     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5968     # The linker will automatically build a .lib file if we build a DLL.
5969     old_archive_from_new_cmds='true'
5970     # FIXME: Should let the user specify the lib program.
5971     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5972     fix_srcfile_path='`cygpath -w "$srcfile"`'
5973     ;;
5974
5975   darwin* | rhapsody*)
5976     case "$host_os" in
5977     rhapsody* | darwin1.[012])
5978       allow_undefined_flag='-undefined suppress'
5979       ;;
5980     *) # Darwin 1.3 on
5981       allow_undefined_flag='-flat_namespace -undefined suppress'
5982       ;;
5983     esac
5984     # FIXME: Relying on posixy $() will cause problems for
5985     #        cross-compilation, but unfortunately the echo tests do not
5986     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5987     #        `"' quotes if we put them in here... so don't!
5988     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)'
5989     # We need to add '_' to the symbols in $export_symbols first
5990     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5991     hardcode_direct=yes
5992     hardcode_shlibpath_var=no
5993     whole_archive_flag_spec='-all_load $convenience'
5994     ;;
5995
5996   freebsd1*)
5997     ld_shlibs=no
5998     ;;
5999
6000   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6001   # support.  Future versions do this automatically, but an explicit c++rt0.o
6002   # does not break anything, and helps significantly (at the cost of a little
6003   # extra space).
6004   freebsd2.2*)
6005     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6006     hardcode_libdir_flag_spec='-R$libdir'
6007     hardcode_direct=yes
6008     hardcode_shlibpath_var=no
6009     ;;
6010
6011   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6012   freebsd2*)
6013     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6014     hardcode_direct=yes
6015     hardcode_minus_L=yes
6016     hardcode_shlibpath_var=no
6017     ;;
6018
6019   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6020   freebsd*)
6021     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6022     hardcode_libdir_flag_spec='-R$libdir'
6023     hardcode_direct=yes
6024     hardcode_shlibpath_var=no
6025     ;;
6026
6027   hpux9* | hpux10* | hpux11*)
6028     case $host_os in
6029     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' ;;
6030     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6031     esac
6032     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6033     hardcode_libdir_separator=:
6034     hardcode_direct=yes
6035     hardcode_minus_L=yes # Not in the search PATH, but as the default
6036                          # location of the library.
6037     export_dynamic_flag_spec='${wl}-E'
6038     ;;
6039
6040   irix5* | irix6* | nonstopux*)
6041     if test "$GCC" = yes; then
6042       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'
6043       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6044     else
6045       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'
6046       hardcode_libdir_flag_spec='-rpath $libdir'
6047     fi
6048     hardcode_libdir_separator=:
6049     link_all_deplibs=yes
6050     ;;
6051
6052   netbsd*)
6053     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6054       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6055     else
6056       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6057     fi
6058     hardcode_libdir_flag_spec='-R$libdir'
6059     hardcode_direct=yes
6060     hardcode_shlibpath_var=no
6061     ;;
6062
6063   newsos6)
6064     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6065     hardcode_direct=yes
6066     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6067     hardcode_libdir_separator=:
6068     hardcode_shlibpath_var=no
6069     ;;
6070
6071   openbsd*)
6072     hardcode_direct=yes
6073     hardcode_shlibpath_var=no
6074     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6075       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6076       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6077       export_dynamic_flag_spec='${wl}-E'
6078     else
6079       case "$host_os" in
6080       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6081         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6082         hardcode_libdir_flag_spec='-R$libdir'
6083         ;;
6084       *)
6085         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6086         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6087         ;;
6088       esac
6089     fi
6090     ;;
6091
6092   os2*)
6093     hardcode_libdir_flag_spec='-L$libdir'
6094     hardcode_minus_L=yes
6095     allow_undefined_flag=unsupported
6096     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'
6097     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6098     ;;
6099
6100   osf3*)
6101     if test "$GCC" = yes; then
6102       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6103       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'
6104     else
6105       allow_undefined_flag=' -expect_unresolved \*'
6106       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'
6107     fi
6108     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6109     hardcode_libdir_separator=:
6110     ;;
6111
6112   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6113     if test "$GCC" = yes; then
6114       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6115       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'
6116       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6117     else
6118       allow_undefined_flag=' -expect_unresolved \*'
6119       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'
6120       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6121       $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'
6122
6123       #Both c and cxx compiler support -rpath directly
6124       hardcode_libdir_flag_spec='-rpath $libdir'
6125     fi
6126     hardcode_libdir_separator=:
6127     ;;
6128
6129   sco3.2v5*)
6130     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6131     hardcode_shlibpath_var=no
6132     runpath_var=LD_RUN_PATH
6133     hardcode_runpath_var=yes
6134     export_dynamic_flag_spec='${wl}-Bexport'
6135     ;;
6136
6137   solaris*)
6138     # gcc --version < 3.0 without binutils cannot create self contained
6139     # shared libraries reliably, requiring libgcc.a to resolve some of
6140     # the object symbols generated in some cases.  Libraries that use
6141     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6142     # a copy of libgcc.a into every shared library to guarantee resolving
6143     # such symbols causes other problems:  According to Tim Van Holder
6144     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6145     # (to the application) exception stack for one thing.
6146     no_undefined_flag=' -z defs'
6147     if test "$GCC" = yes; then
6148       case `$CC --version 2>/dev/null` in
6149       [12].*)
6150         cat <<EOF 1>&2
6151
6152 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6153 *** create self contained shared libraries on Solaris systems, without
6154 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6155 *** -no-undefined support, which will at least allow you to build shared
6156 *** libraries.  However, you may find that when you link such libraries
6157 *** into an application without using GCC, you have to manually add
6158 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6159 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6160 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6161
6162 EOF
6163         no_undefined_flag=
6164         ;;
6165       esac
6166     fi
6167     # $CC -shared without GNU ld will not create a library from C++
6168     # object files and a static libstdc++, better avoid it by now
6169     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6170     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6171                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6172     hardcode_libdir_flag_spec='-R$libdir'
6173     hardcode_shlibpath_var=no
6174     case $host_os in
6175     solaris2.[0-5] | solaris2.[0-5].*) ;;
6176     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6177       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6178     esac
6179     link_all_deplibs=yes
6180     ;;
6181
6182   sunos4*)
6183     if test "x$host_vendor" = xsequent; then
6184       # Use $CC to link under sequent, because it throws in some extra .o
6185       # files that make .init and .fini sections work.
6186       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6187     else
6188       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6189     fi
6190     hardcode_libdir_flag_spec='-L$libdir'
6191     hardcode_direct=yes
6192     hardcode_minus_L=yes
6193     hardcode_shlibpath_var=no
6194     ;;
6195
6196   sysv4)
6197     case $host_vendor in
6198       sni)
6199         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6200         hardcode_direct=yes # is this really true???
6201         ;;
6202       siemens)
6203         ## LD is ld it makes a PLAMLIB
6204         ## CC just makes a GrossModule.
6205         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6206         reload_cmds='$CC -r -o $output$reload_objs'
6207         hardcode_direct=no
6208         ;;
6209       motorola)
6210         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6211         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6212         ;;
6213     esac
6214     runpath_var='LD_RUN_PATH'
6215     hardcode_shlibpath_var=no
6216     ;;
6217
6218   sysv4.3*)
6219     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6220     hardcode_shlibpath_var=no
6221     export_dynamic_flag_spec='-Bexport'
6222     ;;
6223
6224   sysv5*)
6225     no_undefined_flag=' -z text'
6226     # $CC -shared without GNU ld will not create a library from C++
6227     # object files and a static libstdc++, better avoid it by now
6228     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6229     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6230                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6231     hardcode_libdir_flag_spec=
6232     hardcode_shlibpath_var=no
6233     runpath_var='LD_RUN_PATH'
6234     ;;
6235
6236   uts4*)
6237     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6238     hardcode_libdir_flag_spec='-L$libdir'
6239     hardcode_shlibpath_var=no
6240     ;;
6241
6242   dgux*)
6243     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6244     hardcode_libdir_flag_spec='-L$libdir'
6245     hardcode_shlibpath_var=no
6246     ;;
6247
6248   sysv4*MP*)
6249     if test -d /usr/nec; then
6250       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6251       hardcode_shlibpath_var=no
6252       runpath_var=LD_RUN_PATH
6253       hardcode_runpath_var=yes
6254       ld_shlibs=yes
6255     fi
6256     ;;
6257
6258   sysv4.2uw2*)
6259     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6260     hardcode_direct=yes
6261     hardcode_minus_L=no
6262     hardcode_shlibpath_var=no
6263     hardcode_runpath_var=yes
6264     runpath_var=LD_RUN_PATH
6265     ;;
6266
6267   sysv5uw7* | unixware7*)
6268     no_undefined_flag='${wl}-z ${wl}text'
6269     if test "$GCC" = yes; then
6270       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6271     else
6272       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6273     fi
6274     runpath_var='LD_RUN_PATH'
6275     hardcode_shlibpath_var=no
6276     ;;
6277
6278   *)
6279     ld_shlibs=no
6280     ;;
6281   esac
6282 fi
6283 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6284 echo "${ECHO_T}$ld_shlibs" >&6
6285 test "$ld_shlibs" = no && can_build_shared=no
6286
6287 # Check hardcoding attributes.
6288 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6289 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6290 hardcode_action=
6291 if test -n "$hardcode_libdir_flag_spec" || \
6292    test -n "$runpath_var"; then
6293
6294   # We can hardcode non-existant directories.
6295   if test "$hardcode_direct" != no &&
6296      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6297      # have to relink, otherwise we might link with an installed library
6298      # when we should be linking with a yet-to-be-installed one
6299      ## test "$hardcode_shlibpath_var" != no &&
6300      test "$hardcode_minus_L" != no; then
6301     # Linking always hardcodes the temporary library directory.
6302     hardcode_action=relink
6303   else
6304     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6305     hardcode_action=immediate
6306   fi
6307 else
6308   # We cannot hardcode anything, or else we can only hardcode existing
6309   # directories.
6310   hardcode_action=unsupported
6311 fi
6312 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6313 echo "${ECHO_T}$hardcode_action" >&6
6314
6315 striplib=
6316 old_striplib=
6317 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6318 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6319 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6320   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6321   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6322   echo "$as_me:$LINENO: result: yes" >&5
6323 echo "${ECHO_T}yes" >&6
6324 else
6325   echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6
6327 fi
6328
6329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6330 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6331
6332 # PORTME Fill in your ld.so characteristics
6333 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6334 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6335 library_names_spec=
6336 libname_spec='lib$name'
6337 soname_spec=
6338 postinstall_cmds=
6339 postuninstall_cmds=
6340 finish_cmds=
6341 finish_eval=
6342 shlibpath_var=
6343 shlibpath_overrides_runpath=unknown
6344 version_type=none
6345 dynamic_linker="$host_os ld.so"
6346 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6348
6349 case $host_os in
6350 aix3*)
6351   version_type=linux
6352   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6353   shlibpath_var=LIBPATH
6354
6355   # AIX has no versioning support, so we append a major version to the name.
6356   soname_spec='${libname}${release}.so$major'
6357   ;;
6358
6359 aix4* | aix5*)
6360   version_type=linux
6361   need_lib_prefix=no
6362   need_version=no
6363   hardcode_into_libs=yes
6364   if test "$host_cpu" = ia64; then
6365     # AIX 5 supports IA64
6366     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6367     shlibpath_var=LD_LIBRARY_PATH
6368   else
6369     # With GCC up to 2.95.x, collect2 would create an import file
6370     # for dependence libraries.  The import file would start with
6371     # the line `#! .'.  This would cause the generated library to
6372     # depend on `.', always an invalid library.  This was fixed in
6373     # development snapshots of GCC prior to 3.0.
6374     case $host_os in
6375       aix4 | aix4.[01] | aix4.[01].*)
6376         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6377              echo ' yes '
6378              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6379           :
6380         else
6381           can_build_shared=no
6382         fi
6383         ;;
6384     esac
6385     # AIX (on Power*) has no versioning support, so currently we can
6386     # not hardcode correct soname into executable. Probably we can
6387     # add versioning support to collect2, so additional links can
6388     # be useful in future.
6389     if test "$aix_use_runtimelinking" = yes; then
6390       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6391       # instead of lib<name>.a to let people know that these are not
6392       # typical AIX shared libraries.
6393       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6394     else
6395       # We preserve .a as extension for shared libraries through AIX4.2
6396       # and later when we are not doing run time linking.
6397       library_names_spec='${libname}${release}.a $libname.a'
6398       soname_spec='${libname}${release}.so$major'
6399     fi
6400     shlibpath_var=LIBPATH
6401   fi
6402   hardcode_into_libs=yes
6403   ;;
6404
6405 amigaos*)
6406   library_names_spec='$libname.ixlibrary $libname.a'
6407   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6408   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'
6409   ;;
6410
6411 beos*)
6412   library_names_spec='${libname}.so'
6413   dynamic_linker="$host_os ld.so"
6414   shlibpath_var=LIBRARY_PATH
6415   ;;
6416
6417 bsdi4*)
6418   version_type=linux
6419   need_version=no
6420   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6421   soname_spec='${libname}${release}.so$major'
6422   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6423   shlibpath_var=LD_LIBRARY_PATH
6424   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6425   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6426   export_dynamic_flag_spec=-rdynamic
6427   # the default ld.so.conf also contains /usr/contrib/lib and
6428   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6429   # libtool to hard-code these into programs
6430   ;;
6431
6432 cygwin* | mingw* | pw32*)
6433   version_type=windows
6434   need_version=no
6435   need_lib_prefix=no
6436   case $GCC,$host_os in
6437   yes,cygwin*)
6438     library_names_spec='$libname.dll.a'
6439     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6440     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6441       dldir=$destdir/`dirname \$dlpath`~
6442       test -d \$dldir || mkdir -p \$dldir~
6443       $install_prog .libs/$dlname \$dldir/$dlname'
6444     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6445       dlpath=$dir/\$dldll~
6446        $rm \$dlpath'
6447     ;;
6448   yes,mingw*)
6449     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6450     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6451     ;;
6452   yes,pw32*)
6453     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6454     ;;
6455   *)
6456     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6457     ;;
6458   esac
6459   dynamic_linker='Win32 ld.exe'
6460   # FIXME: first we should search . and the directory the executable is in
6461   shlibpath_var=PATH
6462   ;;
6463
6464 darwin* | rhapsody*)
6465   dynamic_linker="$host_os dyld"
6466   version_type=darwin
6467   need_lib_prefix=no
6468   need_version=no
6469   # FIXME: Relying on posixy $() will cause problems for
6470   #        cross-compilation, but unfortunately the echo tests do not
6471   #        yet detect zsh echo's removal of \ escapes.
6472   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)'
6473   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6474   shlibpath_overrides_runpath=yes
6475   shlibpath_var=DYLD_LIBRARY_PATH
6476   ;;
6477
6478 freebsd1*)
6479   dynamic_linker=no
6480   ;;
6481
6482 freebsd*)
6483   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6484   version_type=freebsd-$objformat
6485   case $version_type in
6486     freebsd-elf*)
6487       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6488       need_version=no
6489       need_lib_prefix=no
6490       ;;
6491     freebsd-*)
6492       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6493       need_version=yes
6494       ;;
6495   esac
6496   shlibpath_var=LD_LIBRARY_PATH
6497   case $host_os in
6498   freebsd2*)
6499     shlibpath_overrides_runpath=yes
6500     ;;
6501   *)
6502     shlibpath_overrides_runpath=no
6503     hardcode_into_libs=yes
6504     ;;
6505   esac
6506   ;;
6507
6508 gnu*)
6509   version_type=linux
6510   need_lib_prefix=no
6511   need_version=no
6512   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6513   soname_spec='${libname}${release}.so$major'
6514   shlibpath_var=LD_LIBRARY_PATH
6515   hardcode_into_libs=yes
6516   ;;
6517
6518 hpux9* | hpux10* | hpux11*)
6519   # Give a soname corresponding to the major version so that dld.sl refuses to
6520   # link against other versions.
6521   dynamic_linker="$host_os dld.sl"
6522   version_type=sunos
6523   need_lib_prefix=no
6524   need_version=no
6525   shlibpath_var=SHLIB_PATH
6526   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6527   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6528   soname_spec='${libname}${release}.sl$major'
6529   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6530   postinstall_cmds='chmod 555 $lib'
6531   ;;
6532
6533 irix5* | irix6* | nonstopux*)
6534   case $host_os in
6535     nonstopux*) version_type=nonstopux ;;
6536     *)          version_type=irix ;;
6537   esac
6538   need_lib_prefix=no
6539   need_version=no
6540   soname_spec='${libname}${release}.so$major'
6541   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6542   case $host_os in
6543   irix5* | nonstopux*)
6544     libsuff= shlibsuff=
6545     ;;
6546   *)
6547     case $LD in # libtool.m4 will add one of these switches to LD
6548     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6549     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6550     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6551     *) libsuff= shlibsuff= libmagic=never-match;;
6552     esac
6553     ;;
6554   esac
6555   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6556   shlibpath_overrides_runpath=no
6557   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6558   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6559   ;;
6560
6561 # No shared lib support for Linux oldld, aout, or coff.
6562 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6563   dynamic_linker=no
6564   ;;
6565
6566 # This must be Linux ELF.
6567 linux-gnu*)
6568   version_type=linux
6569   need_lib_prefix=no
6570   need_version=no
6571   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6572   soname_spec='${libname}${release}.so$major'
6573   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6574   shlibpath_var=LD_LIBRARY_PATH
6575   shlibpath_overrides_runpath=no
6576   # This implies no fast_install, which is unacceptable.
6577   # Some rework will be needed to allow for fast_install
6578   # before this can be enabled.
6579   hardcode_into_libs=yes
6580
6581   case $host_cpu:$lt_cv_cc_64bit_output in
6582   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6583     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6584     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6585     ;;
6586   esac
6587
6588   # We used to test for /lib/ld.so.1 and disable shared libraries on
6589   # powerpc, because MkLinux only supported shared libraries with the
6590   # GNU dynamic linker.  Since this was broken with cross compilers,
6591   # most powerpc-linux boxes support dynamic linking these days and
6592   # people can always --disable-shared, the test was removed, and we
6593   # assume the GNU/Linux dynamic linker is in use.
6594   dynamic_linker='GNU/Linux ld.so'
6595
6596   # Find out which ABI we are using (multilib Linux x86_64 hack).
6597   libsuff=
6598   case "$host_cpu" in
6599   x86_64*)
6600     echo '#line 6600 "configure"' > conftest.$ac_ext
6601     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602   (eval $ac_compile) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; then
6606       case `/usr/bin/file conftest.$ac_objext` in
6607       *64-bit*)
6608         libsuff=64
6609         ;;
6610       esac
6611     fi
6612     rm -rf conftest*
6613     ;;
6614   *)
6615     ;;
6616   esac
6617   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6618   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6619   ;;
6620
6621 netbsd*)
6622   version_type=sunos
6623   need_lib_prefix=no
6624   need_version=no
6625   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6626     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6627     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6628     dynamic_linker='NetBSD (a.out) ld.so'
6629   else
6630     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6631     soname_spec='${libname}${release}.so$major'
6632     dynamic_linker='NetBSD ld.elf_so'
6633   fi
6634   shlibpath_var=LD_LIBRARY_PATH
6635   shlibpath_overrides_runpath=yes
6636   hardcode_into_libs=yes
6637   ;;
6638
6639 newsos6)
6640   version_type=linux
6641   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6642   shlibpath_var=LD_LIBRARY_PATH
6643   shlibpath_overrides_runpath=yes
6644   ;;
6645
6646 openbsd*)
6647   version_type=sunos
6648   need_lib_prefix=no
6649   need_version=no
6650   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6651     case "$host_os" in
6652     openbsd2.[89] | openbsd2.[89].*)
6653       shlibpath_overrides_runpath=no
6654       ;;
6655     *)
6656       shlibpath_overrides_runpath=yes
6657       ;;
6658     esac
6659   else
6660     shlibpath_overrides_runpath=yes
6661   fi
6662   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6663   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6664   shlibpath_var=LD_LIBRARY_PATH
6665   ;;
6666
6667 os2*)
6668   libname_spec='$name'
6669   need_lib_prefix=no
6670   library_names_spec='$libname.dll $libname.a'
6671   dynamic_linker='OS/2 ld.exe'
6672   shlibpath_var=LIBPATH
6673   ;;
6674
6675 osf3* | osf4* | osf5*)
6676   version_type=osf
6677   need_version=no
6678   soname_spec='${libname}${release}.so$major'
6679   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6680   shlibpath_var=LD_LIBRARY_PATH
6681   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6682   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6683   hardcode_into_libs=yes
6684   ;;
6685
6686 sco3.2v5*)
6687   version_type=osf
6688   soname_spec='${libname}${release}.so$major'
6689   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6690   shlibpath_var=LD_LIBRARY_PATH
6691   ;;
6692
6693 solaris*)
6694   version_type=linux
6695   need_lib_prefix=no
6696   need_version=no
6697   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6698   soname_spec='${libname}${release}.so$major'
6699   shlibpath_var=LD_LIBRARY_PATH
6700   shlibpath_overrides_runpath=yes
6701   hardcode_into_libs=yes
6702   # ldd complains unless libraries are executable
6703   postinstall_cmds='chmod +x $lib'
6704   ;;
6705
6706 sunos4*)
6707   version_type=sunos
6708   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6709   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6710   shlibpath_var=LD_LIBRARY_PATH
6711   shlibpath_overrides_runpath=yes
6712   if test "$with_gnu_ld" = yes; then
6713     need_lib_prefix=no
6714   fi
6715   need_version=yes
6716   ;;
6717
6718 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6719   version_type=linux
6720   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6721   soname_spec='${libname}${release}.so$major'
6722   shlibpath_var=LD_LIBRARY_PATH
6723   case $host_vendor in
6724     sni)
6725       shlibpath_overrides_runpath=no
6726       need_lib_prefix=no
6727       export_dynamic_flag_spec='${wl}-Blargedynsym'
6728       runpath_var=LD_RUN_PATH
6729       ;;
6730     siemens)
6731       need_lib_prefix=no
6732       ;;
6733     motorola)
6734       need_lib_prefix=no
6735       need_version=no
6736       shlibpath_overrides_runpath=no
6737       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6738       ;;
6739   esac
6740   ;;
6741
6742 uts4*)
6743   version_type=linux
6744   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6745   soname_spec='${libname}${release}.so$major'
6746   shlibpath_var=LD_LIBRARY_PATH
6747   ;;
6748
6749 dgux*)
6750   version_type=linux
6751   need_lib_prefix=no
6752   need_version=no
6753   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6754   soname_spec='${libname}${release}.so$major'
6755   shlibpath_var=LD_LIBRARY_PATH
6756   ;;
6757
6758 sysv4*MP*)
6759   if test -d /usr/nec ;then
6760     version_type=linux
6761     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6762     soname_spec='$libname.so.$major'
6763     shlibpath_var=LD_LIBRARY_PATH
6764   fi
6765   ;;
6766
6767 *)
6768   dynamic_linker=no
6769   ;;
6770 esac
6771 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6772 echo "${ECHO_T}$dynamic_linker" >&6
6773 test "$dynamic_linker" = no && can_build_shared=no
6774
6775 # Report the final consequences.
6776 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6777 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6778 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6779 echo "${ECHO_T}$can_build_shared" >&6
6780
6781 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6782 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6783 test "$can_build_shared" = "no" && enable_shared=no
6784
6785 # On AIX, shared libraries and static libraries use the same namespace, and
6786 # are all built from PIC.
6787 case "$host_os" in
6788 aix3*)
6789   test "$enable_shared" = yes && enable_static=no
6790   if test -n "$RANLIB"; then
6791     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6792     postinstall_cmds='$RANLIB $lib'
6793   fi
6794   ;;
6795
6796 aix4*)
6797   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6798     test "$enable_shared" = yes && enable_static=no
6799   fi
6800   ;;
6801 esac
6802 echo "$as_me:$LINENO: result: $enable_shared" >&5
6803 echo "${ECHO_T}$enable_shared" >&6
6804
6805 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6806 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6807 # Make sure either enable_shared or enable_static is yes.
6808 test "$enable_shared" = yes || enable_static=yes
6809 echo "$as_me:$LINENO: result: $enable_static" >&5
6810 echo "${ECHO_T}$enable_static" >&6
6811
6812 if test "$hardcode_action" = relink; then
6813   # Fast installation is not supported
6814   enable_fast_install=no
6815 elif test "$shlibpath_overrides_runpath" = yes ||
6816      test "$enable_shared" = no; then
6817   # Fast installation is not necessary
6818   enable_fast_install=needless
6819 fi
6820
6821 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6822 if test "$GCC" = yes; then
6823   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6824 fi
6825
6826 if test "x$enable_dlopen" != xyes; then
6827   enable_dlopen=unknown
6828   enable_dlopen_self=unknown
6829   enable_dlopen_self_static=unknown
6830 else
6831   lt_cv_dlopen=no
6832   lt_cv_dlopen_libs=
6833
6834   case $host_os in
6835   beos*)
6836     lt_cv_dlopen="load_add_on"
6837     lt_cv_dlopen_libs=
6838     lt_cv_dlopen_self=yes
6839     ;;
6840
6841   cygwin* | mingw* | pw32*)
6842     lt_cv_dlopen="LoadLibrary"
6843     lt_cv_dlopen_libs=
6844    ;;
6845
6846   *)
6847     echo "$as_me:$LINENO: checking for shl_load" >&5
6848 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6849 if test "${ac_cv_func_shl_load+set}" = set; then
6850   echo $ECHO_N "(cached) $ECHO_C" >&6
6851 else
6852   cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h.  */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h.  */
6858 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6860 #define shl_load innocuous_shl_load
6861
6862 /* System header to define __stub macros and hopefully few prototypes,
6863     which can conflict with char shl_load (); below.
6864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6865     <limits.h> exists even on freestanding compilers.  */
6866
6867 #ifdef __STDC__
6868 # include <limits.h>
6869 #else
6870 # include <assert.h>
6871 #endif
6872
6873 #undef shl_load
6874
6875 /* Override any gcc2 internal prototype to avoid an error.  */
6876 #ifdef __cplusplus
6877 extern "C"
6878 {
6879 #endif
6880 /* We use char because int might match the return type of a gcc2
6881    builtin and then its argument prototype would still apply.  */
6882 char shl_load ();
6883 /* The GNU C library defines this for functions which it implements
6884     to always fail with ENOSYS.  Some functions are actually named
6885     something starting with __ and the normal name is an alias.  */
6886 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6887 choke me
6888 #else
6889 char (*f) () = shl_load;
6890 #endif
6891 #ifdef __cplusplus
6892 }
6893 #endif
6894
6895 int
6896 main ()
6897 {
6898 return f != shl_load;
6899   ;
6900   return 0;
6901 }
6902 _ACEOF
6903 rm -f conftest.$ac_objext conftest$ac_exeext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6905   (eval $ac_link) 2>conftest.er1
6906   ac_status=$?
6907   grep -v '^ *+' conftest.er1 >conftest.err
6908   rm -f conftest.er1
6909   cat conftest.err >&5
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); } &&
6912          { ac_try='test -z "$ac_c_werror_flag"
6913                          || test ! -s conftest.err'
6914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915   (eval $ac_try) 2>&5
6916   ac_status=$?
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); }; } &&
6919          { ac_try='test -s conftest$ac_exeext'
6920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921   (eval $ac_try) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; }; then
6925   ac_cv_func_shl_load=yes
6926 else
6927   echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 ac_cv_func_shl_load=no
6931 fi
6932 rm -f conftest.err conftest.$ac_objext \
6933       conftest$ac_exeext conftest.$ac_ext
6934 fi
6935 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6936 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6937 if test $ac_cv_func_shl_load = yes; then
6938   lt_cv_dlopen="shl_load"
6939 else
6940   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6941 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6942 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   ac_check_lib_save_LIBS=$LIBS
6946 LIBS="-ldld  $LIBS"
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h.  */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h.  */
6953
6954 /* Override any gcc2 internal prototype to avoid an error.  */
6955 #ifdef __cplusplus
6956 extern "C"
6957 #endif
6958 /* We use char because int might match the return type of a gcc2
6959    builtin and then its argument prototype would still apply.  */
6960 char shl_load ();
6961 int
6962 main ()
6963 {
6964 shl_load ();
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971   (eval $ac_link) 2>conftest.er1
6972   ac_status=$?
6973   grep -v '^ *+' conftest.er1 >conftest.err
6974   rm -f conftest.er1
6975   cat conftest.err >&5
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } &&
6978          { ac_try='test -z "$ac_c_werror_flag"
6979                          || test ! -s conftest.err'
6980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981   (eval $ac_try) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); }; } &&
6985          { ac_try='test -s conftest$ac_exeext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   ac_cv_lib_dld_shl_load=yes
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_cv_lib_dld_shl_load=no
6997 fi
6998 rm -f conftest.err conftest.$ac_objext \
6999       conftest$ac_exeext conftest.$ac_ext
7000 LIBS=$ac_check_lib_save_LIBS
7001 fi
7002 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7003 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7004 if test $ac_cv_lib_dld_shl_load = yes; then
7005   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7006 else
7007   echo "$as_me:$LINENO: checking for dlopen" >&5
7008 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7009 if test "${ac_cv_func_dlopen+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h.  */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h.  */
7018 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7020 #define dlopen innocuous_dlopen
7021
7022 /* System header to define __stub macros and hopefully few prototypes,
7023     which can conflict with char dlopen (); below.
7024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7025     <limits.h> exists even on freestanding compilers.  */
7026
7027 #ifdef __STDC__
7028 # include <limits.h>
7029 #else
7030 # include <assert.h>
7031 #endif
7032
7033 #undef dlopen
7034
7035 /* Override any gcc2 internal prototype to avoid an error.  */
7036 #ifdef __cplusplus
7037 extern "C"
7038 {
7039 #endif
7040 /* We use char because int might match the return type of a gcc2
7041    builtin and then its argument prototype would still apply.  */
7042 char dlopen ();
7043 /* The GNU C library defines this for functions which it implements
7044     to always fail with ENOSYS.  Some functions are actually named
7045     something starting with __ and the normal name is an alias.  */
7046 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7047 choke me
7048 #else
7049 char (*f) () = dlopen;
7050 #endif
7051 #ifdef __cplusplus
7052 }
7053 #endif
7054
7055 int
7056 main ()
7057 {
7058 return f != dlopen;
7059   ;
7060   return 0;
7061 }
7062 _ACEOF
7063 rm -f conftest.$ac_objext conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065   (eval $ac_link) 2>conftest.er1
7066   ac_status=$?
7067   grep -v '^ *+' conftest.er1 >conftest.err
7068   rm -f conftest.er1
7069   cat conftest.err >&5
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } &&
7072          { ac_try='test -z "$ac_c_werror_flag"
7073                          || test ! -s conftest.err'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; } &&
7079          { ac_try='test -s conftest$ac_exeext'
7080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081   (eval $ac_try) 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); }; }; then
7085   ac_cv_func_dlopen=yes
7086 else
7087   echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090 ac_cv_func_dlopen=no
7091 fi
7092 rm -f conftest.err conftest.$ac_objext \
7093       conftest$ac_exeext conftest.$ac_ext
7094 fi
7095 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7096 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7097 if test $ac_cv_func_dlopen = yes; then
7098   lt_cv_dlopen="dlopen"
7099 else
7100   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7101 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7102 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   ac_check_lib_save_LIBS=$LIBS
7106 LIBS="-ldl  $LIBS"
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h.  */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h.  */
7113
7114 /* Override any gcc2 internal prototype to avoid an error.  */
7115 #ifdef __cplusplus
7116 extern "C"
7117 #endif
7118 /* We use char because int might match the return type of a gcc2
7119    builtin and then its argument prototype would still apply.  */
7120 char dlopen ();
7121 int
7122 main ()
7123 {
7124 dlopen ();
7125   ;
7126   return 0;
7127 }
7128 _ACEOF
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7131   (eval $ac_link) 2>conftest.er1
7132   ac_status=$?
7133   grep -v '^ *+' conftest.er1 >conftest.err
7134   rm -f conftest.er1
7135   cat conftest.err >&5
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); } &&
7138          { ac_try='test -z "$ac_c_werror_flag"
7139                          || test ! -s conftest.err'
7140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141   (eval $ac_try) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); }; } &&
7145          { ac_try='test -s conftest$ac_exeext'
7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147   (eval $ac_try) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }; }; then
7151   ac_cv_lib_dl_dlopen=yes
7152 else
7153   echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7155
7156 ac_cv_lib_dl_dlopen=no
7157 fi
7158 rm -f conftest.err conftest.$ac_objext \
7159       conftest$ac_exeext conftest.$ac_ext
7160 LIBS=$ac_check_lib_save_LIBS
7161 fi
7162 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7163 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7164 if test $ac_cv_lib_dl_dlopen = yes; then
7165   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7166 else
7167   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7168 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7169 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   ac_check_lib_save_LIBS=$LIBS
7173 LIBS="-lsvld  $LIBS"
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h.  */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h.  */
7180
7181 /* Override any gcc2 internal prototype to avoid an error.  */
7182 #ifdef __cplusplus
7183 extern "C"
7184 #endif
7185 /* We use char because int might match the return type of a gcc2
7186    builtin and then its argument prototype would still apply.  */
7187 char dlopen ();
7188 int
7189 main ()
7190 {
7191 dlopen ();
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext conftest$ac_exeext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198   (eval $ac_link) 2>conftest.er1
7199   ac_status=$?
7200   grep -v '^ *+' conftest.er1 >conftest.err
7201   rm -f conftest.er1
7202   cat conftest.err >&5
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } &&
7205          { ac_try='test -z "$ac_c_werror_flag"
7206                          || test ! -s conftest.err'
7207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208   (eval $ac_try) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }; } &&
7212          { ac_try='test -s conftest$ac_exeext'
7213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214   (eval $ac_try) 2>&5
7215   ac_status=$?
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); }; }; then
7218   ac_cv_lib_svld_dlopen=yes
7219 else
7220   echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7222
7223 ac_cv_lib_svld_dlopen=no
7224 fi
7225 rm -f conftest.err conftest.$ac_objext \
7226       conftest$ac_exeext conftest.$ac_ext
7227 LIBS=$ac_check_lib_save_LIBS
7228 fi
7229 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7230 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7231 if test $ac_cv_lib_svld_dlopen = yes; then
7232   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7233 else
7234   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7235 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7236 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   ac_check_lib_save_LIBS=$LIBS
7240 LIBS="-ldld  $LIBS"
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h.  */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h.  */
7247
7248 /* Override any gcc2 internal prototype to avoid an error.  */
7249 #ifdef __cplusplus
7250 extern "C"
7251 #endif
7252 /* We use char because int might match the return type of a gcc2
7253    builtin and then its argument prototype would still apply.  */
7254 char dld_link ();
7255 int
7256 main ()
7257 {
7258 dld_link ();
7259   ;
7260   return 0;
7261 }
7262 _ACEOF
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265   (eval $ac_link) 2>conftest.er1
7266   ac_status=$?
7267   grep -v '^ *+' conftest.er1 >conftest.err
7268   rm -f conftest.er1
7269   cat conftest.err >&5
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); } &&
7272          { ac_try='test -z "$ac_c_werror_flag"
7273                          || test ! -s conftest.err'
7274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275   (eval $ac_try) 2>&5
7276   ac_status=$?
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); }; } &&
7279          { ac_try='test -s conftest$ac_exeext'
7280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281   (eval $ac_try) 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); }; }; then
7285   ac_cv_lib_dld_dld_link=yes
7286 else
7287   echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290 ac_cv_lib_dld_dld_link=no
7291 fi
7292 rm -f conftest.err conftest.$ac_objext \
7293       conftest$ac_exeext conftest.$ac_ext
7294 LIBS=$ac_check_lib_save_LIBS
7295 fi
7296 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7297 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7298 if test $ac_cv_lib_dld_dld_link = yes; then
7299   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7300 fi
7301
7302
7303 fi
7304
7305
7306 fi
7307
7308
7309 fi
7310
7311
7312 fi
7313
7314
7315 fi
7316
7317     ;;
7318   esac
7319
7320   if test "x$lt_cv_dlopen" != xno; then
7321     enable_dlopen=yes
7322   else
7323     enable_dlopen=no
7324   fi
7325
7326   case $lt_cv_dlopen in
7327   dlopen)
7328     save_CPPFLAGS="$CPPFLAGS"
7329         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7330
7331     save_LDFLAGS="$LDFLAGS"
7332     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7333
7334     save_LIBS="$LIBS"
7335     LIBS="$lt_cv_dlopen_libs $LIBS"
7336
7337     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7338 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7339 if test "${lt_cv_dlopen_self+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342           if test "$cross_compiling" = yes; then :
7343   lt_cv_dlopen_self=cross
7344 else
7345     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7346   lt_status=$lt_dlunknown
7347   cat > conftest.$ac_ext <<EOF
7348 #line 7348 "configure"
7349 #include "confdefs.h"
7350
7351 #if HAVE_DLFCN_H
7352 #include <dlfcn.h>
7353 #endif
7354
7355 #include <stdio.h>
7356
7357 #ifdef RTLD_GLOBAL
7358 #  define LT_DLGLOBAL           RTLD_GLOBAL
7359 #else
7360 #  ifdef DL_GLOBAL
7361 #    define LT_DLGLOBAL         DL_GLOBAL
7362 #  else
7363 #    define LT_DLGLOBAL         0
7364 #  endif
7365 #endif
7366
7367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7368    find out it does not work in some platform. */
7369 #ifndef LT_DLLAZY_OR_NOW
7370 #  ifdef RTLD_LAZY
7371 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7372 #  else
7373 #    ifdef DL_LAZY
7374 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7375 #    else
7376 #      ifdef RTLD_NOW
7377 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7378 #      else
7379 #        ifdef DL_NOW
7380 #          define LT_DLLAZY_OR_NOW      DL_NOW
7381 #        else
7382 #          define LT_DLLAZY_OR_NOW      0
7383 #        endif
7384 #      endif
7385 #    endif
7386 #  endif
7387 #endif
7388
7389 #ifdef __cplusplus
7390 extern "C" void exit (int);
7391 #endif
7392
7393 void fnord() { int i=42;}
7394 int main ()
7395 {
7396   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7397   int status = $lt_dlunknown;
7398
7399   if (self)
7400     {
7401       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7402       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7403       /* dlclose (self); */
7404     }
7405
7406     exit (status);
7407 }
7408 EOF
7409   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410   (eval $ac_link) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7414     (./conftest; exit; ) 2>/dev/null
7415     lt_status=$?
7416     case x$lt_status in
7417       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7418       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7419       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7420     esac
7421   else :
7422     # compilation failed
7423     lt_cv_dlopen_self=no
7424   fi
7425 fi
7426 rm -fr conftest*
7427
7428
7429 fi
7430 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7431 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7432
7433     if test "x$lt_cv_dlopen_self" = xyes; then
7434       LDFLAGS="$LDFLAGS $link_static_flag"
7435       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7436 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7437 if test "${lt_cv_dlopen_self_static+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440           if test "$cross_compiling" = yes; then :
7441   lt_cv_dlopen_self_static=cross
7442 else
7443     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7444   lt_status=$lt_dlunknown
7445   cat > conftest.$ac_ext <<EOF
7446 #line 7446 "configure"
7447 #include "confdefs.h"
7448
7449 #if HAVE_DLFCN_H
7450 #include <dlfcn.h>
7451 #endif
7452
7453 #include <stdio.h>
7454
7455 #ifdef RTLD_GLOBAL
7456 #  define LT_DLGLOBAL           RTLD_GLOBAL
7457 #else
7458 #  ifdef DL_GLOBAL
7459 #    define LT_DLGLOBAL         DL_GLOBAL
7460 #  else
7461 #    define LT_DLGLOBAL         0
7462 #  endif
7463 #endif
7464
7465 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7466    find out it does not work in some platform. */
7467 #ifndef LT_DLLAZY_OR_NOW
7468 #  ifdef RTLD_LAZY
7469 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7470 #  else
7471 #    ifdef DL_LAZY
7472 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7473 #    else
7474 #      ifdef RTLD_NOW
7475 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7476 #      else
7477 #        ifdef DL_NOW
7478 #          define LT_DLLAZY_OR_NOW      DL_NOW
7479 #        else
7480 #          define LT_DLLAZY_OR_NOW      0
7481 #        endif
7482 #      endif
7483 #    endif
7484 #  endif
7485 #endif
7486
7487 #ifdef __cplusplus
7488 extern "C" void exit (int);
7489 #endif
7490
7491 void fnord() { int i=42;}
7492 int main ()
7493 {
7494   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7495   int status = $lt_dlunknown;
7496
7497   if (self)
7498     {
7499       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7500       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7501       /* dlclose (self); */
7502     }
7503
7504     exit (status);
7505 }
7506 EOF
7507   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508   (eval $ac_link) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7512     (./conftest; exit; ) 2>/dev/null
7513     lt_status=$?
7514     case x$lt_status in
7515       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7516       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7517       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7518     esac
7519   else :
7520     # compilation failed
7521     lt_cv_dlopen_self_static=no
7522   fi
7523 fi
7524 rm -fr conftest*
7525
7526
7527 fi
7528 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7529 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7530     fi
7531
7532     CPPFLAGS="$save_CPPFLAGS"
7533     LDFLAGS="$save_LDFLAGS"
7534     LIBS="$save_LIBS"
7535     ;;
7536   esac
7537
7538   case $lt_cv_dlopen_self in
7539   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7540   *) enable_dlopen_self=unknown ;;
7541   esac
7542
7543   case $lt_cv_dlopen_self_static in
7544   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7545   *) enable_dlopen_self_static=unknown ;;
7546   esac
7547 fi
7548
7549
7550 if test "$enable_shared" = yes && test "$GCC" = yes; then
7551   case $archive_cmds in
7552   *'~'*)
7553     # FIXME: we may have to deal with multi-command sequences.
7554     ;;
7555   '$CC '*)
7556     # Test whether the compiler implicitly links with -lc since on some
7557     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7558     # to ld, don't add -lc before -lgcc.
7559     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7560 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7561     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7562   echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564   $rm conftest*
7565     echo 'static int dummy;' > conftest.$ac_ext
7566
7567     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568   (eval $ac_compile) 2>&5
7569   ac_status=$?
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); }; then
7572       soname=conftest
7573       lib=conftest
7574       libobjs=conftest.$ac_objext
7575       deplibs=
7576       wl=$lt_cv_prog_cc_wl
7577       compiler_flags=-v
7578       linker_flags=-v
7579       verstring=
7580       output_objdir=.
7581       libname=conftest
7582       save_allow_undefined_flag=$allow_undefined_flag
7583       allow_undefined_flag=
7584       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7585   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7586   ac_status=$?
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); }
7589       then
7590         lt_cv_archive_cmds_need_lc=no
7591       else
7592         lt_cv_archive_cmds_need_lc=yes
7593       fi
7594       allow_undefined_flag=$save_allow_undefined_flag
7595     else
7596       cat conftest.err 1>&5
7597     fi
7598 fi
7599
7600     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7601 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7602     ;;
7603   esac
7604 fi
7605 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7606
7607 # The second clause should only fire when bootstrapping the
7608 # libtool distribution, otherwise you forgot to ship ltmain.sh
7609 # with your package, and you will get complaints that there are
7610 # no rules to generate ltmain.sh.
7611 if test -f "$ltmain"; then
7612   :
7613 else
7614   # If there is no Makefile yet, we rely on a make rule to execute
7615   # `config.status --recheck' to rerun these tests and create the
7616   # libtool script then.
7617   test -f Makefile && make "$ltmain"
7618 fi
7619
7620 if test -f "$ltmain"; then
7621   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7622   $rm -f "${ofile}T"
7623
7624   echo creating $ofile
7625
7626   # Now quote all the things that may contain metacharacters while being
7627   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7628   # variables and quote the copies for generation of the libtool script.
7629   for var in echo old_CC old_CFLAGS SED \
7630     AR AR_FLAGS CC LD LN_S NM SHELL \
7631     reload_flag reload_cmds wl \
7632     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7633     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7634     library_names_spec soname_spec \
7635     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7636     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7637     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7638     old_striplib striplib file_magic_cmd export_symbols_cmds \
7639     deplibs_check_method allow_undefined_flag no_undefined_flag \
7640     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7641     global_symbol_to_c_name_address \
7642     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7643     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7644     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7645
7646     case $var in
7647     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7648     old_postinstall_cmds | old_postuninstall_cmds | \
7649     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7650     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7651     postinstall_cmds | postuninstall_cmds | \
7652     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7653       # Double-quote double-evaled strings.
7654       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7655       ;;
7656     *)
7657       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7658       ;;
7659     esac
7660   done
7661
7662   cat <<__EOF__ > "${ofile}T"
7663 #! $SHELL
7664
7665 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7666 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7667 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7668 #
7669 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7670 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7671 #
7672 # This program is free software; you can redistribute it and/or modify
7673 # it under the terms of the GNU General Public License as published by
7674 # the Free Software Foundation; either version 2 of the License, or
7675 # (at your option) any later version.
7676 #
7677 # This program is distributed in the hope that it will be useful, but
7678 # WITHOUT ANY WARRANTY; without even the implied warranty of
7679 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7680 # General Public License for more details.
7681 #
7682 # You should have received a copy of the GNU General Public License
7683 # along with this program; if not, write to the Free Software
7684 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7685 #
7686 # As a special exception to the GNU General Public License, if you
7687 # distribute this file as part of a program that contains a
7688 # configuration script generated by Autoconf, you may include it under
7689 # the same distribution terms that you use for the rest of that program.
7690
7691 # A sed that does not truncate output.
7692 SED=$lt_SED
7693
7694 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7695 Xsed="${SED} -e s/^X//"
7696
7697 # The HP-UX ksh and POSIX shell print the target directory to stdout
7698 # if CDPATH is set.
7699 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7700
7701 # ### BEGIN LIBTOOL CONFIG
7702
7703 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7704
7705 # Shell to use when invoking shell scripts.
7706 SHELL=$lt_SHELL
7707
7708 # Whether or not to build shared libraries.
7709 build_libtool_libs=$enable_shared
7710
7711 # Whether or not to build static libraries.
7712 build_old_libs=$enable_static
7713
7714 # Whether or not to add -lc for building shared libraries.
7715 build_libtool_need_lc=$need_lc
7716
7717 # Whether or not to optimize for fast installation.
7718 fast_install=$enable_fast_install
7719
7720 # The host system.
7721 host_alias=$host_alias
7722 host=$host
7723
7724 # An echo program that does not interpret backslashes.
7725 echo=$lt_echo
7726
7727 # The archiver.
7728 AR=$lt_AR
7729 AR_FLAGS=$lt_AR_FLAGS
7730
7731 # The default C compiler.
7732 CC=$lt_CC
7733
7734 # Is the compiler the GNU C compiler?
7735 with_gcc=$GCC
7736
7737 # The linker used to build libraries.
7738 LD=$lt_LD
7739
7740 # Whether we need hard or soft links.
7741 LN_S=$lt_LN_S
7742
7743 # A BSD-compatible nm program.
7744 NM=$lt_NM
7745
7746 # A symbol stripping program
7747 STRIP=$STRIP
7748
7749 # Used to examine libraries when file_magic_cmd begins "file"
7750 MAGIC_CMD=$MAGIC_CMD
7751
7752 # Used on cygwin: DLL creation program.
7753 DLLTOOL="$DLLTOOL"
7754
7755 # Used on cygwin: object dumper.
7756 OBJDUMP="$OBJDUMP"
7757
7758 # Used on cygwin: assembler.
7759 AS="$AS"
7760
7761 # The name of the directory that contains temporary libtool files.
7762 objdir=$objdir
7763
7764 # How to create reloadable object files.
7765 reload_flag=$lt_reload_flag
7766 reload_cmds=$lt_reload_cmds
7767
7768 # How to pass a linker flag through the compiler.
7769 wl=$lt_wl
7770
7771 # Object file suffix (normally "o").
7772 objext="$ac_objext"
7773
7774 # Old archive suffix (normally "a").
7775 libext="$libext"
7776
7777 # Executable file suffix (normally "").
7778 exeext="$exeext"
7779
7780 # Additional compiler flags for building library objects.
7781 pic_flag=$lt_pic_flag
7782 pic_mode=$pic_mode
7783
7784 # Does compiler simultaneously support -c and -o options?
7785 compiler_c_o=$lt_compiler_c_o
7786
7787 # Can we write directly to a .lo ?
7788 compiler_o_lo=$lt_compiler_o_lo
7789
7790 # Must we lock files when doing compilation ?
7791 need_locks=$lt_need_locks
7792
7793 # Do we need the lib prefix for modules?
7794 need_lib_prefix=$need_lib_prefix
7795
7796 # Do we need a version for libraries?
7797 need_version=$need_version
7798
7799 # Whether dlopen is supported.
7800 dlopen_support=$enable_dlopen
7801
7802 # Whether dlopen of programs is supported.
7803 dlopen_self=$enable_dlopen_self
7804
7805 # Whether dlopen of statically linked programs is supported.
7806 dlopen_self_static=$enable_dlopen_self_static
7807
7808 # Compiler flag to prevent dynamic linking.
7809 link_static_flag=$lt_link_static_flag
7810
7811 # Compiler flag to turn off builtin functions.
7812 no_builtin_flag=$lt_no_builtin_flag
7813
7814 # Compiler flag to allow reflexive dlopens.
7815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7816
7817 # Compiler flag to generate shared objects directly from archives.
7818 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7819
7820 # Compiler flag to generate thread-safe objects.
7821 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7822
7823 # Library versioning type.
7824 version_type=$version_type
7825
7826 # Format of library name prefix.
7827 libname_spec=$lt_libname_spec
7828
7829 # List of archive names.  First name is the real one, the rest are links.
7830 # The last name is the one that the linker finds with -lNAME.
7831 library_names_spec=$lt_library_names_spec
7832
7833 # The coded name of the library, if different from the real name.
7834 soname_spec=$lt_soname_spec
7835
7836 # Commands used to build and install an old-style archive.
7837 RANLIB=$lt_RANLIB
7838 old_archive_cmds=$lt_old_archive_cmds
7839 old_postinstall_cmds=$lt_old_postinstall_cmds
7840 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7841
7842 # Create an old-style archive from a shared archive.
7843 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7844
7845 # Create a temporary old-style archive to link instead of a shared archive.
7846 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7847
7848 # Commands used to build and install a shared archive.
7849 archive_cmds=$lt_archive_cmds
7850 archive_expsym_cmds=$lt_archive_expsym_cmds
7851 postinstall_cmds=$lt_postinstall_cmds
7852 postuninstall_cmds=$lt_postuninstall_cmds
7853
7854 # Commands to strip libraries.
7855 old_striplib=$lt_old_striplib
7856 striplib=$lt_striplib
7857
7858 # Method to check whether dependent libraries are shared objects.
7859 deplibs_check_method=$lt_deplibs_check_method
7860
7861 # Command to use when deplibs_check_method == file_magic.
7862 file_magic_cmd=$lt_file_magic_cmd
7863
7864 # Flag that allows shared libraries with undefined symbols to be built.
7865 allow_undefined_flag=$lt_allow_undefined_flag
7866
7867 # Flag that forces no undefined symbols.
7868 no_undefined_flag=$lt_no_undefined_flag
7869
7870 # Commands used to finish a libtool library installation in a directory.
7871 finish_cmds=$lt_finish_cmds
7872
7873 # Same as above, but a single script fragment to be evaled but not shown.
7874 finish_eval=$lt_finish_eval
7875
7876 # Take the output of nm and produce a listing of raw symbols and C names.
7877 global_symbol_pipe=$lt_global_symbol_pipe
7878
7879 # Transform the output of nm in a proper C declaration
7880 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7881
7882 # Transform the output of nm in a C name address pair
7883 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7884
7885 # This is the shared library runtime path variable.
7886 runpath_var=$runpath_var
7887
7888 # This is the shared library path variable.
7889 shlibpath_var=$shlibpath_var
7890
7891 # Is shlibpath searched before the hard-coded library search path?
7892 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7893
7894 # How to hardcode a shared library path into an executable.
7895 hardcode_action=$hardcode_action
7896
7897 # Whether we should hardcode library paths into libraries.
7898 hardcode_into_libs=$hardcode_into_libs
7899
7900 # Flag to hardcode \$libdir into a binary during linking.
7901 # This must work even if \$libdir does not exist.
7902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7903
7904 # Whether we need a single -rpath flag with a separated argument.
7905 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7906
7907 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7908 # resulting binary.
7909 hardcode_direct=$hardcode_direct
7910
7911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7912 # resulting binary.
7913 hardcode_minus_L=$hardcode_minus_L
7914
7915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7916 # the resulting binary.
7917 hardcode_shlibpath_var=$hardcode_shlibpath_var
7918
7919 # Variables whose values should be saved in libtool wrapper scripts and
7920 # restored at relink time.
7921 variables_saved_for_relink="$variables_saved_for_relink"
7922
7923 # Whether libtool must link a program against all its dependency libraries.
7924 link_all_deplibs=$link_all_deplibs
7925
7926 # Compile-time system search path for libraries
7927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7928
7929 # Run-time system search path for libraries
7930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7931
7932 # Fix the shell variable \$srcfile for the compiler.
7933 fix_srcfile_path="$fix_srcfile_path"
7934
7935 # Set to yes if exported symbols are required.
7936 always_export_symbols=$always_export_symbols
7937
7938 # The commands to list exported symbols.
7939 export_symbols_cmds=$lt_export_symbols_cmds
7940
7941 # The commands to extract the exported symbol list from a shared archive.
7942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7943
7944 # Symbols that should not be listed in the preloaded symbols.
7945 exclude_expsyms=$lt_exclude_expsyms
7946
7947 # Symbols that must always be exported.
7948 include_expsyms=$lt_include_expsyms
7949
7950 # ### END LIBTOOL CONFIG
7951
7952 __EOF__
7953
7954   case $host_os in
7955   aix3*)
7956     cat <<\EOF >> "${ofile}T"
7957
7958 # AIX sometimes has problems with the GCC collect2 program.  For some
7959 # reason, if we set the COLLECT_NAMES environment variable, the problems
7960 # vanish in a puff of smoke.
7961 if test "X${COLLECT_NAMES+set}" != Xset; then
7962   COLLECT_NAMES=
7963   export COLLECT_NAMES
7964 fi
7965 EOF
7966     ;;
7967   esac
7968
7969   case $host_os in
7970   cygwin* | mingw* | pw32* | os2*)
7971     cat <<'EOF' >> "${ofile}T"
7972       # This is a source program that is used to create dlls on Windows
7973       # Don't remove nor modify the starting and closing comments
7974 # /* ltdll.c starts here */
7975 # #define WIN32_LEAN_AND_MEAN
7976 # #include <windows.h>
7977 # #undef WIN32_LEAN_AND_MEAN
7978 # #include <stdio.h>
7979 #
7980 # #ifndef __CYGWIN__
7981 # #  ifdef __CYGWIN32__
7982 # #    define __CYGWIN__ __CYGWIN32__
7983 # #  endif
7984 # #endif
7985 #
7986 # #ifdef __cplusplus
7987 # extern "C" {
7988 # #endif
7989 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7990 # #ifdef __cplusplus
7991 # }
7992 # #endif
7993 #
7994 # #ifdef __CYGWIN__
7995 # #include <cygwin/cygwin_dll.h>
7996 # DECLARE_CYGWIN_DLL( DllMain );
7997 # #endif
7998 # HINSTANCE __hDllInstance_base;
7999 #
8000 # BOOL APIENTRY
8001 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8002 # {
8003 #   __hDllInstance_base = hInst;
8004 #   return TRUE;
8005 # }
8006 # /* ltdll.c ends here */
8007         # This is a source program that is used to create import libraries
8008         # on Windows for dlls which lack them. Don't remove nor modify the
8009         # starting and closing comments
8010 # /* impgen.c starts here */
8011 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8012 #
8013 #  This file is part of GNU libtool.
8014 #
8015 #  This program is free software; you can redistribute it and/or modify
8016 #  it under the terms of the GNU General Public License as published by
8017 #  the Free Software Foundation; either version 2 of the License, or
8018 #  (at your option) any later version.
8019 #
8020 #  This program is distributed in the hope that it will be useful,
8021 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8022 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8023 #  GNU General Public License for more details.
8024 #
8025 #  You should have received a copy of the GNU General Public License
8026 #  along with this program; if not, write to the Free Software
8027 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8028 #  */
8029 #
8030 # #include <stdio.h>            /* for printf() */
8031 # #include <unistd.h>           /* for open(), lseek(), read() */
8032 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8033 # #include <string.h>           /* for strdup() */
8034 #
8035 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8036 # #ifndef O_BINARY
8037 # #define O_BINARY 0
8038 # #endif
8039 #
8040 # static unsigned int
8041 # pe_get16 (fd, offset)
8042 #      int fd;
8043 #      int offset;
8044 # {
8045 #   unsigned char b[2];
8046 #   lseek (fd, offset, SEEK_SET);
8047 #   read (fd, b, 2);
8048 #   return b[0] + (b[1]<<8);
8049 # }
8050 #
8051 # static unsigned int
8052 # pe_get32 (fd, offset)
8053 #     int fd;
8054 #     int offset;
8055 # {
8056 #   unsigned char b[4];
8057 #   lseek (fd, offset, SEEK_SET);
8058 #   read (fd, b, 4);
8059 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8060 # }
8061 #
8062 # static unsigned int
8063 # pe_as32 (ptr)
8064 #      void *ptr;
8065 # {
8066 #   unsigned char *b = ptr;
8067 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8068 # }
8069 #
8070 # int
8071 # main (argc, argv)
8072 #     int argc;
8073 #     char *argv[];
8074 # {
8075 #     int dll;
8076 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8077 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8078 #     unsigned long name_rvas, nexp;
8079 #     unsigned char *expdata, *erva;
8080 #     char *filename, *dll_name;
8081 #
8082 #     filename = argv[1];
8083 #
8084 #     dll = open(filename, O_RDONLY|O_BINARY);
8085 #     if (dll < 1)
8086 #       return 1;
8087 #
8088 #     dll_name = filename;
8089 #
8090 #     for (i=0; filename[i]; i++)
8091 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8092 #           dll_name = filename + i +1;
8093 #
8094 #     pe_header_offset = pe_get32 (dll, 0x3c);
8095 #     opthdr_ofs = pe_header_offset + 4 + 20;
8096 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8097 #
8098 #     if (num_entries < 1) /* no exports */
8099 #       return 1;
8100 #
8101 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8102 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8103 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8104 #     secptr = (pe_header_offset + 4 + 20 +
8105 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8106 #
8107 #     expptr = 0;
8108 #     for (i = 0; i < nsections; i++)
8109 #     {
8110 #       char sname[8];
8111 #       unsigned long secptr1 = secptr + 40 * i;
8112 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8113 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8114 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8115 #       lseek(dll, secptr1, SEEK_SET);
8116 #       read(dll, sname, 8);
8117 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8118 #       {
8119 #           expptr = fptr + (export_rva - vaddr);
8120 #           if (export_rva + export_size > vaddr + vsize)
8121 #               export_size = vsize - (export_rva - vaddr);
8122 #           break;
8123 #       }
8124 #     }
8125 #
8126 #     expdata = (unsigned char*)malloc(export_size);
8127 #     lseek (dll, expptr, SEEK_SET);
8128 #     read (dll, expdata, export_size);
8129 #     erva = expdata - export_rva;
8130 #
8131 #     nexp = pe_as32 (expdata+24);
8132 #     name_rvas = pe_as32 (expdata+32);
8133 #
8134 #     printf ("EXPORTS\n");
8135 #     for (i = 0; i<nexp; i++)
8136 #     {
8137 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8138 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8139 #     }
8140 #
8141 #     return 0;
8142 # }
8143 # /* impgen.c ends here */
8144
8145 EOF
8146     ;;
8147   esac
8148
8149   # We use sed instead of cat because bash on DJGPP gets confused if
8150   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8151   # text mode, it properly converts lines to CR/LF.  This bash problem
8152   # is reportedly fixed, but why not run on old versions too?
8153   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8154
8155   mv -f "${ofile}T" "$ofile" || \
8156     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8157   chmod +x "$ofile"
8158 fi
8159
8160
8161
8162
8163
8164 # This can be used to rebuild libtool when needed
8165 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8166
8167 # Always use our own libtool.
8168 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8169
8170 # Prevent multiple expansion
8171
8172
8173  for ac_prog in gzip uncompress compress
8174 do
8175   # Extract the first word of "$ac_prog", so it can be a program name with args.
8176 set dummy $ac_prog; ac_word=$2
8177 echo "$as_me:$LINENO: checking for $ac_word" >&5
8178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8179 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   if test -n "$UNCOMPRESS"; then
8183   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8184 else
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8187 do
8188   IFS=$as_save_IFS
8189   test -z "$as_dir" && as_dir=.
8190   for ac_exec_ext in '' $ac_executable_extensions; do
8191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8192     ac_cv_prog_UNCOMPRESS="$ac_prog"
8193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8194     break 2
8195   fi
8196 done
8197 done
8198
8199 fi
8200 fi
8201 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8202 if test -n "$UNCOMPRESS"; then
8203   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8204 echo "${ECHO_T}$UNCOMPRESS" >&6
8205 else
8206   echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8208 fi
8209
8210   test -n "$UNCOMPRESS" && break
8211 done
8212
8213
8214
8215
8216
8217
8218
8219
8220 echo "$as_me:$LINENO: checking for target system" >&5
8221 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8222 CYGWIN=
8223 MINGW=
8224 case $host_os in
8225     *cygwin* ) CYGWIN=yes;;
8226     *mingw* ) MINGW=yes;;
8227 esac
8228
8229 AR=ar
8230 if test "x$MINGW" = "xyes"; then
8231     #fix for the debian distribution of mingw
8232     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8233         AR="/usr/i586-mingw32msvc/bin/ar"
8234     fi
8235     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8236         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8237     fi
8238     #fix for the gentoo distribution of mingw
8239     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8240         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8241     fi
8242     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8243         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8244     fi
8245     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8246         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8247     fi
8248 fi
8249
8250
8251
8252 if test "x${CYGWIN}" = "xyes"; then
8253     cat >>confdefs.h <<_ACEOF
8254 #define CYGWIN 1
8255 _ACEOF
8256
8257     echo "$as_me:$LINENO: result: cygwin" >&5
8258 echo "${ECHO_T}cygwin" >&6
8259 else
8260     if test "x${MINGW}" = "xyes"; then
8261         cat >>confdefs.h <<_ACEOF
8262 #define MINGW 1
8263 _ACEOF
8264
8265         WIN32=1
8266         cat >>confdefs.h <<_ACEOF
8267 #define WIN32 1
8268 _ACEOF
8269
8270         LIBS="$LIBS -lws2_32"
8271         echo "$as_me:$LINENO: result: mingw" >&5
8272 echo "${ECHO_T}mingw" >&6
8273     else
8274         LINUX=1
8275         export LINUX
8276         cat >>confdefs.h <<_ACEOF
8277 #define LINUX 1
8278 _ACEOF
8279
8280         echo "$as_me:$LINENO: result: " >&5
8281 echo "${ECHO_T}" >&6
8282     fi
8283 fi
8284
8285
8286 SLEXT="so"
8287 if test "x${MINGW}" != "xyes"; then
8288     # no mingW
8289     cat >>confdefs.h <<_ACEOF
8290 #define O_BINARY 0
8291 _ACEOF
8292
8293 else
8294     # mingW
8295     SLEXT="dll"
8296 fi
8297 export SLEXT
8298
8299
8300 # The following tries to make use of includes and libraries in
8301 # /usr/local, too. Notice: A -I/usr/local/include might break
8302 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8303 # especially on systems which link /usr/local to /usr, so it has yet
8304 # to be seen how useful this is.
8305 if test -d /usr/local/lib; then
8306     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8307 fi
8308 if test -d /usr/local/include; then
8309 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8310 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8311     echo > /dev/null
8312 fi
8313 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8314     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8315     # and $prefix/include, which should be included in our search paths for libraries
8316     # and includes.
8317     LDFLAGS="$LDFLAGS -L${libdir}"
8318     CPPFLAGS="$CPPFLAGS -I${includedir}"
8319     # TODO- test whether gcc still works after this
8320 fi
8321
8322 # this must be done after (I believe) AC_PROG_MAKE_SET
8323 if test "x$DEBUG" '!=' "x";then
8324     STRIP="@echo debug enabled, not stripping "
8325     export STRIP
8326
8327 fi
8328
8329
8330 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8331 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8332 if test "${ac_cv_lib_m_sin+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   ac_check_lib_save_LIBS=$LIBS
8336 LIBS="-lm  $LIBS"
8337 cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h.  */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h.  */
8343
8344 /* Override any gcc2 internal prototype to avoid an error.  */
8345 #ifdef __cplusplus
8346 extern "C"
8347 #endif
8348 /* We use char because int might match the return type of a gcc2
8349    builtin and then its argument prototype would still apply.  */
8350 char sin ();
8351 int
8352 main ()
8353 {
8354 sin ();
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361   (eval $ac_link) 2>conftest.er1
8362   ac_status=$?
8363   grep -v '^ *+' conftest.er1 >conftest.err
8364   rm -f conftest.er1
8365   cat conftest.err >&5
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); } &&
8368          { ac_try='test -z "$ac_c_werror_flag"
8369                          || test ! -s conftest.err'
8370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371   (eval $ac_try) 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; } &&
8375          { ac_try='test -s conftest$ac_exeext'
8376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377   (eval $ac_try) 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); }; }; then
8381   ac_cv_lib_m_sin=yes
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386 ac_cv_lib_m_sin=no
8387 fi
8388 rm -f conftest.err conftest.$ac_objext \
8389       conftest$ac_exeext conftest.$ac_ext
8390 LIBS=$ac_check_lib_save_LIBS
8391 fi
8392 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8393 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8394 if test $ac_cv_lib_m_sin = yes; then
8395   cat >>confdefs.h <<_ACEOF
8396 #define HAVE_LIBM 1
8397 _ACEOF
8398
8399   LIBS="-lm $LIBS"
8400
8401 else
8402   echo "Error: Math library not found.";
8403  exit;
8404
8405 fi
8406
8407
8408 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8409 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8410 if test "${ac_cv_lib_z_deflate+set}" = set; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   ac_check_lib_save_LIBS=$LIBS
8414 LIBS="-lz  $LIBS"
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421
8422 /* Override any gcc2 internal prototype to avoid an error.  */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427    builtin and then its argument prototype would still apply.  */
8428 char deflate ();
8429 int
8430 main ()
8431 {
8432 deflate ();
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439   (eval $ac_link) 2>conftest.er1
8440   ac_status=$?
8441   grep -v '^ *+' conftest.er1 >conftest.err
8442   rm -f conftest.er1
8443   cat conftest.err >&5
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } &&
8446          { ac_try='test -z "$ac_c_werror_flag"
8447                          || test ! -s conftest.err'
8448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449   (eval $ac_try) 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; } &&
8453          { ac_try='test -s conftest$ac_exeext'
8454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455   (eval $ac_try) 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); }; }; then
8459   ac_cv_lib_z_deflate=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_cv_lib_z_deflate=no
8465 fi
8466 rm -f conftest.err conftest.$ac_objext \
8467       conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8469 fi
8470 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8471 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8472 if test $ac_cv_lib_z_deflate = yes; then
8473   cat >>confdefs.h <<_ACEOF
8474 #define HAVE_LIBZ 1
8475 _ACEOF
8476
8477   LIBS="-lz $LIBS"
8478
8479 else
8480   DISABLEPNG2SWF=true;
8481  MISSINGLIBS="${MISSINGLIBS} zlib"
8482  ZLIBMISSING=true;
8483
8484 fi
8485
8486
8487 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8488 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8489 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   ac_check_lib_save_LIBS=$LIBS
8493 LIBS="-ljpeg  $LIBS"
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h.  */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h.  */
8500
8501 /* Override any gcc2 internal prototype to avoid an error.  */
8502 #ifdef __cplusplus
8503 extern "C"
8504 #endif
8505 /* We use char because int might match the return type of a gcc2
8506    builtin and then its argument prototype would still apply.  */
8507 char jpeg_write_raw_data ();
8508 int
8509 main ()
8510 {
8511 jpeg_write_raw_data ();
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518   (eval $ac_link) 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } &&
8525          { ac_try='test -z "$ac_c_werror_flag"
8526                          || test ! -s conftest.err'
8527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528   (eval $ac_try) 2>&5
8529   ac_status=$?
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); }; } &&
8532          { ac_try='test -s conftest$ac_exeext'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; }; then
8538   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8539 else
8540   echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8544 fi
8545 rm -f conftest.err conftest.$ac_objext \
8546       conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_lib_save_LIBS
8548 fi
8549 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8550 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8551 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8552   cat >>confdefs.h <<_ACEOF
8553 #define HAVE_LIBJPEG 1
8554 _ACEOF
8555
8556   LIBS="-ljpeg $LIBS"
8557
8558 else
8559   DISABLEPDF2SWF=true;
8560  DISABLEJPEG2SWF=true;
8561  MISSINGLIBS="${MISSINGLIBS} jpeglib"
8562
8563 fi
8564
8565
8566 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8567 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8568 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571   ac_check_lib_save_LIBS=$LIBS
8572 LIBS="-lt1  $LIBS"
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579
8580 /* Override any gcc2 internal prototype to avoid an error.  */
8581 #ifdef __cplusplus
8582 extern "C"
8583 #endif
8584 /* We use char because int might match the return type of a gcc2
8585    builtin and then its argument prototype would still apply.  */
8586 char T1_LoadFont ();
8587 int
8588 main ()
8589 {
8590 T1_LoadFont ();
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597   (eval $ac_link) 2>conftest.er1
8598   ac_status=$?
8599   grep -v '^ *+' conftest.er1 >conftest.err
8600   rm -f conftest.er1
8601   cat conftest.err >&5
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); } &&
8604          { ac_try='test -z "$ac_c_werror_flag"
8605                          || test ! -s conftest.err'
8606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607   (eval $ac_try) 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; } &&
8611          { ac_try='test -s conftest$ac_exeext'
8612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613   (eval $ac_try) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; }; then
8617   ac_cv_lib_t1_T1_LoadFont=yes
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 ac_cv_lib_t1_T1_LoadFont=no
8623 fi
8624 rm -f conftest.err conftest.$ac_objext \
8625       conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8627 fi
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8629 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8630 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8631   cat >>confdefs.h <<_ACEOF
8632 #define HAVE_LIBT1 1
8633 _ACEOF
8634
8635   LIBS="-lt1 $LIBS"
8636
8637 else
8638   DISABLEPDF2SWF=true;
8639  MISSINGLIBS="${MISSINGLIBS} t1lib"
8640
8641 fi
8642
8643
8644
8645 for ac_prog in freetype-config
8646 do
8647   # Extract the first word of "$ac_prog", so it can be a program name with args.
8648 set dummy $ac_prog; ac_word=$2
8649 echo "$as_me:$LINENO: checking for $ac_word" >&5
8650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8651 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   if test -n "$FREETYPE_CONFIG"; then
8655   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8656 else
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8659 do
8660   IFS=$as_save_IFS
8661   test -z "$as_dir" && as_dir=.
8662   for ac_exec_ext in '' $ac_executable_extensions; do
8663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8666     break 2
8667   fi
8668 done
8669 done
8670
8671 fi
8672 fi
8673 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8674 if test -n "$FREETYPE_CONFIG"; then
8675   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8676 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8677 else
8678   echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6
8680 fi
8681
8682   test -n "$FREETYPE_CONFIG" && break
8683 done
8684
8685 OLDCPPFLAGS="${CPPFLAGS}"
8686 OLDLIBS="${LIBS}"
8687 if test "x${FREETYPE_CONFIG}" != "x"; then
8688     CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
8689 else if test -d /usr/include/freetype2; then
8690     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8691 else if test -d /usr/local/include/freetype2; then
8692     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8693 fi
8694 fi
8695 fi
8696 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8697 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8698 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8699   echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701   ac_check_lib_save_LIBS=$LIBS
8702 LIBS="-lfreetype  $LIBS"
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h.  */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h.  */
8709
8710 /* Override any gcc2 internal prototype to avoid an error.  */
8711 #ifdef __cplusplus
8712 extern "C"
8713 #endif
8714 /* We use char because int might match the return type of a gcc2
8715    builtin and then its argument prototype would still apply.  */
8716 char FT_Init_FreeType ();
8717 int
8718 main ()
8719 {
8720 FT_Init_FreeType ();
8721   ;
8722   return 0;
8723 }
8724 _ACEOF
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727   (eval $ac_link) 2>conftest.er1
8728   ac_status=$?
8729   grep -v '^ *+' conftest.er1 >conftest.err
8730   rm -f conftest.er1
8731   cat conftest.err >&5
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); } &&
8734          { ac_try='test -z "$ac_c_werror_flag"
8735                          || test ! -s conftest.err'
8736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737   (eval $ac_try) 2>&5
8738   ac_status=$?
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); }; } &&
8741          { ac_try='test -s conftest$ac_exeext'
8742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743   (eval $ac_try) 2>&5
8744   ac_status=$?
8745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746   (exit $ac_status); }; }; then
8747   ac_cv_lib_freetype_FT_Init_FreeType=yes
8748 else
8749   echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8751
8752 ac_cv_lib_freetype_FT_Init_FreeType=no
8753 fi
8754 rm -f conftest.err conftest.$ac_objext \
8755       conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8757 fi
8758 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8759 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8760 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8761   HAVE_LIB_FREETYPE=1
8762 fi
8763
8764
8765 for ac_header in freetype/freetype.h
8766 do
8767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769   echo "$as_me:$LINENO: checking for $ac_header" >&5
8770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772   echo $ECHO_N "(cached) $ECHO_C" >&6
8773 fi
8774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8776 else
8777   # Is the header compilable?
8778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 $ac_includes_default
8787 #include <$ac_header>
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791   (eval $ac_compile) 2>conftest.er1
8792   ac_status=$?
8793   grep -v '^ *+' conftest.er1 >conftest.err
8794   rm -f conftest.er1
8795   cat conftest.err >&5
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); } &&
8798          { ac_try='test -z "$ac_c_werror_flag"
8799                          || test ! -s conftest.err'
8800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801   (eval $ac_try) 2>&5
8802   ac_status=$?
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); }; } &&
8805          { ac_try='test -s conftest.$ac_objext'
8806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807   (eval $ac_try) 2>&5
8808   ac_status=$?
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); }; }; then
8811   ac_header_compiler=yes
8812 else
8813   echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8815
8816 ac_header_compiler=no
8817 fi
8818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8820 echo "${ECHO_T}$ac_header_compiler" >&6
8821
8822 # Is the header present?
8823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8825 cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831 #include <$ac_header>
8832 _ACEOF
8833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8835   ac_status=$?
8836   grep -v '^ *+' conftest.er1 >conftest.err
8837   rm -f conftest.er1
8838   cat conftest.err >&5
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } >/dev/null; then
8841   if test -s conftest.err; then
8842     ac_cpp_err=$ac_c_preproc_warn_flag
8843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8844   else
8845     ac_cpp_err=
8846   fi
8847 else
8848   ac_cpp_err=yes
8849 fi
8850 if test -z "$ac_cpp_err"; then
8851   ac_header_preproc=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856   ac_header_preproc=no
8857 fi
8858 rm -f conftest.err conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8860 echo "${ECHO_T}$ac_header_preproc" >&6
8861
8862 # So?  What about this header?
8863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8864   yes:no: )
8865     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8869     ac_header_preproc=yes
8870     ;;
8871   no:yes:* )
8872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8874     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8875 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8876     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8879 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8882     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8884     (
8885       cat <<\_ASBOX
8886 ## ------------------------------------------ ##
8887 ## Report this to the AC_PACKAGE_NAME lists.  ##
8888 ## ------------------------------------------ ##
8889 _ASBOX
8890     ) |
8891       sed "s/^/$as_me: WARNING:     /" >&2
8892     ;;
8893 esac
8894 echo "$as_me:$LINENO: checking for $ac_header" >&5
8895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899   eval "$as_ac_Header=\$ac_header_preproc"
8900 fi
8901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8903
8904 fi
8905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8906   cat >>confdefs.h <<_ACEOF
8907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8908 _ACEOF
8909  HAVE_FREETYPE_FREETYPE_H=1
8910 fi
8911
8912 done
8913
8914 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8915 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8916     HAVE_FREETYPE=1
8917 fi
8918 fi
8919
8920 if test "x${HAVE_FREETYPE}" = "x1"; then
8921     if test "x{$FREETYPE_CONFIG}" != "x"; then
8922         LIBS="$LIBS "`freetype-config --libs`
8923     else
8924         LIBS="$LIBS -lfreetype"
8925     fi
8926
8927     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8928 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8929
8930     cat > conftest.c << EOF
8931 #include <freetype/freetype.h>
8932 #include <freetype/ftglyph.h>
8933 #include <freetype/ftsnames.h>
8934 #include <freetype/ttnameid.h>
8935 #include <freetype/ftoutln.h>
8936
8937 int main()
8938 {
8939     FT_Library ftlibrary;
8940     FT_Face face;
8941     FT_Error error;
8942     FT_ULong charcode;
8943     FT_UInt gindex;
8944     FT_Glyph glyph;
8945     FT_BBox bbox;
8946     FT_Matrix matrix;
8947     FT_UInt i;
8948     char* name = 0;
8949     char italic, bold;
8950
8951     FT_Init_FreeType(&ftlibrary);
8952     FT_New_Face(ftlibrary, "filename", 0, &face);
8953     i = face->num_glyphs - 1;
8954     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8955     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8956     FT_Get_Postscript_Name(face);
8957     FT_Get_Char_Index(face, 33);
8958     FT_Get_First_Char(face, &i);
8959     FT_Get_Next_Char(face, 33, &i);
8960     if(FT_HAS_GLYPH_NAMES(face)) {
8961         FT_Get_Glyph_Name(face, 33, name, 127);
8962     }
8963     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8964     FT_Get_Glyph(face->glyph, &glyph);
8965     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8966     FT_Done_Glyph(glyph);
8967     FT_Done_Face(face);
8968     FT_Done_FreeType(ftlibrary);
8969     return 0;
8970 }
8971 EOF
8972
8973     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8974     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8975         echo "$as_me:$LINENO: result: yes" >&5
8976 echo "${ECHO_T}yes" >&6
8977         cat >>confdefs.h <<_ACEOF
8978 #define HAVE_FREETYPE 1
8979 _ACEOF
8980
8981         cat >>confdefs.h <<_ACEOF
8982 #define USE_FREETYPE 1
8983 _ACEOF
8984   # for ttf2tp1
8985     else
8986         echo "configure: failed program was:" >&5
8987         cat conftest.c >&5
8988         HAVE_FREETYPE=0
8989         echo "$as_me:$LINENO: result: no" >&5
8990 echo "${ECHO_T}no" >&6
8991     fi
8992     rm -f conftest*
8993 fi
8994
8995 # if the above didn't work out, reset all changes to the compiler variables.
8996 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8997     CPPFLAGS=$OLDCPPFLAGS
8998     LIBS=$OLDLIBS
8999 fi
9000
9001
9002
9003 echo "$as_me:$LINENO: checking for byte order" >&5
9004 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
9005 if test "$cross_compiling" = yes; then
9006   CROSSCOMPILE=1
9007 else
9008   cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h.  */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h.  */
9014
9015 int main (int argc, char *argv[])
9016 {
9017     int i = 1;
9018     return *(char*)&i;
9019 }
9020
9021 _ACEOF
9022 rm -f conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024   (eval $ac_link) 2>&5
9025   ac_status=$?
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029   (eval $ac_try) 2>&5
9030   ac_status=$?
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); }; }; then
9033   BIGENDIAN=1
9034 else
9035   echo "$as_me: program exited with status $ac_status" >&5
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9038
9039 ( exit $ac_status )
9040 LITTLEENDIAN=1
9041 fi
9042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9043 fi
9044 export CROSSCOMPILE
9045
9046 if test "x${CROSSCOMPILE}" = "x1"; then
9047  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9048 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9049  echo "$as_me:$LINENO: checking target system type" >&5
9050 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9051 if test "${ac_cv_target+set}" = set; then
9052   echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054   ac_cv_target_alias=$target_alias
9055 test "x$ac_cv_target_alias" = "x" &&
9056   ac_cv_target_alias=$ac_cv_host_alias
9057 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9058   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9059 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9060    { (exit 1); exit 1; }; }
9061
9062 fi
9063 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9064 echo "${ECHO_T}$ac_cv_target" >&6
9065 target=$ac_cv_target
9066 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9067 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9068 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9069
9070
9071 # The aliases save the names the user supplied, while $host etc.
9072 # will get canonicalized.
9073 test -n "$target_alias" &&
9074   test "$program_prefix$program_suffix$program_transform_name" = \
9075     NONENONEs,x,x, &&
9076   program_prefix=${target_alias}-
9077  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9078 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9079  case "${target}" in
9080   *86* | *-pc-* )
9081      LITTLEENDIAN=1
9082      ;;
9083   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9084      BIGENDIAN=1
9085      ;;
9086  esac
9087 fi
9088
9089 export LITTLEENDIAN
9090 if test "x${LITTLEENDIAN}" = "x1"; then
9091 echo "$as_me:$LINENO: result: little endian" >&5
9092 echo "${ECHO_T}little endian" >&6
9093 BYTEORDERCHECKOK=1
9094 fi
9095 export BIGENDIAN
9096 if test "x${BIGENDIAN}" = "x1"; then
9097 echo "$as_me:$LINENO: result: big endian" >&5
9098 echo "${ECHO_T}big endian" >&6
9099 BYTEORDERCHECKOK=1
9100 WORDS_BIGENDIAN=1
9101 export WORDS_BIGENDIAN
9102 cat >>confdefs.h <<_ACEOF
9103 #define WORDS_BIGENDIAN 1
9104 _ACEOF
9105
9106 fi
9107 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9108 echo "$as_me:$LINENO: result: unknown" >&5
9109 echo "${ECHO_T}unknown" >&6
9110 echo Byte order could not determined.
9111 exit 1
9112 fi
9113
9114
9115
9116 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9117 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9118 if test "$cross_compiling" = yes; then
9119   CROSSCOMPILE=1
9120 else
9121   cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h.  */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h.  */
9127
9128 #include "stdlib.h"
9129 int main (int argc, char*argv[])
9130 {
9131     return system("test `touch config.tmp2`");
9132 }
9133
9134 _ACEOF
9135 rm -f conftest$ac_exeext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9137   (eval $ac_link) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); } && { ac_try='./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   OK=OK
9147 else
9148   echo "$as_me: program exited with status $ac_status" >&5
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 fi
9153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9154 fi
9155
9156 if test "x${OK}" = "xOK";then
9157     test -f config.tmp2 || OK=
9158 fi
9159
9160 if test "x${CROSSCOMPILE}" = "x1";then
9161     OK=OK;
9162 fi
9163 if test "x${OK}" = "xOK";then
9164 rm -f config.tmp2
9165 echo "$as_me:$LINENO: result: yes" >&5
9166 echo "${ECHO_T}yes" >&6
9167 SYSTEM_BACKTICKS=1
9168 export SYSTEM_BACKTICKS
9169 cat >>confdefs.h <<_ACEOF
9170 #define SYSTEM_BACKTICKS 1
9171 _ACEOF
9172
9173 else
9174 echo "$as_me:$LINENO: result: no" >&5
9175 echo "${ECHO_T}no" >&6
9176 fi
9177
9178
9179
9180 test "$program_prefix" != NONE &&
9181   program_transform_name="s,^,$program_prefix,;$program_transform_name"
9182 # Use a double $ so make ignores it.
9183 test "$program_suffix" != NONE &&
9184   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9185 # Double any \ or $.  echo might interpret backslashes.
9186 # By default was `s,x,x', remove it if useless.
9187 cat <<\_ACEOF >conftest.sed
9188 s/[\\$]/&&/g;s/;s,x,x,$//
9189 _ACEOF
9190 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9191 rm conftest.sed
9192
9193
9194            ac_config_headers="$ac_config_headers config.h"
9195
9196
9197
9198
9199
9200
9201 ac_header_dirent=no
9202 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9203   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9204 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9205 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h.  */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h.  */
9215 #include <sys/types.h>
9216 #include <$ac_hdr>
9217
9218 int
9219 main ()
9220 {
9221 if ((DIR *) 0)
9222 return 0;
9223   ;
9224   return 0;
9225 }
9226 _ACEOF
9227 rm -f conftest.$ac_objext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229   (eval $ac_compile) 2>conftest.er1
9230   ac_status=$?
9231   grep -v '^ *+' conftest.er1 >conftest.err
9232   rm -f conftest.er1
9233   cat conftest.err >&5
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); } &&
9236          { ac_try='test -z "$ac_c_werror_flag"
9237                          || test ! -s conftest.err'
9238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239   (eval $ac_try) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); }; } &&
9243          { ac_try='test -s conftest.$ac_objext'
9244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245   (eval $ac_try) 2>&5
9246   ac_status=$?
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); }; }; then
9249   eval "$as_ac_Header=yes"
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254 eval "$as_ac_Header=no"
9255 fi
9256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9257 fi
9258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9261   cat >>confdefs.h <<_ACEOF
9262 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9263 _ACEOF
9264
9265 ac_header_dirent=$ac_hdr; break
9266 fi
9267
9268 done
9269 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9270 if test $ac_header_dirent = dirent.h; then
9271   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9272 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9273 if test "${ac_cv_search_opendir+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   ac_func_search_save_LIBS=$LIBS
9277 ac_cv_search_opendir=no
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284
9285 /* Override any gcc2 internal prototype to avoid an error.  */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 /* We use char because int might match the return type of a gcc2
9290    builtin and then its argument prototype would still apply.  */
9291 char opendir ();
9292 int
9293 main ()
9294 {
9295 opendir ();
9296   ;
9297   return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302   (eval $ac_link) 2>conftest.er1
9303   ac_status=$?
9304   grep -v '^ *+' conftest.er1 >conftest.err
9305   rm -f conftest.er1
9306   cat conftest.err >&5
9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); } &&
9309          { ac_try='test -z "$ac_c_werror_flag"
9310                          || test ! -s conftest.err'
9311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312   (eval $ac_try) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); }; } &&
9316          { ac_try='test -s conftest$ac_exeext'
9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318   (eval $ac_try) 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; }; then
9322   ac_cv_search_opendir="none required"
9323 else
9324   echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 fi
9328 rm -f conftest.err conftest.$ac_objext \
9329       conftest$ac_exeext conftest.$ac_ext
9330 if test "$ac_cv_search_opendir" = no; then
9331   for ac_lib in dir; do
9332     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9333     cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h.  */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h.  */
9339
9340 /* Override any gcc2 internal prototype to avoid an error.  */
9341 #ifdef __cplusplus
9342 extern "C"
9343 #endif
9344 /* We use char because int might match the return type of a gcc2
9345    builtin and then its argument prototype would still apply.  */
9346 char opendir ();
9347 int
9348 main ()
9349 {
9350 opendir ();
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357   (eval $ac_link) 2>conftest.er1
9358   ac_status=$?
9359   grep -v '^ *+' conftest.er1 >conftest.err
9360   rm -f conftest.er1
9361   cat conftest.err >&5
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); } &&
9364          { ac_try='test -z "$ac_c_werror_flag"
9365                          || test ! -s conftest.err'
9366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367   (eval $ac_try) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); }; } &&
9371          { ac_try='test -s conftest$ac_exeext'
9372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373   (eval $ac_try) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; }; then
9377   ac_cv_search_opendir="-l$ac_lib"
9378 break
9379 else
9380   echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383 fi
9384 rm -f conftest.err conftest.$ac_objext \
9385       conftest$ac_exeext conftest.$ac_ext
9386   done
9387 fi
9388 LIBS=$ac_func_search_save_LIBS
9389 fi
9390 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9391 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9392 if test "$ac_cv_search_opendir" != no; then
9393   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9394
9395 fi
9396
9397 else
9398   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9399 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9400 if test "${ac_cv_search_opendir+set}" = set; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   ac_func_search_save_LIBS=$LIBS
9404 ac_cv_search_opendir=no
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411
9412 /* Override any gcc2 internal prototype to avoid an error.  */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 /* We use char because int might match the return type of a gcc2
9417    builtin and then its argument prototype would still apply.  */
9418 char opendir ();
9419 int
9420 main ()
9421 {
9422 opendir ();
9423   ;
9424   return 0;
9425 }
9426 _ACEOF
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429   (eval $ac_link) 2>conftest.er1
9430   ac_status=$?
9431   grep -v '^ *+' conftest.er1 >conftest.err
9432   rm -f conftest.er1
9433   cat conftest.err >&5
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); } &&
9436          { ac_try='test -z "$ac_c_werror_flag"
9437                          || test ! -s conftest.err'
9438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439   (eval $ac_try) 2>&5
9440   ac_status=$?
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); }; } &&
9443          { ac_try='test -s conftest$ac_exeext'
9444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445   (eval $ac_try) 2>&5
9446   ac_status=$?
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); }; }; then
9449   ac_cv_search_opendir="none required"
9450 else
9451   echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9453
9454 fi
9455 rm -f conftest.err conftest.$ac_objext \
9456       conftest$ac_exeext conftest.$ac_ext
9457 if test "$ac_cv_search_opendir" = no; then
9458   for ac_lib in x; do
9459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9460     cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h.  */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h.  */
9466
9467 /* Override any gcc2 internal prototype to avoid an error.  */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 /* We use char because int might match the return type of a gcc2
9472    builtin and then its argument prototype would still apply.  */
9473 char opendir ();
9474 int
9475 main ()
9476 {
9477 opendir ();
9478   ;
9479   return 0;
9480 }
9481 _ACEOF
9482 rm -f conftest.$ac_objext conftest$ac_exeext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9484   (eval $ac_link) 2>conftest.er1
9485   ac_status=$?
9486   grep -v '^ *+' conftest.er1 >conftest.err
9487   rm -f conftest.er1
9488   cat conftest.err >&5
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); } &&
9491          { ac_try='test -z "$ac_c_werror_flag"
9492                          || test ! -s conftest.err'
9493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; } &&
9498          { ac_try='test -s conftest$ac_exeext'
9499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500   (eval $ac_try) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; }; then
9504   ac_cv_search_opendir="-l$ac_lib"
9505 break
9506 else
9507   echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510 fi
9511 rm -f conftest.err conftest.$ac_objext \
9512       conftest$ac_exeext conftest.$ac_ext
9513   done
9514 fi
9515 LIBS=$ac_func_search_save_LIBS
9516 fi
9517 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9518 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9519 if test "$ac_cv_search_opendir" != no; then
9520   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9521
9522 fi
9523
9524 fi
9525
9526  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9527 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9528 if test "${ac_cv_header_stdc+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537 #include <stdlib.h>
9538 #include <stdarg.h>
9539 #include <string.h>
9540 #include <float.h>
9541
9542 int
9543 main ()
9544 {
9545
9546   ;
9547   return 0;
9548 }
9549 _ACEOF
9550 rm -f conftest.$ac_objext
9551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9552   (eval $ac_compile) 2>conftest.er1
9553   ac_status=$?
9554   grep -v '^ *+' conftest.er1 >conftest.err
9555   rm -f conftest.er1
9556   cat conftest.err >&5
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); } &&
9559          { ac_try='test -z "$ac_c_werror_flag"
9560                          || test ! -s conftest.err'
9561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562   (eval $ac_try) 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); }; } &&
9566          { ac_try='test -s conftest.$ac_objext'
9567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568   (eval $ac_try) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; }; then
9572   ac_cv_header_stdc=yes
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577 ac_cv_header_stdc=no
9578 fi
9579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9580
9581 if test $ac_cv_header_stdc = yes; then
9582   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9583   cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h.  */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h.  */
9589 #include <string.h>
9590
9591 _ACEOF
9592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9593   $EGREP "memchr" >/dev/null 2>&1; then
9594   :
9595 else
9596   ac_cv_header_stdc=no
9597 fi
9598 rm -f conftest*
9599
9600 fi
9601
9602 if test $ac_cv_header_stdc = yes; then
9603   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9604   cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610 #include <stdlib.h>
9611
9612 _ACEOF
9613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9614   $EGREP "free" >/dev/null 2>&1; then
9615   :
9616 else
9617   ac_cv_header_stdc=no
9618 fi
9619 rm -f conftest*
9620
9621 fi
9622
9623 if test $ac_cv_header_stdc = yes; then
9624   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9625   if test "$cross_compiling" = yes; then
9626   :
9627 else
9628   cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h.  */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h.  */
9634 #include <ctype.h>
9635 #if ((' ' & 0x0FF) == 0x020)
9636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9638 #else
9639 # define ISLOWER(c) \
9640                    (('a' <= (c) && (c) <= 'i') \
9641                      || ('j' <= (c) && (c) <= 'r') \
9642                      || ('s' <= (c) && (c) <= 'z'))
9643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9644 #endif
9645
9646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9647 int
9648 main ()
9649 {
9650   int i;
9651   for (i = 0; i < 256; i++)
9652     if (XOR (islower (i), ISLOWER (i))
9653         || toupper (i) != TOUPPER (i))
9654       exit(2);
9655   exit (0);
9656 }
9657 _ACEOF
9658 rm -f conftest$ac_exeext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660   (eval $ac_link) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665   (eval $ac_try) 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; }; then
9669   :
9670 else
9671   echo "$as_me: program exited with status $ac_status" >&5
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ( exit $ac_status )
9676 ac_cv_header_stdc=no
9677 fi
9678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9679 fi
9680 fi
9681 fi
9682 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9683 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9684 if test $ac_cv_header_stdc = yes; then
9685
9686 cat >>confdefs.h <<\_ACEOF
9687 #define STDC_HEADERS 1
9688 _ACEOF
9689
9690 fi
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706 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
9707 do
9708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9710   echo "$as_me:$LINENO: checking for $ac_header" >&5
9711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 fi
9715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9717 else
9718   # Is the header compilable?
9719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727 $ac_includes_default
9728 #include <$ac_header>
9729 _ACEOF
9730 rm -f conftest.$ac_objext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9732   (eval $ac_compile) 2>conftest.er1
9733   ac_status=$?
9734   grep -v '^ *+' conftest.er1 >conftest.err
9735   rm -f conftest.er1
9736   cat conftest.err >&5
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); } &&
9739          { ac_try='test -z "$ac_c_werror_flag"
9740                          || test ! -s conftest.err'
9741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742   (eval $ac_try) 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); }; } &&
9746          { ac_try='test -s conftest.$ac_objext'
9747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748   (eval $ac_try) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; }; then
9752   ac_header_compiler=yes
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_header_compiler=no
9758 fi
9759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9761 echo "${ECHO_T}$ac_header_compiler" >&6
9762
9763 # Is the header present?
9764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9766 cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h.  */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h.  */
9772 #include <$ac_header>
9773 _ACEOF
9774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9776   ac_status=$?
9777   grep -v '^ *+' conftest.er1 >conftest.err
9778   rm -f conftest.er1
9779   cat conftest.err >&5
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } >/dev/null; then
9782   if test -s conftest.err; then
9783     ac_cpp_err=$ac_c_preproc_warn_flag
9784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9785   else
9786     ac_cpp_err=
9787   fi
9788 else
9789   ac_cpp_err=yes
9790 fi
9791 if test -z "$ac_cpp_err"; then
9792   ac_header_preproc=yes
9793 else
9794   echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9796
9797   ac_header_preproc=no
9798 fi
9799 rm -f conftest.err conftest.$ac_ext
9800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9801 echo "${ECHO_T}$ac_header_preproc" >&6
9802
9803 # So?  What about this header?
9804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9805   yes:no: )
9806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9810     ac_header_preproc=yes
9811     ;;
9812   no:yes:* )
9813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9825     (
9826       cat <<\_ASBOX
9827 ## ------------------------------------------ ##
9828 ## Report this to the AC_PACKAGE_NAME lists.  ##
9829 ## ------------------------------------------ ##
9830 _ASBOX
9831     ) |
9832       sed "s/^/$as_me: WARNING:     /" >&2
9833     ;;
9834 esac
9835 echo "$as_me:$LINENO: checking for $ac_header" >&5
9836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9838   echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840   eval "$as_ac_Header=\$ac_header_preproc"
9841 fi
9842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9844
9845 fi
9846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9847   cat >>confdefs.h <<_ACEOF
9848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9849 _ACEOF
9850
9851 fi
9852
9853 done
9854
9855
9856 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9857  DISABLEPDF2SWF=true;
9858  DISABLEJPEG2SWF=true;
9859  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9860 fi
9861 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9862  DISABLEPDF2SWF=true;
9863  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9864 fi
9865 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9866  DISABLEPNG2SWF=true;
9867  MISSINGLIBS="${MISSINGLIBS} zlib.h"
9868  ZLIBMISSING=true;
9869 fi
9870
9871 cat >>confdefs.h <<_ACEOF
9872 #define PACKAGE "$PACKAGE"
9873 _ACEOF
9874
9875 cat >>confdefs.h <<_ACEOF
9876 #define VERSION "$VERSION"
9877 _ACEOF
9878
9879
9880
9881
9882
9883
9884
9885  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9886 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9887 if test "${ac_cv_c_const+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
9897 int
9898 main ()
9899 {
9900 /* FIXME: Include the comments suggested by Paul. */
9901 #ifndef __cplusplus
9902   /* Ultrix mips cc rejects this.  */
9903   typedef int charset[2];
9904   const charset x;
9905   /* SunOS 4.1.1 cc rejects this.  */
9906   char const *const *ccp;
9907   char **p;
9908   /* NEC SVR4.0.2 mips cc rejects this.  */
9909   struct point {int x, y;};
9910   static struct point const zero = {0,0};
9911   /* AIX XL C 1.02.0.0 rejects this.
9912      It does not let you subtract one const X* pointer from another in
9913      an arm of an if-expression whose if-part is not a constant
9914      expression */
9915   const char *g = "string";
9916   ccp = &g + (g ? g-g : 0);
9917   /* HPUX 7.0 cc rejects these. */
9918   ++ccp;
9919   p = (char**) ccp;
9920   ccp = (char const *const *) p;
9921   { /* SCO 3.2v4 cc rejects this.  */
9922     char *t;
9923     char const *s = 0 ? (char *) 0 : (char const *) 0;
9924
9925     *t++ = 0;
9926   }
9927   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9928     int x[] = {25, 17};
9929     const int *foo = &x[0];
9930     ++foo;
9931   }
9932   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9933     typedef const int *iptr;
9934     iptr p = 0;
9935     ++p;
9936   }
9937   { /* AIX XL C 1.02.0.0 rejects this saying
9938        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9939     struct s { int j; const int *ap[3]; };
9940     struct s *b; b->j = 5;
9941   }
9942   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9943     const int foo = 10;
9944   }
9945 #endif
9946
9947   ;
9948   return 0;
9949 }
9950 _ACEOF
9951 rm -f conftest.$ac_objext
9952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9953   (eval $ac_compile) 2>conftest.er1
9954   ac_status=$?
9955   grep -v '^ *+' conftest.er1 >conftest.err
9956   rm -f conftest.er1
9957   cat conftest.err >&5
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); } &&
9960          { ac_try='test -z "$ac_c_werror_flag"
9961                          || test ! -s conftest.err'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; } &&
9967          { ac_try='test -s conftest.$ac_objext'
9968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969   (eval $ac_try) 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; }; then
9973   ac_cv_c_const=yes
9974 else
9975   echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978 ac_cv_c_const=no
9979 fi
9980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981 fi
9982 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9983 echo "${ECHO_T}$ac_cv_c_const" >&6
9984 if test $ac_cv_c_const = no; then
9985
9986 cat >>confdefs.h <<\_ACEOF
9987 #define const
9988 _ACEOF
9989
9990 fi
9991
9992  echo "$as_me:$LINENO: checking for inline" >&5
9993 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9994 if test "${ac_cv_c_inline+set}" = set; then
9995   echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997   ac_cv_c_inline=no
9998 for ac_kw in inline __inline__ __inline; do
9999   cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h.  */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h.  */
10005 #ifndef __cplusplus
10006 typedef int foo_t;
10007 static $ac_kw foo_t static_foo () {return 0; }
10008 $ac_kw foo_t foo () {return 0; }
10009 #endif
10010
10011 _ACEOF
10012 rm -f conftest.$ac_objext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10014   (eval $ac_compile) 2>conftest.er1
10015   ac_status=$?
10016   grep -v '^ *+' conftest.er1 >conftest.err
10017   rm -f conftest.er1
10018   cat conftest.err >&5
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); } &&
10021          { ac_try='test -z "$ac_c_werror_flag"
10022                          || test ! -s conftest.err'
10023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024   (eval $ac_try) 2>&5
10025   ac_status=$?
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); }; } &&
10028          { ac_try='test -s conftest.$ac_objext'
10029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030   (eval $ac_try) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; }; then
10034   ac_cv_c_inline=$ac_kw; break
10035 else
10036   echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10038
10039 fi
10040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10041 done
10042
10043 fi
10044 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10045 echo "${ECHO_T}$ac_cv_c_inline" >&6
10046
10047
10048 case $ac_cv_c_inline in
10049   inline | yes) ;;
10050   *)
10051     case $ac_cv_c_inline in
10052       no) ac_val=;;
10053       *) ac_val=$ac_cv_c_inline;;
10054     esac
10055     cat >>confdefs.h <<_ACEOF
10056 #ifndef __cplusplus
10057 #define inline $ac_val
10058 #endif
10059 _ACEOF
10060     ;;
10061 esac
10062
10063  echo "$as_me:$LINENO: checking for off_t" >&5
10064 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10065 if test "${ac_cv_type_off_t+set}" = set; then
10066   echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068   cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074 $ac_includes_default
10075 int
10076 main ()
10077 {
10078 if ((off_t *) 0)
10079   return 0;
10080 if (sizeof (off_t))
10081   return 0;
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10088   (eval $ac_compile) 2>conftest.er1
10089   ac_status=$?
10090   grep -v '^ *+' conftest.er1 >conftest.err
10091   rm -f conftest.er1
10092   cat conftest.err >&5
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); } &&
10095          { ac_try='test -z "$ac_c_werror_flag"
10096                          || test ! -s conftest.err'
10097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098   (eval $ac_try) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; } &&
10102          { ac_try='test -s conftest.$ac_objext'
10103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104   (eval $ac_try) 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; }; then
10108   ac_cv_type_off_t=yes
10109 else
10110   echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113 ac_cv_type_off_t=no
10114 fi
10115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10116 fi
10117 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10118 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10119 if test $ac_cv_type_off_t = yes; then
10120   :
10121 else
10122
10123 cat >>confdefs.h <<_ACEOF
10124 #define off_t long
10125 _ACEOF
10126
10127 fi
10128
10129  echo "$as_me:$LINENO: checking for size_t" >&5
10130 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10131 if test "${ac_cv_type_size_t+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h.  */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h.  */
10140 $ac_includes_default
10141 int
10142 main ()
10143 {
10144 if ((size_t *) 0)
10145   return 0;
10146 if (sizeof (size_t))
10147   return 0;
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 rm -f conftest.$ac_objext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154   (eval $ac_compile) 2>conftest.er1
10155   ac_status=$?
10156   grep -v '^ *+' conftest.er1 >conftest.err
10157   rm -f conftest.er1
10158   cat conftest.err >&5
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); } &&
10161          { ac_try='test -z "$ac_c_werror_flag"
10162                          || test ! -s conftest.err'
10163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164   (eval $ac_try) 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); }; } &&
10168          { ac_try='test -s conftest.$ac_objext'
10169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170   (eval $ac_try) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); }; }; then
10174   ac_cv_type_size_t=yes
10175 else
10176   echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10178
10179 ac_cv_type_size_t=no
10180 fi
10181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10182 fi
10183 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10184 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10185 if test $ac_cv_type_size_t = yes; then
10186   :
10187 else
10188
10189 cat >>confdefs.h <<_ACEOF
10190 #define size_t unsigned
10191 _ACEOF
10192
10193 fi
10194
10195  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10196 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10197 if test "${ac_cv_struct_tm+set}" = set; then
10198   echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200   cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206 #include <sys/types.h>
10207 #include <time.h>
10208
10209 int
10210 main ()
10211 {
10212 struct tm *tp; tp->tm_sec;
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219   (eval $ac_compile) 2>conftest.er1
10220   ac_status=$?
10221   grep -v '^ *+' conftest.er1 >conftest.err
10222   rm -f conftest.er1
10223   cat conftest.err >&5
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); } &&
10226          { ac_try='test -z "$ac_c_werror_flag"
10227                          || test ! -s conftest.err'
10228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229   (eval $ac_try) 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); }; } &&
10233          { ac_try='test -s conftest.$ac_objext'
10234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235   (eval $ac_try) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); }; }; then
10239   ac_cv_struct_tm=time.h
10240 else
10241   echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 ac_cv_struct_tm=sys/time.h
10245 fi
10246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10247 fi
10248 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10249 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10250 if test $ac_cv_struct_tm = sys/time.h; then
10251
10252 cat >>confdefs.h <<\_ACEOF
10253 #define TM_IN_SYS_TIME 1
10254 _ACEOF
10255
10256 fi
10257
10258  echo "$as_me:$LINENO: checking for boolean" >&5
10259 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10260 if test "${ac_cv_type_boolean+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h.  */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h.  */
10269 $ac_includes_default
10270 int
10271 main ()
10272 {
10273 if ((boolean *) 0)
10274   return 0;
10275 if (sizeof (boolean))
10276   return 0;
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283   (eval $ac_compile) 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag"
10291                          || test ! -s conftest.err'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; } &&
10297          { ac_try='test -s conftest.$ac_objext'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_cv_type_boolean=yes
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 ac_cv_type_boolean=no
10309 fi
10310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10311 fi
10312 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10313 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10314 if test $ac_cv_type_boolean = yes; then
10315   :
10316 else
10317
10318 cat >>confdefs.h <<_ACEOF
10319 #define boolean int
10320 _ACEOF
10321
10322 fi
10323
10324  echo "$as_me:$LINENO: checking for bool" >&5
10325 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10326 if test "${ac_cv_type_bool+set}" = set; then
10327   echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329   cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335 $ac_includes_default
10336 int
10337 main ()
10338 {
10339 if ((bool *) 0)
10340   return 0;
10341 if (sizeof (bool))
10342   return 0;
10343   ;
10344   return 0;
10345 }
10346 _ACEOF
10347 rm -f conftest.$ac_objext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10349   (eval $ac_compile) 2>conftest.er1
10350   ac_status=$?
10351   grep -v '^ *+' conftest.er1 >conftest.err
10352   rm -f conftest.er1
10353   cat conftest.err >&5
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); } &&
10356          { ac_try='test -z "$ac_c_werror_flag"
10357                          || test ! -s conftest.err'
10358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359   (eval $ac_try) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }; } &&
10363          { ac_try='test -s conftest.$ac_objext'
10364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365   (eval $ac_try) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; }; then
10369   ac_cv_type_bool=yes
10370 else
10371   echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 ac_cv_type_bool=no
10375 fi
10376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10377 fi
10378 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10379 echo "${ECHO_T}$ac_cv_type_bool" >&6
10380 if test $ac_cv_type_bool = yes; then
10381   :
10382 else
10383
10384 cat >>confdefs.h <<_ACEOF
10385 #define bool char
10386 _ACEOF
10387
10388 fi
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10402 do
10403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10404 echo "$as_me:$LINENO: checking for $ac_func" >&5
10405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10406 if eval "test \"\${$as_ac_var+set}\" = set"; then
10407   echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409   cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h.  */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h.  */
10415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10417 #define $ac_func innocuous_$ac_func
10418
10419 /* System header to define __stub macros and hopefully few prototypes,
10420     which can conflict with char $ac_func (); below.
10421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10422     <limits.h> exists even on freestanding compilers.  */
10423
10424 #ifdef __STDC__
10425 # include <limits.h>
10426 #else
10427 # include <assert.h>
10428 #endif
10429
10430 #undef $ac_func
10431
10432 /* Override any gcc2 internal prototype to avoid an error.  */
10433 #ifdef __cplusplus
10434 extern "C"
10435 {
10436 #endif
10437 /* We use char because int might match the return type of a gcc2
10438    builtin and then its argument prototype would still apply.  */
10439 char $ac_func ();
10440 /* The GNU C library defines this for functions which it implements
10441     to always fail with ENOSYS.  Some functions are actually named
10442     something starting with __ and the normal name is an alias.  */
10443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10444 choke me
10445 #else
10446 char (*f) () = $ac_func;
10447 #endif
10448 #ifdef __cplusplus
10449 }
10450 #endif
10451
10452 int
10453 main ()
10454 {
10455 return f != $ac_func;
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462   (eval $ac_link) 2>conftest.er1
10463   ac_status=$?
10464   grep -v '^ *+' conftest.er1 >conftest.err
10465   rm -f conftest.er1
10466   cat conftest.err >&5
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); } &&
10469          { ac_try='test -z "$ac_c_werror_flag"
10470                          || test ! -s conftest.err'
10471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472   (eval $ac_try) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; } &&
10476          { ac_try='test -s conftest$ac_exeext'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; }; then
10482   eval "$as_ac_var=yes"
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 eval "$as_ac_var=no"
10488 fi
10489 rm -f conftest.err conftest.$ac_objext \
10490       conftest$ac_exeext conftest.$ac_ext
10491 fi
10492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10494 if test `eval echo '${'$as_ac_var'}'` = yes; then
10495   cat >>confdefs.h <<_ACEOF
10496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10497 _ACEOF
10498
10499 fi
10500 done
10501
10502
10503 # ------------------------------------------------------------------
10504
10505 lame_objects=
10506 lame_makefile=
10507 if test "x${DISABLE_LAME}" = "xtrue"; then
10508     echo "*" Disabling lame support...
10509 else
10510     # old lame code at lib/lame
10511     if test -f lib/lame/Makefile.in; then
10512         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"
10513         lame_makefile="lib/lame/Makefile"
10514         CPPFLAGS="$CPPFLAGS -Ilame"
10515         cat >>confdefs.h <<_ACEOF
10516 #define HAVE_LAME 1
10517 _ACEOF
10518
10519     else
10520         if test -d /usr/include/lame; then
10521             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10522         else
10523             if test -d /usr/local/include/lame; then
10524                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10525             fi
10526         fi
10527
10528 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10529 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10530 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533   ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-lmp3lame  $LIBS"
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541
10542 /* Override any gcc2 internal prototype to avoid an error.  */
10543 #ifdef __cplusplus
10544 extern "C"
10545 #endif
10546 /* We use char because int might match the return type of a gcc2
10547    builtin and then its argument prototype would still apply.  */
10548 char lame_init ();
10549 int
10550 main ()
10551 {
10552 lame_init ();
10553   ;
10554   return 0;
10555 }
10556 _ACEOF
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559   (eval $ac_link) 2>conftest.er1
10560   ac_status=$?
10561   grep -v '^ *+' conftest.er1 >conftest.err
10562   rm -f conftest.er1
10563   cat conftest.err >&5
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } &&
10566          { ac_try='test -z "$ac_c_werror_flag"
10567                          || test ! -s conftest.err'
10568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569   (eval $ac_try) 2>&5
10570   ac_status=$?
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); }; } &&
10573          { ac_try='test -s conftest$ac_exeext'
10574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575   (eval $ac_try) 2>&5
10576   ac_status=$?
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); }; }; then
10579   ac_cv_lib_mp3lame_lame_init=yes
10580 else
10581   echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10583
10584 ac_cv_lib_mp3lame_lame_init=no
10585 fi
10586 rm -f conftest.err conftest.$ac_objext \
10587       conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10589 fi
10590 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
10591 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
10592 if test $ac_cv_lib_mp3lame_lame_init = yes; then
10593   cat >>confdefs.h <<_ACEOF
10594 #define HAVE_LIBMP3LAME 1
10595 _ACEOF
10596
10597   LIBS="-lmp3lame $LIBS"
10598
10599 else
10600   NO_LIBMP3LAME=1
10601 fi
10602
10603
10604 for ac_header in lame.h
10605 do
10606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10608   echo "$as_me:$LINENO: checking for $ac_header" >&5
10609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 fi
10613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10615 else
10616   # Is the header compilable?
10617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h.  */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h.  */
10625 $ac_includes_default
10626 #include <$ac_header>
10627 _ACEOF
10628 rm -f conftest.$ac_objext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10630   (eval $ac_compile) 2>conftest.er1
10631   ac_status=$?
10632   grep -v '^ *+' conftest.er1 >conftest.err
10633   rm -f conftest.er1
10634   cat conftest.err >&5
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); } &&
10637          { ac_try='test -z "$ac_c_werror_flag"
10638                          || test ! -s conftest.err'
10639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640   (eval $ac_try) 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); }; } &&
10644          { ac_try='test -s conftest.$ac_objext'
10645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646   (eval $ac_try) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; }; then
10650   ac_header_compiler=yes
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655 ac_header_compiler=no
10656 fi
10657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10659 echo "${ECHO_T}$ac_header_compiler" >&6
10660
10661 # Is the header present?
10662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670 #include <$ac_header>
10671 _ACEOF
10672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10673   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10674   ac_status=$?
10675   grep -v '^ *+' conftest.er1 >conftest.err
10676   rm -f conftest.er1
10677   cat conftest.err >&5
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); } >/dev/null; then
10680   if test -s conftest.err; then
10681     ac_cpp_err=$ac_c_preproc_warn_flag
10682     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10683   else
10684     ac_cpp_err=
10685   fi
10686 else
10687   ac_cpp_err=yes
10688 fi
10689 if test -z "$ac_cpp_err"; then
10690   ac_header_preproc=yes
10691 else
10692   echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10694
10695   ac_header_preproc=no
10696 fi
10697 rm -f conftest.err conftest.$ac_ext
10698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10699 echo "${ECHO_T}$ac_header_preproc" >&6
10700
10701 # So?  What about this header?
10702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10703   yes:no: )
10704     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10708     ac_header_preproc=yes
10709     ;;
10710   no:yes:* )
10711     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10713     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10714 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10715     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10717     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10718 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10721     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10723     (
10724       cat <<\_ASBOX
10725 ## ------------------------------------------ ##
10726 ## Report this to the AC_PACKAGE_NAME lists.  ##
10727 ## ------------------------------------------ ##
10728 _ASBOX
10729     ) |
10730       sed "s/^/$as_me: WARNING:     /" >&2
10731     ;;
10732 esac
10733 echo "$as_me:$LINENO: checking for $ac_header" >&5
10734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10736   echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738   eval "$as_ac_Header=\$ac_header_preproc"
10739 fi
10740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10742
10743 fi
10744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10745   cat >>confdefs.h <<_ACEOF
10746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10747 _ACEOF
10748
10749 fi
10750
10751 done
10752
10753         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
10754             cat >>confdefs.h <<_ACEOF
10755 #define HAVE_LAME 1
10756 _ACEOF
10757
10758         fi
10759     fi
10760 fi
10761
10762
10763 # ------------------------------------------------------------------
10764
10765
10766
10767 for ac_prog in avifile-config
10768 do
10769   # Extract the first word of "$ac_prog", so it can be a program name with args.
10770 set dummy $ac_prog; ac_word=$2
10771 echo "$as_me:$LINENO: checking for $ac_word" >&5
10772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10773 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776   if test -n "$AVIFILE_CONFIG"; then
10777   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10778 else
10779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780 for as_dir in $PATH
10781 do
10782   IFS=$as_save_IFS
10783   test -z "$as_dir" && as_dir=.
10784   for ac_exec_ext in '' $ac_executable_extensions; do
10785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10786     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10788     break 2
10789   fi
10790 done
10791 done
10792
10793 fi
10794 fi
10795 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10796 if test -n "$AVIFILE_CONFIG"; then
10797   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10798 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10799 else
10800   echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6
10802 fi
10803
10804   test -n "$AVIFILE_CONFIG" && break
10805 done
10806
10807
10808 if test "x$AVIFILE_CONFIG" '!=' "x";then
10809     OLDCPPFLAGS="$CPPFLAGS"
10810     #OLDLDFLAGS="$LDFLAGS"
10811     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10812     #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10813
10814
10815 for ac_header in avifile/version.h version.h
10816 do
10817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10819   echo "$as_me:$LINENO: checking for $ac_header" >&5
10820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 fi
10824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10826 else
10827   # Is the header compilable?
10828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h.  */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h.  */
10836 $ac_includes_default
10837 #include <$ac_header>
10838 _ACEOF
10839 rm -f conftest.$ac_objext
10840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10841   (eval $ac_compile) 2>conftest.er1
10842   ac_status=$?
10843   grep -v '^ *+' conftest.er1 >conftest.err
10844   rm -f conftest.er1
10845   cat conftest.err >&5
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); } &&
10848          { ac_try='test -z "$ac_c_werror_flag"
10849                          || test ! -s conftest.err'
10850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851   (eval $ac_try) 2>&5
10852   ac_status=$?
10853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); }; } &&
10855          { ac_try='test -s conftest.$ac_objext'
10856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857   (eval $ac_try) 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; }; then
10861   ac_header_compiler=yes
10862 else
10863   echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866 ac_header_compiler=no
10867 fi
10868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10870 echo "${ECHO_T}$ac_header_compiler" >&6
10871
10872 # Is the header present?
10873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h.  */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h.  */
10881 #include <$ac_header>
10882 _ACEOF
10883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10885   ac_status=$?
10886   grep -v '^ *+' conftest.er1 >conftest.err
10887   rm -f conftest.er1
10888   cat conftest.err >&5
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); } >/dev/null; then
10891   if test -s conftest.err; then
10892     ac_cpp_err=$ac_c_preproc_warn_flag
10893     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10894   else
10895     ac_cpp_err=
10896   fi
10897 else
10898   ac_cpp_err=yes
10899 fi
10900 if test -z "$ac_cpp_err"; then
10901   ac_header_preproc=yes
10902 else
10903   echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10905
10906   ac_header_preproc=no
10907 fi
10908 rm -f conftest.err conftest.$ac_ext
10909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10910 echo "${ECHO_T}$ac_header_preproc" >&6
10911
10912 # So?  What about this header?
10913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10914   yes:no: )
10915     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10919     ac_header_preproc=yes
10920     ;;
10921   no:yes:* )
10922     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10924     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10925 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10926     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10928     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10929 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10932     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10934     (
10935       cat <<\_ASBOX
10936 ## ------------------------------------------ ##
10937 ## Report this to the AC_PACKAGE_NAME lists.  ##
10938 ## ------------------------------------------ ##
10939 _ASBOX
10940     ) |
10941       sed "s/^/$as_me: WARNING:     /" >&2
10942     ;;
10943 esac
10944 echo "$as_me:$LINENO: checking for $ac_header" >&5
10945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949   eval "$as_ac_Header=\$ac_header_preproc"
10950 fi
10951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10953
10954 fi
10955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10956   cat >>confdefs.h <<_ACEOF
10957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10958 _ACEOF
10959
10960 fi
10961
10962 done
10963
10964     #LDFLAGS="$OLDLDFLAGS"
10965     CPPFLAGS="$OLDCPPFLAGS"
10966 fi
10967
10968 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10969 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10970
10971 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10972     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10973 fi
10974 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10975     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10976 fi
10977
10978 cat > conftest.cpp << EOF
10979
10980 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10981 // so we have to introduce them this way
10982 $HAVE_VERSION_H_DEFINE
10983 $HAVE_AVIFILE_VERSION_H_DEFINE
10984
10985 #ifdef HAVE_VERSION_H
10986   #include <version.h>
10987 #endif
10988 #ifdef HAVE_AVIFILE_VERSION_H
10989   #include <avifile/version.h>
10990 #endif
10991
10992 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10993    #include <avifile.h>
10994    #include <aviplay.h>
10995    #include <fourcc.h>
10996    #include <creators.h>
10997    #include <StreamInfo.h>
10998    #define VERSION6
10999 #else
11000    #include <avifile.h>
11001    #include <aviplay.h>
11002    #include <aviutil.h>
11003    #define Width width
11004    #define Height height
11005    #define Data data
11006    #define Bpp bpp
11007 #endif
11008
11009 void test()
11010 {
11011   IAviReadFile* player;
11012   IAviReadStream* astream;
11013   IAviReadStream* vstream;
11014   player = CreateIAviReadFile(0);
11015   astream = player->GetStream(0, AviStream::Audio);
11016   vstream = player->GetStream(0, AviStream::Video);
11017   vstream -> StartStreaming();
11018   astream -> StartStreaming();
11019 #ifndef VERSION6
11020   MainAVIHeader head;
11021   player->GetFileHeader(&head);
11022   head.dwMicroSecPerFrame;
11023   head.dwTotalFrames;
11024   head.dwStreams;
11025   head.dwWidth;
11026   head.dwHeight;
11027   head.dwMicroSecPerFrame;
11028   astream->GetEndPos(),
11029   astream->GetEndTime());
11030   player->StreamCount();
11031 #else
11032   StreamInfo*audioinfo;
11033   StreamInfo*videoinfo;
11034   audioinfo = astream->GetStreamInfo();
11035   videoinfo = vstream->GetStreamInfo();
11036   videoinfo->GetVideoWidth();
11037   videoinfo->GetVideoHeight();
11038   audioinfo->GetAudioSamplesPerSec();
11039   videoinfo->GetFps();
11040 #endif
11041   CImage*img = vstream->GetFrame();
11042   img->ToRGB();
11043   img->Data();
11044   img->Bpp();
11045   img->Width();
11046   img->Height();
11047   WAVEFORMATEX wave;
11048   astream->GetAudioFormatInfo(&wave,0);
11049   uint_t a,b;
11050   astream->ReadFrames(0,0,0,a,b);
11051 }
11052 int main (int argc, char*argv)
11053 {
11054     return 0;
11055 }
11056 EOF
11057
11058 if test "x$AVIFILE_CONFIG" '!=' "x";then
11059     ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
11060     if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11061       echo "$as_me:$LINENO: result: yes" >&5
11062 echo "${ECHO_T}yes" >&6
11063       AVIFILE=true
11064       export AVIFILE
11065       cat >>confdefs.h <<_ACEOF
11066 #define AVIFILE true
11067 _ACEOF
11068
11069     else
11070       echo "configure: failed program was:" >&5
11071       cat conftest.cpp >&5
11072       echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6
11074     fi
11075 else
11076     echo "$as_me:$LINENO: result: no" >&5
11077 echo "${ECHO_T}no" >&6
11078 fi
11079 rm -f conftest*
11080
11081
11082 avi2swf="avi2swf/Makefile"
11083 if test "x${AVIFILE}" != "xtrue"; then
11084  echo "* Couldn't compile the avifile test program."
11085  echo "* Disabling avi2swf tool..."
11086  echo all install uninstall clean: > avi2swf/Makefile
11087  avi2swf=
11088 fi
11089
11090 # ------------------------------------------------------------------
11091
11092 if test "x${UNCOMPRESS}" = "xgzip"; then
11093     cat >>confdefs.h <<_ACEOF
11094 #define USE_GZIP 1
11095 _ACEOF
11096
11097 fi
11098
11099
11100 # ------------------------------------------------------------------
11101
11102
11103 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11104 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11105 # should we support python versions below 2.2?
11106 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
11107     PY_VERSION=2.2
11108 fi
11109 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
11110     PY_VERSION=2.3
11111 fi
11112 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
11113     PY_VERSION=2.4
11114 fi
11115
11116 if test "x$PY_VERSION" "!=" "x"; then
11117     echo "$as_me:$LINENO: result: python$PY_VERSION" >&5
11118 echo "${ECHO_T}python$PY_VERSION" >&6
11119     pythonrfxswf="lib/python/Makefile"
11120     if test "x$PYTHON_LIB" = "x";then
11121         PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11122     fi
11123     if test "x$PYTHON_INCLUDES" = "x";then
11124         PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11125     fi
11126     export PYTHON_INCLUDES PYTHON_LIB
11127
11128
11129     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11130 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11131
11132     cat > conftest.c << EOF
11133 #include <Python.h>
11134 #include <Imaging.h>
11135
11136 int main(int argn, char*argv)
11137 {
11138     return Py_Main(argn, argv);
11139 }
11140 EOF
11141     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11142     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143         echo "$as_me:$LINENO: result: yes" >&5
11144 echo "${ECHO_T}yes" >&6
11145         PYTHON_OK=yes
11146     else
11147         echo "configure: failed program was:" >&5
11148         cat conftest.c >&5
11149         echo "$as_me:$LINENO: result: no" >&5
11150 echo "${ECHO_T}no" >&6
11151     fi
11152     rm -f conftest*
11153 else
11154     echo "$as_me:$LINENO: result: nope" >&5
11155 echo "${ECHO_T}nope" >&6
11156 fi
11157
11158
11159 if test "x$PYTHON_OK" '!=' "xyes";then
11160     echo all install uninstall clean: > lib/python/Makefile
11161     echo "* No usable python installation found"
11162     echo "* Not compiling the python interface"
11163 fi
11164
11165 # ------------------------------------------------------------------
11166
11167 JPEG2SWF='jpeg2swf$(E)'
11168 export JPEG2SWF
11169 PNG2SWF='png2swf$(E)'
11170 export PNG2SWF
11171
11172 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11173   echo "***************************************************"
11174   echo "The following headers/libraries are missing: " ${MISSINGLIBS}
11175   if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11176     echo "Disabling pdf2swf tool..."
11177     rm -f pdf2swf/Makefile
11178     echo all install uninstall clean: > pdf2swf/Makefile
11179   fi
11180   if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11181     echo "Disabling jpeg2swf tool..."
11182     JPEG2SWF=
11183     export JPEG2SWF
11184   fi
11185   if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11186     echo "Disabling png2swf tool..."
11187     PNG2SWF=
11188     export PNG2SWF
11189   fi
11190   if test "x${ZLIBMISSING}" = "xtrue"; then
11191     echo
11192     echo "Warning! Without zlib, you will not be able to read"
11193     echo "or write compressed Flash MX files!"
11194   fi
11195   echo "***************************************************"
11196   FILES="./release Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11197 else
11198   FILES="./release Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11199 fi
11200
11201
11202
11203           ac_config_files="$ac_config_files ${FILES}"
11204
11205 cat >confcache <<\_ACEOF
11206 # This file is a shell script that caches the results of configure
11207 # tests run on this system so they can be shared between configure
11208 # scripts and configure runs, see configure's option --config-cache.
11209 # It is not useful on other systems.  If it contains results you don't
11210 # want to keep, you may remove or edit it.
11211 #
11212 # config.status only pays attention to the cache file if you give it
11213 # the --recheck option to rerun configure.
11214 #
11215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11217 # following values.
11218
11219 _ACEOF
11220
11221 # The following way of writing the cache mishandles newlines in values,
11222 # but we know of no workaround that is simple, portable, and efficient.
11223 # So, don't put newlines in cache variables' values.
11224 # Ultrix sh set writes to stderr and can't be redirected directly,
11225 # and sets the high bit in the cache file unless we assign to the vars.
11226 {
11227   (set) 2>&1 |
11228     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11229     *ac_space=\ *)
11230       # `set' does not quote correctly, so add quotes (double-quote
11231       # substitution turns \\\\ into \\, and sed turns \\ into \).
11232       sed -n \
11233         "s/'/'\\\\''/g;
11234           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11235       ;;
11236     *)
11237       # `set' quotes correctly as required by POSIX, so do not add quotes.
11238       sed -n \
11239         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11240       ;;
11241     esac;
11242 } |
11243   sed '
11244      t clear
11245      : clear
11246      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11247      t end
11248      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11249      : end' >>confcache
11250 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11251   if test -w $cache_file; then
11252     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11253     cat confcache >$cache_file
11254   else
11255     echo "not updating unwritable cache $cache_file"
11256   fi
11257 fi
11258 rm -f confcache
11259
11260 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11261 # Let make expand exec_prefix.
11262 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11263
11264 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11265 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11266 # trailing colons and then remove the whole line if VPATH becomes empty
11267 # (actually we leave an empty line to preserve line numbers).
11268 if test "x$srcdir" = x.; then
11269   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11270 s/:*\$(srcdir):*/:/;
11271 s/:*\${srcdir}:*/:/;
11272 s/:*@srcdir@:*/:/;
11273 s/^\([^=]*=[     ]*\):*/\1/;
11274 s/:*$//;
11275 s/^[^=]*=[       ]*$//;
11276 }'
11277 fi
11278
11279 DEFS=-DHAVE_CONFIG_H
11280
11281 ac_libobjs=
11282 ac_ltlibobjs=
11283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11284   # 1. Remove the extension, and $U if already installed.
11285   ac_i=`echo "$ac_i" |
11286          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11287   # 2. Add them.
11288   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11289   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11290 done
11291 LIBOBJS=$ac_libobjs
11292
11293 LTLIBOBJS=$ac_ltlibobjs
11294
11295
11296
11297 : ${CONFIG_STATUS=./config.status}
11298 ac_clean_files_save=$ac_clean_files
11299 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11300 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11301 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11302 cat >$CONFIG_STATUS <<_ACEOF
11303 #! $SHELL
11304 # Generated by $as_me.
11305 # Run this file to recreate the current configuration.
11306 # Compiler output produced by configure, useful for debugging
11307 # configure, is in config.log if it exists.
11308
11309 debug=false
11310 ac_cs_recheck=false
11311 ac_cs_silent=false
11312 SHELL=\${CONFIG_SHELL-$SHELL}
11313 _ACEOF
11314
11315 cat >>$CONFIG_STATUS <<\_ACEOF
11316 ## --------------------- ##
11317 ## M4sh Initialization.  ##
11318 ## --------------------- ##
11319
11320 # Be Bourne compatible
11321 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11322   emulate sh
11323   NULLCMD=:
11324   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11325   # is contrary to our usage.  Disable this feature.
11326   alias -g '${1+"$@"}'='"$@"'
11327 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11328   set -o posix
11329 fi
11330 DUALCASE=1; export DUALCASE # for MKS sh
11331
11332 # Support unset when possible.
11333 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11334   as_unset=unset
11335 else
11336   as_unset=false
11337 fi
11338
11339
11340 # Work around bugs in pre-3.0 UWIN ksh.
11341 $as_unset ENV MAIL MAILPATH
11342 PS1='$ '
11343 PS2='> '
11344 PS4='+ '
11345
11346 # NLS nuisances.
11347 for as_var in \
11348   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11349   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11350   LC_TELEPHONE LC_TIME
11351 do
11352   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11353     eval $as_var=C; export $as_var
11354   else
11355     $as_unset $as_var
11356   fi
11357 done
11358
11359 # Required to use basename.
11360 if expr a : '\(a\)' >/dev/null 2>&1; then
11361   as_expr=expr
11362 else
11363   as_expr=false
11364 fi
11365
11366 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11367   as_basename=basename
11368 else
11369   as_basename=false
11370 fi
11371
11372
11373 # Name of the executable.
11374 as_me=`$as_basename "$0" ||
11375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11376          X"$0" : 'X\(//\)$' \| \
11377          X"$0" : 'X\(/\)$' \| \
11378          .     : '\(.\)' 2>/dev/null ||
11379 echo X/"$0" |
11380     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11381           /^X\/\(\/\/\)$/{ s//\1/; q; }
11382           /^X\/\(\/\).*/{ s//\1/; q; }
11383           s/.*/./; q'`
11384
11385
11386 # PATH needs CR, and LINENO needs CR and PATH.
11387 # Avoid depending upon Character Ranges.
11388 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11389 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11390 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11391 as_cr_digits='0123456789'
11392 as_cr_alnum=$as_cr_Letters$as_cr_digits
11393
11394 # The user is always right.
11395 if test "${PATH_SEPARATOR+set}" != set; then
11396   echo "#! /bin/sh" >conf$$.sh
11397   echo  "exit 0"   >>conf$$.sh
11398   chmod +x conf$$.sh
11399   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11400     PATH_SEPARATOR=';'
11401   else
11402     PATH_SEPARATOR=:
11403   fi
11404   rm -f conf$$.sh
11405 fi
11406
11407
11408   as_lineno_1=$LINENO
11409   as_lineno_2=$LINENO
11410   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11411   test "x$as_lineno_1" != "x$as_lineno_2" &&
11412   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11413   # Find who we are.  Look in the path if we contain no path at all
11414   # relative or not.
11415   case $0 in
11416     *[\\/]* ) as_myself=$0 ;;
11417     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418 for as_dir in $PATH
11419 do
11420   IFS=$as_save_IFS
11421   test -z "$as_dir" && as_dir=.
11422   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11423 done
11424
11425        ;;
11426   esac
11427   # We did not find ourselves, most probably we were run as `sh COMMAND'
11428   # in which case we are not to be found in the path.
11429   if test "x$as_myself" = x; then
11430     as_myself=$0
11431   fi
11432   if test ! -f "$as_myself"; then
11433     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11434 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11435    { (exit 1); exit 1; }; }
11436   fi
11437   case $CONFIG_SHELL in
11438   '')
11439     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11441 do
11442   IFS=$as_save_IFS
11443   test -z "$as_dir" && as_dir=.
11444   for as_base in sh bash ksh sh5; do
11445          case $as_dir in
11446          /*)
11447            if ("$as_dir/$as_base" -c '
11448   as_lineno_1=$LINENO
11449   as_lineno_2=$LINENO
11450   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11451   test "x$as_lineno_1" != "x$as_lineno_2" &&
11452   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11453              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11454              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11455              CONFIG_SHELL=$as_dir/$as_base
11456              export CONFIG_SHELL
11457              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11458            fi;;
11459          esac
11460        done
11461 done
11462 ;;
11463   esac
11464
11465   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11466   # uniformly replaced by the line number.  The first 'sed' inserts a
11467   # line-number line before each line; the second 'sed' does the real
11468   # work.  The second script uses 'N' to pair each line-number line
11469   # with the numbered line, and appends trailing '-' during
11470   # substitution so that $LINENO is not a special case at line end.
11471   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11472   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11473   sed '=' <$as_myself |
11474     sed '
11475       N
11476       s,$,-,
11477       : loop
11478       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11479       t loop
11480       s,-$,,
11481       s,^['$as_cr_digits']*\n,,
11482     ' >$as_me.lineno &&
11483   chmod +x $as_me.lineno ||
11484     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11485 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11486    { (exit 1); exit 1; }; }
11487
11488   # Don't try to exec as it changes $[0], causing all sort of problems
11489   # (the dirname of $[0] is not the place where we might find the
11490   # original and so on.  Autoconf is especially sensible to this).
11491   . ./$as_me.lineno
11492   # Exit status is that of the last command.
11493   exit
11494 }
11495
11496
11497 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11498   *c*,-n*) ECHO_N= ECHO_C='
11499 ' ECHO_T='      ' ;;
11500   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11501   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11502 esac
11503
11504 if expr a : '\(a\)' >/dev/null 2>&1; then
11505   as_expr=expr
11506 else
11507   as_expr=false
11508 fi
11509
11510 rm -f conf$$ conf$$.exe conf$$.file
11511 echo >conf$$.file
11512 if ln -s conf$$.file conf$$ 2>/dev/null; then
11513   # We could just check for DJGPP; but this test a) works b) is more generic
11514   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11515   if test -f conf$$.exe; then
11516     # Don't use ln at all; we don't have any links
11517     as_ln_s='cp -p'
11518   else
11519     as_ln_s='ln -s'
11520   fi
11521 elif ln conf$$.file conf$$ 2>/dev/null; then
11522   as_ln_s=ln
11523 else
11524   as_ln_s='cp -p'
11525 fi
11526 rm -f conf$$ conf$$.exe conf$$.file
11527
11528 if mkdir -p . 2>/dev/null; then
11529   as_mkdir_p=:
11530 else
11531   test -d ./-p && rmdir ./-p
11532   as_mkdir_p=false
11533 fi
11534
11535 as_executable_p="test -f"
11536
11537 # Sed expression to map a string onto a valid CPP name.
11538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11539
11540 # Sed expression to map a string onto a valid variable name.
11541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11542
11543
11544 # IFS
11545 # We need space, tab and new line, in precisely that order.
11546 as_nl='
11547 '
11548 IFS="   $as_nl"
11549
11550 # CDPATH.
11551 $as_unset CDPATH
11552
11553 exec 6>&1
11554
11555 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11556 # report actual input values of CONFIG_FILES etc. instead of their
11557 # values after options handling.  Logging --version etc. is OK.
11558 exec 5>>config.log
11559 {
11560   echo
11561   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11562 ## Running $as_me. ##
11563 _ASBOX
11564 } >&5
11565 cat >&5 <<_CSEOF
11566
11567 This file was extended by $as_me, which was
11568 generated by GNU Autoconf 2.59.  Invocation command line was
11569
11570   CONFIG_FILES    = $CONFIG_FILES
11571   CONFIG_HEADERS  = $CONFIG_HEADERS
11572   CONFIG_LINKS    = $CONFIG_LINKS
11573   CONFIG_COMMANDS = $CONFIG_COMMANDS
11574   $ $0 $@
11575
11576 _CSEOF
11577 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11578 echo >&5
11579 _ACEOF
11580
11581 # Files that config.status was made for.
11582 if test -n "$ac_config_files"; then
11583   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11584 fi
11585
11586 if test -n "$ac_config_headers"; then
11587   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11588 fi
11589
11590 if test -n "$ac_config_links"; then
11591   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11592 fi
11593
11594 if test -n "$ac_config_commands"; then
11595   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11596 fi
11597
11598 cat >>$CONFIG_STATUS <<\_ACEOF
11599
11600 ac_cs_usage="\
11601 \`$as_me' instantiates files from templates according to the
11602 current configuration.
11603
11604 Usage: $0 [OPTIONS] [FILE]...
11605
11606   -h, --help       print this help, then exit
11607   -V, --version    print version number, then exit
11608   -q, --quiet      do not print progress messages
11609   -d, --debug      don't remove temporary files
11610       --recheck    update $as_me by reconfiguring in the same conditions
11611   --file=FILE[:TEMPLATE]
11612                    instantiate the configuration file FILE
11613   --header=FILE[:TEMPLATE]
11614                    instantiate the configuration header FILE
11615
11616 Configuration files:
11617 $config_files
11618
11619 Configuration headers:
11620 $config_headers
11621
11622 Report bugs to <bug-autoconf@gnu.org>."
11623 _ACEOF
11624
11625 cat >>$CONFIG_STATUS <<_ACEOF
11626 ac_cs_version="\\
11627 config.status
11628 configured by $0, generated by GNU Autoconf 2.59,
11629   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11630
11631 Copyright (C) 2003 Free Software Foundation, Inc.
11632 This config.status script is free software; the Free Software Foundation
11633 gives unlimited permission to copy, distribute and modify it."
11634 srcdir=$srcdir
11635 INSTALL="$INSTALL"
11636 _ACEOF
11637
11638 cat >>$CONFIG_STATUS <<\_ACEOF
11639 # If no file are specified by the user, then we need to provide default
11640 # value.  By we need to know if files were specified by the user.
11641 ac_need_defaults=:
11642 while test $# != 0
11643 do
11644   case $1 in
11645   --*=*)
11646     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11647     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11648     ac_shift=:
11649     ;;
11650   -*)
11651     ac_option=$1
11652     ac_optarg=$2
11653     ac_shift=shift
11654     ;;
11655   *) # This is not an option, so the user has probably given explicit
11656      # arguments.
11657      ac_option=$1
11658      ac_need_defaults=false;;
11659   esac
11660
11661   case $ac_option in
11662   # Handling of the options.
11663 _ACEOF
11664 cat >>$CONFIG_STATUS <<\_ACEOF
11665   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11666     ac_cs_recheck=: ;;
11667   --version | --vers* | -V )
11668     echo "$ac_cs_version"; exit 0 ;;
11669   --he | --h)
11670     # Conflict between --help and --header
11671     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11672 Try \`$0 --help' for more information." >&5
11673 echo "$as_me: error: ambiguous option: $1
11674 Try \`$0 --help' for more information." >&2;}
11675    { (exit 1); exit 1; }; };;
11676   --help | --hel | -h )
11677     echo "$ac_cs_usage"; exit 0 ;;
11678   --debug | --d* | -d )
11679     debug=: ;;
11680   --file | --fil | --fi | --f )
11681     $ac_shift
11682     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11683     ac_need_defaults=false;;
11684   --header | --heade | --head | --hea )
11685     $ac_shift
11686     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11687     ac_need_defaults=false;;
11688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11689   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11690     ac_cs_silent=: ;;
11691
11692   # This is an error.
11693   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11694 Try \`$0 --help' for more information." >&5
11695 echo "$as_me: error: unrecognized option: $1
11696 Try \`$0 --help' for more information." >&2;}
11697    { (exit 1); exit 1; }; } ;;
11698
11699   *) ac_config_targets="$ac_config_targets $1" ;;
11700
11701   esac
11702   shift
11703 done
11704
11705 ac_configure_extra_args=
11706
11707 if $ac_cs_silent; then
11708   exec 6>/dev/null
11709   ac_configure_extra_args="$ac_configure_extra_args --silent"
11710 fi
11711
11712 _ACEOF
11713 cat >>$CONFIG_STATUS <<_ACEOF
11714 if \$ac_cs_recheck; then
11715   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11716   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11717 fi
11718
11719 _ACEOF
11720
11721
11722
11723
11724
11725 cat >>$CONFIG_STATUS <<\_ACEOF
11726 for ac_config_target in $ac_config_targets
11727 do
11728   case "$ac_config_target" in
11729   # Handling of arguments.
11730   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11731   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11732   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11733 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11734    { (exit 1); exit 1; }; };;
11735   esac
11736 done
11737
11738 # If the user did not use the arguments to specify the items to instantiate,
11739 # then the envvar interface is used.  Set only those that are not.
11740 # We use the long form for the default assignment because of an extremely
11741 # bizarre bug on SunOS 4.1.3.
11742 if $ac_need_defaults; then
11743   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11744   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11745 fi
11746
11747 # Have a temporary directory for convenience.  Make it in the build tree
11748 # simply because there is no reason to put it here, and in addition,
11749 # creating and moving files from /tmp can sometimes cause problems.
11750 # Create a temporary directory, and hook for its removal unless debugging.
11751 $debug ||
11752 {
11753   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11754   trap '{ (exit 1); exit 1; }' 1 2 13 15
11755 }
11756
11757 # Create a (secure) tmp directory for tmp files.
11758
11759 {
11760   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11761   test -n "$tmp" && test -d "$tmp"
11762 }  ||
11763 {
11764   tmp=./confstat$$-$RANDOM
11765   (umask 077 && mkdir $tmp)
11766 } ||
11767 {
11768    echo "$me: cannot create a temporary directory in ." >&2
11769    { (exit 1); exit 1; }
11770 }
11771
11772 _ACEOF
11773
11774 cat >>$CONFIG_STATUS <<_ACEOF
11775
11776 #
11777 # CONFIG_FILES section.
11778 #
11779
11780 # No need to generate the scripts if there are no CONFIG_FILES.
11781 # This happens for instance when ./config.status config.h
11782 if test -n "\$CONFIG_FILES"; then
11783   # Protect against being on the right side of a sed subst in config.status.
11784   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11785    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11786 s,@SHELL@,$SHELL,;t t
11787 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11788 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11789 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11790 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11791 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11792 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11793 s,@exec_prefix@,$exec_prefix,;t t
11794 s,@prefix@,$prefix,;t t
11795 s,@program_transform_name@,$program_transform_name,;t t
11796 s,@bindir@,$bindir,;t t
11797 s,@sbindir@,$sbindir,;t t
11798 s,@libexecdir@,$libexecdir,;t t
11799 s,@datadir@,$datadir,;t t
11800 s,@sysconfdir@,$sysconfdir,;t t
11801 s,@sharedstatedir@,$sharedstatedir,;t t
11802 s,@localstatedir@,$localstatedir,;t t
11803 s,@libdir@,$libdir,;t t
11804 s,@includedir@,$includedir,;t t
11805 s,@oldincludedir@,$oldincludedir,;t t
11806 s,@infodir@,$infodir,;t t
11807 s,@mandir@,$mandir,;t t
11808 s,@build_alias@,$build_alias,;t t
11809 s,@host_alias@,$host_alias,;t t
11810 s,@target_alias@,$target_alias,;t t
11811 s,@DEFS@,$DEFS,;t t
11812 s,@ECHO_C@,$ECHO_C,;t t
11813 s,@ECHO_N@,$ECHO_N,;t t
11814 s,@ECHO_T@,$ECHO_T,;t t
11815 s,@LIBS@,$LIBS,;t t
11816 s,@build@,$build,;t t
11817 s,@build_cpu@,$build_cpu,;t t
11818 s,@build_vendor@,$build_vendor,;t t
11819 s,@build_os@,$build_os,;t t
11820 s,@host@,$host,;t t
11821 s,@host_cpu@,$host_cpu,;t t
11822 s,@host_vendor@,$host_vendor,;t t
11823 s,@host_os@,$host_os,;t t
11824 s,@CC@,$CC,;t t
11825 s,@CFLAGS@,$CFLAGS,;t t
11826 s,@LDFLAGS@,$LDFLAGS,;t t
11827 s,@CPPFLAGS@,$CPPFLAGS,;t t
11828 s,@ac_ct_CC@,$ac_ct_CC,;t t
11829 s,@EXEEXT@,$EXEEXT,;t t
11830 s,@OBJEXT@,$OBJEXT,;t t
11831 s,@CXX@,$CXX,;t t
11832 s,@CXXFLAGS@,$CXXFLAGS,;t t
11833 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11834 s,@CPP@,$CPP,;t t
11835 s,@RANLIB@,$RANLIB,;t t
11836 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11837 s,@SET_MAKE@,$SET_MAKE,;t t
11838 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11839 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11840 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11841 s,@LN_S@,$LN_S,;t t
11842 s,@ECHO@,$ECHO,;t t
11843 s,@STRIP@,$STRIP,;t t
11844 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11845 s,@EGREP@,$EGREP,;t t
11846 s,@LIBTOOL@,$LIBTOOL,;t t
11847 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11848 s,@AR@,$AR,;t t
11849 s,@SLEXT@,$SLEXT,;t t
11850 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
11851 s,@target@,$target,;t t
11852 s,@target_cpu@,$target_cpu,;t t
11853 s,@target_vendor@,$target_vendor,;t t
11854 s,@target_os@,$target_os,;t t
11855 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11856 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11857 s,@PACKAGE@,$PACKAGE,;t t
11858 s,@VERSION@,$VERSION,;t t
11859 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11860 s,@lame_objects@,$lame_objects,;t t
11861 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
11862 s,@USE_GZIP@,$USE_GZIP,;t t
11863 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
11864 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
11865 s,@JPEG2SWF@,$JPEG2SWF,;t t
11866 s,@PNG2SWF@,$PNG2SWF,;t t
11867 s,@LIBOBJS@,$LIBOBJS,;t t
11868 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11869 CEOF
11870
11871 _ACEOF
11872
11873   cat >>$CONFIG_STATUS <<\_ACEOF
11874   # Split the substitutions into bite-sized pieces for seds with
11875   # small command number limits, like on Digital OSF/1 and HP-UX.
11876   ac_max_sed_lines=48
11877   ac_sed_frag=1 # Number of current file.
11878   ac_beg=1 # First line for current file.
11879   ac_end=$ac_max_sed_lines # Line after last line for current file.
11880   ac_more_lines=:
11881   ac_sed_cmds=
11882   while $ac_more_lines; do
11883     if test $ac_beg -gt 1; then
11884       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11885     else
11886       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11887     fi
11888     if test ! -s $tmp/subs.frag; then
11889       ac_more_lines=false
11890     else
11891       # The purpose of the label and of the branching condition is to
11892       # speed up the sed processing (if there are no `@' at all, there
11893       # is no need to browse any of the substitutions).
11894       # These are the two extra sed commands mentioned above.
11895       (echo ':t
11896   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11897       if test -z "$ac_sed_cmds"; then
11898         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11899       else
11900         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11901       fi
11902       ac_sed_frag=`expr $ac_sed_frag + 1`
11903       ac_beg=$ac_end
11904       ac_end=`expr $ac_end + $ac_max_sed_lines`
11905     fi
11906   done
11907   if test -z "$ac_sed_cmds"; then
11908     ac_sed_cmds=cat
11909   fi
11910 fi # test -n "$CONFIG_FILES"
11911
11912 _ACEOF
11913 cat >>$CONFIG_STATUS <<\_ACEOF
11914 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11915   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11916   case $ac_file in
11917   - | *:- | *:-:* ) # input from stdin
11918         cat >$tmp/stdin
11919         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11920         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11921   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11922         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11923   * )   ac_file_in=$ac_file.in ;;
11924   esac
11925
11926   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11927   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11929          X"$ac_file" : 'X\(//\)[^/]' \| \
11930          X"$ac_file" : 'X\(//\)$' \| \
11931          X"$ac_file" : 'X\(/\)' \| \
11932          .     : '\(.\)' 2>/dev/null ||
11933 echo X"$ac_file" |
11934     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11935           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11936           /^X\(\/\/\)$/{ s//\1/; q; }
11937           /^X\(\/\).*/{ s//\1/; q; }
11938           s/.*/./; q'`
11939   { if $as_mkdir_p; then
11940     mkdir -p "$ac_dir"
11941   else
11942     as_dir="$ac_dir"
11943     as_dirs=
11944     while test ! -d "$as_dir"; do
11945       as_dirs="$as_dir $as_dirs"
11946       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11948          X"$as_dir" : 'X\(//\)[^/]' \| \
11949          X"$as_dir" : 'X\(//\)$' \| \
11950          X"$as_dir" : 'X\(/\)' \| \
11951          .     : '\(.\)' 2>/dev/null ||
11952 echo X"$as_dir" |
11953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11954           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11955           /^X\(\/\/\)$/{ s//\1/; q; }
11956           /^X\(\/\).*/{ s//\1/; q; }
11957           s/.*/./; q'`
11958     done
11959     test ! -n "$as_dirs" || mkdir $as_dirs
11960   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11961 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11962    { (exit 1); exit 1; }; }; }
11963
11964   ac_builddir=.
11965
11966 if test "$ac_dir" != .; then
11967   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11968   # A "../" for each directory in $ac_dir_suffix.
11969   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11970 else
11971   ac_dir_suffix= ac_top_builddir=
11972 fi
11973
11974 case $srcdir in
11975   .)  # No --srcdir option.  We are building in place.
11976     ac_srcdir=.
11977     if test -z "$ac_top_builddir"; then
11978        ac_top_srcdir=.
11979     else
11980        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11981     fi ;;
11982   [\\/]* | ?:[\\/]* )  # Absolute path.
11983     ac_srcdir=$srcdir$ac_dir_suffix;
11984     ac_top_srcdir=$srcdir ;;
11985   *) # Relative path.
11986     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11987     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11988 esac
11989
11990 # Do not use `cd foo && pwd` to compute absolute paths, because
11991 # the directories may not exist.
11992 case `pwd` in
11993 .) ac_abs_builddir="$ac_dir";;
11994 *)
11995   case "$ac_dir" in
11996   .) ac_abs_builddir=`pwd`;;
11997   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11998   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11999   esac;;
12000 esac
12001 case $ac_abs_builddir in
12002 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12003 *)
12004   case ${ac_top_builddir}. in
12005   .) ac_abs_top_builddir=$ac_abs_builddir;;
12006   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12007   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12008   esac;;
12009 esac
12010 case $ac_abs_builddir in
12011 .) ac_abs_srcdir=$ac_srcdir;;
12012 *)
12013   case $ac_srcdir in
12014   .) ac_abs_srcdir=$ac_abs_builddir;;
12015   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12016   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12017   esac;;
12018 esac
12019 case $ac_abs_builddir in
12020 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12021 *)
12022   case $ac_top_srcdir in
12023   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12024   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12025   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12026   esac;;
12027 esac
12028
12029
12030   case $INSTALL in
12031   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12032   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12033   esac
12034
12035   if test x"$ac_file" != x-; then
12036     { echo "$as_me:$LINENO: creating $ac_file" >&5
12037 echo "$as_me: creating $ac_file" >&6;}
12038     rm -f "$ac_file"
12039   fi
12040   # Let's still pretend it is `configure' which instantiates (i.e., don't
12041   # use $as_me), people would be surprised to read:
12042   #    /* config.h.  Generated by config.status.  */
12043   if test x"$ac_file" = x-; then
12044     configure_input=
12045   else
12046     configure_input="$ac_file.  "
12047   fi
12048   configure_input=$configure_input"Generated from `echo $ac_file_in |
12049                                      sed 's,.*/,,'` by configure."
12050
12051   # First look for the input files in the build tree, otherwise in the
12052   # src tree.
12053   ac_file_inputs=`IFS=:
12054     for f in $ac_file_in; do
12055       case $f in
12056       -) echo $tmp/stdin ;;
12057       [\\/$]*)
12058          # Absolute (can't be DOS-style, as IFS=:)
12059          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12060 echo "$as_me: error: cannot find input file: $f" >&2;}
12061    { (exit 1); exit 1; }; }
12062          echo "$f";;
12063       *) # Relative
12064          if test -f "$f"; then
12065            # Build tree
12066            echo "$f"
12067          elif test -f "$srcdir/$f"; then
12068            # Source tree
12069            echo "$srcdir/$f"
12070          else
12071            # /dev/null tree
12072            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12073 echo "$as_me: error: cannot find input file: $f" >&2;}
12074    { (exit 1); exit 1; }; }
12075          fi;;
12076       esac
12077     done` || { (exit 1); exit 1; }
12078 _ACEOF
12079 cat >>$CONFIG_STATUS <<_ACEOF
12080   sed "$ac_vpsub
12081 $extrasub
12082 _ACEOF
12083 cat >>$CONFIG_STATUS <<\_ACEOF
12084 :t
12085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12086 s,@configure_input@,$configure_input,;t t
12087 s,@srcdir@,$ac_srcdir,;t t
12088 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12089 s,@top_srcdir@,$ac_top_srcdir,;t t
12090 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12091 s,@builddir@,$ac_builddir,;t t
12092 s,@abs_builddir@,$ac_abs_builddir,;t t
12093 s,@top_builddir@,$ac_top_builddir,;t t
12094 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12095 s,@INSTALL@,$ac_INSTALL,;t t
12096 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12097   rm -f $tmp/stdin
12098   if test x"$ac_file" != x-; then
12099     mv $tmp/out $ac_file
12100   else
12101     cat $tmp/out
12102     rm -f $tmp/out
12103   fi
12104
12105 done
12106 _ACEOF
12107 cat >>$CONFIG_STATUS <<\_ACEOF
12108
12109 #
12110 # CONFIG_HEADER section.
12111 #
12112
12113 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12114 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12115 #
12116 # ac_d sets the value in "#define NAME VALUE" lines.
12117 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12118 ac_dB='[         ].*$,\1#\2'
12119 ac_dC=' '
12120 ac_dD=',;t'
12121 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12122 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12123 ac_uB='$,\1#\2define\3'
12124 ac_uC=' '
12125 ac_uD=',;t'
12126
12127 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12128   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12129   case $ac_file in
12130   - | *:- | *:-:* ) # input from stdin
12131         cat >$tmp/stdin
12132         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12133         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12134   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12135         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12136   * )   ac_file_in=$ac_file.in ;;
12137   esac
12138
12139   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12140 echo "$as_me: creating $ac_file" >&6;}
12141
12142   # First look for the input files in the build tree, otherwise in the
12143   # src tree.
12144   ac_file_inputs=`IFS=:
12145     for f in $ac_file_in; do
12146       case $f in
12147       -) echo $tmp/stdin ;;
12148       [\\/$]*)
12149          # Absolute (can't be DOS-style, as IFS=:)
12150          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12151 echo "$as_me: error: cannot find input file: $f" >&2;}
12152    { (exit 1); exit 1; }; }
12153          # Do quote $f, to prevent DOS paths from being IFS'd.
12154          echo "$f";;
12155       *) # Relative
12156          if test -f "$f"; then
12157            # Build tree
12158            echo "$f"
12159          elif test -f "$srcdir/$f"; then
12160            # Source tree
12161            echo "$srcdir/$f"
12162          else
12163            # /dev/null tree
12164            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12165 echo "$as_me: error: cannot find input file: $f" >&2;}
12166    { (exit 1); exit 1; }; }
12167          fi;;
12168       esac
12169     done` || { (exit 1); exit 1; }
12170   # Remove the trailing spaces.
12171   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12172
12173 _ACEOF
12174
12175 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12176 # `conftest.undefs', that substitutes the proper values into
12177 # config.h.in to produce config.h.  The first handles `#define'
12178 # templates, and the second `#undef' templates.
12179 # And first: Protect against being on the right side of a sed subst in
12180 # config.status.  Protect against being in an unquoted here document
12181 # in config.status.
12182 rm -f conftest.defines conftest.undefs
12183 # Using a here document instead of a string reduces the quoting nightmare.
12184 # Putting comments in sed scripts is not portable.
12185 #
12186 # `end' is used to avoid that the second main sed command (meant for
12187 # 0-ary CPP macros) applies to n-ary macro definitions.
12188 # See the Autoconf documentation for `clear'.
12189 cat >confdef2sed.sed <<\_ACEOF
12190 s/[\\&,]/\\&/g
12191 s,[\\$`],\\&,g
12192 t clear
12193 : clear
12194 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12195 t end
12196 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12197 : end
12198 _ACEOF
12199 # If some macros were called several times there might be several times
12200 # the same #defines, which is useless.  Nevertheless, we may not want to
12201 # sort them, since we want the *last* AC-DEFINE to be honored.
12202 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12203 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12204 rm -f confdef2sed.sed
12205
12206 # This sed command replaces #undef with comments.  This is necessary, for
12207 # example, in the case of _POSIX_SOURCE, which is predefined and required
12208 # on some systems where configure will not decide to define it.
12209 cat >>conftest.undefs <<\_ACEOF
12210 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12211 _ACEOF
12212
12213 # Break up conftest.defines because some shells have a limit on the size
12214 # of here documents, and old seds have small limits too (100 cmds).
12215 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12216 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12217 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12218 echo '  :' >>$CONFIG_STATUS
12219 rm -f conftest.tail
12220 while grep . conftest.defines >/dev/null
12221 do
12222   # Write a limited-size here document to $tmp/defines.sed.
12223   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12224   # Speed up: don't consider the non `#define' lines.
12225   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12226   # Work around the forget-to-reset-the-flag bug.
12227   echo 't clr' >>$CONFIG_STATUS
12228   echo ': clr' >>$CONFIG_STATUS
12229   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12230   echo 'CEOF
12231   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12232   rm -f $tmp/in
12233   mv $tmp/out $tmp/in
12234 ' >>$CONFIG_STATUS
12235   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12236   rm -f conftest.defines
12237   mv conftest.tail conftest.defines
12238 done
12239 rm -f conftest.defines
12240 echo '  fi # grep' >>$CONFIG_STATUS
12241 echo >>$CONFIG_STATUS
12242
12243 # Break up conftest.undefs because some shells have a limit on the size
12244 # of here documents, and old seds have small limits too (100 cmds).
12245 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12246 rm -f conftest.tail
12247 while grep . conftest.undefs >/dev/null
12248 do
12249   # Write a limited-size here document to $tmp/undefs.sed.
12250   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12251   # Speed up: don't consider the non `#undef'
12252   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12253   # Work around the forget-to-reset-the-flag bug.
12254   echo 't clr' >>$CONFIG_STATUS
12255   echo ': clr' >>$CONFIG_STATUS
12256   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12257   echo 'CEOF
12258   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12259   rm -f $tmp/in
12260   mv $tmp/out $tmp/in
12261 ' >>$CONFIG_STATUS
12262   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12263   rm -f conftest.undefs
12264   mv conftest.tail conftest.undefs
12265 done
12266 rm -f conftest.undefs
12267
12268 cat >>$CONFIG_STATUS <<\_ACEOF
12269   # Let's still pretend it is `configure' which instantiates (i.e., don't
12270   # use $as_me), people would be surprised to read:
12271   #    /* config.h.  Generated by config.status.  */
12272   if test x"$ac_file" = x-; then
12273     echo "/* Generated by configure.  */" >$tmp/config.h
12274   else
12275     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12276   fi
12277   cat $tmp/in >>$tmp/config.h
12278   rm -f $tmp/in
12279   if test x"$ac_file" != x-; then
12280     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12281       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12282 echo "$as_me: $ac_file is unchanged" >&6;}
12283     else
12284       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12286          X"$ac_file" : 'X\(//\)[^/]' \| \
12287          X"$ac_file" : 'X\(//\)$' \| \
12288          X"$ac_file" : 'X\(/\)' \| \
12289          .     : '\(.\)' 2>/dev/null ||
12290 echo X"$ac_file" |
12291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12292           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12293           /^X\(\/\/\)$/{ s//\1/; q; }
12294           /^X\(\/\).*/{ s//\1/; q; }
12295           s/.*/./; q'`
12296       { if $as_mkdir_p; then
12297     mkdir -p "$ac_dir"
12298   else
12299     as_dir="$ac_dir"
12300     as_dirs=
12301     while test ! -d "$as_dir"; do
12302       as_dirs="$as_dir $as_dirs"
12303       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12305          X"$as_dir" : 'X\(//\)[^/]' \| \
12306          X"$as_dir" : 'X\(//\)$' \| \
12307          X"$as_dir" : 'X\(/\)' \| \
12308          .     : '\(.\)' 2>/dev/null ||
12309 echo X"$as_dir" |
12310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12311           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12312           /^X\(\/\/\)$/{ s//\1/; q; }
12313           /^X\(\/\).*/{ s//\1/; q; }
12314           s/.*/./; q'`
12315     done
12316     test ! -n "$as_dirs" || mkdir $as_dirs
12317   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12318 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12319    { (exit 1); exit 1; }; }; }
12320
12321       rm -f $ac_file
12322       mv $tmp/config.h $ac_file
12323     fi
12324   else
12325     cat $tmp/config.h
12326     rm -f $tmp/config.h
12327   fi
12328 done
12329 _ACEOF
12330
12331 cat >>$CONFIG_STATUS <<\_ACEOF
12332
12333 { (exit 0); exit 0; }
12334 _ACEOF
12335 chmod +x $CONFIG_STATUS
12336 ac_clean_files=$ac_clean_files_save
12337
12338
12339 # configure is writing to config.log, and then calls config.status.
12340 # config.status does its own redirection, appending to config.log.
12341 # Unfortunately, on DOS this fails, as config.log is still kept open
12342 # by configure, so config.status won't be able to write to it; its
12343 # output is simply discarded.  So we exec the FD to /dev/null,
12344 # effectively closing config.log, so it can be properly (re)opened and
12345 # appended to by config.status.  When coming back to configure, we
12346 # need to make the FD available again.
12347 if test "$no_create" != yes; then
12348   ac_cs_success=:
12349   ac_config_status_args=
12350   test "$silent" = yes &&
12351     ac_config_status_args="$ac_config_status_args --quiet"
12352   exec 5>/dev/null
12353   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12354   exec 5>>config.log
12355   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12356   # would make configure fail if this is the last instruction.
12357   $ac_cs_success || { (exit 1); exit 1; }
12358 fi
12359
12360
12361 if test "x${srcdir}" != "x."; then
12362     echo "Warning: --srcdir is not supported"
12363 fi