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 SHARED 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 AREXT 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 GIF2SWF 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-profiling      turn on profiling
1023   --enable-warnings        turn on compiler warnings
1024   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1025   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1026   --enable-shared=PKGS  build shared libraries default=yes
1027   --enable-static=PKGS  build static libraries default=yes
1028   --enable-fast-install=PKGS  optimize for fast installation default=yes
1029   --disable-libtool-lock  avoid locking (might break parallel builds)
1030
1031 Optional Packages:
1032   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1033   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1034   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1035   --with-pic              try to use only PIC/non-PIC objects default=use both
1036
1037 Some influential environment variables:
1038   CC          C compiler command
1039   CFLAGS      C compiler flags
1040   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1041               nonstandard directory <lib dir>
1042   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043               headers in a nonstandard directory <include dir>
1044   CXX         C++ compiler command
1045   CXXFLAGS    C++ compiler flags
1046   CPP         C preprocessor
1047
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1050
1051 _ACEOF
1052 fi
1053
1054 if test "$ac_init_help" = "recursive"; then
1055   # If there are subdirs, report their specific --help.
1056   ac_popdir=`pwd`
1057   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058     test -d $ac_dir || continue
1059     ac_builddir=.
1060
1061 if test "$ac_dir" != .; then
1062   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063   # A "../" for each directory in $ac_dir_suffix.
1064   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 else
1066   ac_dir_suffix= ac_top_builddir=
1067 fi
1068
1069 case $srcdir in
1070   .)  # No --srcdir option.  We are building in place.
1071     ac_srcdir=.
1072     if test -z "$ac_top_builddir"; then
1073        ac_top_srcdir=.
1074     else
1075        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076     fi ;;
1077   [\\/]* | ?:[\\/]* )  # Absolute path.
1078     ac_srcdir=$srcdir$ac_dir_suffix;
1079     ac_top_srcdir=$srcdir ;;
1080   *) # Relative path.
1081     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083 esac
1084
1085 # Do not use `cd foo && pwd` to compute absolute paths, because
1086 # the directories may not exist.
1087 case `pwd` in
1088 .) ac_abs_builddir="$ac_dir";;
1089 *)
1090   case "$ac_dir" in
1091   .) ac_abs_builddir=`pwd`;;
1092   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094   esac;;
1095 esac
1096 case $ac_abs_builddir in
1097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 *)
1099   case ${ac_top_builddir}. in
1100   .) ac_abs_top_builddir=$ac_abs_builddir;;
1101   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103   esac;;
1104 esac
1105 case $ac_abs_builddir in
1106 .) ac_abs_srcdir=$ac_srcdir;;
1107 *)
1108   case $ac_srcdir in
1109   .) ac_abs_srcdir=$ac_abs_builddir;;
1110   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112   esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 *)
1117   case $ac_top_srcdir in
1118   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121   esac;;
1122 esac
1123
1124     cd $ac_dir
1125     # Check for guested configure; otherwise get Cygnus style configure.
1126     if test -f $ac_srcdir/configure.gnu; then
1127       echo
1128       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1129     elif test -f $ac_srcdir/configure; then
1130       echo
1131       $SHELL $ac_srcdir/configure  --help=recursive
1132     elif test -f $ac_srcdir/configure.ac ||
1133            test -f $ac_srcdir/configure.in; then
1134       echo
1135       $ac_configure --help
1136     else
1137       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138     fi
1139     cd $ac_popdir
1140   done
1141 fi
1142
1143 test -n "$ac_init_help" && exit 0
1144 if $ac_init_version; then
1145   cat <<\_ACEOF
1146
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151   exit 0
1152 fi
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1157
1158 It was created by $as_me, which was
1159 generated by GNU Autoconf 2.59.  Invocation command line was
1160
1161   $ $0 $@
1162
1163 _ACEOF
1164 {
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1169
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1178
1179 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1180 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1183 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1184 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1185 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1186
1187 _ASUNAME
1188
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1191 do
1192   IFS=$as_save_IFS
1193   test -z "$as_dir" && as_dir=.
1194   echo "PATH: $as_dir"
1195 done
1196
1197 } >&5
1198
1199 cat >&5 <<_ACEOF
1200
1201
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1205
1206 _ACEOF
1207
1208
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1220 do
1221   for ac_arg
1222   do
1223     case $ac_arg in
1224     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226     | -silent | --silent | --silen | --sile | --sil)
1227       continue ;;
1228     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230     esac
1231     case $ac_pass in
1232     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233     2)
1234       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235       if test $ac_must_keep_next = true; then
1236         ac_must_keep_next=false # Got value, back to normal.
1237       else
1238         case $ac_arg in
1239           *=* | --config-cache | -C | -disable-* | --disable-* \
1240           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242           | -with-* | --with-* | -without-* | --without-* | --x)
1243             case "$ac_configure_args0 " in
1244               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245             esac
1246             ;;
1247           -* ) ac_must_keep_next=true ;;
1248         esac
1249       fi
1250       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251       # Get rid of the leading space.
1252       ac_sep=" "
1253       ;;
1254     esac
1255   done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log.  We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266   # Save into config.log some information that might help in debugging.
1267   {
1268     echo
1269
1270     cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275     echo
1276     # The following way of writing the cache mishandles newlines in values,
1277 {
1278   (set) 2>&1 |
1279     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280     *ac_space=\ *)
1281       sed -n \
1282         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284       ;;
1285     *)
1286       sed -n \
1287         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288       ;;
1289     esac;
1290 }
1291     echo
1292
1293     cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298     echo
1299     for ac_var in $ac_subst_vars
1300     do
1301       eval ac_val=$`echo $ac_var`
1302       echo "$ac_var='"'"'$ac_val'"'"'"
1303     done | sort
1304     echo
1305
1306     if test -n "$ac_subst_files"; then
1307       cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312       echo
1313       for ac_var in $ac_subst_files
1314       do
1315         eval ac_val=$`echo $ac_var`
1316         echo "$ac_var='"'"'$ac_val'"'"'"
1317       done | sort
1318       echo
1319     fi
1320
1321     if test -s confdefs.h; then
1322       cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327       echo
1328       sed "/^$/d" confdefs.h | sort
1329       echo
1330     fi
1331     test "$ac_signal" != 0 &&
1332       echo "$as_me: caught signal $ac_signal"
1333     echo "$as_me: exit $exit_status"
1334   } >&5
1335   rm -f core *.core &&
1336   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337     exit $exit_status
1338      ' 0
1339 for ac_signal in 1 2 13 15; do
1340   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1343
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1348
1349 # Predefined preprocessor variables.
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1374
1375
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379   if test "x$prefix" != xNONE; then
1380     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381   else
1382     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383   fi
1384 fi
1385 for ac_site_file in $CONFIG_SITE; do
1386   if test -r "$ac_site_file"; then
1387     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389     sed 's/^/| /' "$ac_site_file" >&5
1390     . "$ac_site_file"
1391   fi
1392 done
1393
1394 if test -r "$cache_file"; then
1395   # Some versions of bash will fail to source /dev/null (special
1396   # files actually), so we avoid doing that.
1397   if test -f "$cache_file"; then
1398     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400     case $cache_file in
1401       [\\/]* | ?:[\\/]* ) . $cache_file;;
1402       *)                      . ./$cache_file;;
1403     esac
1404   fi
1405 else
1406   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408   >$cache_file
1409 fi
1410
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417   eval ac_new_set=\$ac_env_${ac_var}_set
1418   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419   eval ac_new_val="\$ac_env_${ac_var}_value"
1420   case $ac_old_set,$ac_new_set in
1421     set,)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,set)
1426       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428       ac_cache_corrupted=: ;;
1429     ,);;
1430     *)
1431       if test "x$ac_old_val" != "x$ac_new_val"; then
1432         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1435 echo "$as_me:   former value:  $ac_old_val" >&2;}
1436         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1437 echo "$as_me:   current value: $ac_new_val" >&2;}
1438         ac_cache_corrupted=:
1439       fi;;
1440   esac
1441   # Pass precious variables to config.status.
1442   if test "$ac_new_set" = set; then
1443     case $ac_new_val in
1444     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446     *) ac_arg=$ac_var=$ac_new_val ;;
1447     esac
1448     case " $ac_configure_args " in
1449       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1450       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451     esac
1452   fi
1453 done
1454 if $ac_cache_corrupted; then
1455   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459    { (exit 1); exit 1; }; }
1460 fi
1461
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488 # Check whether --enable-checkmem or --disable-checkmem was given.
1489 if test "${enable_checkmem+set}" = set; then
1490   enableval="$enable_checkmem"
1491   CHECKMEM=true
1492 fi;
1493 # Check whether --enable-debug or --disable-debug was given.
1494 if test "${enable_debug+set}" = set; then
1495   enableval="$enable_debug"
1496   DEBUG=true
1497 fi;
1498 # Check whether --enable-profiling or --disable-profiling was given.
1499 if test "${enable_profiling+set}" = set; then
1500   enableval="$enable_profiling"
1501   PROFILING=true
1502 fi;
1503 # Check whether --enable-warnings or --disable-warnings was given.
1504 if test "${enable_warnings+set}" = set; then
1505   enableval="$enable_warnings"
1506   ENABLE_WARNINGS=true
1507 fi;
1508 # Check whether --enable-optimizations or --disable-optimizations was given.
1509 if test "${enable_optimizations+set}" = set; then
1510   enableval="$enable_optimizations"
1511   OPTIMIZE=true
1512 fi;
1513 # Check whether --enable-lame or --disable-lame was given.
1514 if test "${enable_lame+set}" = set; then
1515   enableval="$enable_lame"
1516   DISABLE_LAME=true
1517 fi;
1518
1519 PACKAGE=swftools
1520 VERSION=2004-02-13-2131
1521
1522
1523 # ------------------------------------------------------------------
1524
1525 if test "x${srcdir}" != "x."; then
1526     echo "--srcdir is not supported"
1527     exit 1
1528 fi
1529
1530 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1531 if test "x$ENABLE_WARNINGS" '!=' "x";then
1532     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1533 fi
1534
1535 if test "x$CHECKMEM" '!=' "x";then
1536     DEBUG=yes
1537 fi
1538 if test "x$PROFILING" '!=' "x";then
1539     DEBUG=yes
1540 fi
1541 if test "x$DEBUG" '!=' "x";then
1542     if test "x$PROFILING" = "x";then
1543         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1544         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1545     else
1546         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1547         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1548         LDFLAGS="-g -pg $LIBS"
1549     fi
1550 else if test "x$OPTIMIZE" '!=' "x"; then
1551     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1552     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1553 else
1554     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1555     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1556 fi
1557 fi
1558 #OLDGCC=1
1559 #if test "x$OLDGCC" '!=' "x";then
1560 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1561 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1562 #     CFLAGS="$CFLAGS -ansi -pendantic"
1563 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1564 #fi
1565
1566 export PACKAGE VERSION CFLAGS CXXFLAGS
1567
1568
1569 ac_aux_dir=
1570 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1571   if test -f $ac_dir/install-sh; then
1572     ac_aux_dir=$ac_dir
1573     ac_install_sh="$ac_aux_dir/install-sh -c"
1574     break
1575   elif test -f $ac_dir/install.sh; then
1576     ac_aux_dir=$ac_dir
1577     ac_install_sh="$ac_aux_dir/install.sh -c"
1578     break
1579   elif test -f $ac_dir/shtool; then
1580     ac_aux_dir=$ac_dir
1581     ac_install_sh="$ac_aux_dir/shtool install -c"
1582     break
1583   fi
1584 done
1585 if test -z "$ac_aux_dir"; then
1586   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1587 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1588    { (exit 1); exit 1; }; }
1589 fi
1590 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1591 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1592 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1593
1594 # Make sure we can run config.sub.
1595 $ac_config_sub sun4 >/dev/null 2>&1 ||
1596   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1597 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1598    { (exit 1); exit 1; }; }
1599
1600 echo "$as_me:$LINENO: checking build system type" >&5
1601 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1602 if test "${ac_cv_build+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   ac_cv_build_alias=$build_alias
1606 test -z "$ac_cv_build_alias" &&
1607   ac_cv_build_alias=`$ac_config_guess`
1608 test -z "$ac_cv_build_alias" &&
1609   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1610 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1611    { (exit 1); exit 1; }; }
1612 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1613   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1615    { (exit 1); exit 1; }; }
1616
1617 fi
1618 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1619 echo "${ECHO_T}$ac_cv_build" >&6
1620 build=$ac_cv_build
1621 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626 echo "$as_me:$LINENO: checking host system type" >&5
1627 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1628 if test "${ac_cv_host+set}" = set; then
1629   echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631   ac_cv_host_alias=$host_alias
1632 test -z "$ac_cv_host_alias" &&
1633   ac_cv_host_alias=$ac_cv_build_alias
1634 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1641 echo "${ECHO_T}$ac_cv_host" >&6
1642 host=$ac_cv_host
1643 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648
1649 SHARED="-shared"
1650 MACOSX=
1651 case $host_os in
1652     *darwin* )
1653         MACOSX=yes
1654         CFLAGS="$CFLAGS -fno-rtti"
1655         CXXFLAGS="$CXXFLAGS -fno-rtti"
1656         SHARED="-bundle"
1657         ;;
1658 esac
1659
1660
1661
1662  ac_ext=c
1663 ac_cpp='$CPP $CPPFLAGS'
1664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1667 if test -n "$ac_tool_prefix"; then
1668   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1669 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_CC+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   if test -n "$CC"; then
1676   ac_cv_prog_CC="$CC" # Let the user override the test.
1677 else
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   for ac_exec_ext in '' $ac_executable_extensions; do
1684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687     break 2
1688   fi
1689 done
1690 done
1691
1692 fi
1693 fi
1694 CC=$ac_cv_prog_CC
1695 if test -n "$CC"; then
1696   echo "$as_me:$LINENO: result: $CC" >&5
1697 echo "${ECHO_T}$CC" >&6
1698 else
1699   echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1701 fi
1702
1703 fi
1704 if test -z "$ac_cv_prog_CC"; then
1705   ac_ct_CC=$CC
1706   # Extract the first word of "gcc", so it can be a program name with args.
1707 set dummy gcc; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   if test -n "$ac_ct_CC"; then
1714   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715 else
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1718 do
1719   IFS=$as_save_IFS
1720   test -z "$as_dir" && as_dir=.
1721   for ac_exec_ext in '' $ac_executable_extensions; do
1722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723     ac_cv_prog_ac_ct_CC="gcc"
1724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725     break 2
1726   fi
1727 done
1728 done
1729
1730 fi
1731 fi
1732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733 if test -n "$ac_ct_CC"; then
1734   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735 echo "${ECHO_T}$ac_ct_CC" >&6
1736 else
1737   echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 fi
1740
1741   CC=$ac_ct_CC
1742 else
1743   CC="$ac_cv_prog_CC"
1744 fi
1745
1746 if test -z "$CC"; then
1747   if test -n "$ac_tool_prefix"; then
1748   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1749 set dummy ${ac_tool_prefix}cc; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_CC+set}" = set; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   if test -n "$CC"; then
1756   ac_cv_prog_CC="$CC" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761   IFS=$as_save_IFS
1762   test -z "$as_dir" && as_dir=.
1763   for ac_exec_ext in '' $ac_executable_extensions; do
1764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765     ac_cv_prog_CC="${ac_tool_prefix}cc"
1766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767     break 2
1768   fi
1769 done
1770 done
1771
1772 fi
1773 fi
1774 CC=$ac_cv_prog_CC
1775 if test -n "$CC"; then
1776   echo "$as_me:$LINENO: result: $CC" >&5
1777 echo "${ECHO_T}$CC" >&6
1778 else
1779   echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1781 fi
1782
1783 fi
1784 if test -z "$ac_cv_prog_CC"; then
1785   ac_ct_CC=$CC
1786   # Extract the first word of "cc", so it can be a program name with args.
1787 set dummy cc; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   if test -n "$ac_ct_CC"; then
1794   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1798 do
1799   IFS=$as_save_IFS
1800   test -z "$as_dir" && as_dir=.
1801   for ac_exec_ext in '' $ac_executable_extensions; do
1802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803     ac_cv_prog_ac_ct_CC="cc"
1804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805     break 2
1806   fi
1807 done
1808 done
1809
1810 fi
1811 fi
1812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1816 else
1817   echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1819 fi
1820
1821   CC=$ac_ct_CC
1822 else
1823   CC="$ac_cv_prog_CC"
1824 fi
1825
1826 fi
1827 if test -z "$CC"; then
1828   # Extract the first word of "cc", so it can be a program name with args.
1829 set dummy cc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833   echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835   if test -n "$CC"; then
1836   ac_cv_prog_CC="$CC" # Let the user override the test.
1837 else
1838   ac_prog_rejected=no
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842   IFS=$as_save_IFS
1843   test -z "$as_dir" && as_dir=.
1844   for ac_exec_ext in '' $ac_executable_extensions; do
1845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1847        ac_prog_rejected=yes
1848        continue
1849      fi
1850     ac_cv_prog_CC="cc"
1851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852     break 2
1853   fi
1854 done
1855 done
1856
1857 if test $ac_prog_rejected = yes; then
1858   # We found a bogon in the path, so make sure we never use it.
1859   set dummy $ac_cv_prog_CC
1860   shift
1861   if test $# != 0; then
1862     # We chose a different compiler from the bogus one.
1863     # However, it has the same basename, so the bogon will be chosen
1864     # first if we set CC to just the basename; use the full file name.
1865     shift
1866     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1867   fi
1868 fi
1869 fi
1870 fi
1871 CC=$ac_cv_prog_CC
1872 if test -n "$CC"; then
1873   echo "$as_me:$LINENO: result: $CC" >&5
1874 echo "${ECHO_T}$CC" >&6
1875 else
1876   echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1878 fi
1879
1880 fi
1881 if test -z "$CC"; then
1882   if test -n "$ac_tool_prefix"; then
1883   for ac_prog in cl
1884   do
1885     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_CC+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$CC"; then
1893   ac_cv_prog_CC="$CC" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898   IFS=$as_save_IFS
1899   test -z "$as_dir" && as_dir=.
1900   for ac_exec_ext in '' $ac_executable_extensions; do
1901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904     break 2
1905   fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 CC=$ac_cv_prog_CC
1912 if test -n "$CC"; then
1913   echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920     test -n "$CC" && break
1921   done
1922 fi
1923 if test -z "$CC"; then
1924   ac_ct_CC=$CC
1925   for ac_prog in cl
1926 do
1927   # Extract the first word of "$ac_prog", so it can be a program name with args.
1928 set dummy $ac_prog; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   if test -n "$ac_ct_CC"; then
1935   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940   IFS=$as_save_IFS
1941   test -z "$as_dir" && as_dir=.
1942   for ac_exec_ext in '' $ac_executable_extensions; do
1943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944     ac_cv_prog_ac_ct_CC="$ac_prog"
1945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946     break 2
1947   fi
1948 done
1949 done
1950
1951 fi
1952 fi
1953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954 if test -n "$ac_ct_CC"; then
1955   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956 echo "${ECHO_T}$ac_ct_CC" >&6
1957 else
1958   echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962   test -n "$ac_ct_CC" && break
1963 done
1964
1965   CC=$ac_ct_CC
1966 fi
1967
1968 fi
1969
1970
1971 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1972 See \`config.log' for more details." >&5
1973 echo "$as_me: error: no acceptable C compiler found in \$PATH
1974 See \`config.log' for more details." >&2;}
1975    { (exit 1); exit 1; }; }
1976
1977 # Provide some information about the compiler.
1978 echo "$as_me:$LINENO:" \
1979      "checking for C compiler version" >&5
1980 ac_compiler=`set X $ac_compile; echo $2`
1981 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1982   (eval $ac_compiler --version </dev/null >&5) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }
1986 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1987   (eval $ac_compiler -v </dev/null >&5) 2>&5
1988   ac_status=$?
1989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990   (exit $ac_status); }
1991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1992   (eval $ac_compiler -V </dev/null >&5) 2>&5
1993   ac_status=$?
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); }
1996
1997 cat >conftest.$ac_ext <<_ACEOF
1998 /* confdefs.h.  */
1999 _ACEOF
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h.  */
2003
2004 int
2005 main ()
2006 {
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2016 # of exeext.
2017 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021   (eval $ac_link_default) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }; then
2025   # Find the output, starting from the most likely.  This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # resort.
2028
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031 ac_cv_exeext=
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2034 do
2035   test -f "$ac_file" || continue
2036   case $ac_file in
2037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2038         ;;
2039     conftest.$ac_ext )
2040         # This is the source file.
2041         ;;
2042     [ab].out )
2043         # We found the default executable, but exeext='' is most
2044         # certainly right.
2045         break;;
2046     *.* )
2047         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048         # FIXME: I believe we export ac_cv_exeext for Libtool,
2049         # but it would be cool to find out if it's true.  Does anybody
2050         # maintain Libtool? --akim.
2051         export ac_cv_exeext
2052         break;;
2053     * )
2054         break;;
2055   esac
2056 done
2057 else
2058   echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2060
2061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065    { (exit 77); exit 77; }; }
2066 fi
2067
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2071
2072 # Check the compiler produces executables we can run.  If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079   if { ac_try='./$ac_file'
2080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081   (eval $ac_try) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); }; }; then
2085     cross_compiling=no
2086   else
2087     if test "$cross_compiling" = maybe; then
2088         cross_compiling=yes
2089     else
2090         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096    { (exit 1); exit 1; }; }
2097     fi
2098   fi
2099 fi
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2102
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run.  If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2111
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115   (eval $ac_link) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }; then
2119   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2122 # `rm'.
2123 for ac_file in conftest.exe conftest conftest.*; do
2124   test -f "$ac_file" || continue
2125   case $ac_file in
2126     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128           export ac_cv_exeext
2129           break;;
2130     * ) break;;
2131   esac
2132 done
2133 else
2134   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138    { (exit 1); exit 1; }; }
2139 fi
2140
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2144
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2147 ac_exeext=$EXEEXT
2148 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2149 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2150 if test "${ac_cv_objext+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h.  */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h.  */
2159
2160 int
2161 main ()
2162 {
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 rm -f conftest.o conftest.obj
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170   (eval $ac_compile) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; then
2174   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2175   case $ac_file in
2176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2177     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2178        break;;
2179   esac
2180 done
2181 else
2182   echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&2;}
2189    { (exit 1); exit 1; }; }
2190 fi
2191
2192 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2193 fi
2194 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2195 echo "${ECHO_T}$ac_cv_objext" >&6
2196 OBJEXT=$ac_cv_objext
2197 ac_objext=$OBJEXT
2198 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2199 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2200 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   cat >conftest.$ac_ext <<_ACEOF
2204 /* confdefs.h.  */
2205 _ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h.  */
2209
2210 int
2211 main ()
2212 {
2213 #ifndef __GNUC__
2214        choke me
2215 #endif
2216
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223   (eval $ac_compile) 2>conftest.er1
2224   ac_status=$?
2225   grep -v '^ *+' conftest.er1 >conftest.err
2226   rm -f conftest.er1
2227   cat conftest.err >&5
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); } &&
2230          { ac_try='test -z "$ac_c_werror_flag"
2231                          || test ! -s conftest.err'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; } &&
2237          { ac_try='test -s conftest.$ac_objext'
2238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; }; then
2243   ac_compiler_gnu=yes
2244 else
2245   echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2247
2248 ac_compiler_gnu=no
2249 fi
2250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2252
2253 fi
2254 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2255 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2256 GCC=`test $ac_compiler_gnu = yes && echo yes`
2257 ac_test_CFLAGS=${CFLAGS+set}
2258 ac_save_CFLAGS=$CFLAGS
2259 CFLAGS="-g"
2260 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2261 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2262 if test "${ac_cv_prog_cc_g+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   cat >conftest.$ac_ext <<_ACEOF
2266 /* confdefs.h.  */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h.  */
2271
2272 int
2273 main ()
2274 {
2275
2276   ;
2277   return 0;
2278 }
2279 _ACEOF
2280 rm -f conftest.$ac_objext
2281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282   (eval $ac_compile) 2>conftest.er1
2283   ac_status=$?
2284   grep -v '^ *+' conftest.er1 >conftest.err
2285   rm -f conftest.er1
2286   cat conftest.err >&5
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); } &&
2289          { ac_try='test -z "$ac_c_werror_flag"
2290                          || test ! -s conftest.err'
2291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292   (eval $ac_try) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }; } &&
2296          { ac_try='test -s conftest.$ac_objext'
2297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298   (eval $ac_try) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; }; then
2302   ac_cv_prog_cc_g=yes
2303 else
2304   echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2306
2307 ac_cv_prog_cc_g=no
2308 fi
2309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310 fi
2311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2313 if test "$ac_test_CFLAGS" = set; then
2314   CFLAGS=$ac_save_CFLAGS
2315 elif test $ac_cv_prog_cc_g = yes; then
2316   if test "$GCC" = yes; then
2317     CFLAGS="-g -O2"
2318   else
2319     CFLAGS="-g"
2320   fi
2321 else
2322   if test "$GCC" = yes; then
2323     CFLAGS="-O2"
2324   else
2325     CFLAGS=
2326   fi
2327 fi
2328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   ac_cv_prog_cc_stdc=no
2334 ac_save_CC=$CC
2335 cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h.  */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h.  */
2341 #include <stdarg.h>
2342 #include <stdio.h>
2343 #include <sys/types.h>
2344 #include <sys/stat.h>
2345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2346 struct buf { int x; };
2347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2348 static char *e (p, i)
2349      char **p;
2350      int i;
2351 {
2352   return p[i];
2353 }
2354 static char *f (char * (*g) (char **, int), char **p, ...)
2355 {
2356   char *s;
2357   va_list v;
2358   va_start (v,p);
2359   s = g (p, va_arg (v,int));
2360   va_end (v);
2361   return s;
2362 }
2363
2364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2365    function prototypes and stuff, but not '\xHH' hex character constants.
2366    These don't provoke an error unfortunately, instead are silently treated
2367    as 'x'.  The following induces an error, until -std1 is added to get
2368    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2369    array size at least.  It's necessary to write '\x00'==0 to get something
2370    that's true only with -std1.  */
2371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2372
2373 int test (int i, double x);
2374 struct s1 {int (*f) (int a);};
2375 struct s2 {int (*f) (double a);};
2376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2377 int argc;
2378 char **argv;
2379 int
2380 main ()
2381 {
2382 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 # Don't try gcc -ansi; that turns off useful extensions and
2388 # breaks some systems' header files.
2389 # AIX                   -qlanglvl=ansi
2390 # Ultrix and OSF/1      -std1
2391 # HP-UX 10.20 and later -Ae
2392 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2393 # SVR4                  -Xc -D__EXTENSIONS__
2394 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2395 do
2396   CC="$ac_save_CC $ac_arg"
2397   rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>conftest.er1
2400   ac_status=$?
2401   grep -v '^ *+' conftest.er1 >conftest.err
2402   rm -f conftest.er1
2403   cat conftest.err >&5
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); } &&
2406          { ac_try='test -z "$ac_c_werror_flag"
2407                          || test ! -s conftest.err'
2408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409   (eval $ac_try) 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }; } &&
2413          { ac_try='test -s conftest.$ac_objext'
2414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415   (eval $ac_try) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; }; then
2419   ac_cv_prog_cc_stdc=$ac_arg
2420 break
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 fi
2426 rm -f conftest.err conftest.$ac_objext
2427 done
2428 rm -f conftest.$ac_ext conftest.$ac_objext
2429 CC=$ac_save_CC
2430
2431 fi
2432
2433 case "x$ac_cv_prog_cc_stdc" in
2434   x|xno)
2435     echo "$as_me:$LINENO: result: none needed" >&5
2436 echo "${ECHO_T}none needed" >&6 ;;
2437   *)
2438     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2439 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2440     CC="$CC $ac_cv_prog_cc_stdc" ;;
2441 esac
2442
2443 # Some people use a C++ compiler to compile C.  Since we use `exit',
2444 # in C++ we need to declare it.  In case someone uses the same compiler
2445 # for both compiling C and C++ we need to have the C++ compiler decide
2446 # the declaration of exit, since it's the most demanding environment.
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #ifndef __cplusplus
2449   choke me
2450 #endif
2451 _ACEOF
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454   (eval $ac_compile) 2>conftest.er1
2455   ac_status=$?
2456   grep -v '^ *+' conftest.er1 >conftest.err
2457   rm -f conftest.er1
2458   cat conftest.err >&5
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); } &&
2461          { ac_try='test -z "$ac_c_werror_flag"
2462                          || test ! -s conftest.err'
2463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464   (eval $ac_try) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; } &&
2468          { ac_try='test -s conftest.$ac_objext'
2469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470   (eval $ac_try) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; }; then
2474   for ac_declaration in \
2475    '' \
2476    'extern "C" void std::exit (int) throw (); using std::exit;' \
2477    'extern "C" void std::exit (int); using std::exit;' \
2478    'extern "C" void exit (int) throw ();' \
2479    'extern "C" void exit (int);' \
2480    'void exit (int);'
2481 do
2482   cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h.  */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h.  */
2488 $ac_declaration
2489 #include <stdlib.h>
2490 int
2491 main ()
2492 {
2493 exit (42);
2494   ;
2495   return 0;
2496 }
2497 _ACEOF
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500   (eval $ac_compile) 2>conftest.er1
2501   ac_status=$?
2502   grep -v '^ *+' conftest.er1 >conftest.err
2503   rm -f conftest.er1
2504   cat conftest.err >&5
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -z "$ac_c_werror_flag"
2508                          || test ! -s conftest.err'
2509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510   (eval $ac_try) 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; } &&
2514          { ac_try='test -s conftest.$ac_objext'
2515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516   (eval $ac_try) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }; }; then
2520   :
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 continue
2526 fi
2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528   cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534 $ac_declaration
2535 int
2536 main ()
2537 {
2538 exit (42);
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545   (eval $ac_compile) 2>conftest.er1
2546   ac_status=$?
2547   grep -v '^ *+' conftest.er1 >conftest.err
2548   rm -f conftest.er1
2549   cat conftest.err >&5
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); } &&
2552          { ac_try='test -z "$ac_c_werror_flag"
2553                          || test ! -s conftest.err'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; }; then
2565   break
2566 else
2567   echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2569
2570 fi
2571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2572 done
2573 rm -f conftest*
2574 if test -n "$ac_declaration"; then
2575   echo '#ifdef __cplusplus' >>confdefs.h
2576   echo $ac_declaration      >>confdefs.h
2577   echo '#endif'             >>confdefs.h
2578 fi
2579
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 fi
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_ext=c
2587 ac_cpp='$CPP $CPPFLAGS'
2588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591
2592  ac_ext=cc
2593 ac_cpp='$CXXCPP $CPPFLAGS'
2594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2597 if test -n "$ac_tool_prefix"; then
2598   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2599   do
2600     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2602 echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2604 if test "${ac_cv_prog_CXX+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if test -n "$CXX"; then
2608   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615   for ac_exec_ext in '' $ac_executable_extensions; do
2616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622 done
2623
2624 fi
2625 fi
2626 CXX=$ac_cv_prog_CXX
2627 if test -n "$CXX"; then
2628   echo "$as_me:$LINENO: result: $CXX" >&5
2629 echo "${ECHO_T}$CXX" >&6
2630 else
2631   echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6
2633 fi
2634
2635     test -n "$CXX" && break
2636   done
2637 fi
2638 if test -z "$CXX"; then
2639   ac_ct_CXX=$CXX
2640   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2641 do
2642   # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2646 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   if test -n "$ac_ct_CXX"; then
2650   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655   IFS=$as_save_IFS
2656   test -z "$as_dir" && as_dir=.
2657   for ac_exec_ext in '' $ac_executable_extensions; do
2658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659     ac_cv_prog_ac_ct_CXX="$ac_prog"
2660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661     break 2
2662   fi
2663 done
2664 done
2665
2666 fi
2667 fi
2668 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2669 if test -n "$ac_ct_CXX"; then
2670   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2671 echo "${ECHO_T}$ac_ct_CXX" >&6
2672 else
2673   echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6
2675 fi
2676
2677   test -n "$ac_ct_CXX" && break
2678 done
2679 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2680
2681   CXX=$ac_ct_CXX
2682 fi
2683
2684
2685 # Provide some information about the compiler.
2686 echo "$as_me:$LINENO:" \
2687      "checking for C++ compiler version" >&5
2688 ac_compiler=`set X $ac_compile; echo $2`
2689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2690   (eval $ac_compiler --version </dev/null >&5) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }
2694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2695   (eval $ac_compiler -v </dev/null >&5) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }
2699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2700   (eval $ac_compiler -V </dev/null >&5) 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }
2704
2705 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2706 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2707 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2708   echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710   cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716
2717 int
2718 main ()
2719 {
2720 #ifndef __GNUC__
2721        choke me
2722 #endif
2723
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730   (eval $ac_compile) 2>conftest.er1
2731   ac_status=$?
2732   grep -v '^ *+' conftest.er1 >conftest.err
2733   rm -f conftest.er1
2734   cat conftest.err >&5
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); } &&
2737          { ac_try='test -z "$ac_cxx_werror_flag"
2738                          || test ! -s conftest.err'
2739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740   (eval $ac_try) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; } &&
2744          { ac_try='test -s conftest.$ac_objext'
2745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746   (eval $ac_try) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; }; then
2750   ac_compiler_gnu=yes
2751 else
2752   echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2754
2755 ac_compiler_gnu=no
2756 fi
2757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2758 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2759
2760 fi
2761 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2762 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2763 GXX=`test $ac_compiler_gnu = yes && echo yes`
2764 ac_test_CXXFLAGS=${CXXFLAGS+set}
2765 ac_save_CXXFLAGS=$CXXFLAGS
2766 CXXFLAGS="-g"
2767 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2768 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2769 if test "${ac_cv_prog_cxx_g+set}" = set; then
2770   echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772   cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h.  */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h.  */
2778
2779 int
2780 main ()
2781 {
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_cxx_werror_flag"
2797                          || test ! -s conftest.err'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; }; then
2809   ac_cv_prog_cxx_g=yes
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 ac_cv_prog_cxx_g=no
2815 fi
2816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817 fi
2818 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2819 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2820 if test "$ac_test_CXXFLAGS" = set; then
2821   CXXFLAGS=$ac_save_CXXFLAGS
2822 elif test $ac_cv_prog_cxx_g = yes; then
2823   if test "$GXX" = yes; then
2824     CXXFLAGS="-g -O2"
2825   else
2826     CXXFLAGS="-g"
2827   fi
2828 else
2829   if test "$GXX" = yes; then
2830     CXXFLAGS="-O2"
2831   else
2832     CXXFLAGS=
2833   fi
2834 fi
2835 for ac_declaration in \
2836    '' \
2837    'extern "C" void std::exit (int) throw (); using std::exit;' \
2838    'extern "C" void std::exit (int); using std::exit;' \
2839    'extern "C" void exit (int) throw ();' \
2840    'extern "C" void exit (int);' \
2841    'void exit (int);'
2842 do
2843   cat >conftest.$ac_ext <<_ACEOF
2844 /* confdefs.h.  */
2845 _ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h.  */
2849 $ac_declaration
2850 #include <stdlib.h>
2851 int
2852 main ()
2853 {
2854 exit (42);
2855   ;
2856   return 0;
2857 }
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861   (eval $ac_compile) 2>conftest.er1
2862   ac_status=$?
2863   grep -v '^ *+' conftest.er1 >conftest.err
2864   rm -f conftest.er1
2865   cat conftest.err >&5
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } &&
2868          { ac_try='test -z "$ac_cxx_werror_flag"
2869                          || test ! -s conftest.err'
2870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871   (eval $ac_try) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); }; } &&
2875          { ac_try='test -s conftest.$ac_objext'
2876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877   (eval $ac_try) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }; }; then
2881   :
2882 else
2883   echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 continue
2887 fi
2888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2889   cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h.  */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h.  */
2895 $ac_declaration
2896 int
2897 main ()
2898 {
2899 exit (42);
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906   (eval $ac_compile) 2>conftest.er1
2907   ac_status=$?
2908   grep -v '^ *+' conftest.er1 >conftest.err
2909   rm -f conftest.er1
2910   cat conftest.err >&5
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); } &&
2913          { ac_try='test -z "$ac_cxx_werror_flag"
2914                          || test ! -s conftest.err'
2915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916   (eval $ac_try) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; } &&
2920          { ac_try='test -s conftest.$ac_objext'
2921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922   (eval $ac_try) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }; }; then
2926   break
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 fi
2932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2933 done
2934 rm -f conftest*
2935 if test -n "$ac_declaration"; then
2936   echo '#ifdef __cplusplus' >>confdefs.h
2937   echo $ac_declaration      >>confdefs.h
2938   echo '#endif'             >>confdefs.h
2939 fi
2940
2941 ac_ext=c
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946
2947
2948 if test "x$CHECKMEM" '!=' "x";then
2949     CC="ccmalloc $CC"
2950     CXX="ccmalloc $CXX"
2951     #echo running again
2952     #unset ac_cv_prog_CC
2953     #unset ac_cv_prog_CXX
2954     #AC_PROG_CC
2955     #AC_PROG_CXX
2956 fi
2957  ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2963 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2964 # On Suns, sometimes $CPP names a directory.
2965 if test -n "$CPP" && test -d "$CPP"; then
2966   CPP=
2967 fi
2968 if test -z "$CPP"; then
2969   if test "${ac_cv_prog_CPP+set}" = set; then
2970   echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972       # Double quotes because CPP needs to be expanded
2973     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2974     do
2975       ac_preproc_ok=false
2976 for ac_c_preproc_warn_flag in '' yes
2977 do
2978   # Use a header file that comes with gcc, so configuring glibc
2979   # with a fresh cross-compiler works.
2980   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981   # <limits.h> exists even on freestanding compilers.
2982   # On the NeXT, cc -E runs the code through the compiler's parser,
2983   # not just through cpp. "Syntax error" is here to catch this case.
2984   cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990 #ifdef __STDC__
2991 # include <limits.h>
2992 #else
2993 # include <assert.h>
2994 #endif
2995                      Syntax error
2996 _ACEOF
2997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } >/dev/null; then
3005   if test -s conftest.err; then
3006     ac_cpp_err=$ac_c_preproc_warn_flag
3007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3008   else
3009     ac_cpp_err=
3010   fi
3011 else
3012   ac_cpp_err=yes
3013 fi
3014 if test -z "$ac_cpp_err"; then
3015   :
3016 else
3017   echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020   # Broken: fails on valid input.
3021 continue
3022 fi
3023 rm -f conftest.err conftest.$ac_ext
3024
3025   # OK, works on sane cases.  Now check whether non-existent headers
3026   # can be detected and how.
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033 #include <ac_nonexistent.h>
3034 _ACEOF
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037   ac_status=$?
3038   grep -v '^ *+' conftest.er1 >conftest.err
3039   rm -f conftest.er1
3040   cat conftest.err >&5
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); } >/dev/null; then
3043   if test -s conftest.err; then
3044     ac_cpp_err=$ac_c_preproc_warn_flag
3045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046   else
3047     ac_cpp_err=
3048   fi
3049 else
3050   ac_cpp_err=yes
3051 fi
3052 if test -z "$ac_cpp_err"; then
3053   # Broken: success on invalid input.
3054 continue
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059   # Passes both tests.
3060 ac_preproc_ok=:
3061 break
3062 fi
3063 rm -f conftest.err conftest.$ac_ext
3064
3065 done
3066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3067 rm -f conftest.err conftest.$ac_ext
3068 if $ac_preproc_ok; then
3069   break
3070 fi
3071
3072     done
3073     ac_cv_prog_CPP=$CPP
3074
3075 fi
3076   CPP=$ac_cv_prog_CPP
3077 else
3078   ac_cv_prog_CPP=$CPP
3079 fi
3080 echo "$as_me:$LINENO: result: $CPP" >&5
3081 echo "${ECHO_T}$CPP" >&6
3082 ac_preproc_ok=false
3083 for ac_c_preproc_warn_flag in '' yes
3084 do
3085   # Use a header file that comes with gcc, so configuring glibc
3086   # with a fresh cross-compiler works.
3087   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3088   # <limits.h> exists even on freestanding compilers.
3089   # On the NeXT, cc -E runs the code through the compiler's parser,
3090   # not just through cpp. "Syntax error" is here to catch this case.
3091   cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h.  */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h.  */
3097 #ifdef __STDC__
3098 # include <limits.h>
3099 #else
3100 # include <assert.h>
3101 #endif
3102                      Syntax error
3103 _ACEOF
3104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } >/dev/null; then
3112   if test -s conftest.err; then
3113     ac_cpp_err=$ac_c_preproc_warn_flag
3114     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3115   else
3116     ac_cpp_err=
3117   fi
3118 else
3119   ac_cpp_err=yes
3120 fi
3121 if test -z "$ac_cpp_err"; then
3122   :
3123 else
3124   echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127   # Broken: fails on valid input.
3128 continue
3129 fi
3130 rm -f conftest.err conftest.$ac_ext
3131
3132   # OK, works on sane cases.  Now check whether non-existent headers
3133   # can be detected and how.
3134   cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h.  */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h.  */
3140 #include <ac_nonexistent.h>
3141 _ACEOF
3142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3143   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } >/dev/null; then
3150   if test -s conftest.err; then
3151     ac_cpp_err=$ac_c_preproc_warn_flag
3152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3153   else
3154     ac_cpp_err=
3155   fi
3156 else
3157   ac_cpp_err=yes
3158 fi
3159 if test -z "$ac_cpp_err"; then
3160   # Broken: success on invalid input.
3161 continue
3162 else
3163   echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166   # Passes both tests.
3167 ac_preproc_ok=:
3168 break
3169 fi
3170 rm -f conftest.err conftest.$ac_ext
3171
3172 done
3173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3174 rm -f conftest.err conftest.$ac_ext
3175 if $ac_preproc_ok; then
3176   :
3177 else
3178   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3179 See \`config.log' for more details." >&5
3180 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3181 See \`config.log' for more details." >&2;}
3182    { (exit 1); exit 1; }; }
3183 fi
3184
3185 ac_ext=c
3186 ac_cpp='$CPP $CPPFLAGS'
3187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3190
3191
3192  if test -n "$ac_tool_prefix"; then
3193   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3195 echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197 if test "${ac_cv_prog_RANLIB+set}" = set; then
3198   echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200   if test -n "$RANLIB"; then
3201   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208   for ac_exec_ext in '' $ac_executable_extensions; do
3209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215 done
3216
3217 fi
3218 fi
3219 RANLIB=$ac_cv_prog_RANLIB
3220 if test -n "$RANLIB"; then
3221   echo "$as_me:$LINENO: result: $RANLIB" >&5
3222 echo "${ECHO_T}$RANLIB" >&6
3223 else
3224   echo "$as_me:$LINENO: result: no" >&5
3225 echo "${ECHO_T}no" >&6
3226 fi
3227
3228 fi
3229 if test -z "$ac_cv_prog_RANLIB"; then
3230   ac_ct_RANLIB=$RANLIB
3231   # Extract the first word of "ranlib", so it can be a program name with args.
3232 set dummy ranlib; ac_word=$2
3233 echo "$as_me:$LINENO: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238   if test -n "$ac_ct_RANLIB"; then
3239   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246   for ac_exec_ext in '' $ac_executable_extensions; do
3247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248     ac_cv_prog_ac_ct_RANLIB="ranlib"
3249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253 done
3254
3255   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3256 fi
3257 fi
3258 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3259 if test -n "$ac_ct_RANLIB"; then
3260   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3261 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3262 else
3263   echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3265 fi
3266
3267   RANLIB=$ac_ct_RANLIB
3268 else
3269   RANLIB="$ac_cv_prog_RANLIB"
3270 fi
3271
3272  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3273 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3274 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3275 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   cat >conftest.make <<\_ACEOF
3279 all:
3280         @echo 'ac_maketemp="$(MAKE)"'
3281 _ACEOF
3282 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3283 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3284 if test -n "$ac_maketemp"; then
3285   eval ac_cv_prog_make_${ac_make}_set=yes
3286 else
3287   eval ac_cv_prog_make_${ac_make}_set=no
3288 fi
3289 rm -f conftest.make
3290 fi
3291 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3292   echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3294   SET_MAKE=
3295 else
3296   echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6
3298   SET_MAKE="MAKE=${MAKE-make}"
3299 fi
3300
3301  # Find a good install program.  We prefer a C program (faster),
3302 # so one script is as good as another.  But avoid the broken or
3303 # incompatible versions:
3304 # SysV /etc/install, /usr/sbin/install
3305 # SunOS /usr/etc/install
3306 # IRIX /sbin/install
3307 # AIX /bin/install
3308 # AmigaOS /C/install, which installs bootblocks on floppy discs
3309 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3310 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3311 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3312 # OS/2's system install, which has a completely different semantic
3313 # ./install, which can be erroneously created by make from ./install.sh.
3314 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3315 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3316 if test -z "$INSTALL"; then
3317 if test "${ac_cv_path_install+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325   # Account for people who put trailing slashes in PATH elements.
3326 case $as_dir/ in
3327   ./ | .// | /cC/* | \
3328   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3329   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3330   /usr/ucb/* ) ;;
3331   *)
3332     # OSF1 and SCO ODT 3.0 have their own names for install.
3333     # Don't use installbsd from OSF since it installs stuff as root
3334     # by default.
3335     for ac_prog in ginstall scoinst install; do
3336       for ac_exec_ext in '' $ac_executable_extensions; do
3337         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3338           if test $ac_prog = install &&
3339             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3340             # AIX install.  It has an incompatible calling convention.
3341             :
3342           elif test $ac_prog = install &&
3343             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3344             # program-specific install script used by HP pwplus--don't use.
3345             :
3346           else
3347             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3348             break 3
3349           fi
3350         fi
3351       done
3352     done
3353     ;;
3354 esac
3355 done
3356
3357
3358 fi
3359   if test "${ac_cv_path_install+set}" = set; then
3360     INSTALL=$ac_cv_path_install
3361   else
3362     # As a last resort, use the slow shell script.  We don't cache a
3363     # path for INSTALL within a source directory, because that will
3364     # break other packages using the cache if that directory is
3365     # removed, or if the path is relative.
3366     INSTALL=$ac_install_sh
3367   fi
3368 fi
3369 echo "$as_me:$LINENO: result: $INSTALL" >&5
3370 echo "${ECHO_T}$INSTALL" >&6
3371
3372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3373 # It thinks the first close brace ends the variable substitution.
3374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3375
3376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3377
3378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3379
3380  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3381 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3382 LN_S=$as_ln_s
3383 if test "$LN_S" = "ln -s"; then
3384   echo "$as_me:$LINENO: result: yes" >&5
3385 echo "${ECHO_T}yes" >&6
3386 else
3387   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3388 echo "${ECHO_T}no, using $LN_S" >&6
3389 fi
3390
3391  # Check whether --enable-shared or --disable-shared was given.
3392 if test "${enable_shared+set}" = set; then
3393   enableval="$enable_shared"
3394   p=${PACKAGE-default}
3395 case $enableval in
3396 yes) enable_shared=yes ;;
3397 no) enable_shared=no ;;
3398 *)
3399   enable_shared=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_shared=yes
3405     fi
3406   done
3407   IFS="$ac_save_ifs"
3408   ;;
3409 esac
3410 else
3411   enable_shared=yes
3412 fi;
3413 # Check whether --enable-static or --disable-static was given.
3414 if test "${enable_static+set}" = set; then
3415   enableval="$enable_static"
3416   p=${PACKAGE-default}
3417 case $enableval in
3418 yes) enable_static=yes ;;
3419 no) enable_static=no ;;
3420 *)
3421   enable_static=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_static=yes
3427     fi
3428   done
3429   IFS="$ac_save_ifs"
3430   ;;
3431 esac
3432 else
3433   enable_static=yes
3434 fi;
3435 # Check whether --enable-fast-install or --disable-fast-install was given.
3436 if test "${enable_fast_install+set}" = set; then
3437   enableval="$enable_fast_install"
3438   p=${PACKAGE-default}
3439 case $enableval in
3440 yes) enable_fast_install=yes ;;
3441 no) enable_fast_install=no ;;
3442 *)
3443   enable_fast_install=no
3444   # Look at the argument we got.  We use all the common list separators.
3445   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3446   for pkg in $enableval; do
3447     if test "X$pkg" = "X$p"; then
3448       enable_fast_install=yes
3449     fi
3450   done
3451   IFS="$ac_save_ifs"
3452   ;;
3453 esac
3454 else
3455   enable_fast_install=yes
3456 fi;
3457 # Find the correct PATH separator.  Usually this is `:', but
3458 # DJGPP uses `;' like DOS.
3459 if test "X${PATH_SEPARATOR+set}" != Xset; then
3460   UNAME=${UNAME-`uname 2>/dev/null`}
3461   case X$UNAME in
3462     *-DOS) lt_cv_sys_path_separator=';' ;;
3463     *)     lt_cv_sys_path_separator=':' ;;
3464   esac
3465   PATH_SEPARATOR=$lt_cv_sys_path_separator
3466 fi
3467
3468
3469 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3470 if test "${with_gnu_ld+set}" = set; then
3471   withval="$with_gnu_ld"
3472   test "$withval" = no || with_gnu_ld=yes
3473 else
3474   with_gnu_ld=no
3475 fi;
3476 ac_prog=ld
3477 if test "$GCC" = yes; then
3478   # Check if gcc -print-prog-name=ld gives a path.
3479   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3480 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3481   case $host in
3482   *-*-mingw*)
3483     # gcc leaves a trailing carriage return which upsets mingw
3484     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3485   *)
3486     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3487   esac
3488   case $ac_prog in
3489     # Accept absolute paths.
3490     [\\/]* | [A-Za-z]:[\\/]*)
3491       re_direlt='/[^/][^/]*/\.\./'
3492       # Canonicalize the path of ld
3493       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3494       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3495         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3496       done
3497       test -z "$LD" && LD="$ac_prog"
3498       ;;
3499   "")
3500     # If it fails, then pretend we aren't using GCC.
3501     ac_prog=ld
3502     ;;
3503   *)
3504     # If it is relative, then search for the first ld in PATH.
3505     with_gnu_ld=unknown
3506     ;;
3507   esac
3508 elif test "$with_gnu_ld" = yes; then
3509   echo "$as_me:$LINENO: checking for GNU ld" >&5
3510 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3511 else
3512   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3513 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3514 fi
3515 if test "${lt_cv_path_LD+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   if test -z "$LD"; then
3519   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3520   for ac_dir in $PATH; do
3521     test -z "$ac_dir" && ac_dir=.
3522     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3523       lt_cv_path_LD="$ac_dir/$ac_prog"
3524       # Check to see if the program is GNU ld.  I'd rather use --version,
3525       # but apparently some GNU ld's only accept -v.
3526       # Break only if it was the GNU/non-GNU ld that we prefer.
3527       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3528         test "$with_gnu_ld" != no && break
3529       else
3530         test "$with_gnu_ld" != yes && break
3531       fi
3532     fi
3533   done
3534   IFS="$ac_save_ifs"
3535 else
3536   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3537 fi
3538 fi
3539
3540 LD="$lt_cv_path_LD"
3541 if test -n "$LD"; then
3542   echo "$as_me:$LINENO: result: $LD" >&5
3543 echo "${ECHO_T}$LD" >&6
3544 else
3545   echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3547 fi
3548 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3549 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3550    { (exit 1); exit 1; }; }
3551 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3552 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3553 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3557 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3558   lt_cv_prog_gnu_ld=yes
3559 else
3560   lt_cv_prog_gnu_ld=no
3561 fi
3562 fi
3563 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3565 with_gnu_ld=$lt_cv_prog_gnu_ld
3566
3567
3568 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3569 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3570 if test "${lt_cv_ld_reload_flag+set}" = set; then
3571   echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573   lt_cv_ld_reload_flag='-r'
3574 fi
3575 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3576 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3577 reload_flag=$lt_cv_ld_reload_flag
3578 test -n "$reload_flag" && reload_flag=" $reload_flag"
3579
3580 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3581 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3582 if test "${lt_cv_path_NM+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   if test -n "$NM"; then
3586   # Let the user override the test.
3587   lt_cv_path_NM="$NM"
3588 else
3589   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3590   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3591     test -z "$ac_dir" && ac_dir=.
3592     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3593     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3594       # Check to see if the nm accepts a BSD-compat flag.
3595       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3596       #   nm: unknown option "B" ignored
3597       # Tru64's nm complains that /dev/null is an invalid object file
3598       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3599         lt_cv_path_NM="$tmp_nm -B"
3600         break
3601       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3602         lt_cv_path_NM="$tmp_nm -p"
3603         break
3604       else
3605         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3606         continue # so that we can try to find one that supports BSD flags
3607       fi
3608     fi
3609   done
3610   IFS="$ac_save_ifs"
3611   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3612 fi
3613 fi
3614
3615 NM="$lt_cv_path_NM"
3616 echo "$as_me:$LINENO: result: $NM" >&5
3617 echo "${ECHO_T}$NM" >&6
3618
3619 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3620 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3621 if test "${lt_cv_path_SED+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   # Loop through the user's path and test for sed and gsed.
3625 # Then use that list of sed's as ones to test for truncation.
3626 as_executable_p="test -f"
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632   for ac_prog in sed gsed; do
3633     for ac_exec_ext in '' $ac_executable_extensions; do
3634       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3635         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3636       fi
3637     done
3638   done
3639 done
3640
3641   # Create a temporary directory, and hook for its removal unless debugging.
3642 $debug ||
3643 {
3644   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3645   trap '{ (exit 1); exit 1; }' 1 2 13 15
3646 }
3647
3648 # Create a (secure) tmp directory for tmp files.
3649 : ${TMPDIR=/tmp}
3650 {
3651   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3652   test -n "$tmp" && test -d "$tmp"
3653 }  ||
3654 {
3655   tmp=$TMPDIR/sed$$-$RANDOM
3656   (umask 077 && mkdir $tmp)
3657 } ||
3658 {
3659    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3660    { (exit 1); exit 1; }
3661 }
3662   _max=0
3663   _count=0
3664   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3665   # along with /bin/sed that truncates output.
3666   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3667     test ! -f ${_sed} && break
3668     cat /dev/null > "$tmp/sed.in"
3669     _count=0
3670     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3671     # Check for GNU sed and select it if it is found.
3672     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3673       lt_cv_path_SED=${_sed}
3674       break
3675     fi
3676     while true; do
3677       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3678       mv "$tmp/sed.tmp" "$tmp/sed.in"
3679       cp "$tmp/sed.in" "$tmp/sed.nl"
3680       echo >>"$tmp/sed.nl"
3681       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3682       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3683       # 40000 chars as input seems more than enough
3684       test $_count -gt 10 && break
3685       _count=`expr $_count + 1`
3686       if test $_count -gt $_max; then
3687         _max=$_count
3688         lt_cv_path_SED=$_sed
3689       fi
3690     done
3691   done
3692   rm -rf "$tmp"
3693
3694 fi
3695
3696 if test "X$SED" != "X"; then
3697   lt_cv_path_SED=$SED
3698 else
3699   SED=$lt_cv_path_SED
3700 fi
3701 echo "$as_me:$LINENO: result: $SED" >&5
3702 echo "${ECHO_T}$SED" >&6
3703
3704 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3705 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3706 if test "${lt_cv_deplibs_check_method+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   lt_cv_file_magic_cmd='$MAGIC_CMD'
3710 lt_cv_file_magic_test_file=
3711 lt_cv_deplibs_check_method='unknown'
3712 # Need to set the preceding variable on all platforms that support
3713 # interlibrary dependencies.
3714 # 'none' -- dependencies not supported.
3715 # `unknown' -- same as none, but documents that we really don't know.
3716 # 'pass_all' -- all dependencies passed with no checks.
3717 # 'test_compile' -- check by making test program.
3718 # 'file_magic [[regex]]' -- check by looking for files in library path
3719 # which responds to the $file_magic_cmd with a given egrep regex.
3720 # If you have `file' or equivalent on your system and you're not sure
3721 # whether `pass_all' will *always* work, you probably want this one.
3722
3723 case $host_os in
3724 aix4* | aix5*)
3725   lt_cv_deplibs_check_method=pass_all
3726   ;;
3727
3728 beos*)
3729   lt_cv_deplibs_check_method=pass_all
3730   ;;
3731
3732 bsdi4*)
3733   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3734   lt_cv_file_magic_cmd='/usr/bin/file -L'
3735   lt_cv_file_magic_test_file=/shlib/libc.so
3736   ;;
3737
3738 cygwin* | mingw* | pw32*)
3739   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3740   lt_cv_file_magic_cmd='$OBJDUMP -f'
3741   ;;
3742
3743 darwin* | rhapsody*)
3744   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3745   lt_cv_file_magic_cmd='/usr/bin/file -L'
3746   case "$host_os" in
3747   rhapsody* | darwin1.[012])
3748     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3749     ;;
3750   *) # Darwin 1.3 on
3751     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3752     ;;
3753   esac
3754   ;;
3755
3756 freebsd*)
3757   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3758     case $host_cpu in
3759     i*86 )
3760       # Not sure whether the presence of OpenBSD here was a mistake.
3761       # Let's accept both of them until this is cleared up.
3762       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3763       lt_cv_file_magic_cmd=/usr/bin/file
3764       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3765       ;;
3766     esac
3767   else
3768     lt_cv_deplibs_check_method=pass_all
3769   fi
3770   ;;
3771
3772 gnu*)
3773   lt_cv_deplibs_check_method=pass_all
3774   ;;
3775
3776 hpux10.20*|hpux11*)
3777   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3778   lt_cv_file_magic_cmd=/usr/bin/file
3779   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3780   ;;
3781
3782 irix5* | irix6* | nonstopux*)
3783   case $host_os in
3784   irix5* | nonstopux*)
3785     # this will be overridden with pass_all, but let us keep it just in case
3786     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3787     ;;
3788   *)
3789     case $LD in
3790     *-32|*"-32 ") libmagic=32-bit;;
3791     *-n32|*"-n32 ") libmagic=N32;;
3792     *-64|*"-64 ") libmagic=64-bit;;
3793     *) libmagic=never-match;;
3794     esac
3795     # this will be overridden with pass_all, but let us keep it just in case
3796     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3797     ;;
3798   esac
3799   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3800   lt_cv_deplibs_check_method=pass_all
3801   ;;
3802
3803 # This must be Linux ELF.
3804 linux-gnu*)
3805   case $host_cpu in
3806   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3807     lt_cv_deplibs_check_method=pass_all ;;
3808   *)
3809     # glibc up to 2.1.1 does not perform some relocations on ARM
3810     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3811   esac
3812   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3813   ;;
3814
3815 netbsd*)
3816   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3817     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3818   else
3819     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3820   fi
3821   ;;
3822
3823 newos6*)
3824   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3825   lt_cv_file_magic_cmd=/usr/bin/file
3826   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3827   ;;
3828
3829 openbsd*)
3830   lt_cv_file_magic_cmd=/usr/bin/file
3831   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3832   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3833     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3834   else
3835     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3836   fi
3837   ;;
3838
3839 osf3* | osf4* | osf5*)
3840   # this will be overridden with pass_all, but let us keep it just in case
3841   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3842   lt_cv_file_magic_test_file=/shlib/libc.so
3843   lt_cv_deplibs_check_method=pass_all
3844   ;;
3845
3846 sco3.2v5*)
3847   lt_cv_deplibs_check_method=pass_all
3848   ;;
3849
3850 solaris*)
3851   lt_cv_deplibs_check_method=pass_all
3852   lt_cv_file_magic_test_file=/lib/libc.so
3853   ;;
3854
3855 sysv5uw[78]* | sysv4*uw2*)
3856   lt_cv_deplibs_check_method=pass_all
3857   ;;
3858
3859 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3860   case $host_vendor in
3861   motorola)
3862     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]'
3863     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3864     ;;
3865   ncr)
3866     lt_cv_deplibs_check_method=pass_all
3867     ;;
3868   sequent)
3869     lt_cv_file_magic_cmd='/bin/file'
3870     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3871     ;;
3872   sni)
3873     lt_cv_file_magic_cmd='/bin/file'
3874     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3875     lt_cv_file_magic_test_file=/lib/libc.so
3876     ;;
3877   siemens)
3878     lt_cv_deplibs_check_method=pass_all
3879     ;;
3880   esac
3881   ;;
3882 esac
3883
3884 fi
3885 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3886 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3887 file_magic_cmd=$lt_cv_file_magic_cmd
3888 deplibs_check_method=$lt_cv_deplibs_check_method
3889
3890
3891
3892
3893
3894
3895
3896
3897 # Check for command to grab the raw symbol name followed by C symbol from nm.
3898 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3899 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3900 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903
3904 # These are sane defaults that work on at least a few old systems.
3905 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3906
3907 # Character class describing NM global symbol codes.
3908 symcode='[BCDEGRST]'
3909
3910 # Regexp to match symbols that can be accessed directly from C.
3911 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3912
3913 # Transform the above into a raw symbol and a C symbol.
3914 symxfrm='\1 \2\3 \3'
3915
3916 # Transform an extracted symbol line into a proper C declaration
3917 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3918
3919 # Transform an extracted symbol line into symbol name and symbol address
3920 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'"
3921
3922 # Define system-specific variables.
3923 case $host_os in
3924 aix*)
3925   symcode='[BCDT]'
3926   ;;
3927 cygwin* | mingw* | pw32*)
3928   symcode='[ABCDGISTW]'
3929   ;;
3930 hpux*) # Its linker distinguishes data from code symbols
3931   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3932   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'"
3933   ;;
3934 irix* | nonstopux*)
3935   symcode='[BCDEGRST]'
3936   ;;
3937 osf*)
3938   symcode='[BCDEGQRST]'
3939   ;;
3940 solaris* | sysv5*)
3941   symcode='[BDT]'
3942   ;;
3943 sysv4)
3944   symcode='[DFNSTU]'
3945   ;;
3946 esac
3947
3948 # Handle CRLF in mingw tool chain
3949 opt_cr=
3950 case $host_os in
3951 mingw*)
3952   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3953   ;;
3954 esac
3955
3956 # If we're using GNU nm, then use its standard symbol codes.
3957 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3958   symcode='[ABCDGISTW]'
3959 fi
3960
3961 # Try without a prefix undercore, then with it.
3962 for ac_symprfx in "" "_"; do
3963
3964   # Write the raw and C identifiers.
3965 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3966
3967   # Check to see that the pipe works correctly.
3968   pipe_works=no
3969   rm -f conftest*
3970   cat > conftest.$ac_ext <<EOF
3971 #ifdef __cplusplus
3972 extern "C" {
3973 #endif
3974 char nm_test_var;
3975 void nm_test_func(){}
3976 #ifdef __cplusplus
3977 }
3978 #endif
3979 int main(){nm_test_var='a';nm_test_func();return(0);}
3980 EOF
3981
3982   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983   (eval $ac_compile) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; then
3987     # Now try to grab the symbols.
3988     nlist=conftest.nm
3989     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3990   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3991   ac_status=$?
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } && test -s "$nlist"; then
3994       # Try sorting and uniquifying the output.
3995       if sort "$nlist" | uniq > "$nlist"T; then
3996         mv -f "$nlist"T "$nlist"
3997       else
3998         rm -f "$nlist"T
3999       fi
4000
4001       # Make sure that we snagged all the symbols we need.
4002       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4003         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4004           cat <<EOF > conftest.$ac_ext
4005 #ifdef __cplusplus
4006 extern "C" {
4007 #endif
4008
4009 EOF
4010           # Now generate the symbol file.
4011           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4012
4013           cat <<EOF >> conftest.$ac_ext
4014 #if defined (__STDC__) && __STDC__
4015 # define lt_ptr void *
4016 #else
4017 # define lt_ptr char *
4018 # define const
4019 #endif
4020
4021 /* The mapping between symbol names and symbols. */
4022 const struct {
4023   const char *name;
4024   lt_ptr address;
4025 }
4026 lt_preloaded_symbols[] =
4027 {
4028 EOF
4029           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4030           cat <<\EOF >> conftest.$ac_ext
4031   {0, (lt_ptr) 0}
4032 };
4033
4034 #ifdef __cplusplus
4035 }
4036 #endif
4037 EOF
4038           # Now try linking the two files.
4039           mv conftest.$ac_objext conftstm.$ac_objext
4040           save_LIBS="$LIBS"
4041           save_CFLAGS="$CFLAGS"
4042           LIBS="conftstm.$ac_objext"
4043           CFLAGS="$CFLAGS$no_builtin_flag"
4044           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4045   (eval $ac_link) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); } && test -s conftest$ac_exeext; then
4049             pipe_works=yes
4050           fi
4051           LIBS="$save_LIBS"
4052           CFLAGS="$save_CFLAGS"
4053         else
4054           echo "cannot find nm_test_func in $nlist" >&5
4055         fi
4056       else
4057         echo "cannot find nm_test_var in $nlist" >&5
4058       fi
4059     else
4060       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4061     fi
4062   else
4063     echo "$progname: failed program was:" >&5
4064     cat conftest.$ac_ext >&5
4065   fi
4066   rm -f conftest* conftst*
4067
4068   # Do not use the global_symbol_pipe unless it works.
4069   if test "$pipe_works" = yes; then
4070     break
4071   else
4072     lt_cv_sys_global_symbol_pipe=
4073   fi
4074 done
4075
4076 fi
4077
4078 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4079 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4080   global_symbol_to_cdecl=
4081   global_symbol_to_c_name_address=
4082 else
4083   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4084   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4085 fi
4086 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4087 then
4088   echo "$as_me:$LINENO: result: failed" >&5
4089 echo "${ECHO_T}failed" >&6
4090 else
4091   echo "$as_me:$LINENO: result: ok" >&5
4092 echo "${ECHO_T}ok" >&6
4093 fi
4094
4095
4096 echo "$as_me:$LINENO: checking for egrep" >&5
4097 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4098 if test "${ac_cv_prog_egrep+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4102     then ac_cv_prog_egrep='grep -E'
4103     else ac_cv_prog_egrep='egrep'
4104     fi
4105 fi
4106 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4107 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4108  EGREP=$ac_cv_prog_egrep
4109
4110
4111 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4112 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4113 if test "${ac_cv_header_stdc+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <stdlib.h>
4123 #include <stdarg.h>
4124 #include <string.h>
4125 #include <float.h>
4126
4127 int
4128 main ()
4129 {
4130
4131   ;
4132   return 0;
4133 }
4134 _ACEOF
4135 rm -f conftest.$ac_objext
4136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4137   (eval $ac_compile) 2>conftest.er1
4138   ac_status=$?
4139   grep -v '^ *+' conftest.er1 >conftest.err
4140   rm -f conftest.er1
4141   cat conftest.err >&5
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } &&
4144          { ac_try='test -z "$ac_c_werror_flag"
4145                          || test ! -s conftest.err'
4146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147   (eval $ac_try) 2>&5
4148   ac_status=$?
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); }; } &&
4151          { ac_try='test -s conftest.$ac_objext'
4152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153   (eval $ac_try) 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); }; }; then
4157   ac_cv_header_stdc=yes
4158 else
4159   echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 ac_cv_header_stdc=no
4163 fi
4164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4165
4166 if test $ac_cv_header_stdc = yes; then
4167   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4168   cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h.  */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h.  */
4174 #include <string.h>
4175
4176 _ACEOF
4177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4178   $EGREP "memchr" >/dev/null 2>&1; then
4179   :
4180 else
4181   ac_cv_header_stdc=no
4182 fi
4183 rm -f conftest*
4184
4185 fi
4186
4187 if test $ac_cv_header_stdc = yes; then
4188   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4189   cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195 #include <stdlib.h>
4196
4197 _ACEOF
4198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4199   $EGREP "free" >/dev/null 2>&1; then
4200   :
4201 else
4202   ac_cv_header_stdc=no
4203 fi
4204 rm -f conftest*
4205
4206 fi
4207
4208 if test $ac_cv_header_stdc = yes; then
4209   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4210   if test "$cross_compiling" = yes; then
4211   :
4212 else
4213   cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h.  */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h.  */
4219 #include <ctype.h>
4220 #if ((' ' & 0x0FF) == 0x020)
4221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4223 #else
4224 # define ISLOWER(c) \
4225                    (('a' <= (c) && (c) <= 'i') \
4226                      || ('j' <= (c) && (c) <= 'r') \
4227                      || ('s' <= (c) && (c) <= 'z'))
4228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4229 #endif
4230
4231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4232 int
4233 main ()
4234 {
4235   int i;
4236   for (i = 0; i < 256; i++)
4237     if (XOR (islower (i), ISLOWER (i))
4238         || toupper (i) != TOUPPER (i))
4239       exit(2);
4240   exit (0);
4241 }
4242 _ACEOF
4243 rm -f conftest$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245   (eval $ac_link) 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250   (eval $ac_try) 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); }; }; then
4254   :
4255 else
4256   echo "$as_me: program exited with status $ac_status" >&5
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260 ( exit $ac_status )
4261 ac_cv_header_stdc=no
4262 fi
4263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4264 fi
4265 fi
4266 fi
4267 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4268 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4269 if test $ac_cv_header_stdc = yes; then
4270
4271 cat >>confdefs.h <<\_ACEOF
4272 #define STDC_HEADERS 1
4273 _ACEOF
4274
4275 fi
4276
4277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4288                   inttypes.h stdint.h unistd.h
4289 do
4290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4291 echo "$as_me:$LINENO: checking for $ac_header" >&5
4292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h.  */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h.  */
4302 $ac_includes_default
4303
4304 #include <$ac_header>
4305 _ACEOF
4306 rm -f conftest.$ac_objext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308   (eval $ac_compile) 2>conftest.er1
4309   ac_status=$?
4310   grep -v '^ *+' conftest.er1 >conftest.err
4311   rm -f conftest.er1
4312   cat conftest.err >&5
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); } &&
4315          { ac_try='test -z "$ac_c_werror_flag"
4316                          || test ! -s conftest.err'
4317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318   (eval $ac_try) 2>&5
4319   ac_status=$?
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); }; } &&
4322          { ac_try='test -s conftest.$ac_objext'
4323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324   (eval $ac_try) 2>&5
4325   ac_status=$?
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); }; }; then
4328   eval "$as_ac_Header=yes"
4329 else
4330   echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 eval "$as_ac_Header=no"
4334 fi
4335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4340   cat >>confdefs.h <<_ACEOF
4341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4342 _ACEOF
4343
4344 fi
4345
4346 done
4347
4348
4349
4350 for ac_header in dlfcn.h
4351 do
4352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354   echo "$as_me:$LINENO: checking for $ac_header" >&5
4355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 fi
4359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4361 else
4362   # Is the header compilable?
4363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h.  */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h.  */
4371 $ac_includes_default
4372 #include <$ac_header>
4373 _ACEOF
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376   (eval $ac_compile) 2>conftest.er1
4377   ac_status=$?
4378   grep -v '^ *+' conftest.er1 >conftest.err
4379   rm -f conftest.er1
4380   cat conftest.err >&5
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); } &&
4383          { ac_try='test -z "$ac_c_werror_flag"
4384                          || test ! -s conftest.err'
4385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386   (eval $ac_try) 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }; } &&
4390          { ac_try='test -s conftest.$ac_objext'
4391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392   (eval $ac_try) 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); }; }; then
4396   ac_header_compiler=yes
4397 else
4398   echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401 ac_header_compiler=no
4402 fi
4403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4405 echo "${ECHO_T}$ac_header_compiler" >&6
4406
4407 # Is the header present?
4408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h.  */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h.  */
4416 #include <$ac_header>
4417 _ACEOF
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } >/dev/null; then
4426   if test -s conftest.err; then
4427     ac_cpp_err=$ac_c_preproc_warn_flag
4428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4429   else
4430     ac_cpp_err=
4431   fi
4432 else
4433   ac_cpp_err=yes
4434 fi
4435 if test -z "$ac_cpp_err"; then
4436   ac_header_preproc=yes
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441   ac_header_preproc=no
4442 fi
4443 rm -f conftest.err conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4445 echo "${ECHO_T}$ac_header_preproc" >&6
4446
4447 # So?  What about this header?
4448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4449   yes:no: )
4450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4454     ac_header_preproc=yes
4455     ;;
4456   no:yes:* )
4457     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4459     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4460 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4461     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4463     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4464 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4467     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4469     (
4470       cat <<\_ASBOX
4471 ## ------------------------------------------ ##
4472 ## Report this to the AC_PACKAGE_NAME lists.  ##
4473 ## ------------------------------------------ ##
4474 _ASBOX
4475     ) |
4476       sed "s/^/$as_me: WARNING:     /" >&2
4477     ;;
4478 esac
4479 echo "$as_me:$LINENO: checking for $ac_header" >&5
4480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   eval "$as_ac_Header=\$ac_header_preproc"
4485 fi
4486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4488
4489 fi
4490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4491   cat >>confdefs.h <<_ACEOF
4492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493 _ACEOF
4494
4495 fi
4496
4497 done
4498
4499
4500
4501
4502
4503
4504 # Only perform the check for file, if the check method requires it
4505 case $deplibs_check_method in
4506 file_magic*)
4507   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4508     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4509 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4510 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   case $MAGIC_CMD in
4514   /*)
4515   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4516   ;;
4517   ?:/*)
4518   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4519   ;;
4520   *)
4521   ac_save_MAGIC_CMD="$MAGIC_CMD"
4522   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4523   ac_dummy="/usr/bin:$PATH"
4524   for ac_dir in $ac_dummy; do
4525     test -z "$ac_dir" && ac_dir=.
4526     if test -f $ac_dir/${ac_tool_prefix}file; then
4527       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4528       if test -n "$file_magic_test_file"; then
4529         case $deplibs_check_method in
4530         "file_magic "*)
4531           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4532           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4533           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4534             egrep "$file_magic_regex" > /dev/null; then
4535             :
4536           else
4537             cat <<EOF 1>&2
4538
4539 *** Warning: the command libtool uses to detect shared libraries,
4540 *** $file_magic_cmd, produces output that libtool cannot recognize.
4541 *** The result is that libtool may fail to recognize shared libraries
4542 *** as such.  This will affect the creation of libtool libraries that
4543 *** depend on shared libraries, but programs linked with such libtool
4544 *** libraries will work regardless of this problem.  Nevertheless, you
4545 *** may want to report the problem to your system manager and/or to
4546 *** bug-libtool@gnu.org
4547
4548 EOF
4549           fi ;;
4550         esac
4551       fi
4552       break
4553     fi
4554   done
4555   IFS="$ac_save_ifs"
4556   MAGIC_CMD="$ac_save_MAGIC_CMD"
4557   ;;
4558 esac
4559 fi
4560
4561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4562 if test -n "$MAGIC_CMD"; then
4563   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4564 echo "${ECHO_T}$MAGIC_CMD" >&6
4565 else
4566   echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4568 fi
4569
4570 if test -z "$lt_cv_path_MAGIC_CMD"; then
4571   if test -n "$ac_tool_prefix"; then
4572     echo "$as_me:$LINENO: checking for file" >&5
4573 echo $ECHO_N "checking for file... $ECHO_C" >&6
4574 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   case $MAGIC_CMD in
4578   /*)
4579   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4580   ;;
4581   ?:/*)
4582   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4583   ;;
4584   *)
4585   ac_save_MAGIC_CMD="$MAGIC_CMD"
4586   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4587   ac_dummy="/usr/bin:$PATH"
4588   for ac_dir in $ac_dummy; do
4589     test -z "$ac_dir" && ac_dir=.
4590     if test -f $ac_dir/file; then
4591       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4592       if test -n "$file_magic_test_file"; then
4593         case $deplibs_check_method in
4594         "file_magic "*)
4595           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4596           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4597           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4598             egrep "$file_magic_regex" > /dev/null; then
4599             :
4600           else
4601             cat <<EOF 1>&2
4602
4603 *** Warning: the command libtool uses to detect shared libraries,
4604 *** $file_magic_cmd, produces output that libtool cannot recognize.
4605 *** The result is that libtool may fail to recognize shared libraries
4606 *** as such.  This will affect the creation of libtool libraries that
4607 *** depend on shared libraries, but programs linked with such libtool
4608 *** libraries will work regardless of this problem.  Nevertheless, you
4609 *** may want to report the problem to your system manager and/or to
4610 *** bug-libtool@gnu.org
4611
4612 EOF
4613           fi ;;
4614         esac
4615       fi
4616       break
4617     fi
4618   done
4619   IFS="$ac_save_ifs"
4620   MAGIC_CMD="$ac_save_MAGIC_CMD"
4621   ;;
4622 esac
4623 fi
4624
4625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4626 if test -n "$MAGIC_CMD"; then
4627   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4628 echo "${ECHO_T}$MAGIC_CMD" >&6
4629 else
4630   echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4632 fi
4633
4634   else
4635     MAGIC_CMD=:
4636   fi
4637 fi
4638
4639   fi
4640   ;;
4641 esac
4642
4643 if test -n "$ac_tool_prefix"; then
4644   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4646 echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4648 if test "${ac_cv_prog_RANLIB+set}" = set; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   if test -n "$RANLIB"; then
4652   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659   for ac_exec_ext in '' $ac_executable_extensions; do
4660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666 done
4667
4668 fi
4669 fi
4670 RANLIB=$ac_cv_prog_RANLIB
4671 if test -n "$RANLIB"; then
4672   echo "$as_me:$LINENO: result: $RANLIB" >&5
4673 echo "${ECHO_T}$RANLIB" >&6
4674 else
4675   echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6
4677 fi
4678
4679 fi
4680 if test -z "$ac_cv_prog_RANLIB"; then
4681   ac_ct_RANLIB=$RANLIB
4682   # Extract the first word of "ranlib", so it can be a program name with args.
4683 set dummy ranlib; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   if test -n "$ac_ct_RANLIB"; then
4690   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697   for ac_exec_ext in '' $ac_executable_extensions; do
4698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699     ac_cv_prog_ac_ct_RANLIB="ranlib"
4700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704 done
4705
4706   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4707 fi
4708 fi
4709 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4710 if test -n "$ac_ct_RANLIB"; then
4711   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4712 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4713 else
4714   echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4716 fi
4717
4718   RANLIB=$ac_ct_RANLIB
4719 else
4720   RANLIB="$ac_cv_prog_RANLIB"
4721 fi
4722
4723 if test -n "$ac_tool_prefix"; then
4724   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4725 set dummy ${ac_tool_prefix}strip; ac_word=$2
4726 echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4728 if test "${ac_cv_prog_STRIP+set}" = set; then
4729   echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731   if test -n "$STRIP"; then
4732   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739   for ac_exec_ext in '' $ac_executable_extensions; do
4740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746 done
4747
4748 fi
4749 fi
4750 STRIP=$ac_cv_prog_STRIP
4751 if test -n "$STRIP"; then
4752   echo "$as_me:$LINENO: result: $STRIP" >&5
4753 echo "${ECHO_T}$STRIP" >&6
4754 else
4755   echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6
4757 fi
4758
4759 fi
4760 if test -z "$ac_cv_prog_STRIP"; then
4761   ac_ct_STRIP=$STRIP
4762   # Extract the first word of "strip", so it can be a program name with args.
4763 set dummy strip; ac_word=$2
4764 echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4766 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4767   echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769   if test -n "$ac_ct_STRIP"; then
4770   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_exec_ext in '' $ac_executable_extensions; do
4778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779     ac_cv_prog_ac_ct_STRIP="strip"
4780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782   fi
4783 done
4784 done
4785
4786   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4787 fi
4788 fi
4789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4790 if test -n "$ac_ct_STRIP"; then
4791   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4792 echo "${ECHO_T}$ac_ct_STRIP" >&6
4793 else
4794   echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6
4796 fi
4797
4798   STRIP=$ac_ct_STRIP
4799 else
4800   STRIP="$ac_cv_prog_STRIP"
4801 fi
4802
4803
4804 enable_dlopen=no
4805 enable_win32_dll=no
4806
4807 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4808 if test "${enable_libtool_lock+set}" = set; then
4809   enableval="$enable_libtool_lock"
4810
4811 fi;
4812 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4813
4814 # Some flags need to be propagated to the compiler or linker for good
4815 # libtool support.
4816 case $host in
4817 *-*-irix6*)
4818   # Find out which ABI we are using.
4819   echo '#line 4819 "configure"' > conftest.$ac_ext
4820   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821   (eval $ac_compile) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); }; then
4825     case `/usr/bin/file conftest.$ac_objext` in
4826     *32-bit*)
4827       LD="${LD-ld} -32"
4828       ;;
4829     *N32*)
4830       LD="${LD-ld} -n32"
4831       ;;
4832     *64-bit*)
4833       LD="${LD-ld} -64"
4834       ;;
4835     esac
4836   fi
4837   rm -rf conftest*
4838   ;;
4839
4840 *-*-linux*)
4841   # Test if the compiler is 64bit
4842   echo 'int i;' > conftest.$ac_ext
4843   lt_cv_cc_64bit_output=no
4844   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845   (eval $ac_compile) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; then
4849     case `/usr/bin/file conftest.$ac_objext` in
4850     *"ELF 64"*)
4851       lt_cv_cc_64bit_output=yes
4852       ;;
4853     esac
4854   fi
4855   rm -rf conftest*
4856   ;;
4857
4858 *-*-sco3.2v5*)
4859   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4860   SAVE_CFLAGS="$CFLAGS"
4861   CFLAGS="$CFLAGS -belf"
4862   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4863 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4864 if test "${lt_cv_cc_needs_belf+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867
4868
4869      ac_ext=c
4870 ac_cpp='$CPP $CPPFLAGS'
4871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4874
4875      cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h.  */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h.  */
4881
4882 int
4883 main ()
4884 {
4885
4886   ;
4887   return 0;
4888 }
4889 _ACEOF
4890 rm -f conftest.$ac_objext conftest$ac_exeext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4892   (eval $ac_link) 2>conftest.er1
4893   ac_status=$?
4894   grep -v '^ *+' conftest.er1 >conftest.err
4895   rm -f conftest.er1
4896   cat conftest.err >&5
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } &&
4899          { ac_try='test -z "$ac_c_werror_flag"
4900                          || test ! -s conftest.err'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; } &&
4906          { ac_try='test -s conftest$ac_exeext'
4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908   (eval $ac_try) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); }; }; then
4912   lt_cv_cc_needs_belf=yes
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 lt_cv_cc_needs_belf=no
4918 fi
4919 rm -f conftest.err conftest.$ac_objext \
4920       conftest$ac_exeext conftest.$ac_ext
4921      ac_ext=c
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927 fi
4928 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4929 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4930   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4931     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4932     CFLAGS="$SAVE_CFLAGS"
4933   fi
4934   ;;
4935
4936
4937 esac
4938
4939 # Sed substitution that helps us do robust quoting.  It backslashifies
4940 # metacharacters that are still active within double-quoted strings.
4941 Xsed='sed -e s/^X//'
4942 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4943
4944 # Same as above, but do not quote variable references.
4945 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4946
4947 # Sed substitution to delay expansion of an escaped shell variable in a
4948 # double_quote_subst'ed string.
4949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4950
4951 # Constants:
4952 rm="rm -f"
4953
4954 # Global variables:
4955 default_ofile=libtool
4956 can_build_shared=yes
4957
4958 # All known linkers require a `.a' archive for static linking (except M$VC,
4959 # which needs '.lib').
4960 libext=a
4961 ltmain="$ac_aux_dir/ltmain.sh"
4962 ofile="$default_ofile"
4963 with_gnu_ld="$lt_cv_prog_gnu_ld"
4964 need_locks="$enable_libtool_lock"
4965
4966 old_CC="$CC"
4967 old_CFLAGS="$CFLAGS"
4968
4969 # Set sane defaults for various variables
4970 test -z "$AR" && AR=ar
4971 test -z "$AR_FLAGS" && AR_FLAGS=cru
4972 test -z "$AS" && AS=as
4973 test -z "$CC" && CC=cc
4974 test -z "$DLLTOOL" && DLLTOOL=dlltool
4975 test -z "$LD" && LD=ld
4976 test -z "$LN_S" && LN_S="ln -s"
4977 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4978 test -z "$NM" && NM=nm
4979 test -z "$OBJDUMP" && OBJDUMP=objdump
4980 test -z "$RANLIB" && RANLIB=:
4981 test -z "$STRIP" && STRIP=:
4982 test -z "$ac_objext" && ac_objext=o
4983
4984 if test x"$host" != x"$build"; then
4985   ac_tool_prefix=${host_alias}-
4986 else
4987   ac_tool_prefix=
4988 fi
4989
4990 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4991 case $host_os in
4992 linux-gnu*) ;;
4993 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4994 esac
4995
4996 case $host_os in
4997 aix3*)
4998   # AIX sometimes has problems with the GCC collect2 program.  For some
4999   # reason, if we set the COLLECT_NAMES environment variable, the problems
5000   # vanish in a puff of smoke.
5001   if test "X${COLLECT_NAMES+set}" != Xset; then
5002     COLLECT_NAMES=
5003     export COLLECT_NAMES
5004   fi
5005   ;;
5006 esac
5007
5008 # Determine commands to create old-style static archives.
5009 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5010 old_postinstall_cmds='chmod 644 $oldlib'
5011 old_postuninstall_cmds=
5012
5013 if test -n "$RANLIB"; then
5014   case $host_os in
5015   openbsd*)
5016     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5017     ;;
5018   *)
5019     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5020     ;;
5021   esac
5022   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5023 fi
5024
5025 # Allow CC to be a program name with arguments.
5026 set dummy $CC
5027 compiler="$2"
5028
5029 echo "$as_me:$LINENO: checking for objdir" >&5
5030 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5031 rm -f .libs 2>/dev/null
5032 mkdir .libs 2>/dev/null
5033 if test -d .libs; then
5034   objdir=.libs
5035 else
5036   # MS-DOS does not allow filenames that begin with a dot.
5037   objdir=_libs
5038 fi
5039 rmdir .libs 2>/dev/null
5040 echo "$as_me:$LINENO: result: $objdir" >&5
5041 echo "${ECHO_T}$objdir" >&6
5042
5043
5044
5045 # Check whether --with-pic or --without-pic was given.
5046 if test "${with_pic+set}" = set; then
5047   withval="$with_pic"
5048   pic_mode="$withval"
5049 else
5050   pic_mode=default
5051 fi;
5052 test -z "$pic_mode" && pic_mode=default
5053
5054 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5055 # in isolation, and that seeing it set (from the cache) indicates that
5056 # the associated values are set (in the cache) correctly too.
5057 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5058 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5059 if test "${lt_cv_prog_cc_pic+set}" = set; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062    lt_cv_prog_cc_pic=
5063   lt_cv_prog_cc_shlib=
5064   lt_cv_prog_cc_wl=
5065   lt_cv_prog_cc_static=
5066   lt_cv_prog_cc_no_builtin=
5067   lt_cv_prog_cc_can_build_shared=$can_build_shared
5068
5069   if test "$GCC" = yes; then
5070     lt_cv_prog_cc_wl='-Wl,'
5071     lt_cv_prog_cc_static='-static'
5072
5073     case $host_os in
5074     aix*)
5075       # Below there is a dirty hack to force normal static linking with -ldl
5076       # The problem is because libdl dynamically linked with both libc and
5077       # libC (AIX C++ library), which obviously doesn't included in libraries
5078       # list by gcc. This cause undefined symbols with -static flags.
5079       # This hack allows C programs to be linked with "-static -ldl", but
5080       # not sure about C++ programs.
5081       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5082       ;;
5083     amigaos*)
5084       # FIXME: we need at least 68020 code to build shared libraries, but
5085       # adding the `-m68020' flag to GCC prevents building anything better,
5086       # like `-m68040'.
5087       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5088       ;;
5089     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5090       # PIC is the default for these OSes.
5091       ;;
5092     darwin* | rhapsody*)
5093       # PIC is the default on this platform
5094       # Common symbols not allowed in MH_DYLIB files
5095       lt_cv_prog_cc_pic='-fno-common'
5096       ;;
5097     cygwin* | mingw* | pw32* | os2*)
5098       # This hack is so that the source file can tell whether it is being
5099       # built for inclusion in a dll (and should export symbols for example).
5100       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5101       ;;
5102     sysv4*MP*)
5103       if test -d /usr/nec; then
5104          lt_cv_prog_cc_pic=-Kconform_pic
5105       fi
5106       ;;
5107     *)
5108       lt_cv_prog_cc_pic='-fPIC'
5109       ;;
5110     esac
5111   else
5112     # PORTME Check for PIC flags for the system compiler.
5113     case $host_os in
5114     aix3* | aix4* | aix5*)
5115       lt_cv_prog_cc_wl='-Wl,'
5116       # All AIX code is PIC.
5117       if test "$host_cpu" = ia64; then
5118         # AIX 5 now supports IA64 processor
5119         lt_cv_prog_cc_static='-Bstatic'
5120       else
5121         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5122       fi
5123       ;;
5124
5125     hpux9* | hpux10* | hpux11*)
5126       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5127       lt_cv_prog_cc_wl='-Wl,'
5128       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5129       lt_cv_prog_cc_pic='+Z'
5130       ;;
5131
5132     irix5* | irix6* | nonstopux*)
5133       lt_cv_prog_cc_wl='-Wl,'
5134       lt_cv_prog_cc_static='-non_shared'
5135       # PIC (with -KPIC) is the default.
5136       ;;
5137
5138     cygwin* | mingw* | pw32* | os2*)
5139       # This hack is so that the source file can tell whether it is being
5140       # built for inclusion in a dll (and should export symbols for example).
5141       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5142       ;;
5143
5144     newsos6)
5145       lt_cv_prog_cc_pic='-KPIC'
5146       lt_cv_prog_cc_static='-Bstatic'
5147       ;;
5148
5149     osf3* | osf4* | osf5*)
5150       # All OSF/1 code is PIC.
5151       lt_cv_prog_cc_wl='-Wl,'
5152       lt_cv_prog_cc_static='-non_shared'
5153       ;;
5154
5155     sco3.2v5*)
5156       lt_cv_prog_cc_pic='-Kpic'
5157       lt_cv_prog_cc_static='-dn'
5158       lt_cv_prog_cc_shlib='-belf'
5159       ;;
5160
5161     solaris*)
5162       lt_cv_prog_cc_pic='-KPIC'
5163       lt_cv_prog_cc_static='-Bstatic'
5164       lt_cv_prog_cc_wl='-Wl,'
5165       ;;
5166
5167     sunos4*)
5168       lt_cv_prog_cc_pic='-PIC'
5169       lt_cv_prog_cc_static='-Bstatic'
5170       lt_cv_prog_cc_wl='-Qoption ld '
5171       ;;
5172
5173     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5174       lt_cv_prog_cc_pic='-KPIC'
5175       lt_cv_prog_cc_static='-Bstatic'
5176       lt_cv_prog_cc_wl='-Wl,'
5177       ;;
5178
5179     uts4*)
5180       lt_cv_prog_cc_pic='-pic'
5181       lt_cv_prog_cc_static='-Bstatic'
5182       ;;
5183
5184     sysv4*MP*)
5185       if test -d /usr/nec ;then
5186         lt_cv_prog_cc_pic='-Kconform_pic'
5187         lt_cv_prog_cc_static='-Bstatic'
5188       fi
5189       ;;
5190
5191     *)
5192       lt_cv_prog_cc_can_build_shared=no
5193       ;;
5194     esac
5195   fi
5196
5197 fi
5198
5199 if test -z "$lt_cv_prog_cc_pic"; then
5200   echo "$as_me:$LINENO: result: none" >&5
5201 echo "${ECHO_T}none" >&6
5202 else
5203   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5204 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5205
5206   # Check to make sure the pic_flag actually works.
5207   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5208 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5209   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212       save_CFLAGS="$CFLAGS"
5213     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5214     cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h.  */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h.  */
5220
5221 int
5222 main ()
5223 {
5224
5225   ;
5226   return 0;
5227 }
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231   (eval $ac_compile) 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } &&
5238          { ac_try='test -z "$ac_c_werror_flag"
5239                          || test ! -s conftest.err'
5240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241   (eval $ac_try) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); }; } &&
5245          { ac_try='test -s conftest.$ac_objext'
5246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247   (eval $ac_try) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }; }; then
5251         case $host_os in
5252       hpux9* | hpux10* | hpux11*)
5253         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5254         # they create non-PIC objects.  So, if there were any warnings, we
5255         # assume that PIC is not supported.
5256         if test -s conftest.err; then
5257           lt_cv_prog_cc_pic_works=no
5258         else
5259           lt_cv_prog_cc_pic_works=yes
5260         fi
5261         ;;
5262       *)
5263         lt_cv_prog_cc_pic_works=yes
5264         ;;
5265       esac
5266
5267 else
5268   echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5270
5271       lt_cv_prog_cc_pic_works=no
5272
5273 fi
5274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5275     CFLAGS="$save_CFLAGS"
5276
5277 fi
5278
5279
5280   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5281     lt_cv_prog_cc_pic=
5282     lt_cv_prog_cc_can_build_shared=no
5283   else
5284     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5285   fi
5286
5287   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5288 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5289 fi
5290
5291 # Check for any special shared library compilation flags.
5292 if test -n "$lt_cv_prog_cc_shlib"; then
5293   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5294 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5295   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5296   else
5297    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5298 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5299     lt_cv_prog_cc_can_build_shared=no
5300   fi
5301 fi
5302
5303 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5304 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5305 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5306   echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308     lt_cv_prog_cc_static_works=no
5309   save_LDFLAGS="$LDFLAGS"
5310   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5311   cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h.  */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h.  */
5317
5318 int
5319 main ()
5320 {
5321
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest.$ac_objext conftest$ac_exeext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328   (eval $ac_link) 2>conftest.er1
5329   ac_status=$?
5330   grep -v '^ *+' conftest.er1 >conftest.err
5331   rm -f conftest.er1
5332   cat conftest.err >&5
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); } &&
5335          { ac_try='test -z "$ac_c_werror_flag"
5336                          || test ! -s conftest.err'
5337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338   (eval $ac_try) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }; } &&
5342          { ac_try='test -s conftest$ac_exeext'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   lt_cv_prog_cc_static_works=yes
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 fi
5354 rm -f conftest.err conftest.$ac_objext \
5355       conftest$ac_exeext conftest.$ac_ext
5356   LDFLAGS="$save_LDFLAGS"
5357
5358 fi
5359
5360
5361 # Belt *and* braces to stop my trousers falling down:
5362 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5363 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5364 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5365
5366 pic_flag="$lt_cv_prog_cc_pic"
5367 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5368 wl="$lt_cv_prog_cc_wl"
5369 link_static_flag="$lt_cv_prog_cc_static"
5370 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5371 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5372
5373
5374 # Check to see if options -o and -c are simultaneously supported by compiler
5375 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5376 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5377 if test "${lt_cv_compiler_c_o+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380
5381 $rm -r conftest 2>/dev/null
5382 mkdir conftest
5383 cd conftest
5384 echo "int some_variable = 0;" > conftest.$ac_ext
5385 mkdir out
5386 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5387 # that will create temporary files in the current directory regardless of
5388 # the output directory.  Thus, making CWD read-only will cause this test
5389 # to fail, enabling locking or at least warning the user not to do parallel
5390 # builds.
5391 chmod -w .
5392 save_CFLAGS="$CFLAGS"
5393 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5394 compiler_c_o=no
5395 if { (eval echo configure:5395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5396   # The compiler can only warn and ignore the option if not recognized
5397   # So say no if there are warnings
5398   if test -s out/conftest.err; then
5399     lt_cv_compiler_c_o=no
5400   else
5401     lt_cv_compiler_c_o=yes
5402   fi
5403 else
5404   # Append any errors to the config.log.
5405   cat out/conftest.err 1>&5
5406   lt_cv_compiler_c_o=no
5407 fi
5408 CFLAGS="$save_CFLAGS"
5409 chmod u+w .
5410 $rm conftest* out/*
5411 rmdir out
5412 cd ..
5413 rmdir conftest
5414 $rm -r conftest 2>/dev/null
5415
5416 fi
5417
5418 compiler_c_o=$lt_cv_compiler_c_o
5419 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5420 echo "${ECHO_T}$compiler_c_o" >&6
5421
5422 if test x"$compiler_c_o" = x"yes"; then
5423   # Check to see if we can write to a .lo
5424   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5425 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5426   if test "${lt_cv_compiler_o_lo+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429
5430   lt_cv_compiler_o_lo=no
5431   save_CFLAGS="$CFLAGS"
5432   CFLAGS="$CFLAGS -c -o conftest.lo"
5433   save_objext="$ac_objext"
5434   ac_objext=lo
5435   cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441
5442 int
5443 main ()
5444 {
5445 int some_variable = 0;
5446   ;
5447   return 0;
5448 }
5449 _ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452   (eval $ac_compile) 2>conftest.er1
5453   ac_status=$?
5454   grep -v '^ *+' conftest.er1 >conftest.err
5455   rm -f conftest.er1
5456   cat conftest.err >&5
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); } &&
5459          { ac_try='test -z "$ac_c_werror_flag"
5460                          || test ! -s conftest.err'
5461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462   (eval $ac_try) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); }; } &&
5466          { ac_try='test -s conftest.$ac_objext'
5467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468   (eval $ac_try) 2>&5
5469   ac_status=$?
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); }; }; then
5472       # The compiler can only warn and ignore the option if not recognized
5473     # So say no if there are warnings
5474     if test -s conftest.err; then
5475       lt_cv_compiler_o_lo=no
5476     else
5477       lt_cv_compiler_o_lo=yes
5478     fi
5479
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 fi
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486   ac_objext="$save_objext"
5487   CFLAGS="$save_CFLAGS"
5488
5489 fi
5490
5491   compiler_o_lo=$lt_cv_compiler_o_lo
5492   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5493 echo "${ECHO_T}$compiler_o_lo" >&6
5494 else
5495   compiler_o_lo=no
5496 fi
5497
5498 # Check to see if we can do hard links to lock some files if needed
5499 hard_links="nottested"
5500 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5501   # do not overwrite the value of need_locks provided by the user
5502   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5503 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5504   hard_links=yes
5505   $rm conftest*
5506   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5507   touch conftest.a
5508   ln conftest.a conftest.b 2>&5 || hard_links=no
5509   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5510   echo "$as_me:$LINENO: result: $hard_links" >&5
5511 echo "${ECHO_T}$hard_links" >&6
5512   if test "$hard_links" = no; then
5513     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5514 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5515     need_locks=warn
5516   fi
5517 else
5518   need_locks=no
5519 fi
5520
5521 if test "$GCC" = yes; then
5522   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5523   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5524 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5525   echo "int some_variable = 0;" > conftest.$ac_ext
5526   save_CFLAGS="$CFLAGS"
5527   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5528   compiler_rtti_exceptions=no
5529   cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h.  */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h.  */
5535
5536 int
5537 main ()
5538 {
5539 int some_variable = 0;
5540   ;
5541   return 0;
5542 }
5543 _ACEOF
5544 rm -f conftest.$ac_objext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546   (eval $ac_compile) 2>conftest.er1
5547   ac_status=$?
5548   grep -v '^ *+' conftest.er1 >conftest.err
5549   rm -f conftest.er1
5550   cat conftest.err >&5
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); } &&
5553          { ac_try='test -z "$ac_c_werror_flag"
5554                          || test ! -s conftest.err'
5555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556   (eval $ac_try) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; } &&
5560          { ac_try='test -s conftest.$ac_objext'
5561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562   (eval $ac_try) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); }; }; then
5566       # The compiler can only warn and ignore the option if not recognized
5567     # So say no if there are warnings
5568     if test -s conftest.err; then
5569       compiler_rtti_exceptions=no
5570     else
5571       compiler_rtti_exceptions=yes
5572     fi
5573
5574 else
5575   echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5577
5578 fi
5579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5580   CFLAGS="$save_CFLAGS"
5581   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5582 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5583
5584   if test "$compiler_rtti_exceptions" = "yes"; then
5585     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5586   else
5587     no_builtin_flag=' -fno-builtin'
5588   fi
5589 fi
5590
5591 # See if the linker supports building shared libraries.
5592 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5593 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5594
5595 allow_undefined_flag=
5596 no_undefined_flag=
5597 need_lib_prefix=unknown
5598 need_version=unknown
5599 # when you set need_version to no, make sure it does not cause -set_version
5600 # flags to be left without arguments
5601 archive_cmds=
5602 archive_expsym_cmds=
5603 old_archive_from_new_cmds=
5604 old_archive_from_expsyms_cmds=
5605 export_dynamic_flag_spec=
5606 whole_archive_flag_spec=
5607 thread_safe_flag_spec=
5608 hardcode_into_libs=no
5609 hardcode_libdir_flag_spec=
5610 hardcode_libdir_separator=
5611 hardcode_direct=no
5612 hardcode_minus_L=no
5613 hardcode_shlibpath_var=unsupported
5614 runpath_var=
5615 link_all_deplibs=unknown
5616 always_export_symbols=no
5617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5618 # include_expsyms should be a list of space-separated symbols to be *always*
5619 # included in the symbol list
5620 include_expsyms=
5621 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5623 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5624 # as well as any symbol that contains `d'.
5625 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5627 # platforms (ab)use it in PIC code, but their linkers get confused if
5628 # the symbol is explicitly referenced.  Since portable code cannot
5629 # rely on this symbol name, it's probably fine to never include it in
5630 # preloaded symbol tables.
5631 extract_expsyms_cmds=
5632
5633 case $host_os in
5634 cygwin* | mingw* | pw32*)
5635   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5636   # When not using gcc, we currently assume that we are using
5637   # Microsoft Visual C++.
5638   if test "$GCC" != yes; then
5639     with_gnu_ld=no
5640   fi
5641   ;;
5642 openbsd*)
5643   with_gnu_ld=no
5644   ;;
5645 esac
5646
5647 ld_shlibs=yes
5648 if test "$with_gnu_ld" = yes; then
5649   # If archive_cmds runs LD, not CC, wlarc should be empty
5650   wlarc='${wl}'
5651
5652   # See if GNU ld supports shared libraries.
5653   case $host_os in
5654   aix3* | aix4* | aix5*)
5655     # On AIX, the GNU linker is very broken
5656     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5657     ld_shlibs=no
5658     cat <<EOF 1>&2
5659
5660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5661 *** to be unable to reliably create shared libraries on AIX.
5662 *** Therefore, libtool is disabling shared libraries support.  If you
5663 *** really care for shared libraries, you may want to modify your PATH
5664 *** so that a non-GNU linker is found, and then restart.
5665
5666 EOF
5667     ;;
5668
5669   amigaos*)
5670     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)'
5671     hardcode_libdir_flag_spec='-L$libdir'
5672     hardcode_minus_L=yes
5673
5674     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5675     # that the semantics of dynamic libraries on AmigaOS, at least up
5676     # to version 4, is to share data among multiple programs linked
5677     # with the same dynamic library.  Since this doesn't match the
5678     # behavior of shared libraries on other platforms, we can use
5679     # them.
5680     ld_shlibs=no
5681     ;;
5682
5683   beos*)
5684     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5685       allow_undefined_flag=unsupported
5686       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5687       # support --undefined.  This deserves some investigation.  FIXME
5688       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5689     else
5690       ld_shlibs=no
5691     fi
5692     ;;
5693
5694   cygwin* | mingw* | pw32*)
5695     # hardcode_libdir_flag_spec is actually meaningless, as there is
5696     # no search path for DLLs.
5697     hardcode_libdir_flag_spec='-L$libdir'
5698     allow_undefined_flag=unsupported
5699     always_export_symbols=yes
5700
5701     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5702       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5703       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5704       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5705       else $CC -o impgen impgen.c ; fi)~
5706       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5707
5708     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5709
5710     # cygwin and mingw dlls have different entry points and sets of symbols
5711     # to exclude.
5712     # FIXME: what about values for MSVC?
5713     dll_entry=__cygwin_dll_entry@12
5714     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5715     case $host_os in
5716     mingw*)
5717       # mingw values
5718       dll_entry=_DllMainCRTStartup@12
5719       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5720       ;;
5721     esac
5722
5723     # mingw and cygwin differ, and it's simplest to just exclude the union
5724     # of the two symbol sets.
5725     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5726
5727     # recent cygwin and mingw systems supply a stub DllMain which the user
5728     # can override, but on older systems we have to supply one (in ltdll.c)
5729     if test "x$lt_cv_need_dllmain" = "xyes"; then
5730       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5731       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~
5732         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5733     else
5734       ltdll_obj=
5735       ltdll_cmds=
5736     fi
5737
5738     # Extract the symbol export list from an `--export-all' def file,
5739     # then regenerate the def file from the symbol export list, so that
5740     # the compiled dll only exports the symbol export list.
5741     # Be careful not to strip the DATA tag left be newer dlltools.
5742     export_symbols_cmds="$ltdll_cmds"'
5743       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5744       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5745
5746     # If the export-symbols file already is a .def file (1st line
5747     # is EXPORTS), use it as is.
5748     # If DATA tags from a recent dlltool are present, honour them!
5749     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5750         cp $export_symbols $output_objdir/$soname-def;
5751       else
5752         echo EXPORTS > $output_objdir/$soname-def;
5753         _lt_hint=1;
5754         cat $export_symbols | while read symbol; do
5755          set dummy \$symbol;
5756          case \$# in
5757            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5758            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5759            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5760          esac;
5761          _lt_hint=`expr 1 + \$_lt_hint`;
5762         done;
5763       fi~
5764       '"$ltdll_cmds"'
5765       $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~
5766       $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~
5767       $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~
5768       $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~
5769       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5770     ;;
5771
5772   netbsd*)
5773     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5774       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5775       wlarc=
5776     else
5777       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5778       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5779     fi
5780     ;;
5781
5782   solaris* | sysv5*)
5783     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5784       ld_shlibs=no
5785       cat <<EOF 1>&2
5786
5787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5788 *** create shared libraries on Solaris systems.  Therefore, libtool
5789 *** is disabling shared libraries support.  We urge you to upgrade GNU
5790 *** binutils to release 2.9.1 or newer.  Another option is to modify
5791 *** your PATH or compiler configuration so that the native linker is
5792 *** used, and then restart.
5793
5794 EOF
5795     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5796       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5797       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5798     else
5799       ld_shlibs=no
5800     fi
5801     ;;
5802
5803   sunos4*)
5804     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5805     wlarc=
5806     hardcode_direct=yes
5807     hardcode_shlibpath_var=no
5808     ;;
5809
5810   linux*)
5811     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5812       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5813       supports_anon_versioning=no
5814       case `$LD -v 2>/dev/null` in
5815         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5816         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5817         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5818         *\ 2.11.*) ;; # other 2.11 versions
5819         *) supports_anon_versioning=yes ;;
5820       esac
5821       if test $supports_anon_versioning = yes; then
5822         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5824 $echo "local: *; };" >> $output_objdir/$libname.ver~
5825         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5826       else
5827         $archive_expsym_cmds="$archive_cmds"
5828       fi
5829     else
5830       ld_shlibs=no
5831     fi
5832     ;;
5833
5834   *)
5835     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5836       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5837       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5838     else
5839       ld_shlibs=no
5840     fi
5841     ;;
5842   esac
5843
5844   if test "$ld_shlibs" = yes; then
5845     runpath_var=LD_RUN_PATH
5846     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5847     export_dynamic_flag_spec='${wl}--export-dynamic'
5848     case $host_os in
5849     cygwin* | mingw* | pw32*)
5850       # dlltool doesn't understand --whole-archive et. al.
5851       whole_archive_flag_spec=
5852       ;;
5853     *)
5854       # ancient GNU ld didn't support --whole-archive et. al.
5855       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5856         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5857       else
5858         whole_archive_flag_spec=
5859       fi
5860       ;;
5861     esac
5862   fi
5863 else
5864   # PORTME fill in a description of your system's linker (not GNU ld)
5865   case $host_os in
5866   aix3*)
5867     allow_undefined_flag=unsupported
5868     always_export_symbols=yes
5869     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'
5870     # Note: this linker hardcodes the directories in LIBPATH if there
5871     # are no directories specified by -L.
5872     hardcode_minus_L=yes
5873     if test "$GCC" = yes && test -z "$link_static_flag"; then
5874       # Neither direct hardcoding nor static linking is supported with a
5875       # broken collect2.
5876       hardcode_direct=unsupported
5877     fi
5878     ;;
5879
5880   aix4* | aix5*)
5881     if test "$host_cpu" = ia64; then
5882       # On IA64, the linker does run time linking by default, so we don't
5883       # have to do anything special.
5884       aix_use_runtimelinking=no
5885       exp_sym_flag='-Bexport'
5886       no_entry_flag=""
5887     else
5888       aix_use_runtimelinking=no
5889
5890       # Test if we are trying to use run time linking or normal
5891       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5892       # need to do runtime linking.
5893       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5894         for ld_flag in $LDFLAGS; do
5895           case $ld_flag in
5896           *-brtl*)
5897             aix_use_runtimelinking=yes
5898             break
5899           ;;
5900           esac
5901         done
5902       esac
5903
5904       exp_sym_flag='-bexport'
5905       no_entry_flag='-bnoentry'
5906     fi
5907
5908     # When large executables or shared objects are built, AIX ld can
5909     # have problems creating the table of contents.  If linking a library
5910     # or program results in "error TOC overflow" add -mminimal-toc to
5911     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5912     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5913
5914     hardcode_direct=yes
5915     archive_cmds=''
5916     hardcode_libdir_separator=':'
5917     if test "$GCC" = yes; then
5918       case $host_os in aix4.[012]|aix4.[012].*)
5919         collect2name=`${CC} -print-prog-name=collect2`
5920         if test -f "$collect2name" && \
5921           strings "$collect2name" | grep resolve_lib_name >/dev/null
5922         then
5923           # We have reworked collect2
5924           hardcode_direct=yes
5925         else
5926           # We have old collect2
5927           hardcode_direct=unsupported
5928           # It fails to find uninstalled libraries when the uninstalled
5929           # path is not listed in the libpath.  Setting hardcode_minus_L
5930           # to unsupported forces relinking
5931           hardcode_minus_L=yes
5932           hardcode_libdir_flag_spec='-L$libdir'
5933           hardcode_libdir_separator=
5934         fi
5935       esac
5936
5937       shared_flag='-shared'
5938     else
5939       # not using gcc
5940       if test "$host_cpu" = ia64; then
5941         shared_flag='${wl}-G'
5942       else
5943         if test "$aix_use_runtimelinking" = yes; then
5944           shared_flag='${wl}-G'
5945         else
5946           shared_flag='${wl}-bM:SRE'
5947         fi
5948       fi
5949     fi
5950
5951     # It seems that -bexpall can do strange things, so it is better to
5952     # generate a list of symbols to export.
5953     always_export_symbols=yes
5954     if test "$aix_use_runtimelinking" = yes; then
5955       # Warning - without using the other runtime loading flags (-brtl),
5956       # -berok will link without error, but may produce a broken library.
5957       allow_undefined_flag='-berok'
5958       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5959       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"
5960     else
5961       if test "$host_cpu" = ia64; then
5962         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5963         allow_undefined_flag="-z nodefs"
5964         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"
5965       else
5966         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5967         # Warning - without using the other run time loading flags,
5968         # -berok will link without error, but may produce a broken library.
5969         allow_undefined_flag='${wl}-berok'
5970         # This is a bit strange, but is similar to how AIX traditionally builds
5971         # it's shared libraries.
5972         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'
5973       fi
5974     fi
5975     ;;
5976
5977   amigaos*)
5978     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)'
5979     hardcode_libdir_flag_spec='-L$libdir'
5980     hardcode_minus_L=yes
5981     # see comment about different semantics on the GNU ld section
5982     ld_shlibs=no
5983     ;;
5984
5985   cygwin* | mingw* | pw32*)
5986     # When not using gcc, we currently assume that we are using
5987     # Microsoft Visual C++.
5988     # hardcode_libdir_flag_spec is actually meaningless, as there is
5989     # no search path for DLLs.
5990     hardcode_libdir_flag_spec=' '
5991     allow_undefined_flag=unsupported
5992     # Tell ltmain to make .lib files, not .a files.
5993     libext=lib
5994     # FIXME: Setting linknames here is a bad hack.
5995     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5996     # The linker will automatically build a .lib file if we build a DLL.
5997     old_archive_from_new_cmds='true'
5998     # FIXME: Should let the user specify the lib program.
5999     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6000     fix_srcfile_path='`cygpath -w "$srcfile"`'
6001     ;;
6002
6003   darwin* | rhapsody*)
6004     case "$host_os" in
6005     rhapsody* | darwin1.[012])
6006       allow_undefined_flag='-undefined suppress'
6007       ;;
6008     *) # Darwin 1.3 on
6009       allow_undefined_flag='-flat_namespace -undefined suppress'
6010       ;;
6011     esac
6012     # FIXME: Relying on posixy $() will cause problems for
6013     #        cross-compilation, but unfortunately the echo tests do not
6014     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6015     #        `"' quotes if we put them in here... so don't!
6016     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)'
6017     # We need to add '_' to the symbols in $export_symbols first
6018     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6019     hardcode_direct=yes
6020     hardcode_shlibpath_var=no
6021     whole_archive_flag_spec='-all_load $convenience'
6022     ;;
6023
6024   freebsd1*)
6025     ld_shlibs=no
6026     ;;
6027
6028   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6029   # support.  Future versions do this automatically, but an explicit c++rt0.o
6030   # does not break anything, and helps significantly (at the cost of a little
6031   # extra space).
6032   freebsd2.2*)
6033     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6034     hardcode_libdir_flag_spec='-R$libdir'
6035     hardcode_direct=yes
6036     hardcode_shlibpath_var=no
6037     ;;
6038
6039   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6040   freebsd2*)
6041     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6042     hardcode_direct=yes
6043     hardcode_minus_L=yes
6044     hardcode_shlibpath_var=no
6045     ;;
6046
6047   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6048   freebsd*)
6049     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6050     hardcode_libdir_flag_spec='-R$libdir'
6051     hardcode_direct=yes
6052     hardcode_shlibpath_var=no
6053     ;;
6054
6055   hpux9* | hpux10* | hpux11*)
6056     case $host_os in
6057     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' ;;
6058     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6059     esac
6060     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6061     hardcode_libdir_separator=:
6062     hardcode_direct=yes
6063     hardcode_minus_L=yes # Not in the search PATH, but as the default
6064                          # location of the library.
6065     export_dynamic_flag_spec='${wl}-E'
6066     ;;
6067
6068   irix5* | irix6* | nonstopux*)
6069     if test "$GCC" = yes; then
6070       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'
6071       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6072     else
6073       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'
6074       hardcode_libdir_flag_spec='-rpath $libdir'
6075     fi
6076     hardcode_libdir_separator=:
6077     link_all_deplibs=yes
6078     ;;
6079
6080   netbsd*)
6081     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6082       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6083     else
6084       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6085     fi
6086     hardcode_libdir_flag_spec='-R$libdir'
6087     hardcode_direct=yes
6088     hardcode_shlibpath_var=no
6089     ;;
6090
6091   newsos6)
6092     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6093     hardcode_direct=yes
6094     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6095     hardcode_libdir_separator=:
6096     hardcode_shlibpath_var=no
6097     ;;
6098
6099   openbsd*)
6100     hardcode_direct=yes
6101     hardcode_shlibpath_var=no
6102     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6103       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6104       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6105       export_dynamic_flag_spec='${wl}-E'
6106     else
6107       case "$host_os" in
6108       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6109         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6110         hardcode_libdir_flag_spec='-R$libdir'
6111         ;;
6112       *)
6113         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6114         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6115         ;;
6116       esac
6117     fi
6118     ;;
6119
6120   os2*)
6121     hardcode_libdir_flag_spec='-L$libdir'
6122     hardcode_minus_L=yes
6123     allow_undefined_flag=unsupported
6124     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'
6125     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6126     ;;
6127
6128   osf3*)
6129     if test "$GCC" = yes; then
6130       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6131       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'
6132     else
6133       allow_undefined_flag=' -expect_unresolved \*'
6134       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'
6135     fi
6136     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6137     hardcode_libdir_separator=:
6138     ;;
6139
6140   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6141     if test "$GCC" = yes; then
6142       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6143       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'
6144       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6145     else
6146       allow_undefined_flag=' -expect_unresolved \*'
6147       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'
6148       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6149       $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'
6150
6151       #Both c and cxx compiler support -rpath directly
6152       hardcode_libdir_flag_spec='-rpath $libdir'
6153     fi
6154     hardcode_libdir_separator=:
6155     ;;
6156
6157   sco3.2v5*)
6158     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6159     hardcode_shlibpath_var=no
6160     runpath_var=LD_RUN_PATH
6161     hardcode_runpath_var=yes
6162     export_dynamic_flag_spec='${wl}-Bexport'
6163     ;;
6164
6165   solaris*)
6166     # gcc --version < 3.0 without binutils cannot create self contained
6167     # shared libraries reliably, requiring libgcc.a to resolve some of
6168     # the object symbols generated in some cases.  Libraries that use
6169     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6170     # a copy of libgcc.a into every shared library to guarantee resolving
6171     # such symbols causes other problems:  According to Tim Van Holder
6172     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6173     # (to the application) exception stack for one thing.
6174     no_undefined_flag=' -z defs'
6175     if test "$GCC" = yes; then
6176       case `$CC --version 2>/dev/null` in
6177       [12].*)
6178         cat <<EOF 1>&2
6179
6180 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6181 *** create self contained shared libraries on Solaris systems, without
6182 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6183 *** -no-undefined support, which will at least allow you to build shared
6184 *** libraries.  However, you may find that when you link such libraries
6185 *** into an application without using GCC, you have to manually add
6186 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6187 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6188 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6189
6190 EOF
6191         no_undefined_flag=
6192         ;;
6193       esac
6194     fi
6195     # $CC -shared without GNU ld will not create a library from C++
6196     # object files and a static libstdc++, better avoid it by now
6197     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6198     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6199                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6200     hardcode_libdir_flag_spec='-R$libdir'
6201     hardcode_shlibpath_var=no
6202     case $host_os in
6203     solaris2.[0-5] | solaris2.[0-5].*) ;;
6204     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6205       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6206     esac
6207     link_all_deplibs=yes
6208     ;;
6209
6210   sunos4*)
6211     if test "x$host_vendor" = xsequent; then
6212       # Use $CC to link under sequent, because it throws in some extra .o
6213       # files that make .init and .fini sections work.
6214       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6215     else
6216       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6217     fi
6218     hardcode_libdir_flag_spec='-L$libdir'
6219     hardcode_direct=yes
6220     hardcode_minus_L=yes
6221     hardcode_shlibpath_var=no
6222     ;;
6223
6224   sysv4)
6225     case $host_vendor in
6226       sni)
6227         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6228         hardcode_direct=yes # is this really true???
6229         ;;
6230       siemens)
6231         ## LD is ld it makes a PLAMLIB
6232         ## CC just makes a GrossModule.
6233         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6234         reload_cmds='$CC -r -o $output$reload_objs'
6235         hardcode_direct=no
6236         ;;
6237       motorola)
6238         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6239         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6240         ;;
6241     esac
6242     runpath_var='LD_RUN_PATH'
6243     hardcode_shlibpath_var=no
6244     ;;
6245
6246   sysv4.3*)
6247     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6248     hardcode_shlibpath_var=no
6249     export_dynamic_flag_spec='-Bexport'
6250     ;;
6251
6252   sysv5*)
6253     no_undefined_flag=' -z text'
6254     # $CC -shared without GNU ld will not create a library from C++
6255     # object files and a static libstdc++, better avoid it by now
6256     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6257     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6258                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6259     hardcode_libdir_flag_spec=
6260     hardcode_shlibpath_var=no
6261     runpath_var='LD_RUN_PATH'
6262     ;;
6263
6264   uts4*)
6265     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6266     hardcode_libdir_flag_spec='-L$libdir'
6267     hardcode_shlibpath_var=no
6268     ;;
6269
6270   dgux*)
6271     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6272     hardcode_libdir_flag_spec='-L$libdir'
6273     hardcode_shlibpath_var=no
6274     ;;
6275
6276   sysv4*MP*)
6277     if test -d /usr/nec; then
6278       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6279       hardcode_shlibpath_var=no
6280       runpath_var=LD_RUN_PATH
6281       hardcode_runpath_var=yes
6282       ld_shlibs=yes
6283     fi
6284     ;;
6285
6286   sysv4.2uw2*)
6287     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6288     hardcode_direct=yes
6289     hardcode_minus_L=no
6290     hardcode_shlibpath_var=no
6291     hardcode_runpath_var=yes
6292     runpath_var=LD_RUN_PATH
6293     ;;
6294
6295   sysv5uw7* | unixware7*)
6296     no_undefined_flag='${wl}-z ${wl}text'
6297     if test "$GCC" = yes; then
6298       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6299     else
6300       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6301     fi
6302     runpath_var='LD_RUN_PATH'
6303     hardcode_shlibpath_var=no
6304     ;;
6305
6306   *)
6307     ld_shlibs=no
6308     ;;
6309   esac
6310 fi
6311 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6312 echo "${ECHO_T}$ld_shlibs" >&6
6313 test "$ld_shlibs" = no && can_build_shared=no
6314
6315 # Check hardcoding attributes.
6316 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6317 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6318 hardcode_action=
6319 if test -n "$hardcode_libdir_flag_spec" || \
6320    test -n "$runpath_var"; then
6321
6322   # We can hardcode non-existant directories.
6323   if test "$hardcode_direct" != no &&
6324      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6325      # have to relink, otherwise we might link with an installed library
6326      # when we should be linking with a yet-to-be-installed one
6327      ## test "$hardcode_shlibpath_var" != no &&
6328      test "$hardcode_minus_L" != no; then
6329     # Linking always hardcodes the temporary library directory.
6330     hardcode_action=relink
6331   else
6332     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6333     hardcode_action=immediate
6334   fi
6335 else
6336   # We cannot hardcode anything, or else we can only hardcode existing
6337   # directories.
6338   hardcode_action=unsupported
6339 fi
6340 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6341 echo "${ECHO_T}$hardcode_action" >&6
6342
6343 striplib=
6344 old_striplib=
6345 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6346 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6347 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6348   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6349   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6350   echo "$as_me:$LINENO: result: yes" >&5
6351 echo "${ECHO_T}yes" >&6
6352 else
6353   echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6
6355 fi
6356
6357 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6358 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6359
6360 # PORTME Fill in your ld.so characteristics
6361 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6362 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6363 library_names_spec=
6364 libname_spec='lib$name'
6365 soname_spec=
6366 postinstall_cmds=
6367 postuninstall_cmds=
6368 finish_cmds=
6369 finish_eval=
6370 shlibpath_var=
6371 shlibpath_overrides_runpath=unknown
6372 version_type=none
6373 dynamic_linker="$host_os ld.so"
6374 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6375 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6376
6377 case $host_os in
6378 aix3*)
6379   version_type=linux
6380   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6381   shlibpath_var=LIBPATH
6382
6383   # AIX has no versioning support, so we append a major version to the name.
6384   soname_spec='${libname}${release}.so$major'
6385   ;;
6386
6387 aix4* | aix5*)
6388   version_type=linux
6389   need_lib_prefix=no
6390   need_version=no
6391   hardcode_into_libs=yes
6392   if test "$host_cpu" = ia64; then
6393     # AIX 5 supports IA64
6394     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6395     shlibpath_var=LD_LIBRARY_PATH
6396   else
6397     # With GCC up to 2.95.x, collect2 would create an import file
6398     # for dependence libraries.  The import file would start with
6399     # the line `#! .'.  This would cause the generated library to
6400     # depend on `.', always an invalid library.  This was fixed in
6401     # development snapshots of GCC prior to 3.0.
6402     case $host_os in
6403       aix4 | aix4.[01] | aix4.[01].*)
6404         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6405              echo ' yes '
6406              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6407           :
6408         else
6409           can_build_shared=no
6410         fi
6411         ;;
6412     esac
6413     # AIX (on Power*) has no versioning support, so currently we can
6414     # not hardcode correct soname into executable. Probably we can
6415     # add versioning support to collect2, so additional links can
6416     # be useful in future.
6417     if test "$aix_use_runtimelinking" = yes; then
6418       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6419       # instead of lib<name>.a to let people know that these are not
6420       # typical AIX shared libraries.
6421       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6422     else
6423       # We preserve .a as extension for shared libraries through AIX4.2
6424       # and later when we are not doing run time linking.
6425       library_names_spec='${libname}${release}.a $libname.a'
6426       soname_spec='${libname}${release}.so$major'
6427     fi
6428     shlibpath_var=LIBPATH
6429   fi
6430   hardcode_into_libs=yes
6431   ;;
6432
6433 amigaos*)
6434   library_names_spec='$libname.ixlibrary $libname.a'
6435   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6436   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'
6437   ;;
6438
6439 beos*)
6440   library_names_spec='${libname}.so'
6441   dynamic_linker="$host_os ld.so"
6442   shlibpath_var=LIBRARY_PATH
6443   ;;
6444
6445 bsdi4*)
6446   version_type=linux
6447   need_version=no
6448   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6449   soname_spec='${libname}${release}.so$major'
6450   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6451   shlibpath_var=LD_LIBRARY_PATH
6452   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6453   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6454   export_dynamic_flag_spec=-rdynamic
6455   # the default ld.so.conf also contains /usr/contrib/lib and
6456   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6457   # libtool to hard-code these into programs
6458   ;;
6459
6460 cygwin* | mingw* | pw32*)
6461   version_type=windows
6462   need_version=no
6463   need_lib_prefix=no
6464   case $GCC,$host_os in
6465   yes,cygwin*)
6466     library_names_spec='$libname.dll.a'
6467     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6468     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6469       dldir=$destdir/`dirname \$dlpath`~
6470       test -d \$dldir || mkdir -p \$dldir~
6471       $install_prog .libs/$dlname \$dldir/$dlname'
6472     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6473       dlpath=$dir/\$dldll~
6474        $rm \$dlpath'
6475     ;;
6476   yes,mingw*)
6477     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6478     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6479     ;;
6480   yes,pw32*)
6481     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6482     ;;
6483   *)
6484     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6485     ;;
6486   esac
6487   dynamic_linker='Win32 ld.exe'
6488   # FIXME: first we should search . and the directory the executable is in
6489   shlibpath_var=PATH
6490   ;;
6491
6492 darwin* | rhapsody*)
6493   dynamic_linker="$host_os dyld"
6494   version_type=darwin
6495   need_lib_prefix=no
6496   need_version=no
6497   # FIXME: Relying on posixy $() will cause problems for
6498   #        cross-compilation, but unfortunately the echo tests do not
6499   #        yet detect zsh echo's removal of \ escapes.
6500   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)'
6501   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6502   shlibpath_overrides_runpath=yes
6503   shlibpath_var=DYLD_LIBRARY_PATH
6504   ;;
6505
6506 freebsd1*)
6507   dynamic_linker=no
6508   ;;
6509
6510 freebsd*)
6511   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6512   version_type=freebsd-$objformat
6513   case $version_type in
6514     freebsd-elf*)
6515       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6516       need_version=no
6517       need_lib_prefix=no
6518       ;;
6519     freebsd-*)
6520       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6521       need_version=yes
6522       ;;
6523   esac
6524   shlibpath_var=LD_LIBRARY_PATH
6525   case $host_os in
6526   freebsd2*)
6527     shlibpath_overrides_runpath=yes
6528     ;;
6529   *)
6530     shlibpath_overrides_runpath=no
6531     hardcode_into_libs=yes
6532     ;;
6533   esac
6534   ;;
6535
6536 gnu*)
6537   version_type=linux
6538   need_lib_prefix=no
6539   need_version=no
6540   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6541   soname_spec='${libname}${release}.so$major'
6542   shlibpath_var=LD_LIBRARY_PATH
6543   hardcode_into_libs=yes
6544   ;;
6545
6546 hpux9* | hpux10* | hpux11*)
6547   # Give a soname corresponding to the major version so that dld.sl refuses to
6548   # link against other versions.
6549   dynamic_linker="$host_os dld.sl"
6550   version_type=sunos
6551   need_lib_prefix=no
6552   need_version=no
6553   shlibpath_var=SHLIB_PATH
6554   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6555   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6556   soname_spec='${libname}${release}.sl$major'
6557   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6558   postinstall_cmds='chmod 555 $lib'
6559   ;;
6560
6561 irix5* | irix6* | nonstopux*)
6562   case $host_os in
6563     nonstopux*) version_type=nonstopux ;;
6564     *)          version_type=irix ;;
6565   esac
6566   need_lib_prefix=no
6567   need_version=no
6568   soname_spec='${libname}${release}.so$major'
6569   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6570   case $host_os in
6571   irix5* | nonstopux*)
6572     libsuff= shlibsuff=
6573     ;;
6574   *)
6575     case $LD in # libtool.m4 will add one of these switches to LD
6576     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6577     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6578     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6579     *) libsuff= shlibsuff= libmagic=never-match;;
6580     esac
6581     ;;
6582   esac
6583   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6584   shlibpath_overrides_runpath=no
6585   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6586   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6587   ;;
6588
6589 # No shared lib support for Linux oldld, aout, or coff.
6590 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6591   dynamic_linker=no
6592   ;;
6593
6594 # This must be Linux ELF.
6595 linux-gnu*)
6596   version_type=linux
6597   need_lib_prefix=no
6598   need_version=no
6599   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6600   soname_spec='${libname}${release}.so$major'
6601   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6602   shlibpath_var=LD_LIBRARY_PATH
6603   shlibpath_overrides_runpath=no
6604   # This implies no fast_install, which is unacceptable.
6605   # Some rework will be needed to allow for fast_install
6606   # before this can be enabled.
6607   hardcode_into_libs=yes
6608
6609   case $host_cpu:$lt_cv_cc_64bit_output in
6610   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6611     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6612     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6613     ;;
6614   esac
6615
6616   # We used to test for /lib/ld.so.1 and disable shared libraries on
6617   # powerpc, because MkLinux only supported shared libraries with the
6618   # GNU dynamic linker.  Since this was broken with cross compilers,
6619   # most powerpc-linux boxes support dynamic linking these days and
6620   # people can always --disable-shared, the test was removed, and we
6621   # assume the GNU/Linux dynamic linker is in use.
6622   dynamic_linker='GNU/Linux ld.so'
6623
6624   # Find out which ABI we are using (multilib Linux x86_64 hack).
6625   libsuff=
6626   case "$host_cpu" in
6627   x86_64*)
6628     echo '#line 6628 "configure"' > conftest.$ac_ext
6629     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630   (eval $ac_compile) 2>&5
6631   ac_status=$?
6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633   (exit $ac_status); }; then
6634       case `/usr/bin/file conftest.$ac_objext` in
6635       *64-bit*)
6636         libsuff=64
6637         ;;
6638       esac
6639     fi
6640     rm -rf conftest*
6641     ;;
6642   *)
6643     ;;
6644   esac
6645   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6646   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6647   ;;
6648
6649 netbsd*)
6650   version_type=sunos
6651   need_lib_prefix=no
6652   need_version=no
6653   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6654     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6655     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6656     dynamic_linker='NetBSD (a.out) ld.so'
6657   else
6658     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6659     soname_spec='${libname}${release}.so$major'
6660     dynamic_linker='NetBSD ld.elf_so'
6661   fi
6662   shlibpath_var=LD_LIBRARY_PATH
6663   shlibpath_overrides_runpath=yes
6664   hardcode_into_libs=yes
6665   ;;
6666
6667 newsos6)
6668   version_type=linux
6669   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6670   shlibpath_var=LD_LIBRARY_PATH
6671   shlibpath_overrides_runpath=yes
6672   ;;
6673
6674 openbsd*)
6675   version_type=sunos
6676   need_lib_prefix=no
6677   need_version=no
6678   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6679     case "$host_os" in
6680     openbsd2.[89] | openbsd2.[89].*)
6681       shlibpath_overrides_runpath=no
6682       ;;
6683     *)
6684       shlibpath_overrides_runpath=yes
6685       ;;
6686     esac
6687   else
6688     shlibpath_overrides_runpath=yes
6689   fi
6690   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6691   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6692   shlibpath_var=LD_LIBRARY_PATH
6693   ;;
6694
6695 os2*)
6696   libname_spec='$name'
6697   need_lib_prefix=no
6698   library_names_spec='$libname.dll $libname.a'
6699   dynamic_linker='OS/2 ld.exe'
6700   shlibpath_var=LIBPATH
6701   ;;
6702
6703 osf3* | osf4* | osf5*)
6704   version_type=osf
6705   need_version=no
6706   soname_spec='${libname}${release}.so$major'
6707   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6708   shlibpath_var=LD_LIBRARY_PATH
6709   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6710   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6711   hardcode_into_libs=yes
6712   ;;
6713
6714 sco3.2v5*)
6715   version_type=osf
6716   soname_spec='${libname}${release}.so$major'
6717   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6718   shlibpath_var=LD_LIBRARY_PATH
6719   ;;
6720
6721 solaris*)
6722   version_type=linux
6723   need_lib_prefix=no
6724   need_version=no
6725   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6726   soname_spec='${libname}${release}.so$major'
6727   shlibpath_var=LD_LIBRARY_PATH
6728   shlibpath_overrides_runpath=yes
6729   hardcode_into_libs=yes
6730   # ldd complains unless libraries are executable
6731   postinstall_cmds='chmod +x $lib'
6732   ;;
6733
6734 sunos4*)
6735   version_type=sunos
6736   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6737   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6738   shlibpath_var=LD_LIBRARY_PATH
6739   shlibpath_overrides_runpath=yes
6740   if test "$with_gnu_ld" = yes; then
6741     need_lib_prefix=no
6742   fi
6743   need_version=yes
6744   ;;
6745
6746 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6747   version_type=linux
6748   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6749   soname_spec='${libname}${release}.so$major'
6750   shlibpath_var=LD_LIBRARY_PATH
6751   case $host_vendor in
6752     sni)
6753       shlibpath_overrides_runpath=no
6754       need_lib_prefix=no
6755       export_dynamic_flag_spec='${wl}-Blargedynsym'
6756       runpath_var=LD_RUN_PATH
6757       ;;
6758     siemens)
6759       need_lib_prefix=no
6760       ;;
6761     motorola)
6762       need_lib_prefix=no
6763       need_version=no
6764       shlibpath_overrides_runpath=no
6765       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6766       ;;
6767   esac
6768   ;;
6769
6770 uts4*)
6771   version_type=linux
6772   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6773   soname_spec='${libname}${release}.so$major'
6774   shlibpath_var=LD_LIBRARY_PATH
6775   ;;
6776
6777 dgux*)
6778   version_type=linux
6779   need_lib_prefix=no
6780   need_version=no
6781   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6782   soname_spec='${libname}${release}.so$major'
6783   shlibpath_var=LD_LIBRARY_PATH
6784   ;;
6785
6786 sysv4*MP*)
6787   if test -d /usr/nec ;then
6788     version_type=linux
6789     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6790     soname_spec='$libname.so.$major'
6791     shlibpath_var=LD_LIBRARY_PATH
6792   fi
6793   ;;
6794
6795 *)
6796   dynamic_linker=no
6797   ;;
6798 esac
6799 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6800 echo "${ECHO_T}$dynamic_linker" >&6
6801 test "$dynamic_linker" = no && can_build_shared=no
6802
6803 # Report the final consequences.
6804 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6805 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6806 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6807 echo "${ECHO_T}$can_build_shared" >&6
6808
6809 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6810 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6811 test "$can_build_shared" = "no" && enable_shared=no
6812
6813 # On AIX, shared libraries and static libraries use the same namespace, and
6814 # are all built from PIC.
6815 case "$host_os" in
6816 aix3*)
6817   test "$enable_shared" = yes && enable_static=no
6818   if test -n "$RANLIB"; then
6819     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6820     postinstall_cmds='$RANLIB $lib'
6821   fi
6822   ;;
6823
6824 aix4*)
6825   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6826     test "$enable_shared" = yes && enable_static=no
6827   fi
6828   ;;
6829 esac
6830 echo "$as_me:$LINENO: result: $enable_shared" >&5
6831 echo "${ECHO_T}$enable_shared" >&6
6832
6833 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6834 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6835 # Make sure either enable_shared or enable_static is yes.
6836 test "$enable_shared" = yes || enable_static=yes
6837 echo "$as_me:$LINENO: result: $enable_static" >&5
6838 echo "${ECHO_T}$enable_static" >&6
6839
6840 if test "$hardcode_action" = relink; then
6841   # Fast installation is not supported
6842   enable_fast_install=no
6843 elif test "$shlibpath_overrides_runpath" = yes ||
6844      test "$enable_shared" = no; then
6845   # Fast installation is not necessary
6846   enable_fast_install=needless
6847 fi
6848
6849 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6850 if test "$GCC" = yes; then
6851   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6852 fi
6853
6854 if test "x$enable_dlopen" != xyes; then
6855   enable_dlopen=unknown
6856   enable_dlopen_self=unknown
6857   enable_dlopen_self_static=unknown
6858 else
6859   lt_cv_dlopen=no
6860   lt_cv_dlopen_libs=
6861
6862   case $host_os in
6863   beos*)
6864     lt_cv_dlopen="load_add_on"
6865     lt_cv_dlopen_libs=
6866     lt_cv_dlopen_self=yes
6867     ;;
6868
6869   cygwin* | mingw* | pw32*)
6870     lt_cv_dlopen="LoadLibrary"
6871     lt_cv_dlopen_libs=
6872    ;;
6873
6874   *)
6875     echo "$as_me:$LINENO: checking for shl_load" >&5
6876 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6877 if test "${ac_cv_func_shl_load+set}" = set; then
6878   echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880   cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h.  */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h.  */
6886 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6888 #define shl_load innocuous_shl_load
6889
6890 /* System header to define __stub macros and hopefully few prototypes,
6891     which can conflict with char shl_load (); below.
6892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6893     <limits.h> exists even on freestanding compilers.  */
6894
6895 #ifdef __STDC__
6896 # include <limits.h>
6897 #else
6898 # include <assert.h>
6899 #endif
6900
6901 #undef shl_load
6902
6903 /* Override any gcc2 internal prototype to avoid an error.  */
6904 #ifdef __cplusplus
6905 extern "C"
6906 {
6907 #endif
6908 /* We use char because int might match the return type of a gcc2
6909    builtin and then its argument prototype would still apply.  */
6910 char shl_load ();
6911 /* The GNU C library defines this for functions which it implements
6912     to always fail with ENOSYS.  Some functions are actually named
6913     something starting with __ and the normal name is an alias.  */
6914 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6915 choke me
6916 #else
6917 char (*f) () = shl_load;
6918 #endif
6919 #ifdef __cplusplus
6920 }
6921 #endif
6922
6923 int
6924 main ()
6925 {
6926 return f != shl_load;
6927   ;
6928   return 0;
6929 }
6930 _ACEOF
6931 rm -f conftest.$ac_objext conftest$ac_exeext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933   (eval $ac_link) 2>conftest.er1
6934   ac_status=$?
6935   grep -v '^ *+' conftest.er1 >conftest.err
6936   rm -f conftest.er1
6937   cat conftest.err >&5
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); } &&
6940          { ac_try='test -z "$ac_c_werror_flag"
6941                          || test ! -s conftest.err'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; } &&
6947          { ac_try='test -s conftest$ac_exeext'
6948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949   (eval $ac_try) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); }; }; then
6953   ac_cv_func_shl_load=yes
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 ac_cv_func_shl_load=no
6959 fi
6960 rm -f conftest.err conftest.$ac_objext \
6961       conftest$ac_exeext conftest.$ac_ext
6962 fi
6963 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6964 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6965 if test $ac_cv_func_shl_load = yes; then
6966   lt_cv_dlopen="shl_load"
6967 else
6968   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6969 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6970 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6971   echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973   ac_check_lib_save_LIBS=$LIBS
6974 LIBS="-ldld  $LIBS"
6975 cat >conftest.$ac_ext <<_ACEOF
6976 /* confdefs.h.  */
6977 _ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h.  */
6981
6982 /* Override any gcc2 internal prototype to avoid an error.  */
6983 #ifdef __cplusplus
6984 extern "C"
6985 #endif
6986 /* We use char because int might match the return type of a gcc2
6987    builtin and then its argument prototype would still apply.  */
6988 char shl_load ();
6989 int
6990 main ()
6991 {
6992 shl_load ();
6993   ;
6994   return 0;
6995 }
6996 _ACEOF
6997 rm -f conftest.$ac_objext conftest$ac_exeext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999   (eval $ac_link) 2>conftest.er1
7000   ac_status=$?
7001   grep -v '^ *+' conftest.er1 >conftest.err
7002   rm -f conftest.er1
7003   cat conftest.err >&5
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } &&
7006          { ac_try='test -z "$ac_c_werror_flag"
7007                          || test ! -s conftest.err'
7008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009   (eval $ac_try) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); }; } &&
7013          { ac_try='test -s conftest$ac_exeext'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   ac_cv_lib_dld_shl_load=yes
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 ac_cv_lib_dld_shl_load=no
7025 fi
7026 rm -f conftest.err conftest.$ac_objext \
7027       conftest$ac_exeext conftest.$ac_ext
7028 LIBS=$ac_check_lib_save_LIBS
7029 fi
7030 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7031 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7032 if test $ac_cv_lib_dld_shl_load = yes; then
7033   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7034 else
7035   echo "$as_me:$LINENO: checking for dlopen" >&5
7036 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7037 if test "${ac_cv_func_dlopen+set}" = set; then
7038   echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040   cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7048 #define dlopen innocuous_dlopen
7049
7050 /* System header to define __stub macros and hopefully few prototypes,
7051     which can conflict with char dlopen (); below.
7052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7053     <limits.h> exists even on freestanding compilers.  */
7054
7055 #ifdef __STDC__
7056 # include <limits.h>
7057 #else
7058 # include <assert.h>
7059 #endif
7060
7061 #undef dlopen
7062
7063 /* Override any gcc2 internal prototype to avoid an error.  */
7064 #ifdef __cplusplus
7065 extern "C"
7066 {
7067 #endif
7068 /* We use char because int might match the return type of a gcc2
7069    builtin and then its argument prototype would still apply.  */
7070 char dlopen ();
7071 /* The GNU C library defines this for functions which it implements
7072     to always fail with ENOSYS.  Some functions are actually named
7073     something starting with __ and the normal name is an alias.  */
7074 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7075 choke me
7076 #else
7077 char (*f) () = dlopen;
7078 #endif
7079 #ifdef __cplusplus
7080 }
7081 #endif
7082
7083 int
7084 main ()
7085 {
7086 return f != dlopen;
7087   ;
7088   return 0;
7089 }
7090 _ACEOF
7091 rm -f conftest.$ac_objext conftest$ac_exeext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7093   (eval $ac_link) 2>conftest.er1
7094   ac_status=$?
7095   grep -v '^ *+' conftest.er1 >conftest.err
7096   rm -f conftest.er1
7097   cat conftest.err >&5
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); } &&
7100          { ac_try='test -z "$ac_c_werror_flag"
7101                          || test ! -s conftest.err'
7102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103   (eval $ac_try) 2>&5
7104   ac_status=$?
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); }; } &&
7107          { ac_try='test -s conftest$ac_exeext'
7108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109   (eval $ac_try) 2>&5
7110   ac_status=$?
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); }; }; then
7113   ac_cv_func_dlopen=yes
7114 else
7115   echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7117
7118 ac_cv_func_dlopen=no
7119 fi
7120 rm -f conftest.err conftest.$ac_objext \
7121       conftest$ac_exeext conftest.$ac_ext
7122 fi
7123 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7124 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7125 if test $ac_cv_func_dlopen = yes; then
7126   lt_cv_dlopen="dlopen"
7127 else
7128   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7129 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   ac_check_lib_save_LIBS=$LIBS
7134 LIBS="-ldl  $LIBS"
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141
7142 /* Override any gcc2 internal prototype to avoid an error.  */
7143 #ifdef __cplusplus
7144 extern "C"
7145 #endif
7146 /* We use char because int might match the return type of a gcc2
7147    builtin and then its argument prototype would still apply.  */
7148 char dlopen ();
7149 int
7150 main ()
7151 {
7152 dlopen ();
7153   ;
7154   return 0;
7155 }
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159   (eval $ac_link) 2>conftest.er1
7160   ac_status=$?
7161   grep -v '^ *+' conftest.er1 >conftest.err
7162   rm -f conftest.er1
7163   cat conftest.err >&5
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); } &&
7166          { ac_try='test -z "$ac_c_werror_flag"
7167                          || test ! -s conftest.err'
7168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169   (eval $ac_try) 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); }; } &&
7173          { ac_try='test -s conftest$ac_exeext'
7174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175   (eval $ac_try) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); }; }; then
7179   ac_cv_lib_dl_dlopen=yes
7180 else
7181   echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 ac_cv_lib_dl_dlopen=no
7185 fi
7186 rm -f conftest.err conftest.$ac_objext \
7187       conftest$ac_exeext conftest.$ac_ext
7188 LIBS=$ac_check_lib_save_LIBS
7189 fi
7190 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7191 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7192 if test $ac_cv_lib_dl_dlopen = yes; then
7193   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7194 else
7195   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7196 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7197 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200   ac_check_lib_save_LIBS=$LIBS
7201 LIBS="-lsvld  $LIBS"
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h.  */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h.  */
7208
7209 /* Override any gcc2 internal prototype to avoid an error.  */
7210 #ifdef __cplusplus
7211 extern "C"
7212 #endif
7213 /* We use char because int might match the return type of a gcc2
7214    builtin and then its argument prototype would still apply.  */
7215 char dlopen ();
7216 int
7217 main ()
7218 {
7219 dlopen ();
7220   ;
7221   return 0;
7222 }
7223 _ACEOF
7224 rm -f conftest.$ac_objext conftest$ac_exeext
7225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7226   (eval $ac_link) 2>conftest.er1
7227   ac_status=$?
7228   grep -v '^ *+' conftest.er1 >conftest.err
7229   rm -f conftest.er1
7230   cat conftest.err >&5
7231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); } &&
7233          { ac_try='test -z "$ac_c_werror_flag"
7234                          || test ! -s conftest.err'
7235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236   (eval $ac_try) 2>&5
7237   ac_status=$?
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); }; } &&
7240          { ac_try='test -s conftest$ac_exeext'
7241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242   (eval $ac_try) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); }; }; then
7246   ac_cv_lib_svld_dlopen=yes
7247 else
7248   echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7250
7251 ac_cv_lib_svld_dlopen=no
7252 fi
7253 rm -f conftest.err conftest.$ac_objext \
7254       conftest$ac_exeext conftest.$ac_ext
7255 LIBS=$ac_check_lib_save_LIBS
7256 fi
7257 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7258 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7259 if test $ac_cv_lib_svld_dlopen = yes; then
7260   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7261 else
7262   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7263 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7264 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   ac_check_lib_save_LIBS=$LIBS
7268 LIBS="-ldld  $LIBS"
7269 cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h.  */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h.  */
7275
7276 /* Override any gcc2 internal prototype to avoid an error.  */
7277 #ifdef __cplusplus
7278 extern "C"
7279 #endif
7280 /* We use char because int might match the return type of a gcc2
7281    builtin and then its argument prototype would still apply.  */
7282 char dld_link ();
7283 int
7284 main ()
7285 {
7286 dld_link ();
7287   ;
7288   return 0;
7289 }
7290 _ACEOF
7291 rm -f conftest.$ac_objext conftest$ac_exeext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7293   (eval $ac_link) 2>conftest.er1
7294   ac_status=$?
7295   grep -v '^ *+' conftest.er1 >conftest.err
7296   rm -f conftest.er1
7297   cat conftest.err >&5
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); } &&
7300          { ac_try='test -z "$ac_c_werror_flag"
7301                          || test ! -s conftest.err'
7302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303   (eval $ac_try) 2>&5
7304   ac_status=$?
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); }; } &&
7307          { ac_try='test -s conftest$ac_exeext'
7308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309   (eval $ac_try) 2>&5
7310   ac_status=$?
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); }; }; then
7313   ac_cv_lib_dld_dld_link=yes
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318 ac_cv_lib_dld_dld_link=no
7319 fi
7320 rm -f conftest.err conftest.$ac_objext \
7321       conftest$ac_exeext conftest.$ac_ext
7322 LIBS=$ac_check_lib_save_LIBS
7323 fi
7324 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7325 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7326 if test $ac_cv_lib_dld_dld_link = yes; then
7327   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7328 fi
7329
7330
7331 fi
7332
7333
7334 fi
7335
7336
7337 fi
7338
7339
7340 fi
7341
7342
7343 fi
7344
7345     ;;
7346   esac
7347
7348   if test "x$lt_cv_dlopen" != xno; then
7349     enable_dlopen=yes
7350   else
7351     enable_dlopen=no
7352   fi
7353
7354   case $lt_cv_dlopen in
7355   dlopen)
7356     save_CPPFLAGS="$CPPFLAGS"
7357         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7358
7359     save_LDFLAGS="$LDFLAGS"
7360     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7361
7362     save_LIBS="$LIBS"
7363     LIBS="$lt_cv_dlopen_libs $LIBS"
7364
7365     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7366 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7367 if test "${lt_cv_dlopen_self+set}" = set; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370           if test "$cross_compiling" = yes; then :
7371   lt_cv_dlopen_self=cross
7372 else
7373     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7374   lt_status=$lt_dlunknown
7375   cat > conftest.$ac_ext <<EOF
7376 #line 7376 "configure"
7377 #include "confdefs.h"
7378
7379 #if HAVE_DLFCN_H
7380 #include <dlfcn.h>
7381 #endif
7382
7383 #include <stdio.h>
7384
7385 #ifdef RTLD_GLOBAL
7386 #  define LT_DLGLOBAL           RTLD_GLOBAL
7387 #else
7388 #  ifdef DL_GLOBAL
7389 #    define LT_DLGLOBAL         DL_GLOBAL
7390 #  else
7391 #    define LT_DLGLOBAL         0
7392 #  endif
7393 #endif
7394
7395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7396    find out it does not work in some platform. */
7397 #ifndef LT_DLLAZY_OR_NOW
7398 #  ifdef RTLD_LAZY
7399 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7400 #  else
7401 #    ifdef DL_LAZY
7402 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7403 #    else
7404 #      ifdef RTLD_NOW
7405 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7406 #      else
7407 #        ifdef DL_NOW
7408 #          define LT_DLLAZY_OR_NOW      DL_NOW
7409 #        else
7410 #          define LT_DLLAZY_OR_NOW      0
7411 #        endif
7412 #      endif
7413 #    endif
7414 #  endif
7415 #endif
7416
7417 #ifdef __cplusplus
7418 extern "C" void exit (int);
7419 #endif
7420
7421 void fnord() { int i=42;}
7422 int main ()
7423 {
7424   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7425   int status = $lt_dlunknown;
7426
7427   if (self)
7428     {
7429       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7430       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7431       /* dlclose (self); */
7432     }
7433
7434     exit (status);
7435 }
7436 EOF
7437   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438   (eval $ac_link) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7442     (./conftest; exit; ) 2>/dev/null
7443     lt_status=$?
7444     case x$lt_status in
7445       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7446       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7447       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7448     esac
7449   else :
7450     # compilation failed
7451     lt_cv_dlopen_self=no
7452   fi
7453 fi
7454 rm -fr conftest*
7455
7456
7457 fi
7458 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7459 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7460
7461     if test "x$lt_cv_dlopen_self" = xyes; then
7462       LDFLAGS="$LDFLAGS $link_static_flag"
7463       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7464 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7465 if test "${lt_cv_dlopen_self_static+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468           if test "$cross_compiling" = yes; then :
7469   lt_cv_dlopen_self_static=cross
7470 else
7471     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7472   lt_status=$lt_dlunknown
7473   cat > conftest.$ac_ext <<EOF
7474 #line 7474 "configure"
7475 #include "confdefs.h"
7476
7477 #if HAVE_DLFCN_H
7478 #include <dlfcn.h>
7479 #endif
7480
7481 #include <stdio.h>
7482
7483 #ifdef RTLD_GLOBAL
7484 #  define LT_DLGLOBAL           RTLD_GLOBAL
7485 #else
7486 #  ifdef DL_GLOBAL
7487 #    define LT_DLGLOBAL         DL_GLOBAL
7488 #  else
7489 #    define LT_DLGLOBAL         0
7490 #  endif
7491 #endif
7492
7493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7494    find out it does not work in some platform. */
7495 #ifndef LT_DLLAZY_OR_NOW
7496 #  ifdef RTLD_LAZY
7497 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7498 #  else
7499 #    ifdef DL_LAZY
7500 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7501 #    else
7502 #      ifdef RTLD_NOW
7503 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7504 #      else
7505 #        ifdef DL_NOW
7506 #          define LT_DLLAZY_OR_NOW      DL_NOW
7507 #        else
7508 #          define LT_DLLAZY_OR_NOW      0
7509 #        endif
7510 #      endif
7511 #    endif
7512 #  endif
7513 #endif
7514
7515 #ifdef __cplusplus
7516 extern "C" void exit (int);
7517 #endif
7518
7519 void fnord() { int i=42;}
7520 int main ()
7521 {
7522   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7523   int status = $lt_dlunknown;
7524
7525   if (self)
7526     {
7527       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7528       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7529       /* dlclose (self); */
7530     }
7531
7532     exit (status);
7533 }
7534 EOF
7535   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536   (eval $ac_link) 2>&5
7537   ac_status=$?
7538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7540     (./conftest; exit; ) 2>/dev/null
7541     lt_status=$?
7542     case x$lt_status in
7543       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7544       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7545       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7546     esac
7547   else :
7548     # compilation failed
7549     lt_cv_dlopen_self_static=no
7550   fi
7551 fi
7552 rm -fr conftest*
7553
7554
7555 fi
7556 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7557 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7558     fi
7559
7560     CPPFLAGS="$save_CPPFLAGS"
7561     LDFLAGS="$save_LDFLAGS"
7562     LIBS="$save_LIBS"
7563     ;;
7564   esac
7565
7566   case $lt_cv_dlopen_self in
7567   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7568   *) enable_dlopen_self=unknown ;;
7569   esac
7570
7571   case $lt_cv_dlopen_self_static in
7572   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7573   *) enable_dlopen_self_static=unknown ;;
7574   esac
7575 fi
7576
7577
7578 if test "$enable_shared" = yes && test "$GCC" = yes; then
7579   case $archive_cmds in
7580   *'~'*)
7581     # FIXME: we may have to deal with multi-command sequences.
7582     ;;
7583   '$CC '*)
7584     # Test whether the compiler implicitly links with -lc since on some
7585     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7586     # to ld, don't add -lc before -lgcc.
7587     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7588 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7589     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   $rm conftest*
7593     echo 'static int dummy;' > conftest.$ac_ext
7594
7595     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7596   (eval $ac_compile) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; then
7600       soname=conftest
7601       lib=conftest
7602       libobjs=conftest.$ac_objext
7603       deplibs=
7604       wl=$lt_cv_prog_cc_wl
7605       compiler_flags=-v
7606       linker_flags=-v
7607       verstring=
7608       output_objdir=.
7609       libname=conftest
7610       save_allow_undefined_flag=$allow_undefined_flag
7611       allow_undefined_flag=
7612       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7613   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7614   ac_status=$?
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); }
7617       then
7618         lt_cv_archive_cmds_need_lc=no
7619       else
7620         lt_cv_archive_cmds_need_lc=yes
7621       fi
7622       allow_undefined_flag=$save_allow_undefined_flag
7623     else
7624       cat conftest.err 1>&5
7625     fi
7626 fi
7627
7628     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7629 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7630     ;;
7631   esac
7632 fi
7633 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7634
7635 # The second clause should only fire when bootstrapping the
7636 # libtool distribution, otherwise you forgot to ship ltmain.sh
7637 # with your package, and you will get complaints that there are
7638 # no rules to generate ltmain.sh.
7639 if test -f "$ltmain"; then
7640   :
7641 else
7642   # If there is no Makefile yet, we rely on a make rule to execute
7643   # `config.status --recheck' to rerun these tests and create the
7644   # libtool script then.
7645   test -f Makefile && make "$ltmain"
7646 fi
7647
7648 if test -f "$ltmain"; then
7649   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7650   $rm -f "${ofile}T"
7651
7652   echo creating $ofile
7653
7654   # Now quote all the things that may contain metacharacters while being
7655   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7656   # variables and quote the copies for generation of the libtool script.
7657   for var in echo old_CC old_CFLAGS SED \
7658     AR AR_FLAGS CC LD LN_S NM SHELL \
7659     reload_flag reload_cmds wl \
7660     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7661     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7662     library_names_spec soname_spec \
7663     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7664     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7665     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7666     old_striplib striplib file_magic_cmd export_symbols_cmds \
7667     deplibs_check_method allow_undefined_flag no_undefined_flag \
7668     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7669     global_symbol_to_c_name_address \
7670     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7671     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7672     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7673
7674     case $var in
7675     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7676     old_postinstall_cmds | old_postuninstall_cmds | \
7677     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7678     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7679     postinstall_cmds | postuninstall_cmds | \
7680     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7681       # Double-quote double-evaled strings.
7682       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7683       ;;
7684     *)
7685       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7686       ;;
7687     esac
7688   done
7689
7690   cat <<__EOF__ > "${ofile}T"
7691 #! $SHELL
7692
7693 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7694 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7695 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7696 #
7697 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7698 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7699 #
7700 # This program is free software; you can redistribute it and/or modify
7701 # it under the terms of the GNU General Public License as published by
7702 # the Free Software Foundation; either version 2 of the License, or
7703 # (at your option) any later version.
7704 #
7705 # This program is distributed in the hope that it will be useful, but
7706 # WITHOUT ANY WARRANTY; without even the implied warranty of
7707 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7708 # General Public License for more details.
7709 #
7710 # You should have received a copy of the GNU General Public License
7711 # along with this program; if not, write to the Free Software
7712 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7713 #
7714 # As a special exception to the GNU General Public License, if you
7715 # distribute this file as part of a program that contains a
7716 # configuration script generated by Autoconf, you may include it under
7717 # the same distribution terms that you use for the rest of that program.
7718
7719 # A sed that does not truncate output.
7720 SED=$lt_SED
7721
7722 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7723 Xsed="${SED} -e s/^X//"
7724
7725 # The HP-UX ksh and POSIX shell print the target directory to stdout
7726 # if CDPATH is set.
7727 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7728
7729 # ### BEGIN LIBTOOL CONFIG
7730
7731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7732
7733 # Shell to use when invoking shell scripts.
7734 SHELL=$lt_SHELL
7735
7736 # Whether or not to build shared libraries.
7737 build_libtool_libs=$enable_shared
7738
7739 # Whether or not to build static libraries.
7740 build_old_libs=$enable_static
7741
7742 # Whether or not to add -lc for building shared libraries.
7743 build_libtool_need_lc=$need_lc
7744
7745 # Whether or not to optimize for fast installation.
7746 fast_install=$enable_fast_install
7747
7748 # The host system.
7749 host_alias=$host_alias
7750 host=$host
7751
7752 # An echo program that does not interpret backslashes.
7753 echo=$lt_echo
7754
7755 # The archiver.
7756 AR=$lt_AR
7757 AR_FLAGS=$lt_AR_FLAGS
7758
7759 # The default C compiler.
7760 CC=$lt_CC
7761
7762 # Is the compiler the GNU C compiler?
7763 with_gcc=$GCC
7764
7765 # The linker used to build libraries.
7766 LD=$lt_LD
7767
7768 # Whether we need hard or soft links.
7769 LN_S=$lt_LN_S
7770
7771 # A BSD-compatible nm program.
7772 NM=$lt_NM
7773
7774 # A symbol stripping program
7775 STRIP=$STRIP
7776
7777 # Used to examine libraries when file_magic_cmd begins "file"
7778 MAGIC_CMD=$MAGIC_CMD
7779
7780 # Used on cygwin: DLL creation program.
7781 DLLTOOL="$DLLTOOL"
7782
7783 # Used on cygwin: object dumper.
7784 OBJDUMP="$OBJDUMP"
7785
7786 # Used on cygwin: assembler.
7787 AS="$AS"
7788
7789 # The name of the directory that contains temporary libtool files.
7790 objdir=$objdir
7791
7792 # How to create reloadable object files.
7793 reload_flag=$lt_reload_flag
7794 reload_cmds=$lt_reload_cmds
7795
7796 # How to pass a linker flag through the compiler.
7797 wl=$lt_wl
7798
7799 # Object file suffix (normally "o").
7800 objext="$ac_objext"
7801
7802 # Old archive suffix (normally "a").
7803 libext="$libext"
7804
7805 # Executable file suffix (normally "").
7806 exeext="$exeext"
7807
7808 # Additional compiler flags for building library objects.
7809 pic_flag=$lt_pic_flag
7810 pic_mode=$pic_mode
7811
7812 # Does compiler simultaneously support -c and -o options?
7813 compiler_c_o=$lt_compiler_c_o
7814
7815 # Can we write directly to a .lo ?
7816 compiler_o_lo=$lt_compiler_o_lo
7817
7818 # Must we lock files when doing compilation ?
7819 need_locks=$lt_need_locks
7820
7821 # Do we need the lib prefix for modules?
7822 need_lib_prefix=$need_lib_prefix
7823
7824 # Do we need a version for libraries?
7825 need_version=$need_version
7826
7827 # Whether dlopen is supported.
7828 dlopen_support=$enable_dlopen
7829
7830 # Whether dlopen of programs is supported.
7831 dlopen_self=$enable_dlopen_self
7832
7833 # Whether dlopen of statically linked programs is supported.
7834 dlopen_self_static=$enable_dlopen_self_static
7835
7836 # Compiler flag to prevent dynamic linking.
7837 link_static_flag=$lt_link_static_flag
7838
7839 # Compiler flag to turn off builtin functions.
7840 no_builtin_flag=$lt_no_builtin_flag
7841
7842 # Compiler flag to allow reflexive dlopens.
7843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7844
7845 # Compiler flag to generate shared objects directly from archives.
7846 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7847
7848 # Compiler flag to generate thread-safe objects.
7849 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7850
7851 # Library versioning type.
7852 version_type=$version_type
7853
7854 # Format of library name prefix.
7855 libname_spec=$lt_libname_spec
7856
7857 # List of archive names.  First name is the real one, the rest are links.
7858 # The last name is the one that the linker finds with -lNAME.
7859 library_names_spec=$lt_library_names_spec
7860
7861 # The coded name of the library, if different from the real name.
7862 soname_spec=$lt_soname_spec
7863
7864 # Commands used to build and install an old-style archive.
7865 RANLIB=$lt_RANLIB
7866 old_archive_cmds=$lt_old_archive_cmds
7867 old_postinstall_cmds=$lt_old_postinstall_cmds
7868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7869
7870 # Create an old-style archive from a shared archive.
7871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7872
7873 # Create a temporary old-style archive to link instead of a shared archive.
7874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7875
7876 # Commands used to build and install a shared archive.
7877 archive_cmds=$lt_archive_cmds
7878 archive_expsym_cmds=$lt_archive_expsym_cmds
7879 postinstall_cmds=$lt_postinstall_cmds
7880 postuninstall_cmds=$lt_postuninstall_cmds
7881
7882 # Commands to strip libraries.
7883 old_striplib=$lt_old_striplib
7884 striplib=$lt_striplib
7885
7886 # Method to check whether dependent libraries are shared objects.
7887 deplibs_check_method=$lt_deplibs_check_method
7888
7889 # Command to use when deplibs_check_method == file_magic.
7890 file_magic_cmd=$lt_file_magic_cmd
7891
7892 # Flag that allows shared libraries with undefined symbols to be built.
7893 allow_undefined_flag=$lt_allow_undefined_flag
7894
7895 # Flag that forces no undefined symbols.
7896 no_undefined_flag=$lt_no_undefined_flag
7897
7898 # Commands used to finish a libtool library installation in a directory.
7899 finish_cmds=$lt_finish_cmds
7900
7901 # Same as above, but a single script fragment to be evaled but not shown.
7902 finish_eval=$lt_finish_eval
7903
7904 # Take the output of nm and produce a listing of raw symbols and C names.
7905 global_symbol_pipe=$lt_global_symbol_pipe
7906
7907 # Transform the output of nm in a proper C declaration
7908 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7909
7910 # Transform the output of nm in a C name address pair
7911 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7912
7913 # This is the shared library runtime path variable.
7914 runpath_var=$runpath_var
7915
7916 # This is the shared library path variable.
7917 shlibpath_var=$shlibpath_var
7918
7919 # Is shlibpath searched before the hard-coded library search path?
7920 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7921
7922 # How to hardcode a shared library path into an executable.
7923 hardcode_action=$hardcode_action
7924
7925 # Whether we should hardcode library paths into libraries.
7926 hardcode_into_libs=$hardcode_into_libs
7927
7928 # Flag to hardcode \$libdir into a binary during linking.
7929 # This must work even if \$libdir does not exist.
7930 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7931
7932 # Whether we need a single -rpath flag with a separated argument.
7933 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7934
7935 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7936 # resulting binary.
7937 hardcode_direct=$hardcode_direct
7938
7939 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7940 # resulting binary.
7941 hardcode_minus_L=$hardcode_minus_L
7942
7943 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7944 # the resulting binary.
7945 hardcode_shlibpath_var=$hardcode_shlibpath_var
7946
7947 # Variables whose values should be saved in libtool wrapper scripts and
7948 # restored at relink time.
7949 variables_saved_for_relink="$variables_saved_for_relink"
7950
7951 # Whether libtool must link a program against all its dependency libraries.
7952 link_all_deplibs=$link_all_deplibs
7953
7954 # Compile-time system search path for libraries
7955 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7956
7957 # Run-time system search path for libraries
7958 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7959
7960 # Fix the shell variable \$srcfile for the compiler.
7961 fix_srcfile_path="$fix_srcfile_path"
7962
7963 # Set to yes if exported symbols are required.
7964 always_export_symbols=$always_export_symbols
7965
7966 # The commands to list exported symbols.
7967 export_symbols_cmds=$lt_export_symbols_cmds
7968
7969 # The commands to extract the exported symbol list from a shared archive.
7970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7971
7972 # Symbols that should not be listed in the preloaded symbols.
7973 exclude_expsyms=$lt_exclude_expsyms
7974
7975 # Symbols that must always be exported.
7976 include_expsyms=$lt_include_expsyms
7977
7978 # ### END LIBTOOL CONFIG
7979
7980 __EOF__
7981
7982   case $host_os in
7983   aix3*)
7984     cat <<\EOF >> "${ofile}T"
7985
7986 # AIX sometimes has problems with the GCC collect2 program.  For some
7987 # reason, if we set the COLLECT_NAMES environment variable, the problems
7988 # vanish in a puff of smoke.
7989 if test "X${COLLECT_NAMES+set}" != Xset; then
7990   COLLECT_NAMES=
7991   export COLLECT_NAMES
7992 fi
7993 EOF
7994     ;;
7995   esac
7996
7997   case $host_os in
7998   cygwin* | mingw* | pw32* | os2*)
7999     cat <<'EOF' >> "${ofile}T"
8000       # This is a source program that is used to create dlls on Windows
8001       # Don't remove nor modify the starting and closing comments
8002 # /* ltdll.c starts here */
8003 # #define WIN32_LEAN_AND_MEAN
8004 # #include <windows.h>
8005 # #undef WIN32_LEAN_AND_MEAN
8006 # #include <stdio.h>
8007 #
8008 # #ifndef __CYGWIN__
8009 # #  ifdef __CYGWIN32__
8010 # #    define __CYGWIN__ __CYGWIN32__
8011 # #  endif
8012 # #endif
8013 #
8014 # #ifdef __cplusplus
8015 # extern "C" {
8016 # #endif
8017 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8018 # #ifdef __cplusplus
8019 # }
8020 # #endif
8021 #
8022 # #ifdef __CYGWIN__
8023 # #include <cygwin/cygwin_dll.h>
8024 # DECLARE_CYGWIN_DLL( DllMain );
8025 # #endif
8026 # HINSTANCE __hDllInstance_base;
8027 #
8028 # BOOL APIENTRY
8029 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8030 # {
8031 #   __hDllInstance_base = hInst;
8032 #   return TRUE;
8033 # }
8034 # /* ltdll.c ends here */
8035         # This is a source program that is used to create import libraries
8036         # on Windows for dlls which lack them. Don't remove nor modify the
8037         # starting and closing comments
8038 # /* impgen.c starts here */
8039 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8040 #
8041 #  This file is part of GNU libtool.
8042 #
8043 #  This program is free software; you can redistribute it and/or modify
8044 #  it under the terms of the GNU General Public License as published by
8045 #  the Free Software Foundation; either version 2 of the License, or
8046 #  (at your option) any later version.
8047 #
8048 #  This program is distributed in the hope that it will be useful,
8049 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8050 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8051 #  GNU General Public License for more details.
8052 #
8053 #  You should have received a copy of the GNU General Public License
8054 #  along with this program; if not, write to the Free Software
8055 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8056 #  */
8057 #
8058 # #include <stdio.h>            /* for printf() */
8059 # #include <unistd.h>           /* for open(), lseek(), read() */
8060 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8061 # #include <string.h>           /* for strdup() */
8062 #
8063 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8064 # #ifndef O_BINARY
8065 # #define O_BINARY 0
8066 # #endif
8067 #
8068 # static unsigned int
8069 # pe_get16 (fd, offset)
8070 #      int fd;
8071 #      int offset;
8072 # {
8073 #   unsigned char b[2];
8074 #   lseek (fd, offset, SEEK_SET);
8075 #   read (fd, b, 2);
8076 #   return b[0] + (b[1]<<8);
8077 # }
8078 #
8079 # static unsigned int
8080 # pe_get32 (fd, offset)
8081 #     int fd;
8082 #     int offset;
8083 # {
8084 #   unsigned char b[4];
8085 #   lseek (fd, offset, SEEK_SET);
8086 #   read (fd, b, 4);
8087 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8088 # }
8089 #
8090 # static unsigned int
8091 # pe_as32 (ptr)
8092 #      void *ptr;
8093 # {
8094 #   unsigned char *b = ptr;
8095 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8096 # }
8097 #
8098 # int
8099 # main (argc, argv)
8100 #     int argc;
8101 #     char *argv[];
8102 # {
8103 #     int dll;
8104 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8105 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8106 #     unsigned long name_rvas, nexp;
8107 #     unsigned char *expdata, *erva;
8108 #     char *filename, *dll_name;
8109 #
8110 #     filename = argv[1];
8111 #
8112 #     dll = open(filename, O_RDONLY|O_BINARY);
8113 #     if (dll < 1)
8114 #       return 1;
8115 #
8116 #     dll_name = filename;
8117 #
8118 #     for (i=0; filename[i]; i++)
8119 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8120 #           dll_name = filename + i +1;
8121 #
8122 #     pe_header_offset = pe_get32 (dll, 0x3c);
8123 #     opthdr_ofs = pe_header_offset + 4 + 20;
8124 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8125 #
8126 #     if (num_entries < 1) /* no exports */
8127 #       return 1;
8128 #
8129 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8130 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8131 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8132 #     secptr = (pe_header_offset + 4 + 20 +
8133 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8134 #
8135 #     expptr = 0;
8136 #     for (i = 0; i < nsections; i++)
8137 #     {
8138 #       char sname[8];
8139 #       unsigned long secptr1 = secptr + 40 * i;
8140 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8141 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8142 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8143 #       lseek(dll, secptr1, SEEK_SET);
8144 #       read(dll, sname, 8);
8145 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8146 #       {
8147 #           expptr = fptr + (export_rva - vaddr);
8148 #           if (export_rva + export_size > vaddr + vsize)
8149 #               export_size = vsize - (export_rva - vaddr);
8150 #           break;
8151 #       }
8152 #     }
8153 #
8154 #     expdata = (unsigned char*)malloc(export_size);
8155 #     lseek (dll, expptr, SEEK_SET);
8156 #     read (dll, expdata, export_size);
8157 #     erva = expdata - export_rva;
8158 #
8159 #     nexp = pe_as32 (expdata+24);
8160 #     name_rvas = pe_as32 (expdata+32);
8161 #
8162 #     printf ("EXPORTS\n");
8163 #     for (i = 0; i<nexp; i++)
8164 #     {
8165 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8166 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8167 #     }
8168 #
8169 #     return 0;
8170 # }
8171 # /* impgen.c ends here */
8172
8173 EOF
8174     ;;
8175   esac
8176
8177   # We use sed instead of cat because bash on DJGPP gets confused if
8178   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8179   # text mode, it properly converts lines to CR/LF.  This bash problem
8180   # is reportedly fixed, but why not run on old versions too?
8181   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8182
8183   mv -f "${ofile}T" "$ofile" || \
8184     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8185   chmod +x "$ofile"
8186 fi
8187
8188
8189
8190
8191
8192 # This can be used to rebuild libtool when needed
8193 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8194
8195 # Always use our own libtool.
8196 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8197
8198 # Prevent multiple expansion
8199
8200
8201  for ac_prog in gzip uncompress compress
8202 do
8203   # Extract the first word of "$ac_prog", so it can be a program name with args.
8204 set dummy $ac_prog; ac_word=$2
8205 echo "$as_me:$LINENO: checking for $ac_word" >&5
8206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8207 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   if test -n "$UNCOMPRESS"; then
8211   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8215 do
8216   IFS=$as_save_IFS
8217   test -z "$as_dir" && as_dir=.
8218   for ac_exec_ext in '' $ac_executable_extensions; do
8219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220     ac_cv_prog_UNCOMPRESS="$ac_prog"
8221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8222     break 2
8223   fi
8224 done
8225 done
8226
8227 fi
8228 fi
8229 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8230 if test -n "$UNCOMPRESS"; then
8231   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8232 echo "${ECHO_T}$UNCOMPRESS" >&6
8233 else
8234   echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8236 fi
8237
8238   test -n "$UNCOMPRESS" && break
8239 done
8240
8241
8242 OBJEXT="o"
8243 AREXT=".a"
8244
8245
8246
8247 if test "x$EXEEXT" = "x.exe";then
8248     OBJEXT="obj"
8249     AREXT=".lib"
8250 fi
8251
8252
8253
8254
8255
8256
8257
8258 echo "$as_me:$LINENO: checking for target system" >&5
8259 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8260 CYGWIN=
8261 MINGW=
8262 case $host_os in
8263     *cygwin* ) CYGWIN=yes;;
8264     *mingw* ) MINGW=yes;;
8265 esac
8266
8267 AR=ar
8268 if test "x$MINGW" = "xyes"; then
8269     #fix for the debian distribution of mingw
8270     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8271         AR="/usr/i586-mingw32msvc/bin/ar"
8272     fi
8273     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8274         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8275     fi
8276     #fix for the gentoo distribution of mingw
8277     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8278         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8279     fi
8280     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8281         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8282     fi
8283     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8284         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8285     fi
8286 fi
8287
8288
8289
8290 if test "x${CYGWIN}" = "xyes"; then
8291     cat >>confdefs.h <<_ACEOF
8292 #define CYGWIN 1
8293 _ACEOF
8294
8295     echo "$as_me:$LINENO: result: cygwin" >&5
8296 echo "${ECHO_T}cygwin" >&6
8297 else
8298     if test "x${MINGW}" = "xyes"; then
8299         cat >>confdefs.h <<_ACEOF
8300 #define MINGW 1
8301 _ACEOF
8302
8303         WIN32=1
8304         cat >>confdefs.h <<_ACEOF
8305 #define WIN32 1
8306 _ACEOF
8307
8308         LIBS="$LIBS -lws2_32"
8309         echo "$as_me:$LINENO: result: mingw" >&5
8310 echo "${ECHO_T}mingw" >&6
8311     else
8312         LINUX=1
8313         export LINUX
8314         cat >>confdefs.h <<_ACEOF
8315 #define LINUX 1
8316 _ACEOF
8317
8318         echo "$as_me:$LINENO: result: " >&5
8319 echo "${ECHO_T}" >&6
8320     fi
8321 fi
8322
8323
8324 SLEXT="so"
8325 if test "x${MINGW}" != "xyes"; then
8326     # no mingW
8327     cat >>confdefs.h <<_ACEOF
8328 #define O_BINARY 0
8329 _ACEOF
8330
8331 else
8332     # mingW
8333     SLEXT="dll"
8334 fi
8335 export SLEXT
8336
8337
8338 # The following tries to make use of includes and libraries in
8339 # /usr/local, too. Notice: A -I/usr/local/include might break
8340 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8341 # especially on systems which link /usr/local to /usr, so it has yet
8342 # to be seen how useful this is.
8343 if test -d /usr/local/lib; then
8344     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8345 fi
8346 if test -d /usr/local/include; then
8347 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8348 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8349     echo > /dev/null
8350 fi
8351 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8352     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8353     # and $prefix/include, which should be included in our search paths for libraries
8354     # and includes.
8355     LDFLAGS="$LDFLAGS -L${libdir}"
8356     CPPFLAGS="$CPPFLAGS -I${includedir}"
8357     # TODO- test whether gcc still works after this
8358 fi
8359
8360 #Mac OS:
8361 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
8362
8363
8364 # this must be done after (I believe) AC_PROG_MAKE_SET
8365 if test "x$DEBUG" '!=' "x";then
8366     STRIP="@echo debug enabled, not stripping "
8367     export STRIP
8368
8369 fi
8370
8371
8372 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8373 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8374 if test "${ac_cv_lib_m_sin+set}" = set; then
8375   echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377   ac_check_lib_save_LIBS=$LIBS
8378 LIBS="-lm  $LIBS"
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h.  */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h.  */
8385
8386 /* Override any gcc2 internal prototype to avoid an error.  */
8387 #ifdef __cplusplus
8388 extern "C"
8389 #endif
8390 /* We use char because int might match the return type of a gcc2
8391    builtin and then its argument prototype would still apply.  */
8392 char sin ();
8393 int
8394 main ()
8395 {
8396 sin ();
8397   ;
8398   return 0;
8399 }
8400 _ACEOF
8401 rm -f conftest.$ac_objext conftest$ac_exeext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8403   (eval $ac_link) 2>conftest.er1
8404   ac_status=$?
8405   grep -v '^ *+' conftest.er1 >conftest.err
8406   rm -f conftest.er1
8407   cat conftest.err >&5
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); } &&
8410          { ac_try='test -z "$ac_c_werror_flag"
8411                          || test ! -s conftest.err'
8412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413   (eval $ac_try) 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; } &&
8417          { ac_try='test -s conftest$ac_exeext'
8418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419   (eval $ac_try) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; }; then
8423   ac_cv_lib_m_sin=yes
8424 else
8425   echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8427
8428 ac_cv_lib_m_sin=no
8429 fi
8430 rm -f conftest.err conftest.$ac_objext \
8431       conftest$ac_exeext conftest.$ac_ext
8432 LIBS=$ac_check_lib_save_LIBS
8433 fi
8434 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8435 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8436 if test $ac_cv_lib_m_sin = yes; then
8437   cat >>confdefs.h <<_ACEOF
8438 #define HAVE_LIBM 1
8439 _ACEOF
8440
8441   LIBS="-lm $LIBS"
8442
8443 else
8444   echo "Error: Math library not found.";
8445  exit;
8446
8447 fi
8448
8449
8450 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8451 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8452 if test "${ac_cv_lib_z_deflate+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   ac_check_lib_save_LIBS=$LIBS
8456 LIBS="-lz  $LIBS"
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463
8464 /* Override any gcc2 internal prototype to avoid an error.  */
8465 #ifdef __cplusplus
8466 extern "C"
8467 #endif
8468 /* We use char because int might match the return type of a gcc2
8469    builtin and then its argument prototype would still apply.  */
8470 char deflate ();
8471 int
8472 main ()
8473 {
8474 deflate ();
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481   (eval $ac_link) 2>conftest.er1
8482   ac_status=$?
8483   grep -v '^ *+' conftest.er1 >conftest.err
8484   rm -f conftest.er1
8485   cat conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } &&
8488          { ac_try='test -z "$ac_c_werror_flag"
8489                          || test ! -s conftest.err'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; } &&
8495          { ac_try='test -s conftest$ac_exeext'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; }; then
8501   ac_cv_lib_z_deflate=yes
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ac_cv_lib_z_deflate=no
8507 fi
8508 rm -f conftest.err conftest.$ac_objext \
8509       conftest$ac_exeext conftest.$ac_ext
8510 LIBS=$ac_check_lib_save_LIBS
8511 fi
8512 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8513 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8514 if test $ac_cv_lib_z_deflate = yes; then
8515   cat >>confdefs.h <<_ACEOF
8516 #define HAVE_LIBZ 1
8517 _ACEOF
8518
8519   LIBS="-lz $LIBS"
8520
8521 else
8522   ZLIBMISSING=true
8523 fi
8524
8525
8526 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8527 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8528 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8529   echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531   ac_check_lib_save_LIBS=$LIBS
8532 LIBS="-ljpeg  $LIBS"
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h.  */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h.  */
8539
8540 /* Override any gcc2 internal prototype to avoid an error.  */
8541 #ifdef __cplusplus
8542 extern "C"
8543 #endif
8544 /* We use char because int might match the return type of a gcc2
8545    builtin and then its argument prototype would still apply.  */
8546 char jpeg_write_raw_data ();
8547 int
8548 main ()
8549 {
8550 jpeg_write_raw_data ();
8551   ;
8552   return 0;
8553 }
8554 _ACEOF
8555 rm -f conftest.$ac_objext conftest$ac_exeext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8557   (eval $ac_link) 2>conftest.er1
8558   ac_status=$?
8559   grep -v '^ *+' conftest.er1 >conftest.err
8560   rm -f conftest.er1
8561   cat conftest.err >&5
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); } &&
8564          { ac_try='test -z "$ac_c_werror_flag"
8565                          || test ! -s conftest.err'
8566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567   (eval $ac_try) 2>&5
8568   ac_status=$?
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); }; } &&
8571          { ac_try='test -s conftest$ac_exeext'
8572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573   (eval $ac_try) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; }; then
8577   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8578 else
8579   echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8583 fi
8584 rm -f conftest.err conftest.$ac_objext \
8585       conftest$ac_exeext conftest.$ac_ext
8586 LIBS=$ac_check_lib_save_LIBS
8587 fi
8588 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8589 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8590 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8591   cat >>confdefs.h <<_ACEOF
8592 #define HAVE_LIBJPEG 1
8593 _ACEOF
8594
8595   LIBS="-ljpeg $LIBS"
8596
8597 else
8598   JPEGLIBMISSING=true
8599 fi
8600
8601
8602 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8603 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8604 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8605   echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607   ac_check_lib_save_LIBS=$LIBS
8608 LIBS="-lt1  $LIBS"
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615
8616 /* Override any gcc2 internal prototype to avoid an error.  */
8617 #ifdef __cplusplus
8618 extern "C"
8619 #endif
8620 /* We use char because int might match the return type of a gcc2
8621    builtin and then its argument prototype would still apply.  */
8622 char T1_LoadFont ();
8623 int
8624 main ()
8625 {
8626 T1_LoadFont ();
8627   ;
8628   return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest.$ac_objext conftest$ac_exeext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633   (eval $ac_link) 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } &&
8640          { ac_try='test -z "$ac_c_werror_flag"
8641                          || test ! -s conftest.err'
8642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643   (eval $ac_try) 2>&5
8644   ac_status=$?
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); }; } &&
8647          { ac_try='test -s conftest$ac_exeext'
8648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649   (eval $ac_try) 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); }; }; then
8653   ac_cv_lib_t1_T1_LoadFont=yes
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 ac_cv_lib_t1_T1_LoadFont=no
8659 fi
8660 rm -f conftest.err conftest.$ac_objext \
8661       conftest$ac_exeext conftest.$ac_ext
8662 LIBS=$ac_check_lib_save_LIBS
8663 fi
8664 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8665 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8666 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8667   cat >>confdefs.h <<_ACEOF
8668 #define HAVE_LIBT1 1
8669 _ACEOF
8670
8671   LIBS="-lt1 $LIBS"
8672
8673 else
8674   T1LIBMISSING=true
8675 fi
8676
8677
8678 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
8679 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
8680 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683   ac_check_lib_save_LIBS=$LIBS
8684 LIBS="-lungif  $LIBS"
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h.  */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h.  */
8691
8692 /* Override any gcc2 internal prototype to avoid an error.  */
8693 #ifdef __cplusplus
8694 extern "C"
8695 #endif
8696 /* We use char because int might match the return type of a gcc2
8697    builtin and then its argument prototype would still apply.  */
8698 char DGifOpen ();
8699 int
8700 main ()
8701 {
8702 DGifOpen ();
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709   (eval $ac_link) 2>conftest.er1
8710   ac_status=$?
8711   grep -v '^ *+' conftest.er1 >conftest.err
8712   rm -f conftest.er1
8713   cat conftest.err >&5
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } &&
8716          { ac_try='test -z "$ac_c_werror_flag"
8717                          || test ! -s conftest.err'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; } &&
8723          { ac_try='test -s conftest$ac_exeext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   ac_cv_lib_ungif_DGifOpen=yes
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734 ac_cv_lib_ungif_DGifOpen=no
8735 fi
8736 rm -f conftest.err conftest.$ac_objext \
8737       conftest$ac_exeext conftest.$ac_ext
8738 LIBS=$ac_check_lib_save_LIBS
8739 fi
8740 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
8741 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
8742 if test $ac_cv_lib_ungif_DGifOpen = yes; then
8743   cat >>confdefs.h <<_ACEOF
8744 #define HAVE_LIBUNGIF 1
8745 _ACEOF
8746
8747   LIBS="-lungif $LIBS"
8748
8749 else
8750   UNGIFMISSING=true
8751 fi
8752
8753
8754
8755 echo "$as_me:$LINENO: checking for byte order" >&5
8756 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8757 if test "$cross_compiling" = yes; then
8758   CROSSCOMPILE=1
8759 else
8760   cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h.  */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h.  */
8766
8767 int main (int argc, char *argv[])
8768 {
8769     int i = 1;
8770     return *(char*)&i;
8771 }
8772
8773 _ACEOF
8774 rm -f conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776   (eval $ac_link) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781   (eval $ac_try) 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); }; }; then
8785   BIGENDIAN=1
8786 else
8787   echo "$as_me: program exited with status $ac_status" >&5
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 ( exit $ac_status )
8792 LITTLEENDIAN=1
8793 fi
8794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8795 fi
8796 export CROSSCOMPILE
8797
8798 if test "x${CROSSCOMPILE}" = "x1"; then
8799  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8800 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8801  echo "$as_me:$LINENO: checking target system type" >&5
8802 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8803 if test "${ac_cv_target+set}" = set; then
8804   echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806   ac_cv_target_alias=$target_alias
8807 test "x$ac_cv_target_alias" = "x" &&
8808   ac_cv_target_alias=$ac_cv_host_alias
8809 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8810   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8811 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8812    { (exit 1); exit 1; }; }
8813
8814 fi
8815 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8816 echo "${ECHO_T}$ac_cv_target" >&6
8817 target=$ac_cv_target
8818 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8819 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8820 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8821
8822
8823 # The aliases save the names the user supplied, while $host etc.
8824 # will get canonicalized.
8825 test -n "$target_alias" &&
8826   test "$program_prefix$program_suffix$program_transform_name" = \
8827     NONENONEs,x,x, &&
8828   program_prefix=${target_alias}-
8829  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8830 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8831  case "${target}" in
8832   *86* | *-pc-* )
8833      LITTLEENDIAN=1
8834      ;;
8835   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8836      BIGENDIAN=1
8837      ;;
8838  esac
8839 fi
8840
8841 export LITTLEENDIAN
8842 if test "x${LITTLEENDIAN}" = "x1"; then
8843 echo "$as_me:$LINENO: result: little endian" >&5
8844 echo "${ECHO_T}little endian" >&6
8845 BYTEORDERCHECKOK=1
8846 fi
8847 export BIGENDIAN
8848 if test "x${BIGENDIAN}" = "x1"; then
8849 echo "$as_me:$LINENO: result: big endian" >&5
8850 echo "${ECHO_T}big endian" >&6
8851 BYTEORDERCHECKOK=1
8852 WORDS_BIGENDIAN=1
8853 export WORDS_BIGENDIAN
8854 cat >>confdefs.h <<_ACEOF
8855 #define WORDS_BIGENDIAN 1
8856 _ACEOF
8857
8858 fi
8859 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8860 echo "$as_me:$LINENO: result: unknown" >&5
8861 echo "${ECHO_T}unknown" >&6
8862 echo Byte order could not determined.
8863 exit 1
8864 fi
8865
8866
8867
8868 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8869 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8870 if test "$cross_compiling" = yes; then
8871   CROSSCOMPILE=1
8872 else
8873   cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h.  */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h.  */
8879
8880 #include "stdlib.h"
8881 int main (int argc, char*argv[])
8882 {
8883     return system("test `touch config.tmp2`");
8884 }
8885
8886 _ACEOF
8887 rm -f conftest$ac_exeext
8888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889   (eval $ac_link) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894   (eval $ac_try) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); }; }; then
8898   OK=OK
8899 else
8900   echo "$as_me: program exited with status $ac_status" >&5
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8903
8904 fi
8905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8906 fi
8907
8908 if test "x${OK}" = "xOK";then
8909     test -f config.tmp2 || OK=
8910 fi
8911
8912 if test "x${CROSSCOMPILE}" = "x1";then
8913     OK=OK;
8914 fi
8915 if test "x${OK}" = "xOK";then
8916 rm -f config.tmp2
8917 echo "$as_me:$LINENO: result: yes" >&5
8918 echo "${ECHO_T}yes" >&6
8919 SYSTEM_BACKTICKS=1
8920 export SYSTEM_BACKTICKS
8921 cat >>confdefs.h <<_ACEOF
8922 #define SYSTEM_BACKTICKS 1
8923 _ACEOF
8924
8925 else
8926 echo "$as_me:$LINENO: result: no" >&5
8927 echo "${ECHO_T}no" >&6
8928 fi
8929
8930
8931
8932 test "$program_prefix" != NONE &&
8933   program_transform_name="s,^,$program_prefix,;$program_transform_name"
8934 # Use a double $ so make ignores it.
8935 test "$program_suffix" != NONE &&
8936   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8937 # Double any \ or $.  echo might interpret backslashes.
8938 # By default was `s,x,x', remove it if useless.
8939 cat <<\_ACEOF >conftest.sed
8940 s/[\\$]/&&/g;s/;s,x,x,$//
8941 _ACEOF
8942 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8943 rm conftest.sed
8944
8945
8946            ac_config_headers="$ac_config_headers config.h"
8947
8948
8949
8950
8951
8952
8953 ac_header_dirent=no
8954 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8955   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8956 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8957 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8959   echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961   cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967 #include <sys/types.h>
8968 #include <$ac_hdr>
8969
8970 int
8971 main ()
8972 {
8973 if ((DIR *) 0)
8974 return 0;
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 rm -f conftest.$ac_objext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981   (eval $ac_compile) 2>conftest.er1
8982   ac_status=$?
8983   grep -v '^ *+' conftest.er1 >conftest.err
8984   rm -f conftest.er1
8985   cat conftest.err >&5
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } &&
8988          { ac_try='test -z "$ac_c_werror_flag"
8989                          || test ! -s conftest.err'
8990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991   (eval $ac_try) 2>&5
8992   ac_status=$?
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); }; } &&
8995          { ac_try='test -s conftest.$ac_objext'
8996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997   (eval $ac_try) 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; }; then
9001   eval "$as_ac_Header=yes"
9002 else
9003   echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006 eval "$as_ac_Header=no"
9007 fi
9008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9009 fi
9010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9013   cat >>confdefs.h <<_ACEOF
9014 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9015 _ACEOF
9016
9017 ac_header_dirent=$ac_hdr; break
9018 fi
9019
9020 done
9021 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9022 if test $ac_header_dirent = dirent.h; then
9023   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9024 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9025 if test "${ac_cv_search_opendir+set}" = set; then
9026   echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028   ac_func_search_save_LIBS=$LIBS
9029 ac_cv_search_opendir=no
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h.  */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h.  */
9036
9037 /* Override any gcc2 internal prototype to avoid an error.  */
9038 #ifdef __cplusplus
9039 extern "C"
9040 #endif
9041 /* We use char because int might match the return type of a gcc2
9042    builtin and then its argument prototype would still apply.  */
9043 char opendir ();
9044 int
9045 main ()
9046 {
9047 opendir ();
9048   ;
9049   return 0;
9050 }
9051 _ACEOF
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9054   (eval $ac_link) 2>conftest.er1
9055   ac_status=$?
9056   grep -v '^ *+' conftest.er1 >conftest.err
9057   rm -f conftest.er1
9058   cat conftest.err >&5
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); } &&
9061          { ac_try='test -z "$ac_c_werror_flag"
9062                          || test ! -s conftest.err'
9063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064   (eval $ac_try) 2>&5
9065   ac_status=$?
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); }; } &&
9068          { ac_try='test -s conftest$ac_exeext'
9069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070   (eval $ac_try) 2>&5
9071   ac_status=$?
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); }; }; then
9074   ac_cv_search_opendir="none required"
9075 else
9076   echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9078
9079 fi
9080 rm -f conftest.err conftest.$ac_objext \
9081       conftest$ac_exeext conftest.$ac_ext
9082 if test "$ac_cv_search_opendir" = no; then
9083   for ac_lib in dir; do
9084     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9085     cat >conftest.$ac_ext <<_ACEOF
9086 /* confdefs.h.  */
9087 _ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h.  */
9091
9092 /* Override any gcc2 internal prototype to avoid an error.  */
9093 #ifdef __cplusplus
9094 extern "C"
9095 #endif
9096 /* We use char because int might match the return type of a gcc2
9097    builtin and then its argument prototype would still apply.  */
9098 char opendir ();
9099 int
9100 main ()
9101 {
9102 opendir ();
9103   ;
9104   return 0;
9105 }
9106 _ACEOF
9107 rm -f conftest.$ac_objext conftest$ac_exeext
9108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109   (eval $ac_link) 2>conftest.er1
9110   ac_status=$?
9111   grep -v '^ *+' conftest.er1 >conftest.err
9112   rm -f conftest.er1
9113   cat conftest.err >&5
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } &&
9116          { ac_try='test -z "$ac_c_werror_flag"
9117                          || test ! -s conftest.err'
9118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119   (eval $ac_try) 2>&5
9120   ac_status=$?
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); }; } &&
9123          { ac_try='test -s conftest$ac_exeext'
9124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125   (eval $ac_try) 2>&5
9126   ac_status=$?
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); }; }; then
9129   ac_cv_search_opendir="-l$ac_lib"
9130 break
9131 else
9132   echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 fi
9136 rm -f conftest.err conftest.$ac_objext \
9137       conftest$ac_exeext conftest.$ac_ext
9138   done
9139 fi
9140 LIBS=$ac_func_search_save_LIBS
9141 fi
9142 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9143 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9144 if test "$ac_cv_search_opendir" != no; then
9145   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9146
9147 fi
9148
9149 else
9150   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9151 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9152 if test "${ac_cv_search_opendir+set}" = set; then
9153   echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155   ac_func_search_save_LIBS=$LIBS
9156 ac_cv_search_opendir=no
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h.  */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h.  */
9163
9164 /* Override any gcc2 internal prototype to avoid an error.  */
9165 #ifdef __cplusplus
9166 extern "C"
9167 #endif
9168 /* We use char because int might match the return type of a gcc2
9169    builtin and then its argument prototype would still apply.  */
9170 char opendir ();
9171 int
9172 main ()
9173 {
9174 opendir ();
9175   ;
9176   return 0;
9177 }
9178 _ACEOF
9179 rm -f conftest.$ac_objext conftest$ac_exeext
9180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9181   (eval $ac_link) 2>conftest.er1
9182   ac_status=$?
9183   grep -v '^ *+' conftest.er1 >conftest.err
9184   rm -f conftest.er1
9185   cat conftest.err >&5
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); } &&
9188          { ac_try='test -z "$ac_c_werror_flag"
9189                          || test ! -s conftest.err'
9190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191   (eval $ac_try) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); }; } &&
9195          { ac_try='test -s conftest$ac_exeext'
9196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197   (eval $ac_try) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); }; }; then
9201   ac_cv_search_opendir="none required"
9202 else
9203   echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9205
9206 fi
9207 rm -f conftest.err conftest.$ac_objext \
9208       conftest$ac_exeext conftest.$ac_ext
9209 if test "$ac_cv_search_opendir" = no; then
9210   for ac_lib in x; do
9211     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9212     cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218
9219 /* Override any gcc2 internal prototype to avoid an error.  */
9220 #ifdef __cplusplus
9221 extern "C"
9222 #endif
9223 /* We use char because int might match the return type of a gcc2
9224    builtin and then its argument prototype would still apply.  */
9225 char opendir ();
9226 int
9227 main ()
9228 {
9229 opendir ();
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236   (eval $ac_link) 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -z "$ac_c_werror_flag"
9244                          || test ! -s conftest.err'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; } &&
9250          { ac_try='test -s conftest$ac_exeext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   ac_cv_search_opendir="-l$ac_lib"
9257 break
9258 else
9259   echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9261
9262 fi
9263 rm -f conftest.err conftest.$ac_objext \
9264       conftest$ac_exeext conftest.$ac_ext
9265   done
9266 fi
9267 LIBS=$ac_func_search_save_LIBS
9268 fi
9269 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9270 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9271 if test "$ac_cv_search_opendir" != no; then
9272   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9273
9274 fi
9275
9276 fi
9277
9278  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9279 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9280 if test "${ac_cv_header_stdc+set}" = set; then
9281   echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283   cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h.  */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h.  */
9289 #include <stdlib.h>
9290 #include <stdarg.h>
9291 #include <string.h>
9292 #include <float.h>
9293
9294 int
9295 main ()
9296 {
9297
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 rm -f conftest.$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304   (eval $ac_compile) 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } &&
9311          { ac_try='test -z "$ac_c_werror_flag"
9312                          || test ! -s conftest.err'
9313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314   (eval $ac_try) 2>&5
9315   ac_status=$?
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); }; } &&
9318          { ac_try='test -s conftest.$ac_objext'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; }; then
9324   ac_cv_header_stdc=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ac_cv_header_stdc=no
9330 fi
9331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9332
9333 if test $ac_cv_header_stdc = yes; then
9334   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9335   cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h.  */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h.  */
9341 #include <string.h>
9342
9343 _ACEOF
9344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9345   $EGREP "memchr" >/dev/null 2>&1; then
9346   :
9347 else
9348   ac_cv_header_stdc=no
9349 fi
9350 rm -f conftest*
9351
9352 fi
9353
9354 if test $ac_cv_header_stdc = yes; then
9355   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9356   cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h.  */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h.  */
9362 #include <stdlib.h>
9363
9364 _ACEOF
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366   $EGREP "free" >/dev/null 2>&1; then
9367   :
9368 else
9369   ac_cv_header_stdc=no
9370 fi
9371 rm -f conftest*
9372
9373 fi
9374
9375 if test $ac_cv_header_stdc = yes; then
9376   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9377   if test "$cross_compiling" = yes; then
9378   :
9379 else
9380   cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386 #include <ctype.h>
9387 #if ((' ' & 0x0FF) == 0x020)
9388 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9389 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9390 #else
9391 # define ISLOWER(c) \
9392                    (('a' <= (c) && (c) <= 'i') \
9393                      || ('j' <= (c) && (c) <= 'r') \
9394                      || ('s' <= (c) && (c) <= 'z'))
9395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9396 #endif
9397
9398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9399 int
9400 main ()
9401 {
9402   int i;
9403   for (i = 0; i < 256; i++)
9404     if (XOR (islower (i), ISLOWER (i))
9405         || toupper (i) != TOUPPER (i))
9406       exit(2);
9407   exit (0);
9408 }
9409 _ACEOF
9410 rm -f conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412   (eval $ac_link) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; }; then
9421   :
9422 else
9423   echo "$as_me: program exited with status $ac_status" >&5
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9426
9427 ( exit $ac_status )
9428 ac_cv_header_stdc=no
9429 fi
9430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9431 fi
9432 fi
9433 fi
9434 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9435 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9436 if test $ac_cv_header_stdc = yes; then
9437
9438 cat >>confdefs.h <<\_ACEOF
9439 #define STDC_HEADERS 1
9440 _ACEOF
9441
9442 fi
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459 for ac_header in zlib.h gif_lib.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
9460 do
9461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9463   echo "$as_me:$LINENO: checking for $ac_header" >&5
9464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 fi
9468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9470 else
9471   # Is the header compilable?
9472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h.  */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h.  */
9480 $ac_includes_default
9481 #include <$ac_header>
9482 _ACEOF
9483 rm -f conftest.$ac_objext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9485   (eval $ac_compile) 2>conftest.er1
9486   ac_status=$?
9487   grep -v '^ *+' conftest.er1 >conftest.err
9488   rm -f conftest.er1
9489   cat conftest.err >&5
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -z "$ac_c_werror_flag"
9493                          || test ! -s conftest.err'
9494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495   (eval $ac_try) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; } &&
9499          { ac_try='test -s conftest.$ac_objext'
9500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501   (eval $ac_try) 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); }; }; then
9505   ac_header_compiler=yes
9506 else
9507   echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510 ac_header_compiler=no
9511 fi
9512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9514 echo "${ECHO_T}$ac_header_compiler" >&6
9515
9516 # Is the header present?
9517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h.  */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h.  */
9525 #include <$ac_header>
9526 _ACEOF
9527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9529   ac_status=$?
9530   grep -v '^ *+' conftest.er1 >conftest.err
9531   rm -f conftest.er1
9532   cat conftest.err >&5
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); } >/dev/null; then
9535   if test -s conftest.err; then
9536     ac_cpp_err=$ac_c_preproc_warn_flag
9537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9538   else
9539     ac_cpp_err=
9540   fi
9541 else
9542   ac_cpp_err=yes
9543 fi
9544 if test -z "$ac_cpp_err"; then
9545   ac_header_preproc=yes
9546 else
9547   echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550   ac_header_preproc=no
9551 fi
9552 rm -f conftest.err conftest.$ac_ext
9553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9554 echo "${ECHO_T}$ac_header_preproc" >&6
9555
9556 # So?  What about this header?
9557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9558   yes:no: )
9559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9563     ac_header_preproc=yes
9564     ;;
9565   no:yes:* )
9566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9578     (
9579       cat <<\_ASBOX
9580 ## ------------------------------------------ ##
9581 ## Report this to the AC_PACKAGE_NAME lists.  ##
9582 ## ------------------------------------------ ##
9583 _ASBOX
9584     ) |
9585       sed "s/^/$as_me: WARNING:     /" >&2
9586     ;;
9587 esac
9588 echo "$as_me:$LINENO: checking for $ac_header" >&5
9589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9591   echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593   eval "$as_ac_Header=\$ac_header_preproc"
9594 fi
9595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9597
9598 fi
9599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9600   cat >>confdefs.h <<_ACEOF
9601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9602 _ACEOF
9603
9604 fi
9605
9606 done
9607
9608
9609 cat >>confdefs.h <<_ACEOF
9610 #define PACKAGE "$PACKAGE"
9611 _ACEOF
9612
9613 cat >>confdefs.h <<_ACEOF
9614 #define VERSION "$VERSION"
9615 _ACEOF
9616
9617
9618
9619
9620
9621
9622
9623  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9624 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9625 if test "${ac_cv_c_const+set}" = set; then
9626   echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628   cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h.  */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h.  */
9634
9635 int
9636 main ()
9637 {
9638 /* FIXME: Include the comments suggested by Paul. */
9639 #ifndef __cplusplus
9640   /* Ultrix mips cc rejects this.  */
9641   typedef int charset[2];
9642   const charset x;
9643   /* SunOS 4.1.1 cc rejects this.  */
9644   char const *const *ccp;
9645   char **p;
9646   /* NEC SVR4.0.2 mips cc rejects this.  */
9647   struct point {int x, y;};
9648   static struct point const zero = {0,0};
9649   /* AIX XL C 1.02.0.0 rejects this.
9650      It does not let you subtract one const X* pointer from another in
9651      an arm of an if-expression whose if-part is not a constant
9652      expression */
9653   const char *g = "string";
9654   ccp = &g + (g ? g-g : 0);
9655   /* HPUX 7.0 cc rejects these. */
9656   ++ccp;
9657   p = (char**) ccp;
9658   ccp = (char const *const *) p;
9659   { /* SCO 3.2v4 cc rejects this.  */
9660     char *t;
9661     char const *s = 0 ? (char *) 0 : (char const *) 0;
9662
9663     *t++ = 0;
9664   }
9665   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9666     int x[] = {25, 17};
9667     const int *foo = &x[0];
9668     ++foo;
9669   }
9670   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9671     typedef const int *iptr;
9672     iptr p = 0;
9673     ++p;
9674   }
9675   { /* AIX XL C 1.02.0.0 rejects this saying
9676        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9677     struct s { int j; const int *ap[3]; };
9678     struct s *b; b->j = 5;
9679   }
9680   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9681     const int foo = 10;
9682   }
9683 #endif
9684
9685   ;
9686   return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691   (eval $ac_compile) 2>conftest.er1
9692   ac_status=$?
9693   grep -v '^ *+' conftest.er1 >conftest.err
9694   rm -f conftest.er1
9695   cat conftest.err >&5
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); } &&
9698          { ac_try='test -z "$ac_c_werror_flag"
9699                          || test ! -s conftest.err'
9700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701   (eval $ac_try) 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; } &&
9705          { ac_try='test -s conftest.$ac_objext'
9706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707   (eval $ac_try) 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; }; then
9711   ac_cv_c_const=yes
9712 else
9713   echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9715
9716 ac_cv_c_const=no
9717 fi
9718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9719 fi
9720 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9721 echo "${ECHO_T}$ac_cv_c_const" >&6
9722 if test $ac_cv_c_const = no; then
9723
9724 cat >>confdefs.h <<\_ACEOF
9725 #define const
9726 _ACEOF
9727
9728 fi
9729
9730  echo "$as_me:$LINENO: checking for inline" >&5
9731 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9732 if test "${ac_cv_c_inline+set}" = set; then
9733   echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735   ac_cv_c_inline=no
9736 for ac_kw in inline __inline__ __inline; do
9737   cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 #ifndef __cplusplus
9744 typedef int foo_t;
9745 static $ac_kw foo_t static_foo () {return 0; }
9746 $ac_kw foo_t foo () {return 0; }
9747 #endif
9748
9749 _ACEOF
9750 rm -f conftest.$ac_objext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752   (eval $ac_compile) 2>conftest.er1
9753   ac_status=$?
9754   grep -v '^ *+' conftest.er1 >conftest.err
9755   rm -f conftest.er1
9756   cat conftest.err >&5
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } &&
9759          { ac_try='test -z "$ac_c_werror_flag"
9760                          || test ! -s conftest.err'
9761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762   (eval $ac_try) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; } &&
9766          { ac_try='test -s conftest.$ac_objext'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; }; then
9772   ac_cv_c_inline=$ac_kw; break
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 fi
9778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9779 done
9780
9781 fi
9782 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9783 echo "${ECHO_T}$ac_cv_c_inline" >&6
9784
9785
9786 case $ac_cv_c_inline in
9787   inline | yes) ;;
9788   *)
9789     case $ac_cv_c_inline in
9790       no) ac_val=;;
9791       *) ac_val=$ac_cv_c_inline;;
9792     esac
9793     cat >>confdefs.h <<_ACEOF
9794 #ifndef __cplusplus
9795 #define inline $ac_val
9796 #endif
9797 _ACEOF
9798     ;;
9799 esac
9800
9801  echo "$as_me:$LINENO: checking for off_t" >&5
9802 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9803 if test "${ac_cv_type_off_t+set}" = set; then
9804   echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806   cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h.  */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h.  */
9812 $ac_includes_default
9813 int
9814 main ()
9815 {
9816 if ((off_t *) 0)
9817   return 0;
9818 if (sizeof (off_t))
9819   return 0;
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9826   (eval $ac_compile) 2>conftest.er1
9827   ac_status=$?
9828   grep -v '^ *+' conftest.er1 >conftest.err
9829   rm -f conftest.er1
9830   cat conftest.err >&5
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); } &&
9833          { ac_try='test -z "$ac_c_werror_flag"
9834                          || test ! -s conftest.err'
9835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836   (eval $ac_try) 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); }; } &&
9840          { ac_try='test -s conftest.$ac_objext'
9841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842   (eval $ac_try) 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; }; then
9846   ac_cv_type_off_t=yes
9847 else
9848   echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ac_cv_type_off_t=no
9852 fi
9853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9854 fi
9855 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9856 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9857 if test $ac_cv_type_off_t = yes; then
9858   :
9859 else
9860
9861 cat >>confdefs.h <<_ACEOF
9862 #define off_t long
9863 _ACEOF
9864
9865 fi
9866
9867  echo "$as_me:$LINENO: checking for size_t" >&5
9868 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9869 if test "${ac_cv_type_size_t+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878 $ac_includes_default
9879 int
9880 main ()
9881 {
9882 if ((size_t *) 0)
9883   return 0;
9884 if (sizeof (size_t))
9885   return 0;
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9892   (eval $ac_compile) 2>conftest.er1
9893   ac_status=$?
9894   grep -v '^ *+' conftest.er1 >conftest.err
9895   rm -f conftest.er1
9896   cat conftest.err >&5
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); } &&
9899          { ac_try='test -z "$ac_c_werror_flag"
9900                          || test ! -s conftest.err'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; } &&
9906          { ac_try='test -s conftest.$ac_objext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912   ac_cv_type_size_t=yes
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 ac_cv_type_size_t=no
9918 fi
9919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9920 fi
9921 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9922 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9923 if test $ac_cv_type_size_t = yes; then
9924   :
9925 else
9926
9927 cat >>confdefs.h <<_ACEOF
9928 #define size_t unsigned
9929 _ACEOF
9930
9931 fi
9932
9933  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9934 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9935 if test "${ac_cv_struct_tm+set}" = set; then
9936   echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938   cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h.  */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h.  */
9944 #include <sys/types.h>
9945 #include <time.h>
9946
9947 int
9948 main ()
9949 {
9950 struct tm *tp; tp->tm_sec;
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9957   (eval $ac_compile) 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } &&
9964          { ac_try='test -z "$ac_c_werror_flag"
9965                          || test ! -s conftest.err'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; } &&
9971          { ac_try='test -s conftest.$ac_objext'
9972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973   (eval $ac_try) 2>&5
9974   ac_status=$?
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); }; }; then
9977   ac_cv_struct_tm=time.h
9978 else
9979   echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 ac_cv_struct_tm=sys/time.h
9983 fi
9984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9985 fi
9986 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9987 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9988 if test $ac_cv_struct_tm = sys/time.h; then
9989
9990 cat >>confdefs.h <<\_ACEOF
9991 #define TM_IN_SYS_TIME 1
9992 _ACEOF
9993
9994 fi
9995
9996  echo "$as_me:$LINENO: checking for boolean" >&5
9997 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9998 if test "${ac_cv_type_boolean+set}" = set; then
9999   echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001   cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h.  */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h.  */
10007 $ac_includes_default
10008 int
10009 main ()
10010 {
10011 if ((boolean *) 0)
10012   return 0;
10013 if (sizeof (boolean))
10014   return 0;
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10021   (eval $ac_compile) 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_objext'
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   ac_cv_type_boolean=yes
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 ac_cv_type_boolean=no
10047 fi
10048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10049 fi
10050 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10051 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10052 if test $ac_cv_type_boolean = yes; then
10053   :
10054 else
10055
10056 cat >>confdefs.h <<_ACEOF
10057 #define boolean int
10058 _ACEOF
10059
10060 fi
10061  #needed for jpeglib
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10074 do
10075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10076 echo "$as_me:$LINENO: checking for $ac_func" >&5
10077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_var+set}\" = set"; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10089 #define $ac_func innocuous_$ac_func
10090
10091 /* System header to define __stub macros and hopefully few prototypes,
10092     which can conflict with char $ac_func (); below.
10093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094     <limits.h> exists even on freestanding compilers.  */
10095
10096 #ifdef __STDC__
10097 # include <limits.h>
10098 #else
10099 # include <assert.h>
10100 #endif
10101
10102 #undef $ac_func
10103
10104 /* Override any gcc2 internal prototype to avoid an error.  */
10105 #ifdef __cplusplus
10106 extern "C"
10107 {
10108 #endif
10109 /* We use char because int might match the return type of a gcc2
10110    builtin and then its argument prototype would still apply.  */
10111 char $ac_func ();
10112 /* The GNU C library defines this for functions which it implements
10113     to always fail with ENOSYS.  Some functions are actually named
10114     something starting with __ and the normal name is an alias.  */
10115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10116 choke me
10117 #else
10118 char (*f) () = $ac_func;
10119 #endif
10120 #ifdef __cplusplus
10121 }
10122 #endif
10123
10124 int
10125 main ()
10126 {
10127 return f != $ac_func;
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134   (eval $ac_link) 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } &&
10141          { ac_try='test -z "$ac_c_werror_flag"
10142                          || test ! -s conftest.err'
10143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144   (eval $ac_try) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; } &&
10148          { ac_try='test -s conftest$ac_exeext'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; }; then
10154   eval "$as_ac_var=yes"
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 eval "$as_ac_var=no"
10160 fi
10161 rm -f conftest.err conftest.$ac_objext \
10162       conftest$ac_exeext conftest.$ac_ext
10163 fi
10164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10166 if test `eval echo '${'$as_ac_var'}'` = yes; then
10167   cat >>confdefs.h <<_ACEOF
10168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10169 _ACEOF
10170
10171 fi
10172 done
10173
10174
10175 # ------------------------------------------------------------------
10176
10177
10178
10179 # Extract the first word of "freetype-config", so it can be a program name with args.
10180 set dummy freetype-config; ac_word=$2
10181 echo "$as_me:$LINENO: checking for $ac_word" >&5
10182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10183 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
10184   echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186   case $FREETYPE_CONFIG in
10187   [\\/]* | ?:[\\/]*)
10188   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
10189   ;;
10190   *)
10191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
10193 for as_dir in $as_dummy
10194 do
10195   IFS=$as_save_IFS
10196   test -z "$as_dir" && as_dir=.
10197   for ac_exec_ext in '' $ac_executable_extensions; do
10198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10201     break 2
10202   fi
10203 done
10204 done
10205
10206   ;;
10207 esac
10208 fi
10209 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
10210
10211 if test -n "$FREETYPE_CONFIG"; then
10212   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10213 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10214 else
10215   echo "$as_me:$LINENO: result: no" >&5
10216 echo "${ECHO_T}no" >&6
10217 fi
10218
10219
10220 OLDCPPFLAGS="${CPPFLAGS}"
10221 OLDLIBS="${LIBS}"
10222 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10223     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
10224 else if test -d /usr/include/freetype2; then
10225     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10226 else if test -d /usr/local/include/freetype2; then
10227     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10228 fi
10229 fi
10230 fi
10231
10232 if test "x${FREETYPE_CONFIG}" '=' "x";then
10233     # if we didn't find the freetype-config program, we won't
10234     # know where the libs are expected to be. So just blindly
10235     # try to link against them.
10236     echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10237 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10238 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241   ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-lfreetype  $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h.  */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h.  */
10249
10250 /* Override any gcc2 internal prototype to avoid an error.  */
10251 #ifdef __cplusplus
10252 extern "C"
10253 #endif
10254 /* We use char because int might match the return type of a gcc2
10255    builtin and then its argument prototype would still apply.  */
10256 char FT_Init_FreeType ();
10257 int
10258 main ()
10259 {
10260 FT_Init_FreeType ();
10261   ;
10262   return 0;
10263 }
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267   (eval $ac_link) 2>conftest.er1
10268   ac_status=$?
10269   grep -v '^ *+' conftest.er1 >conftest.err
10270   rm -f conftest.er1
10271   cat conftest.err >&5
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); } &&
10274          { ac_try='test -z "$ac_c_werror_flag"
10275                          || test ! -s conftest.err'
10276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277   (eval $ac_try) 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); }; } &&
10281          { ac_try='test -s conftest$ac_exeext'
10282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283   (eval $ac_try) 2>&5
10284   ac_status=$?
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); }; }; then
10287   ac_cv_lib_freetype_FT_Init_FreeType=yes
10288 else
10289   echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10291
10292 ac_cv_lib_freetype_FT_Init_FreeType=no
10293 fi
10294 rm -f conftest.err conftest.$ac_objext \
10295       conftest$ac_exeext conftest.$ac_ext
10296 LIBS=$ac_check_lib_save_LIBS
10297 fi
10298 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10299 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10300 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10301   HAVE_LIB_FREETYPE=1
10302 fi
10303
10304 fi
10305
10306
10307 for ac_header in ft2build.h
10308 do
10309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10311   echo "$as_me:$LINENO: checking for $ac_header" >&5
10312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314   echo $ECHO_N "(cached) $ECHO_C" >&6
10315 fi
10316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10318 else
10319   # Is the header compilable?
10320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328 $ac_includes_default
10329 #include <$ac_header>
10330 _ACEOF
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333   (eval $ac_compile) 2>conftest.er1
10334   ac_status=$?
10335   grep -v '^ *+' conftest.er1 >conftest.err
10336   rm -f conftest.er1
10337   cat conftest.err >&5
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); } &&
10340          { ac_try='test -z "$ac_c_werror_flag"
10341                          || test ! -s conftest.err'
10342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343   (eval $ac_try) 2>&5
10344   ac_status=$?
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); }; } &&
10347          { ac_try='test -s conftest.$ac_objext'
10348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349   (eval $ac_try) 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); }; }; then
10353   ac_header_compiler=yes
10354 else
10355   echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10357
10358 ac_header_compiler=no
10359 fi
10360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10362 echo "${ECHO_T}$ac_header_compiler" >&6
10363
10364 # Is the header present?
10365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h.  */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h.  */
10373 #include <$ac_header>
10374 _ACEOF
10375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10377   ac_status=$?
10378   grep -v '^ *+' conftest.er1 >conftest.err
10379   rm -f conftest.er1
10380   cat conftest.err >&5
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); } >/dev/null; then
10383   if test -s conftest.err; then
10384     ac_cpp_err=$ac_c_preproc_warn_flag
10385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10386   else
10387     ac_cpp_err=
10388   fi
10389 else
10390   ac_cpp_err=yes
10391 fi
10392 if test -z "$ac_cpp_err"; then
10393   ac_header_preproc=yes
10394 else
10395   echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398   ac_header_preproc=no
10399 fi
10400 rm -f conftest.err conftest.$ac_ext
10401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10402 echo "${ECHO_T}$ac_header_preproc" >&6
10403
10404 # So?  What about this header?
10405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10406   yes:no: )
10407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10411     ac_header_preproc=yes
10412     ;;
10413   no:yes:* )
10414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10426     (
10427       cat <<\_ASBOX
10428 ## ------------------------------------------ ##
10429 ## Report this to the AC_PACKAGE_NAME lists.  ##
10430 ## ------------------------------------------ ##
10431 _ASBOX
10432     ) |
10433       sed "s/^/$as_me: WARNING:     /" >&2
10434     ;;
10435 esac
10436 echo "$as_me:$LINENO: checking for $ac_header" >&5
10437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10439   echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441   eval "$as_ac_Header=\$ac_header_preproc"
10442 fi
10443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10445
10446 fi
10447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10448   cat >>confdefs.h <<_ACEOF
10449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10450 _ACEOF
10451  HAVE_FT2BUILD_H=1
10452 fi
10453
10454 done
10455
10456 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
10457
10458 for ac_header in freetype/freetype.h
10459 do
10460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10462   echo "$as_me:$LINENO: checking for $ac_header" >&5
10463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10465   echo $ECHO_N "(cached) $ECHO_C" >&6
10466 fi
10467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10469 else
10470   # Is the header compilable?
10471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h.  */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h.  */
10479 $ac_includes_default
10480 #include <$ac_header>
10481 _ACEOF
10482 rm -f conftest.$ac_objext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10484   (eval $ac_compile) 2>conftest.er1
10485   ac_status=$?
10486   grep -v '^ *+' conftest.er1 >conftest.err
10487   rm -f conftest.er1
10488   cat conftest.err >&5
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } &&
10491          { ac_try='test -z "$ac_c_werror_flag"
10492                          || test ! -s conftest.err'
10493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494   (eval $ac_try) 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); }; } &&
10498          { ac_try='test -s conftest.$ac_objext'
10499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500   (eval $ac_try) 2>&5
10501   ac_status=$?
10502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503   (exit $ac_status); }; }; then
10504   ac_header_compiler=yes
10505 else
10506   echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509 ac_header_compiler=no
10510 fi
10511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10513 echo "${ECHO_T}$ac_header_compiler" >&6
10514
10515 # Is the header present?
10516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10518 cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524 #include <$ac_header>
10525 _ACEOF
10526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10528   ac_status=$?
10529   grep -v '^ *+' conftest.er1 >conftest.err
10530   rm -f conftest.er1
10531   cat conftest.err >&5
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); } >/dev/null; then
10534   if test -s conftest.err; then
10535     ac_cpp_err=$ac_c_preproc_warn_flag
10536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10537   else
10538     ac_cpp_err=
10539   fi
10540 else
10541   ac_cpp_err=yes
10542 fi
10543 if test -z "$ac_cpp_err"; then
10544   ac_header_preproc=yes
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549   ac_header_preproc=no
10550 fi
10551 rm -f conftest.err conftest.$ac_ext
10552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10553 echo "${ECHO_T}$ac_header_preproc" >&6
10554
10555 # So?  What about this header?
10556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10557   yes:no: )
10558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10562     ac_header_preproc=yes
10563     ;;
10564   no:yes:* )
10565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10567     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10568 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10569     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10571     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10572 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10575     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10577     (
10578       cat <<\_ASBOX
10579 ## ------------------------------------------ ##
10580 ## Report this to the AC_PACKAGE_NAME lists.  ##
10581 ## ------------------------------------------ ##
10582 _ASBOX
10583     ) |
10584       sed "s/^/$as_me: WARNING:     /" >&2
10585     ;;
10586 esac
10587 echo "$as_me:$LINENO: checking for $ac_header" >&5
10588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10590   echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592   eval "$as_ac_Header=\$ac_header_preproc"
10593 fi
10594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10596
10597 fi
10598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10599   cat >>confdefs.h <<_ACEOF
10600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10601 _ACEOF
10602  HAVE_FREETYPE_FREETYPE_H=1
10603 fi
10604
10605 done
10606
10607 fi
10608
10609 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
10610         "x${FREETYPE_CONFIG}" '!=' "x";then
10611     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10612         HAVE_FREETYPE=1
10613     fi
10614     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10615         HAVE_FREETYPE=1
10616     fi
10617 fi
10618
10619 if test "x${HAVE_FREETYPE}" = "x1"; then
10620     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10621         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
10622     else
10623         LIBS="$LIBS -lfreetype"
10624     fi
10625
10626     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10627         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10628     fi
10629
10630     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10631 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10632
10633     cat > conftest.c << EOF
10634 $HAVE_FT2BUILD_H_DEFINE
10635
10636 #ifdef HAVE_FT2BUILD_H
10637 #include <ft2build.h>
10638 #include FT_FREETYPE_H
10639 #include FT_GLYPH_H
10640 #include FT_SIZES_H
10641 #include FT_SFNT_NAMES_H
10642 #include FT_TRUETYPE_IDS_H
10643 #include FT_OUTLINE_H
10644 #else
10645 #include <freetype/freetype.h>
10646 #include <freetype/ftglyph.h>
10647 #include <freetype/ftsizes.h>
10648 #include <freetype/ftsnames.h>
10649 #include <freetype/ttnameid.h>
10650 #include <freetype/ftoutln.h>
10651 #endif
10652
10653 int main()
10654 {
10655     FT_Library ftlibrary;
10656     FT_Face face;
10657     FT_Error error;
10658     FT_ULong charcode;
10659     FT_UInt gindex;
10660     FT_Glyph glyph;
10661     FT_BBox bbox;
10662     FT_Matrix matrix;
10663     FT_UInt i;
10664     char* name = 0;
10665     char italic, bold;
10666
10667     FT_Init_FreeType(&ftlibrary);
10668     FT_New_Face(ftlibrary, "filename", 0, &face);
10669     i = face->num_glyphs - 1;
10670     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10671     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10672     FT_Get_Postscript_Name(face);
10673     FT_Get_Char_Index(face, 33);
10674     FT_Get_First_Char(face, &i);
10675     FT_Get_Next_Char(face, 33, &i);
10676     if(FT_HAS_GLYPH_NAMES(face)) {
10677         FT_Get_Glyph_Name(face, 33, name, 127);
10678     }
10679     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10680     FT_Get_Glyph(face->glyph, &glyph);
10681     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10682     FT_Done_Glyph(glyph);
10683     FT_Done_Face(face);
10684     FT_Done_FreeType(ftlibrary);
10685     return 0;
10686 }
10687 EOF
10688
10689     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10690     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10691         echo "$as_me:$LINENO: result: yes" >&5
10692 echo "${ECHO_T}yes" >&6
10693         cat >>confdefs.h <<_ACEOF
10694 #define HAVE_FREETYPE 1
10695 _ACEOF
10696
10697         cat >>confdefs.h <<_ACEOF
10698 #define USE_FREETYPE 1
10699 _ACEOF
10700   # for ttf2tp1
10701     else
10702         echo "configure: failed program was:" >&5
10703         cat conftest.c >&5
10704         HAVE_FREETYPE=0
10705         echo "$as_me:$LINENO: result: no" >&5
10706 echo "${ECHO_T}no" >&6
10707     fi
10708     rm -f conftest*
10709 fi
10710
10711 # if the above didn't work out, reset all changes to the compiler variables.
10712 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10713     CPPFLAGS=$OLDCPPFLAGS
10714     LIBS=$OLDLIBS
10715 fi
10716
10717
10718
10719 OLDCPPFLAGS="${CPPFLAGS}"
10720 OLDLIBS="${LIBS}"
10721
10722 if test -d /usr/include/fontconfig; then
10723     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10724 fi
10725
10726 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10727 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10728 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lfontconfig  $LIBS"
10733 cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h.  */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h.  */
10739
10740 /* Override any gcc2 internal prototype to avoid an error.  */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 /* We use char because int might match the return type of a gcc2
10745    builtin and then its argument prototype would still apply.  */
10746 char FcInit ();
10747 int
10748 main ()
10749 {
10750 FcInit ();
10751   ;
10752   return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757   (eval $ac_link) 2>conftest.er1
10758   ac_status=$?
10759   grep -v '^ *+' conftest.er1 >conftest.err
10760   rm -f conftest.er1
10761   cat conftest.err >&5
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); } &&
10764          { ac_try='test -z "$ac_c_werror_flag"
10765                          || test ! -s conftest.err'
10766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767   (eval $ac_try) 2>&5
10768   ac_status=$?
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); }; } &&
10771          { ac_try='test -s conftest$ac_exeext'
10772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773   (eval $ac_try) 2>&5
10774   ac_status=$?
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); }; }; then
10777   ac_cv_lib_fontconfig_FcInit=yes
10778 else
10779   echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10781
10782 ac_cv_lib_fontconfig_FcInit=no
10783 fi
10784 rm -f conftest.err conftest.$ac_objext \
10785       conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
10787 fi
10788 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10789 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10790 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10791   HAVE_LIB_FONTCONFIG=1
10792 fi
10793
10794
10795 for ac_header in fontconfig.h
10796 do
10797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799   echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 fi
10804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10806 else
10807   # Is the header compilable?
10808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10810 cat >conftest.$ac_ext <<_ACEOF
10811 /* confdefs.h.  */
10812 _ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h.  */
10816 $ac_includes_default
10817 #include <$ac_header>
10818 _ACEOF
10819 rm -f conftest.$ac_objext
10820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10821   (eval $ac_compile) 2>conftest.er1
10822   ac_status=$?
10823   grep -v '^ *+' conftest.er1 >conftest.err
10824   rm -f conftest.er1
10825   cat conftest.err >&5
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); } &&
10828          { ac_try='test -z "$ac_c_werror_flag"
10829                          || test ! -s conftest.err'
10830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831   (eval $ac_try) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); }; } &&
10835          { ac_try='test -s conftest.$ac_objext'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; }; then
10841   ac_header_compiler=yes
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846 ac_header_compiler=no
10847 fi
10848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10850 echo "${ECHO_T}$ac_header_compiler" >&6
10851
10852 # Is the header present?
10853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h.  */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h.  */
10861 #include <$ac_header>
10862 _ACEOF
10863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10865   ac_status=$?
10866   grep -v '^ *+' conftest.er1 >conftest.err
10867   rm -f conftest.er1
10868   cat conftest.err >&5
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); } >/dev/null; then
10871   if test -s conftest.err; then
10872     ac_cpp_err=$ac_c_preproc_warn_flag
10873     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10874   else
10875     ac_cpp_err=
10876   fi
10877 else
10878   ac_cpp_err=yes
10879 fi
10880 if test -z "$ac_cpp_err"; then
10881   ac_header_preproc=yes
10882 else
10883   echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886   ac_header_preproc=no
10887 fi
10888 rm -f conftest.err conftest.$ac_ext
10889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10890 echo "${ECHO_T}$ac_header_preproc" >&6
10891
10892 # So?  What about this header?
10893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10894   yes:no: )
10895     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10899     ac_header_preproc=yes
10900     ;;
10901   no:yes:* )
10902     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10904     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10905 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10906     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10908     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10909 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10912     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10914     (
10915       cat <<\_ASBOX
10916 ## ------------------------------------------ ##
10917 ## Report this to the AC_PACKAGE_NAME lists.  ##
10918 ## ------------------------------------------ ##
10919 _ASBOX
10920     ) |
10921       sed "s/^/$as_me: WARNING:     /" >&2
10922     ;;
10923 esac
10924 echo "$as_me:$LINENO: checking for $ac_header" >&5
10925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10927   echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929   eval "$as_ac_Header=\$ac_header_preproc"
10930 fi
10931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10933
10934 fi
10935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10936   cat >>confdefs.h <<_ACEOF
10937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10938 _ACEOF
10939  HAVE_FONTCONFIG_H=1
10940 fi
10941
10942 done
10943
10944
10945 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10946 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10947     HAVE_FONTCONFIG=1
10948 fi
10949 fi
10950
10951 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10952     LIBS="$LIBS -lfontconfig"
10953 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10954 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10955
10956 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10957     #move freetype library to the end of libraries, otherwise fontconfig
10958     #won't compile.
10959     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10960 fi
10961
10962 cat > conftest.c << EOF
10963 #include <fontconfig.h>
10964
10965 int main()
10966 {
10967     FcPattern *pattern, *match;
10968     FcResult result;
10969     FcChar8 *v;
10970     FcInit();
10971     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10972     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10973     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10974     FcConfigSubstitute(0, pattern, FcMatchPattern);
10975     FcDefaultSubstitute(pattern);
10976     match = FcFontMatch(0, pattern, &result);
10977     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10978     FcPatternPrint(pattern);
10979     FcPatternDestroy(pattern);
10980     FcPatternDestroy(match);
10981     return 0;
10982 }
10983 EOF
10984
10985     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10986     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10987         echo "$as_me:$LINENO: result: yes" >&5
10988 echo "${ECHO_T}yes" >&6
10989         cat >>confdefs.h <<_ACEOF
10990 #define HAVE_FONTCONFIG 1
10991 _ACEOF
10992
10993     else
10994         echo "configure: failed program was:" >&5
10995         cat conftest.c >&5
10996         HAVE_FONTCONFIG=0
10997         echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6
10999     fi
11000     rm -f conftest*
11001 fi
11002
11003 # if the above didn't work out, reset all changes to the compiler variables.
11004 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
11005     CPPFLAGS=$OLDCPPFLAGS
11006     LIBS=$OLDLIBS
11007 fi
11008
11009
11010 # ------------------------------------------------------------------
11011
11012 lame_objects=
11013 lame_makefile=
11014 if test "x${DISABLE_LAME}" = "xtrue"; then
11015     echo "*" Disabling lame support...
11016 else
11017     # old lame code at lib/lame
11018     if test -f lib/lame/Makefile.in; then
11019         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)"
11020         lame_makefile="lib/lame/Makefile"
11021         CPPFLAGS="$CPPFLAGS -Ilame"
11022         cat >>confdefs.h <<_ACEOF
11023 #define HAVE_LAME 1
11024 _ACEOF
11025
11026     else
11027         if test -d /usr/include/lame; then
11028             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
11029         else
11030             if test -d /usr/local/include/lame; then
11031                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
11032             fi
11033         fi
11034
11035 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
11036 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
11037 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040   ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-lmp3lame  $LIBS"
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h.  */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h.  */
11048
11049 /* Override any gcc2 internal prototype to avoid an error.  */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 /* We use char because int might match the return type of a gcc2
11054    builtin and then its argument prototype would still apply.  */
11055 char lame_init ();
11056 int
11057 main ()
11058 {
11059 lame_init ();
11060   ;
11061   return 0;
11062 }
11063 _ACEOF
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066   (eval $ac_link) 2>conftest.er1
11067   ac_status=$?
11068   grep -v '^ *+' conftest.er1 >conftest.err
11069   rm -f conftest.er1
11070   cat conftest.err >&5
11071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); } &&
11073          { ac_try='test -z "$ac_c_werror_flag"
11074                          || test ! -s conftest.err'
11075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076   (eval $ac_try) 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; } &&
11080          { ac_try='test -s conftest$ac_exeext'
11081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082   (eval $ac_try) 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }; }; then
11086   ac_cv_lib_mp3lame_lame_init=yes
11087 else
11088   echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11090
11091 ac_cv_lib_mp3lame_lame_init=no
11092 fi
11093 rm -f conftest.err conftest.$ac_objext \
11094       conftest$ac_exeext conftest.$ac_ext
11095 LIBS=$ac_check_lib_save_LIBS
11096 fi
11097 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
11098 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
11099 if test $ac_cv_lib_mp3lame_lame_init = yes; then
11100   cat >>confdefs.h <<_ACEOF
11101 #define HAVE_LIBMP3LAME 1
11102 _ACEOF
11103
11104   LIBS="-lmp3lame $LIBS"
11105
11106 else
11107   NO_LIBMP3LAME=1
11108 fi
11109
11110
11111 for ac_header in lame.h
11112 do
11113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11115   echo "$as_me:$LINENO: checking for $ac_header" >&5
11116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 fi
11120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11122 else
11123   # Is the header compilable?
11124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11126 cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132 $ac_includes_default
11133 #include <$ac_header>
11134 _ACEOF
11135 rm -f conftest.$ac_objext
11136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11137   (eval $ac_compile) 2>conftest.er1
11138   ac_status=$?
11139   grep -v '^ *+' conftest.er1 >conftest.err
11140   rm -f conftest.er1
11141   cat conftest.err >&5
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); } &&
11144          { ac_try='test -z "$ac_c_werror_flag"
11145                          || test ! -s conftest.err'
11146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147   (eval $ac_try) 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; } &&
11151          { ac_try='test -s conftest.$ac_objext'
11152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153   (eval $ac_try) 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); }; }; then
11157   ac_header_compiler=yes
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162 ac_header_compiler=no
11163 fi
11164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11166 echo "${ECHO_T}$ac_header_compiler" >&6
11167
11168 # Is the header present?
11169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11171 cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 #include <$ac_header>
11178 _ACEOF
11179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } >/dev/null; then
11187   if test -s conftest.err; then
11188     ac_cpp_err=$ac_c_preproc_warn_flag
11189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11190   else
11191     ac_cpp_err=
11192   fi
11193 else
11194   ac_cpp_err=yes
11195 fi
11196 if test -z "$ac_cpp_err"; then
11197   ac_header_preproc=yes
11198 else
11199   echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202   ac_header_preproc=no
11203 fi
11204 rm -f conftest.err conftest.$ac_ext
11205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6
11207
11208 # So?  What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210   yes:no: )
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215     ac_header_preproc=yes
11216     ;;
11217   no:yes:* )
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11230     (
11231       cat <<\_ASBOX
11232 ## ------------------------------------------ ##
11233 ## Report this to the AC_PACKAGE_NAME lists.  ##
11234 ## ------------------------------------------ ##
11235 _ASBOX
11236     ) |
11237       sed "s/^/$as_me: WARNING:     /" >&2
11238     ;;
11239 esac
11240 echo "$as_me:$LINENO: checking for $ac_header" >&5
11241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11243   echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245   eval "$as_ac_Header=\$ac_header_preproc"
11246 fi
11247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11249
11250 fi
11251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11252   cat >>confdefs.h <<_ACEOF
11253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11254 _ACEOF
11255
11256 fi
11257
11258 done
11259
11260         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11261             cat >>confdefs.h <<_ACEOF
11262 #define HAVE_LAME 1
11263 _ACEOF
11264
11265         fi
11266     fi
11267 fi
11268
11269
11270 # ------------------------------------------------------------------
11271
11272
11273
11274 for ac_prog in avifile-config
11275 do
11276   # Extract the first word of "$ac_prog", so it can be a program name with args.
11277 set dummy $ac_prog; ac_word=$2
11278 echo "$as_me:$LINENO: checking for $ac_word" >&5
11279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11280 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283   if test -n "$AVIFILE_CONFIG"; then
11284   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11285 else
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11288 do
11289   IFS=$as_save_IFS
11290   test -z "$as_dir" && as_dir=.
11291   for ac_exec_ext in '' $ac_executable_extensions; do
11292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11293     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11295     break 2
11296   fi
11297 done
11298 done
11299
11300 fi
11301 fi
11302 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11303 if test -n "$AVIFILE_CONFIG"; then
11304   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11305 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11306 else
11307   echo "$as_me:$LINENO: result: no" >&5
11308 echo "${ECHO_T}no" >&6
11309 fi
11310
11311   test -n "$AVIFILE_CONFIG" && break
11312 done
11313
11314
11315 if test "x$AVIFILE_CONFIG" '!=' "x";then
11316     OLDCPPFLAGS="$CPPFLAGS"
11317     # temporarily add avifile paths to CPPFLAGS...
11318     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11319
11320
11321 for ac_header in avifile/version.h version.h
11322 do
11323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325   echo "$as_me:$LINENO: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 fi
11330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11332 else
11333   # Is the header compilable?
11334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h.  */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h.  */
11342 $ac_includes_default
11343 #include <$ac_header>
11344 _ACEOF
11345 rm -f conftest.$ac_objext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11347   (eval $ac_compile) 2>conftest.er1
11348   ac_status=$?
11349   grep -v '^ *+' conftest.er1 >conftest.err
11350   rm -f conftest.er1
11351   cat conftest.err >&5
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); } &&
11354          { ac_try='test -z "$ac_c_werror_flag"
11355                          || test ! -s conftest.err'
11356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357   (eval $ac_try) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; } &&
11361          { ac_try='test -s conftest.$ac_objext'
11362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363   (eval $ac_try) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; }; then
11367   ac_header_compiler=yes
11368 else
11369   echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11371
11372 ac_header_compiler=no
11373 fi
11374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11376 echo "${ECHO_T}$ac_header_compiler" >&6
11377
11378 # Is the header present?
11379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h.  */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h.  */
11387 #include <$ac_header>
11388 _ACEOF
11389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } >/dev/null; then
11397   if test -s conftest.err; then
11398     ac_cpp_err=$ac_c_preproc_warn_flag
11399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11400   else
11401     ac_cpp_err=
11402   fi
11403 else
11404   ac_cpp_err=yes
11405 fi
11406 if test -z "$ac_cpp_err"; then
11407   ac_header_preproc=yes
11408 else
11409   echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412   ac_header_preproc=no
11413 fi
11414 rm -f conftest.err conftest.$ac_ext
11415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416 echo "${ECHO_T}$ac_header_preproc" >&6
11417
11418 # So?  What about this header?
11419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11420   yes:no: )
11421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425     ac_header_preproc=yes
11426     ;;
11427   no:yes:* )
11428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440     (
11441       cat <<\_ASBOX
11442 ## ------------------------------------------ ##
11443 ## Report this to the AC_PACKAGE_NAME lists.  ##
11444 ## ------------------------------------------ ##
11445 _ASBOX
11446     ) |
11447       sed "s/^/$as_me: WARNING:     /" >&2
11448     ;;
11449 esac
11450 echo "$as_me:$LINENO: checking for $ac_header" >&5
11451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11453   echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455   eval "$as_ac_Header=\$ac_header_preproc"
11456 fi
11457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11459
11460 fi
11461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462   cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464 _ACEOF
11465
11466 fi
11467
11468 done
11469
11470     # ... and reset
11471     CPPFLAGS="$OLDCPPFLAGS"
11472 fi
11473
11474 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11475 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11476
11477 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11478     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11479 fi
11480 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11481     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11482 fi
11483
11484 cat > conftest.cpp << EOF
11485
11486 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11487 // so we have to introduce them this way
11488 $HAVE_VERSION_H_DEFINE
11489 $HAVE_AVIFILE_VERSION_H_DEFINE
11490
11491 #ifdef HAVE_VERSION_H
11492   #include <version.h>
11493 #endif
11494 #ifdef HAVE_AVIFILE_VERSION_H
11495   #include <avifile/version.h>
11496 #endif
11497
11498 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11499    #include <avifile.h>
11500    #include <aviplay.h>
11501    #include <fourcc.h>
11502    #include <creators.h>
11503    #include <StreamInfo.h>
11504    #define VERSION6
11505 #else
11506    #include <avifile.h>
11507    #include <aviplay.h>
11508    #include <aviutil.h>
11509    #define Width width
11510    #define Height height
11511    #define Data data
11512    #define Bpp bpp
11513 #endif
11514
11515 void test()
11516 {
11517   IAviReadFile* player;
11518   IAviReadStream* astream;
11519   IAviReadStream* vstream;
11520   player = CreateIAviReadFile(0);
11521   astream = player->GetStream(0, AviStream::Audio);
11522   vstream = player->GetStream(0, AviStream::Video);
11523   vstream -> StartStreaming();
11524   astream -> StartStreaming();
11525 #ifndef VERSION6
11526   MainAVIHeader head;
11527   player->GetFileHeader(&head);
11528   head.dwMicroSecPerFrame;
11529   head.dwTotalFrames;
11530   head.dwStreams;
11531   head.dwWidth;
11532   head.dwHeight;
11533   head.dwMicroSecPerFrame;
11534   astream->GetEndPos(),
11535   astream->GetEndTime());
11536   player->StreamCount();
11537 #else
11538   StreamInfo*audioinfo;
11539   StreamInfo*videoinfo;
11540   audioinfo = astream->GetStreamInfo();
11541   videoinfo = vstream->GetStreamInfo();
11542   videoinfo->GetVideoWidth();
11543   videoinfo->GetVideoHeight();
11544   audioinfo->GetAudioSamplesPerSec();
11545   videoinfo->GetFps();
11546 #endif
11547   CImage*img = vstream->GetFrame();
11548   img->ToRGB();
11549   img->Data();
11550   img->Bpp();
11551   img->Width();
11552   img->Height();
11553   WAVEFORMATEX wave;
11554   astream->GetAudioFormatInfo(&wave,0);
11555   uint_t a,b;
11556   astream->ReadFrames(0,0,0,a,b);
11557 }
11558 int main (int argc, char*argv)
11559 {
11560     return 0;
11561 }
11562 EOF
11563
11564 if test "x$AVIFILE_CONFIG" '!=' "x";then
11565     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11566     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11567     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11568     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11569       echo "$as_me:$LINENO: result: yes" >&5
11570 echo "${ECHO_T}yes" >&6
11571       AVIFILE=true
11572       export AVIFILE
11573       cat >>confdefs.h <<_ACEOF
11574 #define AVIFILE true
11575 _ACEOF
11576
11577     else
11578       echo "configure: failed program was:" >&5
11579       cat conftest.cpp >&5
11580       echo "$as_me:$LINENO: result: no" >&5
11581 echo "${ECHO_T}no" >&6
11582     fi
11583 else
11584     echo "$as_me:$LINENO: result: no" >&5
11585 echo "${ECHO_T}no" >&6
11586 fi
11587 rm -f conftest*
11588
11589 if test "x${AVIFILE}" = "xtrue"; then
11590     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11591     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11592     cat >>confdefs.h <<_ACEOF
11593 #define HAVE_AVIFILE 1
11594 _ACEOF
11595
11596 fi
11597
11598 if test "x${WIN32}" != "x"; then
11599     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11600     #if test "x${AVIFIL32}" != "x"; then
11601     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11602     #fi
11603     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11604     AVIFIL32=true
11605 fi
11606
11607
11608
11609 # ------------------------------------------------------------------
11610
11611 if test "x${UNCOMPRESS}" = "xgzip"; then
11612     cat >>confdefs.h <<_ACEOF
11613 #define USE_GZIP 1
11614 _ACEOF
11615
11616 fi
11617
11618
11619 # ------------------------------------------------------------------
11620
11621
11622 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11623 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11624
11625 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11626     PY_VERSION=unknown
11627 else
11628     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11629         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11630     fi
11631     # iterate through version 2.2 to 2.4
11632     for v in 2 3 4; do
11633         # Linux
11634         if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
11635             PY_VERSION=2.$v
11636             PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11637             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11638         # Mac OS X
11639         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11640             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
11641             PY_VERSION=2.$v
11642             PYTHON_LIB="-framework Python"
11643             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
11644                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
11645             else
11646                 PYTHON_LIB2="$PYTHON_LIB"
11647             fi
11648             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
11649         # Mac OS X [Fink]:
11650         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
11651                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
11652                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
11653                   ")" \
11654                -a -f "/sw/include/python2.$v/Python.h" \
11655                -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
11656             PY_VERSION=2.$v
11657             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
11658             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
11659         fi
11660     done
11661 fi
11662
11663 if test "x$PY_VERSION" "!=" "x"; then
11664     echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11665 echo "${ECHO_T}$PY_VERSION" >&6
11666     export PYTHON_INCLUDES PYTHON_LIB
11667
11668
11669     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11670 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11671
11672     cat > conftest.c << EOF
11673 #include <Python.h>
11674 #include <Imaging.h>
11675
11676 int main()
11677 {
11678     int ret;
11679     ret = Py_Main(0, 0);
11680     int x; // check also for gcc 2.95.x incompatibilities
11681     return ret;
11682 }
11683 EOF
11684     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11685     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11686         echo "$as_me:$LINENO: result: yes" >&5
11687 echo "${ECHO_T}yes" >&6
11688         PYTHON_OK=yes
11689     else
11690         ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
11691         if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11692             echo "$as_me:$LINENO: result: yes" >&5
11693 echo "${ECHO_T}yes" >&6
11694             PYTHON_LIB="${PYTHON_LIB2}"
11695             PYTHON_OK=yes
11696         else
11697             echo "configure: failed program was:" >&5
11698             cat conftest.c >&5
11699             echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6
11701         fi
11702     fi
11703     rm -f conftest*
11704 else
11705     echo "$as_me:$LINENO: result: nope" >&5
11706 echo "${ECHO_T}nope" >&6
11707 fi
11708
11709
11710 if test "x$PYTHON_OK" '!=' "xyes";then
11711     echo all install uninstall clean: > lib/python/Makefile
11712     # fail silently- the most users won't have any need for the
11713     # python interface anyway
11714 else
11715     pythonrfxswf="lib/python/Makefile"
11716 fi
11717
11718 # ------------------------------------------------------------------
11719
11720 echo "$as_me:$LINENO: checking for missing libraries" >&5
11721 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11722
11723 if test "x$ZLIBMISSING" = "xtrue";then
11724     MISSINGLIBS="${MISSINGLIBS} zlib"
11725     DISABLEPNG2SWF=true
11726     PARTIAL=true
11727 fi
11728 if test "x$JPEGLIBMISSING" = "xtrue";then
11729     MISSINGLIBS="${MISSINGLIBS} jpeglib"
11730     DISABLEPDF2SWF=true
11731     DISABLEJPEG2SWF=true
11732     PARTIAL=true
11733 fi
11734 if test "x$T1LIBMISSING" = "xtrue";then
11735     MISSINGLIBS="${MISSINGLIBS} t1lib"
11736 fi
11737 if test "x$UNGIFMISSING" = "xtrue";then
11738     DISABLEGIF2SWF=true
11739     MISSINGLIBS="${MISSINGLIBS} ungif"
11740     PARTIAL=true
11741 fi
11742
11743 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11744     DISABLEPDF2SWF=true;
11745     DISABLEJPEG2SWF=true;
11746     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11747     PARTIAL=true
11748 fi
11749 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11750     DISABLEPDF2SWF=true;
11751     MISSINGLIBS="${MISSINGLIBS} freetype"
11752     PARTIAL=true
11753 fi
11754 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11755     MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11756 fi
11757 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
11758     DISABLEGIF2SWF=true
11759     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
11760     PARTIAL=true
11761 fi
11762 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11763     DISABLEPNG2SWF=true;
11764     MISSINGLIBS="${MISSINGLIBS} zlib.h"
11765     PARTIAL=true
11766 fi
11767 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11768     MISSINGLIBS="${MISSINGLIBS} avifile"
11769     PARTIAL=true
11770 fi
11771
11772 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11773 echo "${ECHO_T}${MISSINGLIBS}" >&6
11774
11775 # ------------------------------------------------------------------
11776
11777 if test "x${MISSINGLIBS}" '!=' "x"; then
11778   echo "***************************************************"
11779   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11780 fi
11781
11782 avi2swf="avi2swf/Makefile"
11783 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11784  echo "* Disabling avi2swf tool..."
11785  echo all install uninstall clean: > avi2swf/Makefile
11786  avi2swf=
11787 fi
11788
11789 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11790 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11791   echo "* Disabling pdf2swf tool..."
11792   rm -f pdf2swf/Makefile
11793   echo all install uninstall clean: > pdf2swf/Makefile
11794   pdf2swf_makefile=""
11795 fi
11796
11797 if test "x${ZLIBMISSING}" = "xtrue"; then
11798   echo
11799   echo "* Warning! Without zlib, you will not be able to read"
11800   echo "* or write compressed Flash MX files!"
11801 fi
11802
11803 JPEG2SWF='jpeg2swf$(E)'
11804 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11805   echo "* Disabling jpeg2swf tool..."
11806   JPEG2SWF=
11807 fi
11808 export JPEG2SWF
11809
11810
11811 GIF2SWF='gif2swf$(E)'
11812 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
11813   echo "* Disabling gif2swf tool..."
11814   GIF2SWF=
11815 fi
11816 export GIF2SWF
11817
11818
11819 PNG2SWF='png2swf$(E)'
11820 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11821   echo "* Disabling png2swf tool..."
11822   PNG2SWF=
11823 fi
11824 export PNG2SWF
11825
11826
11827 if test "x${MISSINGLIBS}" '!=' "x"; then
11828   if test "x${PARTIAL}" '=' "x"; then
11829     echo "* (never mind)"
11830   fi
11831   echo "***************************************************"
11832 fi
11833
11834 # ------------------------------------------------------------------
11835
11836 if test -f "release.in"; then release_in="./release"; fi
11837 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile"
11838
11839           ac_config_files="$ac_config_files ${FILES}"
11840
11841 cat >confcache <<\_ACEOF
11842 # This file is a shell script that caches the results of configure
11843 # tests run on this system so they can be shared between configure
11844 # scripts and configure runs, see configure's option --config-cache.
11845 # It is not useful on other systems.  If it contains results you don't
11846 # want to keep, you may remove or edit it.
11847 #
11848 # config.status only pays attention to the cache file if you give it
11849 # the --recheck option to rerun configure.
11850 #
11851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11853 # following values.
11854
11855 _ACEOF
11856
11857 # The following way of writing the cache mishandles newlines in values,
11858 # but we know of no workaround that is simple, portable, and efficient.
11859 # So, don't put newlines in cache variables' values.
11860 # Ultrix sh set writes to stderr and can't be redirected directly,
11861 # and sets the high bit in the cache file unless we assign to the vars.
11862 {
11863   (set) 2>&1 |
11864     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11865     *ac_space=\ *)
11866       # `set' does not quote correctly, so add quotes (double-quote
11867       # substitution turns \\\\ into \\, and sed turns \\ into \).
11868       sed -n \
11869         "s/'/'\\\\''/g;
11870           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11871       ;;
11872     *)
11873       # `set' quotes correctly as required by POSIX, so do not add quotes.
11874       sed -n \
11875         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11876       ;;
11877     esac;
11878 } |
11879   sed '
11880      t clear
11881      : clear
11882      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11883      t end
11884      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11885      : end' >>confcache
11886 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11887   if test -w $cache_file; then
11888     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11889     cat confcache >$cache_file
11890   else
11891     echo "not updating unwritable cache $cache_file"
11892   fi
11893 fi
11894 rm -f confcache
11895
11896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11897 # Let make expand exec_prefix.
11898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11899
11900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11902 # trailing colons and then remove the whole line if VPATH becomes empty
11903 # (actually we leave an empty line to preserve line numbers).
11904 if test "x$srcdir" = x.; then
11905   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11906 s/:*\$(srcdir):*/:/;
11907 s/:*\${srcdir}:*/:/;
11908 s/:*@srcdir@:*/:/;
11909 s/^\([^=]*=[     ]*\):*/\1/;
11910 s/:*$//;
11911 s/^[^=]*=[       ]*$//;
11912 }'
11913 fi
11914
11915 DEFS=-DHAVE_CONFIG_H
11916
11917 ac_libobjs=
11918 ac_ltlibobjs=
11919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11920   # 1. Remove the extension, and $U if already installed.
11921   ac_i=`echo "$ac_i" |
11922          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11923   # 2. Add them.
11924   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11925   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11926 done
11927 LIBOBJS=$ac_libobjs
11928
11929 LTLIBOBJS=$ac_ltlibobjs
11930
11931
11932
11933 : ${CONFIG_STATUS=./config.status}
11934 ac_clean_files_save=$ac_clean_files
11935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11938 cat >$CONFIG_STATUS <<_ACEOF
11939 #! $SHELL
11940 # Generated by $as_me.
11941 # Run this file to recreate the current configuration.
11942 # Compiler output produced by configure, useful for debugging
11943 # configure, is in config.log if it exists.
11944
11945 debug=false
11946 ac_cs_recheck=false
11947 ac_cs_silent=false
11948 SHELL=\${CONFIG_SHELL-$SHELL}
11949 _ACEOF
11950
11951 cat >>$CONFIG_STATUS <<\_ACEOF
11952 ## --------------------- ##
11953 ## M4sh Initialization.  ##
11954 ## --------------------- ##
11955
11956 # Be Bourne compatible
11957 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11958   emulate sh
11959   NULLCMD=:
11960   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11961   # is contrary to our usage.  Disable this feature.
11962   alias -g '${1+"$@"}'='"$@"'
11963 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11964   set -o posix
11965 fi
11966 DUALCASE=1; export DUALCASE # for MKS sh
11967
11968 # Support unset when possible.
11969 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11970   as_unset=unset
11971 else
11972   as_unset=false
11973 fi
11974
11975
11976 # Work around bugs in pre-3.0 UWIN ksh.
11977 $as_unset ENV MAIL MAILPATH
11978 PS1='$ '
11979 PS2='> '
11980 PS4='+ '
11981
11982 # NLS nuisances.
11983 for as_var in \
11984   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11985   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11986   LC_TELEPHONE LC_TIME
11987 do
11988   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11989     eval $as_var=C; export $as_var
11990   else
11991     $as_unset $as_var
11992   fi
11993 done
11994
11995 # Required to use basename.
11996 if expr a : '\(a\)' >/dev/null 2>&1; then
11997   as_expr=expr
11998 else
11999   as_expr=false
12000 fi
12001
12002 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12003   as_basename=basename
12004 else
12005   as_basename=false
12006 fi
12007
12008
12009 # Name of the executable.
12010 as_me=`$as_basename "$0" ||
12011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12012          X"$0" : 'X\(//\)$' \| \
12013          X"$0" : 'X\(/\)$' \| \
12014          .     : '\(.\)' 2>/dev/null ||
12015 echo X/"$0" |
12016     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12017           /^X\/\(\/\/\)$/{ s//\1/; q; }
12018           /^X\/\(\/\).*/{ s//\1/; q; }
12019           s/.*/./; q'`
12020
12021
12022 # PATH needs CR, and LINENO needs CR and PATH.
12023 # Avoid depending upon Character Ranges.
12024 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12025 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12026 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12027 as_cr_digits='0123456789'
12028 as_cr_alnum=$as_cr_Letters$as_cr_digits
12029
12030 # The user is always right.
12031 if test "${PATH_SEPARATOR+set}" != set; then
12032   echo "#! /bin/sh" >conf$$.sh
12033   echo  "exit 0"   >>conf$$.sh
12034   chmod +x conf$$.sh
12035   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12036     PATH_SEPARATOR=';'
12037   else
12038     PATH_SEPARATOR=:
12039   fi
12040   rm -f conf$$.sh
12041 fi
12042
12043
12044   as_lineno_1=$LINENO
12045   as_lineno_2=$LINENO
12046   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12047   test "x$as_lineno_1" != "x$as_lineno_2" &&
12048   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12049   # Find who we are.  Look in the path if we contain no path at all
12050   # relative or not.
12051   case $0 in
12052     *[\\/]* ) as_myself=$0 ;;
12053     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12055 do
12056   IFS=$as_save_IFS
12057   test -z "$as_dir" && as_dir=.
12058   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12059 done
12060
12061        ;;
12062   esac
12063   # We did not find ourselves, most probably we were run as `sh COMMAND'
12064   # in which case we are not to be found in the path.
12065   if test "x$as_myself" = x; then
12066     as_myself=$0
12067   fi
12068   if test ! -f "$as_myself"; then
12069     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12070 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12071    { (exit 1); exit 1; }; }
12072   fi
12073   case $CONFIG_SHELL in
12074   '')
12075     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12077 do
12078   IFS=$as_save_IFS
12079   test -z "$as_dir" && as_dir=.
12080   for as_base in sh bash ksh sh5; do
12081          case $as_dir in
12082          /*)
12083            if ("$as_dir/$as_base" -c '
12084   as_lineno_1=$LINENO
12085   as_lineno_2=$LINENO
12086   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12087   test "x$as_lineno_1" != "x$as_lineno_2" &&
12088   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12089              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12090              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12091              CONFIG_SHELL=$as_dir/$as_base
12092              export CONFIG_SHELL
12093              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12094            fi;;
12095          esac
12096        done
12097 done
12098 ;;
12099   esac
12100
12101   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12102   # uniformly replaced by the line number.  The first 'sed' inserts a
12103   # line-number line before each line; the second 'sed' does the real
12104   # work.  The second script uses 'N' to pair each line-number line
12105   # with the numbered line, and appends trailing '-' during
12106   # substitution so that $LINENO is not a special case at line end.
12107   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12108   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12109   sed '=' <$as_myself |
12110     sed '
12111       N
12112       s,$,-,
12113       : loop
12114       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12115       t loop
12116       s,-$,,
12117       s,^['$as_cr_digits']*\n,,
12118     ' >$as_me.lineno &&
12119   chmod +x $as_me.lineno ||
12120     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12121 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12122    { (exit 1); exit 1; }; }
12123
12124   # Don't try to exec as it changes $[0], causing all sort of problems
12125   # (the dirname of $[0] is not the place where we might find the
12126   # original and so on.  Autoconf is especially sensible to this).
12127   . ./$as_me.lineno
12128   # Exit status is that of the last command.
12129   exit
12130 }
12131
12132
12133 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12134   *c*,-n*) ECHO_N= ECHO_C='
12135 ' ECHO_T='      ' ;;
12136   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12137   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12138 esac
12139
12140 if expr a : '\(a\)' >/dev/null 2>&1; then
12141   as_expr=expr
12142 else
12143   as_expr=false
12144 fi
12145
12146 rm -f conf$$ conf$$.exe conf$$.file
12147 echo >conf$$.file
12148 if ln -s conf$$.file conf$$ 2>/dev/null; then
12149   # We could just check for DJGPP; but this test a) works b) is more generic
12150   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12151   if test -f conf$$.exe; then
12152     # Don't use ln at all; we don't have any links
12153     as_ln_s='cp -p'
12154   else
12155     as_ln_s='ln -s'
12156   fi
12157 elif ln conf$$.file conf$$ 2>/dev/null; then
12158   as_ln_s=ln
12159 else
12160   as_ln_s='cp -p'
12161 fi
12162 rm -f conf$$ conf$$.exe conf$$.file
12163
12164 if mkdir -p . 2>/dev/null; then
12165   as_mkdir_p=:
12166 else
12167   test -d ./-p && rmdir ./-p
12168   as_mkdir_p=false
12169 fi
12170
12171 as_executable_p="test -f"
12172
12173 # Sed expression to map a string onto a valid CPP name.
12174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12175
12176 # Sed expression to map a string onto a valid variable name.
12177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12178
12179
12180 # IFS
12181 # We need space, tab and new line, in precisely that order.
12182 as_nl='
12183 '
12184 IFS="   $as_nl"
12185
12186 # CDPATH.
12187 $as_unset CDPATH
12188
12189 exec 6>&1
12190
12191 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12192 # report actual input values of CONFIG_FILES etc. instead of their
12193 # values after options handling.  Logging --version etc. is OK.
12194 exec 5>>config.log
12195 {
12196   echo
12197   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12198 ## Running $as_me. ##
12199 _ASBOX
12200 } >&5
12201 cat >&5 <<_CSEOF
12202
12203 This file was extended by $as_me, which was
12204 generated by GNU Autoconf 2.59.  Invocation command line was
12205
12206   CONFIG_FILES    = $CONFIG_FILES
12207   CONFIG_HEADERS  = $CONFIG_HEADERS
12208   CONFIG_LINKS    = $CONFIG_LINKS
12209   CONFIG_COMMANDS = $CONFIG_COMMANDS
12210   $ $0 $@
12211
12212 _CSEOF
12213 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12214 echo >&5
12215 _ACEOF
12216
12217 # Files that config.status was made for.
12218 if test -n "$ac_config_files"; then
12219   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12220 fi
12221
12222 if test -n "$ac_config_headers"; then
12223   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12224 fi
12225
12226 if test -n "$ac_config_links"; then
12227   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12228 fi
12229
12230 if test -n "$ac_config_commands"; then
12231   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12232 fi
12233
12234 cat >>$CONFIG_STATUS <<\_ACEOF
12235
12236 ac_cs_usage="\
12237 \`$as_me' instantiates files from templates according to the
12238 current configuration.
12239
12240 Usage: $0 [OPTIONS] [FILE]...
12241
12242   -h, --help       print this help, then exit
12243   -V, --version    print version number, then exit
12244   -q, --quiet      do not print progress messages
12245   -d, --debug      don't remove temporary files
12246       --recheck    update $as_me by reconfiguring in the same conditions
12247   --file=FILE[:TEMPLATE]
12248                    instantiate the configuration file FILE
12249   --header=FILE[:TEMPLATE]
12250                    instantiate the configuration header FILE
12251
12252 Configuration files:
12253 $config_files
12254
12255 Configuration headers:
12256 $config_headers
12257
12258 Report bugs to <bug-autoconf@gnu.org>."
12259 _ACEOF
12260
12261 cat >>$CONFIG_STATUS <<_ACEOF
12262 ac_cs_version="\\
12263 config.status
12264 configured by $0, generated by GNU Autoconf 2.59,
12265   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12266
12267 Copyright (C) 2003 Free Software Foundation, Inc.
12268 This config.status script is free software; the Free Software Foundation
12269 gives unlimited permission to copy, distribute and modify it."
12270 srcdir=$srcdir
12271 INSTALL="$INSTALL"
12272 _ACEOF
12273
12274 cat >>$CONFIG_STATUS <<\_ACEOF
12275 # If no file are specified by the user, then we need to provide default
12276 # value.  By we need to know if files were specified by the user.
12277 ac_need_defaults=:
12278 while test $# != 0
12279 do
12280   case $1 in
12281   --*=*)
12282     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12283     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12284     ac_shift=:
12285     ;;
12286   -*)
12287     ac_option=$1
12288     ac_optarg=$2
12289     ac_shift=shift
12290     ;;
12291   *) # This is not an option, so the user has probably given explicit
12292      # arguments.
12293      ac_option=$1
12294      ac_need_defaults=false;;
12295   esac
12296
12297   case $ac_option in
12298   # Handling of the options.
12299 _ACEOF
12300 cat >>$CONFIG_STATUS <<\_ACEOF
12301   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12302     ac_cs_recheck=: ;;
12303   --version | --vers* | -V )
12304     echo "$ac_cs_version"; exit 0 ;;
12305   --he | --h)
12306     # Conflict between --help and --header
12307     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12308 Try \`$0 --help' for more information." >&5
12309 echo "$as_me: error: ambiguous option: $1
12310 Try \`$0 --help' for more information." >&2;}
12311    { (exit 1); exit 1; }; };;
12312   --help | --hel | -h )
12313     echo "$ac_cs_usage"; exit 0 ;;
12314   --debug | --d* | -d )
12315     debug=: ;;
12316   --file | --fil | --fi | --f )
12317     $ac_shift
12318     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12319     ac_need_defaults=false;;
12320   --header | --heade | --head | --hea )
12321     $ac_shift
12322     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12323     ac_need_defaults=false;;
12324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12325   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12326     ac_cs_silent=: ;;
12327
12328   # This is an error.
12329   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12330 Try \`$0 --help' for more information." >&5
12331 echo "$as_me: error: unrecognized option: $1
12332 Try \`$0 --help' for more information." >&2;}
12333    { (exit 1); exit 1; }; } ;;
12334
12335   *) ac_config_targets="$ac_config_targets $1" ;;
12336
12337   esac
12338   shift
12339 done
12340
12341 ac_configure_extra_args=
12342
12343 if $ac_cs_silent; then
12344   exec 6>/dev/null
12345   ac_configure_extra_args="$ac_configure_extra_args --silent"
12346 fi
12347
12348 _ACEOF
12349 cat >>$CONFIG_STATUS <<_ACEOF
12350 if \$ac_cs_recheck; then
12351   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12352   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12353 fi
12354
12355 _ACEOF
12356
12357
12358
12359
12360
12361 cat >>$CONFIG_STATUS <<\_ACEOF
12362 for ac_config_target in $ac_config_targets
12363 do
12364   case "$ac_config_target" in
12365   # Handling of arguments.
12366   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12367   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12368   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12369 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12370    { (exit 1); exit 1; }; };;
12371   esac
12372 done
12373
12374 # If the user did not use the arguments to specify the items to instantiate,
12375 # then the envvar interface is used.  Set only those that are not.
12376 # We use the long form for the default assignment because of an extremely
12377 # bizarre bug on SunOS 4.1.3.
12378 if $ac_need_defaults; then
12379   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12380   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12381 fi
12382
12383 # Have a temporary directory for convenience.  Make it in the build tree
12384 # simply because there is no reason to put it here, and in addition,
12385 # creating and moving files from /tmp can sometimes cause problems.
12386 # Create a temporary directory, and hook for its removal unless debugging.
12387 $debug ||
12388 {
12389   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12390   trap '{ (exit 1); exit 1; }' 1 2 13 15
12391 }
12392
12393 # Create a (secure) tmp directory for tmp files.
12394
12395 {
12396   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12397   test -n "$tmp" && test -d "$tmp"
12398 }  ||
12399 {
12400   tmp=./confstat$$-$RANDOM
12401   (umask 077 && mkdir $tmp)
12402 } ||
12403 {
12404    echo "$me: cannot create a temporary directory in ." >&2
12405    { (exit 1); exit 1; }
12406 }
12407
12408 _ACEOF
12409
12410 cat >>$CONFIG_STATUS <<_ACEOF
12411
12412 #
12413 # CONFIG_FILES section.
12414 #
12415
12416 # No need to generate the scripts if there are no CONFIG_FILES.
12417 # This happens for instance when ./config.status config.h
12418 if test -n "\$CONFIG_FILES"; then
12419   # Protect against being on the right side of a sed subst in config.status.
12420   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12421    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12422 s,@SHELL@,$SHELL,;t t
12423 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12424 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12425 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12426 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12427 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12428 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12429 s,@exec_prefix@,$exec_prefix,;t t
12430 s,@prefix@,$prefix,;t t
12431 s,@program_transform_name@,$program_transform_name,;t t
12432 s,@bindir@,$bindir,;t t
12433 s,@sbindir@,$sbindir,;t t
12434 s,@libexecdir@,$libexecdir,;t t
12435 s,@datadir@,$datadir,;t t
12436 s,@sysconfdir@,$sysconfdir,;t t
12437 s,@sharedstatedir@,$sharedstatedir,;t t
12438 s,@localstatedir@,$localstatedir,;t t
12439 s,@libdir@,$libdir,;t t
12440 s,@includedir@,$includedir,;t t
12441 s,@oldincludedir@,$oldincludedir,;t t
12442 s,@infodir@,$infodir,;t t
12443 s,@mandir@,$mandir,;t t
12444 s,@build_alias@,$build_alias,;t t
12445 s,@host_alias@,$host_alias,;t t
12446 s,@target_alias@,$target_alias,;t t
12447 s,@DEFS@,$DEFS,;t t
12448 s,@ECHO_C@,$ECHO_C,;t t
12449 s,@ECHO_N@,$ECHO_N,;t t
12450 s,@ECHO_T@,$ECHO_T,;t t
12451 s,@LIBS@,$LIBS,;t t
12452 s,@build@,$build,;t t
12453 s,@build_cpu@,$build_cpu,;t t
12454 s,@build_vendor@,$build_vendor,;t t
12455 s,@build_os@,$build_os,;t t
12456 s,@host@,$host,;t t
12457 s,@host_cpu@,$host_cpu,;t t
12458 s,@host_vendor@,$host_vendor,;t t
12459 s,@host_os@,$host_os,;t t
12460 s,@SHARED@,$SHARED,;t t
12461 s,@CC@,$CC,;t t
12462 s,@CFLAGS@,$CFLAGS,;t t
12463 s,@LDFLAGS@,$LDFLAGS,;t t
12464 s,@CPPFLAGS@,$CPPFLAGS,;t t
12465 s,@ac_ct_CC@,$ac_ct_CC,;t t
12466 s,@EXEEXT@,$EXEEXT,;t t
12467 s,@OBJEXT@,$OBJEXT,;t t
12468 s,@CXX@,$CXX,;t t
12469 s,@CXXFLAGS@,$CXXFLAGS,;t t
12470 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12471 s,@CPP@,$CPP,;t t
12472 s,@RANLIB@,$RANLIB,;t t
12473 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12474 s,@SET_MAKE@,$SET_MAKE,;t t
12475 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12476 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12477 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12478 s,@LN_S@,$LN_S,;t t
12479 s,@ECHO@,$ECHO,;t t
12480 s,@STRIP@,$STRIP,;t t
12481 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12482 s,@EGREP@,$EGREP,;t t
12483 s,@LIBTOOL@,$LIBTOOL,;t t
12484 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12485 s,@AREXT@,$AREXT,;t t
12486 s,@AR@,$AR,;t t
12487 s,@SLEXT@,$SLEXT,;t t
12488 s,@target@,$target,;t t
12489 s,@target_cpu@,$target_cpu,;t t
12490 s,@target_vendor@,$target_vendor,;t t
12491 s,@target_os@,$target_os,;t t
12492 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12493 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12494 s,@PACKAGE@,$PACKAGE,;t t
12495 s,@VERSION@,$VERSION,;t t
12496 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12497 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12498 s,@lame_objects@,$lame_objects,;t t
12499 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12500 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12501 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12502 s,@USE_GZIP@,$USE_GZIP,;t t
12503 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12504 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12505 s,@JPEG2SWF@,$JPEG2SWF,;t t
12506 s,@GIF2SWF@,$GIF2SWF,;t t
12507 s,@PNG2SWF@,$PNG2SWF,;t t
12508 s,@LIBOBJS@,$LIBOBJS,;t t
12509 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12510 CEOF
12511
12512 _ACEOF
12513
12514   cat >>$CONFIG_STATUS <<\_ACEOF
12515   # Split the substitutions into bite-sized pieces for seds with
12516   # small command number limits, like on Digital OSF/1 and HP-UX.
12517   ac_max_sed_lines=48
12518   ac_sed_frag=1 # Number of current file.
12519   ac_beg=1 # First line for current file.
12520   ac_end=$ac_max_sed_lines # Line after last line for current file.
12521   ac_more_lines=:
12522   ac_sed_cmds=
12523   while $ac_more_lines; do
12524     if test $ac_beg -gt 1; then
12525       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12526     else
12527       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12528     fi
12529     if test ! -s $tmp/subs.frag; then
12530       ac_more_lines=false
12531     else
12532       # The purpose of the label and of the branching condition is to
12533       # speed up the sed processing (if there are no `@' at all, there
12534       # is no need to browse any of the substitutions).
12535       # These are the two extra sed commands mentioned above.
12536       (echo ':t
12537   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12538       if test -z "$ac_sed_cmds"; then
12539         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12540       else
12541         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12542       fi
12543       ac_sed_frag=`expr $ac_sed_frag + 1`
12544       ac_beg=$ac_end
12545       ac_end=`expr $ac_end + $ac_max_sed_lines`
12546     fi
12547   done
12548   if test -z "$ac_sed_cmds"; then
12549     ac_sed_cmds=cat
12550   fi
12551 fi # test -n "$CONFIG_FILES"
12552
12553 _ACEOF
12554 cat >>$CONFIG_STATUS <<\_ACEOF
12555 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12556   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12557   case $ac_file in
12558   - | *:- | *:-:* ) # input from stdin
12559         cat >$tmp/stdin
12560         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12561         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12562   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12563         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12564   * )   ac_file_in=$ac_file.in ;;
12565   esac
12566
12567   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12568   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12569 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12570          X"$ac_file" : 'X\(//\)[^/]' \| \
12571          X"$ac_file" : 'X\(//\)$' \| \
12572          X"$ac_file" : 'X\(/\)' \| \
12573          .     : '\(.\)' 2>/dev/null ||
12574 echo X"$ac_file" |
12575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12576           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12577           /^X\(\/\/\)$/{ s//\1/; q; }
12578           /^X\(\/\).*/{ s//\1/; q; }
12579           s/.*/./; q'`
12580   { if $as_mkdir_p; then
12581     mkdir -p "$ac_dir"
12582   else
12583     as_dir="$ac_dir"
12584     as_dirs=
12585     while test ! -d "$as_dir"; do
12586       as_dirs="$as_dir $as_dirs"
12587       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12589          X"$as_dir" : 'X\(//\)[^/]' \| \
12590          X"$as_dir" : 'X\(//\)$' \| \
12591          X"$as_dir" : 'X\(/\)' \| \
12592          .     : '\(.\)' 2>/dev/null ||
12593 echo X"$as_dir" |
12594     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12595           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12596           /^X\(\/\/\)$/{ s//\1/; q; }
12597           /^X\(\/\).*/{ s//\1/; q; }
12598           s/.*/./; q'`
12599     done
12600     test ! -n "$as_dirs" || mkdir $as_dirs
12601   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12602 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12603    { (exit 1); exit 1; }; }; }
12604
12605   ac_builddir=.
12606
12607 if test "$ac_dir" != .; then
12608   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12609   # A "../" for each directory in $ac_dir_suffix.
12610   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12611 else
12612   ac_dir_suffix= ac_top_builddir=
12613 fi
12614
12615 case $srcdir in
12616   .)  # No --srcdir option.  We are building in place.
12617     ac_srcdir=.
12618     if test -z "$ac_top_builddir"; then
12619        ac_top_srcdir=.
12620     else
12621        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12622     fi ;;
12623   [\\/]* | ?:[\\/]* )  # Absolute path.
12624     ac_srcdir=$srcdir$ac_dir_suffix;
12625     ac_top_srcdir=$srcdir ;;
12626   *) # Relative path.
12627     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12628     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12629 esac
12630
12631 # Do not use `cd foo && pwd` to compute absolute paths, because
12632 # the directories may not exist.
12633 case `pwd` in
12634 .) ac_abs_builddir="$ac_dir";;
12635 *)
12636   case "$ac_dir" in
12637   .) ac_abs_builddir=`pwd`;;
12638   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12639   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12640   esac;;
12641 esac
12642 case $ac_abs_builddir in
12643 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12644 *)
12645   case ${ac_top_builddir}. in
12646   .) ac_abs_top_builddir=$ac_abs_builddir;;
12647   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12648   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12649   esac;;
12650 esac
12651 case $ac_abs_builddir in
12652 .) ac_abs_srcdir=$ac_srcdir;;
12653 *)
12654   case $ac_srcdir in
12655   .) ac_abs_srcdir=$ac_abs_builddir;;
12656   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12657   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12658   esac;;
12659 esac
12660 case $ac_abs_builddir in
12661 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12662 *)
12663   case $ac_top_srcdir in
12664   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12665   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12666   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12667   esac;;
12668 esac
12669
12670
12671   case $INSTALL in
12672   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12673   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12674   esac
12675
12676   if test x"$ac_file" != x-; then
12677     { echo "$as_me:$LINENO: creating $ac_file" >&5
12678 echo "$as_me: creating $ac_file" >&6;}
12679     rm -f "$ac_file"
12680   fi
12681   # Let's still pretend it is `configure' which instantiates (i.e., don't
12682   # use $as_me), people would be surprised to read:
12683   #    /* config.h.  Generated by config.status.  */
12684   if test x"$ac_file" = x-; then
12685     configure_input=
12686   else
12687     configure_input="$ac_file.  "
12688   fi
12689   configure_input=$configure_input"Generated from `echo $ac_file_in |
12690                                      sed 's,.*/,,'` by configure."
12691
12692   # First look for the input files in the build tree, otherwise in the
12693   # src tree.
12694   ac_file_inputs=`IFS=:
12695     for f in $ac_file_in; do
12696       case $f in
12697       -) echo $tmp/stdin ;;
12698       [\\/$]*)
12699          # Absolute (can't be DOS-style, as IFS=:)
12700          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12701 echo "$as_me: error: cannot find input file: $f" >&2;}
12702    { (exit 1); exit 1; }; }
12703          echo "$f";;
12704       *) # Relative
12705          if test -f "$f"; then
12706            # Build tree
12707            echo "$f"
12708          elif test -f "$srcdir/$f"; then
12709            # Source tree
12710            echo "$srcdir/$f"
12711          else
12712            # /dev/null tree
12713            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12714 echo "$as_me: error: cannot find input file: $f" >&2;}
12715    { (exit 1); exit 1; }; }
12716          fi;;
12717       esac
12718     done` || { (exit 1); exit 1; }
12719 _ACEOF
12720 cat >>$CONFIG_STATUS <<_ACEOF
12721   sed "$ac_vpsub
12722 $extrasub
12723 _ACEOF
12724 cat >>$CONFIG_STATUS <<\_ACEOF
12725 :t
12726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12727 s,@configure_input@,$configure_input,;t t
12728 s,@srcdir@,$ac_srcdir,;t t
12729 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12730 s,@top_srcdir@,$ac_top_srcdir,;t t
12731 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12732 s,@builddir@,$ac_builddir,;t t
12733 s,@abs_builddir@,$ac_abs_builddir,;t t
12734 s,@top_builddir@,$ac_top_builddir,;t t
12735 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12736 s,@INSTALL@,$ac_INSTALL,;t t
12737 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12738   rm -f $tmp/stdin
12739   if test x"$ac_file" != x-; then
12740     mv $tmp/out $ac_file
12741   else
12742     cat $tmp/out
12743     rm -f $tmp/out
12744   fi
12745
12746 done
12747 _ACEOF
12748 cat >>$CONFIG_STATUS <<\_ACEOF
12749
12750 #
12751 # CONFIG_HEADER section.
12752 #
12753
12754 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12755 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12756 #
12757 # ac_d sets the value in "#define NAME VALUE" lines.
12758 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12759 ac_dB='[         ].*$,\1#\2'
12760 ac_dC=' '
12761 ac_dD=',;t'
12762 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12763 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12764 ac_uB='$,\1#\2define\3'
12765 ac_uC=' '
12766 ac_uD=',;t'
12767
12768 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12769   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12770   case $ac_file in
12771   - | *:- | *:-:* ) # input from stdin
12772         cat >$tmp/stdin
12773         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12774         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12775   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12776         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12777   * )   ac_file_in=$ac_file.in ;;
12778   esac
12779
12780   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12781 echo "$as_me: creating $ac_file" >&6;}
12782
12783   # First look for the input files in the build tree, otherwise in the
12784   # src tree.
12785   ac_file_inputs=`IFS=:
12786     for f in $ac_file_in; do
12787       case $f in
12788       -) echo $tmp/stdin ;;
12789       [\\/$]*)
12790          # Absolute (can't be DOS-style, as IFS=:)
12791          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12792 echo "$as_me: error: cannot find input file: $f" >&2;}
12793    { (exit 1); exit 1; }; }
12794          # Do quote $f, to prevent DOS paths from being IFS'd.
12795          echo "$f";;
12796       *) # Relative
12797          if test -f "$f"; then
12798            # Build tree
12799            echo "$f"
12800          elif test -f "$srcdir/$f"; then
12801            # Source tree
12802            echo "$srcdir/$f"
12803          else
12804            # /dev/null tree
12805            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12806 echo "$as_me: error: cannot find input file: $f" >&2;}
12807    { (exit 1); exit 1; }; }
12808          fi;;
12809       esac
12810     done` || { (exit 1); exit 1; }
12811   # Remove the trailing spaces.
12812   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12813
12814 _ACEOF
12815
12816 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12817 # `conftest.undefs', that substitutes the proper values into
12818 # config.h.in to produce config.h.  The first handles `#define'
12819 # templates, and the second `#undef' templates.
12820 # And first: Protect against being on the right side of a sed subst in
12821 # config.status.  Protect against being in an unquoted here document
12822 # in config.status.
12823 rm -f conftest.defines conftest.undefs
12824 # Using a here document instead of a string reduces the quoting nightmare.
12825 # Putting comments in sed scripts is not portable.
12826 #
12827 # `end' is used to avoid that the second main sed command (meant for
12828 # 0-ary CPP macros) applies to n-ary macro definitions.
12829 # See the Autoconf documentation for `clear'.
12830 cat >confdef2sed.sed <<\_ACEOF
12831 s/[\\&,]/\\&/g
12832 s,[\\$`],\\&,g
12833 t clear
12834 : clear
12835 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12836 t end
12837 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12838 : end
12839 _ACEOF
12840 # If some macros were called several times there might be several times
12841 # the same #defines, which is useless.  Nevertheless, we may not want to
12842 # sort them, since we want the *last* AC-DEFINE to be honored.
12843 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12844 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12845 rm -f confdef2sed.sed
12846
12847 # This sed command replaces #undef with comments.  This is necessary, for
12848 # example, in the case of _POSIX_SOURCE, which is predefined and required
12849 # on some systems where configure will not decide to define it.
12850 cat >>conftest.undefs <<\_ACEOF
12851 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12852 _ACEOF
12853
12854 # Break up conftest.defines because some shells have a limit on the size
12855 # of here documents, and old seds have small limits too (100 cmds).
12856 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12857 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12858 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12859 echo '  :' >>$CONFIG_STATUS
12860 rm -f conftest.tail
12861 while grep . conftest.defines >/dev/null
12862 do
12863   # Write a limited-size here document to $tmp/defines.sed.
12864   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12865   # Speed up: don't consider the non `#define' lines.
12866   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12867   # Work around the forget-to-reset-the-flag bug.
12868   echo 't clr' >>$CONFIG_STATUS
12869   echo ': clr' >>$CONFIG_STATUS
12870   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12871   echo 'CEOF
12872   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12873   rm -f $tmp/in
12874   mv $tmp/out $tmp/in
12875 ' >>$CONFIG_STATUS
12876   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12877   rm -f conftest.defines
12878   mv conftest.tail conftest.defines
12879 done
12880 rm -f conftest.defines
12881 echo '  fi # grep' >>$CONFIG_STATUS
12882 echo >>$CONFIG_STATUS
12883
12884 # Break up conftest.undefs because some shells have a limit on the size
12885 # of here documents, and old seds have small limits too (100 cmds).
12886 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12887 rm -f conftest.tail
12888 while grep . conftest.undefs >/dev/null
12889 do
12890   # Write a limited-size here document to $tmp/undefs.sed.
12891   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12892   # Speed up: don't consider the non `#undef'
12893   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12894   # Work around the forget-to-reset-the-flag bug.
12895   echo 't clr' >>$CONFIG_STATUS
12896   echo ': clr' >>$CONFIG_STATUS
12897   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12898   echo 'CEOF
12899   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12900   rm -f $tmp/in
12901   mv $tmp/out $tmp/in
12902 ' >>$CONFIG_STATUS
12903   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12904   rm -f conftest.undefs
12905   mv conftest.tail conftest.undefs
12906 done
12907 rm -f conftest.undefs
12908
12909 cat >>$CONFIG_STATUS <<\_ACEOF
12910   # Let's still pretend it is `configure' which instantiates (i.e., don't
12911   # use $as_me), people would be surprised to read:
12912   #    /* config.h.  Generated by config.status.  */
12913   if test x"$ac_file" = x-; then
12914     echo "/* Generated by configure.  */" >$tmp/config.h
12915   else
12916     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12917   fi
12918   cat $tmp/in >>$tmp/config.h
12919   rm -f $tmp/in
12920   if test x"$ac_file" != x-; then
12921     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12922       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12923 echo "$as_me: $ac_file is unchanged" >&6;}
12924     else
12925       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12927          X"$ac_file" : 'X\(//\)[^/]' \| \
12928          X"$ac_file" : 'X\(//\)$' \| \
12929          X"$ac_file" : 'X\(/\)' \| \
12930          .     : '\(.\)' 2>/dev/null ||
12931 echo X"$ac_file" |
12932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12933           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12934           /^X\(\/\/\)$/{ s//\1/; q; }
12935           /^X\(\/\).*/{ s//\1/; q; }
12936           s/.*/./; q'`
12937       { if $as_mkdir_p; then
12938     mkdir -p "$ac_dir"
12939   else
12940     as_dir="$ac_dir"
12941     as_dirs=
12942     while test ! -d "$as_dir"; do
12943       as_dirs="$as_dir $as_dirs"
12944       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12946          X"$as_dir" : 'X\(//\)[^/]' \| \
12947          X"$as_dir" : 'X\(//\)$' \| \
12948          X"$as_dir" : 'X\(/\)' \| \
12949          .     : '\(.\)' 2>/dev/null ||
12950 echo X"$as_dir" |
12951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12952           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12953           /^X\(\/\/\)$/{ s//\1/; q; }
12954           /^X\(\/\).*/{ s//\1/; q; }
12955           s/.*/./; q'`
12956     done
12957     test ! -n "$as_dirs" || mkdir $as_dirs
12958   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12959 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12960    { (exit 1); exit 1; }; }; }
12961
12962       rm -f $ac_file
12963       mv $tmp/config.h $ac_file
12964     fi
12965   else
12966     cat $tmp/config.h
12967     rm -f $tmp/config.h
12968   fi
12969 done
12970 _ACEOF
12971
12972 cat >>$CONFIG_STATUS <<\_ACEOF
12973
12974 { (exit 0); exit 0; }
12975 _ACEOF
12976 chmod +x $CONFIG_STATUS
12977 ac_clean_files=$ac_clean_files_save
12978
12979
12980 # configure is writing to config.log, and then calls config.status.
12981 # config.status does its own redirection, appending to config.log.
12982 # Unfortunately, on DOS this fails, as config.log is still kept open
12983 # by configure, so config.status won't be able to write to it; its
12984 # output is simply discarded.  So we exec the FD to /dev/null,
12985 # effectively closing config.log, so it can be properly (re)opened and
12986 # appended to by config.status.  When coming back to configure, we
12987 # need to make the FD available again.
12988 if test "$no_create" != yes; then
12989   ac_cs_success=:
12990   ac_config_status_args=
12991   test "$silent" = yes &&
12992     ac_config_status_args="$ac_config_status_args --quiet"
12993   exec 5>/dev/null
12994   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12995   exec 5>>config.log
12996   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12997   # would make configure fail if this is the last instruction.
12998   $ac_cs_success || { (exit 1); exit 1; }
12999 fi
13000
13001
13002 #
13003 # On development trees, create snapshots of config.status
13004 #
13005 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
13006     if test "x${MINGW}" = "xyes"; then
13007         echo cp config.status config.status.win32
13008         cp config.status config.status.win32
13009     else
13010         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
13011             echo cp config.status config.status.linux
13012             cp config.status config.status.linux
13013         fi
13014         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
13015             echo cp config.status config.status.debug
13016             cp config.status config.status.debug
13017         fi
13018         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
13019             echo cp config.status config.status.optimize
13020             cp config.status config.status.optimize
13021         fi
13022     fi
13023 fi