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.58.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Find the correct PATH separator.  Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247   UNAME=${UNAME-`uname 2>/dev/null`}
248   case X$UNAME in
249     *-DOS) lt_cv_sys_path_separator=';' ;;
250     *)     lt_cv_sys_path_separator=':' ;;
251   esac
252   PATH_SEPARATOR=$lt_cv_sys_path_separator
253 fi
254
255
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
258
259 case X$ECHO in
260 X*--fallback-echo)
261   # Remove one level of quotation (which was required for Make).
262   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263   ;;
264 esac
265
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268   # Discard the --no-reexec flag, and continue.
269   shift
270 elif test "X$1" = X--fallback-echo; then
271   # Avoid inline document here, it may be left over
272   :
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274   # Yippee, $echo works!
275   :
276 else
277   # Restart under the correct shell.
278   exec $SHELL "$0" --no-reexec ${1+"$@"}
279 fi
280
281 if test "X$1" = X--fallback-echo; then
282   # used as fallback echo
283   shift
284   cat <<EOF
285
286 EOF
287   exit 0
288 fi
289
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300        echo_test_string="`eval $cmd`" &&
301        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302     then
303       break
304     fi
305   done
306 fi
307
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310    test "X$echo_testing_string" = "X$echo_test_string"; then
311   :
312 else
313   # The Solaris, AIX, and Digital Unix default echo programs unquote
314   # backslashes.  This makes it impossible to quote backslashes using
315   #   echo "$something" | sed 's/\\/\\\\/g'
316   #
317   # So, first we look for a working echo in the user's PATH.
318
319   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320   for dir in $PATH /usr/ucb; do
321     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       echo="$dir/echo"
326       break
327     fi
328   done
329   IFS="$save_ifs"
330
331   if test "X$echo" = Xecho; then
332     # We didn't find a better echo, so look for alternatives.
333     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335        test "X$echo_testing_string" = "X$echo_test_string"; then
336       # This shell has a builtin print -r that does the trick.
337       echo='print -r'
338     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339          test "X$CONFIG_SHELL" != X/bin/ksh; then
340       # If we have ksh, try running configure again with it.
341       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342       export ORIGINAL_CONFIG_SHELL
343       CONFIG_SHELL=/bin/ksh
344       export CONFIG_SHELL
345       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346     else
347       # Try using printf.
348       echo='printf %s\n'
349       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351          test "X$echo_testing_string" = "X$echo_test_string"; then
352         # Cool, printf works
353         :
354       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359         export CONFIG_SHELL
360         SHELL="$CONFIG_SHELL"
361         export SHELL
362         echo="$CONFIG_SHELL $0 --fallback-echo"
363       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364            test "X$echo_testing_string" = 'X\t' &&
365            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366            test "X$echo_testing_string" = "X$echo_test_string"; then
367         echo="$CONFIG_SHELL $0 --fallback-echo"
368       else
369         # maybe with a smaller string...
370         prev=:
371
372         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374           then
375             break
376           fi
377           prev="$cmd"
378         done
379
380         if test "$prev" != 'sed 50q "$0"'; then
381           echo_test_string=`eval $prev`
382           export echo_test_string
383           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384         else
385           # Oops.  We lost completely, so just stick with echo.
386           echo=echo
387         fi
388       fi
389     fi
390   fi
391 fi
392 fi
393
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 fi
400
401
402
403 # Name of the host.
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408 exec 6>&1
409
410 #
411 # Initializations.
412 #
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
419 SHELL=${CONFIG_SHELL-/bin/sh}
420
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete.  It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
425
426 # Identity of this package.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
432
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 #  include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 #  include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 #  include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR FREETYPE_CONFIG target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H AVIFILE_CONFIG lame_objects USE_GZIP JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515   # If the previous option needs an argument, assign it.
516   if test -n "$ac_prev"; then
517     eval "$ac_prev=\$ac_option"
518     ac_prev=
519     continue
520   fi
521
522   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524   # Accept the important Cygnus configure options, so we can diagnose typos.
525
526   case $ac_option in
527
528   -bindir | --bindir | --bindi | --bind | --bin | --bi)
529     ac_prev=bindir ;;
530   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531     bindir=$ac_optarg ;;
532
533   -build | --build | --buil | --bui | --bu)
534     ac_prev=build_alias ;;
535   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536     build_alias=$ac_optarg ;;
537
538   -cache-file | --cache-file | --cache-fil | --cache-fi \
539   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540     ac_prev=cache_file ;;
541   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543     cache_file=$ac_optarg ;;
544
545   --config-cache | -C)
546     cache_file=config.cache ;;
547
548   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549     ac_prev=datadir ;;
550   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551   | --da=*)
552     datadir=$ac_optarg ;;
553
554   -disable-* | --disable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     eval "enable_$ac_feature=no" ;;
562
563   -enable-* | --enable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     case $ac_option in
571       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572       *) ac_optarg=yes ;;
573     esac
574     eval "enable_$ac_feature='$ac_optarg'" ;;
575
576   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578   | --exec | --exe | --ex)
579     ac_prev=exec_prefix ;;
580   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582   | --exec=* | --exe=* | --ex=*)
583     exec_prefix=$ac_optarg ;;
584
585   -gas | --gas | --ga | --g)
586     # Obsolete; use --with-gas.
587     with_gas=yes ;;
588
589   -help | --help | --hel | --he | -h)
590     ac_init_help=long ;;
591   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592     ac_init_help=recursive ;;
593   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594     ac_init_help=short ;;
595
596   -host | --host | --hos | --ho)
597     ac_prev=host_alias ;;
598   -host=* | --host=* | --hos=* | --ho=*)
599     host_alias=$ac_optarg ;;
600
601   -includedir | --includedir | --includedi | --included | --include \
602   | --includ | --inclu | --incl | --inc)
603     ac_prev=includedir ;;
604   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605   | --includ=* | --inclu=* | --incl=* | --inc=*)
606     includedir=$ac_optarg ;;
607
608   -infodir | --infodir | --infodi | --infod | --info | --inf)
609     ac_prev=infodir ;;
610   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611     infodir=$ac_optarg ;;
612
613   -libdir | --libdir | --libdi | --libd)
614     ac_prev=libdir ;;
615   -libdir=* | --libdir=* | --libdi=* | --libd=*)
616     libdir=$ac_optarg ;;
617
618   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619   | --libexe | --libex | --libe)
620     ac_prev=libexecdir ;;
621   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622   | --libexe=* | --libex=* | --libe=*)
623     libexecdir=$ac_optarg ;;
624
625   -localstatedir | --localstatedir | --localstatedi | --localstated \
626   | --localstate | --localstat | --localsta | --localst \
627   | --locals | --local | --loca | --loc | --lo)
628     ac_prev=localstatedir ;;
629   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632     localstatedir=$ac_optarg ;;
633
634   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635     ac_prev=mandir ;;
636   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637     mandir=$ac_optarg ;;
638
639   -nfp | --nfp | --nf)
640     # Obsolete; use --without-fp.
641     with_fp=no ;;
642
643   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644   | --no-cr | --no-c | -n)
645     no_create=yes ;;
646
647   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649     no_recursion=yes ;;
650
651   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653   | --oldin | --oldi | --old | --ol | --o)
654     ac_prev=oldincludedir ;;
655   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658     oldincludedir=$ac_optarg ;;
659
660   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661     ac_prev=prefix ;;
662   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663     prefix=$ac_optarg ;;
664
665   -program-prefix | --program-prefix | --program-prefi | --program-pref \
666   | --program-pre | --program-pr | --program-p)
667     ac_prev=program_prefix ;;
668   -program-prefix=* | --program-prefix=* | --program-prefi=* \
669   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670     program_prefix=$ac_optarg ;;
671
672   -program-suffix | --program-suffix | --program-suffi | --program-suff \
673   | --program-suf | --program-su | --program-s)
674     ac_prev=program_suffix ;;
675   -program-suffix=* | --program-suffix=* | --program-suffi=* \
676   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677     program_suffix=$ac_optarg ;;
678
679   -program-transform-name | --program-transform-name \
680   | --program-transform-nam | --program-transform-na \
681   | --program-transform-n | --program-transform- \
682   | --program-transform | --program-transfor \
683   | --program-transfo | --program-transf \
684   | --program-trans | --program-tran \
685   | --progr-tra | --program-tr | --program-t)
686     ac_prev=program_transform_name ;;
687   -program-transform-name=* | --program-transform-name=* \
688   | --program-transform-nam=* | --program-transform-na=* \
689   | --program-transform-n=* | --program-transform-=* \
690   | --program-transform=* | --program-transfor=* \
691   | --program-transfo=* | --program-transf=* \
692   | --program-trans=* | --program-tran=* \
693   | --progr-tra=* | --program-tr=* | --program-t=*)
694     program_transform_name=$ac_optarg ;;
695
696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697   | -silent | --silent | --silen | --sile | --sil)
698     silent=yes ;;
699
700   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701     ac_prev=sbindir ;;
702   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703   | --sbi=* | --sb=*)
704     sbindir=$ac_optarg ;;
705
706   -sharedstatedir | --sharedstatedir | --sharedstatedi \
707   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708   | --sharedst | --shareds | --shared | --share | --shar \
709   | --sha | --sh)
710     ac_prev=sharedstatedir ;;
711   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714   | --sha=* | --sh=*)
715     sharedstatedir=$ac_optarg ;;
716
717   -site | --site | --sit)
718     ac_prev=site ;;
719   -site=* | --site=* | --sit=*)
720     site=$ac_optarg ;;
721
722   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723     ac_prev=srcdir ;;
724   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725     srcdir=$ac_optarg ;;
726
727   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728   | --syscon | --sysco | --sysc | --sys | --sy)
729     ac_prev=sysconfdir ;;
730   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732     sysconfdir=$ac_optarg ;;
733
734   -target | --target | --targe | --targ | --tar | --ta | --t)
735     ac_prev=target_alias ;;
736   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737     target_alias=$ac_optarg ;;
738
739   -v | -verbose | --verbose | --verbos | --verbo | --verb)
740     verbose=yes ;;
741
742   -version | --version | --versio | --versi | --vers | -V)
743     ac_init_version=: ;;
744
745   -with-* | --with-*)
746     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747     # Reject names that are not valid shell variable names.
748     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749       { echo "$as_me: error: invalid package name: $ac_package" >&2
750    { (exit 1); exit 1; }; }
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case $ac_option in
753       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_$ac_package='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760     # Reject names that are not valid shell variable names.
761     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762       { echo "$as_me: error: invalid package name: $ac_package" >&2
763    { (exit 1); exit 1; }; }
764     ac_package=`echo $ac_package | sed 's/-/_/g'`
765     eval "with_$ac_package=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes=$ac_optarg ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries=$ac_optarg ;;
784
785   -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787    { (exit 1); exit 1; }; }
788     ;;
789
790   *=*)
791     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795    { (exit 1); exit 1; }; }
796     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797     eval "$ac_envvar='$ac_optarg'"
798     export $ac_envvar ;;
799
800   *)
801     # FIXME: should be removed in autoconf 3.0.
802     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806     ;;
807
808   esac
809 done
810
811 if test -n "$ac_prev"; then
812   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813   { echo "$as_me: error: missing argument to $ac_option" >&2
814    { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820   eval ac_val=$`echo $ac_var`
821   case $ac_val in
822     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824    { (exit 1); exit 1; }; };;
825   esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830               localstatedir libdir includedir oldincludedir infodir mandir
831 do
832   eval ac_val=$`echo $ac_var`
833   case $ac_val in
834     [\\/$]* | ?:[\\/]* ) ;;
835     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836    { (exit 1); exit 1; }; };;
837   esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849   if test "x$build_alias" = x; then
850     cross_compiling=maybe
851     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852     If a cross compiler is detected then cross compile mode will be used." >&2
853   elif test "x$build_alias" != "x$host_alias"; then
854     cross_compiling=yes
855   fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866   ac_srcdir_defaulted=yes
867   # Try the directory containing this script, then its parent.
868   ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870          X"$0" : 'X\(//\)[^/]' \| \
871          X"$0" : 'X\(//\)$' \| \
872          X"$0" : 'X\(/\)' \| \
873          .     : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877           /^X\(\/\/\)$/{ s//\1/; q; }
878           /^X\(\/\).*/{ s//\1/; q; }
879           s/.*/./; q'`
880   srcdir=$ac_confdir
881   if test ! -r $srcdir/$ac_unique_file; then
882     srcdir=..
883   fi
884 else
885   ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888   if test "$ac_srcdir_defaulted" = yes; then
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890    { (exit 1); exit 1; }; }
891   else
892     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893    { (exit 1); exit 1; }; }
894   fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898    { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940
941 #
942 # Report the --help message.
943 #
944 if test "$ac_init_help" = "long"; then
945   # Omit some internal or obsolete options to make the list less imposing.
946   # This message is too long to be a string in the A/UX 3.1 sh.
947   cat <<_ACEOF
948 \`configure' configures this package to adapt to many kinds of systems.
949
950 Usage: $0 [OPTION]... [VAR=VALUE]...
951
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE.  See below for descriptions of some of the useful variables.
954
955 Defaults for the options are specified in brackets.
956
957 Configuration:
958   -h, --help              display this help and exit
959       --help=short        display options specific to this package
960       --help=recursive    display the short help of all the included packages
961   -V, --version           display version information and exit
962   -q, --quiet, --silent   do not print \`checking...' messages
963       --cache-file=FILE   cache test results in FILE [disabled]
964   -C, --config-cache      alias for \`--cache-file=config.cache'
965   -n, --no-create         do not create output files
966       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
967
968 _ACEOF
969
970   cat <<_ACEOF
971 Installation directories:
972   --prefix=PREFIX         install architecture-independent files in PREFIX
973                           [$ac_default_prefix]
974   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
975                           [PREFIX]
976
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
981
982 For better control, use the options below.
983
984 Fine tuning of the installation directories:
985   --bindir=DIR           user executables [EPREFIX/bin]
986   --sbindir=DIR          system admin executables [EPREFIX/sbin]
987   --libexecdir=DIR       program executables [EPREFIX/libexec]
988   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
989   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
990   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
991   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
992   --libdir=DIR           object code libraries [EPREFIX/lib]
993   --includedir=DIR       C header files [PREFIX/include]
994   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
995   --infodir=DIR          info documentation [PREFIX/info]
996   --mandir=DIR           man documentation [PREFIX/man]
997 _ACEOF
998
999   cat <<\_ACEOF
1000
1001 Program names:
1002   --program-prefix=PREFIX            prepend PREFIX to installed program names
1003   --program-suffix=SUFFIX            append SUFFIX to installed program names
1004   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1005
1006 System types:
1007   --build=BUILD     configure for building on BUILD [guessed]
1008   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1009   --target=TARGET   configure for building compilers for TARGET [HOST]
1010 _ACEOF
1011 fi
1012
1013 if test -n "$ac_init_help"; then
1014
1015   cat <<\_ACEOF
1016
1017 Optional Features:
1018   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1019   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1020   --enable-checkmem       turn on ccmalloc debugging
1021   --enable-debug          turn on debugging
1022   --enable-warnings        turn on compiler warnings
1023   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1024   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1025   --enable-shared=PKGS  build shared libraries default=yes
1026   --enable-static=PKGS  build static libraries default=yes
1027   --enable-fast-install=PKGS  optimize for fast installation default=yes
1028   --disable-libtool-lock  avoid locking (might break parallel builds)
1029
1030 Optional Packages:
1031   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1032   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1033   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1034   --with-pic              try to use only PIC/non-PIC objects default=use both
1035
1036 Some influential environment variables:
1037   CC          C compiler command
1038   CFLAGS      C compiler flags
1039   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1040               nonstandard directory <lib dir>
1041   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042               headers in a nonstandard directory <include dir>
1043   CXX         C++ compiler command
1044   CXXFLAGS    C++ compiler flags
1045   CPP         C preprocessor
1046
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1049
1050 _ACEOF
1051 fi
1052
1053 if test "$ac_init_help" = "recursive"; then
1054   # If there are subdirs, report their specific --help.
1055   ac_popdir=`pwd`
1056   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057     test -d $ac_dir || continue
1058     ac_builddir=.
1059
1060 if test "$ac_dir" != .; then
1061   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062   # A "../" for each directory in $ac_dir_suffix.
1063   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065   ac_dir_suffix= ac_top_builddir=
1066 fi
1067
1068 case $srcdir in
1069   .)  # No --srcdir option.  We are building in place.
1070     ac_srcdir=.
1071     if test -z "$ac_top_builddir"; then
1072        ac_top_srcdir=.
1073     else
1074        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075     fi ;;
1076   [\\/]* | ?:[\\/]* )  # Absolute path.
1077     ac_srcdir=$srcdir$ac_dir_suffix;
1078     ac_top_srcdir=$srcdir ;;
1079   *) # Relative path.
1080     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1083 case "$ac_dir" in
1084 .) ac_abs_builddir=$ac_builddir;;
1085 *)
1086   case $ac_builddir in
1087   .) ac_abs_builddir="$ac_dir";;
1088   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1089   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1090   esac;;
1091 esac
1092 case "$ac_dir" in
1093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *)
1095   case ${ac_top_builddir}. in
1096   .) ac_abs_top_builddir="$ac_dir";;
1097   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1099   esac;;
1100 esac
1101 case "$ac_dir" in
1102 .) ac_abs_srcdir=$ac_srcdir;;
1103 *)
1104   case $ac_srcdir in
1105   .) ac_abs_srcdir="$ac_dir";;
1106   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1108   esac;;
1109 esac
1110 case "$ac_dir" in
1111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *)
1113   case $ac_top_srcdir in
1114   .) ac_abs_top_srcdir="$ac_dir";;
1115   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1117   esac;;
1118 esac
1119
1120     cd $ac_dir
1121     # Check for guested configure; otherwise get Cygnus style configure.
1122     if test -f $ac_srcdir/configure.gnu; then
1123       echo
1124       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1125     elif test -f $ac_srcdir/configure; then
1126       echo
1127       $SHELL $ac_srcdir/configure  --help=recursive
1128     elif test -f $ac_srcdir/configure.ac ||
1129            test -f $ac_srcdir/configure.in; then
1130       echo
1131       $ac_configure --help
1132     else
1133       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1134     fi
1135     cd $ac_popdir
1136   done
1137 fi
1138
1139 test -n "$ac_init_help" && exit 0
1140 if $ac_init_version; then
1141   cat <<\_ACEOF
1142
1143 Copyright (C) 2003 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1146 _ACEOF
1147   exit 0
1148 fi
1149 exec 5>config.log
1150 cat >&5 <<_ACEOF
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1153
1154 It was created by $as_me, which was
1155 generated by GNU Autoconf 2.58.  Invocation command line was
1156
1157   $ $0 $@
1158
1159 _ACEOF
1160 {
1161 cat <<_ASUNAME
1162 ## --------- ##
1163 ## Platform. ##
1164 ## --------- ##
1165
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1174
1175 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1176 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1179 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1180 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1181 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1182
1183 _ASUNAME
1184
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 for as_dir in $PATH
1187 do
1188   IFS=$as_save_IFS
1189   test -z "$as_dir" && as_dir=.
1190   echo "PATH: $as_dir"
1191 done
1192
1193 } >&5
1194
1195 cat >&5 <<_ACEOF
1196
1197
1198 ## ----------- ##
1199 ## Core tests. ##
1200 ## ----------- ##
1201
1202 _ACEOF
1203
1204
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_configure_args=
1211 ac_configure_args0=
1212 ac_configure_args1=
1213 ac_sep=
1214 ac_must_keep_next=false
1215 for ac_pass in 1 2
1216 do
1217   for ac_arg
1218   do
1219     case $ac_arg in
1220     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222     | -silent | --silent | --silen | --sile | --sil)
1223       continue ;;
1224     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226     esac
1227     case $ac_pass in
1228     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229     2)
1230       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231       if test $ac_must_keep_next = true; then
1232         ac_must_keep_next=false # Got value, back to normal.
1233       else
1234         case $ac_arg in
1235           *=* | --config-cache | -C | -disable-* | --disable-* \
1236           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238           | -with-* | --with-* | -without-* | --without-* | --x)
1239             case "$ac_configure_args0 " in
1240               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241             esac
1242             ;;
1243           -* ) ac_must_keep_next=true ;;
1244         esac
1245       fi
1246       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247       # Get rid of the leading space.
1248       ac_sep=" "
1249       ;;
1250     esac
1251   done
1252 done
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1255
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log.  We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262   # Save into config.log some information that might help in debugging.
1263   {
1264     echo
1265
1266     cat <<\_ASBOX
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1270 _ASBOX
1271     echo
1272     # The following way of writing the cache mishandles newlines in values,
1273 {
1274   (set) 2>&1 |
1275     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276     *ac_space=\ *)
1277       sed -n \
1278         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280       ;;
1281     *)
1282       sed -n \
1283         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284       ;;
1285     esac;
1286 }
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1293 _ASBOX
1294     echo
1295     for ac_var in $ac_subst_vars
1296     do
1297       eval ac_val=$`echo $ac_var`
1298       echo "$ac_var='"'"'$ac_val'"'"'"
1299     done | sort
1300     echo
1301
1302     if test -n "$ac_subst_files"; then
1303       cat <<\_ASBOX
1304 ## ------------- ##
1305 ## Output files. ##
1306 ## ------------- ##
1307 _ASBOX
1308       echo
1309       for ac_var in $ac_subst_files
1310       do
1311         eval ac_val=$`echo $ac_var`
1312         echo "$ac_var='"'"'$ac_val'"'"'"
1313       done | sort
1314       echo
1315     fi
1316
1317     if test -s confdefs.h; then
1318       cat <<\_ASBOX
1319 ## ----------- ##
1320 ## confdefs.h. ##
1321 ## ----------- ##
1322 _ASBOX
1323       echo
1324       sed "/^$/d" confdefs.h | sort
1325       echo
1326     fi
1327     test "$ac_signal" != 0 &&
1328       echo "$as_me: caught signal $ac_signal"
1329     echo "$as_me: exit $exit_status"
1330   } >&5
1331   rm -f core *.core &&
1332   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333     exit $exit_status
1334      ' 0
1335 for ac_signal in 1 2 13 15; do
1336   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 done
1338 ac_signal=0
1339
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343 echo >confdefs.h
1344
1345 # Predefined preprocessor variables.
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 _ACEOF
1365
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 _ACEOF
1370
1371
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375   if test "x$prefix" != xNONE; then
1376     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377   else
1378     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379   fi
1380 fi
1381 for ac_site_file in $CONFIG_SITE; do
1382   if test -r "$ac_site_file"; then
1383     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385     sed 's/^/| /' "$ac_site_file" >&5
1386     . "$ac_site_file"
1387   fi
1388 done
1389
1390 if test -r "$cache_file"; then
1391   # Some versions of bash will fail to source /dev/null (special
1392   # files actually), so we avoid doing that.
1393   if test -f "$cache_file"; then
1394     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1396     case $cache_file in
1397       [\\/]* | ?:[\\/]* ) . $cache_file;;
1398       *)                      . ./$cache_file;;
1399     esac
1400   fi
1401 else
1402   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1404   >$cache_file
1405 fi
1406
1407 # Check that the precious variables saved in the cache have kept the same
1408 # value.
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413   eval ac_new_set=\$ac_env_${ac_var}_set
1414   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415   eval ac_new_val="\$ac_env_${ac_var}_value"
1416   case $ac_old_set,$ac_new_set in
1417     set,)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,set)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,);;
1426     *)
1427       if test "x$ac_old_val" != "x$ac_new_val"; then
1428         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1431 echo "$as_me:   former value:  $ac_old_val" >&2;}
1432         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1433 echo "$as_me:   current value: $ac_new_val" >&2;}
1434         ac_cache_corrupted=:
1435       fi;;
1436   esac
1437   # Pass precious variables to config.status.
1438   if test "$ac_new_set" = set; then
1439     case $ac_new_val in
1440     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442     *) ac_arg=$ac_var=$ac_new_val ;;
1443     esac
1444     case " $ac_configure_args " in
1445       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1446       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447     esac
1448   fi
1449 done
1450 if $ac_cache_corrupted; then
1451   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455    { (exit 1); exit 1; }; }
1456 fi
1457
1458 ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483 # Check whether --enable-checkmem or --disable-checkmem was given.
1484 if test "${enable_checkmem+set}" = set; then
1485   enableval="$enable_checkmem"
1486   CHECKMEM=true
1487 fi;
1488 # Check whether --enable-debug or --disable-debug was given.
1489 if test "${enable_debug+set}" = set; then
1490   enableval="$enable_debug"
1491   DEBUG=true
1492 fi;
1493 # Check whether --enable-warnings or --disable-warnings was given.
1494 if test "${enable_warnings+set}" = set; then
1495   enableval="$enable_warnings"
1496   ENABLE_WARNINGS=true
1497 fi;
1498 # Check whether --enable-optimizations or --disable-optimizations was given.
1499 if test "${enable_optimizations+set}" = set; then
1500   enableval="$enable_optimizations"
1501   OPTIMIZE=true
1502 fi;
1503 # Check whether --enable-lame or --disable-lame was given.
1504 if test "${enable_lame+set}" = set; then
1505   enableval="$enable_lame"
1506   DISABLE_LAME=true
1507 fi;
1508
1509 PACKAGE=swftools
1510 VERSION=2004-05-18-1254
1511
1512
1513
1514 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1515 if test "x$ENABLE_WARNINGS" '!=' "x";then
1516     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1517 fi
1518
1519 if test "x$CHECKMEM" '!=' "x";then
1520     DEBUG=yes
1521 fi
1522 if test "x$DEBUG" '!=' "x";then
1523     CFLAGS="$WARNINGS -g $CFLAGS"
1524     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1525 else if test "x$OPTIMIZE" '!=' "x"; then
1526     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1527     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1528 else
1529     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1530     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1531 fi
1532 fi
1533 #OLDGCC=1
1534 #if test "x$OLDGCC" '!=' "x";then
1535 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1536 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1537 #     CFLAGS="$CFLAGS -ansi -pendantic"
1538 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1539 #fi
1540
1541 export PACKAGE VERSION CFLAGS CXXFLAGS
1542
1543  ac_aux_dir=
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545   if test -f $ac_dir/install-sh; then
1546     ac_aux_dir=$ac_dir
1547     ac_install_sh="$ac_aux_dir/install-sh -c"
1548     break
1549   elif test -f $ac_dir/install.sh; then
1550     ac_aux_dir=$ac_dir
1551     ac_install_sh="$ac_aux_dir/install.sh -c"
1552     break
1553   elif test -f $ac_dir/shtool; then
1554     ac_aux_dir=$ac_dir
1555     ac_install_sh="$ac_aux_dir/shtool install -c"
1556     break
1557   fi
1558 done
1559 if test -z "$ac_aux_dir"; then
1560   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562    { (exit 1); exit 1; }; }
1563 fi
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572    { (exit 1); exit 1; }; }
1573
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577   echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579   ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581   ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585    { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589    { (exit 1); exit 1; }; }
1590
1591 fi
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1594 build=$ac_cv_build
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   ac_cv_host_alias=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607   ac_cv_host_alias=$ac_cv_build_alias
1608 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611    { (exit 1); exit 1; }; }
1612
1613 fi
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1616 host=$ac_cv_host
1617 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620
1621
1622 MACOSX=
1623 case $host_os in
1624     *darwin* )
1625         MACOSX=yes
1626         CFLAGS="$CFLAGS -fno-rtti"
1627         CXXFLAGS="$CXXFLAGS -fno-rtti"
1628         ;;
1629 esac
1630  ac_ext=c
1631 ac_cpp='$CPP $CPPFLAGS'
1632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635 if test -n "$ac_tool_prefix"; then
1636   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$CC"; then
1644   ac_cv_prog_CC="$CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 CC=$ac_cv_prog_CC
1663 if test -n "$CC"; then
1664   echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671 fi
1672 if test -z "$ac_cv_prog_CC"; then
1673   ac_ct_CC=$CC
1674   # Extract the first word of "gcc", so it can be a program name with args.
1675 set dummy gcc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679   echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681   if test -n "$ac_ct_CC"; then
1682   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 else
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   for ac_exec_ext in '' $ac_executable_extensions; do
1690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691     ac_cv_prog_ac_ct_CC="gcc"
1692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693     break 2
1694   fi
1695 done
1696 done
1697
1698 fi
1699 fi
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1704 else
1705   echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1707 fi
1708
1709   CC=$ac_ct_CC
1710 else
1711   CC="$ac_cv_prog_CC"
1712 fi
1713
1714 if test -z "$CC"; then
1715   if test -n "$ac_tool_prefix"; then
1716   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721   echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723   if test -n "$CC"; then
1724   ac_cv_prog_CC="$CC" # Let the user override the test.
1725 else
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1728 do
1729   IFS=$as_save_IFS
1730   test -z "$as_dir" && as_dir=.
1731   for ac_exec_ext in '' $ac_executable_extensions; do
1732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733     ac_cv_prog_CC="${ac_tool_prefix}cc"
1734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735     break 2
1736   fi
1737 done
1738 done
1739
1740 fi
1741 fi
1742 CC=$ac_cv_prog_CC
1743 if test -n "$CC"; then
1744   echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751 fi
1752 if test -z "$ac_cv_prog_CC"; then
1753   ac_ct_CC=$CC
1754   # Extract the first word of "cc", so it can be a program name with args.
1755 set dummy cc; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   if test -n "$ac_ct_CC"; then
1762   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 else
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 for as_dir in $PATH
1766 do
1767   IFS=$as_save_IFS
1768   test -z "$as_dir" && as_dir=.
1769   for ac_exec_ext in '' $ac_executable_extensions; do
1770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771     ac_cv_prog_ac_ct_CC="cc"
1772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773     break 2
1774   fi
1775 done
1776 done
1777
1778 fi
1779 fi
1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781 if test -n "$ac_ct_CC"; then
1782   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783 echo "${ECHO_T}$ac_ct_CC" >&6
1784 else
1785   echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1787 fi
1788
1789   CC=$ac_ct_CC
1790 else
1791   CC="$ac_cv_prog_CC"
1792 fi
1793
1794 fi
1795 if test -z "$CC"; then
1796   # Extract the first word of "cc", so it can be a program name with args.
1797 set dummy cc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   if test -n "$CC"; then
1804   ac_cv_prog_CC="$CC" # Let the user override the test.
1805 else
1806   ac_prog_rejected=no
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1815        ac_prog_rejected=yes
1816        continue
1817      fi
1818     ac_cv_prog_CC="cc"
1819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820     break 2
1821   fi
1822 done
1823 done
1824
1825 if test $ac_prog_rejected = yes; then
1826   # We found a bogon in the path, so make sure we never use it.
1827   set dummy $ac_cv_prog_CC
1828   shift
1829   if test $# != 0; then
1830     # We chose a different compiler from the bogus one.
1831     # However, it has the same basename, so the bogon will be chosen
1832     # first if we set CC to just the basename; use the full file name.
1833     shift
1834     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1835   fi
1836 fi
1837 fi
1838 fi
1839 CC=$ac_cv_prog_CC
1840 if test -n "$CC"; then
1841   echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1843 else
1844   echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848 fi
1849 if test -z "$CC"; then
1850   if test -n "$ac_tool_prefix"; then
1851   for ac_prog in cl
1852   do
1853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$CC"; then
1861   ac_cv_prog_CC="$CC" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872     break 2
1873   fi
1874 done
1875 done
1876
1877 fi
1878 fi
1879 CC=$ac_cv_prog_CC
1880 if test -n "$CC"; then
1881   echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888     test -n "$CC" && break
1889   done
1890 fi
1891 if test -z "$CC"; then
1892   ac_ct_CC=$CC
1893   for ac_prog in cl
1894 do
1895   # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$ac_ct_CC"; then
1903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_ac_ct_CC="$ac_prog"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930   test -n "$ac_ct_CC" && break
1931 done
1932
1933   CC=$ac_ct_CC
1934 fi
1935
1936 fi
1937
1938
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: no acceptable C compiler found in \$PATH
1942 See \`config.log' for more details." >&2;}
1943    { (exit 1); exit 1; }; }
1944
1945 # Provide some information about the compiler.
1946 echo "$as_me:$LINENO:" \
1947      "checking for C compiler version" >&5
1948 ac_compiler=`set X $ac_compile; echo $2`
1949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1950   (eval $ac_compiler --version </dev/null >&5) 2>&5
1951   ac_status=$?
1952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953   (exit $ac_status); }
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1955   (eval $ac_compiler -v </dev/null >&5) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1960   (eval $ac_compiler -V </dev/null >&5) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }
1964
1965 cat >conftest.$ac_ext <<_ACEOF
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 ac_clean_files_save=$ac_clean_files
1981 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1982 # Try to create an executable without -o first, disregard a.out.
1983 # It will help us diagnose broken compilers, and finding out an intuition
1984 # of exeext.
1985 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1986 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1987 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1988 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1989   (eval $ac_link_default) 2>&5
1990   ac_status=$?
1991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992   (exit $ac_status); }; then
1993   # Find the output, starting from the most likely.  This scheme is
1994 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1995 # resort.
1996
1997 # Be careful to initialize this variable, since it used to be cached.
1998 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1999 ac_cv_exeext=
2000 # b.out is created by i960 compilers.
2001 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2002 do
2003   test -f "$ac_file" || continue
2004   case $ac_file in
2005     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2006         ;;
2007     conftest.$ac_ext )
2008         # This is the source file.
2009         ;;
2010     [ab].out )
2011         # We found the default executable, but exeext='' is most
2012         # certainly right.
2013         break;;
2014     *.* )
2015         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2016         # FIXME: I believe we export ac_cv_exeext for Libtool,
2017         # but it would be cool to find out if it's true.  Does anybody
2018         # maintain Libtool? --akim.
2019         export ac_cv_exeext
2020         break;;
2021     * )
2022         break;;
2023   esac
2024 done
2025 else
2026   echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2028
2029 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2030 See \`config.log' for more details." >&5
2031 echo "$as_me: error: C compiler cannot create executables
2032 See \`config.log' for more details." >&2;}
2033    { (exit 77); exit 77; }; }
2034 fi
2035
2036 ac_exeext=$ac_cv_exeext
2037 echo "$as_me:$LINENO: result: $ac_file" >&5
2038 echo "${ECHO_T}$ac_file" >&6
2039
2040 # Check the compiler produces executables we can run.  If not, either
2041 # the compiler is broken, or we cross compile.
2042 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2043 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2044 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2045 # If not cross compiling, check that we can run a simple program.
2046 if test "$cross_compiling" != yes; then
2047   if { ac_try='./$ac_file'
2048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049   (eval $ac_try) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; }; then
2053     cross_compiling=no
2054   else
2055     if test "$cross_compiling" = maybe; then
2056         cross_compiling=yes
2057     else
2058         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2059 If you meant to cross compile, use \`--host'.
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: cannot run C compiled programs.
2062 If you meant to cross compile, use \`--host'.
2063 See \`config.log' for more details." >&2;}
2064    { (exit 1); exit 1; }; }
2065     fi
2066   fi
2067 fi
2068 echo "$as_me:$LINENO: result: yes" >&5
2069 echo "${ECHO_T}yes" >&6
2070
2071 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2072 ac_clean_files=$ac_clean_files_save
2073 # Check the compiler produces executables we can run.  If not, either
2074 # the compiler is broken, or we cross compile.
2075 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2076 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2077 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2078 echo "${ECHO_T}$cross_compiling" >&6
2079
2080 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2081 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2083   (eval $ac_link) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }; then
2087   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2088 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2089 # work properly (i.e., refer to `conftest.exe'), while it won't with
2090 # `rm'.
2091 for ac_file in conftest.exe conftest conftest.*; do
2092   test -f "$ac_file" || continue
2093   case $ac_file in
2094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2095     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096           export ac_cv_exeext
2097           break;;
2098     * ) break;;
2099   esac
2100 done
2101 else
2102   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2103 See \`config.log' for more details." >&5
2104 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2105 See \`config.log' for more details." >&2;}
2106    { (exit 1); exit 1; }; }
2107 fi
2108
2109 rm -f conftest$ac_cv_exeext
2110 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2111 echo "${ECHO_T}$ac_cv_exeext" >&6
2112
2113 rm -f conftest.$ac_ext
2114 EXEEXT=$ac_cv_exeext
2115 ac_exeext=$EXEEXT
2116 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2117 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2118 if test "${ac_cv_objext+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   cat >conftest.$ac_ext <<_ACEOF
2122 /* confdefs.h.  */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h.  */
2127
2128 int
2129 main ()
2130 {
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 rm -f conftest.o conftest.obj
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138   (eval $ac_compile) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; then
2142   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2143   case $ac_file in
2144     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2145     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2146        break;;
2147   esac
2148 done
2149 else
2150   echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2156 See \`config.log' for more details." >&2;}
2157    { (exit 1); exit 1; }; }
2158 fi
2159
2160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2161 fi
2162 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2163 echo "${ECHO_T}$ac_cv_objext" >&6
2164 OBJEXT=$ac_cv_objext
2165 ac_objext=$OBJEXT
2166 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h.  */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h.  */
2177
2178 int
2179 main ()
2180 {
2181 #ifndef __GNUC__
2182        choke me
2183 #endif
2184
2185   ;
2186   return 0;
2187 }
2188 _ACEOF
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191   (eval $ac_compile) 2>conftest.er1
2192   ac_status=$?
2193   grep -v '^ *+' conftest.er1 >conftest.err
2194   rm -f conftest.er1
2195   cat conftest.err >&5
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); } &&
2198          { ac_try='test -z "$ac_c_werror_flag"
2199                          || test ! -s conftest.err'
2200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201   (eval $ac_try) 2>&5
2202   ac_status=$?
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); }; } &&
2205          { ac_try='test -s conftest.$ac_objext'
2206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207   (eval $ac_try) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }; }; then
2211   ac_compiler_gnu=yes
2212 else
2213   echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215
2216 ac_compiler_gnu=no
2217 fi
2218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2220
2221 fi
2222 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2223 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2224 GCC=`test $ac_compiler_gnu = yes && echo yes`
2225 ac_test_CFLAGS=${CFLAGS+set}
2226 ac_save_CFLAGS=$CFLAGS
2227 CFLAGS="-g"
2228 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2229 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2230 if test "${ac_cv_prog_cc_g+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   cat >conftest.$ac_ext <<_ACEOF
2234 /* confdefs.h.  */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h.  */
2239
2240 int
2241 main ()
2242 {
2243
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250   (eval $ac_compile) 2>conftest.er1
2251   ac_status=$?
2252   grep -v '^ *+' conftest.er1 >conftest.err
2253   rm -f conftest.er1
2254   cat conftest.err >&5
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); } &&
2257          { ac_try='test -z "$ac_c_werror_flag"
2258                          || test ! -s conftest.err'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; } &&
2264          { ac_try='test -s conftest.$ac_objext'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; }; then
2270   ac_cv_prog_cc_g=yes
2271 else
2272   echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 ac_cv_prog_cc_g=no
2276 fi
2277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 fi
2279 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2281 if test "$ac_test_CFLAGS" = set; then
2282   CFLAGS=$ac_save_CFLAGS
2283 elif test $ac_cv_prog_cc_g = yes; then
2284   if test "$GCC" = yes; then
2285     CFLAGS="-g -O2"
2286   else
2287     CFLAGS="-g"
2288   fi
2289 else
2290   if test "$GCC" = yes; then
2291     CFLAGS="-O2"
2292   else
2293     CFLAGS=
2294   fi
2295 fi
2296 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2297 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2298 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   ac_cv_prog_cc_stdc=no
2302 ac_save_CC=$CC
2303 cat >conftest.$ac_ext <<_ACEOF
2304 /* confdefs.h.  */
2305 _ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h.  */
2309 #include <stdarg.h>
2310 #include <stdio.h>
2311 #include <sys/types.h>
2312 #include <sys/stat.h>
2313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2314 struct buf { int x; };
2315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2316 static char *e (p, i)
2317      char **p;
2318      int i;
2319 {
2320   return p[i];
2321 }
2322 static char *f (char * (*g) (char **, int), char **p, ...)
2323 {
2324   char *s;
2325   va_list v;
2326   va_start (v,p);
2327   s = g (p, va_arg (v,int));
2328   va_end (v);
2329   return s;
2330 }
2331
2332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2333    function prototypes and stuff, but not '\xHH' hex character constants.
2334    These don't provoke an error unfortunately, instead are silently treated
2335    as 'x'.  The following induces an error, until -std1 is added to get
2336    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2337    array size at least.  It's necessary to write '\x00'==0 to get something
2338    that's true only with -std1.  */
2339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2340
2341 int test (int i, double x);
2342 struct s1 {int (*f) (int a);};
2343 struct s2 {int (*f) (double a);};
2344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2345 int argc;
2346 char **argv;
2347 int
2348 main ()
2349 {
2350 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 # Don't try gcc -ansi; that turns off useful extensions and
2356 # breaks some systems' header files.
2357 # AIX                   -qlanglvl=ansi
2358 # Ultrix and OSF/1      -std1
2359 # HP-UX 10.20 and later -Ae
2360 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2361 # SVR4                  -Xc -D__EXTENSIONS__
2362 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2363 do
2364   CC="$ac_save_CC $ac_arg"
2365   rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367   (eval $ac_compile) 2>conftest.er1
2368   ac_status=$?
2369   grep -v '^ *+' conftest.er1 >conftest.err
2370   rm -f conftest.er1
2371   cat conftest.err >&5
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); } &&
2374          { ac_try='test -z "$ac_c_werror_flag"
2375                          || test ! -s conftest.err'
2376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377   (eval $ac_try) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; } &&
2381          { ac_try='test -s conftest.$ac_objext'
2382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383   (eval $ac_try) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; }; then
2387   ac_cv_prog_cc_stdc=$ac_arg
2388 break
2389 else
2390   echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 fi
2394 rm -f conftest.err conftest.$ac_objext
2395 done
2396 rm -f conftest.$ac_ext conftest.$ac_objext
2397 CC=$ac_save_CC
2398
2399 fi
2400
2401 case "x$ac_cv_prog_cc_stdc" in
2402   x|xno)
2403     echo "$as_me:$LINENO: result: none needed" >&5
2404 echo "${ECHO_T}none needed" >&6 ;;
2405   *)
2406     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2407 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2408     CC="$CC $ac_cv_prog_cc_stdc" ;;
2409 esac
2410
2411 # Some people use a C++ compiler to compile C.  Since we use `exit',
2412 # in C++ we need to declare it.  In case someone uses the same compiler
2413 # for both compiling C and C++ we need to have the C++ compiler decide
2414 # the declaration of exit, since it's the most demanding environment.
2415 cat >conftest.$ac_ext <<_ACEOF
2416 #ifndef __cplusplus
2417   choke me
2418 #endif
2419 _ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422   (eval $ac_compile) 2>conftest.er1
2423   ac_status=$?
2424   grep -v '^ *+' conftest.er1 >conftest.err
2425   rm -f conftest.er1
2426   cat conftest.err >&5
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } &&
2429          { ac_try='test -z "$ac_c_werror_flag"
2430                          || test ! -s conftest.err'
2431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432   (eval $ac_try) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; } &&
2436          { ac_try='test -s conftest.$ac_objext'
2437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438   (eval $ac_try) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }; }; then
2442   for ac_declaration in \
2443    '' \
2444    'extern "C" void std::exit (int) throw (); using std::exit;' \
2445    'extern "C" void std::exit (int); using std::exit;' \
2446    'extern "C" void exit (int) throw ();' \
2447    'extern "C" void exit (int);' \
2448    'void exit (int);'
2449 do
2450   cat >conftest.$ac_ext <<_ACEOF
2451 /* confdefs.h.  */
2452 _ACEOF
2453 cat confdefs.h >>conftest.$ac_ext
2454 cat >>conftest.$ac_ext <<_ACEOF
2455 /* end confdefs.h.  */
2456 $ac_declaration
2457 #include <stdlib.h>
2458 int
2459 main ()
2460 {
2461 exit (42);
2462   ;
2463   return 0;
2464 }
2465 _ACEOF
2466 rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468   (eval $ac_compile) 2>conftest.er1
2469   ac_status=$?
2470   grep -v '^ *+' conftest.er1 >conftest.err
2471   rm -f conftest.er1
2472   cat conftest.err >&5
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -z "$ac_c_werror_flag"
2476                          || test ! -s conftest.err'
2477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478   (eval $ac_try) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; } &&
2482          { ac_try='test -s conftest.$ac_objext'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   :
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 continue
2494 fi
2495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496   cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h.  */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h.  */
2502 $ac_declaration
2503 int
2504 main ()
2505 {
2506 exit (42);
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513   (eval $ac_compile) 2>conftest.er1
2514   ac_status=$?
2515   grep -v '^ *+' conftest.er1 >conftest.err
2516   rm -f conftest.er1
2517   cat conftest.err >&5
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); } &&
2520          { ac_try='test -z "$ac_c_werror_flag"
2521                          || test ! -s conftest.err'
2522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523   (eval $ac_try) 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; } &&
2527          { ac_try='test -s conftest.$ac_objext'
2528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529   (eval $ac_try) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; }; then
2533   break
2534 else
2535   echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 fi
2539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2540 done
2541 rm -f conftest*
2542 if test -n "$ac_declaration"; then
2543   echo '#ifdef __cplusplus' >>confdefs.h
2544   echo $ac_declaration      >>confdefs.h
2545   echo '#endif'             >>confdefs.h
2546 fi
2547
2548 else
2549   echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 fi
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_ext=c
2555 ac_cpp='$CPP $CPPFLAGS'
2556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559
2560  ac_ext=cc
2561 ac_cpp='$CXXCPP $CPPFLAGS'
2562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2565 if test -n "$ac_tool_prefix"; then
2566   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2567   do
2568     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2570 echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2572 if test "${ac_cv_prog_CXX+set}" = set; then
2573   echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575   if test -n "$CXX"; then
2576   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581   IFS=$as_save_IFS
2582   test -z "$as_dir" && as_dir=.
2583   for ac_exec_ext in '' $ac_executable_extensions; do
2584   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587     break 2
2588   fi
2589 done
2590 done
2591
2592 fi
2593 fi
2594 CXX=$ac_cv_prog_CXX
2595 if test -n "$CXX"; then
2596   echo "$as_me:$LINENO: result: $CXX" >&5
2597 echo "${ECHO_T}$CXX" >&6
2598 else
2599   echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2601 fi
2602
2603     test -n "$CXX" && break
2604   done
2605 fi
2606 if test -z "$CXX"; then
2607   ac_ct_CXX=$CXX
2608   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2609 do
2610   # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   if test -n "$ac_ct_CXX"; then
2618   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623   IFS=$as_save_IFS
2624   test -z "$as_dir" && as_dir=.
2625   for ac_exec_ext in '' $ac_executable_extensions; do
2626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627     ac_cv_prog_ac_ct_CXX="$ac_prog"
2628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629     break 2
2630   fi
2631 done
2632 done
2633
2634 fi
2635 fi
2636 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2637 if test -n "$ac_ct_CXX"; then
2638   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2639 echo "${ECHO_T}$ac_ct_CXX" >&6
2640 else
2641   echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2643 fi
2644
2645   test -n "$ac_ct_CXX" && break
2646 done
2647 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2648
2649   CXX=$ac_ct_CXX
2650 fi
2651
2652
2653 # Provide some information about the compiler.
2654 echo "$as_me:$LINENO:" \
2655      "checking for C++ compiler version" >&5
2656 ac_compiler=`set X $ac_compile; echo $2`
2657 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2658   (eval $ac_compiler --version </dev/null >&5) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }
2662 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2663   (eval $ac_compiler -v </dev/null >&5) 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }
2667 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2668   (eval $ac_compiler -V </dev/null >&5) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }
2672
2673 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2674 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2675 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684
2685 int
2686 main ()
2687 {
2688 #ifndef __GNUC__
2689        choke me
2690 #endif
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698   (eval $ac_compile) 2>conftest.er1
2699   ac_status=$?
2700   grep -v '^ *+' conftest.er1 >conftest.err
2701   rm -f conftest.er1
2702   cat conftest.err >&5
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } &&
2705          { ac_try='test -z "$ac_cxx_werror_flag"
2706                          || test ! -s conftest.err'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   ac_compiler_gnu=yes
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 ac_compiler_gnu=no
2724 fi
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2727
2728 fi
2729 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2730 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2731 GXX=`test $ac_compiler_gnu = yes && echo yes`
2732 ac_test_CXXFLAGS=${CXXFLAGS+set}
2733 ac_save_CXXFLAGS=$CXXFLAGS
2734 CXXFLAGS="-g"
2735 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2736 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2737 if test "${ac_cv_prog_cxx_g+set}" = set; then
2738   echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740   cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h.  */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h.  */
2746
2747 int
2748 main ()
2749 {
2750
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757   (eval $ac_compile) 2>conftest.er1
2758   ac_status=$?
2759   grep -v '^ *+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } &&
2764          { ac_try='test -z "$ac_cxx_werror_flag"
2765                          || test ! -s conftest.err'
2766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; } &&
2771          { ac_try='test -s conftest.$ac_objext'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   ac_cv_prog_cxx_g=yes
2778 else
2779   echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 ac_cv_prog_cxx_g=no
2783 fi
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 fi
2786 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2788 if test "$ac_test_CXXFLAGS" = set; then
2789   CXXFLAGS=$ac_save_CXXFLAGS
2790 elif test $ac_cv_prog_cxx_g = yes; then
2791   if test "$GXX" = yes; then
2792     CXXFLAGS="-g -O2"
2793   else
2794     CXXFLAGS="-g"
2795   fi
2796 else
2797   if test "$GXX" = yes; then
2798     CXXFLAGS="-O2"
2799   else
2800     CXXFLAGS=
2801   fi
2802 fi
2803 for ac_declaration in \
2804    '' \
2805    'extern "C" void std::exit (int) throw (); using std::exit;' \
2806    'extern "C" void std::exit (int); using std::exit;' \
2807    'extern "C" void exit (int) throw ();' \
2808    'extern "C" void exit (int);' \
2809    'void exit (int);'
2810 do
2811   cat >conftest.$ac_ext <<_ACEOF
2812 /* confdefs.h.  */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h.  */
2817 $ac_declaration
2818 #include <stdlib.h>
2819 int
2820 main ()
2821 {
2822 exit (42);
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829   (eval $ac_compile) 2>conftest.er1
2830   ac_status=$?
2831   grep -v '^ *+' conftest.er1 >conftest.err
2832   rm -f conftest.er1
2833   cat conftest.err >&5
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836          { ac_try='test -z "$ac_cxx_werror_flag"
2837                          || test ! -s conftest.err'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; } &&
2843          { ac_try='test -s conftest.$ac_objext'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849   :
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 continue
2855 fi
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857   cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 $ac_declaration
2864 int
2865 main ()
2866 {
2867 exit (42);
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_cxx_werror_flag"
2882                          || test ! -s conftest.err'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; } &&
2888          { ac_try='test -s conftest.$ac_objext'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894   break
2895 else
2896   echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899 fi
2900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901 done
2902 rm -f conftest*
2903 if test -n "$ac_declaration"; then
2904   echo '#ifdef __cplusplus' >>confdefs.h
2905   echo $ac_declaration      >>confdefs.h
2906   echo '#endif'             >>confdefs.h
2907 fi
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914
2915
2916 if test "x$CHECKMEM" '!=' "x";then
2917     CC="ccmalloc $CC"
2918     CXX="ccmalloc $CXX"
2919     #echo running again
2920     #unset ac_cv_prog_CC
2921     #unset ac_cv_prog_CXX
2922     #AC_PROG_CC
2923     #AC_PROG_CXX
2924 fi
2925  ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2931 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2932 # On Suns, sometimes $CPP names a directory.
2933 if test -n "$CPP" && test -d "$CPP"; then
2934   CPP=
2935 fi
2936 if test -z "$CPP"; then
2937   if test "${ac_cv_prog_CPP+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940       # Double quotes because CPP needs to be expanded
2941     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2942     do
2943       ac_preproc_ok=false
2944 for ac_c_preproc_warn_flag in '' yes
2945 do
2946   # Use a header file that comes with gcc, so configuring glibc
2947   # with a fresh cross-compiler works.
2948   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2949   # <limits.h> exists even on freestanding compilers.
2950   # On the NeXT, cc -E runs the code through the compiler's parser,
2951   # not just through cpp. "Syntax error" is here to catch this case.
2952   cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958 #ifdef __STDC__
2959 # include <limits.h>
2960 #else
2961 # include <assert.h>
2962 #endif
2963                      Syntax error
2964 _ACEOF
2965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } >/dev/null; then
2973   if test -s conftest.err; then
2974     ac_cpp_err=$ac_c_preproc_warn_flag
2975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2976   else
2977     ac_cpp_err=
2978   fi
2979 else
2980   ac_cpp_err=yes
2981 fi
2982 if test -z "$ac_cpp_err"; then
2983   :
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988   # Broken: fails on valid input.
2989 continue
2990 fi
2991 rm -f conftest.err conftest.$ac_ext
2992
2993   # OK, works on sane cases.  Now check whether non-existent headers
2994   # can be detected and how.
2995   cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001 #include <ac_nonexistent.h>
3002 _ACEOF
3003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3005   ac_status=$?
3006   grep -v '^ *+' conftest.er1 >conftest.err
3007   rm -f conftest.er1
3008   cat conftest.err >&5
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); } >/dev/null; then
3011   if test -s conftest.err; then
3012     ac_cpp_err=$ac_c_preproc_warn_flag
3013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3014   else
3015     ac_cpp_err=
3016   fi
3017 else
3018   ac_cpp_err=yes
3019 fi
3020 if test -z "$ac_cpp_err"; then
3021   # Broken: success on invalid input.
3022 continue
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027   # Passes both tests.
3028 ac_preproc_ok=:
3029 break
3030 fi
3031 rm -f conftest.err conftest.$ac_ext
3032
3033 done
3034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035 rm -f conftest.err conftest.$ac_ext
3036 if $ac_preproc_ok; then
3037   break
3038 fi
3039
3040     done
3041     ac_cv_prog_CPP=$CPP
3042
3043 fi
3044   CPP=$ac_cv_prog_CPP
3045 else
3046   ac_cv_prog_CPP=$CPP
3047 fi
3048 echo "$as_me:$LINENO: result: $CPP" >&5
3049 echo "${ECHO_T}$CPP" >&6
3050 ac_preproc_ok=false
3051 for ac_c_preproc_warn_flag in '' yes
3052 do
3053   # Use a header file that comes with gcc, so configuring glibc
3054   # with a fresh cross-compiler works.
3055   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056   # <limits.h> exists even on freestanding compilers.
3057   # On the NeXT, cc -E runs the code through the compiler's parser,
3058   # not just through cpp. "Syntax error" is here to catch this case.
3059   cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 #ifdef __STDC__
3066 # include <limits.h>
3067 #else
3068 # include <assert.h>
3069 #endif
3070                      Syntax error
3071 _ACEOF
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } >/dev/null; then
3080   if test -s conftest.err; then
3081     ac_cpp_err=$ac_c_preproc_warn_flag
3082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3083   else
3084     ac_cpp_err=
3085   fi
3086 else
3087   ac_cpp_err=yes
3088 fi
3089 if test -z "$ac_cpp_err"; then
3090   :
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095   # Broken: fails on valid input.
3096 continue
3097 fi
3098 rm -f conftest.err conftest.$ac_ext
3099
3100   # OK, works on sane cases.  Now check whether non-existent headers
3101   # can be detected and how.
3102   cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108 #include <ac_nonexistent.h>
3109 _ACEOF
3110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3112   ac_status=$?
3113   grep -v '^ *+' conftest.er1 >conftest.err
3114   rm -f conftest.er1
3115   cat conftest.err >&5
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } >/dev/null; then
3118   if test -s conftest.err; then
3119     ac_cpp_err=$ac_c_preproc_warn_flag
3120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3121   else
3122     ac_cpp_err=
3123   fi
3124 else
3125   ac_cpp_err=yes
3126 fi
3127 if test -z "$ac_cpp_err"; then
3128   # Broken: success on invalid input.
3129 continue
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134   # Passes both tests.
3135 ac_preproc_ok=:
3136 break
3137 fi
3138 rm -f conftest.err conftest.$ac_ext
3139
3140 done
3141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3142 rm -f conftest.err conftest.$ac_ext
3143 if $ac_preproc_ok; then
3144   :
3145 else
3146   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3147 See \`config.log' for more details." >&5
3148 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3149 See \`config.log' for more details." >&2;}
3150    { (exit 1); exit 1; }; }
3151 fi
3152
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158
3159
3160  if test -n "$ac_tool_prefix"; then
3161   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_RANLIB+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   if test -n "$RANLIB"; then
3169   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176   for ac_exec_ext in '' $ac_executable_extensions; do
3177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183 done
3184
3185 fi
3186 fi
3187 RANLIB=$ac_cv_prog_RANLIB
3188 if test -n "$RANLIB"; then
3189   echo "$as_me:$LINENO: result: $RANLIB" >&5
3190 echo "${ECHO_T}$RANLIB" >&6
3191 else
3192   echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3194 fi
3195
3196 fi
3197 if test -z "$ac_cv_prog_RANLIB"; then
3198   ac_ct_RANLIB=$RANLIB
3199   # Extract the first word of "ranlib", so it can be a program name with args.
3200 set dummy ranlib; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   if test -n "$ac_ct_RANLIB"; then
3207   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214   for ac_exec_ext in '' $ac_executable_extensions; do
3215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216     ac_cv_prog_ac_ct_RANLIB="ranlib"
3217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221 done
3222
3223   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3224 fi
3225 fi
3226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3227 if test -n "$ac_ct_RANLIB"; then
3228   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3229 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3230 else
3231   echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3233 fi
3234
3235   RANLIB=$ac_ct_RANLIB
3236 else
3237   RANLIB="$ac_cv_prog_RANLIB"
3238 fi
3239
3240  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3242 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3243 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246   cat >conftest.make <<\_ACEOF
3247 all:
3248         @echo 'ac_maketemp="$(MAKE)"'
3249 _ACEOF
3250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3251 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3252 if test -n "$ac_maketemp"; then
3253   eval ac_cv_prog_make_${ac_make}_set=yes
3254 else
3255   eval ac_cv_prog_make_${ac_make}_set=no
3256 fi
3257 rm -f conftest.make
3258 fi
3259 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3260   echo "$as_me:$LINENO: result: yes" >&5
3261 echo "${ECHO_T}yes" >&6
3262   SET_MAKE=
3263 else
3264   echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3266   SET_MAKE="MAKE=${MAKE-make}"
3267 fi
3268
3269  # Find a good install program.  We prefer a C program (faster),
3270 # so one script is as good as another.  But avoid the broken or
3271 # incompatible versions:
3272 # SysV /etc/install, /usr/sbin/install
3273 # SunOS /usr/etc/install
3274 # IRIX /sbin/install
3275 # AIX /bin/install
3276 # AmigaOS /C/install, which installs bootblocks on floppy discs
3277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3280 # OS/2's system install, which has a completely different semantic
3281 # ./install, which can be erroneously created by make from ./install.sh.
3282 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3284 if test -z "$INSTALL"; then
3285 if test "${ac_cv_path_install+set}" = set; then
3286   echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293   # Account for people who put trailing slashes in PATH elements.
3294 case $as_dir/ in
3295   ./ | .// | /cC/* | \
3296   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3297   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3298   /usr/ucb/* ) ;;
3299   *)
3300     # OSF1 and SCO ODT 3.0 have their own names for install.
3301     # Don't use installbsd from OSF since it installs stuff as root
3302     # by default.
3303     for ac_prog in ginstall scoinst install; do
3304       for ac_exec_ext in '' $ac_executable_extensions; do
3305         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3306           if test $ac_prog = install &&
3307             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3308             # AIX install.  It has an incompatible calling convention.
3309             :
3310           elif test $ac_prog = install &&
3311             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3312             # program-specific install script used by HP pwplus--don't use.
3313             :
3314           else
3315             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3316             break 3
3317           fi
3318         fi
3319       done
3320     done
3321     ;;
3322 esac
3323 done
3324
3325
3326 fi
3327   if test "${ac_cv_path_install+set}" = set; then
3328     INSTALL=$ac_cv_path_install
3329   else
3330     # As a last resort, use the slow shell script.  We don't cache a
3331     # path for INSTALL within a source directory, because that will
3332     # break other packages using the cache if that directory is
3333     # removed, or if the path is relative.
3334     INSTALL=$ac_install_sh
3335   fi
3336 fi
3337 echo "$as_me:$LINENO: result: $INSTALL" >&5
3338 echo "${ECHO_T}$INSTALL" >&6
3339
3340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3341 # It thinks the first close brace ends the variable substitution.
3342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3343
3344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3345
3346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3347
3348  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3349 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3350 LN_S=$as_ln_s
3351 if test "$LN_S" = "ln -s"; then
3352   echo "$as_me:$LINENO: result: yes" >&5
3353 echo "${ECHO_T}yes" >&6
3354 else
3355   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3356 echo "${ECHO_T}no, using $LN_S" >&6
3357 fi
3358
3359  # Check whether --enable-shared or --disable-shared was given.
3360 if test "${enable_shared+set}" = set; then
3361   enableval="$enable_shared"
3362   p=${PACKAGE-default}
3363 case $enableval in
3364 yes) enable_shared=yes ;;
3365 no) enable_shared=no ;;
3366 *)
3367   enable_shared=no
3368   # Look at the argument we got.  We use all the common list separators.
3369   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3370   for pkg in $enableval; do
3371     if test "X$pkg" = "X$p"; then
3372       enable_shared=yes
3373     fi
3374   done
3375   IFS="$ac_save_ifs"
3376   ;;
3377 esac
3378 else
3379   enable_shared=yes
3380 fi;
3381 # Check whether --enable-static or --disable-static was given.
3382 if test "${enable_static+set}" = set; then
3383   enableval="$enable_static"
3384   p=${PACKAGE-default}
3385 case $enableval in
3386 yes) enable_static=yes ;;
3387 no) enable_static=no ;;
3388 *)
3389   enable_static=no
3390   # Look at the argument we got.  We use all the common list separators.
3391   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3392   for pkg in $enableval; do
3393     if test "X$pkg" = "X$p"; then
3394       enable_static=yes
3395     fi
3396   done
3397   IFS="$ac_save_ifs"
3398   ;;
3399 esac
3400 else
3401   enable_static=yes
3402 fi;
3403 # Check whether --enable-fast-install or --disable-fast-install was given.
3404 if test "${enable_fast_install+set}" = set; then
3405   enableval="$enable_fast_install"
3406   p=${PACKAGE-default}
3407 case $enableval in
3408 yes) enable_fast_install=yes ;;
3409 no) enable_fast_install=no ;;
3410 *)
3411   enable_fast_install=no
3412   # Look at the argument we got.  We use all the common list separators.
3413   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3414   for pkg in $enableval; do
3415     if test "X$pkg" = "X$p"; then
3416       enable_fast_install=yes
3417     fi
3418   done
3419   IFS="$ac_save_ifs"
3420   ;;
3421 esac
3422 else
3423   enable_fast_install=yes
3424 fi;
3425 # Find the correct PATH separator.  Usually this is `:', but
3426 # DJGPP uses `;' like DOS.
3427 if test "X${PATH_SEPARATOR+set}" != Xset; then
3428   UNAME=${UNAME-`uname 2>/dev/null`}
3429   case X$UNAME in
3430     *-DOS) lt_cv_sys_path_separator=';' ;;
3431     *)     lt_cv_sys_path_separator=':' ;;
3432   esac
3433   PATH_SEPARATOR=$lt_cv_sys_path_separator
3434 fi
3435
3436
3437 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3438 if test "${with_gnu_ld+set}" = set; then
3439   withval="$with_gnu_ld"
3440   test "$withval" = no || with_gnu_ld=yes
3441 else
3442   with_gnu_ld=no
3443 fi;
3444 ac_prog=ld
3445 if test "$GCC" = yes; then
3446   # Check if gcc -print-prog-name=ld gives a path.
3447   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3448 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3449   case $host in
3450   *-*-mingw*)
3451     # gcc leaves a trailing carriage return which upsets mingw
3452     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3453   *)
3454     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3455   esac
3456   case $ac_prog in
3457     # Accept absolute paths.
3458     [\\/]* | [A-Za-z]:[\\/]*)
3459       re_direlt='/[^/][^/]*/\.\./'
3460       # Canonicalize the path of ld
3461       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3462       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3463         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3464       done
3465       test -z "$LD" && LD="$ac_prog"
3466       ;;
3467   "")
3468     # If it fails, then pretend we aren't using GCC.
3469     ac_prog=ld
3470     ;;
3471   *)
3472     # If it is relative, then search for the first ld in PATH.
3473     with_gnu_ld=unknown
3474     ;;
3475   esac
3476 elif test "$with_gnu_ld" = yes; then
3477   echo "$as_me:$LINENO: checking for GNU ld" >&5
3478 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3479 else
3480   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3481 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3482 fi
3483 if test "${lt_cv_path_LD+set}" = set; then
3484   echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486   if test -z "$LD"; then
3487   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3488   for ac_dir in $PATH; do
3489     test -z "$ac_dir" && ac_dir=.
3490     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3491       lt_cv_path_LD="$ac_dir/$ac_prog"
3492       # Check to see if the program is GNU ld.  I'd rather use --version,
3493       # but apparently some GNU ld's only accept -v.
3494       # Break only if it was the GNU/non-GNU ld that we prefer.
3495       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3496         test "$with_gnu_ld" != no && break
3497       else
3498         test "$with_gnu_ld" != yes && break
3499       fi
3500     fi
3501   done
3502   IFS="$ac_save_ifs"
3503 else
3504   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3505 fi
3506 fi
3507
3508 LD="$lt_cv_path_LD"
3509 if test -n "$LD"; then
3510   echo "$as_me:$LINENO: result: $LD" >&5
3511 echo "${ECHO_T}$LD" >&6
3512 else
3513   echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3515 fi
3516 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3517 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3518    { (exit 1); exit 1; }; }
3519 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3520 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3521 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3525 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3526   lt_cv_prog_gnu_ld=yes
3527 else
3528   lt_cv_prog_gnu_ld=no
3529 fi
3530 fi
3531 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3532 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3533 with_gnu_ld=$lt_cv_prog_gnu_ld
3534
3535
3536 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3537 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3538 if test "${lt_cv_ld_reload_flag+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   lt_cv_ld_reload_flag='-r'
3542 fi
3543 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3544 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3545 reload_flag=$lt_cv_ld_reload_flag
3546 test -n "$reload_flag" && reload_flag=" $reload_flag"
3547
3548 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3549 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3550 if test "${lt_cv_path_NM+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   if test -n "$NM"; then
3554   # Let the user override the test.
3555   lt_cv_path_NM="$NM"
3556 else
3557   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3558   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3559     test -z "$ac_dir" && ac_dir=.
3560     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3561     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3562       # Check to see if the nm accepts a BSD-compat flag.
3563       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3564       #   nm: unknown option "B" ignored
3565       # Tru64's nm complains that /dev/null is an invalid object file
3566       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3567         lt_cv_path_NM="$tmp_nm -B"
3568         break
3569       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3570         lt_cv_path_NM="$tmp_nm -p"
3571         break
3572       else
3573         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3574         continue # so that we can try to find one that supports BSD flags
3575       fi
3576     fi
3577   done
3578   IFS="$ac_save_ifs"
3579   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3580 fi
3581 fi
3582
3583 NM="$lt_cv_path_NM"
3584 echo "$as_me:$LINENO: result: $NM" >&5
3585 echo "${ECHO_T}$NM" >&6
3586
3587 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3588 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3589 if test "${lt_cv_path_SED+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   # Loop through the user's path and test for sed and gsed.
3593 # Then use that list of sed's as ones to test for truncation.
3594 as_executable_p="test -f"
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598   IFS=$as_save_IFS
3599   test -z "$as_dir" && as_dir=.
3600   for ac_prog in sed gsed; do
3601     for ac_exec_ext in '' $ac_executable_extensions; do
3602       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3603         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3604       fi
3605     done
3606   done
3607 done
3608
3609   # Create a temporary directory, and hook for its removal unless debugging.
3610 $debug ||
3611 {
3612   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3613   trap '{ (exit 1); exit 1; }' 1 2 13 15
3614 }
3615
3616 # Create a (secure) tmp directory for tmp files.
3617 : ${TMPDIR=/tmp}
3618 {
3619   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3620   test -n "$tmp" && test -d "$tmp"
3621 }  ||
3622 {
3623   tmp=$TMPDIR/sed$$-$RANDOM
3624   (umask 077 && mkdir $tmp)
3625 } ||
3626 {
3627    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3628    { (exit 1); exit 1; }
3629 }
3630   _max=0
3631   _count=0
3632   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3633   # along with /bin/sed that truncates output.
3634   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3635     test ! -f ${_sed} && break
3636     cat /dev/null > "$tmp/sed.in"
3637     _count=0
3638     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3639     # Check for GNU sed and select it if it is found.
3640     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3641       lt_cv_path_SED=${_sed}
3642       break
3643     fi
3644     while true; do
3645       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3646       mv "$tmp/sed.tmp" "$tmp/sed.in"
3647       cp "$tmp/sed.in" "$tmp/sed.nl"
3648       echo >>"$tmp/sed.nl"
3649       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3650       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3651       # 40000 chars as input seems more than enough
3652       test $_count -gt 10 && break
3653       _count=`expr $_count + 1`
3654       if test $_count -gt $_max; then
3655         _max=$_count
3656         lt_cv_path_SED=$_sed
3657       fi
3658     done
3659   done
3660   rm -rf "$tmp"
3661
3662 fi
3663
3664 if test "X$SED" != "X"; then
3665   lt_cv_path_SED=$SED
3666 else
3667   SED=$lt_cv_path_SED
3668 fi
3669 echo "$as_me:$LINENO: result: $SED" >&5
3670 echo "${ECHO_T}$SED" >&6
3671
3672 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3673 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3674 if test "${lt_cv_deplibs_check_method+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   lt_cv_file_magic_cmd='$MAGIC_CMD'
3678 lt_cv_file_magic_test_file=
3679 lt_cv_deplibs_check_method='unknown'
3680 # Need to set the preceding variable on all platforms that support
3681 # interlibrary dependencies.
3682 # 'none' -- dependencies not supported.
3683 # `unknown' -- same as none, but documents that we really don't know.
3684 # 'pass_all' -- all dependencies passed with no checks.
3685 # 'test_compile' -- check by making test program.
3686 # 'file_magic [[regex]]' -- check by looking for files in library path
3687 # which responds to the $file_magic_cmd with a given egrep regex.
3688 # If you have `file' or equivalent on your system and you're not sure
3689 # whether `pass_all' will *always* work, you probably want this one.
3690
3691 case $host_os in
3692 aix4* | aix5*)
3693   lt_cv_deplibs_check_method=pass_all
3694   ;;
3695
3696 beos*)
3697   lt_cv_deplibs_check_method=pass_all
3698   ;;
3699
3700 bsdi4*)
3701   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3702   lt_cv_file_magic_cmd='/usr/bin/file -L'
3703   lt_cv_file_magic_test_file=/shlib/libc.so
3704   ;;
3705
3706 cygwin* | mingw* | pw32*)
3707   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3708   lt_cv_file_magic_cmd='$OBJDUMP -f'
3709   ;;
3710
3711 darwin* | rhapsody*)
3712   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3713   lt_cv_file_magic_cmd='/usr/bin/file -L'
3714   case "$host_os" in
3715   rhapsody* | darwin1.[012])
3716     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3717     ;;
3718   *) # Darwin 1.3 on
3719     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3720     ;;
3721   esac
3722   ;;
3723
3724 freebsd*)
3725   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3726     case $host_cpu in
3727     i*86 )
3728       # Not sure whether the presence of OpenBSD here was a mistake.
3729       # Let's accept both of them until this is cleared up.
3730       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3731       lt_cv_file_magic_cmd=/usr/bin/file
3732       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3733       ;;
3734     esac
3735   else
3736     lt_cv_deplibs_check_method=pass_all
3737   fi
3738   ;;
3739
3740 gnu*)
3741   lt_cv_deplibs_check_method=pass_all
3742   ;;
3743
3744 hpux10.20*|hpux11*)
3745   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3746   lt_cv_file_magic_cmd=/usr/bin/file
3747   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3748   ;;
3749
3750 irix5* | irix6* | nonstopux*)
3751   case $host_os in
3752   irix5* | nonstopux*)
3753     # this will be overridden with pass_all, but let us keep it just in case
3754     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3755     ;;
3756   *)
3757     case $LD in
3758     *-32|*"-32 ") libmagic=32-bit;;
3759     *-n32|*"-n32 ") libmagic=N32;;
3760     *-64|*"-64 ") libmagic=64-bit;;
3761     *) libmagic=never-match;;
3762     esac
3763     # this will be overridden with pass_all, but let us keep it just in case
3764     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3765     ;;
3766   esac
3767   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3768   lt_cv_deplibs_check_method=pass_all
3769   ;;
3770
3771 # This must be Linux ELF.
3772 linux-gnu*)
3773   case $host_cpu in
3774   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3775     lt_cv_deplibs_check_method=pass_all ;;
3776   *)
3777     # glibc up to 2.1.1 does not perform some relocations on ARM
3778     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3779   esac
3780   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3781   ;;
3782
3783 netbsd*)
3784   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3785     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3786   else
3787     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3788   fi
3789   ;;
3790
3791 newos6*)
3792   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3793   lt_cv_file_magic_cmd=/usr/bin/file
3794   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3795   ;;
3796
3797 openbsd*)
3798   lt_cv_file_magic_cmd=/usr/bin/file
3799   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3800   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3801     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3802   else
3803     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3804   fi
3805   ;;
3806
3807 osf3* | osf4* | osf5*)
3808   # this will be overridden with pass_all, but let us keep it just in case
3809   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3810   lt_cv_file_magic_test_file=/shlib/libc.so
3811   lt_cv_deplibs_check_method=pass_all
3812   ;;
3813
3814 sco3.2v5*)
3815   lt_cv_deplibs_check_method=pass_all
3816   ;;
3817
3818 solaris*)
3819   lt_cv_deplibs_check_method=pass_all
3820   lt_cv_file_magic_test_file=/lib/libc.so
3821   ;;
3822
3823 sysv5uw[78]* | sysv4*uw2*)
3824   lt_cv_deplibs_check_method=pass_all
3825   ;;
3826
3827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3828   case $host_vendor in
3829   motorola)
3830     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]'
3831     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3832     ;;
3833   ncr)
3834     lt_cv_deplibs_check_method=pass_all
3835     ;;
3836   sequent)
3837     lt_cv_file_magic_cmd='/bin/file'
3838     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3839     ;;
3840   sni)
3841     lt_cv_file_magic_cmd='/bin/file'
3842     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3843     lt_cv_file_magic_test_file=/lib/libc.so
3844     ;;
3845   siemens)
3846     lt_cv_deplibs_check_method=pass_all
3847     ;;
3848   esac
3849   ;;
3850 esac
3851
3852 fi
3853 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3854 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3855 file_magic_cmd=$lt_cv_file_magic_cmd
3856 deplibs_check_method=$lt_cv_deplibs_check_method
3857
3858
3859
3860
3861
3862
3863
3864
3865 # Check for command to grab the raw symbol name followed by C symbol from nm.
3866 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3867 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3868 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871
3872 # These are sane defaults that work on at least a few old systems.
3873 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3874
3875 # Character class describing NM global symbol codes.
3876 symcode='[BCDEGRST]'
3877
3878 # Regexp to match symbols that can be accessed directly from C.
3879 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3880
3881 # Transform the above into a raw symbol and a C symbol.
3882 symxfrm='\1 \2\3 \3'
3883
3884 # Transform an extracted symbol line into a proper C declaration
3885 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3886
3887 # Transform an extracted symbol line into symbol name and symbol address
3888 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'"
3889
3890 # Define system-specific variables.
3891 case $host_os in
3892 aix*)
3893   symcode='[BCDT]'
3894   ;;
3895 cygwin* | mingw* | pw32*)
3896   symcode='[ABCDGISTW]'
3897   ;;
3898 hpux*) # Its linker distinguishes data from code symbols
3899   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3900   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3901   ;;
3902 irix* | nonstopux*)
3903   symcode='[BCDEGRST]'
3904   ;;
3905 osf*)
3906   symcode='[BCDEGQRST]'
3907   ;;
3908 solaris* | sysv5*)
3909   symcode='[BDT]'
3910   ;;
3911 sysv4)
3912   symcode='[DFNSTU]'
3913   ;;
3914 esac
3915
3916 # Handle CRLF in mingw tool chain
3917 opt_cr=
3918 case $host_os in
3919 mingw*)
3920   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3921   ;;
3922 esac
3923
3924 # If we're using GNU nm, then use its standard symbol codes.
3925 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3926   symcode='[ABCDGISTW]'
3927 fi
3928
3929 # Try without a prefix undercore, then with it.
3930 for ac_symprfx in "" "_"; do
3931
3932   # Write the raw and C identifiers.
3933 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3934
3935   # Check to see that the pipe works correctly.
3936   pipe_works=no
3937   rm -f conftest*
3938   cat > conftest.$ac_ext <<EOF
3939 #ifdef __cplusplus
3940 extern "C" {
3941 #endif
3942 char nm_test_var;
3943 void nm_test_func(){}
3944 #ifdef __cplusplus
3945 }
3946 #endif
3947 int main(){nm_test_var='a';nm_test_func();return(0);}
3948 EOF
3949
3950   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951   (eval $ac_compile) 2>&5
3952   ac_status=$?
3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); }; then
3955     # Now try to grab the symbols.
3956     nlist=conftest.nm
3957     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3958   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); } && test -s "$nlist"; then
3962       # Try sorting and uniquifying the output.
3963       if sort "$nlist" | uniq > "$nlist"T; then
3964         mv -f "$nlist"T "$nlist"
3965       else
3966         rm -f "$nlist"T
3967       fi
3968
3969       # Make sure that we snagged all the symbols we need.
3970       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3971         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3972           cat <<EOF > conftest.$ac_ext
3973 #ifdef __cplusplus
3974 extern "C" {
3975 #endif
3976
3977 EOF
3978           # Now generate the symbol file.
3979           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3980
3981           cat <<EOF >> conftest.$ac_ext
3982 #if defined (__STDC__) && __STDC__
3983 # define lt_ptr void *
3984 #else
3985 # define lt_ptr char *
3986 # define const
3987 #endif
3988
3989 /* The mapping between symbol names and symbols. */
3990 const struct {
3991   const char *name;
3992   lt_ptr address;
3993 }
3994 lt_preloaded_symbols[] =
3995 {
3996 EOF
3997           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3998           cat <<\EOF >> conftest.$ac_ext
3999   {0, (lt_ptr) 0}
4000 };
4001
4002 #ifdef __cplusplus
4003 }
4004 #endif
4005 EOF
4006           # Now try linking the two files.
4007           mv conftest.$ac_objext conftstm.$ac_objext
4008           save_LIBS="$LIBS"
4009           save_CFLAGS="$CFLAGS"
4010           LIBS="conftstm.$ac_objext"
4011           CFLAGS="$CFLAGS$no_builtin_flag"
4012           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4013   (eval $ac_link) 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); } && test -s conftest$ac_exeext; then
4017             pipe_works=yes
4018           fi
4019           LIBS="$save_LIBS"
4020           CFLAGS="$save_CFLAGS"
4021         else
4022           echo "cannot find nm_test_func in $nlist" >&5
4023         fi
4024       else
4025         echo "cannot find nm_test_var in $nlist" >&5
4026       fi
4027     else
4028       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4029     fi
4030   else
4031     echo "$progname: failed program was:" >&5
4032     cat conftest.$ac_ext >&5
4033   fi
4034   rm -f conftest* conftst*
4035
4036   # Do not use the global_symbol_pipe unless it works.
4037   if test "$pipe_works" = yes; then
4038     break
4039   else
4040     lt_cv_sys_global_symbol_pipe=
4041   fi
4042 done
4043
4044 fi
4045
4046 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4047 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4048   global_symbol_to_cdecl=
4049   global_symbol_to_c_name_address=
4050 else
4051   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4052   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4053 fi
4054 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4055 then
4056   echo "$as_me:$LINENO: result: failed" >&5
4057 echo "${ECHO_T}failed" >&6
4058 else
4059   echo "$as_me:$LINENO: result: ok" >&5
4060 echo "${ECHO_T}ok" >&6
4061 fi
4062
4063
4064 echo "$as_me:$LINENO: checking for egrep" >&5
4065 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4066 if test "${ac_cv_prog_egrep+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4070     then ac_cv_prog_egrep='grep -E'
4071     else ac_cv_prog_egrep='egrep'
4072     fi
4073 fi
4074 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4075 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4076  EGREP=$ac_cv_prog_egrep
4077
4078
4079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4081 if test "${ac_cv_header_stdc+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090 #include <stdlib.h>
4091 #include <stdarg.h>
4092 #include <string.h>
4093 #include <float.h>
4094
4095 int
4096 main ()
4097 {
4098
4099   ;
4100   return 0;
4101 }
4102 _ACEOF
4103 rm -f conftest.$ac_objext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105   (eval $ac_compile) 2>conftest.er1
4106   ac_status=$?
4107   grep -v '^ *+' conftest.er1 >conftest.err
4108   rm -f conftest.er1
4109   cat conftest.err >&5
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); } &&
4112          { ac_try='test -z "$ac_c_werror_flag"
4113                          || test ! -s conftest.err'
4114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115   (eval $ac_try) 2>&5
4116   ac_status=$?
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); }; } &&
4119          { ac_try='test -s conftest.$ac_objext'
4120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121   (eval $ac_try) 2>&5
4122   ac_status=$?
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); }; }; then
4125   ac_cv_header_stdc=yes
4126 else
4127   echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 ac_cv_header_stdc=no
4131 fi
4132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133
4134 if test $ac_cv_header_stdc = yes; then
4135   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4136   cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142 #include <string.h>
4143
4144 _ACEOF
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146   $EGREP "memchr" >/dev/null 2>&1; then
4147   :
4148 else
4149   ac_cv_header_stdc=no
4150 fi
4151 rm -f conftest*
4152
4153 fi
4154
4155 if test $ac_cv_header_stdc = yes; then
4156   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4157   cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h.  */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h.  */
4163 #include <stdlib.h>
4164
4165 _ACEOF
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167   $EGREP "free" >/dev/null 2>&1; then
4168   :
4169 else
4170   ac_cv_header_stdc=no
4171 fi
4172 rm -f conftest*
4173
4174 fi
4175
4176 if test $ac_cv_header_stdc = yes; then
4177   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4178   if test "$cross_compiling" = yes; then
4179   :
4180 else
4181   cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h.  */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h.  */
4187 #include <ctype.h>
4188 #if ((' ' & 0x0FF) == 0x020)
4189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191 #else
4192 # define ISLOWER(c) \
4193                    (('a' <= (c) && (c) <= 'i') \
4194                      || ('j' <= (c) && (c) <= 'r') \
4195                      || ('s' <= (c) && (c) <= 'z'))
4196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197 #endif
4198
4199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4200 int
4201 main ()
4202 {
4203   int i;
4204   for (i = 0; i < 256; i++)
4205     if (XOR (islower (i), ISLOWER (i))
4206         || toupper (i) != TOUPPER (i))
4207       exit(2);
4208   exit (0);
4209 }
4210 _ACEOF
4211 rm -f conftest$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213   (eval $ac_link) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218   (eval $ac_try) 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }; }; then
4222   :
4223 else
4224   echo "$as_me: program exited with status $ac_status" >&5
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 ( exit $ac_status )
4229 ac_cv_header_stdc=no
4230 fi
4231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4232 fi
4233 fi
4234 fi
4235 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4236 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4237 if test $ac_cv_header_stdc = yes; then
4238
4239 cat >>confdefs.h <<\_ACEOF
4240 #define STDC_HEADERS 1
4241 _ACEOF
4242
4243 fi
4244
4245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4256                   inttypes.h stdint.h unistd.h
4257 do
4258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4259 echo "$as_me:$LINENO: checking for $ac_header" >&5
4260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270 $ac_includes_default
4271
4272 #include <$ac_header>
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276   (eval $ac_compile) 2>conftest.er1
4277   ac_status=$?
4278   grep -v '^ *+' conftest.er1 >conftest.err
4279   rm -f conftest.er1
4280   cat conftest.err >&5
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); } &&
4283          { ac_try='test -z "$ac_c_werror_flag"
4284                          || test ! -s conftest.err'
4285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286   (eval $ac_try) 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; } &&
4290          { ac_try='test -s conftest.$ac_objext'
4291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292   (eval $ac_try) 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; }; then
4296   eval "$as_ac_Header=yes"
4297 else
4298   echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 eval "$as_ac_Header=no"
4302 fi
4303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4304 fi
4305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4308   cat >>confdefs.h <<_ACEOF
4309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4310 _ACEOF
4311
4312 fi
4313
4314 done
4315
4316
4317
4318 for ac_header in dlfcn.h
4319 do
4320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4322   echo "$as_me:$LINENO: checking for $ac_header" >&5
4323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 fi
4327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4329 else
4330   # Is the header compilable?
4331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4333 cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h.  */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h.  */
4339 $ac_includes_default
4340 #include <$ac_header>
4341 _ACEOF
4342 rm -f conftest.$ac_objext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4344   (eval $ac_compile) 2>conftest.er1
4345   ac_status=$?
4346   grep -v '^ *+' conftest.er1 >conftest.err
4347   rm -f conftest.er1
4348   cat conftest.err >&5
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } &&
4351          { ac_try='test -z "$ac_c_werror_flag"
4352                          || test ! -s conftest.err'
4353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354   (eval $ac_try) 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; } &&
4358          { ac_try='test -s conftest.$ac_objext'
4359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360   (eval $ac_try) 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); }; }; then
4364   ac_header_compiler=yes
4365 else
4366   echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 ac_header_compiler=no
4370 fi
4371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4373 echo "${ECHO_T}$ac_header_compiler" >&6
4374
4375 # Is the header present?
4376 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4378 cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 #include <$ac_header>
4385 _ACEOF
4386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } >/dev/null; then
4394   if test -s conftest.err; then
4395     ac_cpp_err=$ac_c_preproc_warn_flag
4396     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4397   else
4398     ac_cpp_err=
4399   fi
4400 else
4401   ac_cpp_err=yes
4402 fi
4403 if test -z "$ac_cpp_err"; then
4404   ac_header_preproc=yes
4405 else
4406   echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409   ac_header_preproc=no
4410 fi
4411 rm -f conftest.err conftest.$ac_ext
4412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4413 echo "${ECHO_T}$ac_header_preproc" >&6
4414
4415 # So?  What about this header?
4416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4417   yes:no: )
4418     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4422     ac_header_preproc=yes
4423     ;;
4424   no:yes:* )
4425     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4427     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4428 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4429     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4431     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4432 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4435     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4437     (
4438       cat <<\_ASBOX
4439 ## ------------------------------------------ ##
4440 ## Report this to the AC_PACKAGE_NAME lists.  ##
4441 ## ------------------------------------------ ##
4442 _ASBOX
4443     ) |
4444       sed "s/^/$as_me: WARNING:     /" >&2
4445     ;;
4446 esac
4447 echo "$as_me:$LINENO: checking for $ac_header" >&5
4448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   eval "$as_ac_Header=\$ac_header_preproc"
4453 fi
4454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4456
4457 fi
4458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4459   cat >>confdefs.h <<_ACEOF
4460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4461 _ACEOF
4462
4463 fi
4464
4465 done
4466
4467
4468
4469
4470
4471
4472 # Only perform the check for file, if the check method requires it
4473 case $deplibs_check_method in
4474 file_magic*)
4475   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4476     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4477 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4478 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   case $MAGIC_CMD in
4482   /*)
4483   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4484   ;;
4485   ?:/*)
4486   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4487   ;;
4488   *)
4489   ac_save_MAGIC_CMD="$MAGIC_CMD"
4490   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4491   ac_dummy="/usr/bin:$PATH"
4492   for ac_dir in $ac_dummy; do
4493     test -z "$ac_dir" && ac_dir=.
4494     if test -f $ac_dir/${ac_tool_prefix}file; then
4495       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4496       if test -n "$file_magic_test_file"; then
4497         case $deplibs_check_method in
4498         "file_magic "*)
4499           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4500           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4501           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4502             egrep "$file_magic_regex" > /dev/null; then
4503             :
4504           else
4505             cat <<EOF 1>&2
4506
4507 *** Warning: the command libtool uses to detect shared libraries,
4508 *** $file_magic_cmd, produces output that libtool cannot recognize.
4509 *** The result is that libtool may fail to recognize shared libraries
4510 *** as such.  This will affect the creation of libtool libraries that
4511 *** depend on shared libraries, but programs linked with such libtool
4512 *** libraries will work regardless of this problem.  Nevertheless, you
4513 *** may want to report the problem to your system manager and/or to
4514 *** bug-libtool@gnu.org
4515
4516 EOF
4517           fi ;;
4518         esac
4519       fi
4520       break
4521     fi
4522   done
4523   IFS="$ac_save_ifs"
4524   MAGIC_CMD="$ac_save_MAGIC_CMD"
4525   ;;
4526 esac
4527 fi
4528
4529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4530 if test -n "$MAGIC_CMD"; then
4531   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4532 echo "${ECHO_T}$MAGIC_CMD" >&6
4533 else
4534   echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4536 fi
4537
4538 if test -z "$lt_cv_path_MAGIC_CMD"; then
4539   if test -n "$ac_tool_prefix"; then
4540     echo "$as_me:$LINENO: checking for file" >&5
4541 echo $ECHO_N "checking for file... $ECHO_C" >&6
4542 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   case $MAGIC_CMD in
4546   /*)
4547   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4548   ;;
4549   ?:/*)
4550   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4551   ;;
4552   *)
4553   ac_save_MAGIC_CMD="$MAGIC_CMD"
4554   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4555   ac_dummy="/usr/bin:$PATH"
4556   for ac_dir in $ac_dummy; do
4557     test -z "$ac_dir" && ac_dir=.
4558     if test -f $ac_dir/file; then
4559       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4560       if test -n "$file_magic_test_file"; then
4561         case $deplibs_check_method in
4562         "file_magic "*)
4563           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4564           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4565           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4566             egrep "$file_magic_regex" > /dev/null; then
4567             :
4568           else
4569             cat <<EOF 1>&2
4570
4571 *** Warning: the command libtool uses to detect shared libraries,
4572 *** $file_magic_cmd, produces output that libtool cannot recognize.
4573 *** The result is that libtool may fail to recognize shared libraries
4574 *** as such.  This will affect the creation of libtool libraries that
4575 *** depend on shared libraries, but programs linked with such libtool
4576 *** libraries will work regardless of this problem.  Nevertheless, you
4577 *** may want to report the problem to your system manager and/or to
4578 *** bug-libtool@gnu.org
4579
4580 EOF
4581           fi ;;
4582         esac
4583       fi
4584       break
4585     fi
4586   done
4587   IFS="$ac_save_ifs"
4588   MAGIC_CMD="$ac_save_MAGIC_CMD"
4589   ;;
4590 esac
4591 fi
4592
4593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4594 if test -n "$MAGIC_CMD"; then
4595   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4596 echo "${ECHO_T}$MAGIC_CMD" >&6
4597 else
4598   echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4600 fi
4601
4602   else
4603     MAGIC_CMD=:
4604   fi
4605 fi
4606
4607   fi
4608   ;;
4609 esac
4610
4611 if test -n "$ac_tool_prefix"; then
4612   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4614 echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616 if test "${ac_cv_prog_RANLIB+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   if test -n "$RANLIB"; then
4620   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627   for ac_exec_ext in '' $ac_executable_extensions; do
4628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631     break 2
4632   fi
4633 done
4634 done
4635
4636 fi
4637 fi
4638 RANLIB=$ac_cv_prog_RANLIB
4639 if test -n "$RANLIB"; then
4640   echo "$as_me:$LINENO: result: $RANLIB" >&5
4641 echo "${ECHO_T}$RANLIB" >&6
4642 else
4643   echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 fi
4646
4647 fi
4648 if test -z "$ac_cv_prog_RANLIB"; then
4649   ac_ct_RANLIB=$RANLIB
4650   # Extract the first word of "ranlib", so it can be a program name with args.
4651 set dummy ranlib; ac_word=$2
4652 echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4654 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   if test -n "$ac_ct_RANLIB"; then
4658   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667     ac_cv_prog_ac_ct_RANLIB="ranlib"
4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673
4674   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4675 fi
4676 fi
4677 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4678 if test -n "$ac_ct_RANLIB"; then
4679   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4680 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4681 else
4682   echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4684 fi
4685
4686   RANLIB=$ac_ct_RANLIB
4687 else
4688   RANLIB="$ac_cv_prog_RANLIB"
4689 fi
4690
4691 if test -n "$ac_tool_prefix"; then
4692   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4693 set dummy ${ac_tool_prefix}strip; ac_word=$2
4694 echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4696 if test "${ac_cv_prog_STRIP+set}" = set; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   if test -n "$STRIP"; then
4700   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707   for ac_exec_ext in '' $ac_executable_extensions; do
4708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711     break 2
4712   fi
4713 done
4714 done
4715
4716 fi
4717 fi
4718 STRIP=$ac_cv_prog_STRIP
4719 if test -n "$STRIP"; then
4720   echo "$as_me:$LINENO: result: $STRIP" >&5
4721 echo "${ECHO_T}$STRIP" >&6
4722 else
4723   echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6
4725 fi
4726
4727 fi
4728 if test -z "$ac_cv_prog_STRIP"; then
4729   ac_ct_STRIP=$STRIP
4730   # Extract the first word of "strip", so it can be a program name with args.
4731 set dummy strip; ac_word=$2
4732 echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4734 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   if test -n "$ac_ct_STRIP"; then
4738   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743   IFS=$as_save_IFS
4744   test -z "$as_dir" && as_dir=.
4745   for ac_exec_ext in '' $ac_executable_extensions; do
4746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747     ac_cv_prog_ac_ct_STRIP="strip"
4748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749     break 2
4750   fi
4751 done
4752 done
4753
4754   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4755 fi
4756 fi
4757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4758 if test -n "$ac_ct_STRIP"; then
4759   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4760 echo "${ECHO_T}$ac_ct_STRIP" >&6
4761 else
4762   echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6
4764 fi
4765
4766   STRIP=$ac_ct_STRIP
4767 else
4768   STRIP="$ac_cv_prog_STRIP"
4769 fi
4770
4771
4772 enable_dlopen=no
4773 enable_win32_dll=no
4774
4775 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4776 if test "${enable_libtool_lock+set}" = set; then
4777   enableval="$enable_libtool_lock"
4778
4779 fi;
4780 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4781
4782 # Some flags need to be propagated to the compiler or linker for good
4783 # libtool support.
4784 case $host in
4785 *-*-irix6*)
4786   # Find out which ABI we are using.
4787   echo '#line 4787 "configure"' > conftest.$ac_ext
4788   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789   (eval $ac_compile) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; then
4793     case `/usr/bin/file conftest.$ac_objext` in
4794     *32-bit*)
4795       LD="${LD-ld} -32"
4796       ;;
4797     *N32*)
4798       LD="${LD-ld} -n32"
4799       ;;
4800     *64-bit*)
4801       LD="${LD-ld} -64"
4802       ;;
4803     esac
4804   fi
4805   rm -rf conftest*
4806   ;;
4807
4808 *-*-linux*)
4809   # Test if the compiler is 64bit
4810   echo 'int i;' > conftest.$ac_ext
4811   lt_cv_cc_64bit_output=no
4812   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813   (eval $ac_compile) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; then
4817     case `/usr/bin/file conftest.$ac_objext` in
4818     *"ELF 64"*)
4819       lt_cv_cc_64bit_output=yes
4820       ;;
4821     esac
4822   fi
4823   rm -rf conftest*
4824   ;;
4825
4826 *-*-sco3.2v5*)
4827   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4828   SAVE_CFLAGS="$CFLAGS"
4829   CFLAGS="$CFLAGS -belf"
4830   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4831 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4832 if test "${lt_cv_cc_needs_belf+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835
4836
4837      ac_ext=c
4838 ac_cpp='$CPP $CPPFLAGS'
4839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842
4843      cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849
4850 int
4851 main ()
4852 {
4853
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext conftest$ac_exeext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4860   (eval $ac_link) 2>conftest.er1
4861   ac_status=$?
4862   grep -v '^ *+' conftest.er1 >conftest.err
4863   rm -f conftest.er1
4864   cat conftest.err >&5
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } &&
4867          { ac_try='test -z "$ac_c_werror_flag"
4868                          || test ! -s conftest.err'
4869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870   (eval $ac_try) 2>&5
4871   ac_status=$?
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); }; } &&
4874          { ac_try='test -s conftest$ac_exeext'
4875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876   (eval $ac_try) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; }; then
4880   lt_cv_cc_needs_belf=yes
4881 else
4882   echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4884
4885 lt_cv_cc_needs_belf=no
4886 fi
4887 rm -f conftest.err conftest.$ac_objext \
4888       conftest$ac_exeext conftest.$ac_ext
4889      ac_ext=c
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894
4895 fi
4896 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4897 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4898   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4899     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4900     CFLAGS="$SAVE_CFLAGS"
4901   fi
4902   ;;
4903
4904
4905 esac
4906
4907 # Sed substitution that helps us do robust quoting.  It backslashifies
4908 # metacharacters that are still active within double-quoted strings.
4909 Xsed='sed -e s/^X//'
4910 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4911
4912 # Same as above, but do not quote variable references.
4913 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4914
4915 # Sed substitution to delay expansion of an escaped shell variable in a
4916 # double_quote_subst'ed string.
4917 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4918
4919 # Constants:
4920 rm="rm -f"
4921
4922 # Global variables:
4923 default_ofile=libtool
4924 can_build_shared=yes
4925
4926 # All known linkers require a `.a' archive for static linking (except M$VC,
4927 # which needs '.lib').
4928 libext=a
4929 ltmain="$ac_aux_dir/ltmain.sh"
4930 ofile="$default_ofile"
4931 with_gnu_ld="$lt_cv_prog_gnu_ld"
4932 need_locks="$enable_libtool_lock"
4933
4934 old_CC="$CC"
4935 old_CFLAGS="$CFLAGS"
4936
4937 # Set sane defaults for various variables
4938 test -z "$AR" && AR=ar
4939 test -z "$AR_FLAGS" && AR_FLAGS=cru
4940 test -z "$AS" && AS=as
4941 test -z "$CC" && CC=cc
4942 test -z "$DLLTOOL" && DLLTOOL=dlltool
4943 test -z "$LD" && LD=ld
4944 test -z "$LN_S" && LN_S="ln -s"
4945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4946 test -z "$NM" && NM=nm
4947 test -z "$OBJDUMP" && OBJDUMP=objdump
4948 test -z "$RANLIB" && RANLIB=:
4949 test -z "$STRIP" && STRIP=:
4950 test -z "$ac_objext" && ac_objext=o
4951
4952 if test x"$host" != x"$build"; then
4953   ac_tool_prefix=${host_alias}-
4954 else
4955   ac_tool_prefix=
4956 fi
4957
4958 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4959 case $host_os in
4960 linux-gnu*) ;;
4961 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4962 esac
4963
4964 case $host_os in
4965 aix3*)
4966   # AIX sometimes has problems with the GCC collect2 program.  For some
4967   # reason, if we set the COLLECT_NAMES environment variable, the problems
4968   # vanish in a puff of smoke.
4969   if test "X${COLLECT_NAMES+set}" != Xset; then
4970     COLLECT_NAMES=
4971     export COLLECT_NAMES
4972   fi
4973   ;;
4974 esac
4975
4976 # Determine commands to create old-style static archives.
4977 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4978 old_postinstall_cmds='chmod 644 $oldlib'
4979 old_postuninstall_cmds=
4980
4981 if test -n "$RANLIB"; then
4982   case $host_os in
4983   openbsd*)
4984     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4985     ;;
4986   *)
4987     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4988     ;;
4989   esac
4990   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4991 fi
4992
4993 # Allow CC to be a program name with arguments.
4994 set dummy $CC
4995 compiler="$2"
4996
4997 echo "$as_me:$LINENO: checking for objdir" >&5
4998 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4999 rm -f .libs 2>/dev/null
5000 mkdir .libs 2>/dev/null
5001 if test -d .libs; then
5002   objdir=.libs
5003 else
5004   # MS-DOS does not allow filenames that begin with a dot.
5005   objdir=_libs
5006 fi
5007 rmdir .libs 2>/dev/null
5008 echo "$as_me:$LINENO: result: $objdir" >&5
5009 echo "${ECHO_T}$objdir" >&6
5010
5011
5012
5013 # Check whether --with-pic or --without-pic was given.
5014 if test "${with_pic+set}" = set; then
5015   withval="$with_pic"
5016   pic_mode="$withval"
5017 else
5018   pic_mode=default
5019 fi;
5020 test -z "$pic_mode" && pic_mode=default
5021
5022 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5023 # in isolation, and that seeing it set (from the cache) indicates that
5024 # the associated values are set (in the cache) correctly too.
5025 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5026 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5027 if test "${lt_cv_prog_cc_pic+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030    lt_cv_prog_cc_pic=
5031   lt_cv_prog_cc_shlib=
5032   lt_cv_prog_cc_wl=
5033   lt_cv_prog_cc_static=
5034   lt_cv_prog_cc_no_builtin=
5035   lt_cv_prog_cc_can_build_shared=$can_build_shared
5036
5037   if test "$GCC" = yes; then
5038     lt_cv_prog_cc_wl='-Wl,'
5039     lt_cv_prog_cc_static='-static'
5040
5041     case $host_os in
5042     aix*)
5043       # Below there is a dirty hack to force normal static linking with -ldl
5044       # The problem is because libdl dynamically linked with both libc and
5045       # libC (AIX C++ library), which obviously doesn't included in libraries
5046       # list by gcc. This cause undefined symbols with -static flags.
5047       # This hack allows C programs to be linked with "-static -ldl", but
5048       # not sure about C++ programs.
5049       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5050       ;;
5051     amigaos*)
5052       # FIXME: we need at least 68020 code to build shared libraries, but
5053       # adding the `-m68020' flag to GCC prevents building anything better,
5054       # like `-m68040'.
5055       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5056       ;;
5057     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5058       # PIC is the default for these OSes.
5059       ;;
5060     darwin* | rhapsody*)
5061       # PIC is the default on this platform
5062       # Common symbols not allowed in MH_DYLIB files
5063       lt_cv_prog_cc_pic='-fno-common'
5064       ;;
5065     cygwin* | mingw* | pw32* | os2*)
5066       # This hack is so that the source file can tell whether it is being
5067       # built for inclusion in a dll (and should export symbols for example).
5068       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5069       ;;
5070     sysv4*MP*)
5071       if test -d /usr/nec; then
5072          lt_cv_prog_cc_pic=-Kconform_pic
5073       fi
5074       ;;
5075     *)
5076       lt_cv_prog_cc_pic='-fPIC'
5077       ;;
5078     esac
5079   else
5080     # PORTME Check for PIC flags for the system compiler.
5081     case $host_os in
5082     aix3* | aix4* | aix5*)
5083       lt_cv_prog_cc_wl='-Wl,'
5084       # All AIX code is PIC.
5085       if test "$host_cpu" = ia64; then
5086         # AIX 5 now supports IA64 processor
5087         lt_cv_prog_cc_static='-Bstatic'
5088       else
5089         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5090       fi
5091       ;;
5092
5093     hpux9* | hpux10* | hpux11*)
5094       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5095       lt_cv_prog_cc_wl='-Wl,'
5096       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5097       lt_cv_prog_cc_pic='+Z'
5098       ;;
5099
5100     irix5* | irix6* | nonstopux*)
5101       lt_cv_prog_cc_wl='-Wl,'
5102       lt_cv_prog_cc_static='-non_shared'
5103       # PIC (with -KPIC) is the default.
5104       ;;
5105
5106     cygwin* | mingw* | pw32* | os2*)
5107       # This hack is so that the source file can tell whether it is being
5108       # built for inclusion in a dll (and should export symbols for example).
5109       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5110       ;;
5111
5112     newsos6)
5113       lt_cv_prog_cc_pic='-KPIC'
5114       lt_cv_prog_cc_static='-Bstatic'
5115       ;;
5116
5117     osf3* | osf4* | osf5*)
5118       # All OSF/1 code is PIC.
5119       lt_cv_prog_cc_wl='-Wl,'
5120       lt_cv_prog_cc_static='-non_shared'
5121       ;;
5122
5123     sco3.2v5*)
5124       lt_cv_prog_cc_pic='-Kpic'
5125       lt_cv_prog_cc_static='-dn'
5126       lt_cv_prog_cc_shlib='-belf'
5127       ;;
5128
5129     solaris*)
5130       lt_cv_prog_cc_pic='-KPIC'
5131       lt_cv_prog_cc_static='-Bstatic'
5132       lt_cv_prog_cc_wl='-Wl,'
5133       ;;
5134
5135     sunos4*)
5136       lt_cv_prog_cc_pic='-PIC'
5137       lt_cv_prog_cc_static='-Bstatic'
5138       lt_cv_prog_cc_wl='-Qoption ld '
5139       ;;
5140
5141     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5142       lt_cv_prog_cc_pic='-KPIC'
5143       lt_cv_prog_cc_static='-Bstatic'
5144       lt_cv_prog_cc_wl='-Wl,'
5145       ;;
5146
5147     uts4*)
5148       lt_cv_prog_cc_pic='-pic'
5149       lt_cv_prog_cc_static='-Bstatic'
5150       ;;
5151
5152     sysv4*MP*)
5153       if test -d /usr/nec ;then
5154         lt_cv_prog_cc_pic='-Kconform_pic'
5155         lt_cv_prog_cc_static='-Bstatic'
5156       fi
5157       ;;
5158
5159     *)
5160       lt_cv_prog_cc_can_build_shared=no
5161       ;;
5162     esac
5163   fi
5164
5165 fi
5166
5167 if test -z "$lt_cv_prog_cc_pic"; then
5168   echo "$as_me:$LINENO: result: none" >&5
5169 echo "${ECHO_T}none" >&6
5170 else
5171   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5172 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5173
5174   # Check to make sure the pic_flag actually works.
5175   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5176 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5177   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180       save_CFLAGS="$CFLAGS"
5181     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5182     cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188
5189 int
5190 main ()
5191 {
5192
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199   (eval $ac_compile) 2>conftest.er1
5200   ac_status=$?
5201   grep -v '^ *+' conftest.er1 >conftest.err
5202   rm -f conftest.er1
5203   cat conftest.err >&5
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); } &&
5206          { ac_try='test -z "$ac_c_werror_flag"
5207                          || test ! -s conftest.err'
5208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209   (eval $ac_try) 2>&5
5210   ac_status=$?
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); }; } &&
5213          { ac_try='test -s conftest.$ac_objext'
5214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215   (eval $ac_try) 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); }; }; then
5219         case $host_os in
5220       hpux9* | hpux10* | hpux11*)
5221         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5222         # they create non-PIC objects.  So, if there were any warnings, we
5223         # assume that PIC is not supported.
5224         if test -s conftest.err; then
5225           lt_cv_prog_cc_pic_works=no
5226         else
5227           lt_cv_prog_cc_pic_works=yes
5228         fi
5229         ;;
5230       *)
5231         lt_cv_prog_cc_pic_works=yes
5232         ;;
5233       esac
5234
5235 else
5236   echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239       lt_cv_prog_cc_pic_works=no
5240
5241 fi
5242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5243     CFLAGS="$save_CFLAGS"
5244
5245 fi
5246
5247
5248   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5249     lt_cv_prog_cc_pic=
5250     lt_cv_prog_cc_can_build_shared=no
5251   else
5252     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5253   fi
5254
5255   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5256 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5257 fi
5258
5259 # Check for any special shared library compilation flags.
5260 if test -n "$lt_cv_prog_cc_shlib"; then
5261   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5262 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5263   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5264   else
5265    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5266 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5267     lt_cv_prog_cc_can_build_shared=no
5268   fi
5269 fi
5270
5271 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5272 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5273 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276     lt_cv_prog_cc_static_works=no
5277   save_LDFLAGS="$LDFLAGS"
5278   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5279   cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h.  */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h.  */
5285
5286 int
5287 main ()
5288 {
5289
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296   (eval $ac_link) 2>conftest.er1
5297   ac_status=$?
5298   grep -v '^ *+' conftest.er1 >conftest.err
5299   rm -f conftest.er1
5300   cat conftest.err >&5
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); } &&
5303          { ac_try='test -z "$ac_c_werror_flag"
5304                          || test ! -s conftest.err'
5305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306   (eval $ac_try) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; } &&
5310          { ac_try='test -s conftest$ac_exeext'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; }; then
5316   lt_cv_prog_cc_static_works=yes
5317 else
5318   echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5320
5321 fi
5322 rm -f conftest.err conftest.$ac_objext \
5323       conftest$ac_exeext conftest.$ac_ext
5324   LDFLAGS="$save_LDFLAGS"
5325
5326 fi
5327
5328
5329 # Belt *and* braces to stop my trousers falling down:
5330 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5331 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5332 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5333
5334 pic_flag="$lt_cv_prog_cc_pic"
5335 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5336 wl="$lt_cv_prog_cc_wl"
5337 link_static_flag="$lt_cv_prog_cc_static"
5338 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5339 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5340
5341
5342 # Check to see if options -o and -c are simultaneously supported by compiler
5343 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5344 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5345 if test "${lt_cv_compiler_c_o+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348
5349 $rm -r conftest 2>/dev/null
5350 mkdir conftest
5351 cd conftest
5352 echo "int some_variable = 0;" > conftest.$ac_ext
5353 mkdir out
5354 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5355 # that will create temporary files in the current directory regardless of
5356 # the output directory.  Thus, making CWD read-only will cause this test
5357 # to fail, enabling locking or at least warning the user not to do parallel
5358 # builds.
5359 chmod -w .
5360 save_CFLAGS="$CFLAGS"
5361 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5362 compiler_c_o=no
5363 if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5364   # The compiler can only warn and ignore the option if not recognized
5365   # So say no if there are warnings
5366   if test -s out/conftest.err; then
5367     lt_cv_compiler_c_o=no
5368   else
5369     lt_cv_compiler_c_o=yes
5370   fi
5371 else
5372   # Append any errors to the config.log.
5373   cat out/conftest.err 1>&5
5374   lt_cv_compiler_c_o=no
5375 fi
5376 CFLAGS="$save_CFLAGS"
5377 chmod u+w .
5378 $rm conftest* out/*
5379 rmdir out
5380 cd ..
5381 rmdir conftest
5382 $rm -r conftest 2>/dev/null
5383
5384 fi
5385
5386 compiler_c_o=$lt_cv_compiler_c_o
5387 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5388 echo "${ECHO_T}$compiler_c_o" >&6
5389
5390 if test x"$compiler_c_o" = x"yes"; then
5391   # Check to see if we can write to a .lo
5392   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5393 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5394   if test "${lt_cv_compiler_o_lo+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397
5398   lt_cv_compiler_o_lo=no
5399   save_CFLAGS="$CFLAGS"
5400   CFLAGS="$CFLAGS -c -o conftest.lo"
5401   save_objext="$ac_objext"
5402   ac_objext=lo
5403   cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h.  */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h.  */
5409
5410 int
5411 main ()
5412 {
5413 int some_variable = 0;
5414   ;
5415   return 0;
5416 }
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420   (eval $ac_compile) 2>conftest.er1
5421   ac_status=$?
5422   grep -v '^ *+' conftest.er1 >conftest.err
5423   rm -f conftest.er1
5424   cat conftest.err >&5
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); } &&
5427          { ac_try='test -z "$ac_c_werror_flag"
5428                          || test ! -s conftest.err'
5429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430   (eval $ac_try) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); }; } &&
5434          { ac_try='test -s conftest.$ac_objext'
5435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436   (eval $ac_try) 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); }; }; then
5440       # The compiler can only warn and ignore the option if not recognized
5441     # So say no if there are warnings
5442     if test -s conftest.err; then
5443       lt_cv_compiler_o_lo=no
5444     else
5445       lt_cv_compiler_o_lo=yes
5446     fi
5447
5448 else
5449   echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5451
5452 fi
5453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5454   ac_objext="$save_objext"
5455   CFLAGS="$save_CFLAGS"
5456
5457 fi
5458
5459   compiler_o_lo=$lt_cv_compiler_o_lo
5460   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5461 echo "${ECHO_T}$compiler_o_lo" >&6
5462 else
5463   compiler_o_lo=no
5464 fi
5465
5466 # Check to see if we can do hard links to lock some files if needed
5467 hard_links="nottested"
5468 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5469   # do not overwrite the value of need_locks provided by the user
5470   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5471 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5472   hard_links=yes
5473   $rm conftest*
5474   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5475   touch conftest.a
5476   ln conftest.a conftest.b 2>&5 || hard_links=no
5477   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5478   echo "$as_me:$LINENO: result: $hard_links" >&5
5479 echo "${ECHO_T}$hard_links" >&6
5480   if test "$hard_links" = no; then
5481     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5482 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5483     need_locks=warn
5484   fi
5485 else
5486   need_locks=no
5487 fi
5488
5489 if test "$GCC" = yes; then
5490   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5491   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5492 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5493   echo "int some_variable = 0;" > conftest.$ac_ext
5494   save_CFLAGS="$CFLAGS"
5495   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5496   compiler_rtti_exceptions=no
5497   cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h.  */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h.  */
5503
5504 int
5505 main ()
5506 {
5507 int some_variable = 0;
5508   ;
5509   return 0;
5510 }
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514   (eval $ac_compile) 2>conftest.er1
5515   ac_status=$?
5516   grep -v '^ *+' conftest.er1 >conftest.err
5517   rm -f conftest.er1
5518   cat conftest.err >&5
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); } &&
5521          { ac_try='test -z "$ac_c_werror_flag"
5522                          || test ! -s conftest.err'
5523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524   (eval $ac_try) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); }; } &&
5528          { ac_try='test -s conftest.$ac_objext'
5529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530   (eval $ac_try) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }; }; then
5534       # The compiler can only warn and ignore the option if not recognized
5535     # So say no if there are warnings
5536     if test -s conftest.err; then
5537       compiler_rtti_exceptions=no
5538     else
5539       compiler_rtti_exceptions=yes
5540     fi
5541
5542 else
5543   echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5545
5546 fi
5547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5548   CFLAGS="$save_CFLAGS"
5549   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5550 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5551
5552   if test "$compiler_rtti_exceptions" = "yes"; then
5553     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5554   else
5555     no_builtin_flag=' -fno-builtin'
5556   fi
5557 fi
5558
5559 # See if the linker supports building shared libraries.
5560 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5561 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5562
5563 allow_undefined_flag=
5564 no_undefined_flag=
5565 need_lib_prefix=unknown
5566 need_version=unknown
5567 # when you set need_version to no, make sure it does not cause -set_version
5568 # flags to be left without arguments
5569 archive_cmds=
5570 archive_expsym_cmds=
5571 old_archive_from_new_cmds=
5572 old_archive_from_expsyms_cmds=
5573 export_dynamic_flag_spec=
5574 whole_archive_flag_spec=
5575 thread_safe_flag_spec=
5576 hardcode_into_libs=no
5577 hardcode_libdir_flag_spec=
5578 hardcode_libdir_separator=
5579 hardcode_direct=no
5580 hardcode_minus_L=no
5581 hardcode_shlibpath_var=unsupported
5582 runpath_var=
5583 link_all_deplibs=unknown
5584 always_export_symbols=no
5585 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5586 # include_expsyms should be a list of space-separated symbols to be *always*
5587 # included in the symbol list
5588 include_expsyms=
5589 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5590 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5591 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5592 # as well as any symbol that contains `d'.
5593 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5594 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5595 # platforms (ab)use it in PIC code, but their linkers get confused if
5596 # the symbol is explicitly referenced.  Since portable code cannot
5597 # rely on this symbol name, it's probably fine to never include it in
5598 # preloaded symbol tables.
5599 extract_expsyms_cmds=
5600
5601 case $host_os in
5602 cygwin* | mingw* | pw32*)
5603   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5604   # When not using gcc, we currently assume that we are using
5605   # Microsoft Visual C++.
5606   if test "$GCC" != yes; then
5607     with_gnu_ld=no
5608   fi
5609   ;;
5610 openbsd*)
5611   with_gnu_ld=no
5612   ;;
5613 esac
5614
5615 ld_shlibs=yes
5616 if test "$with_gnu_ld" = yes; then
5617   # If archive_cmds runs LD, not CC, wlarc should be empty
5618   wlarc='${wl}'
5619
5620   # See if GNU ld supports shared libraries.
5621   case $host_os in
5622   aix3* | aix4* | aix5*)
5623     # On AIX, the GNU linker is very broken
5624     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5625     ld_shlibs=no
5626     cat <<EOF 1>&2
5627
5628 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5629 *** to be unable to reliably create shared libraries on AIX.
5630 *** Therefore, libtool is disabling shared libraries support.  If you
5631 *** really care for shared libraries, you may want to modify your PATH
5632 *** so that a non-GNU linker is found, and then restart.
5633
5634 EOF
5635     ;;
5636
5637   amigaos*)
5638     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)'
5639     hardcode_libdir_flag_spec='-L$libdir'
5640     hardcode_minus_L=yes
5641
5642     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5643     # that the semantics of dynamic libraries on AmigaOS, at least up
5644     # to version 4, is to share data among multiple programs linked
5645     # with the same dynamic library.  Since this doesn't match the
5646     # behavior of shared libraries on other platforms, we can use
5647     # them.
5648     ld_shlibs=no
5649     ;;
5650
5651   beos*)
5652     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5653       allow_undefined_flag=unsupported
5654       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5655       # support --undefined.  This deserves some investigation.  FIXME
5656       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5657     else
5658       ld_shlibs=no
5659     fi
5660     ;;
5661
5662   cygwin* | mingw* | pw32*)
5663     # hardcode_libdir_flag_spec is actually meaningless, as there is
5664     # no search path for DLLs.
5665     hardcode_libdir_flag_spec='-L$libdir'
5666     allow_undefined_flag=unsupported
5667     always_export_symbols=yes
5668
5669     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5670       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5671       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5672       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5673       else $CC -o impgen impgen.c ; fi)~
5674       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5675
5676     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5677
5678     # cygwin and mingw dlls have different entry points and sets of symbols
5679     # to exclude.
5680     # FIXME: what about values for MSVC?
5681     dll_entry=__cygwin_dll_entry@12
5682     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5683     case $host_os in
5684     mingw*)
5685       # mingw values
5686       dll_entry=_DllMainCRTStartup@12
5687       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5688       ;;
5689     esac
5690
5691     # mingw and cygwin differ, and it's simplest to just exclude the union
5692     # of the two symbol sets.
5693     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5694
5695     # recent cygwin and mingw systems supply a stub DllMain which the user
5696     # can override, but on older systems we have to supply one (in ltdll.c)
5697     if test "x$lt_cv_need_dllmain" = "xyes"; then
5698       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5699       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~
5700         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5701     else
5702       ltdll_obj=
5703       ltdll_cmds=
5704     fi
5705
5706     # Extract the symbol export list from an `--export-all' def file,
5707     # then regenerate the def file from the symbol export list, so that
5708     # the compiled dll only exports the symbol export list.
5709     # Be careful not to strip the DATA tag left be newer dlltools.
5710     export_symbols_cmds="$ltdll_cmds"'
5711       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5712       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5713
5714     # If the export-symbols file already is a .def file (1st line
5715     # is EXPORTS), use it as is.
5716     # If DATA tags from a recent dlltool are present, honour them!
5717     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5718         cp $export_symbols $output_objdir/$soname-def;
5719       else
5720         echo EXPORTS > $output_objdir/$soname-def;
5721         _lt_hint=1;
5722         cat $export_symbols | while read symbol; do
5723          set dummy \$symbol;
5724          case \$# in
5725            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5726            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5727            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5728          esac;
5729          _lt_hint=`expr 1 + \$_lt_hint`;
5730         done;
5731       fi~
5732       '"$ltdll_cmds"'
5733       $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~
5734       $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~
5735       $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~
5736       $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~
5737       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5738     ;;
5739
5740   netbsd*)
5741     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5742       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5743       wlarc=
5744     else
5745       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5746       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5747     fi
5748     ;;
5749
5750   solaris* | sysv5*)
5751     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5752       ld_shlibs=no
5753       cat <<EOF 1>&2
5754
5755 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5756 *** create shared libraries on Solaris systems.  Therefore, libtool
5757 *** is disabling shared libraries support.  We urge you to upgrade GNU
5758 *** binutils to release 2.9.1 or newer.  Another option is to modify
5759 *** your PATH or compiler configuration so that the native linker is
5760 *** used, and then restart.
5761
5762 EOF
5763     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5764       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5765       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5766     else
5767       ld_shlibs=no
5768     fi
5769     ;;
5770
5771   sunos4*)
5772     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5773     wlarc=
5774     hardcode_direct=yes
5775     hardcode_shlibpath_var=no
5776     ;;
5777
5778   linux*)
5779     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5780       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5781       supports_anon_versioning=no
5782       case `$LD -v 2>/dev/null` in
5783         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5784         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5785         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5786         *\ 2.11.*) ;; # other 2.11 versions
5787         *) supports_anon_versioning=yes ;;
5788       esac
5789       if test $supports_anon_versioning = yes; then
5790         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5792 $echo "local: *; };" >> $output_objdir/$libname.ver~
5793         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5794       else
5795         $archive_expsym_cmds="$archive_cmds"
5796       fi
5797     else
5798       ld_shlibs=no
5799     fi
5800     ;;
5801
5802   *)
5803     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5804       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5805       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5806     else
5807       ld_shlibs=no
5808     fi
5809     ;;
5810   esac
5811
5812   if test "$ld_shlibs" = yes; then
5813     runpath_var=LD_RUN_PATH
5814     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5815     export_dynamic_flag_spec='${wl}--export-dynamic'
5816     case $host_os in
5817     cygwin* | mingw* | pw32*)
5818       # dlltool doesn't understand --whole-archive et. al.
5819       whole_archive_flag_spec=
5820       ;;
5821     *)
5822       # ancient GNU ld didn't support --whole-archive et. al.
5823       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5824         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5825       else
5826         whole_archive_flag_spec=
5827       fi
5828       ;;
5829     esac
5830   fi
5831 else
5832   # PORTME fill in a description of your system's linker (not GNU ld)
5833   case $host_os in
5834   aix3*)
5835     allow_undefined_flag=unsupported
5836     always_export_symbols=yes
5837     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'
5838     # Note: this linker hardcodes the directories in LIBPATH if there
5839     # are no directories specified by -L.
5840     hardcode_minus_L=yes
5841     if test "$GCC" = yes && test -z "$link_static_flag"; then
5842       # Neither direct hardcoding nor static linking is supported with a
5843       # broken collect2.
5844       hardcode_direct=unsupported
5845     fi
5846     ;;
5847
5848   aix4* | aix5*)
5849     if test "$host_cpu" = ia64; then
5850       # On IA64, the linker does run time linking by default, so we don't
5851       # have to do anything special.
5852       aix_use_runtimelinking=no
5853       exp_sym_flag='-Bexport'
5854       no_entry_flag=""
5855     else
5856       aix_use_runtimelinking=no
5857
5858       # Test if we are trying to use run time linking or normal
5859       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5860       # need to do runtime linking.
5861       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5862         for ld_flag in $LDFLAGS; do
5863           case $ld_flag in
5864           *-brtl*)
5865             aix_use_runtimelinking=yes
5866             break
5867           ;;
5868           esac
5869         done
5870       esac
5871
5872       exp_sym_flag='-bexport'
5873       no_entry_flag='-bnoentry'
5874     fi
5875
5876     # When large executables or shared objects are built, AIX ld can
5877     # have problems creating the table of contents.  If linking a library
5878     # or program results in "error TOC overflow" add -mminimal-toc to
5879     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5880     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5881
5882     hardcode_direct=yes
5883     archive_cmds=''
5884     hardcode_libdir_separator=':'
5885     if test "$GCC" = yes; then
5886       case $host_os in aix4.[012]|aix4.[012].*)
5887         collect2name=`${CC} -print-prog-name=collect2`
5888         if test -f "$collect2name" && \
5889           strings "$collect2name" | grep resolve_lib_name >/dev/null
5890         then
5891           # We have reworked collect2
5892           hardcode_direct=yes
5893         else
5894           # We have old collect2
5895           hardcode_direct=unsupported
5896           # It fails to find uninstalled libraries when the uninstalled
5897           # path is not listed in the libpath.  Setting hardcode_minus_L
5898           # to unsupported forces relinking
5899           hardcode_minus_L=yes
5900           hardcode_libdir_flag_spec='-L$libdir'
5901           hardcode_libdir_separator=
5902         fi
5903       esac
5904
5905       shared_flag='-shared'
5906     else
5907       # not using gcc
5908       if test "$host_cpu" = ia64; then
5909         shared_flag='${wl}-G'
5910       else
5911         if test "$aix_use_runtimelinking" = yes; then
5912           shared_flag='${wl}-G'
5913         else
5914           shared_flag='${wl}-bM:SRE'
5915         fi
5916       fi
5917     fi
5918
5919     # It seems that -bexpall can do strange things, so it is better to
5920     # generate a list of symbols to export.
5921     always_export_symbols=yes
5922     if test "$aix_use_runtimelinking" = yes; then
5923       # Warning - without using the other runtime loading flags (-brtl),
5924       # -berok will link without error, but may produce a broken library.
5925       allow_undefined_flag='-berok'
5926       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5927       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"
5928     else
5929       if test "$host_cpu" = ia64; then
5930         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5931         allow_undefined_flag="-z nodefs"
5932         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"
5933       else
5934         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5935         # Warning - without using the other run time loading flags,
5936         # -berok will link without error, but may produce a broken library.
5937         allow_undefined_flag='${wl}-berok'
5938         # This is a bit strange, but is similar to how AIX traditionally builds
5939         # it's shared libraries.
5940         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'
5941       fi
5942     fi
5943     ;;
5944
5945   amigaos*)
5946     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)'
5947     hardcode_libdir_flag_spec='-L$libdir'
5948     hardcode_minus_L=yes
5949     # see comment about different semantics on the GNU ld section
5950     ld_shlibs=no
5951     ;;
5952
5953   cygwin* | mingw* | pw32*)
5954     # When not using gcc, we currently assume that we are using
5955     # Microsoft Visual C++.
5956     # hardcode_libdir_flag_spec is actually meaningless, as there is
5957     # no search path for DLLs.
5958     hardcode_libdir_flag_spec=' '
5959     allow_undefined_flag=unsupported
5960     # Tell ltmain to make .lib files, not .a files.
5961     libext=lib
5962     # FIXME: Setting linknames here is a bad hack.
5963     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5964     # The linker will automatically build a .lib file if we build a DLL.
5965     old_archive_from_new_cmds='true'
5966     # FIXME: Should let the user specify the lib program.
5967     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5968     fix_srcfile_path='`cygpath -w "$srcfile"`'
5969     ;;
5970
5971   darwin* | rhapsody*)
5972     case "$host_os" in
5973     rhapsody* | darwin1.[012])
5974       allow_undefined_flag='-undefined suppress'
5975       ;;
5976     *) # Darwin 1.3 on
5977       allow_undefined_flag='-flat_namespace -undefined suppress'
5978       ;;
5979     esac
5980     # FIXME: Relying on posixy $() will cause problems for
5981     #        cross-compilation, but unfortunately the echo tests do not
5982     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5983     #        `"' quotes if we put them in here... so don't!
5984     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)'
5985     # We need to add '_' to the symbols in $export_symbols first
5986     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5987     hardcode_direct=yes
5988     hardcode_shlibpath_var=no
5989     whole_archive_flag_spec='-all_load $convenience'
5990     ;;
5991
5992   freebsd1*)
5993     ld_shlibs=no
5994     ;;
5995
5996   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5997   # support.  Future versions do this automatically, but an explicit c++rt0.o
5998   # does not break anything, and helps significantly (at the cost of a little
5999   # extra space).
6000   freebsd2.2*)
6001     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6002     hardcode_libdir_flag_spec='-R$libdir'
6003     hardcode_direct=yes
6004     hardcode_shlibpath_var=no
6005     ;;
6006
6007   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6008   freebsd2*)
6009     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6010     hardcode_direct=yes
6011     hardcode_minus_L=yes
6012     hardcode_shlibpath_var=no
6013     ;;
6014
6015   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6016   freebsd*)
6017     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6018     hardcode_libdir_flag_spec='-R$libdir'
6019     hardcode_direct=yes
6020     hardcode_shlibpath_var=no
6021     ;;
6022
6023   hpux9* | hpux10* | hpux11*)
6024     case $host_os in
6025     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' ;;
6026     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6027     esac
6028     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6029     hardcode_libdir_separator=:
6030     hardcode_direct=yes
6031     hardcode_minus_L=yes # Not in the search PATH, but as the default
6032                          # location of the library.
6033     export_dynamic_flag_spec='${wl}-E'
6034     ;;
6035
6036   irix5* | irix6* | nonstopux*)
6037     if test "$GCC" = yes; then
6038       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'
6039       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6040     else
6041       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'
6042       hardcode_libdir_flag_spec='-rpath $libdir'
6043     fi
6044     hardcode_libdir_separator=:
6045     link_all_deplibs=yes
6046     ;;
6047
6048   netbsd*)
6049     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6050       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6051     else
6052       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6053     fi
6054     hardcode_libdir_flag_spec='-R$libdir'
6055     hardcode_direct=yes
6056     hardcode_shlibpath_var=no
6057     ;;
6058
6059   newsos6)
6060     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6061     hardcode_direct=yes
6062     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6063     hardcode_libdir_separator=:
6064     hardcode_shlibpath_var=no
6065     ;;
6066
6067   openbsd*)
6068     hardcode_direct=yes
6069     hardcode_shlibpath_var=no
6070     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6071       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6072       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6073       export_dynamic_flag_spec='${wl}-E'
6074     else
6075       case "$host_os" in
6076       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6077         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6078         hardcode_libdir_flag_spec='-R$libdir'
6079         ;;
6080       *)
6081         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6082         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6083         ;;
6084       esac
6085     fi
6086     ;;
6087
6088   os2*)
6089     hardcode_libdir_flag_spec='-L$libdir'
6090     hardcode_minus_L=yes
6091     allow_undefined_flag=unsupported
6092     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'
6093     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6094     ;;
6095
6096   osf3*)
6097     if test "$GCC" = yes; then
6098       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6099       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'
6100     else
6101       allow_undefined_flag=' -expect_unresolved \*'
6102       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'
6103     fi
6104     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6105     hardcode_libdir_separator=:
6106     ;;
6107
6108   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6109     if test "$GCC" = yes; then
6110       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6111       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6112       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6113     else
6114       allow_undefined_flag=' -expect_unresolved \*'
6115       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'
6116       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6117       $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'
6118
6119       #Both c and cxx compiler support -rpath directly
6120       hardcode_libdir_flag_spec='-rpath $libdir'
6121     fi
6122     hardcode_libdir_separator=:
6123     ;;
6124
6125   sco3.2v5*)
6126     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6127     hardcode_shlibpath_var=no
6128     runpath_var=LD_RUN_PATH
6129     hardcode_runpath_var=yes
6130     export_dynamic_flag_spec='${wl}-Bexport'
6131     ;;
6132
6133   solaris*)
6134     # gcc --version < 3.0 without binutils cannot create self contained
6135     # shared libraries reliably, requiring libgcc.a to resolve some of
6136     # the object symbols generated in some cases.  Libraries that use
6137     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6138     # a copy of libgcc.a into every shared library to guarantee resolving
6139     # such symbols causes other problems:  According to Tim Van Holder
6140     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6141     # (to the application) exception stack for one thing.
6142     no_undefined_flag=' -z defs'
6143     if test "$GCC" = yes; then
6144       case `$CC --version 2>/dev/null` in
6145       [12].*)
6146         cat <<EOF 1>&2
6147
6148 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6149 *** create self contained shared libraries on Solaris systems, without
6150 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6151 *** -no-undefined support, which will at least allow you to build shared
6152 *** libraries.  However, you may find that when you link such libraries
6153 *** into an application without using GCC, you have to manually add
6154 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6155 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6156 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6157
6158 EOF
6159         no_undefined_flag=
6160         ;;
6161       esac
6162     fi
6163     # $CC -shared without GNU ld will not create a library from C++
6164     # object files and a static libstdc++, better avoid it by now
6165     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6166     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6167                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6168     hardcode_libdir_flag_spec='-R$libdir'
6169     hardcode_shlibpath_var=no
6170     case $host_os in
6171     solaris2.[0-5] | solaris2.[0-5].*) ;;
6172     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6173       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6174     esac
6175     link_all_deplibs=yes
6176     ;;
6177
6178   sunos4*)
6179     if test "x$host_vendor" = xsequent; then
6180       # Use $CC to link under sequent, because it throws in some extra .o
6181       # files that make .init and .fini sections work.
6182       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6183     else
6184       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6185     fi
6186     hardcode_libdir_flag_spec='-L$libdir'
6187     hardcode_direct=yes
6188     hardcode_minus_L=yes
6189     hardcode_shlibpath_var=no
6190     ;;
6191
6192   sysv4)
6193     case $host_vendor in
6194       sni)
6195         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6196         hardcode_direct=yes # is this really true???
6197         ;;
6198       siemens)
6199         ## LD is ld it makes a PLAMLIB
6200         ## CC just makes a GrossModule.
6201         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6202         reload_cmds='$CC -r -o $output$reload_objs'
6203         hardcode_direct=no
6204         ;;
6205       motorola)
6206         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6207         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6208         ;;
6209     esac
6210     runpath_var='LD_RUN_PATH'
6211     hardcode_shlibpath_var=no
6212     ;;
6213
6214   sysv4.3*)
6215     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6216     hardcode_shlibpath_var=no
6217     export_dynamic_flag_spec='-Bexport'
6218     ;;
6219
6220   sysv5*)
6221     no_undefined_flag=' -z text'
6222     # $CC -shared without GNU ld will not create a library from C++
6223     # object files and a static libstdc++, better avoid it by now
6224     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6225     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6226                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6227     hardcode_libdir_flag_spec=
6228     hardcode_shlibpath_var=no
6229     runpath_var='LD_RUN_PATH'
6230     ;;
6231
6232   uts4*)
6233     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6234     hardcode_libdir_flag_spec='-L$libdir'
6235     hardcode_shlibpath_var=no
6236     ;;
6237
6238   dgux*)
6239     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6240     hardcode_libdir_flag_spec='-L$libdir'
6241     hardcode_shlibpath_var=no
6242     ;;
6243
6244   sysv4*MP*)
6245     if test -d /usr/nec; then
6246       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6247       hardcode_shlibpath_var=no
6248       runpath_var=LD_RUN_PATH
6249       hardcode_runpath_var=yes
6250       ld_shlibs=yes
6251     fi
6252     ;;
6253
6254   sysv4.2uw2*)
6255     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6256     hardcode_direct=yes
6257     hardcode_minus_L=no
6258     hardcode_shlibpath_var=no
6259     hardcode_runpath_var=yes
6260     runpath_var=LD_RUN_PATH
6261     ;;
6262
6263   sysv5uw7* | unixware7*)
6264     no_undefined_flag='${wl}-z ${wl}text'
6265     if test "$GCC" = yes; then
6266       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6267     else
6268       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6269     fi
6270     runpath_var='LD_RUN_PATH'
6271     hardcode_shlibpath_var=no
6272     ;;
6273
6274   *)
6275     ld_shlibs=no
6276     ;;
6277   esac
6278 fi
6279 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6280 echo "${ECHO_T}$ld_shlibs" >&6
6281 test "$ld_shlibs" = no && can_build_shared=no
6282
6283 # Check hardcoding attributes.
6284 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6285 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6286 hardcode_action=
6287 if test -n "$hardcode_libdir_flag_spec" || \
6288    test -n "$runpath_var"; then
6289
6290   # We can hardcode non-existant directories.
6291   if test "$hardcode_direct" != no &&
6292      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6293      # have to relink, otherwise we might link with an installed library
6294      # when we should be linking with a yet-to-be-installed one
6295      ## test "$hardcode_shlibpath_var" != no &&
6296      test "$hardcode_minus_L" != no; then
6297     # Linking always hardcodes the temporary library directory.
6298     hardcode_action=relink
6299   else
6300     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6301     hardcode_action=immediate
6302   fi
6303 else
6304   # We cannot hardcode anything, or else we can only hardcode existing
6305   # directories.
6306   hardcode_action=unsupported
6307 fi
6308 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6309 echo "${ECHO_T}$hardcode_action" >&6
6310
6311 striplib=
6312 old_striplib=
6313 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6314 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6315 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6316   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6317   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6318   echo "$as_me:$LINENO: result: yes" >&5
6319 echo "${ECHO_T}yes" >&6
6320 else
6321   echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6
6323 fi
6324
6325 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6326 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6327
6328 # PORTME Fill in your ld.so characteristics
6329 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6330 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6331 library_names_spec=
6332 libname_spec='lib$name'
6333 soname_spec=
6334 postinstall_cmds=
6335 postuninstall_cmds=
6336 finish_cmds=
6337 finish_eval=
6338 shlibpath_var=
6339 shlibpath_overrides_runpath=unknown
6340 version_type=none
6341 dynamic_linker="$host_os ld.so"
6342 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6344
6345 case $host_os in
6346 aix3*)
6347   version_type=linux
6348   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6349   shlibpath_var=LIBPATH
6350
6351   # AIX has no versioning support, so we append a major version to the name.
6352   soname_spec='${libname}${release}.so$major'
6353   ;;
6354
6355 aix4* | aix5*)
6356   version_type=linux
6357   need_lib_prefix=no
6358   need_version=no
6359   hardcode_into_libs=yes
6360   if test "$host_cpu" = ia64; then
6361     # AIX 5 supports IA64
6362     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6363     shlibpath_var=LD_LIBRARY_PATH
6364   else
6365     # With GCC up to 2.95.x, collect2 would create an import file
6366     # for dependence libraries.  The import file would start with
6367     # the line `#! .'.  This would cause the generated library to
6368     # depend on `.', always an invalid library.  This was fixed in
6369     # development snapshots of GCC prior to 3.0.
6370     case $host_os in
6371       aix4 | aix4.[01] | aix4.[01].*)
6372         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6373              echo ' yes '
6374              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6375           :
6376         else
6377           can_build_shared=no
6378         fi
6379         ;;
6380     esac
6381     # AIX (on Power*) has no versioning support, so currently we can
6382     # not hardcode correct soname into executable. Probably we can
6383     # add versioning support to collect2, so additional links can
6384     # be useful in future.
6385     if test "$aix_use_runtimelinking" = yes; then
6386       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6387       # instead of lib<name>.a to let people know that these are not
6388       # typical AIX shared libraries.
6389       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6390     else
6391       # We preserve .a as extension for shared libraries through AIX4.2
6392       # and later when we are not doing run time linking.
6393       library_names_spec='${libname}${release}.a $libname.a'
6394       soname_spec='${libname}${release}.so$major'
6395     fi
6396     shlibpath_var=LIBPATH
6397   fi
6398   hardcode_into_libs=yes
6399   ;;
6400
6401 amigaos*)
6402   library_names_spec='$libname.ixlibrary $libname.a'
6403   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6404   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'
6405   ;;
6406
6407 beos*)
6408   library_names_spec='${libname}.so'
6409   dynamic_linker="$host_os ld.so"
6410   shlibpath_var=LIBRARY_PATH
6411   ;;
6412
6413 bsdi4*)
6414   version_type=linux
6415   need_version=no
6416   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6417   soname_spec='${libname}${release}.so$major'
6418   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6419   shlibpath_var=LD_LIBRARY_PATH
6420   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6421   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6422   export_dynamic_flag_spec=-rdynamic
6423   # the default ld.so.conf also contains /usr/contrib/lib and
6424   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6425   # libtool to hard-code these into programs
6426   ;;
6427
6428 cygwin* | mingw* | pw32*)
6429   version_type=windows
6430   need_version=no
6431   need_lib_prefix=no
6432   case $GCC,$host_os in
6433   yes,cygwin*)
6434     library_names_spec='$libname.dll.a'
6435     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6436     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6437       dldir=$destdir/`dirname \$dlpath`~
6438       test -d \$dldir || mkdir -p \$dldir~
6439       $install_prog .libs/$dlname \$dldir/$dlname'
6440     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6441       dlpath=$dir/\$dldll~
6442        $rm \$dlpath'
6443     ;;
6444   yes,mingw*)
6445     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6446     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6447     ;;
6448   yes,pw32*)
6449     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6450     ;;
6451   *)
6452     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6453     ;;
6454   esac
6455   dynamic_linker='Win32 ld.exe'
6456   # FIXME: first we should search . and the directory the executable is in
6457   shlibpath_var=PATH
6458   ;;
6459
6460 darwin* | rhapsody*)
6461   dynamic_linker="$host_os dyld"
6462   version_type=darwin
6463   need_lib_prefix=no
6464   need_version=no
6465   # FIXME: Relying on posixy $() will cause problems for
6466   #        cross-compilation, but unfortunately the echo tests do not
6467   #        yet detect zsh echo's removal of \ escapes.
6468   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)'
6469   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6470   shlibpath_overrides_runpath=yes
6471   shlibpath_var=DYLD_LIBRARY_PATH
6472   ;;
6473
6474 freebsd1*)
6475   dynamic_linker=no
6476   ;;
6477
6478 freebsd*)
6479   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6480   version_type=freebsd-$objformat
6481   case $version_type in
6482     freebsd-elf*)
6483       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6484       need_version=no
6485       need_lib_prefix=no
6486       ;;
6487     freebsd-*)
6488       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6489       need_version=yes
6490       ;;
6491   esac
6492   shlibpath_var=LD_LIBRARY_PATH
6493   case $host_os in
6494   freebsd2*)
6495     shlibpath_overrides_runpath=yes
6496     ;;
6497   *)
6498     shlibpath_overrides_runpath=no
6499     hardcode_into_libs=yes
6500     ;;
6501   esac
6502   ;;
6503
6504 gnu*)
6505   version_type=linux
6506   need_lib_prefix=no
6507   need_version=no
6508   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6509   soname_spec='${libname}${release}.so$major'
6510   shlibpath_var=LD_LIBRARY_PATH
6511   hardcode_into_libs=yes
6512   ;;
6513
6514 hpux9* | hpux10* | hpux11*)
6515   # Give a soname corresponding to the major version so that dld.sl refuses to
6516   # link against other versions.
6517   dynamic_linker="$host_os dld.sl"
6518   version_type=sunos
6519   need_lib_prefix=no
6520   need_version=no
6521   shlibpath_var=SHLIB_PATH
6522   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6523   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6524   soname_spec='${libname}${release}.sl$major'
6525   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6526   postinstall_cmds='chmod 555 $lib'
6527   ;;
6528
6529 irix5* | irix6* | nonstopux*)
6530   case $host_os in
6531     nonstopux*) version_type=nonstopux ;;
6532     *)          version_type=irix ;;
6533   esac
6534   need_lib_prefix=no
6535   need_version=no
6536   soname_spec='${libname}${release}.so$major'
6537   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6538   case $host_os in
6539   irix5* | nonstopux*)
6540     libsuff= shlibsuff=
6541     ;;
6542   *)
6543     case $LD in # libtool.m4 will add one of these switches to LD
6544     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6545     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6546     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6547     *) libsuff= shlibsuff= libmagic=never-match;;
6548     esac
6549     ;;
6550   esac
6551   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6552   shlibpath_overrides_runpath=no
6553   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6554   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6555   ;;
6556
6557 # No shared lib support for Linux oldld, aout, or coff.
6558 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6559   dynamic_linker=no
6560   ;;
6561
6562 # This must be Linux ELF.
6563 linux-gnu*)
6564   version_type=linux
6565   need_lib_prefix=no
6566   need_version=no
6567   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6568   soname_spec='${libname}${release}.so$major'
6569   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6570   shlibpath_var=LD_LIBRARY_PATH
6571   shlibpath_overrides_runpath=no
6572   # This implies no fast_install, which is unacceptable.
6573   # Some rework will be needed to allow for fast_install
6574   # before this can be enabled.
6575   hardcode_into_libs=yes
6576
6577   case $host_cpu:$lt_cv_cc_64bit_output in
6578   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6579     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6580     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6581     ;;
6582   esac
6583
6584   # We used to test for /lib/ld.so.1 and disable shared libraries on
6585   # powerpc, because MkLinux only supported shared libraries with the
6586   # GNU dynamic linker.  Since this was broken with cross compilers,
6587   # most powerpc-linux boxes support dynamic linking these days and
6588   # people can always --disable-shared, the test was removed, and we
6589   # assume the GNU/Linux dynamic linker is in use.
6590   dynamic_linker='GNU/Linux ld.so'
6591
6592   # Find out which ABI we are using (multilib Linux x86_64 hack).
6593   libsuff=
6594   case "$host_cpu" in
6595   x86_64*)
6596     echo '#line 6596 "configure"' > conftest.$ac_ext
6597     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598   (eval $ac_compile) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; then
6602       case `/usr/bin/file conftest.$ac_objext` in
6603       *64-bit*)
6604         libsuff=64
6605         ;;
6606       esac
6607     fi
6608     rm -rf conftest*
6609     ;;
6610   *)
6611     ;;
6612   esac
6613   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6614   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6615   ;;
6616
6617 netbsd*)
6618   version_type=sunos
6619   need_lib_prefix=no
6620   need_version=no
6621   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6622     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6623     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6624     dynamic_linker='NetBSD (a.out) ld.so'
6625   else
6626     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6627     soname_spec='${libname}${release}.so$major'
6628     dynamic_linker='NetBSD ld.elf_so'
6629   fi
6630   shlibpath_var=LD_LIBRARY_PATH
6631   shlibpath_overrides_runpath=yes
6632   hardcode_into_libs=yes
6633   ;;
6634
6635 newsos6)
6636   version_type=linux
6637   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6638   shlibpath_var=LD_LIBRARY_PATH
6639   shlibpath_overrides_runpath=yes
6640   ;;
6641
6642 openbsd*)
6643   version_type=sunos
6644   need_lib_prefix=no
6645   need_version=no
6646   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6647     case "$host_os" in
6648     openbsd2.[89] | openbsd2.[89].*)
6649       shlibpath_overrides_runpath=no
6650       ;;
6651     *)
6652       shlibpath_overrides_runpath=yes
6653       ;;
6654     esac
6655   else
6656     shlibpath_overrides_runpath=yes
6657   fi
6658   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6660   shlibpath_var=LD_LIBRARY_PATH
6661   ;;
6662
6663 os2*)
6664   libname_spec='$name'
6665   need_lib_prefix=no
6666   library_names_spec='$libname.dll $libname.a'
6667   dynamic_linker='OS/2 ld.exe'
6668   shlibpath_var=LIBPATH
6669   ;;
6670
6671 osf3* | osf4* | osf5*)
6672   version_type=osf
6673   need_version=no
6674   soname_spec='${libname}${release}.so$major'
6675   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6676   shlibpath_var=LD_LIBRARY_PATH
6677   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6678   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6679   hardcode_into_libs=yes
6680   ;;
6681
6682 sco3.2v5*)
6683   version_type=osf
6684   soname_spec='${libname}${release}.so$major'
6685   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6686   shlibpath_var=LD_LIBRARY_PATH
6687   ;;
6688
6689 solaris*)
6690   version_type=linux
6691   need_lib_prefix=no
6692   need_version=no
6693   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6694   soname_spec='${libname}${release}.so$major'
6695   shlibpath_var=LD_LIBRARY_PATH
6696   shlibpath_overrides_runpath=yes
6697   hardcode_into_libs=yes
6698   # ldd complains unless libraries are executable
6699   postinstall_cmds='chmod +x $lib'
6700   ;;
6701
6702 sunos4*)
6703   version_type=sunos
6704   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6705   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6706   shlibpath_var=LD_LIBRARY_PATH
6707   shlibpath_overrides_runpath=yes
6708   if test "$with_gnu_ld" = yes; then
6709     need_lib_prefix=no
6710   fi
6711   need_version=yes
6712   ;;
6713
6714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6715   version_type=linux
6716   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6717   soname_spec='${libname}${release}.so$major'
6718   shlibpath_var=LD_LIBRARY_PATH
6719   case $host_vendor in
6720     sni)
6721       shlibpath_overrides_runpath=no
6722       need_lib_prefix=no
6723       export_dynamic_flag_spec='${wl}-Blargedynsym'
6724       runpath_var=LD_RUN_PATH
6725       ;;
6726     siemens)
6727       need_lib_prefix=no
6728       ;;
6729     motorola)
6730       need_lib_prefix=no
6731       need_version=no
6732       shlibpath_overrides_runpath=no
6733       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6734       ;;
6735   esac
6736   ;;
6737
6738 uts4*)
6739   version_type=linux
6740   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6741   soname_spec='${libname}${release}.so$major'
6742   shlibpath_var=LD_LIBRARY_PATH
6743   ;;
6744
6745 dgux*)
6746   version_type=linux
6747   need_lib_prefix=no
6748   need_version=no
6749   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6750   soname_spec='${libname}${release}.so$major'
6751   shlibpath_var=LD_LIBRARY_PATH
6752   ;;
6753
6754 sysv4*MP*)
6755   if test -d /usr/nec ;then
6756     version_type=linux
6757     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6758     soname_spec='$libname.so.$major'
6759     shlibpath_var=LD_LIBRARY_PATH
6760   fi
6761   ;;
6762
6763 *)
6764   dynamic_linker=no
6765   ;;
6766 esac
6767 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6768 echo "${ECHO_T}$dynamic_linker" >&6
6769 test "$dynamic_linker" = no && can_build_shared=no
6770
6771 # Report the final consequences.
6772 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6773 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6774 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6775 echo "${ECHO_T}$can_build_shared" >&6
6776
6777 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6778 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6779 test "$can_build_shared" = "no" && enable_shared=no
6780
6781 # On AIX, shared libraries and static libraries use the same namespace, and
6782 # are all built from PIC.
6783 case "$host_os" in
6784 aix3*)
6785   test "$enable_shared" = yes && enable_static=no
6786   if test -n "$RANLIB"; then
6787     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6788     postinstall_cmds='$RANLIB $lib'
6789   fi
6790   ;;
6791
6792 aix4*)
6793   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6794     test "$enable_shared" = yes && enable_static=no
6795   fi
6796   ;;
6797 esac
6798 echo "$as_me:$LINENO: result: $enable_shared" >&5
6799 echo "${ECHO_T}$enable_shared" >&6
6800
6801 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6802 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6803 # Make sure either enable_shared or enable_static is yes.
6804 test "$enable_shared" = yes || enable_static=yes
6805 echo "$as_me:$LINENO: result: $enable_static" >&5
6806 echo "${ECHO_T}$enable_static" >&6
6807
6808 if test "$hardcode_action" = relink; then
6809   # Fast installation is not supported
6810   enable_fast_install=no
6811 elif test "$shlibpath_overrides_runpath" = yes ||
6812      test "$enable_shared" = no; then
6813   # Fast installation is not necessary
6814   enable_fast_install=needless
6815 fi
6816
6817 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6818 if test "$GCC" = yes; then
6819   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6820 fi
6821
6822 if test "x$enable_dlopen" != xyes; then
6823   enable_dlopen=unknown
6824   enable_dlopen_self=unknown
6825   enable_dlopen_self_static=unknown
6826 else
6827   lt_cv_dlopen=no
6828   lt_cv_dlopen_libs=
6829
6830   case $host_os in
6831   beos*)
6832     lt_cv_dlopen="load_add_on"
6833     lt_cv_dlopen_libs=
6834     lt_cv_dlopen_self=yes
6835     ;;
6836
6837   cygwin* | mingw* | pw32*)
6838     lt_cv_dlopen="LoadLibrary"
6839     lt_cv_dlopen_libs=
6840    ;;
6841
6842   *)
6843     echo "$as_me:$LINENO: checking for shl_load" >&5
6844 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6845 if test "${ac_cv_func_shl_load+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h.  */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h.  */
6854 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6856 #define shl_load innocuous_shl_load
6857
6858 /* System header to define __stub macros and hopefully few prototypes,
6859     which can conflict with char shl_load (); below.
6860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861     <limits.h> exists even on freestanding compilers.  */
6862
6863 #ifdef __STDC__
6864 # include <limits.h>
6865 #else
6866 # include <assert.h>
6867 #endif
6868
6869 #undef shl_load
6870
6871 /* Override any gcc2 internal prototype to avoid an error.  */
6872 #ifdef __cplusplus
6873 extern "C"
6874 {
6875 #endif
6876 /* We use char because int might match the return type of a gcc2
6877    builtin and then its argument prototype would still apply.  */
6878 char shl_load ();
6879 /* The GNU C library defines this for functions which it implements
6880     to always fail with ENOSYS.  Some functions are actually named
6881     something starting with __ and the normal name is an alias.  */
6882 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6883 choke me
6884 #else
6885 char (*f) () = shl_load;
6886 #endif
6887 #ifdef __cplusplus
6888 }
6889 #endif
6890
6891 int
6892 main ()
6893 {
6894 return f != shl_load;
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901   (eval $ac_link) 2>conftest.er1
6902   ac_status=$?
6903   grep -v '^ *+' conftest.er1 >conftest.err
6904   rm -f conftest.er1
6905   cat conftest.err >&5
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } &&
6908          { ac_try='test -z "$ac_c_werror_flag"
6909                          || test ! -s conftest.err'
6910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911   (eval $ac_try) 2>&5
6912   ac_status=$?
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); }; } &&
6915          { ac_try='test -s conftest$ac_exeext'
6916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917   (eval $ac_try) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); }; }; then
6921   ac_cv_func_shl_load=yes
6922 else
6923   echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 ac_cv_func_shl_load=no
6927 fi
6928 rm -f conftest.err conftest.$ac_objext \
6929       conftest$ac_exeext conftest.$ac_ext
6930 fi
6931 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6932 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6933 if test $ac_cv_func_shl_load = yes; then
6934   lt_cv_dlopen="shl_load"
6935 else
6936   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6937 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6938 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941   ac_check_lib_save_LIBS=$LIBS
6942 LIBS="-ldld  $LIBS"
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949
6950 /* Override any gcc2 internal prototype to avoid an error.  */
6951 #ifdef __cplusplus
6952 extern "C"
6953 #endif
6954 /* We use char because int might match the return type of a gcc2
6955    builtin and then its argument prototype would still apply.  */
6956 char shl_load ();
6957 int
6958 main ()
6959 {
6960 shl_load ();
6961   ;
6962   return 0;
6963 }
6964 _ACEOF
6965 rm -f conftest.$ac_objext conftest$ac_exeext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967   (eval $ac_link) 2>conftest.er1
6968   ac_status=$?
6969   grep -v '^ *+' conftest.er1 >conftest.err
6970   rm -f conftest.er1
6971   cat conftest.err >&5
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); } &&
6974          { ac_try='test -z "$ac_c_werror_flag"
6975                          || test ! -s conftest.err'
6976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977   (eval $ac_try) 2>&5
6978   ac_status=$?
6979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); }; } &&
6981          { ac_try='test -s conftest$ac_exeext'
6982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983   (eval $ac_try) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); }; }; then
6987   ac_cv_lib_dld_shl_load=yes
6988 else
6989   echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 ac_cv_lib_dld_shl_load=no
6993 fi
6994 rm -f conftest.err conftest.$ac_objext \
6995       conftest$ac_exeext conftest.$ac_ext
6996 LIBS=$ac_check_lib_save_LIBS
6997 fi
6998 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6999 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7000 if test $ac_cv_lib_dld_shl_load = yes; then
7001   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7002 else
7003   echo "$as_me:$LINENO: checking for dlopen" >&5
7004 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7005 if test "${ac_cv_func_dlopen+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   cat >conftest.$ac_ext <<_ACEOF
7009 /* confdefs.h.  */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h.  */
7014 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7016 #define dlopen innocuous_dlopen
7017
7018 /* System header to define __stub macros and hopefully few prototypes,
7019     which can conflict with char dlopen (); below.
7020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7021     <limits.h> exists even on freestanding compilers.  */
7022
7023 #ifdef __STDC__
7024 # include <limits.h>
7025 #else
7026 # include <assert.h>
7027 #endif
7028
7029 #undef dlopen
7030
7031 /* Override any gcc2 internal prototype to avoid an error.  */
7032 #ifdef __cplusplus
7033 extern "C"
7034 {
7035 #endif
7036 /* We use char because int might match the return type of a gcc2
7037    builtin and then its argument prototype would still apply.  */
7038 char dlopen ();
7039 /* The GNU C library defines this for functions which it implements
7040     to always fail with ENOSYS.  Some functions are actually named
7041     something starting with __ and the normal name is an alias.  */
7042 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7043 choke me
7044 #else
7045 char (*f) () = dlopen;
7046 #endif
7047 #ifdef __cplusplus
7048 }
7049 #endif
7050
7051 int
7052 main ()
7053 {
7054 return f != dlopen;
7055   ;
7056   return 0;
7057 }
7058 _ACEOF
7059 rm -f conftest.$ac_objext conftest$ac_exeext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061   (eval $ac_link) 2>conftest.er1
7062   ac_status=$?
7063   grep -v '^ *+' conftest.er1 >conftest.err
7064   rm -f conftest.er1
7065   cat conftest.err >&5
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); } &&
7068          { ac_try='test -z "$ac_c_werror_flag"
7069                          || test ! -s conftest.err'
7070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071   (eval $ac_try) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); }; } &&
7075          { ac_try='test -s conftest$ac_exeext'
7076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077   (eval $ac_try) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; }; then
7081   ac_cv_func_dlopen=yes
7082 else
7083   echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7085
7086 ac_cv_func_dlopen=no
7087 fi
7088 rm -f conftest.err conftest.$ac_objext \
7089       conftest$ac_exeext conftest.$ac_ext
7090 fi
7091 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7092 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7093 if test $ac_cv_func_dlopen = yes; then
7094   lt_cv_dlopen="dlopen"
7095 else
7096   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7097 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   ac_check_lib_save_LIBS=$LIBS
7102 LIBS="-ldl  $LIBS"
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h.  */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h.  */
7109
7110 /* Override any gcc2 internal prototype to avoid an error.  */
7111 #ifdef __cplusplus
7112 extern "C"
7113 #endif
7114 /* We use char because int might match the return type of a gcc2
7115    builtin and then its argument prototype would still apply.  */
7116 char dlopen ();
7117 int
7118 main ()
7119 {
7120 dlopen ();
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext conftest$ac_exeext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127   (eval $ac_link) 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } &&
7134          { ac_try='test -z "$ac_c_werror_flag"
7135                          || test ! -s conftest.err'
7136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137   (eval $ac_try) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); }; } &&
7141          { ac_try='test -s conftest$ac_exeext'
7142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143   (eval $ac_try) 2>&5
7144   ac_status=$?
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); }; }; then
7147   ac_cv_lib_dl_dlopen=yes
7148 else
7149   echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 ac_cv_lib_dl_dlopen=no
7153 fi
7154 rm -f conftest.err conftest.$ac_objext \
7155       conftest$ac_exeext conftest.$ac_ext
7156 LIBS=$ac_check_lib_save_LIBS
7157 fi
7158 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7160 if test $ac_cv_lib_dl_dlopen = yes; then
7161   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7162 else
7163   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7164 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7165 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168   ac_check_lib_save_LIBS=$LIBS
7169 LIBS="-lsvld  $LIBS"
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h.  */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h.  */
7176
7177 /* Override any gcc2 internal prototype to avoid an error.  */
7178 #ifdef __cplusplus
7179 extern "C"
7180 #endif
7181 /* We use char because int might match the return type of a gcc2
7182    builtin and then its argument prototype would still apply.  */
7183 char dlopen ();
7184 int
7185 main ()
7186 {
7187 dlopen ();
7188   ;
7189   return 0;
7190 }
7191 _ACEOF
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194   (eval $ac_link) 2>conftest.er1
7195   ac_status=$?
7196   grep -v '^ *+' conftest.er1 >conftest.err
7197   rm -f conftest.er1
7198   cat conftest.err >&5
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); } &&
7201          { ac_try='test -z "$ac_c_werror_flag"
7202                          || test ! -s conftest.err'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; } &&
7208          { ac_try='test -s conftest$ac_exeext'
7209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210   (eval $ac_try) 2>&5
7211   ac_status=$?
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); }; }; then
7214   ac_cv_lib_svld_dlopen=yes
7215 else
7216   echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 ac_cv_lib_svld_dlopen=no
7220 fi
7221 rm -f conftest.err conftest.$ac_objext \
7222       conftest$ac_exeext conftest.$ac_ext
7223 LIBS=$ac_check_lib_save_LIBS
7224 fi
7225 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7226 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7227 if test $ac_cv_lib_svld_dlopen = yes; then
7228   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7229 else
7230   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7231 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7232 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235   ac_check_lib_save_LIBS=$LIBS
7236 LIBS="-ldld  $LIBS"
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h.  */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h.  */
7243
7244 /* Override any gcc2 internal prototype to avoid an error.  */
7245 #ifdef __cplusplus
7246 extern "C"
7247 #endif
7248 /* We use char because int might match the return type of a gcc2
7249    builtin and then its argument prototype would still apply.  */
7250 char dld_link ();
7251 int
7252 main ()
7253 {
7254 dld_link ();
7255   ;
7256   return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261   (eval $ac_link) 2>conftest.er1
7262   ac_status=$?
7263   grep -v '^ *+' conftest.er1 >conftest.err
7264   rm -f conftest.er1
7265   cat conftest.err >&5
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); } &&
7268          { ac_try='test -z "$ac_c_werror_flag"
7269                          || test ! -s conftest.err'
7270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271   (eval $ac_try) 2>&5
7272   ac_status=$?
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); }; } &&
7275          { ac_try='test -s conftest$ac_exeext'
7276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277   (eval $ac_try) 2>&5
7278   ac_status=$?
7279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); }; }; then
7281   ac_cv_lib_dld_dld_link=yes
7282 else
7283   echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7285
7286 ac_cv_lib_dld_dld_link=no
7287 fi
7288 rm -f conftest.err conftest.$ac_objext \
7289       conftest$ac_exeext conftest.$ac_ext
7290 LIBS=$ac_check_lib_save_LIBS
7291 fi
7292 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7293 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7294 if test $ac_cv_lib_dld_dld_link = yes; then
7295   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7296 fi
7297
7298
7299 fi
7300
7301
7302 fi
7303
7304
7305 fi
7306
7307
7308 fi
7309
7310
7311 fi
7312
7313     ;;
7314   esac
7315
7316   if test "x$lt_cv_dlopen" != xno; then
7317     enable_dlopen=yes
7318   else
7319     enable_dlopen=no
7320   fi
7321
7322   case $lt_cv_dlopen in
7323   dlopen)
7324     save_CPPFLAGS="$CPPFLAGS"
7325         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7326
7327     save_LDFLAGS="$LDFLAGS"
7328     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7329
7330     save_LIBS="$LIBS"
7331     LIBS="$lt_cv_dlopen_libs $LIBS"
7332
7333     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7334 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7335 if test "${lt_cv_dlopen_self+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338           if test "$cross_compiling" = yes; then :
7339   lt_cv_dlopen_self=cross
7340 else
7341     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7342   lt_status=$lt_dlunknown
7343   cat > conftest.$ac_ext <<EOF
7344 #line 7344 "configure"
7345 #include "confdefs.h"
7346
7347 #if HAVE_DLFCN_H
7348 #include <dlfcn.h>
7349 #endif
7350
7351 #include <stdio.h>
7352
7353 #ifdef RTLD_GLOBAL
7354 #  define LT_DLGLOBAL           RTLD_GLOBAL
7355 #else
7356 #  ifdef DL_GLOBAL
7357 #    define LT_DLGLOBAL         DL_GLOBAL
7358 #  else
7359 #    define LT_DLGLOBAL         0
7360 #  endif
7361 #endif
7362
7363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7364    find out it does not work in some platform. */
7365 #ifndef LT_DLLAZY_OR_NOW
7366 #  ifdef RTLD_LAZY
7367 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7368 #  else
7369 #    ifdef DL_LAZY
7370 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7371 #    else
7372 #      ifdef RTLD_NOW
7373 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7374 #      else
7375 #        ifdef DL_NOW
7376 #          define LT_DLLAZY_OR_NOW      DL_NOW
7377 #        else
7378 #          define LT_DLLAZY_OR_NOW      0
7379 #        endif
7380 #      endif
7381 #    endif
7382 #  endif
7383 #endif
7384
7385 #ifdef __cplusplus
7386 extern "C" void exit (int);
7387 #endif
7388
7389 void fnord() { int i=42;}
7390 int main ()
7391 {
7392   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7393   int status = $lt_dlunknown;
7394
7395   if (self)
7396     {
7397       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7398       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7399       /* dlclose (self); */
7400     }
7401
7402     exit (status);
7403 }
7404 EOF
7405   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406   (eval $ac_link) 2>&5
7407   ac_status=$?
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7410     (./conftest; exit; ) 2>/dev/null
7411     lt_status=$?
7412     case x$lt_status in
7413       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7414       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7415       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7416     esac
7417   else :
7418     # compilation failed
7419     lt_cv_dlopen_self=no
7420   fi
7421 fi
7422 rm -fr conftest*
7423
7424
7425 fi
7426 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7427 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7428
7429     if test "x$lt_cv_dlopen_self" = xyes; then
7430       LDFLAGS="$LDFLAGS $link_static_flag"
7431       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7432 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7433 if test "${lt_cv_dlopen_self_static+set}" = set; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436           if test "$cross_compiling" = yes; then :
7437   lt_cv_dlopen_self_static=cross
7438 else
7439     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7440   lt_status=$lt_dlunknown
7441   cat > conftest.$ac_ext <<EOF
7442 #line 7442 "configure"
7443 #include "confdefs.h"
7444
7445 #if HAVE_DLFCN_H
7446 #include <dlfcn.h>
7447 #endif
7448
7449 #include <stdio.h>
7450
7451 #ifdef RTLD_GLOBAL
7452 #  define LT_DLGLOBAL           RTLD_GLOBAL
7453 #else
7454 #  ifdef DL_GLOBAL
7455 #    define LT_DLGLOBAL         DL_GLOBAL
7456 #  else
7457 #    define LT_DLGLOBAL         0
7458 #  endif
7459 #endif
7460
7461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7462    find out it does not work in some platform. */
7463 #ifndef LT_DLLAZY_OR_NOW
7464 #  ifdef RTLD_LAZY
7465 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7466 #  else
7467 #    ifdef DL_LAZY
7468 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7469 #    else
7470 #      ifdef RTLD_NOW
7471 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7472 #      else
7473 #        ifdef DL_NOW
7474 #          define LT_DLLAZY_OR_NOW      DL_NOW
7475 #        else
7476 #          define LT_DLLAZY_OR_NOW      0
7477 #        endif
7478 #      endif
7479 #    endif
7480 #  endif
7481 #endif
7482
7483 #ifdef __cplusplus
7484 extern "C" void exit (int);
7485 #endif
7486
7487 void fnord() { int i=42;}
7488 int main ()
7489 {
7490   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7491   int status = $lt_dlunknown;
7492
7493   if (self)
7494     {
7495       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7496       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7497       /* dlclose (self); */
7498     }
7499
7500     exit (status);
7501 }
7502 EOF
7503   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504   (eval $ac_link) 2>&5
7505   ac_status=$?
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7508     (./conftest; exit; ) 2>/dev/null
7509     lt_status=$?
7510     case x$lt_status in
7511       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7512       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7513       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7514     esac
7515   else :
7516     # compilation failed
7517     lt_cv_dlopen_self_static=no
7518   fi
7519 fi
7520 rm -fr conftest*
7521
7522
7523 fi
7524 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7525 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7526     fi
7527
7528     CPPFLAGS="$save_CPPFLAGS"
7529     LDFLAGS="$save_LDFLAGS"
7530     LIBS="$save_LIBS"
7531     ;;
7532   esac
7533
7534   case $lt_cv_dlopen_self in
7535   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7536   *) enable_dlopen_self=unknown ;;
7537   esac
7538
7539   case $lt_cv_dlopen_self_static in
7540   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7541   *) enable_dlopen_self_static=unknown ;;
7542   esac
7543 fi
7544
7545
7546 if test "$enable_shared" = yes && test "$GCC" = yes; then
7547   case $archive_cmds in
7548   *'~'*)
7549     # FIXME: we may have to deal with multi-command sequences.
7550     ;;
7551   '$CC '*)
7552     # Test whether the compiler implicitly links with -lc since on some
7553     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7554     # to ld, don't add -lc before -lgcc.
7555     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7556 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7557     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   $rm conftest*
7561     echo 'static int dummy;' > conftest.$ac_ext
7562
7563     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564   (eval $ac_compile) 2>&5
7565   ac_status=$?
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); }; then
7568       soname=conftest
7569       lib=conftest
7570       libobjs=conftest.$ac_objext
7571       deplibs=
7572       wl=$lt_cv_prog_cc_wl
7573       compiler_flags=-v
7574       linker_flags=-v
7575       verstring=
7576       output_objdir=.
7577       libname=conftest
7578       save_allow_undefined_flag=$allow_undefined_flag
7579       allow_undefined_flag=
7580       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7581   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }
7585       then
7586         lt_cv_archive_cmds_need_lc=no
7587       else
7588         lt_cv_archive_cmds_need_lc=yes
7589       fi
7590       allow_undefined_flag=$save_allow_undefined_flag
7591     else
7592       cat conftest.err 1>&5
7593     fi
7594 fi
7595
7596     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7597 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7598     ;;
7599   esac
7600 fi
7601 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7602
7603 # The second clause should only fire when bootstrapping the
7604 # libtool distribution, otherwise you forgot to ship ltmain.sh
7605 # with your package, and you will get complaints that there are
7606 # no rules to generate ltmain.sh.
7607 if test -f "$ltmain"; then
7608   :
7609 else
7610   # If there is no Makefile yet, we rely on a make rule to execute
7611   # `config.status --recheck' to rerun these tests and create the
7612   # libtool script then.
7613   test -f Makefile && make "$ltmain"
7614 fi
7615
7616 if test -f "$ltmain"; then
7617   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7618   $rm -f "${ofile}T"
7619
7620   echo creating $ofile
7621
7622   # Now quote all the things that may contain metacharacters while being
7623   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7624   # variables and quote the copies for generation of the libtool script.
7625   for var in echo old_CC old_CFLAGS SED \
7626     AR AR_FLAGS CC LD LN_S NM SHELL \
7627     reload_flag reload_cmds wl \
7628     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7629     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7630     library_names_spec soname_spec \
7631     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7632     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7633     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7634     old_striplib striplib file_magic_cmd export_symbols_cmds \
7635     deplibs_check_method allow_undefined_flag no_undefined_flag \
7636     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7637     global_symbol_to_c_name_address \
7638     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7639     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7640     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7641
7642     case $var in
7643     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7644     old_postinstall_cmds | old_postuninstall_cmds | \
7645     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7646     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7647     postinstall_cmds | postuninstall_cmds | \
7648     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7649       # Double-quote double-evaled strings.
7650       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7651       ;;
7652     *)
7653       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7654       ;;
7655     esac
7656   done
7657
7658   cat <<__EOF__ > "${ofile}T"
7659 #! $SHELL
7660
7661 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7662 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7663 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7664 #
7665 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7666 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7667 #
7668 # This program is free software; you can redistribute it and/or modify
7669 # it under the terms of the GNU General Public License as published by
7670 # the Free Software Foundation; either version 2 of the License, or
7671 # (at your option) any later version.
7672 #
7673 # This program is distributed in the hope that it will be useful, but
7674 # WITHOUT ANY WARRANTY; without even the implied warranty of
7675 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7676 # General Public License for more details.
7677 #
7678 # You should have received a copy of the GNU General Public License
7679 # along with this program; if not, write to the Free Software
7680 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7681 #
7682 # As a special exception to the GNU General Public License, if you
7683 # distribute this file as part of a program that contains a
7684 # configuration script generated by Autoconf, you may include it under
7685 # the same distribution terms that you use for the rest of that program.
7686
7687 # A sed that does not truncate output.
7688 SED=$lt_SED
7689
7690 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7691 Xsed="${SED} -e s/^X//"
7692
7693 # The HP-UX ksh and POSIX shell print the target directory to stdout
7694 # if CDPATH is set.
7695 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7696
7697 # ### BEGIN LIBTOOL CONFIG
7698
7699 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7700
7701 # Shell to use when invoking shell scripts.
7702 SHELL=$lt_SHELL
7703
7704 # Whether or not to build shared libraries.
7705 build_libtool_libs=$enable_shared
7706
7707 # Whether or not to build static libraries.
7708 build_old_libs=$enable_static
7709
7710 # Whether or not to add -lc for building shared libraries.
7711 build_libtool_need_lc=$need_lc
7712
7713 # Whether or not to optimize for fast installation.
7714 fast_install=$enable_fast_install
7715
7716 # The host system.
7717 host_alias=$host_alias
7718 host=$host
7719
7720 # An echo program that does not interpret backslashes.
7721 echo=$lt_echo
7722
7723 # The archiver.
7724 AR=$lt_AR
7725 AR_FLAGS=$lt_AR_FLAGS
7726
7727 # The default C compiler.
7728 CC=$lt_CC
7729
7730 # Is the compiler the GNU C compiler?
7731 with_gcc=$GCC
7732
7733 # The linker used to build libraries.
7734 LD=$lt_LD
7735
7736 # Whether we need hard or soft links.
7737 LN_S=$lt_LN_S
7738
7739 # A BSD-compatible nm program.
7740 NM=$lt_NM
7741
7742 # A symbol stripping program
7743 STRIP=$STRIP
7744
7745 # Used to examine libraries when file_magic_cmd begins "file"
7746 MAGIC_CMD=$MAGIC_CMD
7747
7748 # Used on cygwin: DLL creation program.
7749 DLLTOOL="$DLLTOOL"
7750
7751 # Used on cygwin: object dumper.
7752 OBJDUMP="$OBJDUMP"
7753
7754 # Used on cygwin: assembler.
7755 AS="$AS"
7756
7757 # The name of the directory that contains temporary libtool files.
7758 objdir=$objdir
7759
7760 # How to create reloadable object files.
7761 reload_flag=$lt_reload_flag
7762 reload_cmds=$lt_reload_cmds
7763
7764 # How to pass a linker flag through the compiler.
7765 wl=$lt_wl
7766
7767 # Object file suffix (normally "o").
7768 objext="$ac_objext"
7769
7770 # Old archive suffix (normally "a").
7771 libext="$libext"
7772
7773 # Executable file suffix (normally "").
7774 exeext="$exeext"
7775
7776 # Additional compiler flags for building library objects.
7777 pic_flag=$lt_pic_flag
7778 pic_mode=$pic_mode
7779
7780 # Does compiler simultaneously support -c and -o options?
7781 compiler_c_o=$lt_compiler_c_o
7782
7783 # Can we write directly to a .lo ?
7784 compiler_o_lo=$lt_compiler_o_lo
7785
7786 # Must we lock files when doing compilation ?
7787 need_locks=$lt_need_locks
7788
7789 # Do we need the lib prefix for modules?
7790 need_lib_prefix=$need_lib_prefix
7791
7792 # Do we need a version for libraries?
7793 need_version=$need_version
7794
7795 # Whether dlopen is supported.
7796 dlopen_support=$enable_dlopen
7797
7798 # Whether dlopen of programs is supported.
7799 dlopen_self=$enable_dlopen_self
7800
7801 # Whether dlopen of statically linked programs is supported.
7802 dlopen_self_static=$enable_dlopen_self_static
7803
7804 # Compiler flag to prevent dynamic linking.
7805 link_static_flag=$lt_link_static_flag
7806
7807 # Compiler flag to turn off builtin functions.
7808 no_builtin_flag=$lt_no_builtin_flag
7809
7810 # Compiler flag to allow reflexive dlopens.
7811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7812
7813 # Compiler flag to generate shared objects directly from archives.
7814 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7815
7816 # Compiler flag to generate thread-safe objects.
7817 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7818
7819 # Library versioning type.
7820 version_type=$version_type
7821
7822 # Format of library name prefix.
7823 libname_spec=$lt_libname_spec
7824
7825 # List of archive names.  First name is the real one, the rest are links.
7826 # The last name is the one that the linker finds with -lNAME.
7827 library_names_spec=$lt_library_names_spec
7828
7829 # The coded name of the library, if different from the real name.
7830 soname_spec=$lt_soname_spec
7831
7832 # Commands used to build and install an old-style archive.
7833 RANLIB=$lt_RANLIB
7834 old_archive_cmds=$lt_old_archive_cmds
7835 old_postinstall_cmds=$lt_old_postinstall_cmds
7836 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7837
7838 # Create an old-style archive from a shared archive.
7839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7840
7841 # Create a temporary old-style archive to link instead of a shared archive.
7842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7843
7844 # Commands used to build and install a shared archive.
7845 archive_cmds=$lt_archive_cmds
7846 archive_expsym_cmds=$lt_archive_expsym_cmds
7847 postinstall_cmds=$lt_postinstall_cmds
7848 postuninstall_cmds=$lt_postuninstall_cmds
7849
7850 # Commands to strip libraries.
7851 old_striplib=$lt_old_striplib
7852 striplib=$lt_striplib
7853
7854 # Method to check whether dependent libraries are shared objects.
7855 deplibs_check_method=$lt_deplibs_check_method
7856
7857 # Command to use when deplibs_check_method == file_magic.
7858 file_magic_cmd=$lt_file_magic_cmd
7859
7860 # Flag that allows shared libraries with undefined symbols to be built.
7861 allow_undefined_flag=$lt_allow_undefined_flag
7862
7863 # Flag that forces no undefined symbols.
7864 no_undefined_flag=$lt_no_undefined_flag
7865
7866 # Commands used to finish a libtool library installation in a directory.
7867 finish_cmds=$lt_finish_cmds
7868
7869 # Same as above, but a single script fragment to be evaled but not shown.
7870 finish_eval=$lt_finish_eval
7871
7872 # Take the output of nm and produce a listing of raw symbols and C names.
7873 global_symbol_pipe=$lt_global_symbol_pipe
7874
7875 # Transform the output of nm in a proper C declaration
7876 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7877
7878 # Transform the output of nm in a C name address pair
7879 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7880
7881 # This is the shared library runtime path variable.
7882 runpath_var=$runpath_var
7883
7884 # This is the shared library path variable.
7885 shlibpath_var=$shlibpath_var
7886
7887 # Is shlibpath searched before the hard-coded library search path?
7888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7889
7890 # How to hardcode a shared library path into an executable.
7891 hardcode_action=$hardcode_action
7892
7893 # Whether we should hardcode library paths into libraries.
7894 hardcode_into_libs=$hardcode_into_libs
7895
7896 # Flag to hardcode \$libdir into a binary during linking.
7897 # This must work even if \$libdir does not exist.
7898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7899
7900 # Whether we need a single -rpath flag with a separated argument.
7901 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7902
7903 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7904 # resulting binary.
7905 hardcode_direct=$hardcode_direct
7906
7907 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7908 # resulting binary.
7909 hardcode_minus_L=$hardcode_minus_L
7910
7911 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7912 # the resulting binary.
7913 hardcode_shlibpath_var=$hardcode_shlibpath_var
7914
7915 # Variables whose values should be saved in libtool wrapper scripts and
7916 # restored at relink time.
7917 variables_saved_for_relink="$variables_saved_for_relink"
7918
7919 # Whether libtool must link a program against all its dependency libraries.
7920 link_all_deplibs=$link_all_deplibs
7921
7922 # Compile-time system search path for libraries
7923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7924
7925 # Run-time system search path for libraries
7926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7927
7928 # Fix the shell variable \$srcfile for the compiler.
7929 fix_srcfile_path="$fix_srcfile_path"
7930
7931 # Set to yes if exported symbols are required.
7932 always_export_symbols=$always_export_symbols
7933
7934 # The commands to list exported symbols.
7935 export_symbols_cmds=$lt_export_symbols_cmds
7936
7937 # The commands to extract the exported symbol list from a shared archive.
7938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7939
7940 # Symbols that should not be listed in the preloaded symbols.
7941 exclude_expsyms=$lt_exclude_expsyms
7942
7943 # Symbols that must always be exported.
7944 include_expsyms=$lt_include_expsyms
7945
7946 # ### END LIBTOOL CONFIG
7947
7948 __EOF__
7949
7950   case $host_os in
7951   aix3*)
7952     cat <<\EOF >> "${ofile}T"
7953
7954 # AIX sometimes has problems with the GCC collect2 program.  For some
7955 # reason, if we set the COLLECT_NAMES environment variable, the problems
7956 # vanish in a puff of smoke.
7957 if test "X${COLLECT_NAMES+set}" != Xset; then
7958   COLLECT_NAMES=
7959   export COLLECT_NAMES
7960 fi
7961 EOF
7962     ;;
7963   esac
7964
7965   case $host_os in
7966   cygwin* | mingw* | pw32* | os2*)
7967     cat <<'EOF' >> "${ofile}T"
7968       # This is a source program that is used to create dlls on Windows
7969       # Don't remove nor modify the starting and closing comments
7970 # /* ltdll.c starts here */
7971 # #define WIN32_LEAN_AND_MEAN
7972 # #include <windows.h>
7973 # #undef WIN32_LEAN_AND_MEAN
7974 # #include <stdio.h>
7975 #
7976 # #ifndef __CYGWIN__
7977 # #  ifdef __CYGWIN32__
7978 # #    define __CYGWIN__ __CYGWIN32__
7979 # #  endif
7980 # #endif
7981 #
7982 # #ifdef __cplusplus
7983 # extern "C" {
7984 # #endif
7985 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7986 # #ifdef __cplusplus
7987 # }
7988 # #endif
7989 #
7990 # #ifdef __CYGWIN__
7991 # #include <cygwin/cygwin_dll.h>
7992 # DECLARE_CYGWIN_DLL( DllMain );
7993 # #endif
7994 # HINSTANCE __hDllInstance_base;
7995 #
7996 # BOOL APIENTRY
7997 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7998 # {
7999 #   __hDllInstance_base = hInst;
8000 #   return TRUE;
8001 # }
8002 # /* ltdll.c ends here */
8003         # This is a source program that is used to create import libraries
8004         # on Windows for dlls which lack them. Don't remove nor modify the
8005         # starting and closing comments
8006 # /* impgen.c starts here */
8007 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8008 #
8009 #  This file is part of GNU libtool.
8010 #
8011 #  This program is free software; you can redistribute it and/or modify
8012 #  it under the terms of the GNU General Public License as published by
8013 #  the Free Software Foundation; either version 2 of the License, or
8014 #  (at your option) any later version.
8015 #
8016 #  This program is distributed in the hope that it will be useful,
8017 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8018 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8019 #  GNU General Public License for more details.
8020 #
8021 #  You should have received a copy of the GNU General Public License
8022 #  along with this program; if not, write to the Free Software
8023 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8024 #  */
8025 #
8026 # #include <stdio.h>            /* for printf() */
8027 # #include <unistd.h>           /* for open(), lseek(), read() */
8028 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8029 # #include <string.h>           /* for strdup() */
8030 #
8031 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8032 # #ifndef O_BINARY
8033 # #define O_BINARY 0
8034 # #endif
8035 #
8036 # static unsigned int
8037 # pe_get16 (fd, offset)
8038 #      int fd;
8039 #      int offset;
8040 # {
8041 #   unsigned char b[2];
8042 #   lseek (fd, offset, SEEK_SET);
8043 #   read (fd, b, 2);
8044 #   return b[0] + (b[1]<<8);
8045 # }
8046 #
8047 # static unsigned int
8048 # pe_get32 (fd, offset)
8049 #     int fd;
8050 #     int offset;
8051 # {
8052 #   unsigned char b[4];
8053 #   lseek (fd, offset, SEEK_SET);
8054 #   read (fd, b, 4);
8055 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8056 # }
8057 #
8058 # static unsigned int
8059 # pe_as32 (ptr)
8060 #      void *ptr;
8061 # {
8062 #   unsigned char *b = ptr;
8063 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8064 # }
8065 #
8066 # int
8067 # main (argc, argv)
8068 #     int argc;
8069 #     char *argv[];
8070 # {
8071 #     int dll;
8072 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8073 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8074 #     unsigned long name_rvas, nexp;
8075 #     unsigned char *expdata, *erva;
8076 #     char *filename, *dll_name;
8077 #
8078 #     filename = argv[1];
8079 #
8080 #     dll = open(filename, O_RDONLY|O_BINARY);
8081 #     if (dll < 1)
8082 #       return 1;
8083 #
8084 #     dll_name = filename;
8085 #
8086 #     for (i=0; filename[i]; i++)
8087 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8088 #           dll_name = filename + i +1;
8089 #
8090 #     pe_header_offset = pe_get32 (dll, 0x3c);
8091 #     opthdr_ofs = pe_header_offset + 4 + 20;
8092 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8093 #
8094 #     if (num_entries < 1) /* no exports */
8095 #       return 1;
8096 #
8097 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8098 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8099 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8100 #     secptr = (pe_header_offset + 4 + 20 +
8101 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8102 #
8103 #     expptr = 0;
8104 #     for (i = 0; i < nsections; i++)
8105 #     {
8106 #       char sname[8];
8107 #       unsigned long secptr1 = secptr + 40 * i;
8108 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8109 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8110 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8111 #       lseek(dll, secptr1, SEEK_SET);
8112 #       read(dll, sname, 8);
8113 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8114 #       {
8115 #           expptr = fptr + (export_rva - vaddr);
8116 #           if (export_rva + export_size > vaddr + vsize)
8117 #               export_size = vsize - (export_rva - vaddr);
8118 #           break;
8119 #       }
8120 #     }
8121 #
8122 #     expdata = (unsigned char*)malloc(export_size);
8123 #     lseek (dll, expptr, SEEK_SET);
8124 #     read (dll, expdata, export_size);
8125 #     erva = expdata - export_rva;
8126 #
8127 #     nexp = pe_as32 (expdata+24);
8128 #     name_rvas = pe_as32 (expdata+32);
8129 #
8130 #     printf ("EXPORTS\n");
8131 #     for (i = 0; i<nexp; i++)
8132 #     {
8133 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8134 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8135 #     }
8136 #
8137 #     return 0;
8138 # }
8139 # /* impgen.c ends here */
8140
8141 EOF
8142     ;;
8143   esac
8144
8145   # We use sed instead of cat because bash on DJGPP gets confused if
8146   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8147   # text mode, it properly converts lines to CR/LF.  This bash problem
8148   # is reportedly fixed, but why not run on old versions too?
8149   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8150
8151   mv -f "${ofile}T" "$ofile" || \
8152     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8153   chmod +x "$ofile"
8154 fi
8155
8156
8157
8158
8159
8160 # This can be used to rebuild libtool when needed
8161 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8162
8163 # Always use our own libtool.
8164 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8165
8166 # Prevent multiple expansion
8167
8168
8169  for ac_prog in gzip uncompress compress
8170 do
8171   # Extract the first word of "$ac_prog", so it can be a program name with args.
8172 set dummy $ac_prog; ac_word=$2
8173 echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8175 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   if test -n "$UNCOMPRESS"; then
8179   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184   IFS=$as_save_IFS
8185   test -z "$as_dir" && as_dir=.
8186   for ac_exec_ext in '' $ac_executable_extensions; do
8187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188     ac_cv_prog_UNCOMPRESS="$ac_prog"
8189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8190     break 2
8191   fi
8192 done
8193 done
8194
8195 fi
8196 fi
8197 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8198 if test -n "$UNCOMPRESS"; then
8199   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8200 echo "${ECHO_T}$UNCOMPRESS" >&6
8201 else
8202   echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8204 fi
8205
8206   test -n "$UNCOMPRESS" && break
8207 done
8208
8209
8210
8211
8212
8213
8214
8215
8216 echo "$as_me:$LINENO: checking for target system" >&5
8217 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8218 CYGWIN=
8219 MINGW=
8220 case $host_os in
8221     *cygwin* ) CYGWIN=yes;;
8222     *mingw* ) MINGW=yes;;
8223 esac
8224
8225 AR=ar
8226 if test "x$MINGW" = "xyes"; then
8227     #fix for the debian distribution of mingw
8228     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8229         AR="/usr/i586-mingw32msvc/bin/ar"
8230     fi
8231     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8232         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8233     fi
8234     #fix for the gentoo distribution of mingw
8235     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8236         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8237     fi
8238     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8239         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8240     fi
8241     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8242         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8243     fi
8244 fi
8245
8246
8247
8248 if test "x${CYGWIN}" = "xyes"; then
8249     cat >>confdefs.h <<_ACEOF
8250 #define CYGWIN 1
8251 _ACEOF
8252
8253     echo "$as_me:$LINENO: result: cygwin" >&5
8254 echo "${ECHO_T}cygwin" >&6
8255 else
8256     if test "x${MINGW}" = "xyes"; then
8257         cat >>confdefs.h <<_ACEOF
8258 #define MINGW 1
8259 _ACEOF
8260
8261         WIN32=1
8262         cat >>confdefs.h <<_ACEOF
8263 #define WIN32 1
8264 _ACEOF
8265
8266         LIBS="$LIBS -lws2_32"
8267         echo "$as_me:$LINENO: result: mingw" >&5
8268 echo "${ECHO_T}mingw" >&6
8269     else
8270         LINUX=1
8271         export LINUX
8272         cat >>confdefs.h <<_ACEOF
8273 #define LINUX 1
8274 _ACEOF
8275
8276         echo "$as_me:$LINENO: result: " >&5
8277 echo "${ECHO_T}" >&6
8278     fi
8279 fi
8280
8281
8282 if test "x${MINGW}" != "xyes"; then
8283     cat >>confdefs.h <<_ACEOF
8284 #define O_BINARY 0
8285 _ACEOF
8286
8287 fi
8288 # The following tries to make use of includes and libraries in
8289 # /usr/local, too. Notice: A -I/usr/local/include might break
8290 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8291 # especially on systems which link /usr/local to /usr, so it has yet
8292 # to be seen how useful this is.
8293 if test -d /usr/local/lib; then
8294     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8295 fi
8296 if test -d /usr/local/include; then
8297 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8298 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8299     echo > /dev/null
8300 fi
8301 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8302     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8303     # and $prefix/include, which should be included in our search paths for libraries
8304     # and includes.
8305     LDFLAGS="$LDFLAGS -L${libdir}"
8306     CPPFLAGS="$CPPFLAGS -I${includedir}"
8307     # TODO- test whether gcc still works after this
8308 fi
8309
8310 # this must be done after (I believe) AC_PROG_MAKE_SET
8311 if test "x$DEBUG" '!=' "x";then
8312     STRIP="@echo debug enabled, not stripping "
8313     export STRIP
8314
8315 fi
8316
8317
8318 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8319 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8320 if test "${ac_cv_lib_m_sin+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   ac_check_lib_save_LIBS=$LIBS
8324 LIBS="-lm  $LIBS"
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h.  */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h.  */
8331
8332 /* Override any gcc2 internal prototype to avoid an error.  */
8333 #ifdef __cplusplus
8334 extern "C"
8335 #endif
8336 /* We use char because int might match the return type of a gcc2
8337    builtin and then its argument prototype would still apply.  */
8338 char sin ();
8339 int
8340 main ()
8341 {
8342 sin ();
8343   ;
8344   return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext conftest$ac_exeext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8349   (eval $ac_link) 2>conftest.er1
8350   ac_status=$?
8351   grep -v '^ *+' conftest.er1 >conftest.err
8352   rm -f conftest.er1
8353   cat conftest.err >&5
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } &&
8356          { ac_try='test -z "$ac_c_werror_flag"
8357                          || test ! -s conftest.err'
8358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359   (eval $ac_try) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); }; } &&
8363          { ac_try='test -s conftest$ac_exeext'
8364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365   (eval $ac_try) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; }; then
8369   ac_cv_lib_m_sin=yes
8370 else
8371   echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374 ac_cv_lib_m_sin=no
8375 fi
8376 rm -f conftest.err conftest.$ac_objext \
8377       conftest$ac_exeext conftest.$ac_ext
8378 LIBS=$ac_check_lib_save_LIBS
8379 fi
8380 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8381 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8382 if test $ac_cv_lib_m_sin = yes; then
8383   cat >>confdefs.h <<_ACEOF
8384 #define HAVE_LIBM 1
8385 _ACEOF
8386
8387   LIBS="-lm $LIBS"
8388
8389 else
8390   echo "Error: Math library not found.";
8391  exit;
8392
8393 fi
8394
8395
8396 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8397 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8398 if test "${ac_cv_lib_z_deflate+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   ac_check_lib_save_LIBS=$LIBS
8402 LIBS="-lz  $LIBS"
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409
8410 /* Override any gcc2 internal prototype to avoid an error.  */
8411 #ifdef __cplusplus
8412 extern "C"
8413 #endif
8414 /* We use char because int might match the return type of a gcc2
8415    builtin and then its argument prototype would still apply.  */
8416 char deflate ();
8417 int
8418 main ()
8419 {
8420 deflate ();
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427   (eval $ac_link) 2>conftest.er1
8428   ac_status=$?
8429   grep -v '^ *+' conftest.er1 >conftest.err
8430   rm -f conftest.er1
8431   cat conftest.err >&5
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); } &&
8434          { ac_try='test -z "$ac_c_werror_flag"
8435                          || test ! -s conftest.err'
8436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437   (eval $ac_try) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; } &&
8441          { ac_try='test -s conftest$ac_exeext'
8442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443   (eval $ac_try) 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); }; }; then
8447   ac_cv_lib_z_deflate=yes
8448 else
8449   echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ac_cv_lib_z_deflate=no
8453 fi
8454 rm -f conftest.err conftest.$ac_objext \
8455       conftest$ac_exeext conftest.$ac_ext
8456 LIBS=$ac_check_lib_save_LIBS
8457 fi
8458 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8459 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8460 if test $ac_cv_lib_z_deflate = yes; then
8461   cat >>confdefs.h <<_ACEOF
8462 #define HAVE_LIBZ 1
8463 _ACEOF
8464
8465   LIBS="-lz $LIBS"
8466
8467 else
8468   DISABLEPNG2SWF=true;
8469  MISSINGLIBS="${MISSINGLIBS} zlib"
8470  ZLIBMISSING=true;
8471
8472 fi
8473
8474
8475 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8476 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8477 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8478   echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480   ac_check_lib_save_LIBS=$LIBS
8481 LIBS="-ljpeg  $LIBS"
8482 cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h.  */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h.  */
8488
8489 /* Override any gcc2 internal prototype to avoid an error.  */
8490 #ifdef __cplusplus
8491 extern "C"
8492 #endif
8493 /* We use char because int might match the return type of a gcc2
8494    builtin and then its argument prototype would still apply.  */
8495 char jpeg_write_raw_data ();
8496 int
8497 main ()
8498 {
8499 jpeg_write_raw_data ();
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext conftest$ac_exeext
8505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506   (eval $ac_link) 2>conftest.er1
8507   ac_status=$?
8508   grep -v '^ *+' conftest.er1 >conftest.err
8509   rm -f conftest.er1
8510   cat conftest.err >&5
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); } &&
8513          { ac_try='test -z "$ac_c_werror_flag"
8514                          || test ! -s conftest.err'
8515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516   (eval $ac_try) 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); }; } &&
8520          { ac_try='test -s conftest$ac_exeext'
8521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522   (eval $ac_try) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; }; then
8526   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8532 fi
8533 rm -f conftest.err conftest.$ac_objext \
8534       conftest$ac_exeext conftest.$ac_ext
8535 LIBS=$ac_check_lib_save_LIBS
8536 fi
8537 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8538 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8539 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8540   cat >>confdefs.h <<_ACEOF
8541 #define HAVE_LIBJPEG 1
8542 _ACEOF
8543
8544   LIBS="-ljpeg $LIBS"
8545
8546 else
8547   DISABLEPDF2SWF=true;
8548  DISABLEJPEG2SWF=true;
8549  MISSINGLIBS="${MISSINGLIBS} jpeglib"
8550
8551 fi
8552
8553
8554 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8555 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8556 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559   ac_check_lib_save_LIBS=$LIBS
8560 LIBS="-lt1  $LIBS"
8561 cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h.  */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h.  */
8567
8568 /* Override any gcc2 internal prototype to avoid an error.  */
8569 #ifdef __cplusplus
8570 extern "C"
8571 #endif
8572 /* We use char because int might match the return type of a gcc2
8573    builtin and then its argument prototype would still apply.  */
8574 char T1_LoadFont ();
8575 int
8576 main ()
8577 {
8578 T1_LoadFont ();
8579   ;
8580   return 0;
8581 }
8582 _ACEOF
8583 rm -f conftest.$ac_objext conftest$ac_exeext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8585   (eval $ac_link) 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } &&
8592          { ac_try='test -z "$ac_c_werror_flag"
8593                          || test ! -s conftest.err'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; } &&
8599          { ac_try='test -s conftest$ac_exeext'
8600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601   (eval $ac_try) 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); }; }; then
8605   ac_cv_lib_t1_T1_LoadFont=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 ac_cv_lib_t1_T1_LoadFont=no
8611 fi
8612 rm -f conftest.err conftest.$ac_objext \
8613       conftest$ac_exeext conftest.$ac_ext
8614 LIBS=$ac_check_lib_save_LIBS
8615 fi
8616 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8617 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8618 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8619   cat >>confdefs.h <<_ACEOF
8620 #define HAVE_LIBT1 1
8621 _ACEOF
8622
8623   LIBS="-lt1 $LIBS"
8624
8625 else
8626   DISABLEPDF2SWF=true;
8627  MISSINGLIBS="${MISSINGLIBS} t1lib"
8628
8629 fi
8630
8631
8632
8633 for ac_prog in freetype-config
8634 do
8635   # Extract the first word of "$ac_prog", so it can be a program name with args.
8636 set dummy $ac_prog; ac_word=$2
8637 echo "$as_me:$LINENO: checking for $ac_word" >&5
8638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8639 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642   if test -n "$FREETYPE_CONFIG"; then
8643   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8644 else
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $PATH
8647 do
8648   IFS=$as_save_IFS
8649   test -z "$as_dir" && as_dir=.
8650   for ac_exec_ext in '' $ac_executable_extensions; do
8651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8652     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8654     break 2
8655   fi
8656 done
8657 done
8658
8659 fi
8660 fi
8661 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8662 if test -n "$FREETYPE_CONFIG"; then
8663   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8664 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8665 else
8666   echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6
8668 fi
8669
8670   test -n "$FREETYPE_CONFIG" && break
8671 done
8672
8673 OLDCPPFLAGS="${CPPFLAGS}"
8674 OLDLIBS="${LIBS}"
8675 if test "x${FREETYPE_CONFIG}" != "x"; then
8676     CPPFLAGS="$CFLAGS "`freetype-config --cflags`
8677 else if test -d /usr/include/freetype2; then
8678     CPPFLAGS="$CFLAGS -I/usr/include/freetype2"
8679 else if test -d /usr/local/include/freetype2; then
8680     CPPFLAGS="$CFLAGS -I/usr/local/include/freetype2"
8681 fi
8682 fi
8683 fi
8684 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8685 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8686 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689   ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lfreetype  $LIBS"
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h.  */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h.  */
8697
8698 /* Override any gcc2 internal prototype to avoid an error.  */
8699 #ifdef __cplusplus
8700 extern "C"
8701 #endif
8702 /* We use char because int might match the return type of a gcc2
8703    builtin and then its argument prototype would still apply.  */
8704 char FT_Init_FreeType ();
8705 int
8706 main ()
8707 {
8708 FT_Init_FreeType ();
8709   ;
8710   return 0;
8711 }
8712 _ACEOF
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715   (eval $ac_link) 2>conftest.er1
8716   ac_status=$?
8717   grep -v '^ *+' conftest.er1 >conftest.err
8718   rm -f conftest.er1
8719   cat conftest.err >&5
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); } &&
8722          { ac_try='test -z "$ac_c_werror_flag"
8723                          || test ! -s conftest.err'
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); }; } &&
8729          { ac_try='test -s conftest$ac_exeext'
8730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731   (eval $ac_try) 2>&5
8732   ac_status=$?
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); }; }; then
8735   ac_cv_lib_freetype_FT_Init_FreeType=yes
8736 else
8737   echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8739
8740 ac_cv_lib_freetype_FT_Init_FreeType=no
8741 fi
8742 rm -f conftest.err conftest.$ac_objext \
8743       conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8745 fi
8746 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8747 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8748 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8749   HAVE_LIB_FREETYPE=1
8750 fi
8751
8752
8753 for ac_header in freetype/freetype.h
8754 do
8755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757   echo "$as_me:$LINENO: checking for $ac_header" >&5
8758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 fi
8762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8764 else
8765   # Is the header compilable?
8766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h.  */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h.  */
8774 $ac_includes_default
8775 #include <$ac_header>
8776 _ACEOF
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779   (eval $ac_compile) 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } &&
8786          { ac_try='test -z "$ac_c_werror_flag"
8787                          || test ! -s conftest.err'
8788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789   (eval $ac_try) 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); }; } &&
8793          { ac_try='test -s conftest.$ac_objext'
8794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795   (eval $ac_try) 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; }; then
8799   ac_header_compiler=yes
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 ac_header_compiler=no
8805 fi
8806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8808 echo "${ECHO_T}$ac_header_compiler" >&6
8809
8810 # Is the header present?
8811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h.  */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h.  */
8819 #include <$ac_header>
8820 _ACEOF
8821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8823   ac_status=$?
8824   grep -v '^ *+' conftest.er1 >conftest.err
8825   rm -f conftest.er1
8826   cat conftest.err >&5
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); } >/dev/null; then
8829   if test -s conftest.err; then
8830     ac_cpp_err=$ac_c_preproc_warn_flag
8831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8832   else
8833     ac_cpp_err=
8834   fi
8835 else
8836   ac_cpp_err=yes
8837 fi
8838 if test -z "$ac_cpp_err"; then
8839   ac_header_preproc=yes
8840 else
8841   echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844   ac_header_preproc=no
8845 fi
8846 rm -f conftest.err conftest.$ac_ext
8847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8848 echo "${ECHO_T}$ac_header_preproc" >&6
8849
8850 # So?  What about this header?
8851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8852   yes:no: )
8853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8857     ac_header_preproc=yes
8858     ;;
8859   no:yes:* )
8860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8872     (
8873       cat <<\_ASBOX
8874 ## ------------------------------------------ ##
8875 ## Report this to the AC_PACKAGE_NAME lists.  ##
8876 ## ------------------------------------------ ##
8877 _ASBOX
8878     ) |
8879       sed "s/^/$as_me: WARNING:     /" >&2
8880     ;;
8881 esac
8882 echo "$as_me:$LINENO: checking for $ac_header" >&5
8883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   eval "$as_ac_Header=\$ac_header_preproc"
8888 fi
8889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8891
8892 fi
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894   cat >>confdefs.h <<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896 _ACEOF
8897  HAVE_FREETYPE_FREETYPE_H=1
8898 fi
8899
8900 done
8901
8902 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8903 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8904     HAVE_FREETYPE=1
8905 fi
8906 fi
8907
8908 if test "x${HAVE_FREETYPE}" = "x1"; then
8909     if test "x{$FREETYPE_CONFIG}" != "x"; then
8910         LIBS="$LIBS "`freetype-config --libs`
8911     else
8912         LIBS="$LIBS -lfreetype"
8913     fi
8914
8915     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8916 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8917
8918     cat > conftest.c << EOF
8919 #include <freetype/freetype.h>
8920 #include <freetype/ftglyph.h>
8921 #include <freetype/ftsnames.h>
8922 #include <freetype/ttnameid.h>
8923 #include <freetype/ftoutln.h>
8924
8925 int main()
8926 {
8927     FT_Library ftlibrary;
8928     FT_Face face;
8929     FT_Error error;
8930     FT_ULong charcode;
8931     FT_UInt gindex;
8932     FT_Glyph glyph;
8933     FT_BBox bbox;
8934     FT_Matrix matrix;
8935     FT_UInt i;
8936     char* name = 0;
8937     char italic, bold;
8938
8939     FT_Init_FreeType(&ftlibrary);
8940     FT_New_Face(ftlibrary, "filename", 0, &face);
8941     i = face->num_glyphs - 1;
8942     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8943     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8944     FT_Get_Postscript_Name(face);
8945     FT_Get_Char_Index(face, 33);
8946     FT_Get_First_Char(face, &i);
8947     FT_Get_Next_Char(face, 33, &i);
8948     if(FT_HAS_GLYPH_NAMES(face)) {
8949         FT_Get_Glyph_Name(face, 33, name, 127);
8950     }
8951     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8952     FT_Get_Glyph(face->glyph, &glyph);
8953     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8954     FT_Done_Glyph(glyph);
8955     FT_Done_Face(face);
8956     FT_Done_FreeType(ftlibrary);
8957     return 0;
8958 }
8959 EOF
8960
8961     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LIBS -o conftest${ac_exeext}'
8962     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8963         echo "$as_me:$LINENO: result: yes" >&5
8964 echo "${ECHO_T}yes" >&6
8965         cat >>confdefs.h <<_ACEOF
8966 #define HAVE_FREETYPE 1
8967 _ACEOF
8968
8969         cat >>confdefs.h <<_ACEOF
8970 #define USE_FREETYPE 1
8971 _ACEOF
8972   # for ttf2tp1
8973     else
8974         echo "configure: failed program was:" >&5
8975         cat conftest.c >&5
8976         HAVE_FREETYPE=0
8977         echo "$as_me:$LINENO: result: no" >&5
8978 echo "${ECHO_T}no" >&6
8979     fi
8980     rm -f conftest*
8981 fi
8982
8983 # if the above didn't work out, reset all changes to the compiler variables.
8984 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8985     CPPFLAGS=$OLDCPPFLAGS
8986     LIBS=$OLDLIBS
8987 fi
8988
8989
8990
8991 echo "$as_me:$LINENO: checking for byte order" >&5
8992 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8993 if test "$cross_compiling" = yes; then
8994   CROSSCOMPILE=1
8995 else
8996   cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h.  */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h.  */
9002
9003 int main (int argc, char *argv[])
9004 {
9005     int i = 1;
9006     return *(char*)&i;
9007 }
9008
9009 _ACEOF
9010 rm -f conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012   (eval $ac_link) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017   (eval $ac_try) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); }; }; then
9021   BIGENDIAN=1
9022 else
9023   echo "$as_me: program exited with status $ac_status" >&5
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027 ( exit $ac_status )
9028 LITTLEENDIAN=1
9029 fi
9030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9031 fi
9032 export CROSSCOMPILE
9033
9034 if test "x${CROSSCOMPILE}" = "x1"; then
9035  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9036 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9037  echo "$as_me:$LINENO: checking target system type" >&5
9038 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9039 if test "${ac_cv_target+set}" = set; then
9040   echo $ECHO_N "(cached) $ECHO_C" >&6
9041 else
9042   ac_cv_target_alias=$target_alias
9043 test "x$ac_cv_target_alias" = "x" &&
9044   ac_cv_target_alias=$ac_cv_host_alias
9045 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9046   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9047 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9048    { (exit 1); exit 1; }; }
9049
9050 fi
9051 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9052 echo "${ECHO_T}$ac_cv_target" >&6
9053 target=$ac_cv_target
9054 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9055 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9056 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9057
9058
9059 # The aliases save the names the user supplied, while $host etc.
9060 # will get canonicalized.
9061 test -n "$target_alias" &&
9062   test "$program_prefix$program_suffix$program_transform_name" = \
9063     NONENONEs,x,x, &&
9064   program_prefix=${target_alias}-
9065  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9066 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9067  case "${target}" in
9068   *86* | *-pc-* )
9069      LITTLEENDIAN=1
9070      ;;
9071   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9072      BIGENDIAN=1
9073      ;;
9074  esac
9075 fi
9076
9077 export LITTLEENDIAN
9078 if test "x${LITTLEENDIAN}" = "x1"; then
9079 echo "$as_me:$LINENO: result: little endian" >&5
9080 echo "${ECHO_T}little endian" >&6
9081 BYTEORDERCHECKOK=1
9082 fi
9083 export BIGENDIAN
9084 if test "x${BIGENDIAN}" = "x1"; then
9085 echo "$as_me:$LINENO: result: big endian" >&5
9086 echo "${ECHO_T}big endian" >&6
9087 BYTEORDERCHECKOK=1
9088 WORDS_BIGENDIAN=1
9089 export WORDS_BIGENDIAN
9090 cat >>confdefs.h <<_ACEOF
9091 #define WORDS_BIGENDIAN 1
9092 _ACEOF
9093
9094 fi
9095 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9096 echo "$as_me:$LINENO: result: unknown" >&5
9097 echo "${ECHO_T}unknown" >&6
9098 echo Byte order could not determined.
9099 exit 1
9100 fi
9101
9102
9103
9104 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9105 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9106 if test "$cross_compiling" = yes; then
9107   CROSSCOMPILE=1
9108 else
9109   cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h.  */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h.  */
9115
9116 #include "stdlib.h"
9117 int main (int argc, char*argv[])
9118 {
9119     return system("test `touch config.tmp2`");
9120 }
9121
9122 _ACEOF
9123 rm -f conftest$ac_exeext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125   (eval $ac_link) 2>&5
9126   ac_status=$?
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; }; then
9134   OK=OK
9135 else
9136   echo "$as_me: program exited with status $ac_status" >&5
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9139
9140 fi
9141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9142 fi
9143
9144 if test "x${OK}" = "xOK";then
9145     test -f config.tmp2 || OK=
9146 fi
9147
9148 if test "x${CROSSCOMPILE}" = "x1";then
9149     OK=OK;
9150 fi
9151 if test "x${OK}" = "xOK";then
9152 rm -f config.tmp2
9153 echo "$as_me:$LINENO: result: yes" >&5
9154 echo "${ECHO_T}yes" >&6
9155 SYSTEM_BACKTICKS=1
9156 export SYSTEM_BACKTICKS
9157 cat >>confdefs.h <<_ACEOF
9158 #define SYSTEM_BACKTICKS 1
9159 _ACEOF
9160
9161 else
9162 echo "$as_me:$LINENO: result: no" >&5
9163 echo "${ECHO_T}no" >&6
9164 fi
9165
9166
9167
9168 test "$program_prefix" != NONE &&
9169   program_transform_name="s,^,$program_prefix,;$program_transform_name"
9170 # Use a double $ so make ignores it.
9171 test "$program_suffix" != NONE &&
9172   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9173 # Double any \ or $.  echo might interpret backslashes.
9174 # By default was `s,x,x', remove it if useless.
9175 cat <<\_ACEOF >conftest.sed
9176 s/[\\$]/&&/g;s/;s,x,x,$//
9177 _ACEOF
9178 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9179 rm conftest.sed
9180
9181
9182            ac_config_headers="$ac_config_headers config.h"
9183
9184
9185
9186
9187
9188
9189 ac_header_dirent=no
9190 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9191   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9192 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9193 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9195   echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197   cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h.  */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h.  */
9203 #include <sys/types.h>
9204 #include <$ac_hdr>
9205
9206 int
9207 main ()
9208 {
9209 if ((DIR *) 0)
9210 return 0;
9211   ;
9212   return 0;
9213 }
9214 _ACEOF
9215 rm -f conftest.$ac_objext
9216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9217   (eval $ac_compile) 2>conftest.er1
9218   ac_status=$?
9219   grep -v '^ *+' conftest.er1 >conftest.err
9220   rm -f conftest.er1
9221   cat conftest.err >&5
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); } &&
9224          { ac_try='test -z "$ac_c_werror_flag"
9225                          || test ! -s conftest.err'
9226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; } &&
9231          { ac_try='test -s conftest.$ac_objext'
9232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233   (eval $ac_try) 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); }; }; then
9237   eval "$as_ac_Header=yes"
9238 else
9239   echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 eval "$as_ac_Header=no"
9243 fi
9244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9245 fi
9246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9249   cat >>confdefs.h <<_ACEOF
9250 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9251 _ACEOF
9252
9253 ac_header_dirent=$ac_hdr; break
9254 fi
9255
9256 done
9257 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9258 if test $ac_header_dirent = dirent.h; then
9259   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9260 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9261 if test "${ac_cv_search_opendir+set}" = set; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264   ac_func_search_save_LIBS=$LIBS
9265 ac_cv_search_opendir=no
9266 cat >conftest.$ac_ext <<_ACEOF
9267 /* confdefs.h.  */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h.  */
9272
9273 /* Override any gcc2 internal prototype to avoid an error.  */
9274 #ifdef __cplusplus
9275 extern "C"
9276 #endif
9277 /* We use char because int might match the return type of a gcc2
9278    builtin and then its argument prototype would still apply.  */
9279 char opendir ();
9280 int
9281 main ()
9282 {
9283 opendir ();
9284   ;
9285   return 0;
9286 }
9287 _ACEOF
9288 rm -f conftest.$ac_objext conftest$ac_exeext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290   (eval $ac_link) 2>conftest.er1
9291   ac_status=$?
9292   grep -v '^ *+' conftest.er1 >conftest.err
9293   rm -f conftest.er1
9294   cat conftest.err >&5
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); } &&
9297          { ac_try='test -z "$ac_c_werror_flag"
9298                          || test ! -s conftest.err'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; } &&
9304          { ac_try='test -s conftest$ac_exeext'
9305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306   (eval $ac_try) 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); }; }; then
9310   ac_cv_search_opendir="none required"
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315 fi
9316 rm -f conftest.err conftest.$ac_objext \
9317       conftest$ac_exeext conftest.$ac_ext
9318 if test "$ac_cv_search_opendir" = no; then
9319   for ac_lib in dir; do
9320     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9321     cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327
9328 /* Override any gcc2 internal prototype to avoid an error.  */
9329 #ifdef __cplusplus
9330 extern "C"
9331 #endif
9332 /* We use char because int might match the return type of a gcc2
9333    builtin and then its argument prototype would still apply.  */
9334 char opendir ();
9335 int
9336 main ()
9337 {
9338 opendir ();
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345   (eval $ac_link) 2>conftest.er1
9346   ac_status=$?
9347   grep -v '^ *+' conftest.er1 >conftest.err
9348   rm -f conftest.er1
9349   cat conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } &&
9352          { ac_try='test -z "$ac_c_werror_flag"
9353                          || test ! -s conftest.err'
9354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355   (eval $ac_try) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); }; } &&
9359          { ac_try='test -s conftest$ac_exeext'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; }; then
9365   ac_cv_search_opendir="-l$ac_lib"
9366 break
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 fi
9372 rm -f conftest.err conftest.$ac_objext \
9373       conftest$ac_exeext conftest.$ac_ext
9374   done
9375 fi
9376 LIBS=$ac_func_search_save_LIBS
9377 fi
9378 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9379 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9380 if test "$ac_cv_search_opendir" != no; then
9381   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9382
9383 fi
9384
9385 else
9386   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9387 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9388 if test "${ac_cv_search_opendir+set}" = set; then
9389   echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391   ac_func_search_save_LIBS=$LIBS
9392 ac_cv_search_opendir=no
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h.  */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h.  */
9399
9400 /* Override any gcc2 internal prototype to avoid an error.  */
9401 #ifdef __cplusplus
9402 extern "C"
9403 #endif
9404 /* We use char because int might match the return type of a gcc2
9405    builtin and then its argument prototype would still apply.  */
9406 char opendir ();
9407 int
9408 main ()
9409 {
9410 opendir ();
9411   ;
9412   return 0;
9413 }
9414 _ACEOF
9415 rm -f conftest.$ac_objext conftest$ac_exeext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417   (eval $ac_link) 2>conftest.er1
9418   ac_status=$?
9419   grep -v '^ *+' conftest.er1 >conftest.err
9420   rm -f conftest.er1
9421   cat conftest.err >&5
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); } &&
9424          { ac_try='test -z "$ac_c_werror_flag"
9425                          || test ! -s conftest.err'
9426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427   (eval $ac_try) 2>&5
9428   ac_status=$?
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); }; } &&
9431          { ac_try='test -s conftest$ac_exeext'
9432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433   (eval $ac_try) 2>&5
9434   ac_status=$?
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); }; }; then
9437   ac_cv_search_opendir="none required"
9438 else
9439   echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9441
9442 fi
9443 rm -f conftest.err conftest.$ac_objext \
9444       conftest$ac_exeext conftest.$ac_ext
9445 if test "$ac_cv_search_opendir" = no; then
9446   for ac_lib in x; do
9447     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9448     cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h.  */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h.  */
9454
9455 /* Override any gcc2 internal prototype to avoid an error.  */
9456 #ifdef __cplusplus
9457 extern "C"
9458 #endif
9459 /* We use char because int might match the return type of a gcc2
9460    builtin and then its argument prototype would still apply.  */
9461 char opendir ();
9462 int
9463 main ()
9464 {
9465 opendir ();
9466   ;
9467   return 0;
9468 }
9469 _ACEOF
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472   (eval $ac_link) 2>conftest.er1
9473   ac_status=$?
9474   grep -v '^ *+' conftest.er1 >conftest.err
9475   rm -f conftest.er1
9476   cat conftest.err >&5
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } &&
9479          { ac_try='test -z "$ac_c_werror_flag"
9480                          || test ! -s conftest.err'
9481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482   (eval $ac_try) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; } &&
9486          { ac_try='test -s conftest$ac_exeext'
9487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488   (eval $ac_try) 2>&5
9489   ac_status=$?
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); }; }; then
9492   ac_cv_search_opendir="-l$ac_lib"
9493 break
9494 else
9495   echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9497
9498 fi
9499 rm -f conftest.err conftest.$ac_objext \
9500       conftest$ac_exeext conftest.$ac_ext
9501   done
9502 fi
9503 LIBS=$ac_func_search_save_LIBS
9504 fi
9505 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9506 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9507 if test "$ac_cv_search_opendir" != no; then
9508   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9509
9510 fi
9511
9512 fi
9513
9514  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9515 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9516 if test "${ac_cv_header_stdc+set}" = set; then
9517   echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
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 <stdlib.h>
9526 #include <stdarg.h>
9527 #include <string.h>
9528 #include <float.h>
9529
9530 int
9531 main ()
9532 {
9533
9534   ;
9535   return 0;
9536 }
9537 _ACEOF
9538 rm -f conftest.$ac_objext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9540   (eval $ac_compile) 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } &&
9547          { ac_try='test -z "$ac_c_werror_flag"
9548                          || test ! -s conftest.err'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; } &&
9554          { ac_try='test -s conftest.$ac_objext'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; }; then
9560   ac_cv_header_stdc=yes
9561 else
9562   echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_cv_header_stdc=no
9566 fi
9567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9568
9569 if test $ac_cv_header_stdc = yes; then
9570   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9571   cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h.  */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h.  */
9577 #include <string.h>
9578
9579 _ACEOF
9580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9581   $EGREP "memchr" >/dev/null 2>&1; then
9582   :
9583 else
9584   ac_cv_header_stdc=no
9585 fi
9586 rm -f conftest*
9587
9588 fi
9589
9590 if test $ac_cv_header_stdc = yes; then
9591   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9592   cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h.  */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h.  */
9598 #include <stdlib.h>
9599
9600 _ACEOF
9601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9602   $EGREP "free" >/dev/null 2>&1; then
9603   :
9604 else
9605   ac_cv_header_stdc=no
9606 fi
9607 rm -f conftest*
9608
9609 fi
9610
9611 if test $ac_cv_header_stdc = yes; then
9612   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9613   if test "$cross_compiling" = yes; then
9614   :
9615 else
9616   cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h.  */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h.  */
9622 #include <ctype.h>
9623 #if ((' ' & 0x0FF) == 0x020)
9624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9626 #else
9627 # define ISLOWER(c) \
9628                    (('a' <= (c) && (c) <= 'i') \
9629                      || ('j' <= (c) && (c) <= 'r') \
9630                      || ('s' <= (c) && (c) <= 'z'))
9631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9632 #endif
9633
9634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9635 int
9636 main ()
9637 {
9638   int i;
9639   for (i = 0; i < 256; i++)
9640     if (XOR (islower (i), ISLOWER (i))
9641         || toupper (i) != TOUPPER (i))
9642       exit(2);
9643   exit (0);
9644 }
9645 _ACEOF
9646 rm -f conftest$ac_exeext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648   (eval $ac_link) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653   (eval $ac_try) 2>&5
9654   ac_status=$?
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); }; }; then
9657   :
9658 else
9659   echo "$as_me: program exited with status $ac_status" >&5
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ( exit $ac_status )
9664 ac_cv_header_stdc=no
9665 fi
9666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9667 fi
9668 fi
9669 fi
9670 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9671 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9672 if test $ac_cv_header_stdc = yes; then
9673
9674 cat >>confdefs.h <<\_ACEOF
9675 #define STDC_HEADERS 1
9676 _ACEOF
9677
9678 fi
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694 for ac_header in zlib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
9695 do
9696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9698   echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9701   echo $ECHO_N "(cached) $ECHO_C" >&6
9702 fi
9703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9705 else
9706   # Is the header compilable?
9707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h.  */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h.  */
9715 $ac_includes_default
9716 #include <$ac_header>
9717 _ACEOF
9718 rm -f conftest.$ac_objext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9720   (eval $ac_compile) 2>conftest.er1
9721   ac_status=$?
9722   grep -v '^ *+' conftest.er1 >conftest.err
9723   rm -f conftest.er1
9724   cat conftest.err >&5
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -z "$ac_c_werror_flag"
9728                          || test ! -s conftest.err'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; } &&
9734          { ac_try='test -s conftest.$ac_objext'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; }; then
9740   ac_header_compiler=yes
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 ac_header_compiler=no
9746 fi
9747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9749 echo "${ECHO_T}$ac_header_compiler" >&6
9750
9751 # Is the header present?
9752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9754 cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h.  */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h.  */
9760 #include <$ac_header>
9761 _ACEOF
9762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9764   ac_status=$?
9765   grep -v '^ *+' conftest.er1 >conftest.err
9766   rm -f conftest.er1
9767   cat conftest.err >&5
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } >/dev/null; then
9770   if test -s conftest.err; then
9771     ac_cpp_err=$ac_c_preproc_warn_flag
9772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9773   else
9774     ac_cpp_err=
9775   fi
9776 else
9777   ac_cpp_err=yes
9778 fi
9779 if test -z "$ac_cpp_err"; then
9780   ac_header_preproc=yes
9781 else
9782   echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9784
9785   ac_header_preproc=no
9786 fi
9787 rm -f conftest.err conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9789 echo "${ECHO_T}$ac_header_preproc" >&6
9790
9791 # So?  What about this header?
9792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9793   yes:no: )
9794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9798     ac_header_preproc=yes
9799     ;;
9800   no:yes:* )
9801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9813     (
9814       cat <<\_ASBOX
9815 ## ------------------------------------------ ##
9816 ## Report this to the AC_PACKAGE_NAME lists.  ##
9817 ## ------------------------------------------ ##
9818 _ASBOX
9819     ) |
9820       sed "s/^/$as_me: WARNING:     /" >&2
9821     ;;
9822 esac
9823 echo "$as_me:$LINENO: checking for $ac_header" >&5
9824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9826   echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828   eval "$as_ac_Header=\$ac_header_preproc"
9829 fi
9830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9832
9833 fi
9834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9835   cat >>confdefs.h <<_ACEOF
9836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9837 _ACEOF
9838
9839 fi
9840
9841 done
9842
9843
9844 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9845  DISABLEPDF2SWF=true;
9846  DISABLEJPEG2SWF=true;
9847  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9848 fi
9849 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9850  DISABLEPDF2SWF=true;
9851  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9852 fi
9853 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9854  DISABLEPNG2SWF=true;
9855  MISSINGLIBS="${MISSINGLIBS} zlib.h"
9856  ZLIBMISSING=true;
9857 fi
9858
9859 cat >>confdefs.h <<_ACEOF
9860 #define PACKAGE "$PACKAGE"
9861 _ACEOF
9862
9863 cat >>confdefs.h <<_ACEOF
9864 #define VERSION "$VERSION"
9865 _ACEOF
9866
9867
9868
9869
9870
9871
9872
9873  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9875 if test "${ac_cv_c_const+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884
9885 int
9886 main ()
9887 {
9888 /* FIXME: Include the comments suggested by Paul. */
9889 #ifndef __cplusplus
9890   /* Ultrix mips cc rejects this.  */
9891   typedef int charset[2];
9892   const charset x;
9893   /* SunOS 4.1.1 cc rejects this.  */
9894   char const *const *ccp;
9895   char **p;
9896   /* NEC SVR4.0.2 mips cc rejects this.  */
9897   struct point {int x, y;};
9898   static struct point const zero = {0,0};
9899   /* AIX XL C 1.02.0.0 rejects this.
9900      It does not let you subtract one const X* pointer from another in
9901      an arm of an if-expression whose if-part is not a constant
9902      expression */
9903   const char *g = "string";
9904   ccp = &g + (g ? g-g : 0);
9905   /* HPUX 7.0 cc rejects these. */
9906   ++ccp;
9907   p = (char**) ccp;
9908   ccp = (char const *const *) p;
9909   { /* SCO 3.2v4 cc rejects this.  */
9910     char *t;
9911     char const *s = 0 ? (char *) 0 : (char const *) 0;
9912
9913     *t++ = 0;
9914   }
9915   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9916     int x[] = {25, 17};
9917     const int *foo = &x[0];
9918     ++foo;
9919   }
9920   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9921     typedef const int *iptr;
9922     iptr p = 0;
9923     ++p;
9924   }
9925   { /* AIX XL C 1.02.0.0 rejects this saying
9926        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9927     struct s { int j; const int *ap[3]; };
9928     struct s *b; b->j = 5;
9929   }
9930   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9931     const int foo = 10;
9932   }
9933 #endif
9934
9935   ;
9936   return 0;
9937 }
9938 _ACEOF
9939 rm -f conftest.$ac_objext
9940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9941   (eval $ac_compile) 2>conftest.er1
9942   ac_status=$?
9943   grep -v '^ *+' conftest.er1 >conftest.err
9944   rm -f conftest.er1
9945   cat conftest.err >&5
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); } &&
9948          { ac_try='test -z "$ac_c_werror_flag"
9949                          || test ! -s conftest.err'
9950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951   (eval $ac_try) 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; } &&
9955          { ac_try='test -s conftest.$ac_objext'
9956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957   (eval $ac_try) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; }; then
9961   ac_cv_c_const=yes
9962 else
9963   echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9965
9966 ac_cv_c_const=no
9967 fi
9968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9969 fi
9970 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9971 echo "${ECHO_T}$ac_cv_c_const" >&6
9972 if test $ac_cv_c_const = no; then
9973
9974 cat >>confdefs.h <<\_ACEOF
9975 #define const
9976 _ACEOF
9977
9978 fi
9979
9980  echo "$as_me:$LINENO: checking for inline" >&5
9981 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9982 if test "${ac_cv_c_inline+set}" = set; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985   ac_cv_c_inline=no
9986 for ac_kw in inline __inline__ __inline; do
9987   cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h.  */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h.  */
9993 #ifndef __cplusplus
9994 typedef int foo_t;
9995 static $ac_kw foo_t static_foo () {return 0; }
9996 $ac_kw foo_t foo () {return 0; }
9997 #endif
9998
9999 _ACEOF
10000 rm -f conftest.$ac_objext
10001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10002   (eval $ac_compile) 2>conftest.er1
10003   ac_status=$?
10004   grep -v '^ *+' conftest.er1 >conftest.err
10005   rm -f conftest.er1
10006   cat conftest.err >&5
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); } &&
10009          { ac_try='test -z "$ac_c_werror_flag"
10010                          || test ! -s conftest.err'
10011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012   (eval $ac_try) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }; } &&
10016          { ac_try='test -s conftest.$ac_objext'
10017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018   (eval $ac_try) 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); }; }; then
10022   ac_cv_c_inline=$ac_kw; break
10023 else
10024   echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027 fi
10028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10029 done
10030
10031 fi
10032 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10033 echo "${ECHO_T}$ac_cv_c_inline" >&6
10034
10035
10036 case $ac_cv_c_inline in
10037   inline | yes) ;;
10038   *)
10039     case $ac_cv_c_inline in
10040       no) ac_val=;;
10041       *) ac_val=$ac_cv_c_inline;;
10042     esac
10043     cat >>confdefs.h <<_ACEOF
10044 #ifndef __cplusplus
10045 #define inline $ac_val
10046 #endif
10047 _ACEOF
10048     ;;
10049 esac
10050
10051  echo "$as_me:$LINENO: checking for off_t" >&5
10052 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10053 if test "${ac_cv_type_off_t+set}" = set; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056   cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h.  */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h.  */
10062 $ac_includes_default
10063 int
10064 main ()
10065 {
10066 if ((off_t *) 0)
10067   return 0;
10068 if (sizeof (off_t))
10069   return 0;
10070   ;
10071   return 0;
10072 }
10073 _ACEOF
10074 rm -f conftest.$ac_objext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10076   (eval $ac_compile) 2>conftest.er1
10077   ac_status=$?
10078   grep -v '^ *+' conftest.er1 >conftest.err
10079   rm -f conftest.er1
10080   cat conftest.err >&5
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); } &&
10083          { ac_try='test -z "$ac_c_werror_flag"
10084                          || test ! -s conftest.err'
10085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086   (eval $ac_try) 2>&5
10087   ac_status=$?
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); }; } &&
10090          { ac_try='test -s conftest.$ac_objext'
10091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092   (eval $ac_try) 2>&5
10093   ac_status=$?
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); }; }; then
10096   ac_cv_type_off_t=yes
10097 else
10098   echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10100
10101 ac_cv_type_off_t=no
10102 fi
10103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10104 fi
10105 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10106 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10107 if test $ac_cv_type_off_t = yes; then
10108   :
10109 else
10110
10111 cat >>confdefs.h <<_ACEOF
10112 #define off_t long
10113 _ACEOF
10114
10115 fi
10116
10117  echo "$as_me:$LINENO: checking for size_t" >&5
10118 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10119 if test "${ac_cv_type_size_t+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128 $ac_includes_default
10129 int
10130 main ()
10131 {
10132 if ((size_t *) 0)
10133   return 0;
10134 if (sizeof (size_t))
10135   return 0;
10136   ;
10137   return 0;
10138 }
10139 _ACEOF
10140 rm -f conftest.$ac_objext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10142   (eval $ac_compile) 2>conftest.er1
10143   ac_status=$?
10144   grep -v '^ *+' conftest.er1 >conftest.err
10145   rm -f conftest.er1
10146   cat conftest.err >&5
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); } &&
10149          { ac_try='test -z "$ac_c_werror_flag"
10150                          || test ! -s conftest.err'
10151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152   (eval $ac_try) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); }; } &&
10156          { ac_try='test -s conftest.$ac_objext'
10157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158   (eval $ac_try) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); }; }; then
10162   ac_cv_type_size_t=yes
10163 else
10164   echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ac_cv_type_size_t=no
10168 fi
10169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10170 fi
10171 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10172 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10173 if test $ac_cv_type_size_t = yes; then
10174   :
10175 else
10176
10177 cat >>confdefs.h <<_ACEOF
10178 #define size_t unsigned
10179 _ACEOF
10180
10181 fi
10182
10183  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10184 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10185 if test "${ac_cv_struct_tm+set}" = set; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188   cat >conftest.$ac_ext <<_ACEOF
10189 /* confdefs.h.  */
10190 _ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h.  */
10194 #include <sys/types.h>
10195 #include <time.h>
10196
10197 int
10198 main ()
10199 {
10200 struct tm *tp; tp->tm_sec;
10201   ;
10202   return 0;
10203 }
10204 _ACEOF
10205 rm -f conftest.$ac_objext
10206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10207   (eval $ac_compile) 2>conftest.er1
10208   ac_status=$?
10209   grep -v '^ *+' conftest.er1 >conftest.err
10210   rm -f conftest.er1
10211   cat conftest.err >&5
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); } &&
10214          { ac_try='test -z "$ac_c_werror_flag"
10215                          || test ! -s conftest.err'
10216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217   (eval $ac_try) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; } &&
10221          { ac_try='test -s conftest.$ac_objext'
10222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223   (eval $ac_try) 2>&5
10224   ac_status=$?
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); }; }; then
10227   ac_cv_struct_tm=time.h
10228 else
10229   echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232 ac_cv_struct_tm=sys/time.h
10233 fi
10234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10235 fi
10236 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10237 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10238 if test $ac_cv_struct_tm = sys/time.h; then
10239
10240 cat >>confdefs.h <<\_ACEOF
10241 #define TM_IN_SYS_TIME 1
10242 _ACEOF
10243
10244 fi
10245
10246  echo "$as_me:$LINENO: checking for boolean" >&5
10247 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10248 if test "${ac_cv_type_boolean+set}" = set; then
10249   echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251   cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h.  */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h.  */
10257 $ac_includes_default
10258 int
10259 main ()
10260 {
10261 if ((boolean *) 0)
10262   return 0;
10263 if (sizeof (boolean))
10264   return 0;
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271   (eval $ac_compile) 2>conftest.er1
10272   ac_status=$?
10273   grep -v '^ *+' conftest.er1 >conftest.err
10274   rm -f conftest.er1
10275   cat conftest.err >&5
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); } &&
10278          { ac_try='test -z "$ac_c_werror_flag"
10279                          || test ! -s conftest.err'
10280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281   (eval $ac_try) 2>&5
10282   ac_status=$?
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); }; } &&
10285          { ac_try='test -s conftest.$ac_objext'
10286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287   (eval $ac_try) 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); }; }; then
10291   ac_cv_type_boolean=yes
10292 else
10293   echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296 ac_cv_type_boolean=no
10297 fi
10298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10299 fi
10300 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10301 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10302 if test $ac_cv_type_boolean = yes; then
10303   :
10304 else
10305
10306 cat >>confdefs.h <<_ACEOF
10307 #define boolean int
10308 _ACEOF
10309
10310 fi
10311
10312  echo "$as_me:$LINENO: checking for bool" >&5
10313 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10314 if test "${ac_cv_type_bool+set}" = set; then
10315   echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317   cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h.  */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h.  */
10323 $ac_includes_default
10324 int
10325 main ()
10326 {
10327 if ((bool *) 0)
10328   return 0;
10329 if (sizeof (bool))
10330   return 0;
10331   ;
10332   return 0;
10333 }
10334 _ACEOF
10335 rm -f conftest.$ac_objext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10337   (eval $ac_compile) 2>conftest.er1
10338   ac_status=$?
10339   grep -v '^ *+' conftest.er1 >conftest.err
10340   rm -f conftest.er1
10341   cat conftest.err >&5
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); } &&
10344          { ac_try='test -z "$ac_c_werror_flag"
10345                          || test ! -s conftest.err'
10346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347   (eval $ac_try) 2>&5
10348   ac_status=$?
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); }; } &&
10351          { ac_try='test -s conftest.$ac_objext'
10352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353   (eval $ac_try) 2>&5
10354   ac_status=$?
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); }; }; then
10357   ac_cv_type_bool=yes
10358 else
10359   echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362 ac_cv_type_bool=no
10363 fi
10364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10365 fi
10366 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10367 echo "${ECHO_T}$ac_cv_type_bool" >&6
10368 if test $ac_cv_type_bool = yes; then
10369   :
10370 else
10371
10372 cat >>confdefs.h <<_ACEOF
10373 #define bool char
10374 _ACEOF
10375
10376 fi
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10390 do
10391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10392 echo "$as_me:$LINENO: checking for $ac_func" >&5
10393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10394 if eval "test \"\${$as_ac_var+set}\" = set"; then
10395   echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397   cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h.  */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h.  */
10403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10405 #define $ac_func innocuous_$ac_func
10406
10407 /* System header to define __stub macros and hopefully few prototypes,
10408     which can conflict with char $ac_func (); below.
10409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10410     <limits.h> exists even on freestanding compilers.  */
10411
10412 #ifdef __STDC__
10413 # include <limits.h>
10414 #else
10415 # include <assert.h>
10416 #endif
10417
10418 #undef $ac_func
10419
10420 /* Override any gcc2 internal prototype to avoid an error.  */
10421 #ifdef __cplusplus
10422 extern "C"
10423 {
10424 #endif
10425 /* We use char because int might match the return type of a gcc2
10426    builtin and then its argument prototype would still apply.  */
10427 char $ac_func ();
10428 /* The GNU C library defines this for functions which it implements
10429     to always fail with ENOSYS.  Some functions are actually named
10430     something starting with __ and the normal name is an alias.  */
10431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10432 choke me
10433 #else
10434 char (*f) () = $ac_func;
10435 #endif
10436 #ifdef __cplusplus
10437 }
10438 #endif
10439
10440 int
10441 main ()
10442 {
10443 return f != $ac_func;
10444   ;
10445   return 0;
10446 }
10447 _ACEOF
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450   (eval $ac_link) 2>conftest.er1
10451   ac_status=$?
10452   grep -v '^ *+' conftest.er1 >conftest.err
10453   rm -f conftest.er1
10454   cat conftest.err >&5
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } &&
10457          { ac_try='test -z "$ac_c_werror_flag"
10458                          || test ! -s conftest.err'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; } &&
10464          { ac_try='test -s conftest$ac_exeext'
10465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466   (eval $ac_try) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); }; }; then
10470   eval "$as_ac_var=yes"
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10474
10475 eval "$as_ac_var=no"
10476 fi
10477 rm -f conftest.err conftest.$ac_objext \
10478       conftest$ac_exeext conftest.$ac_ext
10479 fi
10480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10482 if test `eval echo '${'$as_ac_var'}'` = yes; then
10483   cat >>confdefs.h <<_ACEOF
10484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10485 _ACEOF
10486
10487 fi
10488 done
10489
10490
10491
10492 for ac_prog in avifile-config
10493 do
10494   # Extract the first word of "$ac_prog", so it can be a program name with args.
10495 set dummy $ac_prog; ac_word=$2
10496 echo "$as_me:$LINENO: checking for $ac_word" >&5
10497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   if test -n "$AVIFILE_CONFIG"; then
10502   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10503 else
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10506 do
10507   IFS=$as_save_IFS
10508   test -z "$as_dir" && as_dir=.
10509   for ac_exec_ext in '' $ac_executable_extensions; do
10510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513     break 2
10514   fi
10515 done
10516 done
10517
10518 fi
10519 fi
10520 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10521 if test -n "$AVIFILE_CONFIG"; then
10522   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10523 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10524 else
10525   echo "$as_me:$LINENO: result: no" >&5
10526 echo "${ECHO_T}no" >&6
10527 fi
10528
10529   test -n "$AVIFILE_CONFIG" && break
10530 done
10531
10532
10533 if test "x$AVIFILE_CONFIG" '!=' "x";then
10534     OLDCPPFLAGS="$CPPFLAGS"
10535     #OLDLDFLAGS="$LDFLAGS"
10536     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10537     #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10538
10539
10540 for ac_header in avifile/version.h version.h
10541 do
10542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10544   echo "$as_me:$LINENO: checking for $ac_header" >&5
10545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10547   echo $ECHO_N "(cached) $ECHO_C" >&6
10548 fi
10549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10551 else
10552   # Is the header compilable?
10553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h.  */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h.  */
10561 $ac_includes_default
10562 #include <$ac_header>
10563 _ACEOF
10564 rm -f conftest.$ac_objext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10566   (eval $ac_compile) 2>conftest.er1
10567   ac_status=$?
10568   grep -v '^ *+' conftest.er1 >conftest.err
10569   rm -f conftest.er1
10570   cat conftest.err >&5
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); } &&
10573          { ac_try='test -z "$ac_c_werror_flag"
10574                          || test ! -s conftest.err'
10575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576   (eval $ac_try) 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); }; } &&
10580          { ac_try='test -s conftest.$ac_objext'
10581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582   (eval $ac_try) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); }; }; then
10586   ac_header_compiler=yes
10587 else
10588   echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591 ac_header_compiler=no
10592 fi
10593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10595 echo "${ECHO_T}$ac_header_compiler" >&6
10596
10597 # Is the header present?
10598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h.  */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h.  */
10606 #include <$ac_header>
10607 _ACEOF
10608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10609   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10610   ac_status=$?
10611   grep -v '^ *+' conftest.er1 >conftest.err
10612   rm -f conftest.er1
10613   cat conftest.err >&5
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } >/dev/null; then
10616   if test -s conftest.err; then
10617     ac_cpp_err=$ac_c_preproc_warn_flag
10618     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10619   else
10620     ac_cpp_err=
10621   fi
10622 else
10623   ac_cpp_err=yes
10624 fi
10625 if test -z "$ac_cpp_err"; then
10626   ac_header_preproc=yes
10627 else
10628   echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631   ac_header_preproc=no
10632 fi
10633 rm -f conftest.err conftest.$ac_ext
10634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10635 echo "${ECHO_T}$ac_header_preproc" >&6
10636
10637 # So?  What about this header?
10638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10639   yes:no: )
10640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10644     ac_header_preproc=yes
10645     ;;
10646   no:yes:* )
10647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10659     (
10660       cat <<\_ASBOX
10661 ## ------------------------------------------ ##
10662 ## Report this to the AC_PACKAGE_NAME lists.  ##
10663 ## ------------------------------------------ ##
10664 _ASBOX
10665     ) |
10666       sed "s/^/$as_me: WARNING:     /" >&2
10667     ;;
10668 esac
10669 echo "$as_me:$LINENO: checking for $ac_header" >&5
10670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10672   echo $ECHO_N "(cached) $ECHO_C" >&6
10673 else
10674   eval "$as_ac_Header=\$ac_header_preproc"
10675 fi
10676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10678
10679 fi
10680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10681   cat >>confdefs.h <<_ACEOF
10682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10683 _ACEOF
10684
10685 fi
10686
10687 done
10688
10689     #LDFLAGS="$OLDLDFLAGS"
10690     CPPFLAGS="$OLDCPPFLAGS"
10691 fi
10692
10693 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10694 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10695
10696 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10697     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10698 fi
10699 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10700     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10701 fi
10702
10703 cat > conftest.cpp << EOF
10704
10705 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10706 // so we have to introduce them this way
10707 $HAVE_VERSION_H_DEFINE
10708 $HAVE_AVIFILE_VERSION_H_DEFINE
10709
10710 #ifdef HAVE_VERSION_H
10711   #include <version.h>
10712 #endif
10713 #ifdef HAVE_AVIFILE_VERSION_H
10714   #include <avifile/version.h>
10715 #endif
10716
10717 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10718    #include <avifile.h>
10719    #include <aviplay.h>
10720    #include <fourcc.h>
10721    #include <creators.h>
10722    #include <StreamInfo.h>
10723    #define VERSION6
10724 #else
10725    #include <avifile.h>
10726    #include <aviplay.h>
10727    #include <aviutil.h>
10728    #define Width width
10729    #define Height height
10730    #define Data data
10731    #define Bpp bpp
10732 #endif
10733
10734 void test()
10735 {
10736   IAviReadFile* player;
10737   IAviReadStream* astream;
10738   IAviReadStream* vstream;
10739   player = CreateIAviReadFile(0);
10740   astream = player->GetStream(0, AviStream::Audio);
10741   vstream = player->GetStream(0, AviStream::Video);
10742   vstream -> StartStreaming();
10743   astream -> StartStreaming();
10744 #ifndef VERSION6
10745   MainAVIHeader head;
10746   player->GetFileHeader(&head);
10747   head.dwMicroSecPerFrame;
10748   head.dwTotalFrames;
10749   head.dwStreams;
10750   head.dwWidth;
10751   head.dwHeight;
10752   head.dwMicroSecPerFrame;
10753   astream->GetEndPos(),
10754   astream->GetEndTime());
10755   player->StreamCount();
10756 #else
10757   StreamInfo*audioinfo;
10758   StreamInfo*videoinfo;
10759   audioinfo = astream->GetStreamInfo();
10760   videoinfo = vstream->GetStreamInfo();
10761   videoinfo->GetVideoWidth();
10762   videoinfo->GetVideoHeight();
10763   audioinfo->GetAudioSamplesPerSec();
10764   videoinfo->GetFps();
10765 #endif
10766   CImage*img = vstream->GetFrame();
10767   img->ToRGB();
10768   img->Data();
10769   img->Bpp();
10770   img->Width();
10771   img->Height();
10772   WAVEFORMATEX wave;
10773   astream->GetAudioFormatInfo(&wave,0);
10774   uint_t a,b;
10775   astream->ReadFrames(0,0,0,a,b);
10776 }
10777 int main (int argc, char*argv)
10778 {
10779     return 0;
10780 }
10781 EOF
10782
10783 if test "x$AVIFILE_CONFIG" '!=' "x";then
10784     ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
10785     if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10786       echo "$as_me:$LINENO: result: yes" >&5
10787 echo "${ECHO_T}yes" >&6
10788       AVIFILE=true
10789       export AVIFILE
10790       cat >>confdefs.h <<_ACEOF
10791 #define AVIFILE true
10792 _ACEOF
10793
10794     else
10795       echo "configure: failed program was:" >&5
10796       cat conftest.cpp >&5
10797       echo "$as_me:$LINENO: result: no" >&5
10798 echo "${ECHO_T}no" >&6
10799     fi
10800 else
10801     echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6
10803 fi
10804 rm -f conftest*
10805
10806
10807 avi2swf="avi2swf/Makefile"
10808 if test "x${AVIFILE}" != "xtrue"; then
10809  echo "* Couldn't compile the avifile test program."
10810  echo "* Disabling avi2swf tool..."
10811  echo all install uninstall clean: > avi2swf/Makefile
10812  avi2swf=
10813 fi
10814
10815 if test "x${DISABLE_LAME}" = "xtrue"; then
10816     echo "*" Disabling lame support...
10817     lame_objects=
10818 else
10819     cat >>confdefs.h <<_ACEOF
10820 #define HAVE_LAME 1
10821 _ACEOF
10822
10823     lame_objects='$(lame_objects_2)'
10824 fi
10825
10826
10827 if test "x${UNCOMPRESS}" = "xgzip"; then
10828     cat >>confdefs.h <<_ACEOF
10829 #define USE_GZIP 1
10830 _ACEOF
10831
10832 fi
10833
10834
10835 JPEG2SWF='jpeg2swf$(E)'
10836 export JPEG2SWF
10837 PNG2SWF='png2swf$(E)'
10838 export PNG2SWF
10839
10840 if test "x" = "x"; then
10841     pythonrfxswf="lib/python/Makefile"
10842 else
10843     echo all install uninstall clean: > lib/python/Makefile
10844 fi
10845
10846 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10847   echo "***************************************************"
10848   echo "The following headers/libraries are missing: " ${MISSINGLIBS}
10849   if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10850     echo "Disabling pdf2swf tool..."
10851     rm -f pdf2swf/Makefile
10852     echo all install uninstall clean: > pdf2swf/Makefile
10853   fi
10854   if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10855     echo "Disabling jpeg2swf tool..."
10856     JPEG2SWF=
10857     export JPEG2SWF
10858   fi
10859   if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10860     echo "Disabling png2swf tool..."
10861     PNG2SWF=
10862     export PNG2SWF
10863   fi
10864   if test "x${ZLIBMISSING}" = "xtrue"; then
10865     echo
10866     echo "Warning! Without zlib, you will not be able to read"
10867     echo "or write compressed Flash MX files!"
10868   fi
10869   echo "***************************************************"
10870   FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile ${pythonrfxswf}"
10871 else
10872   FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile ${pythonrfxswf}"
10873 fi
10874
10875
10876
10877 #AC_CONFIG_FILES([${FILES}])
10878 #AC_OUTPUT
10879           ac_config_files="$ac_config_files ${FILES}"
10880 cat >confcache <<\_ACEOF
10881 # This file is a shell script that caches the results of configure
10882 # tests run on this system so they can be shared between configure
10883 # scripts and configure runs, see configure's option --config-cache.
10884 # It is not useful on other systems.  If it contains results you don't
10885 # want to keep, you may remove or edit it.
10886 #
10887 # config.status only pays attention to the cache file if you give it
10888 # the --recheck option to rerun configure.
10889 #
10890 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10891 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10892 # following values.
10893
10894 _ACEOF
10895
10896 # The following way of writing the cache mishandles newlines in values,
10897 # but we know of no workaround that is simple, portable, and efficient.
10898 # So, don't put newlines in cache variables' values.
10899 # Ultrix sh set writes to stderr and can't be redirected directly,
10900 # and sets the high bit in the cache file unless we assign to the vars.
10901 {
10902   (set) 2>&1 |
10903     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10904     *ac_space=\ *)
10905       # `set' does not quote correctly, so add quotes (double-quote
10906       # substitution turns \\\\ into \\, and sed turns \\ into \).
10907       sed -n \
10908         "s/'/'\\\\''/g;
10909           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10910       ;;
10911     *)
10912       # `set' quotes correctly as required by POSIX, so do not add quotes.
10913       sed -n \
10914         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10915       ;;
10916     esac;
10917 } |
10918   sed '
10919      t clear
10920      : clear
10921      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10922      t end
10923      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10924      : end' >>confcache
10925 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10926   if test -w $cache_file; then
10927     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10928     cat confcache >$cache_file
10929   else
10930     echo "not updating unwritable cache $cache_file"
10931   fi
10932 fi
10933 rm -f confcache
10934
10935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10936 # Let make expand exec_prefix.
10937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10938
10939 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10940 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10941 # trailing colons and then remove the whole line if VPATH becomes empty
10942 # (actually we leave an empty line to preserve line numbers).
10943 if test "x$srcdir" = x.; then
10944   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10945 s/:*\$(srcdir):*/:/;
10946 s/:*\${srcdir}:*/:/;
10947 s/:*@srcdir@:*/:/;
10948 s/^\([^=]*=[     ]*\):*/\1/;
10949 s/:*$//;
10950 s/^[^=]*=[       ]*$//;
10951 }'
10952 fi
10953
10954 DEFS=-DHAVE_CONFIG_H
10955
10956 ac_libobjs=
10957 ac_ltlibobjs=
10958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10959   # 1. Remove the extension, and $U if already installed.
10960   ac_i=`echo "$ac_i" |
10961          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10962   # 2. Add them.
10963   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10964   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10965 done
10966 LIBOBJS=$ac_libobjs
10967
10968 LTLIBOBJS=$ac_ltlibobjs
10969
10970
10971
10972 : ${CONFIG_STATUS=./config.status}
10973 ac_clean_files_save=$ac_clean_files
10974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10975 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10976 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10977 cat >$CONFIG_STATUS <<_ACEOF
10978 #! $SHELL
10979 # Generated by $as_me.
10980 # Run this file to recreate the current configuration.
10981 # Compiler output produced by configure, useful for debugging
10982 # configure, is in config.log if it exists.
10983
10984 debug=false
10985 ac_cs_recheck=false
10986 ac_cs_silent=false
10987 SHELL=\${CONFIG_SHELL-$SHELL}
10988 _ACEOF
10989
10990 cat >>$CONFIG_STATUS <<\_ACEOF
10991 ## --------------------- ##
10992 ## M4sh Initialization.  ##
10993 ## --------------------- ##
10994
10995 # Be Bourne compatible
10996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10997   emulate sh
10998   NULLCMD=:
10999   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11000   # is contrary to our usage.  Disable this feature.
11001   alias -g '${1+"$@"}'='"$@"'
11002 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11003   set -o posix
11004 fi
11005 DUALCASE=1; export DUALCASE # for MKS sh
11006
11007 # Support unset when possible.
11008 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11009   as_unset=unset
11010 else
11011   as_unset=false
11012 fi
11013
11014
11015 # Work around bugs in pre-3.0 UWIN ksh.
11016 $as_unset ENV MAIL MAILPATH
11017 PS1='$ '
11018 PS2='> '
11019 PS4='+ '
11020
11021 # NLS nuisances.
11022 for as_var in \
11023   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11024   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11025   LC_TELEPHONE LC_TIME
11026 do
11027   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11028     eval $as_var=C; export $as_var
11029   else
11030     $as_unset $as_var
11031   fi
11032 done
11033
11034 # Required to use basename.
11035 if expr a : '\(a\)' >/dev/null 2>&1; then
11036   as_expr=expr
11037 else
11038   as_expr=false
11039 fi
11040
11041 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11042   as_basename=basename
11043 else
11044   as_basename=false
11045 fi
11046
11047
11048 # Name of the executable.
11049 as_me=`$as_basename "$0" ||
11050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11051          X"$0" : 'X\(//\)$' \| \
11052          X"$0" : 'X\(/\)$' \| \
11053          .     : '\(.\)' 2>/dev/null ||
11054 echo X/"$0" |
11055     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11056           /^X\/\(\/\/\)$/{ s//\1/; q; }
11057           /^X\/\(\/\).*/{ s//\1/; q; }
11058           s/.*/./; q'`
11059
11060
11061 # PATH needs CR, and LINENO needs CR and PATH.
11062 # Avoid depending upon Character Ranges.
11063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11066 as_cr_digits='0123456789'
11067 as_cr_alnum=$as_cr_Letters$as_cr_digits
11068
11069 # The user is always right.
11070 if test "${PATH_SEPARATOR+set}" != set; then
11071   echo "#! /bin/sh" >conf$$.sh
11072   echo  "exit 0"   >>conf$$.sh
11073   chmod +x conf$$.sh
11074   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11075     PATH_SEPARATOR=';'
11076   else
11077     PATH_SEPARATOR=:
11078   fi
11079   rm -f conf$$.sh
11080 fi
11081
11082
11083   as_lineno_1=$LINENO
11084   as_lineno_2=$LINENO
11085   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11086   test "x$as_lineno_1" != "x$as_lineno_2" &&
11087   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11088   # Find who we are.  Look in the path if we contain no path at all
11089   # relative or not.
11090   case $0 in
11091     *[\\/]* ) as_myself=$0 ;;
11092     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $PATH
11094 do
11095   IFS=$as_save_IFS
11096   test -z "$as_dir" && as_dir=.
11097   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11098 done
11099
11100        ;;
11101   esac
11102   # We did not find ourselves, most probably we were run as `sh COMMAND'
11103   # in which case we are not to be found in the path.
11104   if test "x$as_myself" = x; then
11105     as_myself=$0
11106   fi
11107   if test ! -f "$as_myself"; then
11108     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11109 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11110    { (exit 1); exit 1; }; }
11111   fi
11112   case $CONFIG_SHELL in
11113   '')
11114     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11116 do
11117   IFS=$as_save_IFS
11118   test -z "$as_dir" && as_dir=.
11119   for as_base in sh bash ksh sh5; do
11120          case $as_dir in
11121          /*)
11122            if ("$as_dir/$as_base" -c '
11123   as_lineno_1=$LINENO
11124   as_lineno_2=$LINENO
11125   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11126   test "x$as_lineno_1" != "x$as_lineno_2" &&
11127   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11128              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11129              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11130              CONFIG_SHELL=$as_dir/$as_base
11131              export CONFIG_SHELL
11132              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11133            fi;;
11134          esac
11135        done
11136 done
11137 ;;
11138   esac
11139
11140   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11141   # uniformly replaced by the line number.  The first 'sed' inserts a
11142   # line-number line before each line; the second 'sed' does the real
11143   # work.  The second script uses 'N' to pair each line-number line
11144   # with the numbered line, and appends trailing '-' during
11145   # substitution so that $LINENO is not a special case at line end.
11146   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11147   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11148   sed '=' <$as_myself |
11149     sed '
11150       N
11151       s,$,-,
11152       : loop
11153       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11154       t loop
11155       s,-$,,
11156       s,^['$as_cr_digits']*\n,,
11157     ' >$as_me.lineno &&
11158   chmod +x $as_me.lineno ||
11159     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11160 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11161    { (exit 1); exit 1; }; }
11162
11163   # Don't try to exec as it changes $[0], causing all sort of problems
11164   # (the dirname of $[0] is not the place where we might find the
11165   # original and so on.  Autoconf is especially sensible to this).
11166   . ./$as_me.lineno
11167   # Exit status is that of the last command.
11168   exit
11169 }
11170
11171
11172 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11173   *c*,-n*) ECHO_N= ECHO_C='
11174 ' ECHO_T='      ' ;;
11175   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11176   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11177 esac
11178
11179 if expr a : '\(a\)' >/dev/null 2>&1; then
11180   as_expr=expr
11181 else
11182   as_expr=false
11183 fi
11184
11185 rm -f conf$$ conf$$.exe conf$$.file
11186 echo >conf$$.file
11187 if ln -s conf$$.file conf$$ 2>/dev/null; then
11188   # We could just check for DJGPP; but this test a) works b) is more generic
11189   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11190   if test -f conf$$.exe; then
11191     # Don't use ln at all; we don't have any links
11192     as_ln_s='cp -p'
11193   else
11194     as_ln_s='ln -s'
11195   fi
11196 elif ln conf$$.file conf$$ 2>/dev/null; then
11197   as_ln_s=ln
11198 else
11199   as_ln_s='cp -p'
11200 fi
11201 rm -f conf$$ conf$$.exe conf$$.file
11202
11203 if mkdir -p . 2>/dev/null; then
11204   as_mkdir_p=:
11205 else
11206   test -d ./-p && rmdir ./-p
11207   as_mkdir_p=false
11208 fi
11209
11210 as_executable_p="test -f"
11211
11212 # Sed expression to map a string onto a valid CPP name.
11213 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11214
11215 # Sed expression to map a string onto a valid variable name.
11216 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11217
11218
11219 # IFS
11220 # We need space, tab and new line, in precisely that order.
11221 as_nl='
11222 '
11223 IFS="   $as_nl"
11224
11225 # CDPATH.
11226 $as_unset CDPATH
11227
11228 exec 6>&1
11229
11230 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11231 # report actual input values of CONFIG_FILES etc. instead of their
11232 # values after options handling.  Logging --version etc. is OK.
11233 exec 5>>config.log
11234 {
11235   echo
11236   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11237 ## Running $as_me. ##
11238 _ASBOX
11239 } >&5
11240 cat >&5 <<_CSEOF
11241
11242 This file was extended by $as_me, which was
11243 generated by GNU Autoconf 2.58.  Invocation command line was
11244
11245   CONFIG_FILES    = $CONFIG_FILES
11246   CONFIG_HEADERS  = $CONFIG_HEADERS
11247   CONFIG_LINKS    = $CONFIG_LINKS
11248   CONFIG_COMMANDS = $CONFIG_COMMANDS
11249   $ $0 $@
11250
11251 _CSEOF
11252 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11253 echo >&5
11254 _ACEOF
11255
11256 # Files that config.status was made for.
11257 if test -n "$ac_config_files"; then
11258   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11259 fi
11260
11261 if test -n "$ac_config_headers"; then
11262   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11263 fi
11264
11265 if test -n "$ac_config_links"; then
11266   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11267 fi
11268
11269 if test -n "$ac_config_commands"; then
11270   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11271 fi
11272
11273 cat >>$CONFIG_STATUS <<\_ACEOF
11274
11275 ac_cs_usage="\
11276 \`$as_me' instantiates files from templates according to the
11277 current configuration.
11278
11279 Usage: $0 [OPTIONS] [FILE]...
11280
11281   -h, --help       print this help, then exit
11282   -V, --version    print version number, then exit
11283   -q, --quiet      do not print progress messages
11284   -d, --debug      don't remove temporary files
11285       --recheck    update $as_me by reconfiguring in the same conditions
11286   --file=FILE[:TEMPLATE]
11287                    instantiate the configuration file FILE
11288   --header=FILE[:TEMPLATE]
11289                    instantiate the configuration header FILE
11290
11291 Configuration files:
11292 $config_files
11293
11294 Configuration headers:
11295 $config_headers
11296
11297 Report bugs to <bug-autoconf@gnu.org>."
11298 _ACEOF
11299
11300 cat >>$CONFIG_STATUS <<_ACEOF
11301 ac_cs_version="\\
11302 config.status
11303 configured by $0, generated by GNU Autoconf 2.58,
11304   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11305
11306 Copyright (C) 2003 Free Software Foundation, Inc.
11307 This config.status script is free software; the Free Software Foundation
11308 gives unlimited permission to copy, distribute and modify it."
11309 srcdir=$srcdir
11310 INSTALL="$INSTALL"
11311 _ACEOF
11312
11313 cat >>$CONFIG_STATUS <<\_ACEOF
11314 # If no file are specified by the user, then we need to provide default
11315 # value.  By we need to know if files were specified by the user.
11316 ac_need_defaults=:
11317 while test $# != 0
11318 do
11319   case $1 in
11320   --*=*)
11321     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11322     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11323     ac_shift=:
11324     ;;
11325   -*)
11326     ac_option=$1
11327     ac_optarg=$2
11328     ac_shift=shift
11329     ;;
11330   *) # This is not an option, so the user has probably given explicit
11331      # arguments.
11332      ac_option=$1
11333      ac_need_defaults=false;;
11334   esac
11335
11336   case $ac_option in
11337   # Handling of the options.
11338 _ACEOF
11339 cat >>$CONFIG_STATUS <<\_ACEOF
11340   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11341     ac_cs_recheck=: ;;
11342   --version | --vers* | -V )
11343     echo "$ac_cs_version"; exit 0 ;;
11344   --he | --h)
11345     # Conflict between --help and --header
11346     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11347 Try \`$0 --help' for more information." >&5
11348 echo "$as_me: error: ambiguous option: $1
11349 Try \`$0 --help' for more information." >&2;}
11350    { (exit 1); exit 1; }; };;
11351   --help | --hel | -h )
11352     echo "$ac_cs_usage"; exit 0 ;;
11353   --debug | --d* | -d )
11354     debug=: ;;
11355   --file | --fil | --fi | --f )
11356     $ac_shift
11357     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11358     ac_need_defaults=false;;
11359   --header | --heade | --head | --hea )
11360     $ac_shift
11361     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11362     ac_need_defaults=false;;
11363   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11364   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11365     ac_cs_silent=: ;;
11366
11367   # This is an error.
11368   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11369 Try \`$0 --help' for more information." >&5
11370 echo "$as_me: error: unrecognized option: $1
11371 Try \`$0 --help' for more information." >&2;}
11372    { (exit 1); exit 1; }; } ;;
11373
11374   *) ac_config_targets="$ac_config_targets $1" ;;
11375
11376   esac
11377   shift
11378 done
11379
11380 ac_configure_extra_args=
11381
11382 if $ac_cs_silent; then
11383   exec 6>/dev/null
11384   ac_configure_extra_args="$ac_configure_extra_args --silent"
11385 fi
11386
11387 _ACEOF
11388 cat >>$CONFIG_STATUS <<_ACEOF
11389 if \$ac_cs_recheck; then
11390   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11391   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11392 fi
11393
11394 _ACEOF
11395
11396
11397
11398
11399
11400 cat >>$CONFIG_STATUS <<\_ACEOF
11401 for ac_config_target in $ac_config_targets
11402 do
11403   case "$ac_config_target" in
11404   # Handling of arguments.
11405   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11406   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11407   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11408 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11409    { (exit 1); exit 1; }; };;
11410   esac
11411 done
11412
11413 # If the user did not use the arguments to specify the items to instantiate,
11414 # then the envvar interface is used.  Set only those that are not.
11415 # We use the long form for the default assignment because of an extremely
11416 # bizarre bug on SunOS 4.1.3.
11417 if $ac_need_defaults; then
11418   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11419   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11420 fi
11421
11422 # Have a temporary directory for convenience.  Make it in the build tree
11423 # simply because there is no reason to put it here, and in addition,
11424 # creating and moving files from /tmp can sometimes cause problems.
11425 # Create a temporary directory, and hook for its removal unless debugging.
11426 $debug ||
11427 {
11428   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11429   trap '{ (exit 1); exit 1; }' 1 2 13 15
11430 }
11431
11432 # Create a (secure) tmp directory for tmp files.
11433
11434 {
11435   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11436   test -n "$tmp" && test -d "$tmp"
11437 }  ||
11438 {
11439   tmp=./confstat$$-$RANDOM
11440   (umask 077 && mkdir $tmp)
11441 } ||
11442 {
11443    echo "$me: cannot create a temporary directory in ." >&2
11444    { (exit 1); exit 1; }
11445 }
11446
11447 _ACEOF
11448
11449 cat >>$CONFIG_STATUS <<_ACEOF
11450
11451 #
11452 # CONFIG_FILES section.
11453 #
11454
11455 # No need to generate the scripts if there are no CONFIG_FILES.
11456 # This happens for instance when ./config.status config.h
11457 if test -n "\$CONFIG_FILES"; then
11458   # Protect against being on the right side of a sed subst in config.status.
11459   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11460    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11461 s,@SHELL@,$SHELL,;t t
11462 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11463 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11464 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11465 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11466 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11467 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11468 s,@exec_prefix@,$exec_prefix,;t t
11469 s,@prefix@,$prefix,;t t
11470 s,@program_transform_name@,$program_transform_name,;t t
11471 s,@bindir@,$bindir,;t t
11472 s,@sbindir@,$sbindir,;t t
11473 s,@libexecdir@,$libexecdir,;t t
11474 s,@datadir@,$datadir,;t t
11475 s,@sysconfdir@,$sysconfdir,;t t
11476 s,@sharedstatedir@,$sharedstatedir,;t t
11477 s,@localstatedir@,$localstatedir,;t t
11478 s,@libdir@,$libdir,;t t
11479 s,@includedir@,$includedir,;t t
11480 s,@oldincludedir@,$oldincludedir,;t t
11481 s,@infodir@,$infodir,;t t
11482 s,@mandir@,$mandir,;t t
11483 s,@build_alias@,$build_alias,;t t
11484 s,@host_alias@,$host_alias,;t t
11485 s,@target_alias@,$target_alias,;t t
11486 s,@DEFS@,$DEFS,;t t
11487 s,@ECHO_C@,$ECHO_C,;t t
11488 s,@ECHO_N@,$ECHO_N,;t t
11489 s,@ECHO_T@,$ECHO_T,;t t
11490 s,@LIBS@,$LIBS,;t t
11491 s,@build@,$build,;t t
11492 s,@build_cpu@,$build_cpu,;t t
11493 s,@build_vendor@,$build_vendor,;t t
11494 s,@build_os@,$build_os,;t t
11495 s,@host@,$host,;t t
11496 s,@host_cpu@,$host_cpu,;t t
11497 s,@host_vendor@,$host_vendor,;t t
11498 s,@host_os@,$host_os,;t t
11499 s,@CC@,$CC,;t t
11500 s,@CFLAGS@,$CFLAGS,;t t
11501 s,@LDFLAGS@,$LDFLAGS,;t t
11502 s,@CPPFLAGS@,$CPPFLAGS,;t t
11503 s,@ac_ct_CC@,$ac_ct_CC,;t t
11504 s,@EXEEXT@,$EXEEXT,;t t
11505 s,@OBJEXT@,$OBJEXT,;t t
11506 s,@CXX@,$CXX,;t t
11507 s,@CXXFLAGS@,$CXXFLAGS,;t t
11508 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11509 s,@CPP@,$CPP,;t t
11510 s,@RANLIB@,$RANLIB,;t t
11511 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11512 s,@SET_MAKE@,$SET_MAKE,;t t
11513 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11514 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11515 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11516 s,@LN_S@,$LN_S,;t t
11517 s,@ECHO@,$ECHO,;t t
11518 s,@STRIP@,$STRIP,;t t
11519 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11520 s,@EGREP@,$EGREP,;t t
11521 s,@LIBTOOL@,$LIBTOOL,;t t
11522 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11523 s,@AR@,$AR,;t t
11524 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
11525 s,@target@,$target,;t t
11526 s,@target_cpu@,$target_cpu,;t t
11527 s,@target_vendor@,$target_vendor,;t t
11528 s,@target_os@,$target_os,;t t
11529 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11530 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11531 s,@PACKAGE@,$PACKAGE,;t t
11532 s,@VERSION@,$VERSION,;t t
11533 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11534 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
11535 s,@lame_objects@,$lame_objects,;t t
11536 s,@USE_GZIP@,$USE_GZIP,;t t
11537 s,@JPEG2SWF@,$JPEG2SWF,;t t
11538 s,@PNG2SWF@,$PNG2SWF,;t t
11539 s,@LIBOBJS@,$LIBOBJS,;t t
11540 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11541 CEOF
11542
11543 _ACEOF
11544
11545   cat >>$CONFIG_STATUS <<\_ACEOF
11546   # Split the substitutions into bite-sized pieces for seds with
11547   # small command number limits, like on Digital OSF/1 and HP-UX.
11548   ac_max_sed_lines=48
11549   ac_sed_frag=1 # Number of current file.
11550   ac_beg=1 # First line for current file.
11551   ac_end=$ac_max_sed_lines # Line after last line for current file.
11552   ac_more_lines=:
11553   ac_sed_cmds=
11554   while $ac_more_lines; do
11555     if test $ac_beg -gt 1; then
11556       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11557     else
11558       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11559     fi
11560     if test ! -s $tmp/subs.frag; then
11561       ac_more_lines=false
11562     else
11563       # The purpose of the label and of the branching condition is to
11564       # speed up the sed processing (if there are no `@' at all, there
11565       # is no need to browse any of the substitutions).
11566       # These are the two extra sed commands mentioned above.
11567       (echo ':t
11568   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11569       if test -z "$ac_sed_cmds"; then
11570         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11571       else
11572         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11573       fi
11574       ac_sed_frag=`expr $ac_sed_frag + 1`
11575       ac_beg=$ac_end
11576       ac_end=`expr $ac_end + $ac_max_sed_lines`
11577     fi
11578   done
11579   if test -z "$ac_sed_cmds"; then
11580     ac_sed_cmds=cat
11581   fi
11582 fi # test -n "$CONFIG_FILES"
11583
11584 _ACEOF
11585 cat >>$CONFIG_STATUS <<\_ACEOF
11586 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11587   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11588   case $ac_file in
11589   - | *:- | *:-:* ) # input from stdin
11590         cat >$tmp/stdin
11591         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11592         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11593   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11594         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11595   * )   ac_file_in=$ac_file.in ;;
11596   esac
11597
11598   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11599   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11601          X"$ac_file" : 'X\(//\)[^/]' \| \
11602          X"$ac_file" : 'X\(//\)$' \| \
11603          X"$ac_file" : 'X\(/\)' \| \
11604          .     : '\(.\)' 2>/dev/null ||
11605 echo X"$ac_file" |
11606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11607           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11608           /^X\(\/\/\)$/{ s//\1/; q; }
11609           /^X\(\/\).*/{ s//\1/; q; }
11610           s/.*/./; q'`
11611   { if $as_mkdir_p; then
11612     mkdir -p "$ac_dir"
11613   else
11614     as_dir="$ac_dir"
11615     as_dirs=
11616     while test ! -d "$as_dir"; do
11617       as_dirs="$as_dir $as_dirs"
11618       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11620          X"$as_dir" : 'X\(//\)[^/]' \| \
11621          X"$as_dir" : 'X\(//\)$' \| \
11622          X"$as_dir" : 'X\(/\)' \| \
11623          .     : '\(.\)' 2>/dev/null ||
11624 echo X"$as_dir" |
11625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11626           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11627           /^X\(\/\/\)$/{ s//\1/; q; }
11628           /^X\(\/\).*/{ s//\1/; q; }
11629           s/.*/./; q'`
11630     done
11631     test ! -n "$as_dirs" || mkdir $as_dirs
11632   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11633 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11634    { (exit 1); exit 1; }; }; }
11635
11636   ac_builddir=.
11637
11638 if test "$ac_dir" != .; then
11639   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11640   # A "../" for each directory in $ac_dir_suffix.
11641   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11642 else
11643   ac_dir_suffix= ac_top_builddir=
11644 fi
11645
11646 case $srcdir in
11647   .)  # No --srcdir option.  We are building in place.
11648     ac_srcdir=.
11649     if test -z "$ac_top_builddir"; then
11650        ac_top_srcdir=.
11651     else
11652        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11653     fi ;;
11654   [\\/]* | ?:[\\/]* )  # Absolute path.
11655     ac_srcdir=$srcdir$ac_dir_suffix;
11656     ac_top_srcdir=$srcdir ;;
11657   *) # Relative path.
11658     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11659     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11660 esac
11661 case "$ac_dir" in
11662 .) ac_abs_builddir=$ac_builddir;;
11663 *)
11664   case $ac_builddir in
11665   .) ac_abs_builddir="$ac_dir";;
11666   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
11667   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
11668   esac;;
11669 esac
11670 case "$ac_dir" in
11671 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11672 *)
11673   case ${ac_top_builddir}. in
11674   .) ac_abs_top_builddir="$ac_dir";;
11675   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11676   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
11677   esac;;
11678 esac
11679 case "$ac_dir" in
11680 .) ac_abs_srcdir=$ac_srcdir;;
11681 *)
11682   case $ac_srcdir in
11683   .) ac_abs_srcdir="$ac_dir";;
11684   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11685   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
11686   esac;;
11687 esac
11688 case "$ac_dir" in
11689 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11690 *)
11691   case $ac_top_srcdir in
11692   .) ac_abs_top_srcdir="$ac_dir";;
11693   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11694   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
11695   esac;;
11696 esac
11697
11698
11699   case $INSTALL in
11700   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11701   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11702   esac
11703
11704   if test x"$ac_file" != x-; then
11705     { echo "$as_me:$LINENO: creating $ac_file" >&5
11706 echo "$as_me: creating $ac_file" >&6;}
11707     rm -f "$ac_file"
11708   fi
11709   # Let's still pretend it is `configure' which instantiates (i.e., don't
11710   # use $as_me), people would be surprised to read:
11711   #    /* config.h.  Generated by config.status.  */
11712   if test x"$ac_file" = x-; then
11713     configure_input=
11714   else
11715     configure_input="$ac_file.  "
11716   fi
11717   configure_input=$configure_input"Generated from `echo $ac_file_in |
11718                                      sed 's,.*/,,'` by configure."
11719
11720   # First look for the input files in the build tree, otherwise in the
11721   # src tree.
11722   ac_file_inputs=`IFS=:
11723     for f in $ac_file_in; do
11724       case $f in
11725       -) echo $tmp/stdin ;;
11726       [\\/$]*)
11727          # Absolute (can't be DOS-style, as IFS=:)
11728          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11729 echo "$as_me: error: cannot find input file: $f" >&2;}
11730    { (exit 1); exit 1; }; }
11731          echo "$f";;
11732       *) # Relative
11733          if test -f "$f"; then
11734            # Build tree
11735            echo "$f"
11736          elif test -f "$srcdir/$f"; then
11737            # Source tree
11738            echo "$srcdir/$f"
11739          else
11740            # /dev/null tree
11741            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11742 echo "$as_me: error: cannot find input file: $f" >&2;}
11743    { (exit 1); exit 1; }; }
11744          fi;;
11745       esac
11746     done` || { (exit 1); exit 1; }
11747 _ACEOF
11748 cat >>$CONFIG_STATUS <<_ACEOF
11749   sed "$ac_vpsub
11750 $extrasub
11751 _ACEOF
11752 cat >>$CONFIG_STATUS <<\_ACEOF
11753 :t
11754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11755 s,@configure_input@,$configure_input,;t t
11756 s,@srcdir@,$ac_srcdir,;t t
11757 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11758 s,@top_srcdir@,$ac_top_srcdir,;t t
11759 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11760 s,@builddir@,$ac_builddir,;t t
11761 s,@abs_builddir@,$ac_abs_builddir,;t t
11762 s,@top_builddir@,$ac_top_builddir,;t t
11763 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11764 s,@INSTALL@,$ac_INSTALL,;t t
11765 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11766   rm -f $tmp/stdin
11767   if test x"$ac_file" != x-; then
11768     mv $tmp/out $ac_file
11769   else
11770     cat $tmp/out
11771     rm -f $tmp/out
11772   fi
11773
11774 done
11775 _ACEOF
11776 cat >>$CONFIG_STATUS <<\_ACEOF
11777
11778 #
11779 # CONFIG_HEADER section.
11780 #
11781
11782 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11783 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11784 #
11785 # ac_d sets the value in "#define NAME VALUE" lines.
11786 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11787 ac_dB='[         ].*$,\1#\2'
11788 ac_dC=' '
11789 ac_dD=',;t'
11790 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11791 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11792 ac_uB='$,\1#\2define\3'
11793 ac_uC=' '
11794 ac_uD=',;t'
11795
11796 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11797   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11798   case $ac_file in
11799   - | *:- | *:-:* ) # input from stdin
11800         cat >$tmp/stdin
11801         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11802         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11803   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11804         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11805   * )   ac_file_in=$ac_file.in ;;
11806   esac
11807
11808   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11809 echo "$as_me: creating $ac_file" >&6;}
11810
11811   # First look for the input files in the build tree, otherwise in the
11812   # src tree.
11813   ac_file_inputs=`IFS=:
11814     for f in $ac_file_in; do
11815       case $f in
11816       -) echo $tmp/stdin ;;
11817       [\\/$]*)
11818          # Absolute (can't be DOS-style, as IFS=:)
11819          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11820 echo "$as_me: error: cannot find input file: $f" >&2;}
11821    { (exit 1); exit 1; }; }
11822          # Do quote $f, to prevent DOS paths from being IFS'd.
11823          echo "$f";;
11824       *) # Relative
11825          if test -f "$f"; then
11826            # Build tree
11827            echo "$f"
11828          elif test -f "$srcdir/$f"; then
11829            # Source tree
11830            echo "$srcdir/$f"
11831          else
11832            # /dev/null tree
11833            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11834 echo "$as_me: error: cannot find input file: $f" >&2;}
11835    { (exit 1); exit 1; }; }
11836          fi;;
11837       esac
11838     done` || { (exit 1); exit 1; }
11839   # Remove the trailing spaces.
11840   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11841
11842 _ACEOF
11843
11844 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11845 # `conftest.undefs', that substitutes the proper values into
11846 # config.h.in to produce config.h.  The first handles `#define'
11847 # templates, and the second `#undef' templates.
11848 # And first: Protect against being on the right side of a sed subst in
11849 # config.status.  Protect against being in an unquoted here document
11850 # in config.status.
11851 rm -f conftest.defines conftest.undefs
11852 # Using a here document instead of a string reduces the quoting nightmare.
11853 # Putting comments in sed scripts is not portable.
11854 #
11855 # `end' is used to avoid that the second main sed command (meant for
11856 # 0-ary CPP macros) applies to n-ary macro definitions.
11857 # See the Autoconf documentation for `clear'.
11858 cat >confdef2sed.sed <<\_ACEOF
11859 s/[\\&,]/\\&/g
11860 s,[\\$`],\\&,g
11861 t clear
11862 : clear
11863 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11864 t end
11865 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11866 : end
11867 _ACEOF
11868 # If some macros were called several times there might be several times
11869 # the same #defines, which is useless.  Nevertheless, we may not want to
11870 # sort them, since we want the *last* AC-DEFINE to be honored.
11871 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11872 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11873 rm -f confdef2sed.sed
11874
11875 # This sed command replaces #undef with comments.  This is necessary, for
11876 # example, in the case of _POSIX_SOURCE, which is predefined and required
11877 # on some systems where configure will not decide to define it.
11878 cat >>conftest.undefs <<\_ACEOF
11879 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11880 _ACEOF
11881
11882 # Break up conftest.defines because some shells have a limit on the size
11883 # of here documents, and old seds have small limits too (100 cmds).
11884 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11885 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11886 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11887 echo '  :' >>$CONFIG_STATUS
11888 rm -f conftest.tail
11889 while grep . conftest.defines >/dev/null
11890 do
11891   # Write a limited-size here document to $tmp/defines.sed.
11892   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11893   # Speed up: don't consider the non `#define' lines.
11894   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11895   # Work around the forget-to-reset-the-flag bug.
11896   echo 't clr' >>$CONFIG_STATUS
11897   echo ': clr' >>$CONFIG_STATUS
11898   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11899   echo 'CEOF
11900   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11901   rm -f $tmp/in
11902   mv $tmp/out $tmp/in
11903 ' >>$CONFIG_STATUS
11904   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11905   rm -f conftest.defines
11906   mv conftest.tail conftest.defines
11907 done
11908 rm -f conftest.defines
11909 echo '  fi # grep' >>$CONFIG_STATUS
11910 echo >>$CONFIG_STATUS
11911
11912 # Break up conftest.undefs because some shells have a limit on the size
11913 # of here documents, and old seds have small limits too (100 cmds).
11914 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11915 rm -f conftest.tail
11916 while grep . conftest.undefs >/dev/null
11917 do
11918   # Write a limited-size here document to $tmp/undefs.sed.
11919   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11920   # Speed up: don't consider the non `#undef'
11921   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11922   # Work around the forget-to-reset-the-flag bug.
11923   echo 't clr' >>$CONFIG_STATUS
11924   echo ': clr' >>$CONFIG_STATUS
11925   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11926   echo 'CEOF
11927   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11928   rm -f $tmp/in
11929   mv $tmp/out $tmp/in
11930 ' >>$CONFIG_STATUS
11931   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11932   rm -f conftest.undefs
11933   mv conftest.tail conftest.undefs
11934 done
11935 rm -f conftest.undefs
11936
11937 cat >>$CONFIG_STATUS <<\_ACEOF
11938   # Let's still pretend it is `configure' which instantiates (i.e., don't
11939   # use $as_me), people would be surprised to read:
11940   #    /* config.h.  Generated by config.status.  */
11941   if test x"$ac_file" = x-; then
11942     echo "/* Generated by configure.  */" >$tmp/config.h
11943   else
11944     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11945   fi
11946   cat $tmp/in >>$tmp/config.h
11947   rm -f $tmp/in
11948   if test x"$ac_file" != x-; then
11949     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11950       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11951 echo "$as_me: $ac_file is unchanged" >&6;}
11952     else
11953       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11955          X"$ac_file" : 'X\(//\)[^/]' \| \
11956          X"$ac_file" : 'X\(//\)$' \| \
11957          X"$ac_file" : 'X\(/\)' \| \
11958          .     : '\(.\)' 2>/dev/null ||
11959 echo X"$ac_file" |
11960     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11961           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11962           /^X\(\/\/\)$/{ s//\1/; q; }
11963           /^X\(\/\).*/{ s//\1/; q; }
11964           s/.*/./; q'`
11965       { if $as_mkdir_p; then
11966     mkdir -p "$ac_dir"
11967   else
11968     as_dir="$ac_dir"
11969     as_dirs=
11970     while test ! -d "$as_dir"; do
11971       as_dirs="$as_dir $as_dirs"
11972       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11974          X"$as_dir" : 'X\(//\)[^/]' \| \
11975          X"$as_dir" : 'X\(//\)$' \| \
11976          X"$as_dir" : 'X\(/\)' \| \
11977          .     : '\(.\)' 2>/dev/null ||
11978 echo X"$as_dir" |
11979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11980           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11981           /^X\(\/\/\)$/{ s//\1/; q; }
11982           /^X\(\/\).*/{ s//\1/; q; }
11983           s/.*/./; q'`
11984     done
11985     test ! -n "$as_dirs" || mkdir $as_dirs
11986   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11987 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11988    { (exit 1); exit 1; }; }; }
11989
11990       rm -f $ac_file
11991       mv $tmp/config.h $ac_file
11992     fi
11993   else
11994     cat $tmp/config.h
11995     rm -f $tmp/config.h
11996   fi
11997 done
11998 _ACEOF
11999
12000 cat >>$CONFIG_STATUS <<\_ACEOF
12001
12002 { (exit 0); exit 0; }
12003 _ACEOF
12004 chmod +x $CONFIG_STATUS
12005 ac_clean_files=$ac_clean_files_save
12006
12007
12008 # configure is writing to config.log, and then calls config.status.
12009 # config.status does its own redirection, appending to config.log.
12010 # Unfortunately, on DOS this fails, as config.log is still kept open
12011 # by configure, so config.status won't be able to write to it; its
12012 # output is simply discarded.  So we exec the FD to /dev/null,
12013 # effectively closing config.log, so it can be properly (re)opened and
12014 # appended to by config.status.  When coming back to configure, we
12015 # need to make the FD available again.
12016 if test "$no_create" != yes; then
12017   ac_cs_success=:
12018   ac_config_status_args=
12019   test "$silent" = yes &&
12020     ac_config_status_args="$ac_config_status_args --quiet"
12021   exec 5>/dev/null
12022   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12023   exec 5>>config.log
12024   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12025   # would make configure fail if this is the last instruction.
12026   $ac_cs_success || { (exit 1); exit 1; }
12027 fi
12028
12029
12030 if test "x${srcdir}" != "x."; then
12031     echo "Warning: --srcdir is not supported"
12032 fi