Generated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Find the correct PATH separator.  Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247   UNAME=${UNAME-`uname 2>/dev/null`}
248   case X$UNAME in
249     *-DOS) lt_cv_sys_path_separator=';' ;;
250     *)     lt_cv_sys_path_separator=':' ;;
251   esac
252   PATH_SEPARATOR=$lt_cv_sys_path_separator
253 fi
254
255
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
258
259 case X$ECHO in
260 X*--fallback-echo)
261   # Remove one level of quotation (which was required for Make).
262   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263   ;;
264 esac
265
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268   # Discard the --no-reexec flag, and continue.
269   shift
270 elif test "X$1" = X--fallback-echo; then
271   # Avoid inline document here, it may be left over
272   :
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274   # Yippee, $echo works!
275   :
276 else
277   # Restart under the correct shell.
278   exec $SHELL "$0" --no-reexec ${1+"$@"}
279 fi
280
281 if test "X$1" = X--fallback-echo; then
282   # used as fallback echo
283   shift
284   cat <<EOF
285
286 EOF
287   exit 0
288 fi
289
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300        echo_test_string="`eval $cmd`" &&
301        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302     then
303       break
304     fi
305   done
306 fi
307
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310    test "X$echo_testing_string" = "X$echo_test_string"; then
311   :
312 else
313   # The Solaris, AIX, and Digital Unix default echo programs unquote
314   # backslashes.  This makes it impossible to quote backslashes using
315   #   echo "$something" | sed 's/\\/\\\\/g'
316   #
317   # So, first we look for a working echo in the user's PATH.
318
319   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320   for dir in $PATH /usr/ucb; do
321     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       echo="$dir/echo"
326       break
327     fi
328   done
329   IFS="$save_ifs"
330
331   if test "X$echo" = Xecho; then
332     # We didn't find a better echo, so look for alternatives.
333     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335        test "X$echo_testing_string" = "X$echo_test_string"; then
336       # This shell has a builtin print -r that does the trick.
337       echo='print -r'
338     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339          test "X$CONFIG_SHELL" != X/bin/ksh; then
340       # If we have ksh, try running configure again with it.
341       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342       export ORIGINAL_CONFIG_SHELL
343       CONFIG_SHELL=/bin/ksh
344       export CONFIG_SHELL
345       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346     else
347       # Try using printf.
348       echo='printf %s\n'
349       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351          test "X$echo_testing_string" = "X$echo_test_string"; then
352         # Cool, printf works
353         :
354       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359         export CONFIG_SHELL
360         SHELL="$CONFIG_SHELL"
361         export SHELL
362         echo="$CONFIG_SHELL $0 --fallback-echo"
363       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364            test "X$echo_testing_string" = 'X\t' &&
365            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366            test "X$echo_testing_string" = "X$echo_test_string"; then
367         echo="$CONFIG_SHELL $0 --fallback-echo"
368       else
369         # maybe with a smaller string...
370         prev=:
371
372         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374           then
375             break
376           fi
377           prev="$cmd"
378         done
379
380         if test "$prev" != 'sed 50q "$0"'; then
381           echo_test_string=`eval $prev`
382           export echo_test_string
383           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384         else
385           # Oops.  We lost completely, so just stick with echo.
386           echo=echo
387         fi
388       fi
389     fi
390   fi
391 fi
392 fi
393
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 fi
400
401
402
403 # Name of the host.
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408 exec 6>&1
409
410 #
411 # Initializations.
412 #
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
419 SHELL=${CONFIG_SHELL-/bin/sh}
420
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete.  It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
425
426 # Identity of this package.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
432
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 #  include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 #  include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 #  include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG VIDEO_LIBS VIDEO_CFLAGS USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515   # If the previous option needs an argument, assign it.
516   if test -n "$ac_prev"; then
517     eval "$ac_prev=\$ac_option"
518     ac_prev=
519     continue
520   fi
521
522   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524   # Accept the important Cygnus configure options, so we can diagnose typos.
525
526   case $ac_option in
527
528   -bindir | --bindir | --bindi | --bind | --bin | --bi)
529     ac_prev=bindir ;;
530   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531     bindir=$ac_optarg ;;
532
533   -build | --build | --buil | --bui | --bu)
534     ac_prev=build_alias ;;
535   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536     build_alias=$ac_optarg ;;
537
538   -cache-file | --cache-file | --cache-fil | --cache-fi \
539   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540     ac_prev=cache_file ;;
541   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543     cache_file=$ac_optarg ;;
544
545   --config-cache | -C)
546     cache_file=config.cache ;;
547
548   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549     ac_prev=datadir ;;
550   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551   | --da=*)
552     datadir=$ac_optarg ;;
553
554   -disable-* | --disable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     eval "enable_$ac_feature=no" ;;
562
563   -enable-* | --enable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     case $ac_option in
571       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572       *) ac_optarg=yes ;;
573     esac
574     eval "enable_$ac_feature='$ac_optarg'" ;;
575
576   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578   | --exec | --exe | --ex)
579     ac_prev=exec_prefix ;;
580   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582   | --exec=* | --exe=* | --ex=*)
583     exec_prefix=$ac_optarg ;;
584
585   -gas | --gas | --ga | --g)
586     # Obsolete; use --with-gas.
587     with_gas=yes ;;
588
589   -help | --help | --hel | --he | -h)
590     ac_init_help=long ;;
591   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592     ac_init_help=recursive ;;
593   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594     ac_init_help=short ;;
595
596   -host | --host | --hos | --ho)
597     ac_prev=host_alias ;;
598   -host=* | --host=* | --hos=* | --ho=*)
599     host_alias=$ac_optarg ;;
600
601   -includedir | --includedir | --includedi | --included | --include \
602   | --includ | --inclu | --incl | --inc)
603     ac_prev=includedir ;;
604   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605   | --includ=* | --inclu=* | --incl=* | --inc=*)
606     includedir=$ac_optarg ;;
607
608   -infodir | --infodir | --infodi | --infod | --info | --inf)
609     ac_prev=infodir ;;
610   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611     infodir=$ac_optarg ;;
612
613   -libdir | --libdir | --libdi | --libd)
614     ac_prev=libdir ;;
615   -libdir=* | --libdir=* | --libdi=* | --libd=*)
616     libdir=$ac_optarg ;;
617
618   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619   | --libexe | --libex | --libe)
620     ac_prev=libexecdir ;;
621   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622   | --libexe=* | --libex=* | --libe=*)
623     libexecdir=$ac_optarg ;;
624
625   -localstatedir | --localstatedir | --localstatedi | --localstated \
626   | --localstate | --localstat | --localsta | --localst \
627   | --locals | --local | --loca | --loc | --lo)
628     ac_prev=localstatedir ;;
629   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632     localstatedir=$ac_optarg ;;
633
634   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635     ac_prev=mandir ;;
636   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637     mandir=$ac_optarg ;;
638
639   -nfp | --nfp | --nf)
640     # Obsolete; use --without-fp.
641     with_fp=no ;;
642
643   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644   | --no-cr | --no-c | -n)
645     no_create=yes ;;
646
647   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649     no_recursion=yes ;;
650
651   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653   | --oldin | --oldi | --old | --ol | --o)
654     ac_prev=oldincludedir ;;
655   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658     oldincludedir=$ac_optarg ;;
659
660   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661     ac_prev=prefix ;;
662   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663     prefix=$ac_optarg ;;
664
665   -program-prefix | --program-prefix | --program-prefi | --program-pref \
666   | --program-pre | --program-pr | --program-p)
667     ac_prev=program_prefix ;;
668   -program-prefix=* | --program-prefix=* | --program-prefi=* \
669   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670     program_prefix=$ac_optarg ;;
671
672   -program-suffix | --program-suffix | --program-suffi | --program-suff \
673   | --program-suf | --program-su | --program-s)
674     ac_prev=program_suffix ;;
675   -program-suffix=* | --program-suffix=* | --program-suffi=* \
676   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677     program_suffix=$ac_optarg ;;
678
679   -program-transform-name | --program-transform-name \
680   | --program-transform-nam | --program-transform-na \
681   | --program-transform-n | --program-transform- \
682   | --program-transform | --program-transfor \
683   | --program-transfo | --program-transf \
684   | --program-trans | --program-tran \
685   | --progr-tra | --program-tr | --program-t)
686     ac_prev=program_transform_name ;;
687   -program-transform-name=* | --program-transform-name=* \
688   | --program-transform-nam=* | --program-transform-na=* \
689   | --program-transform-n=* | --program-transform-=* \
690   | --program-transform=* | --program-transfor=* \
691   | --program-transfo=* | --program-transf=* \
692   | --program-trans=* | --program-tran=* \
693   | --progr-tra=* | --program-tr=* | --program-t=*)
694     program_transform_name=$ac_optarg ;;
695
696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697   | -silent | --silent | --silen | --sile | --sil)
698     silent=yes ;;
699
700   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701     ac_prev=sbindir ;;
702   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703   | --sbi=* | --sb=*)
704     sbindir=$ac_optarg ;;
705
706   -sharedstatedir | --sharedstatedir | --sharedstatedi \
707   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708   | --sharedst | --shareds | --shared | --share | --shar \
709   | --sha | --sh)
710     ac_prev=sharedstatedir ;;
711   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714   | --sha=* | --sh=*)
715     sharedstatedir=$ac_optarg ;;
716
717   -site | --site | --sit)
718     ac_prev=site ;;
719   -site=* | --site=* | --sit=*)
720     site=$ac_optarg ;;
721
722   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723     ac_prev=srcdir ;;
724   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725     srcdir=$ac_optarg ;;
726
727   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728   | --syscon | --sysco | --sysc | --sys | --sy)
729     ac_prev=sysconfdir ;;
730   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732     sysconfdir=$ac_optarg ;;
733
734   -target | --target | --targe | --targ | --tar | --ta | --t)
735     ac_prev=target_alias ;;
736   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737     target_alias=$ac_optarg ;;
738
739   -v | -verbose | --verbose | --verbos | --verbo | --verb)
740     verbose=yes ;;
741
742   -version | --version | --versio | --versi | --vers | -V)
743     ac_init_version=: ;;
744
745   -with-* | --with-*)
746     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747     # Reject names that are not valid shell variable names.
748     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749       { echo "$as_me: error: invalid package name: $ac_package" >&2
750    { (exit 1); exit 1; }; }
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case $ac_option in
753       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_$ac_package='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760     # Reject names that are not valid shell variable names.
761     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762       { echo "$as_me: error: invalid package name: $ac_package" >&2
763    { (exit 1); exit 1; }; }
764     ac_package=`echo $ac_package | sed 's/-/_/g'`
765     eval "with_$ac_package=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes=$ac_optarg ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries=$ac_optarg ;;
784
785   -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787    { (exit 1); exit 1; }; }
788     ;;
789
790   *=*)
791     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795    { (exit 1); exit 1; }; }
796     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797     eval "$ac_envvar='$ac_optarg'"
798     export $ac_envvar ;;
799
800   *)
801     # FIXME: should be removed in autoconf 3.0.
802     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806     ;;
807
808   esac
809 done
810
811 if test -n "$ac_prev"; then
812   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813   { echo "$as_me: error: missing argument to $ac_option" >&2
814    { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820   eval ac_val=$`echo $ac_var`
821   case $ac_val in
822     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824    { (exit 1); exit 1; }; };;
825   esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830               localstatedir libdir includedir oldincludedir infodir mandir
831 do
832   eval ac_val=$`echo $ac_var`
833   case $ac_val in
834     [\\/$]* | ?:[\\/]* ) ;;
835     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836    { (exit 1); exit 1; }; };;
837   esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849   if test "x$build_alias" = x; then
850     cross_compiling=maybe
851     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852     If a cross compiler is detected then cross compile mode will be used." >&2
853   elif test "x$build_alias" != "x$host_alias"; then
854     cross_compiling=yes
855   fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866   ac_srcdir_defaulted=yes
867   # Try the directory containing this script, then its parent.
868   ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870          X"$0" : 'X\(//\)[^/]' \| \
871          X"$0" : 'X\(//\)$' \| \
872          X"$0" : 'X\(/\)' \| \
873          .     : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877           /^X\(\/\/\)$/{ s//\1/; q; }
878           /^X\(\/\).*/{ s//\1/; q; }
879           s/.*/./; q'`
880   srcdir=$ac_confdir
881   if test ! -r $srcdir/$ac_unique_file; then
882     srcdir=..
883   fi
884 else
885   ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888   if test "$ac_srcdir_defaulted" = yes; then
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890    { (exit 1); exit 1; }; }
891   else
892     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893    { (exit 1); exit 1; }; }
894   fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898    { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940
941 #
942 # Report the --help message.
943 #
944 if test "$ac_init_help" = "long"; then
945   # Omit some internal or obsolete options to make the list less imposing.
946   # This message is too long to be a string in the A/UX 3.1 sh.
947   cat <<_ACEOF
948 \`configure' configures this package to adapt to many kinds of systems.
949
950 Usage: $0 [OPTION]... [VAR=VALUE]...
951
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE.  See below for descriptions of some of the useful variables.
954
955 Defaults for the options are specified in brackets.
956
957 Configuration:
958   -h, --help              display this help and exit
959       --help=short        display options specific to this package
960       --help=recursive    display the short help of all the included packages
961   -V, --version           display version information and exit
962   -q, --quiet, --silent   do not print \`checking...' messages
963       --cache-file=FILE   cache test results in FILE [disabled]
964   -C, --config-cache      alias for \`--cache-file=config.cache'
965   -n, --no-create         do not create output files
966       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
967
968 _ACEOF
969
970   cat <<_ACEOF
971 Installation directories:
972   --prefix=PREFIX         install architecture-independent files in PREFIX
973                           [$ac_default_prefix]
974   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
975                           [PREFIX]
976
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
981
982 For better control, use the options below.
983
984 Fine tuning of the installation directories:
985   --bindir=DIR           user executables [EPREFIX/bin]
986   --sbindir=DIR          system admin executables [EPREFIX/sbin]
987   --libexecdir=DIR       program executables [EPREFIX/libexec]
988   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
989   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
990   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
991   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
992   --libdir=DIR           object code libraries [EPREFIX/lib]
993   --includedir=DIR       C header files [PREFIX/include]
994   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
995   --infodir=DIR          info documentation [PREFIX/info]
996   --mandir=DIR           man documentation [PREFIX/man]
997 _ACEOF
998
999   cat <<\_ACEOF
1000
1001 Program names:
1002   --program-prefix=PREFIX            prepend PREFIX to installed program names
1003   --program-suffix=SUFFIX            append SUFFIX to installed program names
1004   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1005
1006 System types:
1007   --build=BUILD     configure for building on BUILD [guessed]
1008   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1009   --target=TARGET   configure for building compilers for TARGET [HOST]
1010 _ACEOF
1011 fi
1012
1013 if test -n "$ac_init_help"; then
1014
1015   cat <<\_ACEOF
1016
1017 Optional Features:
1018   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1019   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1020   --enable-checkmem       turn on ccmalloc debugging
1021   --enable-debug          turn on debugging
1022   --enable-warnings        turn on compiler warnings
1023   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1024   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1025   --enable-shared=PKGS  build shared libraries default=yes
1026   --enable-static=PKGS  build static libraries default=yes
1027   --enable-fast-install=PKGS  optimize for fast installation default=yes
1028   --disable-libtool-lock  avoid locking (might break parallel builds)
1029
1030 Optional Packages:
1031   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1032   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1033   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1034   --with-pic              try to use only PIC/non-PIC objects default=use both
1035
1036 Some influential environment variables:
1037   CC          C compiler command
1038   CFLAGS      C compiler flags
1039   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1040               nonstandard directory <lib dir>
1041   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042               headers in a nonstandard directory <include dir>
1043   CXX         C++ compiler command
1044   CXXFLAGS    C++ compiler flags
1045   CPP         C preprocessor
1046
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1049
1050 _ACEOF
1051 fi
1052
1053 if test "$ac_init_help" = "recursive"; then
1054   # If there are subdirs, report their specific --help.
1055   ac_popdir=`pwd`
1056   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057     test -d $ac_dir || continue
1058     ac_builddir=.
1059
1060 if test "$ac_dir" != .; then
1061   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062   # A "../" for each directory in $ac_dir_suffix.
1063   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065   ac_dir_suffix= ac_top_builddir=
1066 fi
1067
1068 case $srcdir in
1069   .)  # No --srcdir option.  We are building in place.
1070     ac_srcdir=.
1071     if test -z "$ac_top_builddir"; then
1072        ac_top_srcdir=.
1073     else
1074        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075     fi ;;
1076   [\\/]* | ?:[\\/]* )  # Absolute path.
1077     ac_srcdir=$srcdir$ac_dir_suffix;
1078     ac_top_srcdir=$srcdir ;;
1079   *) # Relative path.
1080     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1083
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1086 case `pwd` in
1087 .) ac_abs_builddir="$ac_dir";;
1088 *)
1089   case "$ac_dir" in
1090   .) ac_abs_builddir=`pwd`;;
1091   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093   esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 *)
1098   case ${ac_top_builddir}. in
1099   .) ac_abs_top_builddir=$ac_abs_builddir;;
1100   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102   esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1106 *)
1107   case $ac_srcdir in
1108   .) ac_abs_srcdir=$ac_abs_builddir;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 *)
1116   case $ac_top_srcdir in
1117   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120   esac;;
1121 esac
1122
1123     cd $ac_dir
1124     # Check for guested configure; otherwise get Cygnus style configure.
1125     if test -f $ac_srcdir/configure.gnu; then
1126       echo
1127       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1128     elif test -f $ac_srcdir/configure; then
1129       echo
1130       $SHELL $ac_srcdir/configure  --help=recursive
1131     elif test -f $ac_srcdir/configure.ac ||
1132            test -f $ac_srcdir/configure.in; then
1133       echo
1134       $ac_configure --help
1135     else
1136       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137     fi
1138     cd $ac_popdir
1139   done
1140 fi
1141
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1144   cat <<\_ACEOF
1145
1146 Copyright (C) 2003 Free Software Foundation, Inc.
1147 This configure script is free software; the Free Software Foundation
1148 gives unlimited permission to copy, distribute and modify it.
1149 _ACEOF
1150   exit 0
1151 fi
1152 exec 5>config.log
1153 cat >&5 <<_ACEOF
1154 This file contains any messages produced by compilers while
1155 running configure, to aid debugging if configure makes a mistake.
1156
1157 It was created by $as_me, which was
1158 generated by GNU Autoconf 2.59.  Invocation command line was
1159
1160   $ $0 $@
1161
1162 _ACEOF
1163 {
1164 cat <<_ASUNAME
1165 ## --------- ##
1166 ## Platform. ##
1167 ## --------- ##
1168
1169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1177
1178 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1179 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1182 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1183 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1184 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1185
1186 _ASUNAME
1187
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 for as_dir in $PATH
1190 do
1191   IFS=$as_save_IFS
1192   test -z "$as_dir" && as_dir=.
1193   echo "PATH: $as_dir"
1194 done
1195
1196 } >&5
1197
1198 cat >&5 <<_ACEOF
1199
1200
1201 ## ----------- ##
1202 ## Core tests. ##
1203 ## ----------- ##
1204
1205 _ACEOF
1206
1207
1208 # Keep a trace of the command line.
1209 # Strip out --no-create and --no-recursion so they do not pile up.
1210 # Strip out --silent because we don't want to record it for future runs.
1211 # Also quote any args containing shell meta-characters.
1212 # Make two passes to allow for proper duplicate-argument suppression.
1213 ac_configure_args=
1214 ac_configure_args0=
1215 ac_configure_args1=
1216 ac_sep=
1217 ac_must_keep_next=false
1218 for ac_pass in 1 2
1219 do
1220   for ac_arg
1221   do
1222     case $ac_arg in
1223     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225     | -silent | --silent | --silen | --sile | --sil)
1226       continue ;;
1227     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229     esac
1230     case $ac_pass in
1231     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232     2)
1233       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234       if test $ac_must_keep_next = true; then
1235         ac_must_keep_next=false # Got value, back to normal.
1236       else
1237         case $ac_arg in
1238           *=* | --config-cache | -C | -disable-* | --disable-* \
1239           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241           | -with-* | --with-* | -without-* | --without-* | --x)
1242             case "$ac_configure_args0 " in
1243               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244             esac
1245             ;;
1246           -* ) ac_must_keep_next=true ;;
1247         esac
1248       fi
1249       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250       # Get rid of the leading space.
1251       ac_sep=" "
1252       ;;
1253     esac
1254   done
1255 done
1256 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259 # When interrupted or exit'd, cleanup temporary files, and complete
1260 # config.log.  We remove comments because anyway the quotes in there
1261 # would cause problems or look ugly.
1262 # WARNING: Be sure not to use single quotes in there, as some shells,
1263 # such as our DU 5.0 friend, will then `close' the trap.
1264 trap 'exit_status=$?
1265   # Save into config.log some information that might help in debugging.
1266   {
1267     echo
1268
1269     cat <<\_ASBOX
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1273 _ASBOX
1274     echo
1275     # The following way of writing the cache mishandles newlines in values,
1276 {
1277   (set) 2>&1 |
1278     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279     *ac_space=\ *)
1280       sed -n \
1281         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283       ;;
1284     *)
1285       sed -n \
1286         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287       ;;
1288     esac;
1289 }
1290     echo
1291
1292     cat <<\_ASBOX
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1296 _ASBOX
1297     echo
1298     for ac_var in $ac_subst_vars
1299     do
1300       eval ac_val=$`echo $ac_var`
1301       echo "$ac_var='"'"'$ac_val'"'"'"
1302     done | sort
1303     echo
1304
1305     if test -n "$ac_subst_files"; then
1306       cat <<\_ASBOX
1307 ## ------------- ##
1308 ## Output files. ##
1309 ## ------------- ##
1310 _ASBOX
1311       echo
1312       for ac_var in $ac_subst_files
1313       do
1314         eval ac_val=$`echo $ac_var`
1315         echo "$ac_var='"'"'$ac_val'"'"'"
1316       done | sort
1317       echo
1318     fi
1319
1320     if test -s confdefs.h; then
1321       cat <<\_ASBOX
1322 ## ----------- ##
1323 ## confdefs.h. ##
1324 ## ----------- ##
1325 _ASBOX
1326       echo
1327       sed "/^$/d" confdefs.h | sort
1328       echo
1329     fi
1330     test "$ac_signal" != 0 &&
1331       echo "$as_me: caught signal $ac_signal"
1332     echo "$as_me: exit $exit_status"
1333   } >&5
1334   rm -f core *.core &&
1335   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336     exit $exit_status
1337      ' 0
1338 for ac_signal in 1 2 13 15; do
1339   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 done
1341 ac_signal=0
1342
1343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344 rm -rf conftest* confdefs.h
1345 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346 echo >confdefs.h
1347
1348 # Predefined preprocessor variables.
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 _ACEOF
1363
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 _ACEOF
1368
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 _ACEOF
1373
1374
1375 # Let the site file select an alternate cache file if it wants to.
1376 # Prefer explicitly selected file to automatically selected ones.
1377 if test -z "$CONFIG_SITE"; then
1378   if test "x$prefix" != xNONE; then
1379     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380   else
1381     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382   fi
1383 fi
1384 for ac_site_file in $CONFIG_SITE; do
1385   if test -r "$ac_site_file"; then
1386     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387 echo "$as_me: loading site script $ac_site_file" >&6;}
1388     sed 's/^/| /' "$ac_site_file" >&5
1389     . "$ac_site_file"
1390   fi
1391 done
1392
1393 if test -r "$cache_file"; then
1394   # Some versions of bash will fail to source /dev/null (special
1395   # files actually), so we avoid doing that.
1396   if test -f "$cache_file"; then
1397     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398 echo "$as_me: loading cache $cache_file" >&6;}
1399     case $cache_file in
1400       [\\/]* | ?:[\\/]* ) . $cache_file;;
1401       *)                      . ./$cache_file;;
1402     esac
1403   fi
1404 else
1405   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1407   >$cache_file
1408 fi
1409
1410 # Check that the precious variables saved in the cache have kept the same
1411 # value.
1412 ac_cache_corrupted=false
1413 for ac_var in `(set) 2>&1 |
1414                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416   eval ac_new_set=\$ac_env_${ac_var}_set
1417   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418   eval ac_new_val="\$ac_env_${ac_var}_value"
1419   case $ac_old_set,$ac_new_set in
1420     set,)
1421       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423       ac_cache_corrupted=: ;;
1424     ,set)
1425       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427       ac_cache_corrupted=: ;;
1428     ,);;
1429     *)
1430       if test "x$ac_old_val" != "x$ac_new_val"; then
1431         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1432 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1433         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1434 echo "$as_me:   former value:  $ac_old_val" >&2;}
1435         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1436 echo "$as_me:   current value: $ac_new_val" >&2;}
1437         ac_cache_corrupted=:
1438       fi;;
1439   esac
1440   # Pass precious variables to config.status.
1441   if test "$ac_new_set" = set; then
1442     case $ac_new_val in
1443     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445     *) ac_arg=$ac_var=$ac_new_val ;;
1446     esac
1447     case " $ac_configure_args " in
1448       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1449       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450     esac
1451   fi
1452 done
1453 if $ac_cache_corrupted; then
1454   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1455 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1456   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1457 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1458    { (exit 1); exit 1; }; }
1459 fi
1460
1461 ac_ext=c
1462 ac_cpp='$CPP $CPPFLAGS'
1463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 # Check whether --enable-checkmem or --disable-checkmem was given.
1488 if test "${enable_checkmem+set}" = set; then
1489   enableval="$enable_checkmem"
1490   CHECKMEM=true
1491 fi;
1492 # Check whether --enable-debug or --disable-debug was given.
1493 if test "${enable_debug+set}" = set; then
1494   enableval="$enable_debug"
1495   DEBUG=true
1496 fi;
1497 # Check whether --enable-warnings or --disable-warnings was given.
1498 if test "${enable_warnings+set}" = set; then
1499   enableval="$enable_warnings"
1500   ENABLE_WARNINGS=true
1501 fi;
1502 # Check whether --enable-optimizations or --disable-optimizations was given.
1503 if test "${enable_optimizations+set}" = set; then
1504   enableval="$enable_optimizations"
1505   OPTIMIZE=true
1506 fi;
1507 # Check whether --enable-lame or --disable-lame was given.
1508 if test "${enable_lame+set}" = set; then
1509   enableval="$enable_lame"
1510   DISABLE_LAME=true
1511 fi;
1512
1513 PACKAGE=swftools
1514 VERSION=2004-09-18-1422
1515
1516
1517 # ------------------------------------------------------------------
1518
1519 if test "x${srcdir}" != "x."; then
1520     echo "--srcdir is not supported"
1521     exit 1
1522 fi
1523
1524 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1525 if test "x$ENABLE_WARNINGS" '!=' "x";then
1526     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1527 fi
1528
1529 if test "x$CHECKMEM" '!=' "x";then
1530     DEBUG=yes
1531 fi
1532 if test "x$DEBUG" '!=' "x";then
1533     CFLAGS="$WARNINGS -g $CFLAGS"
1534     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1535 else if test "x$OPTIMIZE" '!=' "x"; then
1536     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1537     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1538 else
1539     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1540     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1541 fi
1542 fi
1543 #OLDGCC=1
1544 #if test "x$OLDGCC" '!=' "x";then
1545 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1546 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1547 #     CFLAGS="$CFLAGS -ansi -pendantic"
1548 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1549 #fi
1550
1551 export PACKAGE VERSION CFLAGS CXXFLAGS
1552
1553  ac_aux_dir=
1554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555   if test -f $ac_dir/install-sh; then
1556     ac_aux_dir=$ac_dir
1557     ac_install_sh="$ac_aux_dir/install-sh -c"
1558     break
1559   elif test -f $ac_dir/install.sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install.sh -c"
1562     break
1563   elif test -f $ac_dir/shtool; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/shtool install -c"
1566     break
1567   fi
1568 done
1569 if test -z "$ac_aux_dir"; then
1570   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572    { (exit 1); exit 1; }; }
1573 fi
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578 # Make sure we can run config.sub.
1579 $ac_config_sub sun4 >/dev/null 2>&1 ||
1580   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582    { (exit 1); exit 1; }; }
1583
1584 echo "$as_me:$LINENO: checking build system type" >&5
1585 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586 if test "${ac_cv_build+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   ac_cv_build_alias=$build_alias
1590 test -z "$ac_cv_build_alias" &&
1591   ac_cv_build_alias=`$ac_config_guess`
1592 test -z "$ac_cv_build_alias" &&
1593   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595    { (exit 1); exit 1; }; }
1596 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599    { (exit 1); exit 1; }; }
1600
1601 fi
1602 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603 echo "${ECHO_T}$ac_cv_build" >&6
1604 build=$ac_cv_build
1605 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610 echo "$as_me:$LINENO: checking host system type" >&5
1611 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1612 if test "${ac_cv_host+set}" = set; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   ac_cv_host_alias=$host_alias
1616 test -z "$ac_cv_host_alias" &&
1617   ac_cv_host_alias=$ac_cv_build_alias
1618 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1619   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1621    { (exit 1); exit 1; }; }
1622
1623 fi
1624 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1625 echo "${ECHO_T}$ac_cv_host" >&6
1626 host=$ac_cv_host
1627 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632 MACOSX=
1633 case $host_os in
1634     *darwin* )
1635         MACOSX=yes
1636         CFLAGS="$CFLAGS -fno-rtti"
1637         CXXFLAGS="$CXXFLAGS -fno-rtti"
1638         ;;
1639 esac
1640  ac_ext=c
1641 ac_cpp='$CPP $CPPFLAGS'
1642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1645 if test -n "$ac_tool_prefix"; then
1646   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1647 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_CC+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   if test -n "$CC"; then
1654   ac_cv_prog_CC="$CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659   IFS=$as_save_IFS
1660   test -z "$as_dir" && as_dir=.
1661   for ac_exec_ext in '' $ac_executable_extensions; do
1662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665     break 2
1666   fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 CC=$ac_cv_prog_CC
1673 if test -n "$CC"; then
1674   echo "$as_me:$LINENO: result: $CC" >&5
1675 echo "${ECHO_T}$CC" >&6
1676 else
1677   echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681 fi
1682 if test -z "$ac_cv_prog_CC"; then
1683   ac_ct_CC=$CC
1684   # Extract the first word of "gcc", so it can be a program name with args.
1685 set dummy gcc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$ac_ct_CC"; then
1692   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1696 do
1697   IFS=$as_save_IFS
1698   test -z "$as_dir" && as_dir=.
1699   for ac_exec_ext in '' $ac_executable_extensions; do
1700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701     ac_cv_prog_ac_ct_CC="gcc"
1702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703     break 2
1704   fi
1705 done
1706 done
1707
1708 fi
1709 fi
1710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1711 if test -n "$ac_ct_CC"; then
1712   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1713 echo "${ECHO_T}$ac_ct_CC" >&6
1714 else
1715   echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1717 fi
1718
1719   CC=$ac_ct_CC
1720 else
1721   CC="$ac_cv_prog_CC"
1722 fi
1723
1724 if test -z "$CC"; then
1725   if test -n "$ac_tool_prefix"; then
1726   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1727 set dummy ${ac_tool_prefix}cc; ac_word=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_CC+set}" = set; then
1731   echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733   if test -n "$CC"; then
1734   ac_cv_prog_CC="$CC" # Let the user override the test.
1735 else
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 for as_dir in $PATH
1738 do
1739   IFS=$as_save_IFS
1740   test -z "$as_dir" && as_dir=.
1741   for ac_exec_ext in '' $ac_executable_extensions; do
1742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743     ac_cv_prog_CC="${ac_tool_prefix}cc"
1744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745     break 2
1746   fi
1747 done
1748 done
1749
1750 fi
1751 fi
1752 CC=$ac_cv_prog_CC
1753 if test -n "$CC"; then
1754   echo "$as_me:$LINENO: result: $CC" >&5
1755 echo "${ECHO_T}$CC" >&6
1756 else
1757   echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1759 fi
1760
1761 fi
1762 if test -z "$ac_cv_prog_CC"; then
1763   ac_ct_CC=$CC
1764   # Extract the first word of "cc", so it can be a program name with args.
1765 set dummy cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$ac_ct_CC"; then
1772   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   for ac_exec_ext in '' $ac_executable_extensions; do
1780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781     ac_cv_prog_ac_ct_CC="cc"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1791 if test -n "$ac_ct_CC"; then
1792   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1793 echo "${ECHO_T}$ac_ct_CC" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799   CC=$ac_ct_CC
1800 else
1801   CC="$ac_cv_prog_CC"
1802 fi
1803
1804 fi
1805 if test -z "$CC"; then
1806   # Extract the first word of "cc", so it can be a program name with args.
1807 set dummy cc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_CC+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813   if test -n "$CC"; then
1814   ac_cv_prog_CC="$CC" # Let the user override the test.
1815 else
1816   ac_prog_rejected=no
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822   for ac_exec_ext in '' $ac_executable_extensions; do
1823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1825        ac_prog_rejected=yes
1826        continue
1827      fi
1828     ac_cv_prog_CC="cc"
1829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830     break 2
1831   fi
1832 done
1833 done
1834
1835 if test $ac_prog_rejected = yes; then
1836   # We found a bogon in the path, so make sure we never use it.
1837   set dummy $ac_cv_prog_CC
1838   shift
1839   if test $# != 0; then
1840     # We chose a different compiler from the bogus one.
1841     # However, it has the same basename, so the bogon will be chosen
1842     # first if we set CC to just the basename; use the full file name.
1843     shift
1844     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1845   fi
1846 fi
1847 fi
1848 fi
1849 CC=$ac_cv_prog_CC
1850 if test -n "$CC"; then
1851   echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1853 else
1854   echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1856 fi
1857
1858 fi
1859 if test -z "$CC"; then
1860   if test -n "$ac_tool_prefix"; then
1861   for ac_prog in cl
1862   do
1863     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   if test -n "$CC"; then
1871   ac_cv_prog_CC="$CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876   IFS=$as_save_IFS
1877   test -z "$as_dir" && as_dir=.
1878   for ac_exec_ext in '' $ac_executable_extensions; do
1879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882     break 2
1883   fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 CC=$ac_cv_prog_CC
1890 if test -n "$CC"; then
1891   echo "$as_me:$LINENO: result: $CC" >&5
1892 echo "${ECHO_T}$CC" >&6
1893 else
1894   echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898     test -n "$CC" && break
1899   done
1900 fi
1901 if test -z "$CC"; then
1902   ac_ct_CC=$CC
1903   for ac_prog in cl
1904 do
1905   # Extract the first word of "$ac_prog", so it can be a program name with args.
1906 set dummy $ac_prog; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1910   echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912   if test -n "$ac_ct_CC"; then
1913   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920   for ac_exec_ext in '' $ac_executable_extensions; do
1921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922     ac_cv_prog_ac_ct_CC="$ac_prog"
1923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924     break 2
1925   fi
1926 done
1927 done
1928
1929 fi
1930 fi
1931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1932 if test -n "$ac_ct_CC"; then
1933   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1934 echo "${ECHO_T}$ac_ct_CC" >&6
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940   test -n "$ac_ct_CC" && break
1941 done
1942
1943   CC=$ac_ct_CC
1944 fi
1945
1946 fi
1947
1948
1949 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: no acceptable C compiler found in \$PATH
1952 See \`config.log' for more details." >&2;}
1953    { (exit 1); exit 1; }; }
1954
1955 # Provide some information about the compiler.
1956 echo "$as_me:$LINENO:" \
1957      "checking for C compiler version" >&5
1958 ac_compiler=`set X $ac_compile; echo $2`
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1960   (eval $ac_compiler --version </dev/null >&5) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }
1964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1965   (eval $ac_compiler -v </dev/null >&5) 2>&5
1966   ac_status=$?
1967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968   (exit $ac_status); }
1969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1970   (eval $ac_compiler -V </dev/null >&5) 2>&5
1971   ac_status=$?
1972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973   (exit $ac_status); }
1974
1975 cat >conftest.$ac_ext <<_ACEOF
1976 /* confdefs.h.  */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h.  */
1981
1982 int
1983 main ()
1984 {
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 ac_clean_files_save=$ac_clean_files
1991 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1992 # Try to create an executable without -o first, disregard a.out.
1993 # It will help us diagnose broken compilers, and finding out an intuition
1994 # of exeext.
1995 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1996 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1997 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999   (eval $ac_link_default) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }; then
2003   # Find the output, starting from the most likely.  This scheme is
2004 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005 # resort.
2006
2007 # Be careful to initialize this variable, since it used to be cached.
2008 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2009 ac_cv_exeext=
2010 # b.out is created by i960 compilers.
2011 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2012 do
2013   test -f "$ac_file" || continue
2014   case $ac_file in
2015     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2016         ;;
2017     conftest.$ac_ext )
2018         # This is the source file.
2019         ;;
2020     [ab].out )
2021         # We found the default executable, but exeext='' is most
2022         # certainly right.
2023         break;;
2024     *.* )
2025         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2026         # FIXME: I believe we export ac_cv_exeext for Libtool,
2027         # but it would be cool to find out if it's true.  Does anybody
2028         # maintain Libtool? --akim.
2029         export ac_cv_exeext
2030         break;;
2031     * )
2032         break;;
2033   esac
2034 done
2035 else
2036   echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2038
2039 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2040 See \`config.log' for more details." >&5
2041 echo "$as_me: error: C compiler cannot create executables
2042 See \`config.log' for more details." >&2;}
2043    { (exit 77); exit 77; }; }
2044 fi
2045
2046 ac_exeext=$ac_cv_exeext
2047 echo "$as_me:$LINENO: result: $ac_file" >&5
2048 echo "${ECHO_T}$ac_file" >&6
2049
2050 # Check the compiler produces executables we can run.  If not, either
2051 # the compiler is broken, or we cross compile.
2052 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2055 # If not cross compiling, check that we can run a simple program.
2056 if test "$cross_compiling" != yes; then
2057   if { ac_try='./$ac_file'
2058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059   (eval $ac_try) 2>&5
2060   ac_status=$?
2061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062   (exit $ac_status); }; }; then
2063     cross_compiling=no
2064   else
2065     if test "$cross_compiling" = maybe; then
2066         cross_compiling=yes
2067     else
2068         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2069 If you meant to cross compile, use \`--host'.
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: cannot run C compiled programs.
2072 If you meant to cross compile, use \`--host'.
2073 See \`config.log' for more details." >&2;}
2074    { (exit 1); exit 1; }; }
2075     fi
2076   fi
2077 fi
2078 echo "$as_me:$LINENO: result: yes" >&5
2079 echo "${ECHO_T}yes" >&6
2080
2081 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2082 ac_clean_files=$ac_clean_files_save
2083 # Check the compiler produces executables we can run.  If not, either
2084 # the compiler is broken, or we cross compile.
2085 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2086 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2087 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2088 echo "${ECHO_T}$cross_compiling" >&6
2089
2090 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2091 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2093   (eval $ac_link) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }; then
2097   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2098 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2099 # work properly (i.e., refer to `conftest.exe'), while it won't with
2100 # `rm'.
2101 for ac_file in conftest.exe conftest conftest.*; do
2102   test -f "$ac_file" || continue
2103   case $ac_file in
2104     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2105     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2106           export ac_cv_exeext
2107           break;;
2108     * ) break;;
2109   esac
2110 done
2111 else
2112   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2115 See \`config.log' for more details." >&2;}
2116    { (exit 1); exit 1; }; }
2117 fi
2118
2119 rm -f conftest$ac_cv_exeext
2120 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2121 echo "${ECHO_T}$ac_cv_exeext" >&6
2122
2123 rm -f conftest.$ac_ext
2124 EXEEXT=$ac_cv_exeext
2125 ac_exeext=$EXEEXT
2126 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2127 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2128 if test "${ac_cv_objext+set}" = set; then
2129   echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131   cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h.  */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h.  */
2137
2138 int
2139 main ()
2140 {
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 rm -f conftest.o conftest.obj
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148   (eval $ac_compile) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }; then
2152   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2153   case $ac_file in
2154     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2155     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2156        break;;
2157   esac
2158 done
2159 else
2160   echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2166 See \`config.log' for more details." >&2;}
2167    { (exit 1); exit 1; }; }
2168 fi
2169
2170 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2171 fi
2172 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2173 echo "${ECHO_T}$ac_cv_objext" >&6
2174 OBJEXT=$ac_cv_objext
2175 ac_objext=$OBJEXT
2176 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2177 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2178 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h.  */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h.  */
2187
2188 int
2189 main ()
2190 {
2191 #ifndef __GNUC__
2192        choke me
2193 #endif
2194
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201   (eval $ac_compile) 2>conftest.er1
2202   ac_status=$?
2203   grep -v '^ *+' conftest.er1 >conftest.err
2204   rm -f conftest.er1
2205   cat conftest.err >&5
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); } &&
2208          { ac_try='test -z "$ac_c_werror_flag"
2209                          || test ! -s conftest.err'
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); }; } &&
2215          { ac_try='test -s conftest.$ac_objext'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221   ac_compiler_gnu=yes
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 ac_compiler_gnu=no
2227 fi
2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2230
2231 fi
2232 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2233 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2234 GCC=`test $ac_compiler_gnu = yes && echo yes`
2235 ac_test_CFLAGS=${CFLAGS+set}
2236 ac_save_CFLAGS=$CFLAGS
2237 CFLAGS="-g"
2238 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2239 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2240 if test "${ac_cv_prog_cc_g+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h.  */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h.  */
2249
2250 int
2251 main ()
2252 {
2253
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260   (eval $ac_compile) 2>conftest.er1
2261   ac_status=$?
2262   grep -v '^ *+' conftest.er1 >conftest.err
2263   rm -f conftest.er1
2264   cat conftest.err >&5
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -z "$ac_c_werror_flag"
2268                          || test ! -s conftest.err'
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); }; } &&
2274          { ac_try='test -s conftest.$ac_objext'
2275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276   (eval $ac_try) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; }; then
2280   ac_cv_prog_cc_g=yes
2281 else
2282   echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 ac_cv_prog_cc_g=no
2286 fi
2287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288 fi
2289 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2290 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2291 if test "$ac_test_CFLAGS" = set; then
2292   CFLAGS=$ac_save_CFLAGS
2293 elif test $ac_cv_prog_cc_g = yes; then
2294   if test "$GCC" = yes; then
2295     CFLAGS="-g -O2"
2296   else
2297     CFLAGS="-g"
2298   fi
2299 else
2300   if test "$GCC" = yes; then
2301     CFLAGS="-O2"
2302   else
2303     CFLAGS=
2304   fi
2305 fi
2306 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2307 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2308 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   ac_cv_prog_cc_stdc=no
2312 ac_save_CC=$CC
2313 cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h.  */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h.  */
2319 #include <stdarg.h>
2320 #include <stdio.h>
2321 #include <sys/types.h>
2322 #include <sys/stat.h>
2323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2324 struct buf { int x; };
2325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2326 static char *e (p, i)
2327      char **p;
2328      int i;
2329 {
2330   return p[i];
2331 }
2332 static char *f (char * (*g) (char **, int), char **p, ...)
2333 {
2334   char *s;
2335   va_list v;
2336   va_start (v,p);
2337   s = g (p, va_arg (v,int));
2338   va_end (v);
2339   return s;
2340 }
2341
2342 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2343    function prototypes and stuff, but not '\xHH' hex character constants.
2344    These don't provoke an error unfortunately, instead are silently treated
2345    as 'x'.  The following induces an error, until -std1 is added to get
2346    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2347    array size at least.  It's necessary to write '\x00'==0 to get something
2348    that's true only with -std1.  */
2349 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2350
2351 int test (int i, double x);
2352 struct s1 {int (*f) (int a);};
2353 struct s2 {int (*f) (double a);};
2354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2355 int argc;
2356 char **argv;
2357 int
2358 main ()
2359 {
2360 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 # Don't try gcc -ansi; that turns off useful extensions and
2366 # breaks some systems' header files.
2367 # AIX                   -qlanglvl=ansi
2368 # Ultrix and OSF/1      -std1
2369 # HP-UX 10.20 and later -Ae
2370 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2371 # SVR4                  -Xc -D__EXTENSIONS__
2372 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2373 do
2374   CC="$ac_save_CC $ac_arg"
2375   rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377   (eval $ac_compile) 2>conftest.er1
2378   ac_status=$?
2379   grep -v '^ *+' conftest.er1 >conftest.err
2380   rm -f conftest.er1
2381   cat conftest.err >&5
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); } &&
2384          { ac_try='test -z "$ac_c_werror_flag"
2385                          || test ! -s conftest.err'
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); }; } &&
2391          { ac_try='test -s conftest.$ac_objext'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   ac_cv_prog_cc_stdc=$ac_arg
2398 break
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 fi
2404 rm -f conftest.err conftest.$ac_objext
2405 done
2406 rm -f conftest.$ac_ext conftest.$ac_objext
2407 CC=$ac_save_CC
2408
2409 fi
2410
2411 case "x$ac_cv_prog_cc_stdc" in
2412   x|xno)
2413     echo "$as_me:$LINENO: result: none needed" >&5
2414 echo "${ECHO_T}none needed" >&6 ;;
2415   *)
2416     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2417 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2418     CC="$CC $ac_cv_prog_cc_stdc" ;;
2419 esac
2420
2421 # Some people use a C++ compiler to compile C.  Since we use `exit',
2422 # in C++ we need to declare it.  In case someone uses the same compiler
2423 # for both compiling C and C++ we need to have the C++ compiler decide
2424 # the declaration of exit, since it's the most demanding environment.
2425 cat >conftest.$ac_ext <<_ACEOF
2426 #ifndef __cplusplus
2427   choke me
2428 #endif
2429 _ACEOF
2430 rm -f conftest.$ac_objext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432   (eval $ac_compile) 2>conftest.er1
2433   ac_status=$?
2434   grep -v '^ *+' conftest.er1 >conftest.err
2435   rm -f conftest.er1
2436   cat conftest.err >&5
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); } &&
2439          { ac_try='test -z "$ac_c_werror_flag"
2440                          || test ! -s conftest.err'
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); }; } &&
2446          { ac_try='test -s conftest.$ac_objext'
2447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448   (eval $ac_try) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }; }; then
2452   for ac_declaration in \
2453    '' \
2454    'extern "C" void std::exit (int) throw (); using std::exit;' \
2455    'extern "C" void std::exit (int); using std::exit;' \
2456    'extern "C" void exit (int) throw ();' \
2457    'extern "C" void exit (int);' \
2458    'void exit (int);'
2459 do
2460   cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h.  */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h.  */
2466 $ac_declaration
2467 #include <stdlib.h>
2468 int
2469 main ()
2470 {
2471 exit (42);
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478   (eval $ac_compile) 2>conftest.er1
2479   ac_status=$?
2480   grep -v '^ *+' conftest.er1 >conftest.err
2481   rm -f conftest.er1
2482   cat conftest.err >&5
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); } &&
2485          { ac_try='test -z "$ac_c_werror_flag"
2486                          || test ! -s conftest.err'
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); }; } &&
2492          { ac_try='test -s conftest.$ac_objext'
2493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494   (eval $ac_try) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }; }; then
2498   :
2499 else
2500   echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2502
2503 continue
2504 fi
2505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506   cat >conftest.$ac_ext <<_ACEOF
2507 /* confdefs.h.  */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h.  */
2512 $ac_declaration
2513 int
2514 main ()
2515 {
2516 exit (42);
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523   (eval $ac_compile) 2>conftest.er1
2524   ac_status=$?
2525   grep -v '^ *+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -z "$ac_c_werror_flag"
2531                          || test ! -s conftest.err'
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); }; } &&
2537          { ac_try='test -s conftest.$ac_objext'
2538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539   (eval $ac_try) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; }; then
2543   break
2544 else
2545   echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 fi
2549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550 done
2551 rm -f conftest*
2552 if test -n "$ac_declaration"; then
2553   echo '#ifdef __cplusplus' >>confdefs.h
2554   echo $ac_declaration      >>confdefs.h
2555   echo '#endif'             >>confdefs.h
2556 fi
2557
2558 else
2559   echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 fi
2563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
2570  ac_ext=cc
2571 ac_cpp='$CXXCPP $CPPFLAGS'
2572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2575 if test -n "$ac_tool_prefix"; then
2576   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2577   do
2578     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2580 echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2582 if test "${ac_cv_prog_CXX+set}" = set; then
2583   echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585   if test -n "$CXX"; then
2586   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593   for ac_exec_ext in '' $ac_executable_extensions; do
2594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600 done
2601
2602 fi
2603 fi
2604 CXX=$ac_cv_prog_CXX
2605 if test -n "$CXX"; then
2606   echo "$as_me:$LINENO: result: $CXX" >&5
2607 echo "${ECHO_T}$CXX" >&6
2608 else
2609   echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2611 fi
2612
2613     test -n "$CXX" && break
2614   done
2615 fi
2616 if test -z "$CXX"; then
2617   ac_ct_CXX=$CXX
2618   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2619 do
2620   # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2624 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2625   echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627   if test -n "$ac_ct_CXX"; then
2628   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635   for ac_exec_ext in '' $ac_executable_extensions; do
2636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637     ac_cv_prog_ac_ct_CXX="$ac_prog"
2638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639     break 2
2640   fi
2641 done
2642 done
2643
2644 fi
2645 fi
2646 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2647 if test -n "$ac_ct_CXX"; then
2648   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2649 echo "${ECHO_T}$ac_ct_CXX" >&6
2650 else
2651   echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6
2653 fi
2654
2655   test -n "$ac_ct_CXX" && break
2656 done
2657 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2658
2659   CXX=$ac_ct_CXX
2660 fi
2661
2662
2663 # Provide some information about the compiler.
2664 echo "$as_me:$LINENO:" \
2665      "checking for C++ compiler version" >&5
2666 ac_compiler=`set X $ac_compile; echo $2`
2667 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2668   (eval $ac_compiler --version </dev/null >&5) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }
2672 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2673   (eval $ac_compiler -v </dev/null >&5) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }
2677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2678   (eval $ac_compiler -V </dev/null >&5) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }
2682
2683 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2684 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2685 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2686   echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688   cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h.  */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h.  */
2694
2695 int
2696 main ()
2697 {
2698 #ifndef __GNUC__
2699        choke me
2700 #endif
2701
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708   (eval $ac_compile) 2>conftest.er1
2709   ac_status=$?
2710   grep -v '^ *+' conftest.er1 >conftest.err
2711   rm -f conftest.er1
2712   cat conftest.err >&5
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -z "$ac_cxx_werror_flag"
2716                          || test ! -s conftest.err'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; } &&
2722          { ac_try='test -s conftest.$ac_objext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   ac_compiler_gnu=yes
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 ac_compiler_gnu=no
2734 fi
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2737
2738 fi
2739 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2740 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2741 GXX=`test $ac_compiler_gnu = yes && echo yes`
2742 ac_test_CXXFLAGS=${CXXFLAGS+set}
2743 ac_save_CXXFLAGS=$CXXFLAGS
2744 CXXFLAGS="-g"
2745 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2746 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2747 if test "${ac_cv_prog_cxx_g+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756
2757 int
2758 main ()
2759 {
2760
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>conftest.er1
2768   ac_status=$?
2769   grep -v '^ *+' conftest.er1 >conftest.err
2770   rm -f conftest.er1
2771   cat conftest.err >&5
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -z "$ac_cxx_werror_flag"
2775                          || test ! -s conftest.err'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; } &&
2781          { ac_try='test -s conftest.$ac_objext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   ac_cv_prog_cxx_g=yes
2788 else
2789   echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 ac_cv_prog_cxx_g=no
2793 fi
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 fi
2796 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2798 if test "$ac_test_CXXFLAGS" = set; then
2799   CXXFLAGS=$ac_save_CXXFLAGS
2800 elif test $ac_cv_prog_cxx_g = yes; then
2801   if test "$GXX" = yes; then
2802     CXXFLAGS="-g -O2"
2803   else
2804     CXXFLAGS="-g"
2805   fi
2806 else
2807   if test "$GXX" = yes; then
2808     CXXFLAGS="-O2"
2809   else
2810     CXXFLAGS=
2811   fi
2812 fi
2813 for ac_declaration in \
2814    '' \
2815    'extern "C" void std::exit (int) throw (); using std::exit;' \
2816    'extern "C" void std::exit (int); using std::exit;' \
2817    'extern "C" void exit (int) throw ();' \
2818    'extern "C" void exit (int);' \
2819    'void exit (int);'
2820 do
2821   cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h.  */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h.  */
2827 $ac_declaration
2828 #include <stdlib.h>
2829 int
2830 main ()
2831 {
2832 exit (42);
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839   (eval $ac_compile) 2>conftest.er1
2840   ac_status=$?
2841   grep -v '^ *+' conftest.er1 >conftest.err
2842   rm -f conftest.er1
2843   cat conftest.err >&5
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); } &&
2846          { ac_try='test -z "$ac_cxx_werror_flag"
2847                          || test ! -s conftest.err'
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); }; } &&
2853          { ac_try='test -s conftest.$ac_objext'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859   :
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 continue
2865 fi
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867   cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h.  */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h.  */
2873 $ac_declaration
2874 int
2875 main ()
2876 {
2877 exit (42);
2878   ;
2879   return 0;
2880 }
2881 _ACEOF
2882 rm -f conftest.$ac_objext
2883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2884   (eval $ac_compile) 2>conftest.er1
2885   ac_status=$?
2886   grep -v '^ *+' conftest.er1 >conftest.err
2887   rm -f conftest.er1
2888   cat conftest.err >&5
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); } &&
2891          { ac_try='test -z "$ac_cxx_werror_flag"
2892                          || test ! -s conftest.err'
2893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894   (eval $ac_try) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; } &&
2898          { ac_try='test -s conftest.$ac_objext'
2899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900   (eval $ac_try) 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; }; then
2904   break
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 fi
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911 done
2912 rm -f conftest*
2913 if test -n "$ac_declaration"; then
2914   echo '#ifdef __cplusplus' >>confdefs.h
2915   echo $ac_declaration      >>confdefs.h
2916   echo '#endif'             >>confdefs.h
2917 fi
2918
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924
2925
2926 if test "x$CHECKMEM" '!=' "x";then
2927     CC="ccmalloc $CC"
2928     CXX="ccmalloc $CXX"
2929     #echo running again
2930     #unset ac_cv_prog_CC
2931     #unset ac_cv_prog_CXX
2932     #AC_PROG_CC
2933     #AC_PROG_CXX
2934 fi
2935  ac_ext=c
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2941 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2942 # On Suns, sometimes $CPP names a directory.
2943 if test -n "$CPP" && test -d "$CPP"; then
2944   CPP=
2945 fi
2946 if test -z "$CPP"; then
2947   if test "${ac_cv_prog_CPP+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950       # Double quotes because CPP needs to be expanded
2951     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2952     do
2953       ac_preproc_ok=false
2954 for ac_c_preproc_warn_flag in '' yes
2955 do
2956   # Use a header file that comes with gcc, so configuring glibc
2957   # with a fresh cross-compiler works.
2958   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2959   # <limits.h> exists even on freestanding compilers.
2960   # On the NeXT, cc -E runs the code through the compiler's parser,
2961   # not just through cpp. "Syntax error" is here to catch this case.
2962   cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h.  */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h.  */
2968 #ifdef __STDC__
2969 # include <limits.h>
2970 #else
2971 # include <assert.h>
2972 #endif
2973                      Syntax error
2974 _ACEOF
2975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } >/dev/null; then
2983   if test -s conftest.err; then
2984     ac_cpp_err=$ac_c_preproc_warn_flag
2985     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2986   else
2987     ac_cpp_err=
2988   fi
2989 else
2990   ac_cpp_err=yes
2991 fi
2992 if test -z "$ac_cpp_err"; then
2993   :
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998   # Broken: fails on valid input.
2999 continue
3000 fi
3001 rm -f conftest.err conftest.$ac_ext
3002
3003   # OK, works on sane cases.  Now check whether non-existent headers
3004   # can be detected and how.
3005   cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #include <ac_nonexistent.h>
3012 _ACEOF
3013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3015   ac_status=$?
3016   grep -v '^ *+' conftest.er1 >conftest.err
3017   rm -f conftest.er1
3018   cat conftest.err >&5
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } >/dev/null; then
3021   if test -s conftest.err; then
3022     ac_cpp_err=$ac_c_preproc_warn_flag
3023     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3024   else
3025     ac_cpp_err=
3026   fi
3027 else
3028   ac_cpp_err=yes
3029 fi
3030 if test -z "$ac_cpp_err"; then
3031   # Broken: success on invalid input.
3032 continue
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037   # Passes both tests.
3038 ac_preproc_ok=:
3039 break
3040 fi
3041 rm -f conftest.err conftest.$ac_ext
3042
3043 done
3044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3045 rm -f conftest.err conftest.$ac_ext
3046 if $ac_preproc_ok; then
3047   break
3048 fi
3049
3050     done
3051     ac_cv_prog_CPP=$CPP
3052
3053 fi
3054   CPP=$ac_cv_prog_CPP
3055 else
3056   ac_cv_prog_CPP=$CPP
3057 fi
3058 echo "$as_me:$LINENO: result: $CPP" >&5
3059 echo "${ECHO_T}$CPP" >&6
3060 ac_preproc_ok=false
3061 for ac_c_preproc_warn_flag in '' yes
3062 do
3063   # Use a header file that comes with gcc, so configuring glibc
3064   # with a fresh cross-compiler works.
3065   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3066   # <limits.h> exists even on freestanding compilers.
3067   # On the NeXT, cc -E runs the code through the compiler's parser,
3068   # not just through cpp. "Syntax error" is here to catch this case.
3069   cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075 #ifdef __STDC__
3076 # include <limits.h>
3077 #else
3078 # include <assert.h>
3079 #endif
3080                      Syntax error
3081 _ACEOF
3082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084   ac_status=$?
3085   grep -v '^ *+' conftest.er1 >conftest.err
3086   rm -f conftest.er1
3087   cat conftest.err >&5
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); } >/dev/null; then
3090   if test -s conftest.err; then
3091     ac_cpp_err=$ac_c_preproc_warn_flag
3092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093   else
3094     ac_cpp_err=
3095   fi
3096 else
3097   ac_cpp_err=yes
3098 fi
3099 if test -z "$ac_cpp_err"; then
3100   :
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105   # Broken: fails on valid input.
3106 continue
3107 fi
3108 rm -f conftest.err conftest.$ac_ext
3109
3110   # OK, works on sane cases.  Now check whether non-existent headers
3111   # can be detected and how.
3112   cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118 #include <ac_nonexistent.h>
3119 _ACEOF
3120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3122   ac_status=$?
3123   grep -v '^ *+' conftest.er1 >conftest.err
3124   rm -f conftest.er1
3125   cat conftest.err >&5
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); } >/dev/null; then
3128   if test -s conftest.err; then
3129     ac_cpp_err=$ac_c_preproc_warn_flag
3130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3131   else
3132     ac_cpp_err=
3133   fi
3134 else
3135   ac_cpp_err=yes
3136 fi
3137 if test -z "$ac_cpp_err"; then
3138   # Broken: success on invalid input.
3139 continue
3140 else
3141   echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144   # Passes both tests.
3145 ac_preproc_ok=:
3146 break
3147 fi
3148 rm -f conftest.err conftest.$ac_ext
3149
3150 done
3151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3152 rm -f conftest.err conftest.$ac_ext
3153 if $ac_preproc_ok; then
3154   :
3155 else
3156   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." >&2;}
3160    { (exit 1); exit 1; }; }
3161 fi
3162
3163 ac_ext=c
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168
3169
3170  if test -n "$ac_tool_prefix"; then
3171   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_RANLIB+set}" = set; then
3176   echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178   if test -n "$RANLIB"; then
3179   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186   for ac_exec_ext in '' $ac_executable_extensions; do
3187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193 done
3194
3195 fi
3196 fi
3197 RANLIB=$ac_cv_prog_RANLIB
3198 if test -n "$RANLIB"; then
3199   echo "$as_me:$LINENO: result: $RANLIB" >&5
3200 echo "${ECHO_T}$RANLIB" >&6
3201 else
3202   echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 fi
3205
3206 fi
3207 if test -z "$ac_cv_prog_RANLIB"; then
3208   ac_ct_RANLIB=$RANLIB
3209   # Extract the first word of "ranlib", so it can be a program name with args.
3210 set dummy ranlib; ac_word=$2
3211 echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3214   echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216   if test -n "$ac_ct_RANLIB"; then
3217   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222   IFS=$as_save_IFS
3223   test -z "$as_dir" && as_dir=.
3224   for ac_exec_ext in '' $ac_executable_extensions; do
3225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226     ac_cv_prog_ac_ct_RANLIB="ranlib"
3227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228     break 2
3229   fi
3230 done
3231 done
3232
3233   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3234 fi
3235 fi
3236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3237 if test -n "$ac_ct_RANLIB"; then
3238   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3240 else
3241   echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3243 fi
3244
3245   RANLIB=$ac_ct_RANLIB
3246 else
3247   RANLIB="$ac_cv_prog_RANLIB"
3248 fi
3249
3250  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3251 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3252 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3253 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   cat >conftest.make <<\_ACEOF
3257 all:
3258         @echo 'ac_maketemp="$(MAKE)"'
3259 _ACEOF
3260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3261 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3262 if test -n "$ac_maketemp"; then
3263   eval ac_cv_prog_make_${ac_make}_set=yes
3264 else
3265   eval ac_cv_prog_make_${ac_make}_set=no
3266 fi
3267 rm -f conftest.make
3268 fi
3269 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3270   echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6
3272   SET_MAKE=
3273 else
3274   echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3276   SET_MAKE="MAKE=${MAKE-make}"
3277 fi
3278
3279  # Find a good install program.  We prefer a C program (faster),
3280 # so one script is as good as another.  But avoid the broken or
3281 # incompatible versions:
3282 # SysV /etc/install, /usr/sbin/install
3283 # SunOS /usr/etc/install
3284 # IRIX /sbin/install
3285 # AIX /bin/install
3286 # AmigaOS /C/install, which installs bootblocks on floppy discs
3287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3290 # OS/2's system install, which has a completely different semantic
3291 # ./install, which can be erroneously created by make from ./install.sh.
3292 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3293 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3294 if test -z "$INSTALL"; then
3295 if test "${ac_cv_path_install+set}" = set; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303   # Account for people who put trailing slashes in PATH elements.
3304 case $as_dir/ in
3305   ./ | .// | /cC/* | \
3306   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3307   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3308   /usr/ucb/* ) ;;
3309   *)
3310     # OSF1 and SCO ODT 3.0 have their own names for install.
3311     # Don't use installbsd from OSF since it installs stuff as root
3312     # by default.
3313     for ac_prog in ginstall scoinst install; do
3314       for ac_exec_ext in '' $ac_executable_extensions; do
3315         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3316           if test $ac_prog = install &&
3317             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3318             # AIX install.  It has an incompatible calling convention.
3319             :
3320           elif test $ac_prog = install &&
3321             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3322             # program-specific install script used by HP pwplus--don't use.
3323             :
3324           else
3325             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3326             break 3
3327           fi
3328         fi
3329       done
3330     done
3331     ;;
3332 esac
3333 done
3334
3335
3336 fi
3337   if test "${ac_cv_path_install+set}" = set; then
3338     INSTALL=$ac_cv_path_install
3339   else
3340     # As a last resort, use the slow shell script.  We don't cache a
3341     # path for INSTALL within a source directory, because that will
3342     # break other packages using the cache if that directory is
3343     # removed, or if the path is relative.
3344     INSTALL=$ac_install_sh
3345   fi
3346 fi
3347 echo "$as_me:$LINENO: result: $INSTALL" >&5
3348 echo "${ECHO_T}$INSTALL" >&6
3349
3350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3351 # It thinks the first close brace ends the variable substitution.
3352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3353
3354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3355
3356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3357
3358  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3359 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3360 LN_S=$as_ln_s
3361 if test "$LN_S" = "ln -s"; then
3362   echo "$as_me:$LINENO: result: yes" >&5
3363 echo "${ECHO_T}yes" >&6
3364 else
3365   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3366 echo "${ECHO_T}no, using $LN_S" >&6
3367 fi
3368
3369  # Check whether --enable-shared or --disable-shared was given.
3370 if test "${enable_shared+set}" = set; then
3371   enableval="$enable_shared"
3372   p=${PACKAGE-default}
3373 case $enableval in
3374 yes) enable_shared=yes ;;
3375 no) enable_shared=no ;;
3376 *)
3377   enable_shared=no
3378   # Look at the argument we got.  We use all the common list separators.
3379   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3380   for pkg in $enableval; do
3381     if test "X$pkg" = "X$p"; then
3382       enable_shared=yes
3383     fi
3384   done
3385   IFS="$ac_save_ifs"
3386   ;;
3387 esac
3388 else
3389   enable_shared=yes
3390 fi;
3391 # Check whether --enable-static or --disable-static was given.
3392 if test "${enable_static+set}" = set; then
3393   enableval="$enable_static"
3394   p=${PACKAGE-default}
3395 case $enableval in
3396 yes) enable_static=yes ;;
3397 no) enable_static=no ;;
3398 *)
3399   enable_static=no
3400   # Look at the argument we got.  We use all the common list separators.
3401   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3402   for pkg in $enableval; do
3403     if test "X$pkg" = "X$p"; then
3404       enable_static=yes
3405     fi
3406   done
3407   IFS="$ac_save_ifs"
3408   ;;
3409 esac
3410 else
3411   enable_static=yes
3412 fi;
3413 # Check whether --enable-fast-install or --disable-fast-install was given.
3414 if test "${enable_fast_install+set}" = set; then
3415   enableval="$enable_fast_install"
3416   p=${PACKAGE-default}
3417 case $enableval in
3418 yes) enable_fast_install=yes ;;
3419 no) enable_fast_install=no ;;
3420 *)
3421   enable_fast_install=no
3422   # Look at the argument we got.  We use all the common list separators.
3423   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3424   for pkg in $enableval; do
3425     if test "X$pkg" = "X$p"; then
3426       enable_fast_install=yes
3427     fi
3428   done
3429   IFS="$ac_save_ifs"
3430   ;;
3431 esac
3432 else
3433   enable_fast_install=yes
3434 fi;
3435 # Find the correct PATH separator.  Usually this is `:', but
3436 # DJGPP uses `;' like DOS.
3437 if test "X${PATH_SEPARATOR+set}" != Xset; then
3438   UNAME=${UNAME-`uname 2>/dev/null`}
3439   case X$UNAME in
3440     *-DOS) lt_cv_sys_path_separator=';' ;;
3441     *)     lt_cv_sys_path_separator=':' ;;
3442   esac
3443   PATH_SEPARATOR=$lt_cv_sys_path_separator
3444 fi
3445
3446
3447 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3448 if test "${with_gnu_ld+set}" = set; then
3449   withval="$with_gnu_ld"
3450   test "$withval" = no || with_gnu_ld=yes
3451 else
3452   with_gnu_ld=no
3453 fi;
3454 ac_prog=ld
3455 if test "$GCC" = yes; then
3456   # Check if gcc -print-prog-name=ld gives a path.
3457   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3458 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3459   case $host in
3460   *-*-mingw*)
3461     # gcc leaves a trailing carriage return which upsets mingw
3462     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3463   *)
3464     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3465   esac
3466   case $ac_prog in
3467     # Accept absolute paths.
3468     [\\/]* | [A-Za-z]:[\\/]*)
3469       re_direlt='/[^/][^/]*/\.\./'
3470       # Canonicalize the path of ld
3471       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3472       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3473         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3474       done
3475       test -z "$LD" && LD="$ac_prog"
3476       ;;
3477   "")
3478     # If it fails, then pretend we aren't using GCC.
3479     ac_prog=ld
3480     ;;
3481   *)
3482     # If it is relative, then search for the first ld in PATH.
3483     with_gnu_ld=unknown
3484     ;;
3485   esac
3486 elif test "$with_gnu_ld" = yes; then
3487   echo "$as_me:$LINENO: checking for GNU ld" >&5
3488 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3489 else
3490   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3491 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3492 fi
3493 if test "${lt_cv_path_LD+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   if test -z "$LD"; then
3497   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3498   for ac_dir in $PATH; do
3499     test -z "$ac_dir" && ac_dir=.
3500     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3501       lt_cv_path_LD="$ac_dir/$ac_prog"
3502       # Check to see if the program is GNU ld.  I'd rather use --version,
3503       # but apparently some GNU ld's only accept -v.
3504       # Break only if it was the GNU/non-GNU ld that we prefer.
3505       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3506         test "$with_gnu_ld" != no && break
3507       else
3508         test "$with_gnu_ld" != yes && break
3509       fi
3510     fi
3511   done
3512   IFS="$ac_save_ifs"
3513 else
3514   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3515 fi
3516 fi
3517
3518 LD="$lt_cv_path_LD"
3519 if test -n "$LD"; then
3520   echo "$as_me:$LINENO: result: $LD" >&5
3521 echo "${ECHO_T}$LD" >&6
3522 else
3523   echo "$as_me:$LINENO: result: no" >&5
3524 echo "${ECHO_T}no" >&6
3525 fi
3526 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3527 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3528    { (exit 1); exit 1; }; }
3529 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3530 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3531 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3535 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3536   lt_cv_prog_gnu_ld=yes
3537 else
3538   lt_cv_prog_gnu_ld=no
3539 fi
3540 fi
3541 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3542 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3543 with_gnu_ld=$lt_cv_prog_gnu_ld
3544
3545
3546 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3547 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3548 if test "${lt_cv_ld_reload_flag+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   lt_cv_ld_reload_flag='-r'
3552 fi
3553 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3554 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3555 reload_flag=$lt_cv_ld_reload_flag
3556 test -n "$reload_flag" && reload_flag=" $reload_flag"
3557
3558 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3559 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3560 if test "${lt_cv_path_NM+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   if test -n "$NM"; then
3564   # Let the user override the test.
3565   lt_cv_path_NM="$NM"
3566 else
3567   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3568   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3569     test -z "$ac_dir" && ac_dir=.
3570     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3571     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3572       # Check to see if the nm accepts a BSD-compat flag.
3573       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3574       #   nm: unknown option "B" ignored
3575       # Tru64's nm complains that /dev/null is an invalid object file
3576       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3577         lt_cv_path_NM="$tmp_nm -B"
3578         break
3579       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3580         lt_cv_path_NM="$tmp_nm -p"
3581         break
3582       else
3583         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3584         continue # so that we can try to find one that supports BSD flags
3585       fi
3586     fi
3587   done
3588   IFS="$ac_save_ifs"
3589   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3590 fi
3591 fi
3592
3593 NM="$lt_cv_path_NM"
3594 echo "$as_me:$LINENO: result: $NM" >&5
3595 echo "${ECHO_T}$NM" >&6
3596
3597 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3598 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3599 if test "${lt_cv_path_SED+set}" = set; then
3600   echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602   # Loop through the user's path and test for sed and gsed.
3603 # Then use that list of sed's as ones to test for truncation.
3604 as_executable_p="test -f"
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608   IFS=$as_save_IFS
3609   test -z "$as_dir" && as_dir=.
3610   for ac_prog in sed gsed; do
3611     for ac_exec_ext in '' $ac_executable_extensions; do
3612       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3613         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3614       fi
3615     done
3616   done
3617 done
3618
3619   # Create a temporary directory, and hook for its removal unless debugging.
3620 $debug ||
3621 {
3622   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3623   trap '{ (exit 1); exit 1; }' 1 2 13 15
3624 }
3625
3626 # Create a (secure) tmp directory for tmp files.
3627 : ${TMPDIR=/tmp}
3628 {
3629   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3630   test -n "$tmp" && test -d "$tmp"
3631 }  ||
3632 {
3633   tmp=$TMPDIR/sed$$-$RANDOM
3634   (umask 077 && mkdir $tmp)
3635 } ||
3636 {
3637    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3638    { (exit 1); exit 1; }
3639 }
3640   _max=0
3641   _count=0
3642   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3643   # along with /bin/sed that truncates output.
3644   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3645     test ! -f ${_sed} && break
3646     cat /dev/null > "$tmp/sed.in"
3647     _count=0
3648     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3649     # Check for GNU sed and select it if it is found.
3650     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3651       lt_cv_path_SED=${_sed}
3652       break
3653     fi
3654     while true; do
3655       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3656       mv "$tmp/sed.tmp" "$tmp/sed.in"
3657       cp "$tmp/sed.in" "$tmp/sed.nl"
3658       echo >>"$tmp/sed.nl"
3659       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3660       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3661       # 40000 chars as input seems more than enough
3662       test $_count -gt 10 && break
3663       _count=`expr $_count + 1`
3664       if test $_count -gt $_max; then
3665         _max=$_count
3666         lt_cv_path_SED=$_sed
3667       fi
3668     done
3669   done
3670   rm -rf "$tmp"
3671
3672 fi
3673
3674 if test "X$SED" != "X"; then
3675   lt_cv_path_SED=$SED
3676 else
3677   SED=$lt_cv_path_SED
3678 fi
3679 echo "$as_me:$LINENO: result: $SED" >&5
3680 echo "${ECHO_T}$SED" >&6
3681
3682 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3683 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3684 if test "${lt_cv_deplibs_check_method+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   lt_cv_file_magic_cmd='$MAGIC_CMD'
3688 lt_cv_file_magic_test_file=
3689 lt_cv_deplibs_check_method='unknown'
3690 # Need to set the preceding variable on all platforms that support
3691 # interlibrary dependencies.
3692 # 'none' -- dependencies not supported.
3693 # `unknown' -- same as none, but documents that we really don't know.
3694 # 'pass_all' -- all dependencies passed with no checks.
3695 # 'test_compile' -- check by making test program.
3696 # 'file_magic [[regex]]' -- check by looking for files in library path
3697 # which responds to the $file_magic_cmd with a given egrep regex.
3698 # If you have `file' or equivalent on your system and you're not sure
3699 # whether `pass_all' will *always* work, you probably want this one.
3700
3701 case $host_os in
3702 aix4* | aix5*)
3703   lt_cv_deplibs_check_method=pass_all
3704   ;;
3705
3706 beos*)
3707   lt_cv_deplibs_check_method=pass_all
3708   ;;
3709
3710 bsdi4*)
3711   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3712   lt_cv_file_magic_cmd='/usr/bin/file -L'
3713   lt_cv_file_magic_test_file=/shlib/libc.so
3714   ;;
3715
3716 cygwin* | mingw* | pw32*)
3717   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3718   lt_cv_file_magic_cmd='$OBJDUMP -f'
3719   ;;
3720
3721 darwin* | rhapsody*)
3722   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3723   lt_cv_file_magic_cmd='/usr/bin/file -L'
3724   case "$host_os" in
3725   rhapsody* | darwin1.[012])
3726     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3727     ;;
3728   *) # Darwin 1.3 on
3729     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3730     ;;
3731   esac
3732   ;;
3733
3734 freebsd*)
3735   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3736     case $host_cpu in
3737     i*86 )
3738       # Not sure whether the presence of OpenBSD here was a mistake.
3739       # Let's accept both of them until this is cleared up.
3740       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3741       lt_cv_file_magic_cmd=/usr/bin/file
3742       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3743       ;;
3744     esac
3745   else
3746     lt_cv_deplibs_check_method=pass_all
3747   fi
3748   ;;
3749
3750 gnu*)
3751   lt_cv_deplibs_check_method=pass_all
3752   ;;
3753
3754 hpux10.20*|hpux11*)
3755   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3756   lt_cv_file_magic_cmd=/usr/bin/file
3757   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3758   ;;
3759
3760 irix5* | irix6* | nonstopux*)
3761   case $host_os in
3762   irix5* | nonstopux*)
3763     # this will be overridden with pass_all, but let us keep it just in case
3764     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3765     ;;
3766   *)
3767     case $LD in
3768     *-32|*"-32 ") libmagic=32-bit;;
3769     *-n32|*"-n32 ") libmagic=N32;;
3770     *-64|*"-64 ") libmagic=64-bit;;
3771     *) libmagic=never-match;;
3772     esac
3773     # this will be overridden with pass_all, but let us keep it just in case
3774     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3775     ;;
3776   esac
3777   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3778   lt_cv_deplibs_check_method=pass_all
3779   ;;
3780
3781 # This must be Linux ELF.
3782 linux-gnu*)
3783   case $host_cpu in
3784   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3785     lt_cv_deplibs_check_method=pass_all ;;
3786   *)
3787     # glibc up to 2.1.1 does not perform some relocations on ARM
3788     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3789   esac
3790   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3791   ;;
3792
3793 netbsd*)
3794   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3795     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3796   else
3797     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3798   fi
3799   ;;
3800
3801 newos6*)
3802   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3803   lt_cv_file_magic_cmd=/usr/bin/file
3804   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3805   ;;
3806
3807 openbsd*)
3808   lt_cv_file_magic_cmd=/usr/bin/file
3809   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3810   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3811     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3812   else
3813     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3814   fi
3815   ;;
3816
3817 osf3* | osf4* | osf5*)
3818   # this will be overridden with pass_all, but let us keep it just in case
3819   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3820   lt_cv_file_magic_test_file=/shlib/libc.so
3821   lt_cv_deplibs_check_method=pass_all
3822   ;;
3823
3824 sco3.2v5*)
3825   lt_cv_deplibs_check_method=pass_all
3826   ;;
3827
3828 solaris*)
3829   lt_cv_deplibs_check_method=pass_all
3830   lt_cv_file_magic_test_file=/lib/libc.so
3831   ;;
3832
3833 sysv5uw[78]* | sysv4*uw2*)
3834   lt_cv_deplibs_check_method=pass_all
3835   ;;
3836
3837 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3838   case $host_vendor in
3839   motorola)
3840     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]'
3841     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3842     ;;
3843   ncr)
3844     lt_cv_deplibs_check_method=pass_all
3845     ;;
3846   sequent)
3847     lt_cv_file_magic_cmd='/bin/file'
3848     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3849     ;;
3850   sni)
3851     lt_cv_file_magic_cmd='/bin/file'
3852     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3853     lt_cv_file_magic_test_file=/lib/libc.so
3854     ;;
3855   siemens)
3856     lt_cv_deplibs_check_method=pass_all
3857     ;;
3858   esac
3859   ;;
3860 esac
3861
3862 fi
3863 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3864 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3865 file_magic_cmd=$lt_cv_file_magic_cmd
3866 deplibs_check_method=$lt_cv_deplibs_check_method
3867
3868
3869
3870
3871
3872
3873
3874
3875 # Check for command to grab the raw symbol name followed by C symbol from nm.
3876 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3877 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3878 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3879   echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881
3882 # These are sane defaults that work on at least a few old systems.
3883 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3884
3885 # Character class describing NM global symbol codes.
3886 symcode='[BCDEGRST]'
3887
3888 # Regexp to match symbols that can be accessed directly from C.
3889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3890
3891 # Transform the above into a raw symbol and a C symbol.
3892 symxfrm='\1 \2\3 \3'
3893
3894 # Transform an extracted symbol line into a proper C declaration
3895 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3896
3897 # Transform an extracted symbol line into symbol name and symbol address
3898 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'"
3899
3900 # Define system-specific variables.
3901 case $host_os in
3902 aix*)
3903   symcode='[BCDT]'
3904   ;;
3905 cygwin* | mingw* | pw32*)
3906   symcode='[ABCDGISTW]'
3907   ;;
3908 hpux*) # Its linker distinguishes data from code symbols
3909   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3910   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'"
3911   ;;
3912 irix* | nonstopux*)
3913   symcode='[BCDEGRST]'
3914   ;;
3915 osf*)
3916   symcode='[BCDEGQRST]'
3917   ;;
3918 solaris* | sysv5*)
3919   symcode='[BDT]'
3920   ;;
3921 sysv4)
3922   symcode='[DFNSTU]'
3923   ;;
3924 esac
3925
3926 # Handle CRLF in mingw tool chain
3927 opt_cr=
3928 case $host_os in
3929 mingw*)
3930   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3931   ;;
3932 esac
3933
3934 # If we're using GNU nm, then use its standard symbol codes.
3935 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3936   symcode='[ABCDGISTW]'
3937 fi
3938
3939 # Try without a prefix undercore, then with it.
3940 for ac_symprfx in "" "_"; do
3941
3942   # Write the raw and C identifiers.
3943 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3944
3945   # Check to see that the pipe works correctly.
3946   pipe_works=no
3947   rm -f conftest*
3948   cat > conftest.$ac_ext <<EOF
3949 #ifdef __cplusplus
3950 extern "C" {
3951 #endif
3952 char nm_test_var;
3953 void nm_test_func(){}
3954 #ifdef __cplusplus
3955 }
3956 #endif
3957 int main(){nm_test_var='a';nm_test_func();return(0);}
3958 EOF
3959
3960   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3961   (eval $ac_compile) 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); }; then
3965     # Now try to grab the symbols.
3966     nlist=conftest.nm
3967     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3968   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } && test -s "$nlist"; then
3972       # Try sorting and uniquifying the output.
3973       if sort "$nlist" | uniq > "$nlist"T; then
3974         mv -f "$nlist"T "$nlist"
3975       else
3976         rm -f "$nlist"T
3977       fi
3978
3979       # Make sure that we snagged all the symbols we need.
3980       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3981         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3982           cat <<EOF > conftest.$ac_ext
3983 #ifdef __cplusplus
3984 extern "C" {
3985 #endif
3986
3987 EOF
3988           # Now generate the symbol file.
3989           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3990
3991           cat <<EOF >> conftest.$ac_ext
3992 #if defined (__STDC__) && __STDC__
3993 # define lt_ptr void *
3994 #else
3995 # define lt_ptr char *
3996 # define const
3997 #endif
3998
3999 /* The mapping between symbol names and symbols. */
4000 const struct {
4001   const char *name;
4002   lt_ptr address;
4003 }
4004 lt_preloaded_symbols[] =
4005 {
4006 EOF
4007           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4008           cat <<\EOF >> conftest.$ac_ext
4009   {0, (lt_ptr) 0}
4010 };
4011
4012 #ifdef __cplusplus
4013 }
4014 #endif
4015 EOF
4016           # Now try linking the two files.
4017           mv conftest.$ac_objext conftstm.$ac_objext
4018           save_LIBS="$LIBS"
4019           save_CFLAGS="$CFLAGS"
4020           LIBS="conftstm.$ac_objext"
4021           CFLAGS="$CFLAGS$no_builtin_flag"
4022           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4023   (eval $ac_link) 2>&5
4024   ac_status=$?
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } && test -s conftest$ac_exeext; then
4027             pipe_works=yes
4028           fi
4029           LIBS="$save_LIBS"
4030           CFLAGS="$save_CFLAGS"
4031         else
4032           echo "cannot find nm_test_func in $nlist" >&5
4033         fi
4034       else
4035         echo "cannot find nm_test_var in $nlist" >&5
4036       fi
4037     else
4038       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4039     fi
4040   else
4041     echo "$progname: failed program was:" >&5
4042     cat conftest.$ac_ext >&5
4043   fi
4044   rm -f conftest* conftst*
4045
4046   # Do not use the global_symbol_pipe unless it works.
4047   if test "$pipe_works" = yes; then
4048     break
4049   else
4050     lt_cv_sys_global_symbol_pipe=
4051   fi
4052 done
4053
4054 fi
4055
4056 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4057 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4058   global_symbol_to_cdecl=
4059   global_symbol_to_c_name_address=
4060 else
4061   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4062   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4063 fi
4064 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4065 then
4066   echo "$as_me:$LINENO: result: failed" >&5
4067 echo "${ECHO_T}failed" >&6
4068 else
4069   echo "$as_me:$LINENO: result: ok" >&5
4070 echo "${ECHO_T}ok" >&6
4071 fi
4072
4073
4074 echo "$as_me:$LINENO: checking for egrep" >&5
4075 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4076 if test "${ac_cv_prog_egrep+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4080     then ac_cv_prog_egrep='grep -E'
4081     else ac_cv_prog_egrep='egrep'
4082     fi
4083 fi
4084 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4085 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4086  EGREP=$ac_cv_prog_egrep
4087
4088
4089 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4090 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4091 if test "${ac_cv_header_stdc+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h.  */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h.  */
4100 #include <stdlib.h>
4101 #include <stdarg.h>
4102 #include <string.h>
4103 #include <float.h>
4104
4105 int
4106 main ()
4107 {
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 rm -f conftest.$ac_objext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4115   (eval $ac_compile) 2>conftest.er1
4116   ac_status=$?
4117   grep -v '^ *+' conftest.er1 >conftest.err
4118   rm -f conftest.er1
4119   cat conftest.err >&5
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); } &&
4122          { ac_try='test -z "$ac_c_werror_flag"
4123                          || test ! -s conftest.err'
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); }; } &&
4129          { ac_try='test -s conftest.$ac_objext'
4130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131   (eval $ac_try) 2>&5
4132   ac_status=$?
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); }; }; then
4135   ac_cv_header_stdc=yes
4136 else
4137   echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4139
4140 ac_cv_header_stdc=no
4141 fi
4142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4143
4144 if test $ac_cv_header_stdc = yes; then
4145   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4146   cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h.  */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h.  */
4152 #include <string.h>
4153
4154 _ACEOF
4155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4156   $EGREP "memchr" >/dev/null 2>&1; then
4157   :
4158 else
4159   ac_cv_header_stdc=no
4160 fi
4161 rm -f conftest*
4162
4163 fi
4164
4165 if test $ac_cv_header_stdc = yes; then
4166   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4167   cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <stdlib.h>
4174
4175 _ACEOF
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177   $EGREP "free" >/dev/null 2>&1; then
4178   :
4179 else
4180   ac_cv_header_stdc=no
4181 fi
4182 rm -f conftest*
4183
4184 fi
4185
4186 if test $ac_cv_header_stdc = yes; then
4187   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4188   if test "$cross_compiling" = yes; then
4189   :
4190 else
4191   cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197 #include <ctype.h>
4198 #if ((' ' & 0x0FF) == 0x020)
4199 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4200 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4201 #else
4202 # define ISLOWER(c) \
4203                    (('a' <= (c) && (c) <= 'i') \
4204                      || ('j' <= (c) && (c) <= 'r') \
4205                      || ('s' <= (c) && (c) <= 'z'))
4206 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4207 #endif
4208
4209 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4210 int
4211 main ()
4212 {
4213   int i;
4214   for (i = 0; i < 256; i++)
4215     if (XOR (islower (i), ISLOWER (i))
4216         || toupper (i) != TOUPPER (i))
4217       exit(2);
4218   exit (0);
4219 }
4220 _ACEOF
4221 rm -f conftest$ac_exeext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223   (eval $ac_link) 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228   (eval $ac_try) 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }; }; then
4232   :
4233 else
4234   echo "$as_me: program exited with status $ac_status" >&5
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 ( exit $ac_status )
4239 ac_cv_header_stdc=no
4240 fi
4241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4242 fi
4243 fi
4244 fi
4245 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4246 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4247 if test $ac_cv_header_stdc = yes; then
4248
4249 cat >>confdefs.h <<\_ACEOF
4250 #define STDC_HEADERS 1
4251 _ACEOF
4252
4253 fi
4254
4255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4266                   inttypes.h stdint.h unistd.h
4267 do
4268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4269 echo "$as_me:$LINENO: checking for $ac_header" >&5
4270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280 $ac_includes_default
4281
4282 #include <$ac_header>
4283 _ACEOF
4284 rm -f conftest.$ac_objext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286   (eval $ac_compile) 2>conftest.er1
4287   ac_status=$?
4288   grep -v '^ *+' conftest.er1 >conftest.err
4289   rm -f conftest.er1
4290   cat conftest.err >&5
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); } &&
4293          { ac_try='test -z "$ac_c_werror_flag"
4294                          || test ! -s conftest.err'
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); }; } &&
4300          { ac_try='test -s conftest.$ac_objext'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   eval "$as_ac_Header=yes"
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311 eval "$as_ac_Header=no"
4312 fi
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314 fi
4315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4318   cat >>confdefs.h <<_ACEOF
4319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4320 _ACEOF
4321
4322 fi
4323
4324 done
4325
4326
4327
4328 for ac_header in dlfcn.h
4329 do
4330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332   echo "$as_me:$LINENO: checking for $ac_header" >&5
4333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 fi
4337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4339 else
4340   # Is the header compilable?
4341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4343 cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349 $ac_includes_default
4350 #include <$ac_header>
4351 _ACEOF
4352 rm -f conftest.$ac_objext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354   (eval $ac_compile) 2>conftest.er1
4355   ac_status=$?
4356   grep -v '^ *+' conftest.er1 >conftest.err
4357   rm -f conftest.er1
4358   cat conftest.err >&5
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); } &&
4361          { ac_try='test -z "$ac_c_werror_flag"
4362                          || test ! -s conftest.err'
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); }; } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370   (eval $ac_try) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374   ac_header_compiler=yes
4375 else
4376   echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379 ac_header_compiler=no
4380 fi
4381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4383 echo "${ECHO_T}$ac_header_compiler" >&6
4384
4385 # Is the header present?
4386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h.  */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h.  */
4394 #include <$ac_header>
4395 _ACEOF
4396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4398   ac_status=$?
4399   grep -v '^ *+' conftest.er1 >conftest.err
4400   rm -f conftest.er1
4401   cat conftest.err >&5
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); } >/dev/null; then
4404   if test -s conftest.err; then
4405     ac_cpp_err=$ac_c_preproc_warn_flag
4406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4407   else
4408     ac_cpp_err=
4409   fi
4410 else
4411   ac_cpp_err=yes
4412 fi
4413 if test -z "$ac_cpp_err"; then
4414   ac_header_preproc=yes
4415 else
4416   echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419   ac_header_preproc=no
4420 fi
4421 rm -f conftest.err conftest.$ac_ext
4422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4423 echo "${ECHO_T}$ac_header_preproc" >&6
4424
4425 # So?  What about this header?
4426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4427   yes:no: )
4428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4432     ac_header_preproc=yes
4433     ;;
4434   no:yes:* )
4435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4437     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4438 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4439     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4441     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4442 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4445     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4447     (
4448       cat <<\_ASBOX
4449 ## ------------------------------------------ ##
4450 ## Report this to the AC_PACKAGE_NAME lists.  ##
4451 ## ------------------------------------------ ##
4452 _ASBOX
4453     ) |
4454       sed "s/^/$as_me: WARNING:     /" >&2
4455     ;;
4456 esac
4457 echo "$as_me:$LINENO: checking for $ac_header" >&5
4458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   eval "$as_ac_Header=\$ac_header_preproc"
4463 fi
4464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4466
4467 fi
4468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4469   cat >>confdefs.h <<_ACEOF
4470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4471 _ACEOF
4472
4473 fi
4474
4475 done
4476
4477
4478
4479
4480
4481
4482 # Only perform the check for file, if the check method requires it
4483 case $deplibs_check_method in
4484 file_magic*)
4485   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4486     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4487 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   case $MAGIC_CMD in
4492   /*)
4493   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4494   ;;
4495   ?:/*)
4496   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4497   ;;
4498   *)
4499   ac_save_MAGIC_CMD="$MAGIC_CMD"
4500   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4501   ac_dummy="/usr/bin:$PATH"
4502   for ac_dir in $ac_dummy; do
4503     test -z "$ac_dir" && ac_dir=.
4504     if test -f $ac_dir/${ac_tool_prefix}file; then
4505       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4506       if test -n "$file_magic_test_file"; then
4507         case $deplibs_check_method in
4508         "file_magic "*)
4509           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4510           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4511           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4512             egrep "$file_magic_regex" > /dev/null; then
4513             :
4514           else
4515             cat <<EOF 1>&2
4516
4517 *** Warning: the command libtool uses to detect shared libraries,
4518 *** $file_magic_cmd, produces output that libtool cannot recognize.
4519 *** The result is that libtool may fail to recognize shared libraries
4520 *** as such.  This will affect the creation of libtool libraries that
4521 *** depend on shared libraries, but programs linked with such libtool
4522 *** libraries will work regardless of this problem.  Nevertheless, you
4523 *** may want to report the problem to your system manager and/or to
4524 *** bug-libtool@gnu.org
4525
4526 EOF
4527           fi ;;
4528         esac
4529       fi
4530       break
4531     fi
4532   done
4533   IFS="$ac_save_ifs"
4534   MAGIC_CMD="$ac_save_MAGIC_CMD"
4535   ;;
4536 esac
4537 fi
4538
4539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4540 if test -n "$MAGIC_CMD"; then
4541   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4542 echo "${ECHO_T}$MAGIC_CMD" >&6
4543 else
4544   echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546 fi
4547
4548 if test -z "$lt_cv_path_MAGIC_CMD"; then
4549   if test -n "$ac_tool_prefix"; then
4550     echo "$as_me:$LINENO: checking for file" >&5
4551 echo $ECHO_N "checking for file... $ECHO_C" >&6
4552 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   case $MAGIC_CMD in
4556   /*)
4557   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4558   ;;
4559   ?:/*)
4560   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4561   ;;
4562   *)
4563   ac_save_MAGIC_CMD="$MAGIC_CMD"
4564   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4565   ac_dummy="/usr/bin:$PATH"
4566   for ac_dir in $ac_dummy; do
4567     test -z "$ac_dir" && ac_dir=.
4568     if test -f $ac_dir/file; then
4569       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4570       if test -n "$file_magic_test_file"; then
4571         case $deplibs_check_method in
4572         "file_magic "*)
4573           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4574           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4575           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4576             egrep "$file_magic_regex" > /dev/null; then
4577             :
4578           else
4579             cat <<EOF 1>&2
4580
4581 *** Warning: the command libtool uses to detect shared libraries,
4582 *** $file_magic_cmd, produces output that libtool cannot recognize.
4583 *** The result is that libtool may fail to recognize shared libraries
4584 *** as such.  This will affect the creation of libtool libraries that
4585 *** depend on shared libraries, but programs linked with such libtool
4586 *** libraries will work regardless of this problem.  Nevertheless, you
4587 *** may want to report the problem to your system manager and/or to
4588 *** bug-libtool@gnu.org
4589
4590 EOF
4591           fi ;;
4592         esac
4593       fi
4594       break
4595     fi
4596   done
4597   IFS="$ac_save_ifs"
4598   MAGIC_CMD="$ac_save_MAGIC_CMD"
4599   ;;
4600 esac
4601 fi
4602
4603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4604 if test -n "$MAGIC_CMD"; then
4605   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4606 echo "${ECHO_T}$MAGIC_CMD" >&6
4607 else
4608   echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6
4610 fi
4611
4612   else
4613     MAGIC_CMD=:
4614   fi
4615 fi
4616
4617   fi
4618   ;;
4619 esac
4620
4621 if test -n "$ac_tool_prefix"; then
4622   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4623 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4624 echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4626 if test "${ac_cv_prog_RANLIB+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   if test -n "$RANLIB"; then
4630   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637   for ac_exec_ext in '' $ac_executable_extensions; do
4638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641     break 2
4642   fi
4643 done
4644 done
4645
4646 fi
4647 fi
4648 RANLIB=$ac_cv_prog_RANLIB
4649 if test -n "$RANLIB"; then
4650   echo "$as_me:$LINENO: result: $RANLIB" >&5
4651 echo "${ECHO_T}$RANLIB" >&6
4652 else
4653   echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4655 fi
4656
4657 fi
4658 if test -z "$ac_cv_prog_RANLIB"; then
4659   ac_ct_RANLIB=$RANLIB
4660   # Extract the first word of "ranlib", so it can be a program name with args.
4661 set dummy ranlib; ac_word=$2
4662 echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   if test -n "$ac_ct_RANLIB"; then
4668   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677     ac_cv_prog_ac_ct_RANLIB="ranlib"
4678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679     break 2
4680   fi
4681 done
4682 done
4683
4684   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4685 fi
4686 fi
4687 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4688 if test -n "$ac_ct_RANLIB"; then
4689   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4690 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4691 else
4692   echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4694 fi
4695
4696   RANLIB=$ac_ct_RANLIB
4697 else
4698   RANLIB="$ac_cv_prog_RANLIB"
4699 fi
4700
4701 if test -n "$ac_tool_prefix"; then
4702   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4703 set dummy ${ac_tool_prefix}strip; ac_word=$2
4704 echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4706 if test "${ac_cv_prog_STRIP+set}" = set; then
4707   echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709   if test -n "$STRIP"; then
4710   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4711 else
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717   for ac_exec_ext in '' $ac_executable_extensions; do
4718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724 done
4725
4726 fi
4727 fi
4728 STRIP=$ac_cv_prog_STRIP
4729 if test -n "$STRIP"; then
4730   echo "$as_me:$LINENO: result: $STRIP" >&5
4731 echo "${ECHO_T}$STRIP" >&6
4732 else
4733   echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4735 fi
4736
4737 fi
4738 if test -z "$ac_cv_prog_STRIP"; then
4739   ac_ct_STRIP=$STRIP
4740   # Extract the first word of "strip", so it can be a program name with args.
4741 set dummy strip; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   if test -n "$ac_ct_STRIP"; then
4748   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757     ac_cv_prog_ac_ct_STRIP="strip"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763
4764   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4765 fi
4766 fi
4767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4768 if test -n "$ac_ct_STRIP"; then
4769   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4770 echo "${ECHO_T}$ac_ct_STRIP" >&6
4771 else
4772   echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4774 fi
4775
4776   STRIP=$ac_ct_STRIP
4777 else
4778   STRIP="$ac_cv_prog_STRIP"
4779 fi
4780
4781
4782 enable_dlopen=no
4783 enable_win32_dll=no
4784
4785 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4786 if test "${enable_libtool_lock+set}" = set; then
4787   enableval="$enable_libtool_lock"
4788
4789 fi;
4790 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4791
4792 # Some flags need to be propagated to the compiler or linker for good
4793 # libtool support.
4794 case $host in
4795 *-*-irix6*)
4796   # Find out which ABI we are using.
4797   echo '#line 4797 "configure"' > conftest.$ac_ext
4798   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799   (eval $ac_compile) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; then
4803     case `/usr/bin/file conftest.$ac_objext` in
4804     *32-bit*)
4805       LD="${LD-ld} -32"
4806       ;;
4807     *N32*)
4808       LD="${LD-ld} -n32"
4809       ;;
4810     *64-bit*)
4811       LD="${LD-ld} -64"
4812       ;;
4813     esac
4814   fi
4815   rm -rf conftest*
4816   ;;
4817
4818 *-*-linux*)
4819   # Test if the compiler is 64bit
4820   echo 'int i;' > conftest.$ac_ext
4821   lt_cv_cc_64bit_output=no
4822   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823   (eval $ac_compile) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; then
4827     case `/usr/bin/file conftest.$ac_objext` in
4828     *"ELF 64"*)
4829       lt_cv_cc_64bit_output=yes
4830       ;;
4831     esac
4832   fi
4833   rm -rf conftest*
4834   ;;
4835
4836 *-*-sco3.2v5*)
4837   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4838   SAVE_CFLAGS="$CFLAGS"
4839   CFLAGS="$CFLAGS -belf"
4840   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4841 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4842 if test "${lt_cv_cc_needs_belf+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845
4846
4847      ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852
4853      cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859
4860 int
4861 main ()
4862 {
4863
4864   ;
4865   return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext conftest$ac_exeext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4870   (eval $ac_link) 2>conftest.er1
4871   ac_status=$?
4872   grep -v '^ *+' conftest.er1 >conftest.err
4873   rm -f conftest.er1
4874   cat conftest.err >&5
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); } &&
4877          { ac_try='test -z "$ac_c_werror_flag"
4878                          || test ! -s conftest.err'
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); }; } &&
4884          { ac_try='test -s conftest$ac_exeext'
4885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886   (eval $ac_try) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); }; }; then
4890   lt_cv_cc_needs_belf=yes
4891 else
4892   echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 lt_cv_cc_needs_belf=no
4896 fi
4897 rm -f conftest.err conftest.$ac_objext \
4898       conftest$ac_exeext conftest.$ac_ext
4899      ac_ext=c
4900 ac_cpp='$CPP $CPPFLAGS'
4901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4904
4905 fi
4906 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4907 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4908   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4909     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4910     CFLAGS="$SAVE_CFLAGS"
4911   fi
4912   ;;
4913
4914
4915 esac
4916
4917 # Sed substitution that helps us do robust quoting.  It backslashifies
4918 # metacharacters that are still active within double-quoted strings.
4919 Xsed='sed -e s/^X//'
4920 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4921
4922 # Same as above, but do not quote variable references.
4923 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4924
4925 # Sed substitution to delay expansion of an escaped shell variable in a
4926 # double_quote_subst'ed string.
4927 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4928
4929 # Constants:
4930 rm="rm -f"
4931
4932 # Global variables:
4933 default_ofile=libtool
4934 can_build_shared=yes
4935
4936 # All known linkers require a `.a' archive for static linking (except M$VC,
4937 # which needs '.lib').
4938 libext=a
4939 ltmain="$ac_aux_dir/ltmain.sh"
4940 ofile="$default_ofile"
4941 with_gnu_ld="$lt_cv_prog_gnu_ld"
4942 need_locks="$enable_libtool_lock"
4943
4944 old_CC="$CC"
4945 old_CFLAGS="$CFLAGS"
4946
4947 # Set sane defaults for various variables
4948 test -z "$AR" && AR=ar
4949 test -z "$AR_FLAGS" && AR_FLAGS=cru
4950 test -z "$AS" && AS=as
4951 test -z "$CC" && CC=cc
4952 test -z "$DLLTOOL" && DLLTOOL=dlltool
4953 test -z "$LD" && LD=ld
4954 test -z "$LN_S" && LN_S="ln -s"
4955 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4956 test -z "$NM" && NM=nm
4957 test -z "$OBJDUMP" && OBJDUMP=objdump
4958 test -z "$RANLIB" && RANLIB=:
4959 test -z "$STRIP" && STRIP=:
4960 test -z "$ac_objext" && ac_objext=o
4961
4962 if test x"$host" != x"$build"; then
4963   ac_tool_prefix=${host_alias}-
4964 else
4965   ac_tool_prefix=
4966 fi
4967
4968 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4969 case $host_os in
4970 linux-gnu*) ;;
4971 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4972 esac
4973
4974 case $host_os in
4975 aix3*)
4976   # AIX sometimes has problems with the GCC collect2 program.  For some
4977   # reason, if we set the COLLECT_NAMES environment variable, the problems
4978   # vanish in a puff of smoke.
4979   if test "X${COLLECT_NAMES+set}" != Xset; then
4980     COLLECT_NAMES=
4981     export COLLECT_NAMES
4982   fi
4983   ;;
4984 esac
4985
4986 # Determine commands to create old-style static archives.
4987 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4988 old_postinstall_cmds='chmod 644 $oldlib'
4989 old_postuninstall_cmds=
4990
4991 if test -n "$RANLIB"; then
4992   case $host_os in
4993   openbsd*)
4994     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4995     ;;
4996   *)
4997     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4998     ;;
4999   esac
5000   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5001 fi
5002
5003 # Allow CC to be a program name with arguments.
5004 set dummy $CC
5005 compiler="$2"
5006
5007 echo "$as_me:$LINENO: checking for objdir" >&5
5008 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5009 rm -f .libs 2>/dev/null
5010 mkdir .libs 2>/dev/null
5011 if test -d .libs; then
5012   objdir=.libs
5013 else
5014   # MS-DOS does not allow filenames that begin with a dot.
5015   objdir=_libs
5016 fi
5017 rmdir .libs 2>/dev/null
5018 echo "$as_me:$LINENO: result: $objdir" >&5
5019 echo "${ECHO_T}$objdir" >&6
5020
5021
5022
5023 # Check whether --with-pic or --without-pic was given.
5024 if test "${with_pic+set}" = set; then
5025   withval="$with_pic"
5026   pic_mode="$withval"
5027 else
5028   pic_mode=default
5029 fi;
5030 test -z "$pic_mode" && pic_mode=default
5031
5032 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5033 # in isolation, and that seeing it set (from the cache) indicates that
5034 # the associated values are set (in the cache) correctly too.
5035 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5036 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5037 if test "${lt_cv_prog_cc_pic+set}" = set; then
5038   echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040    lt_cv_prog_cc_pic=
5041   lt_cv_prog_cc_shlib=
5042   lt_cv_prog_cc_wl=
5043   lt_cv_prog_cc_static=
5044   lt_cv_prog_cc_no_builtin=
5045   lt_cv_prog_cc_can_build_shared=$can_build_shared
5046
5047   if test "$GCC" = yes; then
5048     lt_cv_prog_cc_wl='-Wl,'
5049     lt_cv_prog_cc_static='-static'
5050
5051     case $host_os in
5052     aix*)
5053       # Below there is a dirty hack to force normal static linking with -ldl
5054       # The problem is because libdl dynamically linked with both libc and
5055       # libC (AIX C++ library), which obviously doesn't included in libraries
5056       # list by gcc. This cause undefined symbols with -static flags.
5057       # This hack allows C programs to be linked with "-static -ldl", but
5058       # not sure about C++ programs.
5059       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5060       ;;
5061     amigaos*)
5062       # FIXME: we need at least 68020 code to build shared libraries, but
5063       # adding the `-m68020' flag to GCC prevents building anything better,
5064       # like `-m68040'.
5065       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5066       ;;
5067     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5068       # PIC is the default for these OSes.
5069       ;;
5070     darwin* | rhapsody*)
5071       # PIC is the default on this platform
5072       # Common symbols not allowed in MH_DYLIB files
5073       lt_cv_prog_cc_pic='-fno-common'
5074       ;;
5075     cygwin* | mingw* | pw32* | os2*)
5076       # This hack is so that the source file can tell whether it is being
5077       # built for inclusion in a dll (and should export symbols for example).
5078       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5079       ;;
5080     sysv4*MP*)
5081       if test -d /usr/nec; then
5082          lt_cv_prog_cc_pic=-Kconform_pic
5083       fi
5084       ;;
5085     *)
5086       lt_cv_prog_cc_pic='-fPIC'
5087       ;;
5088     esac
5089   else
5090     # PORTME Check for PIC flags for the system compiler.
5091     case $host_os in
5092     aix3* | aix4* | aix5*)
5093       lt_cv_prog_cc_wl='-Wl,'
5094       # All AIX code is PIC.
5095       if test "$host_cpu" = ia64; then
5096         # AIX 5 now supports IA64 processor
5097         lt_cv_prog_cc_static='-Bstatic'
5098       else
5099         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5100       fi
5101       ;;
5102
5103     hpux9* | hpux10* | hpux11*)
5104       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5105       lt_cv_prog_cc_wl='-Wl,'
5106       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5107       lt_cv_prog_cc_pic='+Z'
5108       ;;
5109
5110     irix5* | irix6* | nonstopux*)
5111       lt_cv_prog_cc_wl='-Wl,'
5112       lt_cv_prog_cc_static='-non_shared'
5113       # PIC (with -KPIC) is the default.
5114       ;;
5115
5116     cygwin* | mingw* | pw32* | os2*)
5117       # This hack is so that the source file can tell whether it is being
5118       # built for inclusion in a dll (and should export symbols for example).
5119       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5120       ;;
5121
5122     newsos6)
5123       lt_cv_prog_cc_pic='-KPIC'
5124       lt_cv_prog_cc_static='-Bstatic'
5125       ;;
5126
5127     osf3* | osf4* | osf5*)
5128       # All OSF/1 code is PIC.
5129       lt_cv_prog_cc_wl='-Wl,'
5130       lt_cv_prog_cc_static='-non_shared'
5131       ;;
5132
5133     sco3.2v5*)
5134       lt_cv_prog_cc_pic='-Kpic'
5135       lt_cv_prog_cc_static='-dn'
5136       lt_cv_prog_cc_shlib='-belf'
5137       ;;
5138
5139     solaris*)
5140       lt_cv_prog_cc_pic='-KPIC'
5141       lt_cv_prog_cc_static='-Bstatic'
5142       lt_cv_prog_cc_wl='-Wl,'
5143       ;;
5144
5145     sunos4*)
5146       lt_cv_prog_cc_pic='-PIC'
5147       lt_cv_prog_cc_static='-Bstatic'
5148       lt_cv_prog_cc_wl='-Qoption ld '
5149       ;;
5150
5151     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5152       lt_cv_prog_cc_pic='-KPIC'
5153       lt_cv_prog_cc_static='-Bstatic'
5154       lt_cv_prog_cc_wl='-Wl,'
5155       ;;
5156
5157     uts4*)
5158       lt_cv_prog_cc_pic='-pic'
5159       lt_cv_prog_cc_static='-Bstatic'
5160       ;;
5161
5162     sysv4*MP*)
5163       if test -d /usr/nec ;then
5164         lt_cv_prog_cc_pic='-Kconform_pic'
5165         lt_cv_prog_cc_static='-Bstatic'
5166       fi
5167       ;;
5168
5169     *)
5170       lt_cv_prog_cc_can_build_shared=no
5171       ;;
5172     esac
5173   fi
5174
5175 fi
5176
5177 if test -z "$lt_cv_prog_cc_pic"; then
5178   echo "$as_me:$LINENO: result: none" >&5
5179 echo "${ECHO_T}none" >&6
5180 else
5181   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5182 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5183
5184   # Check to make sure the pic_flag actually works.
5185   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5186 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5187   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190       save_CFLAGS="$CFLAGS"
5191     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5192     cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h.  */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198
5199 int
5200 main ()
5201 {
5202
5203   ;
5204   return 0;
5205 }
5206 _ACEOF
5207 rm -f conftest.$ac_objext
5208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5209   (eval $ac_compile) 2>conftest.er1
5210   ac_status=$?
5211   grep -v '^ *+' conftest.er1 >conftest.err
5212   rm -f conftest.er1
5213   cat conftest.err >&5
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); } &&
5216          { ac_try='test -z "$ac_c_werror_flag"
5217                          || test ! -s conftest.err'
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); }; } &&
5223          { ac_try='test -s conftest.$ac_objext'
5224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225   (eval $ac_try) 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); }; }; then
5229         case $host_os in
5230       hpux9* | hpux10* | hpux11*)
5231         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5232         # they create non-PIC objects.  So, if there were any warnings, we
5233         # assume that PIC is not supported.
5234         if test -s conftest.err; then
5235           lt_cv_prog_cc_pic_works=no
5236         else
5237           lt_cv_prog_cc_pic_works=yes
5238         fi
5239         ;;
5240       *)
5241         lt_cv_prog_cc_pic_works=yes
5242         ;;
5243       esac
5244
5245 else
5246   echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249       lt_cv_prog_cc_pic_works=no
5250
5251 fi
5252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5253     CFLAGS="$save_CFLAGS"
5254
5255 fi
5256
5257
5258   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5259     lt_cv_prog_cc_pic=
5260     lt_cv_prog_cc_can_build_shared=no
5261   else
5262     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5263   fi
5264
5265   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5266 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5267 fi
5268
5269 # Check for any special shared library compilation flags.
5270 if test -n "$lt_cv_prog_cc_shlib"; then
5271   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5272 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5273   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5274   else
5275    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5276 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5277     lt_cv_prog_cc_can_build_shared=no
5278   fi
5279 fi
5280
5281 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5282 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5283 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286     lt_cv_prog_cc_static_works=no
5287   save_LDFLAGS="$LDFLAGS"
5288   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5289   cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h.  */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h.  */
5295
5296 int
5297 main ()
5298 {
5299
5300   ;
5301   return 0;
5302 }
5303 _ACEOF
5304 rm -f conftest.$ac_objext conftest$ac_exeext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5306   (eval $ac_link) 2>conftest.er1
5307   ac_status=$?
5308   grep -v '^ *+' conftest.er1 >conftest.err
5309   rm -f conftest.er1
5310   cat conftest.err >&5
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -z "$ac_c_werror_flag"
5314                          || test ! -s conftest.err'
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); }; } &&
5320          { ac_try='test -s conftest$ac_exeext'
5321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322   (eval $ac_try) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); }; }; then
5326   lt_cv_prog_cc_static_works=yes
5327 else
5328   echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 fi
5332 rm -f conftest.err conftest.$ac_objext \
5333       conftest$ac_exeext conftest.$ac_ext
5334   LDFLAGS="$save_LDFLAGS"
5335
5336 fi
5337
5338
5339 # Belt *and* braces to stop my trousers falling down:
5340 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5341 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5342 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5343
5344 pic_flag="$lt_cv_prog_cc_pic"
5345 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5346 wl="$lt_cv_prog_cc_wl"
5347 link_static_flag="$lt_cv_prog_cc_static"
5348 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5349 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5350
5351
5352 # Check to see if options -o and -c are simultaneously supported by compiler
5353 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5354 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5355 if test "${lt_cv_compiler_c_o+set}" = set; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358
5359 $rm -r conftest 2>/dev/null
5360 mkdir conftest
5361 cd conftest
5362 echo "int some_variable = 0;" > conftest.$ac_ext
5363 mkdir out
5364 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5365 # that will create temporary files in the current directory regardless of
5366 # the output directory.  Thus, making CWD read-only will cause this test
5367 # to fail, enabling locking or at least warning the user not to do parallel
5368 # builds.
5369 chmod -w .
5370 save_CFLAGS="$CFLAGS"
5371 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5372 compiler_c_o=no
5373 if { (eval echo configure:5373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5374   # The compiler can only warn and ignore the option if not recognized
5375   # So say no if there are warnings
5376   if test -s out/conftest.err; then
5377     lt_cv_compiler_c_o=no
5378   else
5379     lt_cv_compiler_c_o=yes
5380   fi
5381 else
5382   # Append any errors to the config.log.
5383   cat out/conftest.err 1>&5
5384   lt_cv_compiler_c_o=no
5385 fi
5386 CFLAGS="$save_CFLAGS"
5387 chmod u+w .
5388 $rm conftest* out/*
5389 rmdir out
5390 cd ..
5391 rmdir conftest
5392 $rm -r conftest 2>/dev/null
5393
5394 fi
5395
5396 compiler_c_o=$lt_cv_compiler_c_o
5397 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5398 echo "${ECHO_T}$compiler_c_o" >&6
5399
5400 if test x"$compiler_c_o" = x"yes"; then
5401   # Check to see if we can write to a .lo
5402   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5403 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5404   if test "${lt_cv_compiler_o_lo+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407
5408   lt_cv_compiler_o_lo=no
5409   save_CFLAGS="$CFLAGS"
5410   CFLAGS="$CFLAGS -c -o conftest.lo"
5411   save_objext="$ac_objext"
5412   ac_objext=lo
5413   cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h.  */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h.  */
5419
5420 int
5421 main ()
5422 {
5423 int some_variable = 0;
5424   ;
5425   return 0;
5426 }
5427 _ACEOF
5428 rm -f conftest.$ac_objext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430   (eval $ac_compile) 2>conftest.er1
5431   ac_status=$?
5432   grep -v '^ *+' conftest.er1 >conftest.err
5433   rm -f conftest.er1
5434   cat conftest.err >&5
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); } &&
5437          { ac_try='test -z "$ac_c_werror_flag"
5438                          || test ! -s conftest.err'
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); }; } &&
5444          { ac_try='test -s conftest.$ac_objext'
5445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446   (eval $ac_try) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; }; then
5450       # The compiler can only warn and ignore the option if not recognized
5451     # So say no if there are warnings
5452     if test -s conftest.err; then
5453       lt_cv_compiler_o_lo=no
5454     else
5455       lt_cv_compiler_o_lo=yes
5456     fi
5457
5458 else
5459   echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5461
5462 fi
5463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464   ac_objext="$save_objext"
5465   CFLAGS="$save_CFLAGS"
5466
5467 fi
5468
5469   compiler_o_lo=$lt_cv_compiler_o_lo
5470   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5471 echo "${ECHO_T}$compiler_o_lo" >&6
5472 else
5473   compiler_o_lo=no
5474 fi
5475
5476 # Check to see if we can do hard links to lock some files if needed
5477 hard_links="nottested"
5478 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5479   # do not overwrite the value of need_locks provided by the user
5480   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5482   hard_links=yes
5483   $rm conftest*
5484   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5485   touch conftest.a
5486   ln conftest.a conftest.b 2>&5 || hard_links=no
5487   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5488   echo "$as_me:$LINENO: result: $hard_links" >&5
5489 echo "${ECHO_T}$hard_links" >&6
5490   if test "$hard_links" = no; then
5491     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5493     need_locks=warn
5494   fi
5495 else
5496   need_locks=no
5497 fi
5498
5499 if test "$GCC" = yes; then
5500   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5501   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5502 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5503   echo "int some_variable = 0;" > conftest.$ac_ext
5504   save_CFLAGS="$CFLAGS"
5505   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5506   compiler_rtti_exceptions=no
5507   cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513
5514 int
5515 main ()
5516 {
5517 int some_variable = 0;
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524   (eval $ac_compile) 2>conftest.er1
5525   ac_status=$?
5526   grep -v '^ *+' conftest.er1 >conftest.err
5527   rm -f conftest.er1
5528   cat conftest.err >&5
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } &&
5531          { ac_try='test -z "$ac_c_werror_flag"
5532                          || test ! -s conftest.err'
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); }; } &&
5538          { ac_try='test -s conftest.$ac_objext'
5539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540   (eval $ac_try) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }; }; then
5544       # The compiler can only warn and ignore the option if not recognized
5545     # So say no if there are warnings
5546     if test -s conftest.err; then
5547       compiler_rtti_exceptions=no
5548     else
5549       compiler_rtti_exceptions=yes
5550     fi
5551
5552 else
5553   echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 fi
5557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5558   CFLAGS="$save_CFLAGS"
5559   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5560 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5561
5562   if test "$compiler_rtti_exceptions" = "yes"; then
5563     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5564   else
5565     no_builtin_flag=' -fno-builtin'
5566   fi
5567 fi
5568
5569 # See if the linker supports building shared libraries.
5570 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5571 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5572
5573 allow_undefined_flag=
5574 no_undefined_flag=
5575 need_lib_prefix=unknown
5576 need_version=unknown
5577 # when you set need_version to no, make sure it does not cause -set_version
5578 # flags to be left without arguments
5579 archive_cmds=
5580 archive_expsym_cmds=
5581 old_archive_from_new_cmds=
5582 old_archive_from_expsyms_cmds=
5583 export_dynamic_flag_spec=
5584 whole_archive_flag_spec=
5585 thread_safe_flag_spec=
5586 hardcode_into_libs=no
5587 hardcode_libdir_flag_spec=
5588 hardcode_libdir_separator=
5589 hardcode_direct=no
5590 hardcode_minus_L=no
5591 hardcode_shlibpath_var=unsupported
5592 runpath_var=
5593 link_all_deplibs=unknown
5594 always_export_symbols=no
5595 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5596 # include_expsyms should be a list of space-separated symbols to be *always*
5597 # included in the symbol list
5598 include_expsyms=
5599 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5600 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5601 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5602 # as well as any symbol that contains `d'.
5603 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5604 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5605 # platforms (ab)use it in PIC code, but their linkers get confused if
5606 # the symbol is explicitly referenced.  Since portable code cannot
5607 # rely on this symbol name, it's probably fine to never include it in
5608 # preloaded symbol tables.
5609 extract_expsyms_cmds=
5610
5611 case $host_os in
5612 cygwin* | mingw* | pw32*)
5613   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5614   # When not using gcc, we currently assume that we are using
5615   # Microsoft Visual C++.
5616   if test "$GCC" != yes; then
5617     with_gnu_ld=no
5618   fi
5619   ;;
5620 openbsd*)
5621   with_gnu_ld=no
5622   ;;
5623 esac
5624
5625 ld_shlibs=yes
5626 if test "$with_gnu_ld" = yes; then
5627   # If archive_cmds runs LD, not CC, wlarc should be empty
5628   wlarc='${wl}'
5629
5630   # See if GNU ld supports shared libraries.
5631   case $host_os in
5632   aix3* | aix4* | aix5*)
5633     # On AIX, the GNU linker is very broken
5634     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5635     ld_shlibs=no
5636     cat <<EOF 1>&2
5637
5638 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5639 *** to be unable to reliably create shared libraries on AIX.
5640 *** Therefore, libtool is disabling shared libraries support.  If you
5641 *** really care for shared libraries, you may want to modify your PATH
5642 *** so that a non-GNU linker is found, and then restart.
5643
5644 EOF
5645     ;;
5646
5647   amigaos*)
5648     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)'
5649     hardcode_libdir_flag_spec='-L$libdir'
5650     hardcode_minus_L=yes
5651
5652     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5653     # that the semantics of dynamic libraries on AmigaOS, at least up
5654     # to version 4, is to share data among multiple programs linked
5655     # with the same dynamic library.  Since this doesn't match the
5656     # behavior of shared libraries on other platforms, we can use
5657     # them.
5658     ld_shlibs=no
5659     ;;
5660
5661   beos*)
5662     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5663       allow_undefined_flag=unsupported
5664       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5665       # support --undefined.  This deserves some investigation.  FIXME
5666       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5667     else
5668       ld_shlibs=no
5669     fi
5670     ;;
5671
5672   cygwin* | mingw* | pw32*)
5673     # hardcode_libdir_flag_spec is actually meaningless, as there is
5674     # no search path for DLLs.
5675     hardcode_libdir_flag_spec='-L$libdir'
5676     allow_undefined_flag=unsupported
5677     always_export_symbols=yes
5678
5679     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5680       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5681       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5682       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5683       else $CC -o impgen impgen.c ; fi)~
5684       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5685
5686     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5687
5688     # cygwin and mingw dlls have different entry points and sets of symbols
5689     # to exclude.
5690     # FIXME: what about values for MSVC?
5691     dll_entry=__cygwin_dll_entry@12
5692     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5693     case $host_os in
5694     mingw*)
5695       # mingw values
5696       dll_entry=_DllMainCRTStartup@12
5697       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5698       ;;
5699     esac
5700
5701     # mingw and cygwin differ, and it's simplest to just exclude the union
5702     # of the two symbol sets.
5703     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5704
5705     # recent cygwin and mingw systems supply a stub DllMain which the user
5706     # can override, but on older systems we have to supply one (in ltdll.c)
5707     if test "x$lt_cv_need_dllmain" = "xyes"; then
5708       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5709       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~
5710         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5711     else
5712       ltdll_obj=
5713       ltdll_cmds=
5714     fi
5715
5716     # Extract the symbol export list from an `--export-all' def file,
5717     # then regenerate the def file from the symbol export list, so that
5718     # the compiled dll only exports the symbol export list.
5719     # Be careful not to strip the DATA tag left be newer dlltools.
5720     export_symbols_cmds="$ltdll_cmds"'
5721       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5722       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5723
5724     # If the export-symbols file already is a .def file (1st line
5725     # is EXPORTS), use it as is.
5726     # If DATA tags from a recent dlltool are present, honour them!
5727     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5728         cp $export_symbols $output_objdir/$soname-def;
5729       else
5730         echo EXPORTS > $output_objdir/$soname-def;
5731         _lt_hint=1;
5732         cat $export_symbols | while read symbol; do
5733          set dummy \$symbol;
5734          case \$# in
5735            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5736            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5737            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5738          esac;
5739          _lt_hint=`expr 1 + \$_lt_hint`;
5740         done;
5741       fi~
5742       '"$ltdll_cmds"'
5743       $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~
5744       $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~
5745       $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~
5746       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5747       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5748     ;;
5749
5750   netbsd*)
5751     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5752       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5753       wlarc=
5754     else
5755       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5756       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5757     fi
5758     ;;
5759
5760   solaris* | sysv5*)
5761     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5762       ld_shlibs=no
5763       cat <<EOF 1>&2
5764
5765 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5766 *** create shared libraries on Solaris systems.  Therefore, libtool
5767 *** is disabling shared libraries support.  We urge you to upgrade GNU
5768 *** binutils to release 2.9.1 or newer.  Another option is to modify
5769 *** your PATH or compiler configuration so that the native linker is
5770 *** used, and then restart.
5771
5772 EOF
5773     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5774       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5775       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5776     else
5777       ld_shlibs=no
5778     fi
5779     ;;
5780
5781   sunos4*)
5782     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5783     wlarc=
5784     hardcode_direct=yes
5785     hardcode_shlibpath_var=no
5786     ;;
5787
5788   linux*)
5789     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5790       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5791       supports_anon_versioning=no
5792       case `$LD -v 2>/dev/null` in
5793         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5794         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5795         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5796         *\ 2.11.*) ;; # other 2.11 versions
5797         *) supports_anon_versioning=yes ;;
5798       esac
5799       if test $supports_anon_versioning = yes; then
5800         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5802 $echo "local: *; };" >> $output_objdir/$libname.ver~
5803         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5804       else
5805         $archive_expsym_cmds="$archive_cmds"
5806       fi
5807     else
5808       ld_shlibs=no
5809     fi
5810     ;;
5811
5812   *)
5813     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5814       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5815       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5816     else
5817       ld_shlibs=no
5818     fi
5819     ;;
5820   esac
5821
5822   if test "$ld_shlibs" = yes; then
5823     runpath_var=LD_RUN_PATH
5824     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5825     export_dynamic_flag_spec='${wl}--export-dynamic'
5826     case $host_os in
5827     cygwin* | mingw* | pw32*)
5828       # dlltool doesn't understand --whole-archive et. al.
5829       whole_archive_flag_spec=
5830       ;;
5831     *)
5832       # ancient GNU ld didn't support --whole-archive et. al.
5833       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5834         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5835       else
5836         whole_archive_flag_spec=
5837       fi
5838       ;;
5839     esac
5840   fi
5841 else
5842   # PORTME fill in a description of your system's linker (not GNU ld)
5843   case $host_os in
5844   aix3*)
5845     allow_undefined_flag=unsupported
5846     always_export_symbols=yes
5847     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'
5848     # Note: this linker hardcodes the directories in LIBPATH if there
5849     # are no directories specified by -L.
5850     hardcode_minus_L=yes
5851     if test "$GCC" = yes && test -z "$link_static_flag"; then
5852       # Neither direct hardcoding nor static linking is supported with a
5853       # broken collect2.
5854       hardcode_direct=unsupported
5855     fi
5856     ;;
5857
5858   aix4* | aix5*)
5859     if test "$host_cpu" = ia64; then
5860       # On IA64, the linker does run time linking by default, so we don't
5861       # have to do anything special.
5862       aix_use_runtimelinking=no
5863       exp_sym_flag='-Bexport'
5864       no_entry_flag=""
5865     else
5866       aix_use_runtimelinking=no
5867
5868       # Test if we are trying to use run time linking or normal
5869       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5870       # need to do runtime linking.
5871       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5872         for ld_flag in $LDFLAGS; do
5873           case $ld_flag in
5874           *-brtl*)
5875             aix_use_runtimelinking=yes
5876             break
5877           ;;
5878           esac
5879         done
5880       esac
5881
5882       exp_sym_flag='-bexport'
5883       no_entry_flag='-bnoentry'
5884     fi
5885
5886     # When large executables or shared objects are built, AIX ld can
5887     # have problems creating the table of contents.  If linking a library
5888     # or program results in "error TOC overflow" add -mminimal-toc to
5889     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5890     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5891
5892     hardcode_direct=yes
5893     archive_cmds=''
5894     hardcode_libdir_separator=':'
5895     if test "$GCC" = yes; then
5896       case $host_os in aix4.[012]|aix4.[012].*)
5897         collect2name=`${CC} -print-prog-name=collect2`
5898         if test -f "$collect2name" && \
5899           strings "$collect2name" | grep resolve_lib_name >/dev/null
5900         then
5901           # We have reworked collect2
5902           hardcode_direct=yes
5903         else
5904           # We have old collect2
5905           hardcode_direct=unsupported
5906           # It fails to find uninstalled libraries when the uninstalled
5907           # path is not listed in the libpath.  Setting hardcode_minus_L
5908           # to unsupported forces relinking
5909           hardcode_minus_L=yes
5910           hardcode_libdir_flag_spec='-L$libdir'
5911           hardcode_libdir_separator=
5912         fi
5913       esac
5914
5915       shared_flag='-shared'
5916     else
5917       # not using gcc
5918       if test "$host_cpu" = ia64; then
5919         shared_flag='${wl}-G'
5920       else
5921         if test "$aix_use_runtimelinking" = yes; then
5922           shared_flag='${wl}-G'
5923         else
5924           shared_flag='${wl}-bM:SRE'
5925         fi
5926       fi
5927     fi
5928
5929     # It seems that -bexpall can do strange things, so it is better to
5930     # generate a list of symbols to export.
5931     always_export_symbols=yes
5932     if test "$aix_use_runtimelinking" = yes; then
5933       # Warning - without using the other runtime loading flags (-brtl),
5934       # -berok will link without error, but may produce a broken library.
5935       allow_undefined_flag='-berok'
5936       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5937       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"
5938     else
5939       if test "$host_cpu" = ia64; then
5940         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5941         allow_undefined_flag="-z nodefs"
5942         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"
5943       else
5944         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5945         # Warning - without using the other run time loading flags,
5946         # -berok will link without error, but may produce a broken library.
5947         allow_undefined_flag='${wl}-berok'
5948         # This is a bit strange, but is similar to how AIX traditionally builds
5949         # it's shared libraries.
5950         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'
5951       fi
5952     fi
5953     ;;
5954
5955   amigaos*)
5956     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)'
5957     hardcode_libdir_flag_spec='-L$libdir'
5958     hardcode_minus_L=yes
5959     # see comment about different semantics on the GNU ld section
5960     ld_shlibs=no
5961     ;;
5962
5963   cygwin* | mingw* | pw32*)
5964     # When not using gcc, we currently assume that we are using
5965     # Microsoft Visual C++.
5966     # hardcode_libdir_flag_spec is actually meaningless, as there is
5967     # no search path for DLLs.
5968     hardcode_libdir_flag_spec=' '
5969     allow_undefined_flag=unsupported
5970     # Tell ltmain to make .lib files, not .a files.
5971     libext=lib
5972     # FIXME: Setting linknames here is a bad hack.
5973     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5974     # The linker will automatically build a .lib file if we build a DLL.
5975     old_archive_from_new_cmds='true'
5976     # FIXME: Should let the user specify the lib program.
5977     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5978     fix_srcfile_path='`cygpath -w "$srcfile"`'
5979     ;;
5980
5981   darwin* | rhapsody*)
5982     case "$host_os" in
5983     rhapsody* | darwin1.[012])
5984       allow_undefined_flag='-undefined suppress'
5985       ;;
5986     *) # Darwin 1.3 on
5987       allow_undefined_flag='-flat_namespace -undefined suppress'
5988       ;;
5989     esac
5990     # FIXME: Relying on posixy $() will cause problems for
5991     #        cross-compilation, but unfortunately the echo tests do not
5992     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5993     #        `"' quotes if we put them in here... so don't!
5994     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)'
5995     # We need to add '_' to the symbols in $export_symbols first
5996     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5997     hardcode_direct=yes
5998     hardcode_shlibpath_var=no
5999     whole_archive_flag_spec='-all_load $convenience'
6000     ;;
6001
6002   freebsd1*)
6003     ld_shlibs=no
6004     ;;
6005
6006   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6007   # support.  Future versions do this automatically, but an explicit c++rt0.o
6008   # does not break anything, and helps significantly (at the cost of a little
6009   # extra space).
6010   freebsd2.2*)
6011     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6012     hardcode_libdir_flag_spec='-R$libdir'
6013     hardcode_direct=yes
6014     hardcode_shlibpath_var=no
6015     ;;
6016
6017   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6018   freebsd2*)
6019     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6020     hardcode_direct=yes
6021     hardcode_minus_L=yes
6022     hardcode_shlibpath_var=no
6023     ;;
6024
6025   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6026   freebsd*)
6027     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6028     hardcode_libdir_flag_spec='-R$libdir'
6029     hardcode_direct=yes
6030     hardcode_shlibpath_var=no
6031     ;;
6032
6033   hpux9* | hpux10* | hpux11*)
6034     case $host_os in
6035     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' ;;
6036     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6037     esac
6038     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6039     hardcode_libdir_separator=:
6040     hardcode_direct=yes
6041     hardcode_minus_L=yes # Not in the search PATH, but as the default
6042                          # location of the library.
6043     export_dynamic_flag_spec='${wl}-E'
6044     ;;
6045
6046   irix5* | irix6* | nonstopux*)
6047     if test "$GCC" = yes; then
6048       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'
6049       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6050     else
6051       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'
6052       hardcode_libdir_flag_spec='-rpath $libdir'
6053     fi
6054     hardcode_libdir_separator=:
6055     link_all_deplibs=yes
6056     ;;
6057
6058   netbsd*)
6059     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6060       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6061     else
6062       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6063     fi
6064     hardcode_libdir_flag_spec='-R$libdir'
6065     hardcode_direct=yes
6066     hardcode_shlibpath_var=no
6067     ;;
6068
6069   newsos6)
6070     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6071     hardcode_direct=yes
6072     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6073     hardcode_libdir_separator=:
6074     hardcode_shlibpath_var=no
6075     ;;
6076
6077   openbsd*)
6078     hardcode_direct=yes
6079     hardcode_shlibpath_var=no
6080     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6081       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6082       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6083       export_dynamic_flag_spec='${wl}-E'
6084     else
6085       case "$host_os" in
6086       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6087         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6088         hardcode_libdir_flag_spec='-R$libdir'
6089         ;;
6090       *)
6091         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6092         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6093         ;;
6094       esac
6095     fi
6096     ;;
6097
6098   os2*)
6099     hardcode_libdir_flag_spec='-L$libdir'
6100     hardcode_minus_L=yes
6101     allow_undefined_flag=unsupported
6102     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'
6103     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6104     ;;
6105
6106   osf3*)
6107     if test "$GCC" = yes; then
6108       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6109       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'
6110     else
6111       allow_undefined_flag=' -expect_unresolved \*'
6112       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'
6113     fi
6114     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6115     hardcode_libdir_separator=:
6116     ;;
6117
6118   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6119     if test "$GCC" = yes; then
6120       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6121       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'
6122       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6123     else
6124       allow_undefined_flag=' -expect_unresolved \*'
6125       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'
6126       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6127       $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'
6128
6129       #Both c and cxx compiler support -rpath directly
6130       hardcode_libdir_flag_spec='-rpath $libdir'
6131     fi
6132     hardcode_libdir_separator=:
6133     ;;
6134
6135   sco3.2v5*)
6136     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6137     hardcode_shlibpath_var=no
6138     runpath_var=LD_RUN_PATH
6139     hardcode_runpath_var=yes
6140     export_dynamic_flag_spec='${wl}-Bexport'
6141     ;;
6142
6143   solaris*)
6144     # gcc --version < 3.0 without binutils cannot create self contained
6145     # shared libraries reliably, requiring libgcc.a to resolve some of
6146     # the object symbols generated in some cases.  Libraries that use
6147     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6148     # a copy of libgcc.a into every shared library to guarantee resolving
6149     # such symbols causes other problems:  According to Tim Van Holder
6150     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6151     # (to the application) exception stack for one thing.
6152     no_undefined_flag=' -z defs'
6153     if test "$GCC" = yes; then
6154       case `$CC --version 2>/dev/null` in
6155       [12].*)
6156         cat <<EOF 1>&2
6157
6158 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6159 *** create self contained shared libraries on Solaris systems, without
6160 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6161 *** -no-undefined support, which will at least allow you to build shared
6162 *** libraries.  However, you may find that when you link such libraries
6163 *** into an application without using GCC, you have to manually add
6164 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6165 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6166 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6167
6168 EOF
6169         no_undefined_flag=
6170         ;;
6171       esac
6172     fi
6173     # $CC -shared without GNU ld will not create a library from C++
6174     # object files and a static libstdc++, better avoid it by now
6175     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6176     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6177                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6178     hardcode_libdir_flag_spec='-R$libdir'
6179     hardcode_shlibpath_var=no
6180     case $host_os in
6181     solaris2.[0-5] | solaris2.[0-5].*) ;;
6182     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6183       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6184     esac
6185     link_all_deplibs=yes
6186     ;;
6187
6188   sunos4*)
6189     if test "x$host_vendor" = xsequent; then
6190       # Use $CC to link under sequent, because it throws in some extra .o
6191       # files that make .init and .fini sections work.
6192       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6193     else
6194       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6195     fi
6196     hardcode_libdir_flag_spec='-L$libdir'
6197     hardcode_direct=yes
6198     hardcode_minus_L=yes
6199     hardcode_shlibpath_var=no
6200     ;;
6201
6202   sysv4)
6203     case $host_vendor in
6204       sni)
6205         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6206         hardcode_direct=yes # is this really true???
6207         ;;
6208       siemens)
6209         ## LD is ld it makes a PLAMLIB
6210         ## CC just makes a GrossModule.
6211         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6212         reload_cmds='$CC -r -o $output$reload_objs'
6213         hardcode_direct=no
6214         ;;
6215       motorola)
6216         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6217         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6218         ;;
6219     esac
6220     runpath_var='LD_RUN_PATH'
6221     hardcode_shlibpath_var=no
6222     ;;
6223
6224   sysv4.3*)
6225     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6226     hardcode_shlibpath_var=no
6227     export_dynamic_flag_spec='-Bexport'
6228     ;;
6229
6230   sysv5*)
6231     no_undefined_flag=' -z text'
6232     # $CC -shared without GNU ld will not create a library from C++
6233     # object files and a static libstdc++, better avoid it by now
6234     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6235     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6236                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6237     hardcode_libdir_flag_spec=
6238     hardcode_shlibpath_var=no
6239     runpath_var='LD_RUN_PATH'
6240     ;;
6241
6242   uts4*)
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   dgux*)
6249     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6250     hardcode_libdir_flag_spec='-L$libdir'
6251     hardcode_shlibpath_var=no
6252     ;;
6253
6254   sysv4*MP*)
6255     if test -d /usr/nec; then
6256       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6257       hardcode_shlibpath_var=no
6258       runpath_var=LD_RUN_PATH
6259       hardcode_runpath_var=yes
6260       ld_shlibs=yes
6261     fi
6262     ;;
6263
6264   sysv4.2uw2*)
6265     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6266     hardcode_direct=yes
6267     hardcode_minus_L=no
6268     hardcode_shlibpath_var=no
6269     hardcode_runpath_var=yes
6270     runpath_var=LD_RUN_PATH
6271     ;;
6272
6273   sysv5uw7* | unixware7*)
6274     no_undefined_flag='${wl}-z ${wl}text'
6275     if test "$GCC" = yes; then
6276       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6277     else
6278       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6279     fi
6280     runpath_var='LD_RUN_PATH'
6281     hardcode_shlibpath_var=no
6282     ;;
6283
6284   *)
6285     ld_shlibs=no
6286     ;;
6287   esac
6288 fi
6289 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6290 echo "${ECHO_T}$ld_shlibs" >&6
6291 test "$ld_shlibs" = no && can_build_shared=no
6292
6293 # Check hardcoding attributes.
6294 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6295 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6296 hardcode_action=
6297 if test -n "$hardcode_libdir_flag_spec" || \
6298    test -n "$runpath_var"; then
6299
6300   # We can hardcode non-existant directories.
6301   if test "$hardcode_direct" != no &&
6302      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6303      # have to relink, otherwise we might link with an installed library
6304      # when we should be linking with a yet-to-be-installed one
6305      ## test "$hardcode_shlibpath_var" != no &&
6306      test "$hardcode_minus_L" != no; then
6307     # Linking always hardcodes the temporary library directory.
6308     hardcode_action=relink
6309   else
6310     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6311     hardcode_action=immediate
6312   fi
6313 else
6314   # We cannot hardcode anything, or else we can only hardcode existing
6315   # directories.
6316   hardcode_action=unsupported
6317 fi
6318 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6319 echo "${ECHO_T}$hardcode_action" >&6
6320
6321 striplib=
6322 old_striplib=
6323 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6324 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6325 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6326   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6327   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6328   echo "$as_me:$LINENO: result: yes" >&5
6329 echo "${ECHO_T}yes" >&6
6330 else
6331   echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6
6333 fi
6334
6335 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6336 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6337
6338 # PORTME Fill in your ld.so characteristics
6339 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6340 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6341 library_names_spec=
6342 libname_spec='lib$name'
6343 soname_spec=
6344 postinstall_cmds=
6345 postuninstall_cmds=
6346 finish_cmds=
6347 finish_eval=
6348 shlibpath_var=
6349 shlibpath_overrides_runpath=unknown
6350 version_type=none
6351 dynamic_linker="$host_os ld.so"
6352 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6354
6355 case $host_os in
6356 aix3*)
6357   version_type=linux
6358   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6359   shlibpath_var=LIBPATH
6360
6361   # AIX has no versioning support, so we append a major version to the name.
6362   soname_spec='${libname}${release}.so$major'
6363   ;;
6364
6365 aix4* | aix5*)
6366   version_type=linux
6367   need_lib_prefix=no
6368   need_version=no
6369   hardcode_into_libs=yes
6370   if test "$host_cpu" = ia64; then
6371     # AIX 5 supports IA64
6372     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6373     shlibpath_var=LD_LIBRARY_PATH
6374   else
6375     # With GCC up to 2.95.x, collect2 would create an import file
6376     # for dependence libraries.  The import file would start with
6377     # the line `#! .'.  This would cause the generated library to
6378     # depend on `.', always an invalid library.  This was fixed in
6379     # development snapshots of GCC prior to 3.0.
6380     case $host_os in
6381       aix4 | aix4.[01] | aix4.[01].*)
6382         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6383              echo ' yes '
6384              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6385           :
6386         else
6387           can_build_shared=no
6388         fi
6389         ;;
6390     esac
6391     # AIX (on Power*) has no versioning support, so currently we can
6392     # not hardcode correct soname into executable. Probably we can
6393     # add versioning support to collect2, so additional links can
6394     # be useful in future.
6395     if test "$aix_use_runtimelinking" = yes; then
6396       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6397       # instead of lib<name>.a to let people know that these are not
6398       # typical AIX shared libraries.
6399       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6400     else
6401       # We preserve .a as extension for shared libraries through AIX4.2
6402       # and later when we are not doing run time linking.
6403       library_names_spec='${libname}${release}.a $libname.a'
6404       soname_spec='${libname}${release}.so$major'
6405     fi
6406     shlibpath_var=LIBPATH
6407   fi
6408   hardcode_into_libs=yes
6409   ;;
6410
6411 amigaos*)
6412   library_names_spec='$libname.ixlibrary $libname.a'
6413   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6414   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'
6415   ;;
6416
6417 beos*)
6418   library_names_spec='${libname}.so'
6419   dynamic_linker="$host_os ld.so"
6420   shlibpath_var=LIBRARY_PATH
6421   ;;
6422
6423 bsdi4*)
6424   version_type=linux
6425   need_version=no
6426   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6427   soname_spec='${libname}${release}.so$major'
6428   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6429   shlibpath_var=LD_LIBRARY_PATH
6430   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6431   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6432   export_dynamic_flag_spec=-rdynamic
6433   # the default ld.so.conf also contains /usr/contrib/lib and
6434   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6435   # libtool to hard-code these into programs
6436   ;;
6437
6438 cygwin* | mingw* | pw32*)
6439   version_type=windows
6440   need_version=no
6441   need_lib_prefix=no
6442   case $GCC,$host_os in
6443   yes,cygwin*)
6444     library_names_spec='$libname.dll.a'
6445     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6446     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6447       dldir=$destdir/`dirname \$dlpath`~
6448       test -d \$dldir || mkdir -p \$dldir~
6449       $install_prog .libs/$dlname \$dldir/$dlname'
6450     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6451       dlpath=$dir/\$dldll~
6452        $rm \$dlpath'
6453     ;;
6454   yes,mingw*)
6455     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6456     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6457     ;;
6458   yes,pw32*)
6459     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6460     ;;
6461   *)
6462     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6463     ;;
6464   esac
6465   dynamic_linker='Win32 ld.exe'
6466   # FIXME: first we should search . and the directory the executable is in
6467   shlibpath_var=PATH
6468   ;;
6469
6470 darwin* | rhapsody*)
6471   dynamic_linker="$host_os dyld"
6472   version_type=darwin
6473   need_lib_prefix=no
6474   need_version=no
6475   # FIXME: Relying on posixy $() will cause problems for
6476   #        cross-compilation, but unfortunately the echo tests do not
6477   #        yet detect zsh echo's removal of \ escapes.
6478   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)'
6479   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6480   shlibpath_overrides_runpath=yes
6481   shlibpath_var=DYLD_LIBRARY_PATH
6482   ;;
6483
6484 freebsd1*)
6485   dynamic_linker=no
6486   ;;
6487
6488 freebsd*)
6489   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6490   version_type=freebsd-$objformat
6491   case $version_type in
6492     freebsd-elf*)
6493       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6494       need_version=no
6495       need_lib_prefix=no
6496       ;;
6497     freebsd-*)
6498       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6499       need_version=yes
6500       ;;
6501   esac
6502   shlibpath_var=LD_LIBRARY_PATH
6503   case $host_os in
6504   freebsd2*)
6505     shlibpath_overrides_runpath=yes
6506     ;;
6507   *)
6508     shlibpath_overrides_runpath=no
6509     hardcode_into_libs=yes
6510     ;;
6511   esac
6512   ;;
6513
6514 gnu*)
6515   version_type=linux
6516   need_lib_prefix=no
6517   need_version=no
6518   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6519   soname_spec='${libname}${release}.so$major'
6520   shlibpath_var=LD_LIBRARY_PATH
6521   hardcode_into_libs=yes
6522   ;;
6523
6524 hpux9* | hpux10* | hpux11*)
6525   # Give a soname corresponding to the major version so that dld.sl refuses to
6526   # link against other versions.
6527   dynamic_linker="$host_os dld.sl"
6528   version_type=sunos
6529   need_lib_prefix=no
6530   need_version=no
6531   shlibpath_var=SHLIB_PATH
6532   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6533   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6534   soname_spec='${libname}${release}.sl$major'
6535   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6536   postinstall_cmds='chmod 555 $lib'
6537   ;;
6538
6539 irix5* | irix6* | nonstopux*)
6540   case $host_os in
6541     nonstopux*) version_type=nonstopux ;;
6542     *)          version_type=irix ;;
6543   esac
6544   need_lib_prefix=no
6545   need_version=no
6546   soname_spec='${libname}${release}.so$major'
6547   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6548   case $host_os in
6549   irix5* | nonstopux*)
6550     libsuff= shlibsuff=
6551     ;;
6552   *)
6553     case $LD in # libtool.m4 will add one of these switches to LD
6554     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6555     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6556     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6557     *) libsuff= shlibsuff= libmagic=never-match;;
6558     esac
6559     ;;
6560   esac
6561   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6562   shlibpath_overrides_runpath=no
6563   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6564   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6565   ;;
6566
6567 # No shared lib support for Linux oldld, aout, or coff.
6568 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6569   dynamic_linker=no
6570   ;;
6571
6572 # This must be Linux ELF.
6573 linux-gnu*)
6574   version_type=linux
6575   need_lib_prefix=no
6576   need_version=no
6577   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6578   soname_spec='${libname}${release}.so$major'
6579   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6580   shlibpath_var=LD_LIBRARY_PATH
6581   shlibpath_overrides_runpath=no
6582   # This implies no fast_install, which is unacceptable.
6583   # Some rework will be needed to allow for fast_install
6584   # before this can be enabled.
6585   hardcode_into_libs=yes
6586
6587   case $host_cpu:$lt_cv_cc_64bit_output in
6588   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6589     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6590     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6591     ;;
6592   esac
6593
6594   # We used to test for /lib/ld.so.1 and disable shared libraries on
6595   # powerpc, because MkLinux only supported shared libraries with the
6596   # GNU dynamic linker.  Since this was broken with cross compilers,
6597   # most powerpc-linux boxes support dynamic linking these days and
6598   # people can always --disable-shared, the test was removed, and we
6599   # assume the GNU/Linux dynamic linker is in use.
6600   dynamic_linker='GNU/Linux ld.so'
6601
6602   # Find out which ABI we are using (multilib Linux x86_64 hack).
6603   libsuff=
6604   case "$host_cpu" in
6605   x86_64*)
6606     echo '#line 6606 "configure"' > conftest.$ac_ext
6607     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608   (eval $ac_compile) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; then
6612       case `/usr/bin/file conftest.$ac_objext` in
6613       *64-bit*)
6614         libsuff=64
6615         ;;
6616       esac
6617     fi
6618     rm -rf conftest*
6619     ;;
6620   *)
6621     ;;
6622   esac
6623   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6624   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6625   ;;
6626
6627 netbsd*)
6628   version_type=sunos
6629   need_lib_prefix=no
6630   need_version=no
6631   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6632     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6633     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6634     dynamic_linker='NetBSD (a.out) ld.so'
6635   else
6636     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6637     soname_spec='${libname}${release}.so$major'
6638     dynamic_linker='NetBSD ld.elf_so'
6639   fi
6640   shlibpath_var=LD_LIBRARY_PATH
6641   shlibpath_overrides_runpath=yes
6642   hardcode_into_libs=yes
6643   ;;
6644
6645 newsos6)
6646   version_type=linux
6647   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6648   shlibpath_var=LD_LIBRARY_PATH
6649   shlibpath_overrides_runpath=yes
6650   ;;
6651
6652 openbsd*)
6653   version_type=sunos
6654   need_lib_prefix=no
6655   need_version=no
6656   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6657     case "$host_os" in
6658     openbsd2.[89] | openbsd2.[89].*)
6659       shlibpath_overrides_runpath=no
6660       ;;
6661     *)
6662       shlibpath_overrides_runpath=yes
6663       ;;
6664     esac
6665   else
6666     shlibpath_overrides_runpath=yes
6667   fi
6668   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6669   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6670   shlibpath_var=LD_LIBRARY_PATH
6671   ;;
6672
6673 os2*)
6674   libname_spec='$name'
6675   need_lib_prefix=no
6676   library_names_spec='$libname.dll $libname.a'
6677   dynamic_linker='OS/2 ld.exe'
6678   shlibpath_var=LIBPATH
6679   ;;
6680
6681 osf3* | osf4* | osf5*)
6682   version_type=osf
6683   need_version=no
6684   soname_spec='${libname}${release}.so$major'
6685   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6686   shlibpath_var=LD_LIBRARY_PATH
6687   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6688   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6689   hardcode_into_libs=yes
6690   ;;
6691
6692 sco3.2v5*)
6693   version_type=osf
6694   soname_spec='${libname}${release}.so$major'
6695   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6696   shlibpath_var=LD_LIBRARY_PATH
6697   ;;
6698
6699 solaris*)
6700   version_type=linux
6701   need_lib_prefix=no
6702   need_version=no
6703   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6704   soname_spec='${libname}${release}.so$major'
6705   shlibpath_var=LD_LIBRARY_PATH
6706   shlibpath_overrides_runpath=yes
6707   hardcode_into_libs=yes
6708   # ldd complains unless libraries are executable
6709   postinstall_cmds='chmod +x $lib'
6710   ;;
6711
6712 sunos4*)
6713   version_type=sunos
6714   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6715   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6716   shlibpath_var=LD_LIBRARY_PATH
6717   shlibpath_overrides_runpath=yes
6718   if test "$with_gnu_ld" = yes; then
6719     need_lib_prefix=no
6720   fi
6721   need_version=yes
6722   ;;
6723
6724 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6725   version_type=linux
6726   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6727   soname_spec='${libname}${release}.so$major'
6728   shlibpath_var=LD_LIBRARY_PATH
6729   case $host_vendor in
6730     sni)
6731       shlibpath_overrides_runpath=no
6732       need_lib_prefix=no
6733       export_dynamic_flag_spec='${wl}-Blargedynsym'
6734       runpath_var=LD_RUN_PATH
6735       ;;
6736     siemens)
6737       need_lib_prefix=no
6738       ;;
6739     motorola)
6740       need_lib_prefix=no
6741       need_version=no
6742       shlibpath_overrides_runpath=no
6743       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6744       ;;
6745   esac
6746   ;;
6747
6748 uts4*)
6749   version_type=linux
6750   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6751   soname_spec='${libname}${release}.so$major'
6752   shlibpath_var=LD_LIBRARY_PATH
6753   ;;
6754
6755 dgux*)
6756   version_type=linux
6757   need_lib_prefix=no
6758   need_version=no
6759   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6760   soname_spec='${libname}${release}.so$major'
6761   shlibpath_var=LD_LIBRARY_PATH
6762   ;;
6763
6764 sysv4*MP*)
6765   if test -d /usr/nec ;then
6766     version_type=linux
6767     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6768     soname_spec='$libname.so.$major'
6769     shlibpath_var=LD_LIBRARY_PATH
6770   fi
6771   ;;
6772
6773 *)
6774   dynamic_linker=no
6775   ;;
6776 esac
6777 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6778 echo "${ECHO_T}$dynamic_linker" >&6
6779 test "$dynamic_linker" = no && can_build_shared=no
6780
6781 # Report the final consequences.
6782 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6783 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6784 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6785 echo "${ECHO_T}$can_build_shared" >&6
6786
6787 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6788 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6789 test "$can_build_shared" = "no" && enable_shared=no
6790
6791 # On AIX, shared libraries and static libraries use the same namespace, and
6792 # are all built from PIC.
6793 case "$host_os" in
6794 aix3*)
6795   test "$enable_shared" = yes && enable_static=no
6796   if test -n "$RANLIB"; then
6797     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6798     postinstall_cmds='$RANLIB $lib'
6799   fi
6800   ;;
6801
6802 aix4*)
6803   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6804     test "$enable_shared" = yes && enable_static=no
6805   fi
6806   ;;
6807 esac
6808 echo "$as_me:$LINENO: result: $enable_shared" >&5
6809 echo "${ECHO_T}$enable_shared" >&6
6810
6811 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6812 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6813 # Make sure either enable_shared or enable_static is yes.
6814 test "$enable_shared" = yes || enable_static=yes
6815 echo "$as_me:$LINENO: result: $enable_static" >&5
6816 echo "${ECHO_T}$enable_static" >&6
6817
6818 if test "$hardcode_action" = relink; then
6819   # Fast installation is not supported
6820   enable_fast_install=no
6821 elif test "$shlibpath_overrides_runpath" = yes ||
6822      test "$enable_shared" = no; then
6823   # Fast installation is not necessary
6824   enable_fast_install=needless
6825 fi
6826
6827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6828 if test "$GCC" = yes; then
6829   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6830 fi
6831
6832 if test "x$enable_dlopen" != xyes; then
6833   enable_dlopen=unknown
6834   enable_dlopen_self=unknown
6835   enable_dlopen_self_static=unknown
6836 else
6837   lt_cv_dlopen=no
6838   lt_cv_dlopen_libs=
6839
6840   case $host_os in
6841   beos*)
6842     lt_cv_dlopen="load_add_on"
6843     lt_cv_dlopen_libs=
6844     lt_cv_dlopen_self=yes
6845     ;;
6846
6847   cygwin* | mingw* | pw32*)
6848     lt_cv_dlopen="LoadLibrary"
6849     lt_cv_dlopen_libs=
6850    ;;
6851
6852   *)
6853     echo "$as_me:$LINENO: checking for shl_load" >&5
6854 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6855 if test "${ac_cv_func_shl_load+set}" = set; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858   cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h.  */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h.  */
6864 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6866 #define shl_load innocuous_shl_load
6867
6868 /* System header to define __stub macros and hopefully few prototypes,
6869     which can conflict with char shl_load (); below.
6870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6871     <limits.h> exists even on freestanding compilers.  */
6872
6873 #ifdef __STDC__
6874 # include <limits.h>
6875 #else
6876 # include <assert.h>
6877 #endif
6878
6879 #undef shl_load
6880
6881 /* Override any gcc2 internal prototype to avoid an error.  */
6882 #ifdef __cplusplus
6883 extern "C"
6884 {
6885 #endif
6886 /* We use char because int might match the return type of a gcc2
6887    builtin and then its argument prototype would still apply.  */
6888 char shl_load ();
6889 /* The GNU C library defines this for functions which it implements
6890     to always fail with ENOSYS.  Some functions are actually named
6891     something starting with __ and the normal name is an alias.  */
6892 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6893 choke me
6894 #else
6895 char (*f) () = shl_load;
6896 #endif
6897 #ifdef __cplusplus
6898 }
6899 #endif
6900
6901 int
6902 main ()
6903 {
6904 return f != shl_load;
6905   ;
6906   return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6911   (eval $ac_link) 2>conftest.er1
6912   ac_status=$?
6913   grep -v '^ *+' conftest.er1 >conftest.err
6914   rm -f conftest.er1
6915   cat conftest.err >&5
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } &&
6918          { ac_try='test -z "$ac_c_werror_flag"
6919                          || test ! -s conftest.err'
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); }; } &&
6925          { ac_try='test -s conftest$ac_exeext'
6926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927   (eval $ac_try) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); }; }; then
6931   ac_cv_func_shl_load=yes
6932 else
6933   echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 ac_cv_func_shl_load=no
6937 fi
6938 rm -f conftest.err conftest.$ac_objext \
6939       conftest$ac_exeext conftest.$ac_ext
6940 fi
6941 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6942 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6943 if test $ac_cv_func_shl_load = yes; then
6944   lt_cv_dlopen="shl_load"
6945 else
6946   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6947 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6948 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   ac_check_lib_save_LIBS=$LIBS
6952 LIBS="-ldld  $LIBS"
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959
6960 /* Override any gcc2 internal prototype to avoid an error.  */
6961 #ifdef __cplusplus
6962 extern "C"
6963 #endif
6964 /* We use char because int might match the return type of a gcc2
6965    builtin and then its argument prototype would still apply.  */
6966 char shl_load ();
6967 int
6968 main ()
6969 {
6970 shl_load ();
6971   ;
6972   return 0;
6973 }
6974 _ACEOF
6975 rm -f conftest.$ac_objext conftest$ac_exeext
6976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977   (eval $ac_link) 2>conftest.er1
6978   ac_status=$?
6979   grep -v '^ *+' conftest.er1 >conftest.err
6980   rm -f conftest.er1
6981   cat conftest.err >&5
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); } &&
6984          { ac_try='test -z "$ac_c_werror_flag"
6985                          || test ! -s conftest.err'
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); }; } &&
6991          { ac_try='test -s conftest$ac_exeext'
6992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993   (eval $ac_try) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); }; }; then
6997   ac_cv_lib_dld_shl_load=yes
6998 else
6999   echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 ac_cv_lib_dld_shl_load=no
7003 fi
7004 rm -f conftest.err conftest.$ac_objext \
7005       conftest$ac_exeext conftest.$ac_ext
7006 LIBS=$ac_check_lib_save_LIBS
7007 fi
7008 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7009 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7010 if test $ac_cv_lib_dld_shl_load = yes; then
7011   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7012 else
7013   echo "$as_me:$LINENO: checking for dlopen" >&5
7014 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7015 if test "${ac_cv_func_dlopen+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h.  */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h.  */
7024 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7026 #define dlopen innocuous_dlopen
7027
7028 /* System header to define __stub macros and hopefully few prototypes,
7029     which can conflict with char dlopen (); below.
7030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7031     <limits.h> exists even on freestanding compilers.  */
7032
7033 #ifdef __STDC__
7034 # include <limits.h>
7035 #else
7036 # include <assert.h>
7037 #endif
7038
7039 #undef dlopen
7040
7041 /* Override any gcc2 internal prototype to avoid an error.  */
7042 #ifdef __cplusplus
7043 extern "C"
7044 {
7045 #endif
7046 /* We use char because int might match the return type of a gcc2
7047    builtin and then its argument prototype would still apply.  */
7048 char dlopen ();
7049 /* The GNU C library defines this for functions which it implements
7050     to always fail with ENOSYS.  Some functions are actually named
7051     something starting with __ and the normal name is an alias.  */
7052 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7053 choke me
7054 #else
7055 char (*f) () = dlopen;
7056 #endif
7057 #ifdef __cplusplus
7058 }
7059 #endif
7060
7061 int
7062 main ()
7063 {
7064 return f != dlopen;
7065   ;
7066   return 0;
7067 }
7068 _ACEOF
7069 rm -f conftest.$ac_objext conftest$ac_exeext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071   (eval $ac_link) 2>conftest.er1
7072   ac_status=$?
7073   grep -v '^ *+' conftest.er1 >conftest.err
7074   rm -f conftest.er1
7075   cat conftest.err >&5
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } &&
7078          { ac_try='test -z "$ac_c_werror_flag"
7079                          || test ! -s conftest.err'
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); }; } &&
7085          { ac_try='test -s conftest$ac_exeext'
7086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087   (eval $ac_try) 2>&5
7088   ac_status=$?
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); }; }; then
7091   ac_cv_func_dlopen=yes
7092 else
7093   echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 ac_cv_func_dlopen=no
7097 fi
7098 rm -f conftest.err conftest.$ac_objext \
7099       conftest$ac_exeext conftest.$ac_ext
7100 fi
7101 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7102 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7103 if test $ac_cv_func_dlopen = yes; then
7104   lt_cv_dlopen="dlopen"
7105 else
7106   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7107 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7108 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111   ac_check_lib_save_LIBS=$LIBS
7112 LIBS="-ldl  $LIBS"
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h.  */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h.  */
7119
7120 /* Override any gcc2 internal prototype to avoid an error.  */
7121 #ifdef __cplusplus
7122 extern "C"
7123 #endif
7124 /* We use char because int might match the return type of a gcc2
7125    builtin and then its argument prototype would still apply.  */
7126 char dlopen ();
7127 int
7128 main ()
7129 {
7130 dlopen ();
7131   ;
7132   return 0;
7133 }
7134 _ACEOF
7135 rm -f conftest.$ac_objext conftest$ac_exeext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137   (eval $ac_link) 2>conftest.er1
7138   ac_status=$?
7139   grep -v '^ *+' conftest.er1 >conftest.err
7140   rm -f conftest.er1
7141   cat conftest.err >&5
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); } &&
7144          { ac_try='test -z "$ac_c_werror_flag"
7145                          || test ! -s conftest.err'
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); }; } &&
7151          { ac_try='test -s conftest$ac_exeext'
7152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153   (eval $ac_try) 2>&5
7154   ac_status=$?
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); }; }; then
7157   ac_cv_lib_dl_dlopen=yes
7158 else
7159   echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7161
7162 ac_cv_lib_dl_dlopen=no
7163 fi
7164 rm -f conftest.err conftest.$ac_objext \
7165       conftest$ac_exeext conftest.$ac_ext
7166 LIBS=$ac_check_lib_save_LIBS
7167 fi
7168 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7169 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7170 if test $ac_cv_lib_dl_dlopen = yes; then
7171   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7172 else
7173   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7174 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7175 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   ac_check_lib_save_LIBS=$LIBS
7179 LIBS="-lsvld  $LIBS"
7180 cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h.  */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h.  */
7186
7187 /* Override any gcc2 internal prototype to avoid an error.  */
7188 #ifdef __cplusplus
7189 extern "C"
7190 #endif
7191 /* We use char because int might match the return type of a gcc2
7192    builtin and then its argument prototype would still apply.  */
7193 char dlopen ();
7194 int
7195 main ()
7196 {
7197 dlopen ();
7198   ;
7199   return 0;
7200 }
7201 _ACEOF
7202 rm -f conftest.$ac_objext conftest$ac_exeext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7204   (eval $ac_link) 2>conftest.er1
7205   ac_status=$?
7206   grep -v '^ *+' conftest.er1 >conftest.err
7207   rm -f conftest.er1
7208   cat conftest.err >&5
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); } &&
7211          { ac_try='test -z "$ac_c_werror_flag"
7212                          || test ! -s conftest.err'
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); }; } &&
7218          { ac_try='test -s conftest$ac_exeext'
7219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220   (eval $ac_try) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; }; then
7224   ac_cv_lib_svld_dlopen=yes
7225 else
7226   echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7228
7229 ac_cv_lib_svld_dlopen=no
7230 fi
7231 rm -f conftest.err conftest.$ac_objext \
7232       conftest$ac_exeext conftest.$ac_ext
7233 LIBS=$ac_check_lib_save_LIBS
7234 fi
7235 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7236 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7237 if test $ac_cv_lib_svld_dlopen = yes; then
7238   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7239 else
7240   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7241 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7242 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   ac_check_lib_save_LIBS=$LIBS
7246 LIBS="-ldld  $LIBS"
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h.  */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h.  */
7253
7254 /* Override any gcc2 internal prototype to avoid an error.  */
7255 #ifdef __cplusplus
7256 extern "C"
7257 #endif
7258 /* We use char because int might match the return type of a gcc2
7259    builtin and then its argument prototype would still apply.  */
7260 char dld_link ();
7261 int
7262 main ()
7263 {
7264 dld_link ();
7265   ;
7266   return 0;
7267 }
7268 _ACEOF
7269 rm -f conftest.$ac_objext conftest$ac_exeext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7271   (eval $ac_link) 2>conftest.er1
7272   ac_status=$?
7273   grep -v '^ *+' conftest.er1 >conftest.err
7274   rm -f conftest.er1
7275   cat conftest.err >&5
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); } &&
7278          { ac_try='test -z "$ac_c_werror_flag"
7279                          || test ! -s conftest.err'
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); }; } &&
7285          { ac_try='test -s conftest$ac_exeext'
7286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; }; then
7291   ac_cv_lib_dld_dld_link=yes
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 ac_cv_lib_dld_dld_link=no
7297 fi
7298 rm -f conftest.err conftest.$ac_objext \
7299       conftest$ac_exeext conftest.$ac_ext
7300 LIBS=$ac_check_lib_save_LIBS
7301 fi
7302 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7303 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7304 if test $ac_cv_lib_dld_dld_link = yes; then
7305   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7306 fi
7307
7308
7309 fi
7310
7311
7312 fi
7313
7314
7315 fi
7316
7317
7318 fi
7319
7320
7321 fi
7322
7323     ;;
7324   esac
7325
7326   if test "x$lt_cv_dlopen" != xno; then
7327     enable_dlopen=yes
7328   else
7329     enable_dlopen=no
7330   fi
7331
7332   case $lt_cv_dlopen in
7333   dlopen)
7334     save_CPPFLAGS="$CPPFLAGS"
7335         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7336
7337     save_LDFLAGS="$LDFLAGS"
7338     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7339
7340     save_LIBS="$LIBS"
7341     LIBS="$lt_cv_dlopen_libs $LIBS"
7342
7343     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7344 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7345 if test "${lt_cv_dlopen_self+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348           if test "$cross_compiling" = yes; then :
7349   lt_cv_dlopen_self=cross
7350 else
7351     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7352   lt_status=$lt_dlunknown
7353   cat > conftest.$ac_ext <<EOF
7354 #line 7354 "configure"
7355 #include "confdefs.h"
7356
7357 #if HAVE_DLFCN_H
7358 #include <dlfcn.h>
7359 #endif
7360
7361 #include <stdio.h>
7362
7363 #ifdef RTLD_GLOBAL
7364 #  define LT_DLGLOBAL           RTLD_GLOBAL
7365 #else
7366 #  ifdef DL_GLOBAL
7367 #    define LT_DLGLOBAL         DL_GLOBAL
7368 #  else
7369 #    define LT_DLGLOBAL         0
7370 #  endif
7371 #endif
7372
7373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7374    find out it does not work in some platform. */
7375 #ifndef LT_DLLAZY_OR_NOW
7376 #  ifdef RTLD_LAZY
7377 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7378 #  else
7379 #    ifdef DL_LAZY
7380 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7381 #    else
7382 #      ifdef RTLD_NOW
7383 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7384 #      else
7385 #        ifdef DL_NOW
7386 #          define LT_DLLAZY_OR_NOW      DL_NOW
7387 #        else
7388 #          define LT_DLLAZY_OR_NOW      0
7389 #        endif
7390 #      endif
7391 #    endif
7392 #  endif
7393 #endif
7394
7395 #ifdef __cplusplus
7396 extern "C" void exit (int);
7397 #endif
7398
7399 void fnord() { int i=42;}
7400 int main ()
7401 {
7402   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7403   int status = $lt_dlunknown;
7404
7405   if (self)
7406     {
7407       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7408       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7409       /* dlclose (self); */
7410     }
7411
7412     exit (status);
7413 }
7414 EOF
7415   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416   (eval $ac_link) 2>&5
7417   ac_status=$?
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7420     (./conftest; exit; ) 2>/dev/null
7421     lt_status=$?
7422     case x$lt_status in
7423       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7424       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7425       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7426     esac
7427   else :
7428     # compilation failed
7429     lt_cv_dlopen_self=no
7430   fi
7431 fi
7432 rm -fr conftest*
7433
7434
7435 fi
7436 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7437 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7438
7439     if test "x$lt_cv_dlopen_self" = xyes; then
7440       LDFLAGS="$LDFLAGS $link_static_flag"
7441       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7442 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7443 if test "${lt_cv_dlopen_self_static+set}" = set; then
7444   echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446           if test "$cross_compiling" = yes; then :
7447   lt_cv_dlopen_self_static=cross
7448 else
7449     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7450   lt_status=$lt_dlunknown
7451   cat > conftest.$ac_ext <<EOF
7452 #line 7452 "configure"
7453 #include "confdefs.h"
7454
7455 #if HAVE_DLFCN_H
7456 #include <dlfcn.h>
7457 #endif
7458
7459 #include <stdio.h>
7460
7461 #ifdef RTLD_GLOBAL
7462 #  define LT_DLGLOBAL           RTLD_GLOBAL
7463 #else
7464 #  ifdef DL_GLOBAL
7465 #    define LT_DLGLOBAL         DL_GLOBAL
7466 #  else
7467 #    define LT_DLGLOBAL         0
7468 #  endif
7469 #endif
7470
7471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7472    find out it does not work in some platform. */
7473 #ifndef LT_DLLAZY_OR_NOW
7474 #  ifdef RTLD_LAZY
7475 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7476 #  else
7477 #    ifdef DL_LAZY
7478 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7479 #    else
7480 #      ifdef RTLD_NOW
7481 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7482 #      else
7483 #        ifdef DL_NOW
7484 #          define LT_DLLAZY_OR_NOW      DL_NOW
7485 #        else
7486 #          define LT_DLLAZY_OR_NOW      0
7487 #        endif
7488 #      endif
7489 #    endif
7490 #  endif
7491 #endif
7492
7493 #ifdef __cplusplus
7494 extern "C" void exit (int);
7495 #endif
7496
7497 void fnord() { int i=42;}
7498 int main ()
7499 {
7500   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7501   int status = $lt_dlunknown;
7502
7503   if (self)
7504     {
7505       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7506       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7507       /* dlclose (self); */
7508     }
7509
7510     exit (status);
7511 }
7512 EOF
7513   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7514   (eval $ac_link) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7518     (./conftest; exit; ) 2>/dev/null
7519     lt_status=$?
7520     case x$lt_status in
7521       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7522       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7523       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7524     esac
7525   else :
7526     # compilation failed
7527     lt_cv_dlopen_self_static=no
7528   fi
7529 fi
7530 rm -fr conftest*
7531
7532
7533 fi
7534 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7535 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7536     fi
7537
7538     CPPFLAGS="$save_CPPFLAGS"
7539     LDFLAGS="$save_LDFLAGS"
7540     LIBS="$save_LIBS"
7541     ;;
7542   esac
7543
7544   case $lt_cv_dlopen_self in
7545   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7546   *) enable_dlopen_self=unknown ;;
7547   esac
7548
7549   case $lt_cv_dlopen_self_static in
7550   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7551   *) enable_dlopen_self_static=unknown ;;
7552   esac
7553 fi
7554
7555
7556 if test "$enable_shared" = yes && test "$GCC" = yes; then
7557   case $archive_cmds in
7558   *'~'*)
7559     # FIXME: we may have to deal with multi-command sequences.
7560     ;;
7561   '$CC '*)
7562     # Test whether the compiler implicitly links with -lc since on some
7563     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7564     # to ld, don't add -lc before -lgcc.
7565     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7566 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7567     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   $rm conftest*
7571     echo 'static int dummy;' > conftest.$ac_ext
7572
7573     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574   (eval $ac_compile) 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); }; then
7578       soname=conftest
7579       lib=conftest
7580       libobjs=conftest.$ac_objext
7581       deplibs=
7582       wl=$lt_cv_prog_cc_wl
7583       compiler_flags=-v
7584       linker_flags=-v
7585       verstring=
7586       output_objdir=.
7587       libname=conftest
7588       save_allow_undefined_flag=$allow_undefined_flag
7589       allow_undefined_flag=
7590       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7591   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7592   ac_status=$?
7593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594   (exit $ac_status); }
7595       then
7596         lt_cv_archive_cmds_need_lc=no
7597       else
7598         lt_cv_archive_cmds_need_lc=yes
7599       fi
7600       allow_undefined_flag=$save_allow_undefined_flag
7601     else
7602       cat conftest.err 1>&5
7603     fi
7604 fi
7605
7606     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7607 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7608     ;;
7609   esac
7610 fi
7611 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7612
7613 # The second clause should only fire when bootstrapping the
7614 # libtool distribution, otherwise you forgot to ship ltmain.sh
7615 # with your package, and you will get complaints that there are
7616 # no rules to generate ltmain.sh.
7617 if test -f "$ltmain"; then
7618   :
7619 else
7620   # If there is no Makefile yet, we rely on a make rule to execute
7621   # `config.status --recheck' to rerun these tests and create the
7622   # libtool script then.
7623   test -f Makefile && make "$ltmain"
7624 fi
7625
7626 if test -f "$ltmain"; then
7627   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7628   $rm -f "${ofile}T"
7629
7630   echo creating $ofile
7631
7632   # Now quote all the things that may contain metacharacters while being
7633   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7634   # variables and quote the copies for generation of the libtool script.
7635   for var in echo old_CC old_CFLAGS SED \
7636     AR AR_FLAGS CC LD LN_S NM SHELL \
7637     reload_flag reload_cmds wl \
7638     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7639     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7640     library_names_spec soname_spec \
7641     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7642     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7643     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7644     old_striplib striplib file_magic_cmd export_symbols_cmds \
7645     deplibs_check_method allow_undefined_flag no_undefined_flag \
7646     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7647     global_symbol_to_c_name_address \
7648     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7649     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7650     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7651
7652     case $var in
7653     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7654     old_postinstall_cmds | old_postuninstall_cmds | \
7655     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7656     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7657     postinstall_cmds | postuninstall_cmds | \
7658     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7659       # Double-quote double-evaled strings.
7660       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7661       ;;
7662     *)
7663       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7664       ;;
7665     esac
7666   done
7667
7668   cat <<__EOF__ > "${ofile}T"
7669 #! $SHELL
7670
7671 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7672 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7673 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7674 #
7675 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7676 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7677 #
7678 # This program is free software; you can redistribute it and/or modify
7679 # it under the terms of the GNU General Public License as published by
7680 # the Free Software Foundation; either version 2 of the License, or
7681 # (at your option) any later version.
7682 #
7683 # This program is distributed in the hope that it will be useful, but
7684 # WITHOUT ANY WARRANTY; without even the implied warranty of
7685 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7686 # General Public License for more details.
7687 #
7688 # You should have received a copy of the GNU General Public License
7689 # along with this program; if not, write to the Free Software
7690 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7691 #
7692 # As a special exception to the GNU General Public License, if you
7693 # distribute this file as part of a program that contains a
7694 # configuration script generated by Autoconf, you may include it under
7695 # the same distribution terms that you use for the rest of that program.
7696
7697 # A sed that does not truncate output.
7698 SED=$lt_SED
7699
7700 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7701 Xsed="${SED} -e s/^X//"
7702
7703 # The HP-UX ksh and POSIX shell print the target directory to stdout
7704 # if CDPATH is set.
7705 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7706
7707 # ### BEGIN LIBTOOL CONFIG
7708
7709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7710
7711 # Shell to use when invoking shell scripts.
7712 SHELL=$lt_SHELL
7713
7714 # Whether or not to build shared libraries.
7715 build_libtool_libs=$enable_shared
7716
7717 # Whether or not to build static libraries.
7718 build_old_libs=$enable_static
7719
7720 # Whether or not to add -lc for building shared libraries.
7721 build_libtool_need_lc=$need_lc
7722
7723 # Whether or not to optimize for fast installation.
7724 fast_install=$enable_fast_install
7725
7726 # The host system.
7727 host_alias=$host_alias
7728 host=$host
7729
7730 # An echo program that does not interpret backslashes.
7731 echo=$lt_echo
7732
7733 # The archiver.
7734 AR=$lt_AR
7735 AR_FLAGS=$lt_AR_FLAGS
7736
7737 # The default C compiler.
7738 CC=$lt_CC
7739
7740 # Is the compiler the GNU C compiler?
7741 with_gcc=$GCC
7742
7743 # The linker used to build libraries.
7744 LD=$lt_LD
7745
7746 # Whether we need hard or soft links.
7747 LN_S=$lt_LN_S
7748
7749 # A BSD-compatible nm program.
7750 NM=$lt_NM
7751
7752 # A symbol stripping program
7753 STRIP=$STRIP
7754
7755 # Used to examine libraries when file_magic_cmd begins "file"
7756 MAGIC_CMD=$MAGIC_CMD
7757
7758 # Used on cygwin: DLL creation program.
7759 DLLTOOL="$DLLTOOL"
7760
7761 # Used on cygwin: object dumper.
7762 OBJDUMP="$OBJDUMP"
7763
7764 # Used on cygwin: assembler.
7765 AS="$AS"
7766
7767 # The name of the directory that contains temporary libtool files.
7768 objdir=$objdir
7769
7770 # How to create reloadable object files.
7771 reload_flag=$lt_reload_flag
7772 reload_cmds=$lt_reload_cmds
7773
7774 # How to pass a linker flag through the compiler.
7775 wl=$lt_wl
7776
7777 # Object file suffix (normally "o").
7778 objext="$ac_objext"
7779
7780 # Old archive suffix (normally "a").
7781 libext="$libext"
7782
7783 # Executable file suffix (normally "").
7784 exeext="$exeext"
7785
7786 # Additional compiler flags for building library objects.
7787 pic_flag=$lt_pic_flag
7788 pic_mode=$pic_mode
7789
7790 # Does compiler simultaneously support -c and -o options?
7791 compiler_c_o=$lt_compiler_c_o
7792
7793 # Can we write directly to a .lo ?
7794 compiler_o_lo=$lt_compiler_o_lo
7795
7796 # Must we lock files when doing compilation ?
7797 need_locks=$lt_need_locks
7798
7799 # Do we need the lib prefix for modules?
7800 need_lib_prefix=$need_lib_prefix
7801
7802 # Do we need a version for libraries?
7803 need_version=$need_version
7804
7805 # Whether dlopen is supported.
7806 dlopen_support=$enable_dlopen
7807
7808 # Whether dlopen of programs is supported.
7809 dlopen_self=$enable_dlopen_self
7810
7811 # Whether dlopen of statically linked programs is supported.
7812 dlopen_self_static=$enable_dlopen_self_static
7813
7814 # Compiler flag to prevent dynamic linking.
7815 link_static_flag=$lt_link_static_flag
7816
7817 # Compiler flag to turn off builtin functions.
7818 no_builtin_flag=$lt_no_builtin_flag
7819
7820 # Compiler flag to allow reflexive dlopens.
7821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7822
7823 # Compiler flag to generate shared objects directly from archives.
7824 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7825
7826 # Compiler flag to generate thread-safe objects.
7827 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7828
7829 # Library versioning type.
7830 version_type=$version_type
7831
7832 # Format of library name prefix.
7833 libname_spec=$lt_libname_spec
7834
7835 # List of archive names.  First name is the real one, the rest are links.
7836 # The last name is the one that the linker finds with -lNAME.
7837 library_names_spec=$lt_library_names_spec
7838
7839 # The coded name of the library, if different from the real name.
7840 soname_spec=$lt_soname_spec
7841
7842 # Commands used to build and install an old-style archive.
7843 RANLIB=$lt_RANLIB
7844 old_archive_cmds=$lt_old_archive_cmds
7845 old_postinstall_cmds=$lt_old_postinstall_cmds
7846 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7847
7848 # Create an old-style archive from a shared archive.
7849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7850
7851 # Create a temporary old-style archive to link instead of a shared archive.
7852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7853
7854 # Commands used to build and install a shared archive.
7855 archive_cmds=$lt_archive_cmds
7856 archive_expsym_cmds=$lt_archive_expsym_cmds
7857 postinstall_cmds=$lt_postinstall_cmds
7858 postuninstall_cmds=$lt_postuninstall_cmds
7859
7860 # Commands to strip libraries.
7861 old_striplib=$lt_old_striplib
7862 striplib=$lt_striplib
7863
7864 # Method to check whether dependent libraries are shared objects.
7865 deplibs_check_method=$lt_deplibs_check_method
7866
7867 # Command to use when deplibs_check_method == file_magic.
7868 file_magic_cmd=$lt_file_magic_cmd
7869
7870 # Flag that allows shared libraries with undefined symbols to be built.
7871 allow_undefined_flag=$lt_allow_undefined_flag
7872
7873 # Flag that forces no undefined symbols.
7874 no_undefined_flag=$lt_no_undefined_flag
7875
7876 # Commands used to finish a libtool library installation in a directory.
7877 finish_cmds=$lt_finish_cmds
7878
7879 # Same as above, but a single script fragment to be evaled but not shown.
7880 finish_eval=$lt_finish_eval
7881
7882 # Take the output of nm and produce a listing of raw symbols and C names.
7883 global_symbol_pipe=$lt_global_symbol_pipe
7884
7885 # Transform the output of nm in a proper C declaration
7886 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7887
7888 # Transform the output of nm in a C name address pair
7889 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7890
7891 # This is the shared library runtime path variable.
7892 runpath_var=$runpath_var
7893
7894 # This is the shared library path variable.
7895 shlibpath_var=$shlibpath_var
7896
7897 # Is shlibpath searched before the hard-coded library search path?
7898 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7899
7900 # How to hardcode a shared library path into an executable.
7901 hardcode_action=$hardcode_action
7902
7903 # Whether we should hardcode library paths into libraries.
7904 hardcode_into_libs=$hardcode_into_libs
7905
7906 # Flag to hardcode \$libdir into a binary during linking.
7907 # This must work even if \$libdir does not exist.
7908 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7909
7910 # Whether we need a single -rpath flag with a separated argument.
7911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7912
7913 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7914 # resulting binary.
7915 hardcode_direct=$hardcode_direct
7916
7917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7918 # resulting binary.
7919 hardcode_minus_L=$hardcode_minus_L
7920
7921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7922 # the resulting binary.
7923 hardcode_shlibpath_var=$hardcode_shlibpath_var
7924
7925 # Variables whose values should be saved in libtool wrapper scripts and
7926 # restored at relink time.
7927 variables_saved_for_relink="$variables_saved_for_relink"
7928
7929 # Whether libtool must link a program against all its dependency libraries.
7930 link_all_deplibs=$link_all_deplibs
7931
7932 # Compile-time system search path for libraries
7933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7934
7935 # Run-time system search path for libraries
7936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7937
7938 # Fix the shell variable \$srcfile for the compiler.
7939 fix_srcfile_path="$fix_srcfile_path"
7940
7941 # Set to yes if exported symbols are required.
7942 always_export_symbols=$always_export_symbols
7943
7944 # The commands to list exported symbols.
7945 export_symbols_cmds=$lt_export_symbols_cmds
7946
7947 # The commands to extract the exported symbol list from a shared archive.
7948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7949
7950 # Symbols that should not be listed in the preloaded symbols.
7951 exclude_expsyms=$lt_exclude_expsyms
7952
7953 # Symbols that must always be exported.
7954 include_expsyms=$lt_include_expsyms
7955
7956 # ### END LIBTOOL CONFIG
7957
7958 __EOF__
7959
7960   case $host_os in
7961   aix3*)
7962     cat <<\EOF >> "${ofile}T"
7963
7964 # AIX sometimes has problems with the GCC collect2 program.  For some
7965 # reason, if we set the COLLECT_NAMES environment variable, the problems
7966 # vanish in a puff of smoke.
7967 if test "X${COLLECT_NAMES+set}" != Xset; then
7968   COLLECT_NAMES=
7969   export COLLECT_NAMES
7970 fi
7971 EOF
7972     ;;
7973   esac
7974
7975   case $host_os in
7976   cygwin* | mingw* | pw32* | os2*)
7977     cat <<'EOF' >> "${ofile}T"
7978       # This is a source program that is used to create dlls on Windows
7979       # Don't remove nor modify the starting and closing comments
7980 # /* ltdll.c starts here */
7981 # #define WIN32_LEAN_AND_MEAN
7982 # #include <windows.h>
7983 # #undef WIN32_LEAN_AND_MEAN
7984 # #include <stdio.h>
7985 #
7986 # #ifndef __CYGWIN__
7987 # #  ifdef __CYGWIN32__
7988 # #    define __CYGWIN__ __CYGWIN32__
7989 # #  endif
7990 # #endif
7991 #
7992 # #ifdef __cplusplus
7993 # extern "C" {
7994 # #endif
7995 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7996 # #ifdef __cplusplus
7997 # }
7998 # #endif
7999 #
8000 # #ifdef __CYGWIN__
8001 # #include <cygwin/cygwin_dll.h>
8002 # DECLARE_CYGWIN_DLL( DllMain );
8003 # #endif
8004 # HINSTANCE __hDllInstance_base;
8005 #
8006 # BOOL APIENTRY
8007 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8008 # {
8009 #   __hDllInstance_base = hInst;
8010 #   return TRUE;
8011 # }
8012 # /* ltdll.c ends here */
8013         # This is a source program that is used to create import libraries
8014         # on Windows for dlls which lack them. Don't remove nor modify the
8015         # starting and closing comments
8016 # /* impgen.c starts here */
8017 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8018 #
8019 #  This file is part of GNU libtool.
8020 #
8021 #  This program is free software; you can redistribute it and/or modify
8022 #  it under the terms of the GNU General Public License as published by
8023 #  the Free Software Foundation; either version 2 of the License, or
8024 #  (at your option) any later version.
8025 #
8026 #  This program is distributed in the hope that it will be useful,
8027 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8028 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8029 #  GNU General Public License for more details.
8030 #
8031 #  You should have received a copy of the GNU General Public License
8032 #  along with this program; if not, write to the Free Software
8033 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8034 #  */
8035 #
8036 # #include <stdio.h>            /* for printf() */
8037 # #include <unistd.h>           /* for open(), lseek(), read() */
8038 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8039 # #include <string.h>           /* for strdup() */
8040 #
8041 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8042 # #ifndef O_BINARY
8043 # #define O_BINARY 0
8044 # #endif
8045 #
8046 # static unsigned int
8047 # pe_get16 (fd, offset)
8048 #      int fd;
8049 #      int offset;
8050 # {
8051 #   unsigned char b[2];
8052 #   lseek (fd, offset, SEEK_SET);
8053 #   read (fd, b, 2);
8054 #   return b[0] + (b[1]<<8);
8055 # }
8056 #
8057 # static unsigned int
8058 # pe_get32 (fd, offset)
8059 #     int fd;
8060 #     int offset;
8061 # {
8062 #   unsigned char b[4];
8063 #   lseek (fd, offset, SEEK_SET);
8064 #   read (fd, b, 4);
8065 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8066 # }
8067 #
8068 # static unsigned int
8069 # pe_as32 (ptr)
8070 #      void *ptr;
8071 # {
8072 #   unsigned char *b = ptr;
8073 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8074 # }
8075 #
8076 # int
8077 # main (argc, argv)
8078 #     int argc;
8079 #     char *argv[];
8080 # {
8081 #     int dll;
8082 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8083 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8084 #     unsigned long name_rvas, nexp;
8085 #     unsigned char *expdata, *erva;
8086 #     char *filename, *dll_name;
8087 #
8088 #     filename = argv[1];
8089 #
8090 #     dll = open(filename, O_RDONLY|O_BINARY);
8091 #     if (dll < 1)
8092 #       return 1;
8093 #
8094 #     dll_name = filename;
8095 #
8096 #     for (i=0; filename[i]; i++)
8097 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8098 #           dll_name = filename + i +1;
8099 #
8100 #     pe_header_offset = pe_get32 (dll, 0x3c);
8101 #     opthdr_ofs = pe_header_offset + 4 + 20;
8102 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8103 #
8104 #     if (num_entries < 1) /* no exports */
8105 #       return 1;
8106 #
8107 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8108 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8109 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8110 #     secptr = (pe_header_offset + 4 + 20 +
8111 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8112 #
8113 #     expptr = 0;
8114 #     for (i = 0; i < nsections; i++)
8115 #     {
8116 #       char sname[8];
8117 #       unsigned long secptr1 = secptr + 40 * i;
8118 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8119 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8120 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8121 #       lseek(dll, secptr1, SEEK_SET);
8122 #       read(dll, sname, 8);
8123 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8124 #       {
8125 #           expptr = fptr + (export_rva - vaddr);
8126 #           if (export_rva + export_size > vaddr + vsize)
8127 #               export_size = vsize - (export_rva - vaddr);
8128 #           break;
8129 #       }
8130 #     }
8131 #
8132 #     expdata = (unsigned char*)malloc(export_size);
8133 #     lseek (dll, expptr, SEEK_SET);
8134 #     read (dll, expdata, export_size);
8135 #     erva = expdata - export_rva;
8136 #
8137 #     nexp = pe_as32 (expdata+24);
8138 #     name_rvas = pe_as32 (expdata+32);
8139 #
8140 #     printf ("EXPORTS\n");
8141 #     for (i = 0; i<nexp; i++)
8142 #     {
8143 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8144 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8145 #     }
8146 #
8147 #     return 0;
8148 # }
8149 # /* impgen.c ends here */
8150
8151 EOF
8152     ;;
8153   esac
8154
8155   # We use sed instead of cat because bash on DJGPP gets confused if
8156   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8157   # text mode, it properly converts lines to CR/LF.  This bash problem
8158   # is reportedly fixed, but why not run on old versions too?
8159   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8160
8161   mv -f "${ofile}T" "$ofile" || \
8162     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8163   chmod +x "$ofile"
8164 fi
8165
8166
8167
8168
8169
8170 # This can be used to rebuild libtool when needed
8171 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8172
8173 # Always use our own libtool.
8174 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8175
8176 # Prevent multiple expansion
8177
8178
8179  for ac_prog in gzip uncompress compress
8180 do
8181   # Extract the first word of "$ac_prog", so it can be a program name with args.
8182 set dummy $ac_prog; ac_word=$2
8183 echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   if test -n "$UNCOMPRESS"; then
8189   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8190 else
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8193 do
8194   IFS=$as_save_IFS
8195   test -z "$as_dir" && as_dir=.
8196   for ac_exec_ext in '' $ac_executable_extensions; do
8197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198     ac_cv_prog_UNCOMPRESS="$ac_prog"
8199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200     break 2
8201   fi
8202 done
8203 done
8204
8205 fi
8206 fi
8207 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8208 if test -n "$UNCOMPRESS"; then
8209   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8210 echo "${ECHO_T}$UNCOMPRESS" >&6
8211 else
8212   echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6
8214 fi
8215
8216   test -n "$UNCOMPRESS" && break
8217 done
8218
8219
8220
8221
8222
8223
8224
8225
8226 echo "$as_me:$LINENO: checking for target system" >&5
8227 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8228 CYGWIN=
8229 MINGW=
8230 case $host_os in
8231     *cygwin* ) CYGWIN=yes;;
8232     *mingw* ) MINGW=yes;;
8233 esac
8234
8235 AR=ar
8236 if test "x$MINGW" = "xyes"; then
8237     #fix for the debian distribution of mingw
8238     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8239         AR="/usr/i586-mingw32msvc/bin/ar"
8240     fi
8241     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8242         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8243     fi
8244     #fix for the gentoo distribution of mingw
8245     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8246         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8247     fi
8248     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8249         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8250     fi
8251     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8252         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8253     fi
8254 fi
8255
8256
8257
8258 if test "x${CYGWIN}" = "xyes"; then
8259     cat >>confdefs.h <<_ACEOF
8260 #define CYGWIN 1
8261 _ACEOF
8262
8263     echo "$as_me:$LINENO: result: cygwin" >&5
8264 echo "${ECHO_T}cygwin" >&6
8265 else
8266     if test "x${MINGW}" = "xyes"; then
8267         cat >>confdefs.h <<_ACEOF
8268 #define MINGW 1
8269 _ACEOF
8270
8271         WIN32=1
8272         cat >>confdefs.h <<_ACEOF
8273 #define WIN32 1
8274 _ACEOF
8275
8276         LIBS="$LIBS -lws2_32"
8277         echo "$as_me:$LINENO: result: mingw" >&5
8278 echo "${ECHO_T}mingw" >&6
8279     else
8280         LINUX=1
8281         export LINUX
8282         cat >>confdefs.h <<_ACEOF
8283 #define LINUX 1
8284 _ACEOF
8285
8286         echo "$as_me:$LINENO: result: " >&5
8287 echo "${ECHO_T}" >&6
8288     fi
8289 fi
8290
8291
8292 SLEXT="so"
8293 if test "x${MINGW}" != "xyes"; then
8294     # no mingW
8295     cat >>confdefs.h <<_ACEOF
8296 #define O_BINARY 0
8297 _ACEOF
8298
8299 else
8300     # mingW
8301     SLEXT="dll"
8302 fi
8303 export SLEXT
8304
8305
8306 # The following tries to make use of includes and libraries in
8307 # /usr/local, too. Notice: A -I/usr/local/include might break
8308 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8309 # especially on systems which link /usr/local to /usr, so it has yet
8310 # to be seen how useful this is.
8311 if test -d /usr/local/lib; then
8312     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8313 fi
8314 if test -d /usr/local/include; then
8315 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8316 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8317     echo > /dev/null
8318 fi
8319 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8320     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8321     # and $prefix/include, which should be included in our search paths for libraries
8322     # and includes.
8323     LDFLAGS="$LDFLAGS -L${libdir}"
8324     CPPFLAGS="$CPPFLAGS -I${includedir}"
8325     # TODO- test whether gcc still works after this
8326 fi
8327
8328 # this must be done after (I believe) AC_PROG_MAKE_SET
8329 if test "x$DEBUG" '!=' "x";then
8330     STRIP="@echo debug enabled, not stripping "
8331     export STRIP
8332
8333 fi
8334
8335
8336 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8337 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8338 if test "${ac_cv_lib_m_sin+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   ac_check_lib_save_LIBS=$LIBS
8342 LIBS="-lm  $LIBS"
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349
8350 /* Override any gcc2 internal prototype to avoid an error.  */
8351 #ifdef __cplusplus
8352 extern "C"
8353 #endif
8354 /* We use char because int might match the return type of a gcc2
8355    builtin and then its argument prototype would still apply.  */
8356 char sin ();
8357 int
8358 main ()
8359 {
8360 sin ();
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367   (eval $ac_link) 2>conftest.er1
8368   ac_status=$?
8369   grep -v '^ *+' conftest.er1 >conftest.err
8370   rm -f conftest.er1
8371   cat conftest.err >&5
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } &&
8374          { ac_try='test -z "$ac_c_werror_flag"
8375                          || test ! -s conftest.err'
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); }; } &&
8381          { ac_try='test -s conftest$ac_exeext'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   ac_cv_lib_m_sin=yes
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 ac_cv_lib_m_sin=no
8393 fi
8394 rm -f conftest.err conftest.$ac_objext \
8395       conftest$ac_exeext conftest.$ac_ext
8396 LIBS=$ac_check_lib_save_LIBS
8397 fi
8398 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8399 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8400 if test $ac_cv_lib_m_sin = yes; then
8401   cat >>confdefs.h <<_ACEOF
8402 #define HAVE_LIBM 1
8403 _ACEOF
8404
8405   LIBS="-lm $LIBS"
8406
8407 else
8408   echo "Error: Math library not found.";
8409  exit;
8410
8411 fi
8412
8413
8414 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8415 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8416 if test "${ac_cv_lib_z_deflate+set}" = set; then
8417   echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419   ac_check_lib_save_LIBS=$LIBS
8420 LIBS="-lz  $LIBS"
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427
8428 /* Override any gcc2 internal prototype to avoid an error.  */
8429 #ifdef __cplusplus
8430 extern "C"
8431 #endif
8432 /* We use char because int might match the return type of a gcc2
8433    builtin and then its argument prototype would still apply.  */
8434 char deflate ();
8435 int
8436 main ()
8437 {
8438 deflate ();
8439   ;
8440   return 0;
8441 }
8442 _ACEOF
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8445   (eval $ac_link) 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -z "$ac_c_werror_flag"
8453                          || test ! -s conftest.err'
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); }; } &&
8459          { ac_try='test -s conftest$ac_exeext'
8460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461   (eval $ac_try) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; }; then
8465   ac_cv_lib_z_deflate=yes
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 ac_cv_lib_z_deflate=no
8471 fi
8472 rm -f conftest.err conftest.$ac_objext \
8473       conftest$ac_exeext conftest.$ac_ext
8474 LIBS=$ac_check_lib_save_LIBS
8475 fi
8476 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8477 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8478 if test $ac_cv_lib_z_deflate = yes; then
8479   cat >>confdefs.h <<_ACEOF
8480 #define HAVE_LIBZ 1
8481 _ACEOF
8482
8483   LIBS="-lz $LIBS"
8484
8485 else
8486   ZLIBMISSING=true
8487 fi
8488
8489
8490 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8491 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8492 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   ac_check_lib_save_LIBS=$LIBS
8496 LIBS="-ljpeg  $LIBS"
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503
8504 /* Override any gcc2 internal prototype to avoid an error.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 /* We use char because int might match the return type of a gcc2
8509    builtin and then its argument prototype would still apply.  */
8510 char jpeg_write_raw_data ();
8511 int
8512 main ()
8513 {
8514 jpeg_write_raw_data ();
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521   (eval $ac_link) 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } &&
8528          { ac_try='test -z "$ac_c_werror_flag"
8529                          || test ! -s conftest.err'
8530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531   (eval $ac_try) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; } &&
8535          { ac_try='test -s conftest$ac_exeext'
8536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537   (eval $ac_try) 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); }; }; then
8541   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8547 fi
8548 rm -f conftest.err conftest.$ac_objext \
8549       conftest$ac_exeext conftest.$ac_ext
8550 LIBS=$ac_check_lib_save_LIBS
8551 fi
8552 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8553 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8554 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8555   cat >>confdefs.h <<_ACEOF
8556 #define HAVE_LIBJPEG 1
8557 _ACEOF
8558
8559   LIBS="-ljpeg $LIBS"
8560
8561 else
8562   JPEGLIBMISSING=true
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   T1LIBMISSING=true
8639 fi
8640
8641
8642
8643 echo "$as_me:$LINENO: checking for byte order" >&5
8644 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8645 if test "$cross_compiling" = yes; then
8646   CROSSCOMPILE=1
8647 else
8648   cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h.  */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h.  */
8654
8655 int main (int argc, char *argv[])
8656 {
8657     int i = 1;
8658     return *(char*)&i;
8659 }
8660
8661 _ACEOF
8662 rm -f conftest$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664   (eval $ac_link) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669   (eval $ac_try) 2>&5
8670   ac_status=$?
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); }; }; then
8673   BIGENDIAN=1
8674 else
8675   echo "$as_me: program exited with status $ac_status" >&5
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8678
8679 ( exit $ac_status )
8680 LITTLEENDIAN=1
8681 fi
8682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8683 fi
8684 export CROSSCOMPILE
8685
8686 if test "x${CROSSCOMPILE}" = "x1"; then
8687  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8688 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8689  echo "$as_me:$LINENO: checking target system type" >&5
8690 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8691 if test "${ac_cv_target+set}" = set; then
8692   echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694   ac_cv_target_alias=$target_alias
8695 test "x$ac_cv_target_alias" = "x" &&
8696   ac_cv_target_alias=$ac_cv_host_alias
8697 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8698   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8699 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8700    { (exit 1); exit 1; }; }
8701
8702 fi
8703 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8704 echo "${ECHO_T}$ac_cv_target" >&6
8705 target=$ac_cv_target
8706 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8707 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8708 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8709
8710
8711 # The aliases save the names the user supplied, while $host etc.
8712 # will get canonicalized.
8713 test -n "$target_alias" &&
8714   test "$program_prefix$program_suffix$program_transform_name" = \
8715     NONENONEs,x,x, &&
8716   program_prefix=${target_alias}-
8717  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8718 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8719  case "${target}" in
8720   *86* | *-pc-* )
8721      LITTLEENDIAN=1
8722      ;;
8723   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8724      BIGENDIAN=1
8725      ;;
8726  esac
8727 fi
8728
8729 export LITTLEENDIAN
8730 if test "x${LITTLEENDIAN}" = "x1"; then
8731 echo "$as_me:$LINENO: result: little endian" >&5
8732 echo "${ECHO_T}little endian" >&6
8733 BYTEORDERCHECKOK=1
8734 fi
8735 export BIGENDIAN
8736 if test "x${BIGENDIAN}" = "x1"; then
8737 echo "$as_me:$LINENO: result: big endian" >&5
8738 echo "${ECHO_T}big endian" >&6
8739 BYTEORDERCHECKOK=1
8740 WORDS_BIGENDIAN=1
8741 export WORDS_BIGENDIAN
8742 cat >>confdefs.h <<_ACEOF
8743 #define WORDS_BIGENDIAN 1
8744 _ACEOF
8745
8746 fi
8747 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8748 echo "$as_me:$LINENO: result: unknown" >&5
8749 echo "${ECHO_T}unknown" >&6
8750 echo Byte order could not determined.
8751 exit 1
8752 fi
8753
8754
8755
8756 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8757 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8758 if test "$cross_compiling" = yes; then
8759   CROSSCOMPILE=1
8760 else
8761   cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767
8768 #include "stdlib.h"
8769 int main (int argc, char*argv[])
8770 {
8771     return system("test `touch config.tmp2`");
8772 }
8773
8774 _ACEOF
8775 rm -f conftest$ac_exeext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8777   (eval $ac_link) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782   (eval $ac_try) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; }; then
8786   OK=OK
8787 else
8788   echo "$as_me: program exited with status $ac_status" >&5
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792 fi
8793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8794 fi
8795
8796 if test "x${OK}" = "xOK";then
8797     test -f config.tmp2 || OK=
8798 fi
8799
8800 if test "x${CROSSCOMPILE}" = "x1";then
8801     OK=OK;
8802 fi
8803 if test "x${OK}" = "xOK";then
8804 rm -f config.tmp2
8805 echo "$as_me:$LINENO: result: yes" >&5
8806 echo "${ECHO_T}yes" >&6
8807 SYSTEM_BACKTICKS=1
8808 export SYSTEM_BACKTICKS
8809 cat >>confdefs.h <<_ACEOF
8810 #define SYSTEM_BACKTICKS 1
8811 _ACEOF
8812
8813 else
8814 echo "$as_me:$LINENO: result: no" >&5
8815 echo "${ECHO_T}no" >&6
8816 fi
8817
8818
8819
8820 test "$program_prefix" != NONE &&
8821   program_transform_name="s,^,$program_prefix,;$program_transform_name"
8822 # Use a double $ so make ignores it.
8823 test "$program_suffix" != NONE &&
8824   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8825 # Double any \ or $.  echo might interpret backslashes.
8826 # By default was `s,x,x', remove it if useless.
8827 cat <<\_ACEOF >conftest.sed
8828 s/[\\$]/&&/g;s/;s,x,x,$//
8829 _ACEOF
8830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8831 rm conftest.sed
8832
8833
8834            ac_config_headers="$ac_config_headers config.h"
8835
8836
8837
8838
8839
8840
8841 ac_header_dirent=no
8842 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8843   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8844 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8845 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8847   echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849   cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h.  */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h.  */
8855 #include <sys/types.h>
8856 #include <$ac_hdr>
8857
8858 int
8859 main ()
8860 {
8861 if ((DIR *) 0)
8862 return 0;
8863   ;
8864   return 0;
8865 }
8866 _ACEOF
8867 rm -f conftest.$ac_objext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8869   (eval $ac_compile) 2>conftest.er1
8870   ac_status=$?
8871   grep -v '^ *+' conftest.er1 >conftest.err
8872   rm -f conftest.er1
8873   cat conftest.err >&5
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); } &&
8876          { ac_try='test -z "$ac_c_werror_flag"
8877                          || test ! -s conftest.err'
8878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879   (eval $ac_try) 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); }; } &&
8883          { ac_try='test -s conftest.$ac_objext'
8884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885   (eval $ac_try) 2>&5
8886   ac_status=$?
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); }; }; then
8889   eval "$as_ac_Header=yes"
8890 else
8891   echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894 eval "$as_ac_Header=no"
8895 fi
8896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8897 fi
8898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8901   cat >>confdefs.h <<_ACEOF
8902 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8903 _ACEOF
8904
8905 ac_header_dirent=$ac_hdr; break
8906 fi
8907
8908 done
8909 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8910 if test $ac_header_dirent = dirent.h; then
8911   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8912 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8913 if test "${ac_cv_search_opendir+set}" = set; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916   ac_func_search_save_LIBS=$LIBS
8917 ac_cv_search_opendir=no
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h.  */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h.  */
8924
8925 /* Override any gcc2 internal prototype to avoid an error.  */
8926 #ifdef __cplusplus
8927 extern "C"
8928 #endif
8929 /* We use char because int might match the return type of a gcc2
8930    builtin and then its argument prototype would still apply.  */
8931 char opendir ();
8932 int
8933 main ()
8934 {
8935 opendir ();
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942   (eval $ac_link) 2>conftest.er1
8943   ac_status=$?
8944   grep -v '^ *+' conftest.er1 >conftest.err
8945   rm -f conftest.er1
8946   cat conftest.err >&5
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); } &&
8949          { ac_try='test -z "$ac_c_werror_flag"
8950                          || test ! -s conftest.err'
8951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952   (eval $ac_try) 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; } &&
8956          { ac_try='test -s conftest$ac_exeext'
8957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958   (eval $ac_try) 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); }; }; then
8962   ac_cv_search_opendir="none required"
8963 else
8964   echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967 fi
8968 rm -f conftest.err conftest.$ac_objext \
8969       conftest$ac_exeext conftest.$ac_ext
8970 if test "$ac_cv_search_opendir" = no; then
8971   for ac_lib in dir; do
8972     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8973     cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h.  */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h.  */
8979
8980 /* Override any gcc2 internal prototype to avoid an error.  */
8981 #ifdef __cplusplus
8982 extern "C"
8983 #endif
8984 /* We use char because int might match the return type of a gcc2
8985    builtin and then its argument prototype would still apply.  */
8986 char opendir ();
8987 int
8988 main ()
8989 {
8990 opendir ();
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997   (eval $ac_link) 2>conftest.er1
8998   ac_status=$?
8999   grep -v '^ *+' conftest.er1 >conftest.err
9000   rm -f conftest.er1
9001   cat conftest.err >&5
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } &&
9004          { ac_try='test -z "$ac_c_werror_flag"
9005                          || test ! -s conftest.err'
9006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007   (eval $ac_try) 2>&5
9008   ac_status=$?
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); }; } &&
9011          { ac_try='test -s conftest$ac_exeext'
9012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013   (eval $ac_try) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; }; then
9017   ac_cv_search_opendir="-l$ac_lib"
9018 break
9019 else
9020   echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 fi
9024 rm -f conftest.err conftest.$ac_objext \
9025       conftest$ac_exeext conftest.$ac_ext
9026   done
9027 fi
9028 LIBS=$ac_func_search_save_LIBS
9029 fi
9030 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9031 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9032 if test "$ac_cv_search_opendir" != no; then
9033   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9034
9035 fi
9036
9037 else
9038   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9039 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9040 if test "${ac_cv_search_opendir+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   ac_func_search_save_LIBS=$LIBS
9044 ac_cv_search_opendir=no
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h.  */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h.  */
9051
9052 /* Override any gcc2 internal prototype to avoid an error.  */
9053 #ifdef __cplusplus
9054 extern "C"
9055 #endif
9056 /* We use char because int might match the return type of a gcc2
9057    builtin and then its argument prototype would still apply.  */
9058 char opendir ();
9059 int
9060 main ()
9061 {
9062 opendir ();
9063   ;
9064   return 0;
9065 }
9066 _ACEOF
9067 rm -f conftest.$ac_objext conftest$ac_exeext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069   (eval $ac_link) 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } &&
9076          { ac_try='test -z "$ac_c_werror_flag"
9077                          || test ! -s conftest.err'
9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079   (eval $ac_try) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; } &&
9083          { ac_try='test -s conftest$ac_exeext'
9084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085   (eval $ac_try) 2>&5
9086   ac_status=$?
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); }; }; then
9089   ac_cv_search_opendir="none required"
9090 else
9091   echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9093
9094 fi
9095 rm -f conftest.err conftest.$ac_objext \
9096       conftest$ac_exeext conftest.$ac_ext
9097 if test "$ac_cv_search_opendir" = no; then
9098   for ac_lib in x; do
9099     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9100     cat >conftest.$ac_ext <<_ACEOF
9101 /* confdefs.h.  */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h.  */
9106
9107 /* Override any gcc2 internal prototype to avoid an error.  */
9108 #ifdef __cplusplus
9109 extern "C"
9110 #endif
9111 /* We use char because int might match the return type of a gcc2
9112    builtin and then its argument prototype would still apply.  */
9113 char opendir ();
9114 int
9115 main ()
9116 {
9117 opendir ();
9118   ;
9119   return 0;
9120 }
9121 _ACEOF
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9124   (eval $ac_link) 2>conftest.er1
9125   ac_status=$?
9126   grep -v '^ *+' conftest.er1 >conftest.err
9127   rm -f conftest.er1
9128   cat conftest.err >&5
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); } &&
9131          { ac_try='test -z "$ac_c_werror_flag"
9132                          || test ! -s conftest.err'
9133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134   (eval $ac_try) 2>&5
9135   ac_status=$?
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); }; } &&
9138          { ac_try='test -s conftest$ac_exeext'
9139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140   (eval $ac_try) 2>&5
9141   ac_status=$?
9142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143   (exit $ac_status); }; }; then
9144   ac_cv_search_opendir="-l$ac_lib"
9145 break
9146 else
9147   echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 fi
9151 rm -f conftest.err conftest.$ac_objext \
9152       conftest$ac_exeext conftest.$ac_ext
9153   done
9154 fi
9155 LIBS=$ac_func_search_save_LIBS
9156 fi
9157 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9158 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9159 if test "$ac_cv_search_opendir" != no; then
9160   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9161
9162 fi
9163
9164 fi
9165
9166  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9167 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9168 if test "${ac_cv_header_stdc+set}" = set; then
9169   echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171   cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h.  */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h.  */
9177 #include <stdlib.h>
9178 #include <stdarg.h>
9179 #include <string.h>
9180 #include <float.h>
9181
9182 int
9183 main ()
9184 {
9185
9186   ;
9187   return 0;
9188 }
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192   (eval $ac_compile) 2>conftest.er1
9193   ac_status=$?
9194   grep -v '^ *+' conftest.er1 >conftest.err
9195   rm -f conftest.er1
9196   cat conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } &&
9199          { ac_try='test -z "$ac_c_werror_flag"
9200                          || test ! -s conftest.err'
9201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202   (eval $ac_try) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; } &&
9206          { ac_try='test -s conftest.$ac_objext'
9207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208   (eval $ac_try) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); }; }; then
9212   ac_cv_header_stdc=yes
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 ac_cv_header_stdc=no
9218 fi
9219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9220
9221 if test $ac_cv_header_stdc = yes; then
9222   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9223   cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229 #include <string.h>
9230
9231 _ACEOF
9232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9233   $EGREP "memchr" >/dev/null 2>&1; then
9234   :
9235 else
9236   ac_cv_header_stdc=no
9237 fi
9238 rm -f conftest*
9239
9240 fi
9241
9242 if test $ac_cv_header_stdc = yes; then
9243   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9244   cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h.  */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h.  */
9250 #include <stdlib.h>
9251
9252 _ACEOF
9253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9254   $EGREP "free" >/dev/null 2>&1; then
9255   :
9256 else
9257   ac_cv_header_stdc=no
9258 fi
9259 rm -f conftest*
9260
9261 fi
9262
9263 if test $ac_cv_header_stdc = yes; then
9264   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9265   if test "$cross_compiling" = yes; then
9266   :
9267 else
9268   cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h.  */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h.  */
9274 #include <ctype.h>
9275 #if ((' ' & 0x0FF) == 0x020)
9276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9278 #else
9279 # define ISLOWER(c) \
9280                    (('a' <= (c) && (c) <= 'i') \
9281                      || ('j' <= (c) && (c) <= 'r') \
9282                      || ('s' <= (c) && (c) <= 'z'))
9283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9284 #endif
9285
9286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9287 int
9288 main ()
9289 {
9290   int i;
9291   for (i = 0; i < 256; i++)
9292     if (XOR (islower (i), ISLOWER (i))
9293         || toupper (i) != TOUPPER (i))
9294       exit(2);
9295   exit (0);
9296 }
9297 _ACEOF
9298 rm -f conftest$ac_exeext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300   (eval $ac_link) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305   (eval $ac_try) 2>&5
9306   ac_status=$?
9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); }; }; then
9309   :
9310 else
9311   echo "$as_me: program exited with status $ac_status" >&5
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315 ( exit $ac_status )
9316 ac_cv_header_stdc=no
9317 fi
9318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9319 fi
9320 fi
9321 fi
9322 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9323 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9324 if test $ac_cv_header_stdc = yes; then
9325
9326 cat >>confdefs.h <<\_ACEOF
9327 #define STDC_HEADERS 1
9328 _ACEOF
9329
9330 fi
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346 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
9347 do
9348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9350   echo "$as_me:$LINENO: checking for $ac_header" >&5
9351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9353   echo $ECHO_N "(cached) $ECHO_C" >&6
9354 fi
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9357 else
9358   # Is the header compilable?
9359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9361 cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h.  */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h.  */
9367 $ac_includes_default
9368 #include <$ac_header>
9369 _ACEOF
9370 rm -f conftest.$ac_objext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9372   (eval $ac_compile) 2>conftest.er1
9373   ac_status=$?
9374   grep -v '^ *+' conftest.er1 >conftest.err
9375   rm -f conftest.er1
9376   cat conftest.err >&5
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); } &&
9379          { ac_try='test -z "$ac_c_werror_flag"
9380                          || test ! -s conftest.err'
9381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382   (eval $ac_try) 2>&5
9383   ac_status=$?
9384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); }; } &&
9386          { ac_try='test -s conftest.$ac_objext'
9387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388   (eval $ac_try) 2>&5
9389   ac_status=$?
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); }; }; then
9392   ac_header_compiler=yes
9393 else
9394   echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9396
9397 ac_header_compiler=no
9398 fi
9399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9401 echo "${ECHO_T}$ac_header_compiler" >&6
9402
9403 # Is the header present?
9404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 #include <$ac_header>
9413 _ACEOF
9414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9416   ac_status=$?
9417   grep -v '^ *+' conftest.er1 >conftest.err
9418   rm -f conftest.er1
9419   cat conftest.err >&5
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); } >/dev/null; then
9422   if test -s conftest.err; then
9423     ac_cpp_err=$ac_c_preproc_warn_flag
9424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9425   else
9426     ac_cpp_err=
9427   fi
9428 else
9429   ac_cpp_err=yes
9430 fi
9431 if test -z "$ac_cpp_err"; then
9432   ac_header_preproc=yes
9433 else
9434   echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9436
9437   ac_header_preproc=no
9438 fi
9439 rm -f conftest.err conftest.$ac_ext
9440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9441 echo "${ECHO_T}$ac_header_preproc" >&6
9442
9443 # So?  What about this header?
9444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9445   yes:no: )
9446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9450     ac_header_preproc=yes
9451     ;;
9452   no:yes:* )
9453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9465     (
9466       cat <<\_ASBOX
9467 ## ------------------------------------------ ##
9468 ## Report this to the AC_PACKAGE_NAME lists.  ##
9469 ## ------------------------------------------ ##
9470 _ASBOX
9471     ) |
9472       sed "s/^/$as_me: WARNING:     /" >&2
9473     ;;
9474 esac
9475 echo "$as_me:$LINENO: checking for $ac_header" >&5
9476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   eval "$as_ac_Header=\$ac_header_preproc"
9481 fi
9482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9484
9485 fi
9486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9487   cat >>confdefs.h <<_ACEOF
9488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9489 _ACEOF
9490
9491 fi
9492
9493 done
9494
9495
9496 cat >>confdefs.h <<_ACEOF
9497 #define PACKAGE "$PACKAGE"
9498 _ACEOF
9499
9500 cat >>confdefs.h <<_ACEOF
9501 #define VERSION "$VERSION"
9502 _ACEOF
9503
9504
9505
9506
9507
9508
9509
9510  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9511 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9512 if test "${ac_cv_c_const+set}" = set; then
9513   echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515   cat >conftest.$ac_ext <<_ACEOF
9516 /* confdefs.h.  */
9517 _ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h.  */
9521
9522 int
9523 main ()
9524 {
9525 /* FIXME: Include the comments suggested by Paul. */
9526 #ifndef __cplusplus
9527   /* Ultrix mips cc rejects this.  */
9528   typedef int charset[2];
9529   const charset x;
9530   /* SunOS 4.1.1 cc rejects this.  */
9531   char const *const *ccp;
9532   char **p;
9533   /* NEC SVR4.0.2 mips cc rejects this.  */
9534   struct point {int x, y;};
9535   static struct point const zero = {0,0};
9536   /* AIX XL C 1.02.0.0 rejects this.
9537      It does not let you subtract one const X* pointer from another in
9538      an arm of an if-expression whose if-part is not a constant
9539      expression */
9540   const char *g = "string";
9541   ccp = &g + (g ? g-g : 0);
9542   /* HPUX 7.0 cc rejects these. */
9543   ++ccp;
9544   p = (char**) ccp;
9545   ccp = (char const *const *) p;
9546   { /* SCO 3.2v4 cc rejects this.  */
9547     char *t;
9548     char const *s = 0 ? (char *) 0 : (char const *) 0;
9549
9550     *t++ = 0;
9551   }
9552   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9553     int x[] = {25, 17};
9554     const int *foo = &x[0];
9555     ++foo;
9556   }
9557   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9558     typedef const int *iptr;
9559     iptr p = 0;
9560     ++p;
9561   }
9562   { /* AIX XL C 1.02.0.0 rejects this saying
9563        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9564     struct s { int j; const int *ap[3]; };
9565     struct s *b; b->j = 5;
9566   }
9567   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9568     const int foo = 10;
9569   }
9570 #endif
9571
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest.$ac_objext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578   (eval $ac_compile) 2>conftest.er1
9579   ac_status=$?
9580   grep -v '^ *+' conftest.er1 >conftest.err
9581   rm -f conftest.er1
9582   cat conftest.err >&5
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); } &&
9585          { ac_try='test -z "$ac_c_werror_flag"
9586                          || test ! -s conftest.err'
9587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588   (eval $ac_try) 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); }; } &&
9592          { ac_try='test -s conftest.$ac_objext'
9593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594   (eval $ac_try) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; }; then
9598   ac_cv_c_const=yes
9599 else
9600   echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603 ac_cv_c_const=no
9604 fi
9605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9606 fi
9607 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9608 echo "${ECHO_T}$ac_cv_c_const" >&6
9609 if test $ac_cv_c_const = no; then
9610
9611 cat >>confdefs.h <<\_ACEOF
9612 #define const
9613 _ACEOF
9614
9615 fi
9616
9617  echo "$as_me:$LINENO: checking for inline" >&5
9618 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9619 if test "${ac_cv_c_inline+set}" = set; then
9620   echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622   ac_cv_c_inline=no
9623 for ac_kw in inline __inline__ __inline; do
9624   cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h.  */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h.  */
9630 #ifndef __cplusplus
9631 typedef int foo_t;
9632 static $ac_kw foo_t static_foo () {return 0; }
9633 $ac_kw foo_t foo () {return 0; }
9634 #endif
9635
9636 _ACEOF
9637 rm -f conftest.$ac_objext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9639   (eval $ac_compile) 2>conftest.er1
9640   ac_status=$?
9641   grep -v '^ *+' conftest.er1 >conftest.err
9642   rm -f conftest.er1
9643   cat conftest.err >&5
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); } &&
9646          { ac_try='test -z "$ac_c_werror_flag"
9647                          || test ! -s conftest.err'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; } &&
9653          { ac_try='test -s conftest.$ac_objext'
9654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; }; then
9659   ac_cv_c_inline=$ac_kw; break
9660 else
9661   echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 fi
9665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9666 done
9667
9668 fi
9669 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9670 echo "${ECHO_T}$ac_cv_c_inline" >&6
9671
9672
9673 case $ac_cv_c_inline in
9674   inline | yes) ;;
9675   *)
9676     case $ac_cv_c_inline in
9677       no) ac_val=;;
9678       *) ac_val=$ac_cv_c_inline;;
9679     esac
9680     cat >>confdefs.h <<_ACEOF
9681 #ifndef __cplusplus
9682 #define inline $ac_val
9683 #endif
9684 _ACEOF
9685     ;;
9686 esac
9687
9688  echo "$as_me:$LINENO: checking for off_t" >&5
9689 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9690 if test "${ac_cv_type_off_t+set}" = set; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h.  */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h.  */
9699 $ac_includes_default
9700 int
9701 main ()
9702 {
9703 if ((off_t *) 0)
9704   return 0;
9705 if (sizeof (off_t))
9706   return 0;
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9713   (eval $ac_compile) 2>conftest.er1
9714   ac_status=$?
9715   grep -v '^ *+' conftest.er1 >conftest.err
9716   rm -f conftest.er1
9717   cat conftest.err >&5
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } &&
9720          { ac_try='test -z "$ac_c_werror_flag"
9721                          || test ! -s conftest.err'
9722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723   (eval $ac_try) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; } &&
9727          { ac_try='test -s conftest.$ac_objext'
9728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729   (eval $ac_try) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; }; then
9733   ac_cv_type_off_t=yes
9734 else
9735   echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_cv_type_off_t=no
9739 fi
9740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9741 fi
9742 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9743 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9744 if test $ac_cv_type_off_t = yes; then
9745   :
9746 else
9747
9748 cat >>confdefs.h <<_ACEOF
9749 #define off_t long
9750 _ACEOF
9751
9752 fi
9753
9754  echo "$as_me:$LINENO: checking for size_t" >&5
9755 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9756 if test "${ac_cv_type_size_t+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h.  */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h.  */
9765 $ac_includes_default
9766 int
9767 main ()
9768 {
9769 if ((size_t *) 0)
9770   return 0;
9771 if (sizeof (size_t))
9772   return 0;
9773   ;
9774   return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779   (eval $ac_compile) 2>conftest.er1
9780   ac_status=$?
9781   grep -v '^ *+' conftest.er1 >conftest.err
9782   rm -f conftest.er1
9783   cat conftest.err >&5
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } &&
9786          { ac_try='test -z "$ac_c_werror_flag"
9787                          || test ! -s conftest.err'
9788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789   (eval $ac_try) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); }; } &&
9793          { ac_try='test -s conftest.$ac_objext'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; }; then
9799   ac_cv_type_size_t=yes
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 ac_cv_type_size_t=no
9805 fi
9806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9807 fi
9808 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9809 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9810 if test $ac_cv_type_size_t = yes; then
9811   :
9812 else
9813
9814 cat >>confdefs.h <<_ACEOF
9815 #define size_t unsigned
9816 _ACEOF
9817
9818 fi
9819
9820  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9821 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9822 if test "${ac_cv_struct_tm+set}" = set; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825   cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831 #include <sys/types.h>
9832 #include <time.h>
9833
9834 int
9835 main ()
9836 {
9837 struct tm *tp; tp->tm_sec;
9838   ;
9839   return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest.$ac_objext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9844   (eval $ac_compile) 2>conftest.er1
9845   ac_status=$?
9846   grep -v '^ *+' conftest.er1 >conftest.err
9847   rm -f conftest.er1
9848   cat conftest.err >&5
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } &&
9851          { ac_try='test -z "$ac_c_werror_flag"
9852                          || test ! -s conftest.err'
9853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854   (eval $ac_try) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; } &&
9858          { ac_try='test -s conftest.$ac_objext'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_cv_struct_tm=time.h
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_cv_struct_tm=sys/time.h
9870 fi
9871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9872 fi
9873 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9874 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9875 if test $ac_cv_struct_tm = sys/time.h; then
9876
9877 cat >>confdefs.h <<\_ACEOF
9878 #define TM_IN_SYS_TIME 1
9879 _ACEOF
9880
9881 fi
9882
9883  echo "$as_me:$LINENO: checking for boolean" >&5
9884 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9885 if test "${ac_cv_type_boolean+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 $ac_includes_default
9895 int
9896 main ()
9897 {
9898 if ((boolean *) 0)
9899   return 0;
9900 if (sizeof (boolean))
9901   return 0;
9902   ;
9903   return 0;
9904 }
9905 _ACEOF
9906 rm -f conftest.$ac_objext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908   (eval $ac_compile) 2>conftest.er1
9909   ac_status=$?
9910   grep -v '^ *+' conftest.er1 >conftest.err
9911   rm -f conftest.er1
9912   cat conftest.err >&5
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); } &&
9915          { ac_try='test -z "$ac_c_werror_flag"
9916                          || test ! -s conftest.err'
9917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918   (eval $ac_try) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; } &&
9922          { ac_try='test -s conftest.$ac_objext'
9923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924   (eval $ac_try) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); }; }; then
9928   ac_cv_type_boolean=yes
9929 else
9930   echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9932
9933 ac_cv_type_boolean=no
9934 fi
9935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9936 fi
9937 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
9938 echo "${ECHO_T}$ac_cv_type_boolean" >&6
9939 if test $ac_cv_type_boolean = yes; then
9940   :
9941 else
9942
9943 cat >>confdefs.h <<_ACEOF
9944 #define boolean int
9945 _ACEOF
9946
9947 fi
9948  #needed for jpeglib
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
9961 do
9962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9963 echo "$as_me:$LINENO: checking for $ac_func" >&5
9964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9965 if eval "test \"\${$as_ac_var+set}\" = set"; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968   cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h.  */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h.  */
9974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9976 #define $ac_func innocuous_$ac_func
9977
9978 /* System header to define __stub macros and hopefully few prototypes,
9979     which can conflict with char $ac_func (); below.
9980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9981     <limits.h> exists even on freestanding compilers.  */
9982
9983 #ifdef __STDC__
9984 # include <limits.h>
9985 #else
9986 # include <assert.h>
9987 #endif
9988
9989 #undef $ac_func
9990
9991 /* Override any gcc2 internal prototype to avoid an error.  */
9992 #ifdef __cplusplus
9993 extern "C"
9994 {
9995 #endif
9996 /* We use char because int might match the return type of a gcc2
9997    builtin and then its argument prototype would still apply.  */
9998 char $ac_func ();
9999 /* The GNU C library defines this for functions which it implements
10000     to always fail with ENOSYS.  Some functions are actually named
10001     something starting with __ and the normal name is an alias.  */
10002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10003 choke me
10004 #else
10005 char (*f) () = $ac_func;
10006 #endif
10007 #ifdef __cplusplus
10008 }
10009 #endif
10010
10011 int
10012 main ()
10013 {
10014 return f != $ac_func;
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021   (eval $ac_link) 2>conftest.er1
10022   ac_status=$?
10023   grep -v '^ *+' conftest.er1 >conftest.err
10024   rm -f conftest.er1
10025   cat conftest.err >&5
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); } &&
10028          { ac_try='test -z "$ac_c_werror_flag"
10029                          || test ! -s conftest.err'
10030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031   (eval $ac_try) 2>&5
10032   ac_status=$?
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); }; } &&
10035          { ac_try='test -s conftest$ac_exeext'
10036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037   (eval $ac_try) 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); }; }; then
10041   eval "$as_ac_var=yes"
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 eval "$as_ac_var=no"
10047 fi
10048 rm -f conftest.err conftest.$ac_objext \
10049       conftest$ac_exeext conftest.$ac_ext
10050 fi
10051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10053 if test `eval echo '${'$as_ac_var'}'` = yes; then
10054   cat >>confdefs.h <<_ACEOF
10055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10056 _ACEOF
10057
10058 fi
10059 done
10060
10061
10062 # ------------------------------------------------------------------
10063
10064
10065 for ac_prog in freetype-config
10066 do
10067   # Extract the first word of "$ac_prog", so it can be a program name with args.
10068 set dummy $ac_prog; ac_word=$2
10069 echo "$as_me:$LINENO: checking for $ac_word" >&5
10070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10071 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074   if test -n "$FREETYPE_CONFIG"; then
10075   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
10076 else
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $PATH
10079 do
10080   IFS=$as_save_IFS
10081   test -z "$as_dir" && as_dir=.
10082   for ac_exec_ext in '' $ac_executable_extensions; do
10083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
10085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10086     break 2
10087   fi
10088 done
10089 done
10090
10091 fi
10092 fi
10093 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
10094 if test -n "$FREETYPE_CONFIG"; then
10095   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10096 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10097 else
10098   echo "$as_me:$LINENO: result: no" >&5
10099 echo "${ECHO_T}no" >&6
10100 fi
10101
10102   test -n "$FREETYPE_CONFIG" && break
10103 done
10104
10105 OLDCPPFLAGS="${CPPFLAGS}"
10106 OLDLIBS="${LIBS}"
10107 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10108     CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
10109 else if test -d /usr/include/freetype2; then
10110     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10111 else if test -d /usr/local/include/freetype2; then
10112     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10113 fi
10114 fi
10115 fi
10116
10117 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10118 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10119 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   ac_check_lib_save_LIBS=$LIBS
10123 LIBS="-lfreetype  $LIBS"
10124 cat >conftest.$ac_ext <<_ACEOF
10125 /* confdefs.h.  */
10126 _ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h.  */
10130
10131 /* Override any gcc2 internal prototype to avoid an error.  */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 /* We use char because int might match the return type of a gcc2
10136    builtin and then its argument prototype would still apply.  */
10137 char FT_Init_FreeType ();
10138 int
10139 main ()
10140 {
10141 FT_Init_FreeType ();
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10148   (eval $ac_link) 2>conftest.er1
10149   ac_status=$?
10150   grep -v '^ *+' conftest.er1 >conftest.err
10151   rm -f conftest.er1
10152   cat conftest.err >&5
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); } &&
10155          { ac_try='test -z "$ac_c_werror_flag"
10156                          || test ! -s conftest.err'
10157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158   (eval $ac_try) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); }; } &&
10162          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10168   ac_cv_lib_freetype_FT_Init_FreeType=yes
10169 else
10170   echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 ac_cv_lib_freetype_FT_Init_FreeType=no
10174 fi
10175 rm -f conftest.err conftest.$ac_objext \
10176       conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10178 fi
10179 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10180 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10181 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10182   HAVE_LIB_FREETYPE=1
10183 fi
10184
10185
10186 for ac_header in freetype/freetype.h
10187 do
10188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10190   echo "$as_me:$LINENO: checking for $ac_header" >&5
10191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 fi
10195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10197 else
10198   # Is the header compilable?
10199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h.  */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h.  */
10207 $ac_includes_default
10208 #include <$ac_header>
10209 _ACEOF
10210 rm -f conftest.$ac_objext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212   (eval $ac_compile) 2>conftest.er1
10213   ac_status=$?
10214   grep -v '^ *+' conftest.er1 >conftest.err
10215   rm -f conftest.er1
10216   cat conftest.err >&5
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } &&
10219          { ac_try='test -z "$ac_c_werror_flag"
10220                          || test ! -s conftest.err'
10221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222   (eval $ac_try) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; } &&
10226          { ac_try='test -s conftest.$ac_objext'
10227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228   (eval $ac_try) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; }; then
10232   ac_header_compiler=yes
10233 else
10234   echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ac_header_compiler=no
10238 fi
10239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10241 echo "${ECHO_T}$ac_header_compiler" >&6
10242
10243 # Is the header present?
10244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252 #include <$ac_header>
10253 _ACEOF
10254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10256   ac_status=$?
10257   grep -v '^ *+' conftest.er1 >conftest.err
10258   rm -f conftest.er1
10259   cat conftest.err >&5
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } >/dev/null; then
10262   if test -s conftest.err; then
10263     ac_cpp_err=$ac_c_preproc_warn_flag
10264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10265   else
10266     ac_cpp_err=
10267   fi
10268 else
10269   ac_cpp_err=yes
10270 fi
10271 if test -z "$ac_cpp_err"; then
10272   ac_header_preproc=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277   ac_header_preproc=no
10278 fi
10279 rm -f conftest.err conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10281 echo "${ECHO_T}$ac_header_preproc" >&6
10282
10283 # So?  What about this header?
10284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10285   yes:no: )
10286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10290     ac_header_preproc=yes
10291     ;;
10292   no:yes:* )
10293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10305     (
10306       cat <<\_ASBOX
10307 ## ------------------------------------------ ##
10308 ## Report this to the AC_PACKAGE_NAME lists.  ##
10309 ## ------------------------------------------ ##
10310 _ASBOX
10311     ) |
10312       sed "s/^/$as_me: WARNING:     /" >&2
10313     ;;
10314 esac
10315 echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   eval "$as_ac_Header=\$ac_header_preproc"
10321 fi
10322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10324
10325 fi
10326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10327   cat >>confdefs.h <<_ACEOF
10328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10329 _ACEOF
10330  HAVE_FREETYPE_FREETYPE_H=1
10331 fi
10332
10333 done
10334
10335
10336 for ac_header in ft2build.h
10337 do
10338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10340   echo "$as_me:$LINENO: checking for $ac_header" >&5
10341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10343   echo $ECHO_N "(cached) $ECHO_C" >&6
10344 fi
10345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10347 else
10348   # Is the header compilable?
10349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h.  */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h.  */
10357 $ac_includes_default
10358 #include <$ac_header>
10359 _ACEOF
10360 rm -f conftest.$ac_objext
10361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10362   (eval $ac_compile) 2>conftest.er1
10363   ac_status=$?
10364   grep -v '^ *+' conftest.er1 >conftest.err
10365   rm -f conftest.er1
10366   cat conftest.err >&5
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); } &&
10369          { ac_try='test -z "$ac_c_werror_flag"
10370                          || test ! -s conftest.err'
10371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372   (eval $ac_try) 2>&5
10373   ac_status=$?
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); }; } &&
10376          { ac_try='test -s conftest.$ac_objext'
10377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378   (eval $ac_try) 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); }; }; then
10382   ac_header_compiler=yes
10383 else
10384   echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10386
10387 ac_header_compiler=no
10388 fi
10389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10391 echo "${ECHO_T}$ac_header_compiler" >&6
10392
10393 # Is the header present?
10394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10396 cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h.  */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h.  */
10402 #include <$ac_header>
10403 _ACEOF
10404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } >/dev/null; then
10412   if test -s conftest.err; then
10413     ac_cpp_err=$ac_c_preproc_warn_flag
10414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10415   else
10416     ac_cpp_err=
10417   fi
10418 else
10419   ac_cpp_err=yes
10420 fi
10421 if test -z "$ac_cpp_err"; then
10422   ac_header_preproc=yes
10423 else
10424   echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427   ac_header_preproc=no
10428 fi
10429 rm -f conftest.err conftest.$ac_ext
10430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10431 echo "${ECHO_T}$ac_header_preproc" >&6
10432
10433 # So?  What about this header?
10434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10435   yes:no: )
10436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10440     ac_header_preproc=yes
10441     ;;
10442   no:yes:* )
10443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10455     (
10456       cat <<\_ASBOX
10457 ## ------------------------------------------ ##
10458 ## Report this to the AC_PACKAGE_NAME lists.  ##
10459 ## ------------------------------------------ ##
10460 _ASBOX
10461     ) |
10462       sed "s/^/$as_me: WARNING:     /" >&2
10463     ;;
10464 esac
10465 echo "$as_me:$LINENO: checking for $ac_header" >&5
10466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10468   echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470   eval "$as_ac_Header=\$ac_header_preproc"
10471 fi
10472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10474
10475 fi
10476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10477   cat >>confdefs.h <<_ACEOF
10478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10479 _ACEOF
10480  HAVE_FT2BUILD_H=1
10481 fi
10482
10483 done
10484
10485
10486 if test "x${HAVE_LIB_FREETYPE}" '!=' "x";then
10487     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10488         HAVE_FREETYPE=1
10489     fi
10490     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10491         HAVE_FREETYPE=1
10492     fi
10493 fi
10494
10495 if test "x${HAVE_FREETYPE}" = "x1"; then
10496     if test "x{$FREETYPE_CONFIG}" '!=' "x"; then
10497         LIBS="$LIBS "`freetype-config --libs`
10498     else
10499         LIBS="$LIBS -lfreetype"
10500     fi
10501
10502 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10503     HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10504 fi
10505
10506     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10507 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10508
10509     cat > conftest.c << EOF
10510 $HAVE_FT2BUILD_H_DEFINE
10511
10512 #ifdef HAVE_FT2BUILD_H
10513 #include <ft2build.h>
10514 #include FT_FREETYPE_H
10515 #include FT_GLYPH_H
10516 #include FT_SIZES_H
10517 #include FT_SFNT_NAMES_H
10518 #include FT_TRUETYPE_IDS_H
10519 #include FT_OUTLINE_H
10520 #else
10521 #include <freetype/freetype.h>
10522 #include <freetype/ftglyph.h>
10523 #include <freetype/ftsizes.h>
10524 #include <freetype/ftsnames.h>
10525 #include <freetype/ttnameid.h>
10526 #include <freetype/ftoutln.h>
10527 #endif
10528
10529 int main()
10530 {
10531     FT_Library ftlibrary;
10532     FT_Face face;
10533     FT_Error error;
10534     FT_ULong charcode;
10535     FT_UInt gindex;
10536     FT_Glyph glyph;
10537     FT_BBox bbox;
10538     FT_Matrix matrix;
10539     FT_UInt i;
10540     char* name = 0;
10541     char italic, bold;
10542
10543     FT_Init_FreeType(&ftlibrary);
10544     FT_New_Face(ftlibrary, "filename", 0, &face);
10545     i = face->num_glyphs - 1;
10546     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10547     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10548     FT_Get_Postscript_Name(face);
10549     FT_Get_Char_Index(face, 33);
10550     FT_Get_First_Char(face, &i);
10551     FT_Get_Next_Char(face, 33, &i);
10552     if(FT_HAS_GLYPH_NAMES(face)) {
10553         FT_Get_Glyph_Name(face, 33, name, 127);
10554     }
10555     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10556     FT_Get_Glyph(face->glyph, &glyph);
10557     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10558     FT_Done_Glyph(glyph);
10559     FT_Done_Face(face);
10560     FT_Done_FreeType(ftlibrary);
10561     return 0;
10562 }
10563 EOF
10564
10565     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10566     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10567         echo "$as_me:$LINENO: result: yes" >&5
10568 echo "${ECHO_T}yes" >&6
10569         cat >>confdefs.h <<_ACEOF
10570 #define HAVE_FREETYPE 1
10571 _ACEOF
10572
10573         cat >>confdefs.h <<_ACEOF
10574 #define USE_FREETYPE 1
10575 _ACEOF
10576   # for ttf2tp1
10577     else
10578         echo "configure: failed program was:" >&5
10579         cat conftest.c >&5
10580         HAVE_FREETYPE=0
10581         echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6
10583     fi
10584     rm -f conftest*
10585 fi
10586
10587 # if the above didn't work out, reset all changes to the compiler variables.
10588 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10589     CPPFLAGS=$OLDCPPFLAGS
10590     LIBS=$OLDLIBS
10591 fi
10592
10593
10594
10595 OLDCPPFLAGS="${CPPFLAGS}"
10596 OLDLIBS="${LIBS}"
10597
10598 if test -d /usr/include/fontconfig; then
10599     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10600 fi
10601
10602 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10603 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10604 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   ac_check_lib_save_LIBS=$LIBS
10608 LIBS="-lfontconfig  $LIBS"
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h.  */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h.  */
10615
10616 /* Override any gcc2 internal prototype to avoid an error.  */
10617 #ifdef __cplusplus
10618 extern "C"
10619 #endif
10620 /* We use char because int might match the return type of a gcc2
10621    builtin and then its argument prototype would still apply.  */
10622 char FcInit ();
10623 int
10624 main ()
10625 {
10626 FcInit ();
10627   ;
10628   return 0;
10629 }
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633   (eval $ac_link) 2>conftest.er1
10634   ac_status=$?
10635   grep -v '^ *+' conftest.er1 >conftest.err
10636   rm -f conftest.er1
10637   cat conftest.err >&5
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); } &&
10640          { ac_try='test -z "$ac_c_werror_flag"
10641                          || test ! -s conftest.err'
10642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643   (eval $ac_try) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; } &&
10647          { ac_try='test -s conftest$ac_exeext'
10648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649   (eval $ac_try) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; }; then
10653   ac_cv_lib_fontconfig_FcInit=yes
10654 else
10655   echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10657
10658 ac_cv_lib_fontconfig_FcInit=no
10659 fi
10660 rm -f conftest.err conftest.$ac_objext \
10661       conftest$ac_exeext conftest.$ac_ext
10662 LIBS=$ac_check_lib_save_LIBS
10663 fi
10664 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10665 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10666 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10667   HAVE_LIB_FONTCONFIG=1
10668 fi
10669
10670
10671 for ac_header in fontconfig.h
10672 do
10673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10675   echo "$as_me:$LINENO: checking for $ac_header" >&5
10676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10678   echo $ECHO_N "(cached) $ECHO_C" >&6
10679 fi
10680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10682 else
10683   # Is the header compilable?
10684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692 $ac_includes_default
10693 #include <$ac_header>
10694 _ACEOF
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10697   (eval $ac_compile) 2>conftest.er1
10698   ac_status=$?
10699   grep -v '^ *+' conftest.er1 >conftest.err
10700   rm -f conftest.er1
10701   cat conftest.err >&5
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } &&
10704          { ac_try='test -z "$ac_c_werror_flag"
10705                          || test ! -s conftest.err'
10706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707   (eval $ac_try) 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; } &&
10711          { ac_try='test -s conftest.$ac_objext'
10712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713   (eval $ac_try) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }; }; then
10717   ac_header_compiler=yes
10718 else
10719   echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 ac_header_compiler=no
10723 fi
10724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10726 echo "${ECHO_T}$ac_header_compiler" >&6
10727
10728 # Is the header present?
10729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 #include <$ac_header>
10738 _ACEOF
10739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } >/dev/null; then
10747   if test -s conftest.err; then
10748     ac_cpp_err=$ac_c_preproc_warn_flag
10749     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10750   else
10751     ac_cpp_err=
10752   fi
10753 else
10754   ac_cpp_err=yes
10755 fi
10756 if test -z "$ac_cpp_err"; then
10757   ac_header_preproc=yes
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762   ac_header_preproc=no
10763 fi
10764 rm -f conftest.err conftest.$ac_ext
10765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10766 echo "${ECHO_T}$ac_header_preproc" >&6
10767
10768 # So?  What about this header?
10769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10770   yes:no: )
10771     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10775     ac_header_preproc=yes
10776     ;;
10777   no:yes:* )
10778     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10780     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10781 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10782     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10784     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10785 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10788     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10790     (
10791       cat <<\_ASBOX
10792 ## ------------------------------------------ ##
10793 ## Report this to the AC_PACKAGE_NAME lists.  ##
10794 ## ------------------------------------------ ##
10795 _ASBOX
10796     ) |
10797       sed "s/^/$as_me: WARNING:     /" >&2
10798     ;;
10799 esac
10800 echo "$as_me:$LINENO: checking for $ac_header" >&5
10801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805   eval "$as_ac_Header=\$ac_header_preproc"
10806 fi
10807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10809
10810 fi
10811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10812   cat >>confdefs.h <<_ACEOF
10813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814 _ACEOF
10815  HAVE_FONTCONFIG_H=1
10816 fi
10817
10818 done
10819
10820
10821 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10822 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10823     HAVE_FONTCONFIG=1
10824 fi
10825 fi
10826
10827 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10828     LIBS="$LIBS -lfontconfig"
10829 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10830 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10831
10832 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10833     #move freetype library to the end of libraries, otherwise fontconfig
10834     #won't compile.
10835     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10836 fi
10837
10838 cat > conftest.c << EOF
10839 #include <fontconfig.h>
10840
10841 int main()
10842 {
10843     FcPattern *pattern, *match;
10844     FcResult result;
10845     FcChar8 *v;
10846     FcInit();
10847     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10848     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10849     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10850     FcConfigSubstitute(0, pattern, FcMatchPattern);
10851     FcDefaultSubstitute(pattern);
10852     match = FcFontMatch(0, pattern, &result);
10853     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10854     FcPatternPrint(pattern);
10855     FcPatternDestroy(pattern);
10856     FcPatternDestroy(match);
10857     return 0;
10858 }
10859 EOF
10860
10861     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10862     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10863         echo "$as_me:$LINENO: result: yes" >&5
10864 echo "${ECHO_T}yes" >&6
10865         cat >>confdefs.h <<_ACEOF
10866 #define HAVE_FONTCONFIG 1
10867 _ACEOF
10868
10869     else
10870         echo "configure: failed program was:" >&5
10871         cat conftest.c >&5
10872         HAVE_FONTCONFIG=0
10873         echo "$as_me:$LINENO: result: no" >&5
10874 echo "${ECHO_T}no" >&6
10875     fi
10876     rm -f conftest*
10877 fi
10878
10879 # if the above didn't work out, reset all changes to the compiler variables.
10880 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
10881     CPPFLAGS=$OLDCPPFLAGS
10882     LIBS=$OLDLIBS
10883 fi
10884
10885
10886 # ------------------------------------------------------------------
10887
10888 lame_objects=
10889 lame_makefile=
10890 if test "x${DISABLE_LAME}" = "xtrue"; then
10891     echo "*" Disabling lame support...
10892 else
10893     # old lame code at lib/lame
10894     if test -f lib/lame/Makefile.in; then
10895         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"
10896         lame_makefile="lib/lame/Makefile"
10897         CPPFLAGS="$CPPFLAGS -Ilame"
10898         cat >>confdefs.h <<_ACEOF
10899 #define HAVE_LAME 1
10900 _ACEOF
10901
10902     else
10903         if test -d /usr/include/lame; then
10904             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10905         else
10906             if test -d /usr/local/include/lame; then
10907                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10908             fi
10909         fi
10910
10911 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10912 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10913 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916   ac_check_lib_save_LIBS=$LIBS
10917 LIBS="-lmp3lame  $LIBS"
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h.  */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h.  */
10924
10925 /* Override any gcc2 internal prototype to avoid an error.  */
10926 #ifdef __cplusplus
10927 extern "C"
10928 #endif
10929 /* We use char because int might match the return type of a gcc2
10930    builtin and then its argument prototype would still apply.  */
10931 char lame_init ();
10932 int
10933 main ()
10934 {
10935 lame_init ();
10936   ;
10937   return 0;
10938 }
10939 _ACEOF
10940 rm -f conftest.$ac_objext conftest$ac_exeext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10942   (eval $ac_link) 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } &&
10949          { ac_try='test -z "$ac_c_werror_flag"
10950                          || test ! -s conftest.err'
10951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952   (eval $ac_try) 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); }; } &&
10956          { ac_try='test -s conftest$ac_exeext'
10957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958   (eval $ac_try) 2>&5
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); }; }; then
10962   ac_cv_lib_mp3lame_lame_init=yes
10963 else
10964   echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10966
10967 ac_cv_lib_mp3lame_lame_init=no
10968 fi
10969 rm -f conftest.err conftest.$ac_objext \
10970       conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10972 fi
10973 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
10974 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
10975 if test $ac_cv_lib_mp3lame_lame_init = yes; then
10976   cat >>confdefs.h <<_ACEOF
10977 #define HAVE_LIBMP3LAME 1
10978 _ACEOF
10979
10980   LIBS="-lmp3lame $LIBS"
10981
10982 else
10983   NO_LIBMP3LAME=1
10984 fi
10985
10986
10987 for ac_header in lame.h
10988 do
10989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10991   echo "$as_me:$LINENO: checking for $ac_header" >&5
10992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10994   echo $ECHO_N "(cached) $ECHO_C" >&6
10995 fi
10996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10998 else
10999   # Is the header compilable?
11000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11002 cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008 $ac_includes_default
11009 #include <$ac_header>
11010 _ACEOF
11011 rm -f conftest.$ac_objext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013   (eval $ac_compile) 2>conftest.er1
11014   ac_status=$?
11015   grep -v '^ *+' conftest.er1 >conftest.err
11016   rm -f conftest.er1
11017   cat conftest.err >&5
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); } &&
11020          { ac_try='test -z "$ac_c_werror_flag"
11021                          || test ! -s conftest.err'
11022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023   (eval $ac_try) 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; } &&
11027          { ac_try='test -s conftest.$ac_objext'
11028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029   (eval $ac_try) 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; }; then
11033   ac_header_compiler=yes
11034 else
11035   echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 ac_header_compiler=no
11039 fi
11040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11042 echo "${ECHO_T}$ac_header_compiler" >&6
11043
11044 # Is the header present?
11045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h.  */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h.  */
11053 #include <$ac_header>
11054 _ACEOF
11055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11057   ac_status=$?
11058   grep -v '^ *+' conftest.er1 >conftest.err
11059   rm -f conftest.er1
11060   cat conftest.err >&5
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); } >/dev/null; then
11063   if test -s conftest.err; then
11064     ac_cpp_err=$ac_c_preproc_warn_flag
11065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11066   else
11067     ac_cpp_err=
11068   fi
11069 else
11070   ac_cpp_err=yes
11071 fi
11072 if test -z "$ac_cpp_err"; then
11073   ac_header_preproc=yes
11074 else
11075   echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11077
11078   ac_header_preproc=no
11079 fi
11080 rm -f conftest.err conftest.$ac_ext
11081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11082 echo "${ECHO_T}$ac_header_preproc" >&6
11083
11084 # So?  What about this header?
11085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11086   yes:no: )
11087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11091     ac_header_preproc=yes
11092     ;;
11093   no:yes:* )
11094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11106     (
11107       cat <<\_ASBOX
11108 ## ------------------------------------------ ##
11109 ## Report this to the AC_PACKAGE_NAME lists.  ##
11110 ## ------------------------------------------ ##
11111 _ASBOX
11112     ) |
11113       sed "s/^/$as_me: WARNING:     /" >&2
11114     ;;
11115 esac
11116 echo "$as_me:$LINENO: checking for $ac_header" >&5
11117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11119   echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121   eval "$as_ac_Header=\$ac_header_preproc"
11122 fi
11123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11125
11126 fi
11127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11128   cat >>confdefs.h <<_ACEOF
11129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11130 _ACEOF
11131
11132 fi
11133
11134 done
11135
11136         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11137             cat >>confdefs.h <<_ACEOF
11138 #define HAVE_LAME 1
11139 _ACEOF
11140
11141         fi
11142     fi
11143 fi
11144
11145
11146 # ------------------------------------------------------------------
11147
11148
11149
11150 for ac_prog in avifile-config
11151 do
11152   # Extract the first word of "$ac_prog", so it can be a program name with args.
11153 set dummy $ac_prog; ac_word=$2
11154 echo "$as_me:$LINENO: checking for $ac_word" >&5
11155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11156 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159   if test -n "$AVIFILE_CONFIG"; then
11160   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11161 else
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11164 do
11165   IFS=$as_save_IFS
11166   test -z "$as_dir" && as_dir=.
11167   for ac_exec_ext in '' $ac_executable_extensions; do
11168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11169     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11171     break 2
11172   fi
11173 done
11174 done
11175
11176 fi
11177 fi
11178 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11179 if test -n "$AVIFILE_CONFIG"; then
11180   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11181 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11182 else
11183   echo "$as_me:$LINENO: result: no" >&5
11184 echo "${ECHO_T}no" >&6
11185 fi
11186
11187   test -n "$AVIFILE_CONFIG" && break
11188 done
11189
11190
11191 if test "x$AVIFILE_CONFIG" '!=' "x";then
11192     OLDCPPFLAGS="$CPPFLAGS"
11193     # temporarily add avifile paths to CPPFLAGS...
11194     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11195
11196
11197 for ac_header in avifile/version.h version.h
11198 do
11199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11201   echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 fi
11206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11208 else
11209   # Is the header compilable?
11210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 $ac_includes_default
11219 #include <$ac_header>
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223   (eval $ac_compile) 2>conftest.er1
11224   ac_status=$?
11225   grep -v '^ *+' conftest.er1 >conftest.err
11226   rm -f conftest.er1
11227   cat conftest.err >&5
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } &&
11230          { ac_try='test -z "$ac_c_werror_flag"
11231                          || test ! -s conftest.err'
11232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233   (eval $ac_try) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; } &&
11237          { ac_try='test -s conftest.$ac_objext'
11238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239   (eval $ac_try) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; }; then
11243   ac_header_compiler=yes
11244 else
11245   echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11247
11248 ac_header_compiler=no
11249 fi
11250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11252 echo "${ECHO_T}$ac_header_compiler" >&6
11253
11254 # Is the header present?
11255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263 #include <$ac_header>
11264 _ACEOF
11265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11267   ac_status=$?
11268   grep -v '^ *+' conftest.er1 >conftest.err
11269   rm -f conftest.er1
11270   cat conftest.err >&5
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } >/dev/null; then
11273   if test -s conftest.err; then
11274     ac_cpp_err=$ac_c_preproc_warn_flag
11275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11276   else
11277     ac_cpp_err=
11278   fi
11279 else
11280   ac_cpp_err=yes
11281 fi
11282 if test -z "$ac_cpp_err"; then
11283   ac_header_preproc=yes
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288   ac_header_preproc=no
11289 fi
11290 rm -f conftest.err conftest.$ac_ext
11291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11292 echo "${ECHO_T}$ac_header_preproc" >&6
11293
11294 # So?  What about this header?
11295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11296   yes:no: )
11297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11301     ac_header_preproc=yes
11302     ;;
11303   no:yes:* )
11304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11316     (
11317       cat <<\_ASBOX
11318 ## ------------------------------------------ ##
11319 ## Report this to the AC_PACKAGE_NAME lists.  ##
11320 ## ------------------------------------------ ##
11321 _ASBOX
11322     ) |
11323       sed "s/^/$as_me: WARNING:     /" >&2
11324     ;;
11325 esac
11326 echo "$as_me:$LINENO: checking for $ac_header" >&5
11327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331   eval "$as_ac_Header=\$ac_header_preproc"
11332 fi
11333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11335
11336 fi
11337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11338   cat >>confdefs.h <<_ACEOF
11339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11340 _ACEOF
11341
11342 fi
11343
11344 done
11345
11346     # ... and reset
11347     CPPFLAGS="$OLDCPPFLAGS"
11348 fi
11349
11350 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11351 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11352
11353 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11354     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11355 fi
11356 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11357     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11358 fi
11359
11360 cat > conftest.cpp << EOF
11361
11362 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11363 // so we have to introduce them this way
11364 $HAVE_VERSION_H_DEFINE
11365 $HAVE_AVIFILE_VERSION_H_DEFINE
11366
11367 #ifdef HAVE_VERSION_H
11368   #include <version.h>
11369 #endif
11370 #ifdef HAVE_AVIFILE_VERSION_H
11371   #include <avifile/version.h>
11372 #endif
11373
11374 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11375    #include <avifile.h>
11376    #include <aviplay.h>
11377    #include <fourcc.h>
11378    #include <creators.h>
11379    #include <StreamInfo.h>
11380    #define VERSION6
11381 #else
11382    #include <avifile.h>
11383    #include <aviplay.h>
11384    #include <aviutil.h>
11385    #define Width width
11386    #define Height height
11387    #define Data data
11388    #define Bpp bpp
11389 #endif
11390
11391 void test()
11392 {
11393   IAviReadFile* player;
11394   IAviReadStream* astream;
11395   IAviReadStream* vstream;
11396   player = CreateIAviReadFile(0);
11397   astream = player->GetStream(0, AviStream::Audio);
11398   vstream = player->GetStream(0, AviStream::Video);
11399   vstream -> StartStreaming();
11400   astream -> StartStreaming();
11401 #ifndef VERSION6
11402   MainAVIHeader head;
11403   player->GetFileHeader(&head);
11404   head.dwMicroSecPerFrame;
11405   head.dwTotalFrames;
11406   head.dwStreams;
11407   head.dwWidth;
11408   head.dwHeight;
11409   head.dwMicroSecPerFrame;
11410   astream->GetEndPos(),
11411   astream->GetEndTime());
11412   player->StreamCount();
11413 #else
11414   StreamInfo*audioinfo;
11415   StreamInfo*videoinfo;
11416   audioinfo = astream->GetStreamInfo();
11417   videoinfo = vstream->GetStreamInfo();
11418   videoinfo->GetVideoWidth();
11419   videoinfo->GetVideoHeight();
11420   audioinfo->GetAudioSamplesPerSec();
11421   videoinfo->GetFps();
11422 #endif
11423   CImage*img = vstream->GetFrame();
11424   img->ToRGB();
11425   img->Data();
11426   img->Bpp();
11427   img->Width();
11428   img->Height();
11429   WAVEFORMATEX wave;
11430   astream->GetAudioFormatInfo(&wave,0);
11431   uint_t a,b;
11432   astream->ReadFrames(0,0,0,a,b);
11433 }
11434 int main (int argc, char*argv)
11435 {
11436     return 0;
11437 }
11438 EOF
11439
11440 if test "x$AVIFILE_CONFIG" '!=' "x";then
11441     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11442     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11443     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11444     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11445       echo "$as_me:$LINENO: result: yes" >&5
11446 echo "${ECHO_T}yes" >&6
11447       AVIFILE=true
11448       export AVIFILE
11449       cat >>confdefs.h <<_ACEOF
11450 #define AVIFILE true
11451 _ACEOF
11452
11453     else
11454       echo "configure: failed program was:" >&5
11455       cat conftest.cpp >&5
11456       echo "$as_me:$LINENO: result: no" >&5
11457 echo "${ECHO_T}no" >&6
11458     fi
11459 else
11460     echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6
11462 fi
11463 rm -f conftest*
11464
11465 if test "x${AVIFILE}" = "xtrue"; then
11466     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11467     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11468     cat >>confdefs.h <<_ACEOF
11469 #define HAVE_AVIFILE 1
11470 _ACEOF
11471
11472 fi
11473
11474 if test "x${WIN32}" != "x"; then
11475     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11476     #if test "x${AVIFIL32}" != "x"; then
11477     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11478     #fi
11479     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11480     AVIFIL32=true
11481 fi
11482
11483
11484
11485 # ------------------------------------------------------------------
11486
11487 if test "x${UNCOMPRESS}" = "xgzip"; then
11488     cat >>confdefs.h <<_ACEOF
11489 #define USE_GZIP 1
11490 _ACEOF
11491
11492 fi
11493
11494
11495 # ------------------------------------------------------------------
11496
11497
11498 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11499 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11500 # should we support python versions below 2.2?
11501 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
11502     PY_VERSION=2.2
11503 fi
11504 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
11505     PY_VERSION=2.3
11506 fi
11507 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
11508     PY_VERSION=2.4
11509 fi
11510
11511 if test "x$PY_VERSION" "!=" "x"; then
11512     echo "$as_me:$LINENO: result: python$PY_VERSION" >&5
11513 echo "${ECHO_T}python$PY_VERSION" >&6
11514     if test "x$PYTHON_LIB" = "x";then
11515         PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11516     fi
11517     if test "x$PYTHON_INCLUDES" = "x";then
11518         PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11519     fi
11520     export PYTHON_INCLUDES PYTHON_LIB
11521
11522
11523     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11524 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11525
11526     cat > conftest.c << EOF
11527 #include <Python.h>
11528 #include <Imaging.h>
11529
11530 int main(int argn, char*argv)
11531 {
11532     int ret;
11533     ret = Py_Main(argn, argv);
11534     int x; // check also for gcc 2.95.x incompatibilities
11535     return ret;
11536 }
11537 EOF
11538     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11539     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11540         echo "$as_me:$LINENO: result: yes" >&5
11541 echo "${ECHO_T}yes" >&6
11542         PYTHON_OK=yes
11543     else
11544         echo "configure: failed program was:" >&5
11545         cat conftest.c >&5
11546         echo "$as_me:$LINENO: result: no" >&5
11547 echo "${ECHO_T}no" >&6
11548     fi
11549     rm -f conftest*
11550 else
11551     echo "$as_me:$LINENO: result: nope" >&5
11552 echo "${ECHO_T}nope" >&6
11553 fi
11554
11555
11556 if test "x$PYTHON_OK" '!=' "xyes";then
11557     echo all install uninstall clean: > lib/python/Makefile
11558     # fail silently- the most users won't have any need for the
11559     # python interface anyway
11560 else
11561     pythonrfxswf="lib/python/Makefile"
11562 fi
11563
11564 # ------------------------------------------------------------------
11565
11566 echo "$as_me:$LINENO: checking for missing libraries" >&5
11567 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11568
11569 if test "x$ZLIBMISSING" = "xtrue";then
11570     MISSINGLIBS="${MISSINGLIBS} zlib"
11571     DISABLEPNG2SWF=true;
11572 fi
11573 if test "x$JPEGLIBMISSING" = "xtrue";then
11574     MISSINGLIBS="${MISSINGLIBS} jpeglib"
11575     DISABLEPDF2SWF=true;
11576     DISABLEJPEG2SWF=true;
11577 fi
11578 if test "x$T1LIBMISSING" = "xtrue";then
11579     MISSINGLIBS="${MISSINGLIBS} t1lib"
11580 fi
11581
11582 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11583  DISABLEPDF2SWF=true;
11584  DISABLEJPEG2SWF=true;
11585  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11586 fi
11587 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11588  DISABLEPDF2SWF=true;
11589  MISSINGLIBS="${MISSINGLIBS} freetype"
11590 fi
11591 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11592  DISABLEPDF2SWF=true;
11593  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11594 fi
11595 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11596  DISABLEPNG2SWF=true;
11597  MISSINGLIBS="${MISSINGLIBS} zlib.h"
11598 fi
11599 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11600  MISSINGLIBS="${MISSINGLIBS} avifile"
11601 fi
11602
11603 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11604 echo "${ECHO_T}${MISSINGLIBS}" >&6
11605
11606 # ------------------------------------------------------------------
11607
11608 if test "x${MISSINGLIBS}" '!=' "x"; then
11609   echo "***************************************************"
11610   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11611 fi
11612
11613 avi2swf="avi2swf/Makefile"
11614 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11615  echo "* Disabling avi2swf tool..."
11616  echo all install uninstall clean: > avi2swf/Makefile
11617  avi2swf=
11618 fi
11619
11620 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11621 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11622   echo "* Disabling pdf2swf tool..."
11623   rm -f pdf2swf/Makefile
11624   echo all install uninstall clean: > pdf2swf/Makefile
11625   pdf2swf_makefile=""
11626 fi
11627
11628 if test "x${ZLIBMISSING}" = "xtrue"; then
11629   echo
11630   echo "* Warning! Without zlib, you will not be able to read"
11631   echo "* or write compressed Flash MX files!"
11632 fi
11633
11634 JPEG2SWF='jpeg2swf$(E)'
11635 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11636   echo "* Disabling jpeg2swf tool..."
11637   JPEG2SWF=
11638 fi
11639 export JPEG2SWF
11640
11641
11642 PNG2SWF='png2swf$(E)'
11643 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11644   echo "* Disabling png2swf tool..."
11645   PNG2SWF=
11646 fi
11647 export PNG2SWF
11648
11649
11650 if test "x${MISSINGLIBS}" '!=' "x"; then
11651   echo "***************************************************"
11652 fi
11653
11654 # ------------------------------------------------------------------
11655
11656 if test -f "release.in"; then release_in="./release"; fi
11657 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11658
11659           ac_config_files="$ac_config_files ${FILES}"
11660
11661 cat >confcache <<\_ACEOF
11662 # This file is a shell script that caches the results of configure
11663 # tests run on this system so they can be shared between configure
11664 # scripts and configure runs, see configure's option --config-cache.
11665 # It is not useful on other systems.  If it contains results you don't
11666 # want to keep, you may remove or edit it.
11667 #
11668 # config.status only pays attention to the cache file if you give it
11669 # the --recheck option to rerun configure.
11670 #
11671 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11673 # following values.
11674
11675 _ACEOF
11676
11677 # The following way of writing the cache mishandles newlines in values,
11678 # but we know of no workaround that is simple, portable, and efficient.
11679 # So, don't put newlines in cache variables' values.
11680 # Ultrix sh set writes to stderr and can't be redirected directly,
11681 # and sets the high bit in the cache file unless we assign to the vars.
11682 {
11683   (set) 2>&1 |
11684     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11685     *ac_space=\ *)
11686       # `set' does not quote correctly, so add quotes (double-quote
11687       # substitution turns \\\\ into \\, and sed turns \\ into \).
11688       sed -n \
11689         "s/'/'\\\\''/g;
11690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11691       ;;
11692     *)
11693       # `set' quotes correctly as required by POSIX, so do not add quotes.
11694       sed -n \
11695         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11696       ;;
11697     esac;
11698 } |
11699   sed '
11700      t clear
11701      : clear
11702      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11703      t end
11704      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11705      : end' >>confcache
11706 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11707   if test -w $cache_file; then
11708     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11709     cat confcache >$cache_file
11710   else
11711     echo "not updating unwritable cache $cache_file"
11712   fi
11713 fi
11714 rm -f confcache
11715
11716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11717 # Let make expand exec_prefix.
11718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11719
11720 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11721 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11722 # trailing colons and then remove the whole line if VPATH becomes empty
11723 # (actually we leave an empty line to preserve line numbers).
11724 if test "x$srcdir" = x.; then
11725   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11726 s/:*\$(srcdir):*/:/;
11727 s/:*\${srcdir}:*/:/;
11728 s/:*@srcdir@:*/:/;
11729 s/^\([^=]*=[     ]*\):*/\1/;
11730 s/:*$//;
11731 s/^[^=]*=[       ]*$//;
11732 }'
11733 fi
11734
11735 DEFS=-DHAVE_CONFIG_H
11736
11737 ac_libobjs=
11738 ac_ltlibobjs=
11739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11740   # 1. Remove the extension, and $U if already installed.
11741   ac_i=`echo "$ac_i" |
11742          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11743   # 2. Add them.
11744   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11745   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11746 done
11747 LIBOBJS=$ac_libobjs
11748
11749 LTLIBOBJS=$ac_ltlibobjs
11750
11751
11752
11753 : ${CONFIG_STATUS=./config.status}
11754 ac_clean_files_save=$ac_clean_files
11755 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11756 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11757 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11758 cat >$CONFIG_STATUS <<_ACEOF
11759 #! $SHELL
11760 # Generated by $as_me.
11761 # Run this file to recreate the current configuration.
11762 # Compiler output produced by configure, useful for debugging
11763 # configure, is in config.log if it exists.
11764
11765 debug=false
11766 ac_cs_recheck=false
11767 ac_cs_silent=false
11768 SHELL=\${CONFIG_SHELL-$SHELL}
11769 _ACEOF
11770
11771 cat >>$CONFIG_STATUS <<\_ACEOF
11772 ## --------------------- ##
11773 ## M4sh Initialization.  ##
11774 ## --------------------- ##
11775
11776 # Be Bourne compatible
11777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11778   emulate sh
11779   NULLCMD=:
11780   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11781   # is contrary to our usage.  Disable this feature.
11782   alias -g '${1+"$@"}'='"$@"'
11783 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11784   set -o posix
11785 fi
11786 DUALCASE=1; export DUALCASE # for MKS sh
11787
11788 # Support unset when possible.
11789 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11790   as_unset=unset
11791 else
11792   as_unset=false
11793 fi
11794
11795
11796 # Work around bugs in pre-3.0 UWIN ksh.
11797 $as_unset ENV MAIL MAILPATH
11798 PS1='$ '
11799 PS2='> '
11800 PS4='+ '
11801
11802 # NLS nuisances.
11803 for as_var in \
11804   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11805   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11806   LC_TELEPHONE LC_TIME
11807 do
11808   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11809     eval $as_var=C; export $as_var
11810   else
11811     $as_unset $as_var
11812   fi
11813 done
11814
11815 # Required to use basename.
11816 if expr a : '\(a\)' >/dev/null 2>&1; then
11817   as_expr=expr
11818 else
11819   as_expr=false
11820 fi
11821
11822 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11823   as_basename=basename
11824 else
11825   as_basename=false
11826 fi
11827
11828
11829 # Name of the executable.
11830 as_me=`$as_basename "$0" ||
11831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11832          X"$0" : 'X\(//\)$' \| \
11833          X"$0" : 'X\(/\)$' \| \
11834          .     : '\(.\)' 2>/dev/null ||
11835 echo X/"$0" |
11836     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11837           /^X\/\(\/\/\)$/{ s//\1/; q; }
11838           /^X\/\(\/\).*/{ s//\1/; q; }
11839           s/.*/./; q'`
11840
11841
11842 # PATH needs CR, and LINENO needs CR and PATH.
11843 # Avoid depending upon Character Ranges.
11844 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11845 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11846 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11847 as_cr_digits='0123456789'
11848 as_cr_alnum=$as_cr_Letters$as_cr_digits
11849
11850 # The user is always right.
11851 if test "${PATH_SEPARATOR+set}" != set; then
11852   echo "#! /bin/sh" >conf$$.sh
11853   echo  "exit 0"   >>conf$$.sh
11854   chmod +x conf$$.sh
11855   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11856     PATH_SEPARATOR=';'
11857   else
11858     PATH_SEPARATOR=:
11859   fi
11860   rm -f conf$$.sh
11861 fi
11862
11863
11864   as_lineno_1=$LINENO
11865   as_lineno_2=$LINENO
11866   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11867   test "x$as_lineno_1" != "x$as_lineno_2" &&
11868   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11869   # Find who we are.  Look in the path if we contain no path at all
11870   # relative or not.
11871   case $0 in
11872     *[\\/]* ) as_myself=$0 ;;
11873     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11875 do
11876   IFS=$as_save_IFS
11877   test -z "$as_dir" && as_dir=.
11878   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11879 done
11880
11881        ;;
11882   esac
11883   # We did not find ourselves, most probably we were run as `sh COMMAND'
11884   # in which case we are not to be found in the path.
11885   if test "x$as_myself" = x; then
11886     as_myself=$0
11887   fi
11888   if test ! -f "$as_myself"; then
11889     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11890 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11891    { (exit 1); exit 1; }; }
11892   fi
11893   case $CONFIG_SHELL in
11894   '')
11895     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11897 do
11898   IFS=$as_save_IFS
11899   test -z "$as_dir" && as_dir=.
11900   for as_base in sh bash ksh sh5; do
11901          case $as_dir in
11902          /*)
11903            if ("$as_dir/$as_base" -c '
11904   as_lineno_1=$LINENO
11905   as_lineno_2=$LINENO
11906   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11907   test "x$as_lineno_1" != "x$as_lineno_2" &&
11908   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11909              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11910              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11911              CONFIG_SHELL=$as_dir/$as_base
11912              export CONFIG_SHELL
11913              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11914            fi;;
11915          esac
11916        done
11917 done
11918 ;;
11919   esac
11920
11921   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11922   # uniformly replaced by the line number.  The first 'sed' inserts a
11923   # line-number line before each line; the second 'sed' does the real
11924   # work.  The second script uses 'N' to pair each line-number line
11925   # with the numbered line, and appends trailing '-' during
11926   # substitution so that $LINENO is not a special case at line end.
11927   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11928   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11929   sed '=' <$as_myself |
11930     sed '
11931       N
11932       s,$,-,
11933       : loop
11934       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11935       t loop
11936       s,-$,,
11937       s,^['$as_cr_digits']*\n,,
11938     ' >$as_me.lineno &&
11939   chmod +x $as_me.lineno ||
11940     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11941 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11942    { (exit 1); exit 1; }; }
11943
11944   # Don't try to exec as it changes $[0], causing all sort of problems
11945   # (the dirname of $[0] is not the place where we might find the
11946   # original and so on.  Autoconf is especially sensible to this).
11947   . ./$as_me.lineno
11948   # Exit status is that of the last command.
11949   exit
11950 }
11951
11952
11953 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11954   *c*,-n*) ECHO_N= ECHO_C='
11955 ' ECHO_T='      ' ;;
11956   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11957   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11958 esac
11959
11960 if expr a : '\(a\)' >/dev/null 2>&1; then
11961   as_expr=expr
11962 else
11963   as_expr=false
11964 fi
11965
11966 rm -f conf$$ conf$$.exe conf$$.file
11967 echo >conf$$.file
11968 if ln -s conf$$.file conf$$ 2>/dev/null; then
11969   # We could just check for DJGPP; but this test a) works b) is more generic
11970   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11971   if test -f conf$$.exe; then
11972     # Don't use ln at all; we don't have any links
11973     as_ln_s='cp -p'
11974   else
11975     as_ln_s='ln -s'
11976   fi
11977 elif ln conf$$.file conf$$ 2>/dev/null; then
11978   as_ln_s=ln
11979 else
11980   as_ln_s='cp -p'
11981 fi
11982 rm -f conf$$ conf$$.exe conf$$.file
11983
11984 if mkdir -p . 2>/dev/null; then
11985   as_mkdir_p=:
11986 else
11987   test -d ./-p && rmdir ./-p
11988   as_mkdir_p=false
11989 fi
11990
11991 as_executable_p="test -f"
11992
11993 # Sed expression to map a string onto a valid CPP name.
11994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11995
11996 # Sed expression to map a string onto a valid variable name.
11997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11998
11999
12000 # IFS
12001 # We need space, tab and new line, in precisely that order.
12002 as_nl='
12003 '
12004 IFS="   $as_nl"
12005
12006 # CDPATH.
12007 $as_unset CDPATH
12008
12009 exec 6>&1
12010
12011 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12012 # report actual input values of CONFIG_FILES etc. instead of their
12013 # values after options handling.  Logging --version etc. is OK.
12014 exec 5>>config.log
12015 {
12016   echo
12017   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12018 ## Running $as_me. ##
12019 _ASBOX
12020 } >&5
12021 cat >&5 <<_CSEOF
12022
12023 This file was extended by $as_me, which was
12024 generated by GNU Autoconf 2.59.  Invocation command line was
12025
12026   CONFIG_FILES    = $CONFIG_FILES
12027   CONFIG_HEADERS  = $CONFIG_HEADERS
12028   CONFIG_LINKS    = $CONFIG_LINKS
12029   CONFIG_COMMANDS = $CONFIG_COMMANDS
12030   $ $0 $@
12031
12032 _CSEOF
12033 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12034 echo >&5
12035 _ACEOF
12036
12037 # Files that config.status was made for.
12038 if test -n "$ac_config_files"; then
12039   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12040 fi
12041
12042 if test -n "$ac_config_headers"; then
12043   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12044 fi
12045
12046 if test -n "$ac_config_links"; then
12047   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12048 fi
12049
12050 if test -n "$ac_config_commands"; then
12051   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12052 fi
12053
12054 cat >>$CONFIG_STATUS <<\_ACEOF
12055
12056 ac_cs_usage="\
12057 \`$as_me' instantiates files from templates according to the
12058 current configuration.
12059
12060 Usage: $0 [OPTIONS] [FILE]...
12061
12062   -h, --help       print this help, then exit
12063   -V, --version    print version number, then exit
12064   -q, --quiet      do not print progress messages
12065   -d, --debug      don't remove temporary files
12066       --recheck    update $as_me by reconfiguring in the same conditions
12067   --file=FILE[:TEMPLATE]
12068                    instantiate the configuration file FILE
12069   --header=FILE[:TEMPLATE]
12070                    instantiate the configuration header FILE
12071
12072 Configuration files:
12073 $config_files
12074
12075 Configuration headers:
12076 $config_headers
12077
12078 Report bugs to <bug-autoconf@gnu.org>."
12079 _ACEOF
12080
12081 cat >>$CONFIG_STATUS <<_ACEOF
12082 ac_cs_version="\\
12083 config.status
12084 configured by $0, generated by GNU Autoconf 2.59,
12085   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12086
12087 Copyright (C) 2003 Free Software Foundation, Inc.
12088 This config.status script is free software; the Free Software Foundation
12089 gives unlimited permission to copy, distribute and modify it."
12090 srcdir=$srcdir
12091 INSTALL="$INSTALL"
12092 _ACEOF
12093
12094 cat >>$CONFIG_STATUS <<\_ACEOF
12095 # If no file are specified by the user, then we need to provide default
12096 # value.  By we need to know if files were specified by the user.
12097 ac_need_defaults=:
12098 while test $# != 0
12099 do
12100   case $1 in
12101   --*=*)
12102     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12103     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12104     ac_shift=:
12105     ;;
12106   -*)
12107     ac_option=$1
12108     ac_optarg=$2
12109     ac_shift=shift
12110     ;;
12111   *) # This is not an option, so the user has probably given explicit
12112      # arguments.
12113      ac_option=$1
12114      ac_need_defaults=false;;
12115   esac
12116
12117   case $ac_option in
12118   # Handling of the options.
12119 _ACEOF
12120 cat >>$CONFIG_STATUS <<\_ACEOF
12121   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12122     ac_cs_recheck=: ;;
12123   --version | --vers* | -V )
12124     echo "$ac_cs_version"; exit 0 ;;
12125   --he | --h)
12126     # Conflict between --help and --header
12127     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12128 Try \`$0 --help' for more information." >&5
12129 echo "$as_me: error: ambiguous option: $1
12130 Try \`$0 --help' for more information." >&2;}
12131    { (exit 1); exit 1; }; };;
12132   --help | --hel | -h )
12133     echo "$ac_cs_usage"; exit 0 ;;
12134   --debug | --d* | -d )
12135     debug=: ;;
12136   --file | --fil | --fi | --f )
12137     $ac_shift
12138     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12139     ac_need_defaults=false;;
12140   --header | --heade | --head | --hea )
12141     $ac_shift
12142     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12143     ac_need_defaults=false;;
12144   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12145   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12146     ac_cs_silent=: ;;
12147
12148   # This is an error.
12149   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12150 Try \`$0 --help' for more information." >&5
12151 echo "$as_me: error: unrecognized option: $1
12152 Try \`$0 --help' for more information." >&2;}
12153    { (exit 1); exit 1; }; } ;;
12154
12155   *) ac_config_targets="$ac_config_targets $1" ;;
12156
12157   esac
12158   shift
12159 done
12160
12161 ac_configure_extra_args=
12162
12163 if $ac_cs_silent; then
12164   exec 6>/dev/null
12165   ac_configure_extra_args="$ac_configure_extra_args --silent"
12166 fi
12167
12168 _ACEOF
12169 cat >>$CONFIG_STATUS <<_ACEOF
12170 if \$ac_cs_recheck; then
12171   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12172   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12173 fi
12174
12175 _ACEOF
12176
12177
12178
12179
12180
12181 cat >>$CONFIG_STATUS <<\_ACEOF
12182 for ac_config_target in $ac_config_targets
12183 do
12184   case "$ac_config_target" in
12185   # Handling of arguments.
12186   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12187   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12188   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12189 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12190    { (exit 1); exit 1; }; };;
12191   esac
12192 done
12193
12194 # If the user did not use the arguments to specify the items to instantiate,
12195 # then the envvar interface is used.  Set only those that are not.
12196 # We use the long form for the default assignment because of an extremely
12197 # bizarre bug on SunOS 4.1.3.
12198 if $ac_need_defaults; then
12199   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12200   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12201 fi
12202
12203 # Have a temporary directory for convenience.  Make it in the build tree
12204 # simply because there is no reason to put it here, and in addition,
12205 # creating and moving files from /tmp can sometimes cause problems.
12206 # Create a temporary directory, and hook for its removal unless debugging.
12207 $debug ||
12208 {
12209   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12210   trap '{ (exit 1); exit 1; }' 1 2 13 15
12211 }
12212
12213 # Create a (secure) tmp directory for tmp files.
12214
12215 {
12216   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12217   test -n "$tmp" && test -d "$tmp"
12218 }  ||
12219 {
12220   tmp=./confstat$$-$RANDOM
12221   (umask 077 && mkdir $tmp)
12222 } ||
12223 {
12224    echo "$me: cannot create a temporary directory in ." >&2
12225    { (exit 1); exit 1; }
12226 }
12227
12228 _ACEOF
12229
12230 cat >>$CONFIG_STATUS <<_ACEOF
12231
12232 #
12233 # CONFIG_FILES section.
12234 #
12235
12236 # No need to generate the scripts if there are no CONFIG_FILES.
12237 # This happens for instance when ./config.status config.h
12238 if test -n "\$CONFIG_FILES"; then
12239   # Protect against being on the right side of a sed subst in config.status.
12240   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12241    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12242 s,@SHELL@,$SHELL,;t t
12243 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12244 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12245 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12246 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12247 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12248 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12249 s,@exec_prefix@,$exec_prefix,;t t
12250 s,@prefix@,$prefix,;t t
12251 s,@program_transform_name@,$program_transform_name,;t t
12252 s,@bindir@,$bindir,;t t
12253 s,@sbindir@,$sbindir,;t t
12254 s,@libexecdir@,$libexecdir,;t t
12255 s,@datadir@,$datadir,;t t
12256 s,@sysconfdir@,$sysconfdir,;t t
12257 s,@sharedstatedir@,$sharedstatedir,;t t
12258 s,@localstatedir@,$localstatedir,;t t
12259 s,@libdir@,$libdir,;t t
12260 s,@includedir@,$includedir,;t t
12261 s,@oldincludedir@,$oldincludedir,;t t
12262 s,@infodir@,$infodir,;t t
12263 s,@mandir@,$mandir,;t t
12264 s,@build_alias@,$build_alias,;t t
12265 s,@host_alias@,$host_alias,;t t
12266 s,@target_alias@,$target_alias,;t t
12267 s,@DEFS@,$DEFS,;t t
12268 s,@ECHO_C@,$ECHO_C,;t t
12269 s,@ECHO_N@,$ECHO_N,;t t
12270 s,@ECHO_T@,$ECHO_T,;t t
12271 s,@LIBS@,$LIBS,;t t
12272 s,@build@,$build,;t t
12273 s,@build_cpu@,$build_cpu,;t t
12274 s,@build_vendor@,$build_vendor,;t t
12275 s,@build_os@,$build_os,;t t
12276 s,@host@,$host,;t t
12277 s,@host_cpu@,$host_cpu,;t t
12278 s,@host_vendor@,$host_vendor,;t t
12279 s,@host_os@,$host_os,;t t
12280 s,@CC@,$CC,;t t
12281 s,@CFLAGS@,$CFLAGS,;t t
12282 s,@LDFLAGS@,$LDFLAGS,;t t
12283 s,@CPPFLAGS@,$CPPFLAGS,;t t
12284 s,@ac_ct_CC@,$ac_ct_CC,;t t
12285 s,@EXEEXT@,$EXEEXT,;t t
12286 s,@OBJEXT@,$OBJEXT,;t t
12287 s,@CXX@,$CXX,;t t
12288 s,@CXXFLAGS@,$CXXFLAGS,;t t
12289 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12290 s,@CPP@,$CPP,;t t
12291 s,@RANLIB@,$RANLIB,;t t
12292 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12293 s,@SET_MAKE@,$SET_MAKE,;t t
12294 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12295 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12296 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12297 s,@LN_S@,$LN_S,;t t
12298 s,@ECHO@,$ECHO,;t t
12299 s,@STRIP@,$STRIP,;t t
12300 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12301 s,@EGREP@,$EGREP,;t t
12302 s,@LIBTOOL@,$LIBTOOL,;t t
12303 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12304 s,@AR@,$AR,;t t
12305 s,@SLEXT@,$SLEXT,;t t
12306 s,@target@,$target,;t t
12307 s,@target_cpu@,$target_cpu,;t t
12308 s,@target_vendor@,$target_vendor,;t t
12309 s,@target_os@,$target_os,;t t
12310 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12311 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12312 s,@PACKAGE@,$PACKAGE,;t t
12313 s,@VERSION@,$VERSION,;t t
12314 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12315 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12316 s,@lame_objects@,$lame_objects,;t t
12317 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12318 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12319 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12320 s,@USE_GZIP@,$USE_GZIP,;t t
12321 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12322 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12323 s,@JPEG2SWF@,$JPEG2SWF,;t t
12324 s,@PNG2SWF@,$PNG2SWF,;t t
12325 s,@LIBOBJS@,$LIBOBJS,;t t
12326 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12327 CEOF
12328
12329 _ACEOF
12330
12331   cat >>$CONFIG_STATUS <<\_ACEOF
12332   # Split the substitutions into bite-sized pieces for seds with
12333   # small command number limits, like on Digital OSF/1 and HP-UX.
12334   ac_max_sed_lines=48
12335   ac_sed_frag=1 # Number of current file.
12336   ac_beg=1 # First line for current file.
12337   ac_end=$ac_max_sed_lines # Line after last line for current file.
12338   ac_more_lines=:
12339   ac_sed_cmds=
12340   while $ac_more_lines; do
12341     if test $ac_beg -gt 1; then
12342       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12343     else
12344       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12345     fi
12346     if test ! -s $tmp/subs.frag; then
12347       ac_more_lines=false
12348     else
12349       # The purpose of the label and of the branching condition is to
12350       # speed up the sed processing (if there are no `@' at all, there
12351       # is no need to browse any of the substitutions).
12352       # These are the two extra sed commands mentioned above.
12353       (echo ':t
12354   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12355       if test -z "$ac_sed_cmds"; then
12356         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12357       else
12358         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12359       fi
12360       ac_sed_frag=`expr $ac_sed_frag + 1`
12361       ac_beg=$ac_end
12362       ac_end=`expr $ac_end + $ac_max_sed_lines`
12363     fi
12364   done
12365   if test -z "$ac_sed_cmds"; then
12366     ac_sed_cmds=cat
12367   fi
12368 fi # test -n "$CONFIG_FILES"
12369
12370 _ACEOF
12371 cat >>$CONFIG_STATUS <<\_ACEOF
12372 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12373   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12374   case $ac_file in
12375   - | *:- | *:-:* ) # input from stdin
12376         cat >$tmp/stdin
12377         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12378         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12379   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12380         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12381   * )   ac_file_in=$ac_file.in ;;
12382   esac
12383
12384   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12385   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12386 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12387          X"$ac_file" : 'X\(//\)[^/]' \| \
12388          X"$ac_file" : 'X\(//\)$' \| \
12389          X"$ac_file" : 'X\(/\)' \| \
12390          .     : '\(.\)' 2>/dev/null ||
12391 echo X"$ac_file" |
12392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12393           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12394           /^X\(\/\/\)$/{ s//\1/; q; }
12395           /^X\(\/\).*/{ s//\1/; q; }
12396           s/.*/./; q'`
12397   { if $as_mkdir_p; then
12398     mkdir -p "$ac_dir"
12399   else
12400     as_dir="$ac_dir"
12401     as_dirs=
12402     while test ! -d "$as_dir"; do
12403       as_dirs="$as_dir $as_dirs"
12404       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12406          X"$as_dir" : 'X\(//\)[^/]' \| \
12407          X"$as_dir" : 'X\(//\)$' \| \
12408          X"$as_dir" : 'X\(/\)' \| \
12409          .     : '\(.\)' 2>/dev/null ||
12410 echo X"$as_dir" |
12411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12412           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12413           /^X\(\/\/\)$/{ s//\1/; q; }
12414           /^X\(\/\).*/{ s//\1/; q; }
12415           s/.*/./; q'`
12416     done
12417     test ! -n "$as_dirs" || mkdir $as_dirs
12418   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12419 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12420    { (exit 1); exit 1; }; }; }
12421
12422   ac_builddir=.
12423
12424 if test "$ac_dir" != .; then
12425   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12426   # A "../" for each directory in $ac_dir_suffix.
12427   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12428 else
12429   ac_dir_suffix= ac_top_builddir=
12430 fi
12431
12432 case $srcdir in
12433   .)  # No --srcdir option.  We are building in place.
12434     ac_srcdir=.
12435     if test -z "$ac_top_builddir"; then
12436        ac_top_srcdir=.
12437     else
12438        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12439     fi ;;
12440   [\\/]* | ?:[\\/]* )  # Absolute path.
12441     ac_srcdir=$srcdir$ac_dir_suffix;
12442     ac_top_srcdir=$srcdir ;;
12443   *) # Relative path.
12444     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12445     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12446 esac
12447
12448 # Do not use `cd foo && pwd` to compute absolute paths, because
12449 # the directories may not exist.
12450 case `pwd` in
12451 .) ac_abs_builddir="$ac_dir";;
12452 *)
12453   case "$ac_dir" in
12454   .) ac_abs_builddir=`pwd`;;
12455   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12456   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12457   esac;;
12458 esac
12459 case $ac_abs_builddir in
12460 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12461 *)
12462   case ${ac_top_builddir}. in
12463   .) ac_abs_top_builddir=$ac_abs_builddir;;
12464   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12465   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12466   esac;;
12467 esac
12468 case $ac_abs_builddir in
12469 .) ac_abs_srcdir=$ac_srcdir;;
12470 *)
12471   case $ac_srcdir in
12472   .) ac_abs_srcdir=$ac_abs_builddir;;
12473   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12474   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12475   esac;;
12476 esac
12477 case $ac_abs_builddir in
12478 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12479 *)
12480   case $ac_top_srcdir in
12481   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12482   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12483   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12484   esac;;
12485 esac
12486
12487
12488   case $INSTALL in
12489   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12490   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12491   esac
12492
12493   if test x"$ac_file" != x-; then
12494     { echo "$as_me:$LINENO: creating $ac_file" >&5
12495 echo "$as_me: creating $ac_file" >&6;}
12496     rm -f "$ac_file"
12497   fi
12498   # Let's still pretend it is `configure' which instantiates (i.e., don't
12499   # use $as_me), people would be surprised to read:
12500   #    /* config.h.  Generated by config.status.  */
12501   if test x"$ac_file" = x-; then
12502     configure_input=
12503   else
12504     configure_input="$ac_file.  "
12505   fi
12506   configure_input=$configure_input"Generated from `echo $ac_file_in |
12507                                      sed 's,.*/,,'` by configure."
12508
12509   # First look for the input files in the build tree, otherwise in the
12510   # src tree.
12511   ac_file_inputs=`IFS=:
12512     for f in $ac_file_in; do
12513       case $f in
12514       -) echo $tmp/stdin ;;
12515       [\\/$]*)
12516          # Absolute (can't be DOS-style, as IFS=:)
12517          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12518 echo "$as_me: error: cannot find input file: $f" >&2;}
12519    { (exit 1); exit 1; }; }
12520          echo "$f";;
12521       *) # Relative
12522          if test -f "$f"; then
12523            # Build tree
12524            echo "$f"
12525          elif test -f "$srcdir/$f"; then
12526            # Source tree
12527            echo "$srcdir/$f"
12528          else
12529            # /dev/null tree
12530            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12531 echo "$as_me: error: cannot find input file: $f" >&2;}
12532    { (exit 1); exit 1; }; }
12533          fi;;
12534       esac
12535     done` || { (exit 1); exit 1; }
12536 _ACEOF
12537 cat >>$CONFIG_STATUS <<_ACEOF
12538   sed "$ac_vpsub
12539 $extrasub
12540 _ACEOF
12541 cat >>$CONFIG_STATUS <<\_ACEOF
12542 :t
12543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12544 s,@configure_input@,$configure_input,;t t
12545 s,@srcdir@,$ac_srcdir,;t t
12546 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12547 s,@top_srcdir@,$ac_top_srcdir,;t t
12548 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12549 s,@builddir@,$ac_builddir,;t t
12550 s,@abs_builddir@,$ac_abs_builddir,;t t
12551 s,@top_builddir@,$ac_top_builddir,;t t
12552 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12553 s,@INSTALL@,$ac_INSTALL,;t t
12554 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12555   rm -f $tmp/stdin
12556   if test x"$ac_file" != x-; then
12557     mv $tmp/out $ac_file
12558   else
12559     cat $tmp/out
12560     rm -f $tmp/out
12561   fi
12562
12563 done
12564 _ACEOF
12565 cat >>$CONFIG_STATUS <<\_ACEOF
12566
12567 #
12568 # CONFIG_HEADER section.
12569 #
12570
12571 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12572 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12573 #
12574 # ac_d sets the value in "#define NAME VALUE" lines.
12575 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12576 ac_dB='[         ].*$,\1#\2'
12577 ac_dC=' '
12578 ac_dD=',;t'
12579 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12580 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12581 ac_uB='$,\1#\2define\3'
12582 ac_uC=' '
12583 ac_uD=',;t'
12584
12585 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12586   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12587   case $ac_file in
12588   - | *:- | *:-:* ) # input from stdin
12589         cat >$tmp/stdin
12590         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12591         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12592   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12593         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12594   * )   ac_file_in=$ac_file.in ;;
12595   esac
12596
12597   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12598 echo "$as_me: creating $ac_file" >&6;}
12599
12600   # First look for the input files in the build tree, otherwise in the
12601   # src tree.
12602   ac_file_inputs=`IFS=:
12603     for f in $ac_file_in; do
12604       case $f in
12605       -) echo $tmp/stdin ;;
12606       [\\/$]*)
12607          # Absolute (can't be DOS-style, as IFS=:)
12608          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12609 echo "$as_me: error: cannot find input file: $f" >&2;}
12610    { (exit 1); exit 1; }; }
12611          # Do quote $f, to prevent DOS paths from being IFS'd.
12612          echo "$f";;
12613       *) # Relative
12614          if test -f "$f"; then
12615            # Build tree
12616            echo "$f"
12617          elif test -f "$srcdir/$f"; then
12618            # Source tree
12619            echo "$srcdir/$f"
12620          else
12621            # /dev/null tree
12622            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12623 echo "$as_me: error: cannot find input file: $f" >&2;}
12624    { (exit 1); exit 1; }; }
12625          fi;;
12626       esac
12627     done` || { (exit 1); exit 1; }
12628   # Remove the trailing spaces.
12629   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12630
12631 _ACEOF
12632
12633 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12634 # `conftest.undefs', that substitutes the proper values into
12635 # config.h.in to produce config.h.  The first handles `#define'
12636 # templates, and the second `#undef' templates.
12637 # And first: Protect against being on the right side of a sed subst in
12638 # config.status.  Protect against being in an unquoted here document
12639 # in config.status.
12640 rm -f conftest.defines conftest.undefs
12641 # Using a here document instead of a string reduces the quoting nightmare.
12642 # Putting comments in sed scripts is not portable.
12643 #
12644 # `end' is used to avoid that the second main sed command (meant for
12645 # 0-ary CPP macros) applies to n-ary macro definitions.
12646 # See the Autoconf documentation for `clear'.
12647 cat >confdef2sed.sed <<\_ACEOF
12648 s/[\\&,]/\\&/g
12649 s,[\\$`],\\&,g
12650 t clear
12651 : clear
12652 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12653 t end
12654 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12655 : end
12656 _ACEOF
12657 # If some macros were called several times there might be several times
12658 # the same #defines, which is useless.  Nevertheless, we may not want to
12659 # sort them, since we want the *last* AC-DEFINE to be honored.
12660 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12661 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12662 rm -f confdef2sed.sed
12663
12664 # This sed command replaces #undef with comments.  This is necessary, for
12665 # example, in the case of _POSIX_SOURCE, which is predefined and required
12666 # on some systems where configure will not decide to define it.
12667 cat >>conftest.undefs <<\_ACEOF
12668 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12669 _ACEOF
12670
12671 # Break up conftest.defines because some shells have a limit on the size
12672 # of here documents, and old seds have small limits too (100 cmds).
12673 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12674 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12675 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12676 echo '  :' >>$CONFIG_STATUS
12677 rm -f conftest.tail
12678 while grep . conftest.defines >/dev/null
12679 do
12680   # Write a limited-size here document to $tmp/defines.sed.
12681   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12682   # Speed up: don't consider the non `#define' lines.
12683   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12684   # Work around the forget-to-reset-the-flag bug.
12685   echo 't clr' >>$CONFIG_STATUS
12686   echo ': clr' >>$CONFIG_STATUS
12687   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12688   echo 'CEOF
12689   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12690   rm -f $tmp/in
12691   mv $tmp/out $tmp/in
12692 ' >>$CONFIG_STATUS
12693   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12694   rm -f conftest.defines
12695   mv conftest.tail conftest.defines
12696 done
12697 rm -f conftest.defines
12698 echo '  fi # grep' >>$CONFIG_STATUS
12699 echo >>$CONFIG_STATUS
12700
12701 # Break up conftest.undefs because some shells have a limit on the size
12702 # of here documents, and old seds have small limits too (100 cmds).
12703 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12704 rm -f conftest.tail
12705 while grep . conftest.undefs >/dev/null
12706 do
12707   # Write a limited-size here document to $tmp/undefs.sed.
12708   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12709   # Speed up: don't consider the non `#undef'
12710   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12711   # Work around the forget-to-reset-the-flag bug.
12712   echo 't clr' >>$CONFIG_STATUS
12713   echo ': clr' >>$CONFIG_STATUS
12714   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12715   echo 'CEOF
12716   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12717   rm -f $tmp/in
12718   mv $tmp/out $tmp/in
12719 ' >>$CONFIG_STATUS
12720   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12721   rm -f conftest.undefs
12722   mv conftest.tail conftest.undefs
12723 done
12724 rm -f conftest.undefs
12725
12726 cat >>$CONFIG_STATUS <<\_ACEOF
12727   # Let's still pretend it is `configure' which instantiates (i.e., don't
12728   # use $as_me), people would be surprised to read:
12729   #    /* config.h.  Generated by config.status.  */
12730   if test x"$ac_file" = x-; then
12731     echo "/* Generated by configure.  */" >$tmp/config.h
12732   else
12733     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12734   fi
12735   cat $tmp/in >>$tmp/config.h
12736   rm -f $tmp/in
12737   if test x"$ac_file" != x-; then
12738     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12739       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12740 echo "$as_me: $ac_file is unchanged" >&6;}
12741     else
12742       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12744          X"$ac_file" : 'X\(//\)[^/]' \| \
12745          X"$ac_file" : 'X\(//\)$' \| \
12746          X"$ac_file" : 'X\(/\)' \| \
12747          .     : '\(.\)' 2>/dev/null ||
12748 echo X"$ac_file" |
12749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12750           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12751           /^X\(\/\/\)$/{ s//\1/; q; }
12752           /^X\(\/\).*/{ s//\1/; q; }
12753           s/.*/./; q'`
12754       { if $as_mkdir_p; then
12755     mkdir -p "$ac_dir"
12756   else
12757     as_dir="$ac_dir"
12758     as_dirs=
12759     while test ! -d "$as_dir"; do
12760       as_dirs="$as_dir $as_dirs"
12761       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12763          X"$as_dir" : 'X\(//\)[^/]' \| \
12764          X"$as_dir" : 'X\(//\)$' \| \
12765          X"$as_dir" : 'X\(/\)' \| \
12766          .     : '\(.\)' 2>/dev/null ||
12767 echo X"$as_dir" |
12768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12770           /^X\(\/\/\)$/{ s//\1/; q; }
12771           /^X\(\/\).*/{ s//\1/; q; }
12772           s/.*/./; q'`
12773     done
12774     test ! -n "$as_dirs" || mkdir $as_dirs
12775   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12777    { (exit 1); exit 1; }; }; }
12778
12779       rm -f $ac_file
12780       mv $tmp/config.h $ac_file
12781     fi
12782   else
12783     cat $tmp/config.h
12784     rm -f $tmp/config.h
12785   fi
12786 done
12787 _ACEOF
12788
12789 cat >>$CONFIG_STATUS <<\_ACEOF
12790
12791 { (exit 0); exit 0; }
12792 _ACEOF
12793 chmod +x $CONFIG_STATUS
12794 ac_clean_files=$ac_clean_files_save
12795
12796
12797 # configure is writing to config.log, and then calls config.status.
12798 # config.status does its own redirection, appending to config.log.
12799 # Unfortunately, on DOS this fails, as config.log is still kept open
12800 # by configure, so config.status won't be able to write to it; its
12801 # output is simply discarded.  So we exec the FD to /dev/null,
12802 # effectively closing config.log, so it can be properly (re)opened and
12803 # appended to by config.status.  When coming back to configure, we
12804 # need to make the FD available again.
12805 if test "$no_create" != yes; then
12806   ac_cs_success=:
12807   ac_config_status_args=
12808   test "$silent" = yes &&
12809     ac_config_status_args="$ac_config_status_args --quiet"
12810   exec 5>/dev/null
12811   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12812   exec 5>>config.log
12813   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12814   # would make configure fail if this is the last instruction.
12815   $ac_cs_success || { (exit 1); exit 1; }
12816 fi
12817
12818