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
1484 # Check whether --enable-checkmem or --disable-checkmem was given.
1485 if test "${enable_checkmem+set}" = set; then
1486   enableval="$enable_checkmem"
1487   CHECKMEM=true
1488 fi;
1489 # Check whether --enable-debug or --disable-debug was given.
1490 if test "${enable_debug+set}" = set; then
1491   enableval="$enable_debug"
1492   DEBUG=true
1493 fi;
1494 # Check whether --enable-warnings or --disable-warnings was given.
1495 if test "${enable_warnings+set}" = set; then
1496   enableval="$enable_warnings"
1497   ENABLE_WARNINGS=true
1498 fi;
1499 # Check whether --enable-optimizations or --disable-optimizations was given.
1500 if test "${enable_optimizations+set}" = set; then
1501   enableval="$enable_optimizations"
1502   OPTIMIZE=true
1503 fi;
1504 # Check whether --enable-lame or --disable-lame was given.
1505 if test "${enable_lame+set}" = set; then
1506   enableval="$enable_lame"
1507   DISABLE_LAME=true
1508 fi;
1509
1510 PACKAGE=swftools
1511 VERSION=2004-05-18-1254
1512
1513
1514
1515 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1516 if test "x$ENABLE_WARNINGS" '!=' "x";then
1517     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1518 fi
1519
1520 if test "x$CHECKMEM" '!=' "x";then
1521     DEBUG=yes
1522 fi
1523 if test "x$DEBUG" '!=' "x";then
1524     CFLAGS="$WARNINGS -g $CFLAGS"
1525     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1526 else if test "x$OPTIMIZE" '!=' "x"; then
1527     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1528     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1529 else
1530     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1531     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1532 fi
1533 fi
1534 #OLDGCC=1
1535 #if test "x$OLDGCC" '!=' "x";then
1536 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1537 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1538 #     CFLAGS="$CFLAGS -ansi -pendantic"
1539 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1540 #fi
1541
1542 export PACKAGE VERSION CFLAGS CXXFLAGS
1543
1544  ac_aux_dir=
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546   if test -f $ac_dir/install-sh; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/install-sh -c"
1549     break
1550   elif test -f $ac_dir/install.sh; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/install.sh -c"
1553     break
1554   elif test -f $ac_dir/shtool; then
1555     ac_aux_dir=$ac_dir
1556     ac_install_sh="$ac_aux_dir/shtool install -c"
1557     break
1558   fi
1559 done
1560 if test -z "$ac_aux_dir"; then
1561   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563    { (exit 1); exit 1; }; }
1564 fi
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578   echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580   ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582   ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586    { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590    { (exit 1); exit 1; }; }
1591
1592 fi
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1595 build=$ac_cv_build
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608   ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1617 host=$ac_cv_host
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623 MACOSX=
1624 case $host_os in
1625     *darwin* )
1626         MACOSX=yes
1627         CFLAGS="$CFLAGS -fno-rtti"
1628         CXXFLAGS="$CXXFLAGS -fno-rtti"
1629         ;;
1630 esac
1631  ac_ext=c
1632 ac_cpp='$CPP $CPPFLAGS'
1633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1636 if test -n "$ac_tool_prefix"; then
1637   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1638 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_CC+set}" = set; then
1642   echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644   if test -n "$CC"; then
1645   ac_cv_prog_CC="$CC" # Let the user override the test.
1646 else
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650   IFS=$as_save_IFS
1651   test -z "$as_dir" && as_dir=.
1652   for ac_exec_ext in '' $ac_executable_extensions; do
1653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656     break 2
1657   fi
1658 done
1659 done
1660
1661 fi
1662 fi
1663 CC=$ac_cv_prog_CC
1664 if test -n "$CC"; then
1665   echo "$as_me:$LINENO: result: $CC" >&5
1666 echo "${ECHO_T}$CC" >&6
1667 else
1668   echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1670 fi
1671
1672 fi
1673 if test -z "$ac_cv_prog_CC"; then
1674   ac_ct_CC=$CC
1675   # Extract the first word of "gcc", so it can be a program name with args.
1676 set dummy gcc; ac_word=$2
1677 echo "$as_me:$LINENO: checking for $ac_word" >&5
1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1680   echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682   if test -n "$ac_ct_CC"; then
1683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684 else
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1687 do
1688   IFS=$as_save_IFS
1689   test -z "$as_dir" && as_dir=.
1690   for ac_exec_ext in '' $ac_executable_extensions; do
1691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692     ac_cv_prog_ac_ct_CC="gcc"
1693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694     break 2
1695   fi
1696 done
1697 done
1698
1699 fi
1700 fi
1701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702 if test -n "$ac_ct_CC"; then
1703   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1704 echo "${ECHO_T}$ac_ct_CC" >&6
1705 else
1706   echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1708 fi
1709
1710   CC=$ac_ct_CC
1711 else
1712   CC="$ac_cv_prog_CC"
1713 fi
1714
1715 if test -z "$CC"; then
1716   if test -n "$ac_tool_prefix"; then
1717   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1718 set dummy ${ac_tool_prefix}cc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_CC+set}" = set; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   if test -n "$CC"; then
1725   ac_cv_prog_CC="$CC" # Let the user override the test.
1726 else
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   for ac_exec_ext in '' $ac_executable_extensions; do
1733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734     ac_cv_prog_CC="${ac_tool_prefix}cc"
1735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736     break 2
1737   fi
1738 done
1739 done
1740
1741 fi
1742 fi
1743 CC=$ac_cv_prog_CC
1744 if test -n "$CC"; then
1745   echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1747 else
1748   echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
1751
1752 fi
1753 if test -z "$ac_cv_prog_CC"; then
1754   ac_ct_CC=$CC
1755   # Extract the first word of "cc", so it can be a program name with args.
1756 set dummy cc; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   if test -n "$ac_ct_CC"; then
1763   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1764 else
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766 for as_dir in $PATH
1767 do
1768   IFS=$as_save_IFS
1769   test -z "$as_dir" && as_dir=.
1770   for ac_exec_ext in '' $ac_executable_extensions; do
1771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772     ac_cv_prog_ac_ct_CC="cc"
1773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774     break 2
1775   fi
1776 done
1777 done
1778
1779 fi
1780 fi
1781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1782 if test -n "$ac_ct_CC"; then
1783   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1784 echo "${ECHO_T}$ac_ct_CC" >&6
1785 else
1786   echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1788 fi
1789
1790   CC=$ac_ct_CC
1791 else
1792   CC="$ac_cv_prog_CC"
1793 fi
1794
1795 fi
1796 if test -z "$CC"; then
1797   # Extract the first word of "cc", so it can be a program name with args.
1798 set dummy cc; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_CC+set}" = set; then
1802   echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804   if test -n "$CC"; then
1805   ac_cv_prog_CC="$CC" # Let the user override the test.
1806 else
1807   ac_prog_rejected=no
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1810 do
1811   IFS=$as_save_IFS
1812   test -z "$as_dir" && as_dir=.
1813   for ac_exec_ext in '' $ac_executable_extensions; do
1814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1816        ac_prog_rejected=yes
1817        continue
1818      fi
1819     ac_cv_prog_CC="cc"
1820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821     break 2
1822   fi
1823 done
1824 done
1825
1826 if test $ac_prog_rejected = yes; then
1827   # We found a bogon in the path, so make sure we never use it.
1828   set dummy $ac_cv_prog_CC
1829   shift
1830   if test $# != 0; then
1831     # We chose a different compiler from the bogus one.
1832     # However, it has the same basename, so the bogon will be chosen
1833     # first if we set CC to just the basename; use the full file name.
1834     shift
1835     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1836   fi
1837 fi
1838 fi
1839 fi
1840 CC=$ac_cv_prog_CC
1841 if test -n "$CC"; then
1842   echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1844 else
1845   echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1847 fi
1848
1849 fi
1850 if test -z "$CC"; then
1851   if test -n "$ac_tool_prefix"; then
1852   for ac_prog in cl
1853   do
1854     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1855 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_CC+set}" = set; then
1859   echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861   if test -n "$CC"; then
1862   ac_cv_prog_CC="$CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867   IFS=$as_save_IFS
1868   test -z "$as_dir" && as_dir=.
1869   for ac_exec_ext in '' $ac_executable_extensions; do
1870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873     break 2
1874   fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 CC=$ac_cv_prog_CC
1881 if test -n "$CC"; then
1882   echo "$as_me:$LINENO: result: $CC" >&5
1883 echo "${ECHO_T}$CC" >&6
1884 else
1885   echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889     test -n "$CC" && break
1890   done
1891 fi
1892 if test -z "$CC"; then
1893   ac_ct_CC=$CC
1894   for ac_prog in cl
1895 do
1896   # Extract the first word of "$ac_prog", so it can be a program name with args.
1897 set dummy $ac_prog; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   if test -n "$ac_ct_CC"; then
1904   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   for ac_exec_ext in '' $ac_executable_extensions; do
1912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913     ac_cv_prog_ac_ct_CC="$ac_prog"
1914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915     break 2
1916   fi
1917 done
1918 done
1919
1920 fi
1921 fi
1922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1923 if test -n "$ac_ct_CC"; then
1924   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1925 echo "${ECHO_T}$ac_ct_CC" >&6
1926 else
1927   echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931   test -n "$ac_ct_CC" && break
1932 done
1933
1934   CC=$ac_ct_CC
1935 fi
1936
1937 fi
1938
1939
1940 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: no acceptable C compiler found in \$PATH
1943 See \`config.log' for more details." >&2;}
1944    { (exit 1); exit 1; }; }
1945
1946 # Provide some information about the compiler.
1947 echo "$as_me:$LINENO:" \
1948      "checking for C compiler version" >&5
1949 ac_compiler=`set X $ac_compile; echo $2`
1950 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1951   (eval $ac_compiler --version </dev/null >&5) 2>&5
1952   ac_status=$?
1953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954   (exit $ac_status); }
1955 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1956   (eval $ac_compiler -v </dev/null >&5) 2>&5
1957   ac_status=$?
1958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959   (exit $ac_status); }
1960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1961   (eval $ac_compiler -V </dev/null >&5) 2>&5
1962   ac_status=$?
1963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964   (exit $ac_status); }
1965
1966 cat >conftest.$ac_ext <<_ACEOF
1967 /* confdefs.h.  */
1968 _ACEOF
1969 cat confdefs.h >>conftest.$ac_ext
1970 cat >>conftest.$ac_ext <<_ACEOF
1971 /* end confdefs.h.  */
1972
1973 int
1974 main ()
1975 {
1976
1977   ;
1978   return 0;
1979 }
1980 _ACEOF
1981 ac_clean_files_save=$ac_clean_files
1982 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1983 # Try to create an executable without -o first, disregard a.out.
1984 # It will help us diagnose broken compilers, and finding out an intuition
1985 # of exeext.
1986 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1987 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1988 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1989 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1990   (eval $ac_link_default) 2>&5
1991   ac_status=$?
1992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993   (exit $ac_status); }; then
1994   # Find the output, starting from the most likely.  This scheme is
1995 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1996 # resort.
1997
1998 # Be careful to initialize this variable, since it used to be cached.
1999 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2000 ac_cv_exeext=
2001 # b.out is created by i960 compilers.
2002 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2003 do
2004   test -f "$ac_file" || continue
2005   case $ac_file in
2006     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2007         ;;
2008     conftest.$ac_ext )
2009         # This is the source file.
2010         ;;
2011     [ab].out )
2012         # We found the default executable, but exeext='' is most
2013         # certainly right.
2014         break;;
2015     *.* )
2016         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2017         # FIXME: I believe we export ac_cv_exeext for Libtool,
2018         # but it would be cool to find out if it's true.  Does anybody
2019         # maintain Libtool? --akim.
2020         export ac_cv_exeext
2021         break;;
2022     * )
2023         break;;
2024   esac
2025 done
2026 else
2027   echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2029
2030 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2031 See \`config.log' for more details." >&5
2032 echo "$as_me: error: C compiler cannot create executables
2033 See \`config.log' for more details." >&2;}
2034    { (exit 77); exit 77; }; }
2035 fi
2036
2037 ac_exeext=$ac_cv_exeext
2038 echo "$as_me:$LINENO: result: $ac_file" >&5
2039 echo "${ECHO_T}$ac_file" >&6
2040
2041 # Check the compiler produces executables we can run.  If not, either
2042 # the compiler is broken, or we cross compile.
2043 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2044 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2045 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2046 # If not cross compiling, check that we can run a simple program.
2047 if test "$cross_compiling" != yes; then
2048   if { ac_try='./$ac_file'
2049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050   (eval $ac_try) 2>&5
2051   ac_status=$?
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); }; }; then
2054     cross_compiling=no
2055   else
2056     if test "$cross_compiling" = maybe; then
2057         cross_compiling=yes
2058     else
2059         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2060 If you meant to cross compile, use \`--host'.
2061 See \`config.log' for more details." >&5
2062 echo "$as_me: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'.
2064 See \`config.log' for more details." >&2;}
2065    { (exit 1); exit 1; }; }
2066     fi
2067   fi
2068 fi
2069 echo "$as_me:$LINENO: result: yes" >&5
2070 echo "${ECHO_T}yes" >&6
2071
2072 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2073 ac_clean_files=$ac_clean_files_save
2074 # Check the compiler produces executables we can run.  If not, either
2075 # the compiler is broken, or we cross compile.
2076 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2077 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2078 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2079 echo "${ECHO_T}$cross_compiling" >&6
2080
2081 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2082 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2084   (eval $ac_link) 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); }; then
2088   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2089 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2090 # work properly (i.e., refer to `conftest.exe'), while it won't with
2091 # `rm'.
2092 for ac_file in conftest.exe conftest conftest.*; do
2093   test -f "$ac_file" || continue
2094   case $ac_file in
2095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2096     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2097           export ac_cv_exeext
2098           break;;
2099     * ) break;;
2100   esac
2101 done
2102 else
2103   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2106 See \`config.log' for more details." >&2;}
2107    { (exit 1); exit 1; }; }
2108 fi
2109
2110 rm -f conftest$ac_cv_exeext
2111 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2112 echo "${ECHO_T}$ac_cv_exeext" >&6
2113
2114 rm -f conftest.$ac_ext
2115 EXEEXT=$ac_cv_exeext
2116 ac_exeext=$EXEEXT
2117 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2118 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2119 if test "${ac_cv_objext+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128
2129 int
2130 main ()
2131 {
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 rm -f conftest.o conftest.obj
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139   (eval $ac_compile) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; then
2143   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2144   case $ac_file in
2145     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2146     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2147        break;;
2148   esac
2149 done
2150 else
2151   echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2157 See \`config.log' for more details." >&2;}
2158    { (exit 1); exit 1; }; }
2159 fi
2160
2161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2162 fi
2163 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2164 echo "${ECHO_T}$ac_cv_objext" >&6
2165 OBJEXT=$ac_cv_objext
2166 ac_objext=$OBJEXT
2167 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2168 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2169 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   cat >conftest.$ac_ext <<_ACEOF
2173 /* confdefs.h.  */
2174 _ACEOF
2175 cat confdefs.h >>conftest.$ac_ext
2176 cat >>conftest.$ac_ext <<_ACEOF
2177 /* end confdefs.h.  */
2178
2179 int
2180 main ()
2181 {
2182 #ifndef __GNUC__
2183        choke me
2184 #endif
2185
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192   (eval $ac_compile) 2>conftest.er1
2193   ac_status=$?
2194   grep -v '^ *+' conftest.er1 >conftest.err
2195   rm -f conftest.er1
2196   cat conftest.err >&5
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); } &&
2199          { ac_try='test -z "$ac_c_werror_flag"
2200                          || test ! -s conftest.err'
2201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202   (eval $ac_try) 2>&5
2203   ac_status=$?
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); }; } &&
2206          { ac_try='test -s conftest.$ac_objext'
2207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208   (eval $ac_try) 2>&5
2209   ac_status=$?
2210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211   (exit $ac_status); }; }; then
2212   ac_compiler_gnu=yes
2213 else
2214   echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 ac_compiler_gnu=no
2218 fi
2219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2221
2222 fi
2223 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2224 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2225 GCC=`test $ac_compiler_gnu = yes && echo yes`
2226 ac_test_CFLAGS=${CFLAGS+set}
2227 ac_save_CFLAGS=$CFLAGS
2228 CFLAGS="-g"
2229 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2230 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2231 if test "${ac_cv_prog_cc_g+set}" = set; then
2232   echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234   cat >conftest.$ac_ext <<_ACEOF
2235 /* confdefs.h.  */
2236 _ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h.  */
2240
2241 int
2242 main ()
2243 {
2244
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 rm -f conftest.$ac_objext
2250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251   (eval $ac_compile) 2>conftest.er1
2252   ac_status=$?
2253   grep -v '^ *+' conftest.er1 >conftest.err
2254   rm -f conftest.er1
2255   cat conftest.err >&5
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); } &&
2258          { ac_try='test -z "$ac_c_werror_flag"
2259                          || test ! -s conftest.err'
2260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261   (eval $ac_try) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; } &&
2265          { ac_try='test -s conftest.$ac_objext'
2266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267   (eval $ac_try) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; }; then
2271   ac_cv_prog_cc_g=yes
2272 else
2273   echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2275
2276 ac_cv_prog_cc_g=no
2277 fi
2278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279 fi
2280 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2281 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2282 if test "$ac_test_CFLAGS" = set; then
2283   CFLAGS=$ac_save_CFLAGS
2284 elif test $ac_cv_prog_cc_g = yes; then
2285   if test "$GCC" = yes; then
2286     CFLAGS="-g -O2"
2287   else
2288     CFLAGS="-g"
2289   fi
2290 else
2291   if test "$GCC" = yes; then
2292     CFLAGS="-O2"
2293   else
2294     CFLAGS=
2295   fi
2296 fi
2297 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2298 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2299 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2300   echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302   ac_cv_prog_cc_stdc=no
2303 ac_save_CC=$CC
2304 cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h.  */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h.  */
2310 #include <stdarg.h>
2311 #include <stdio.h>
2312 #include <sys/types.h>
2313 #include <sys/stat.h>
2314 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2315 struct buf { int x; };
2316 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2317 static char *e (p, i)
2318      char **p;
2319      int i;
2320 {
2321   return p[i];
2322 }
2323 static char *f (char * (*g) (char **, int), char **p, ...)
2324 {
2325   char *s;
2326   va_list v;
2327   va_start (v,p);
2328   s = g (p, va_arg (v,int));
2329   va_end (v);
2330   return s;
2331 }
2332
2333 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2334    function prototypes and stuff, but not '\xHH' hex character constants.
2335    These don't provoke an error unfortunately, instead are silently treated
2336    as 'x'.  The following induces an error, until -std1 is added to get
2337    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2338    array size at least.  It's necessary to write '\x00'==0 to get something
2339    that's true only with -std1.  */
2340 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2341
2342 int test (int i, double x);
2343 struct s1 {int (*f) (int a);};
2344 struct s2 {int (*f) (double a);};
2345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2346 int argc;
2347 char **argv;
2348 int
2349 main ()
2350 {
2351 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 # Don't try gcc -ansi; that turns off useful extensions and
2357 # breaks some systems' header files.
2358 # AIX                   -qlanglvl=ansi
2359 # Ultrix and OSF/1      -std1
2360 # HP-UX 10.20 and later -Ae
2361 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2362 # SVR4                  -Xc -D__EXTENSIONS__
2363 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2364 do
2365   CC="$ac_save_CC $ac_arg"
2366   rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368   (eval $ac_compile) 2>conftest.er1
2369   ac_status=$?
2370   grep -v '^ *+' conftest.er1 >conftest.err
2371   rm -f conftest.er1
2372   cat conftest.err >&5
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); } &&
2375          { ac_try='test -z "$ac_c_werror_flag"
2376                          || test ! -s conftest.err'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; } &&
2382          { ac_try='test -s conftest.$ac_objext'
2383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384   (eval $ac_try) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; }; then
2388   ac_cv_prog_cc_stdc=$ac_arg
2389 break
2390 else
2391   echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 fi
2395 rm -f conftest.err conftest.$ac_objext
2396 done
2397 rm -f conftest.$ac_ext conftest.$ac_objext
2398 CC=$ac_save_CC
2399
2400 fi
2401
2402 case "x$ac_cv_prog_cc_stdc" in
2403   x|xno)
2404     echo "$as_me:$LINENO: result: none needed" >&5
2405 echo "${ECHO_T}none needed" >&6 ;;
2406   *)
2407     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2408 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2409     CC="$CC $ac_cv_prog_cc_stdc" ;;
2410 esac
2411
2412 # Some people use a C++ compiler to compile C.  Since we use `exit',
2413 # in C++ we need to declare it.  In case someone uses the same compiler
2414 # for both compiling C and C++ we need to have the C++ compiler decide
2415 # the declaration of exit, since it's the most demanding environment.
2416 cat >conftest.$ac_ext <<_ACEOF
2417 #ifndef __cplusplus
2418   choke me
2419 #endif
2420 _ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423   (eval $ac_compile) 2>conftest.er1
2424   ac_status=$?
2425   grep -v '^ *+' conftest.er1 >conftest.err
2426   rm -f conftest.er1
2427   cat conftest.err >&5
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); } &&
2430          { ac_try='test -z "$ac_c_werror_flag"
2431                          || test ! -s conftest.err'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   for ac_declaration in \
2444    '' \
2445    'extern "C" void std::exit (int) throw (); using std::exit;' \
2446    'extern "C" void std::exit (int); using std::exit;' \
2447    'extern "C" void exit (int) throw ();' \
2448    'extern "C" void exit (int);' \
2449    'void exit (int);'
2450 do
2451   cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h.  */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h.  */
2457 $ac_declaration
2458 #include <stdlib.h>
2459 int
2460 main ()
2461 {
2462 exit (42);
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469   (eval $ac_compile) 2>conftest.er1
2470   ac_status=$?
2471   grep -v '^ *+' conftest.er1 >conftest.err
2472   rm -f conftest.er1
2473   cat conftest.err >&5
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); } &&
2476          { ac_try='test -z "$ac_c_werror_flag"
2477                          || test ! -s conftest.err'
2478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479   (eval $ac_try) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   :
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 continue
2495 fi
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497   cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503 $ac_declaration
2504 int
2505 main ()
2506 {
2507 exit (42);
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514   (eval $ac_compile) 2>conftest.er1
2515   ac_status=$?
2516   grep -v '^ *+' conftest.er1 >conftest.err
2517   rm -f conftest.er1
2518   cat conftest.err >&5
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); } &&
2521          { ac_try='test -z "$ac_c_werror_flag"
2522                          || test ! -s conftest.err'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; } &&
2528          { ac_try='test -s conftest.$ac_objext'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; }; then
2534   break
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 fi
2540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541 done
2542 rm -f conftest*
2543 if test -n "$ac_declaration"; then
2544   echo '#ifdef __cplusplus' >>confdefs.h
2545   echo $ac_declaration      >>confdefs.h
2546   echo '#endif'             >>confdefs.h
2547 fi
2548
2549 else
2550   echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553 fi
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 ac_ext=c
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560
2561  ac_ext=cc
2562 ac_cpp='$CXXCPP $CPPFLAGS'
2563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2566 if test -n "$ac_tool_prefix"; then
2567   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2568   do
2569     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2571 echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2573 if test "${ac_cv_prog_CXX+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   if test -n "$CXX"; then
2577   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584   for ac_exec_ext in '' $ac_executable_extensions; do
2585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588     break 2
2589   fi
2590 done
2591 done
2592
2593 fi
2594 fi
2595 CXX=$ac_cv_prog_CXX
2596 if test -n "$CXX"; then
2597   echo "$as_me:$LINENO: result: $CXX" >&5
2598 echo "${ECHO_T}$CXX" >&6
2599 else
2600   echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6
2602 fi
2603
2604     test -n "$CXX" && break
2605   done
2606 fi
2607 if test -z "$CXX"; then
2608   ac_ct_CXX=$CXX
2609   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2610 do
2611   # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   if test -n "$ac_ct_CXX"; then
2619   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626   for ac_exec_ext in '' $ac_executable_extensions; do
2627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628     ac_cv_prog_ac_ct_CXX="$ac_prog"
2629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630     break 2
2631   fi
2632 done
2633 done
2634
2635 fi
2636 fi
2637 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2638 if test -n "$ac_ct_CXX"; then
2639   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2640 echo "${ECHO_T}$ac_ct_CXX" >&6
2641 else
2642   echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6
2644 fi
2645
2646   test -n "$ac_ct_CXX" && break
2647 done
2648 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2649
2650   CXX=$ac_ct_CXX
2651 fi
2652
2653
2654 # Provide some information about the compiler.
2655 echo "$as_me:$LINENO:" \
2656      "checking for C++ compiler version" >&5
2657 ac_compiler=`set X $ac_compile; echo $2`
2658 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2659   (eval $ac_compiler --version </dev/null >&5) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }
2663 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2664   (eval $ac_compiler -v </dev/null >&5) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }
2668 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2669   (eval $ac_compiler -V </dev/null >&5) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }
2673
2674 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2677   echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679   cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h.  */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h.  */
2685
2686 int
2687 main ()
2688 {
2689 #ifndef __GNUC__
2690        choke me
2691 #endif
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699   (eval $ac_compile) 2>conftest.er1
2700   ac_status=$?
2701   grep -v '^ *+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } &&
2706          { ac_try='test -z "$ac_cxx_werror_flag"
2707                          || test ! -s conftest.err'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; } &&
2713          { ac_try='test -s conftest.$ac_objext'
2714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; }; then
2719   ac_compiler_gnu=yes
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 ac_compiler_gnu=no
2725 fi
2726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2728
2729 fi
2730 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2731 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2732 GXX=`test $ac_compiler_gnu = yes && echo yes`
2733 ac_test_CXXFLAGS=${CXXFLAGS+set}
2734 ac_save_CXXFLAGS=$CXXFLAGS
2735 CXXFLAGS="-g"
2736 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2737 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2738 if test "${ac_cv_prog_cxx_g+set}" = set; then
2739   echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741   cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747
2748 int
2749 main ()
2750 {
2751
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758   (eval $ac_compile) 2>conftest.er1
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
2762   cat conftest.err >&5
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -z "$ac_cxx_werror_flag"
2766                          || test ! -s conftest.err'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; } &&
2772          { ac_try='test -s conftest.$ac_objext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   ac_cv_prog_cxx_g=yes
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 ac_cv_prog_cxx_g=no
2784 fi
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786 fi
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2789 if test "$ac_test_CXXFLAGS" = set; then
2790   CXXFLAGS=$ac_save_CXXFLAGS
2791 elif test $ac_cv_prog_cxx_g = yes; then
2792   if test "$GXX" = yes; then
2793     CXXFLAGS="-g -O2"
2794   else
2795     CXXFLAGS="-g"
2796   fi
2797 else
2798   if test "$GXX" = yes; then
2799     CXXFLAGS="-O2"
2800   else
2801     CXXFLAGS=
2802   fi
2803 fi
2804 for ac_declaration in \
2805    '' \
2806    'extern "C" void std::exit (int) throw (); using std::exit;' \
2807    'extern "C" void std::exit (int); using std::exit;' \
2808    'extern "C" void exit (int) throw ();' \
2809    'extern "C" void exit (int);' \
2810    'void exit (int);'
2811 do
2812   cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818 $ac_declaration
2819 #include <stdlib.h>
2820 int
2821 main ()
2822 {
2823 exit (42);
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830   (eval $ac_compile) 2>conftest.er1
2831   ac_status=$?
2832   grep -v '^ *+' conftest.er1 >conftest.err
2833   rm -f conftest.er1
2834   cat conftest.err >&5
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); } &&
2837          { ac_try='test -z "$ac_cxx_werror_flag"
2838                          || test ! -s conftest.err'
2839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }; } &&
2844          { ac_try='test -s conftest.$ac_objext'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; }; then
2850   :
2851 else
2852   echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 continue
2856 fi
2857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858   cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h.  */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h.  */
2864 $ac_declaration
2865 int
2866 main ()
2867 {
2868 exit (42);
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875   (eval $ac_compile) 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          { ac_try='test -z "$ac_cxx_werror_flag"
2883                          || test ! -s conftest.err'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; } &&
2889          { ac_try='test -s conftest.$ac_objext'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895   break
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 fi
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 done
2903 rm -f conftest*
2904 if test -n "$ac_declaration"; then
2905   echo '#ifdef __cplusplus' >>confdefs.h
2906   echo $ac_declaration      >>confdefs.h
2907   echo '#endif'             >>confdefs.h
2908 fi
2909
2910 ac_ext=c
2911 ac_cpp='$CPP $CPPFLAGS'
2912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915
2916
2917 if test "x$CHECKMEM" '!=' "x";then
2918     CC="ccmalloc $CC"
2919     CXX="ccmalloc $CXX"
2920     #echo running again
2921     #unset ac_cv_prog_CC
2922     #unset ac_cv_prog_CXX
2923     #AC_PROG_CC
2924     #AC_PROG_CXX
2925 fi
2926  ac_ext=c
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2932 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2933 # On Suns, sometimes $CPP names a directory.
2934 if test -n "$CPP" && test -d "$CPP"; then
2935   CPP=
2936 fi
2937 if test -z "$CPP"; then
2938   if test "${ac_cv_prog_CPP+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941       # Double quotes because CPP needs to be expanded
2942     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2943     do
2944       ac_preproc_ok=false
2945 for ac_c_preproc_warn_flag in '' yes
2946 do
2947   # Use a header file that comes with gcc, so configuring glibc
2948   # with a fresh cross-compiler works.
2949   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950   # <limits.h> exists even on freestanding compilers.
2951   # On the NeXT, cc -E runs the code through the compiler's parser,
2952   # not just through cpp. "Syntax error" is here to catch this case.
2953   cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h.  */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h.  */
2959 #ifdef __STDC__
2960 # include <limits.h>
2961 #else
2962 # include <assert.h>
2963 #endif
2964                      Syntax error
2965 _ACEOF
2966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } >/dev/null; then
2974   if test -s conftest.err; then
2975     ac_cpp_err=$ac_c_preproc_warn_flag
2976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2977   else
2978     ac_cpp_err=
2979   fi
2980 else
2981   ac_cpp_err=yes
2982 fi
2983 if test -z "$ac_cpp_err"; then
2984   :
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989   # Broken: fails on valid input.
2990 continue
2991 fi
2992 rm -f conftest.err conftest.$ac_ext
2993
2994   # OK, works on sane cases.  Now check whether non-existent headers
2995   # can be detected and how.
2996   cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002 #include <ac_nonexistent.h>
3003 _ACEOF
3004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3006   ac_status=$?
3007   grep -v '^ *+' conftest.er1 >conftest.err
3008   rm -f conftest.er1
3009   cat conftest.err >&5
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); } >/dev/null; then
3012   if test -s conftest.err; then
3013     ac_cpp_err=$ac_c_preproc_warn_flag
3014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3015   else
3016     ac_cpp_err=
3017   fi
3018 else
3019   ac_cpp_err=yes
3020 fi
3021 if test -z "$ac_cpp_err"; then
3022   # Broken: success on invalid input.
3023 continue
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028   # Passes both tests.
3029 ac_preproc_ok=:
3030 break
3031 fi
3032 rm -f conftest.err conftest.$ac_ext
3033
3034 done
3035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3036 rm -f conftest.err conftest.$ac_ext
3037 if $ac_preproc_ok; then
3038   break
3039 fi
3040
3041     done
3042     ac_cv_prog_CPP=$CPP
3043
3044 fi
3045   CPP=$ac_cv_prog_CPP
3046 else
3047   ac_cv_prog_CPP=$CPP
3048 fi
3049 echo "$as_me:$LINENO: result: $CPP" >&5
3050 echo "${ECHO_T}$CPP" >&6
3051 ac_preproc_ok=false
3052 for ac_c_preproc_warn_flag in '' yes
3053 do
3054   # Use a header file that comes with gcc, so configuring glibc
3055   # with a fresh cross-compiler works.
3056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3057   # <limits.h> exists even on freestanding compilers.
3058   # On the NeXT, cc -E runs the code through the compiler's parser,
3059   # not just through cpp. "Syntax error" is here to catch this case.
3060   cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066 #ifdef __STDC__
3067 # include <limits.h>
3068 #else
3069 # include <assert.h>
3070 #endif
3071                      Syntax error
3072 _ACEOF
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075   ac_status=$?
3076   grep -v '^ *+' conftest.er1 >conftest.err
3077   rm -f conftest.er1
3078   cat conftest.err >&5
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); } >/dev/null; then
3081   if test -s conftest.err; then
3082     ac_cpp_err=$ac_c_preproc_warn_flag
3083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3084   else
3085     ac_cpp_err=
3086   fi
3087 else
3088   ac_cpp_err=yes
3089 fi
3090 if test -z "$ac_cpp_err"; then
3091   :
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096   # Broken: fails on valid input.
3097 continue
3098 fi
3099 rm -f conftest.err conftest.$ac_ext
3100
3101   # OK, works on sane cases.  Now check whether non-existent headers
3102   # can be detected and how.
3103   cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h.  */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h.  */
3109 #include <ac_nonexistent.h>
3110 _ACEOF
3111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3113   ac_status=$?
3114   grep -v '^ *+' conftest.er1 >conftest.err
3115   rm -f conftest.er1
3116   cat conftest.err >&5
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); } >/dev/null; then
3119   if test -s conftest.err; then
3120     ac_cpp_err=$ac_c_preproc_warn_flag
3121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3122   else
3123     ac_cpp_err=
3124   fi
3125 else
3126   ac_cpp_err=yes
3127 fi
3128 if test -z "$ac_cpp_err"; then
3129   # Broken: success on invalid input.
3130 continue
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135   # Passes both tests.
3136 ac_preproc_ok=:
3137 break
3138 fi
3139 rm -f conftest.err conftest.$ac_ext
3140
3141 done
3142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3143 rm -f conftest.err conftest.$ac_ext
3144 if $ac_preproc_ok; then
3145   :
3146 else
3147   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3150 See \`config.log' for more details." >&2;}
3151    { (exit 1); exit 1; }; }
3152 fi
3153
3154 ac_ext=c
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159
3160
3161  if test -n "$ac_tool_prefix"; then
3162   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3164 echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_RANLIB+set}" = set; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169   if test -n "$RANLIB"; then
3170   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177   for ac_exec_ext in '' $ac_executable_extensions; do
3178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181     break 2
3182   fi
3183 done
3184 done
3185
3186 fi
3187 fi
3188 RANLIB=$ac_cv_prog_RANLIB
3189 if test -n "$RANLIB"; then
3190   echo "$as_me:$LINENO: result: $RANLIB" >&5
3191 echo "${ECHO_T}$RANLIB" >&6
3192 else
3193   echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3195 fi
3196
3197 fi
3198 if test -z "$ac_cv_prog_RANLIB"; then
3199   ac_ct_RANLIB=$RANLIB
3200   # Extract the first word of "ranlib", so it can be a program name with args.
3201 set dummy ranlib; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3205   echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207   if test -n "$ac_ct_RANLIB"; then
3208   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215   for ac_exec_ext in '' $ac_executable_extensions; do
3216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217     ac_cv_prog_ac_ct_RANLIB="ranlib"
3218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222 done
3223
3224   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3225 fi
3226 fi
3227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228 if test -n "$ac_ct_RANLIB"; then
3229   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3230 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3231 else
3232   echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3234 fi
3235
3236   RANLIB=$ac_ct_RANLIB
3237 else
3238   RANLIB="$ac_cv_prog_RANLIB"
3239 fi
3240
3241  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3242 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3243 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3244 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   cat >conftest.make <<\_ACEOF
3248 all:
3249         @echo 'ac_maketemp="$(MAKE)"'
3250 _ACEOF
3251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3252 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3253 if test -n "$ac_maketemp"; then
3254   eval ac_cv_prog_make_${ac_make}_set=yes
3255 else
3256   eval ac_cv_prog_make_${ac_make}_set=no
3257 fi
3258 rm -f conftest.make
3259 fi
3260 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3261   echo "$as_me:$LINENO: result: yes" >&5
3262 echo "${ECHO_T}yes" >&6
3263   SET_MAKE=
3264 else
3265   echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6
3267   SET_MAKE="MAKE=${MAKE-make}"
3268 fi
3269
3270  # Find a good install program.  We prefer a C program (faster),
3271 # so one script is as good as another.  But avoid the broken or
3272 # incompatible versions:
3273 # SysV /etc/install, /usr/sbin/install
3274 # SunOS /usr/etc/install
3275 # IRIX /sbin/install
3276 # AIX /bin/install
3277 # AmigaOS /C/install, which installs bootblocks on floppy discs
3278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3281 # OS/2's system install, which has a completely different semantic
3282 # ./install, which can be erroneously created by make from ./install.sh.
3283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3285 if test -z "$INSTALL"; then
3286 if test "${ac_cv_path_install+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   # Account for people who put trailing slashes in PATH elements.
3295 case $as_dir/ in
3296   ./ | .// | /cC/* | \
3297   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3298   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3299   /usr/ucb/* ) ;;
3300   *)
3301     # OSF1 and SCO ODT 3.0 have their own names for install.
3302     # Don't use installbsd from OSF since it installs stuff as root
3303     # by default.
3304     for ac_prog in ginstall scoinst install; do
3305       for ac_exec_ext in '' $ac_executable_extensions; do
3306         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3307           if test $ac_prog = install &&
3308             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309             # AIX install.  It has an incompatible calling convention.
3310             :
3311           elif test $ac_prog = install &&
3312             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313             # program-specific install script used by HP pwplus--don't use.
3314             :
3315           else
3316             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3317             break 3
3318           fi
3319         fi
3320       done
3321     done
3322     ;;
3323 esac
3324 done
3325
3326
3327 fi
3328   if test "${ac_cv_path_install+set}" = set; then
3329     INSTALL=$ac_cv_path_install
3330   else
3331     # As a last resort, use the slow shell script.  We don't cache a
3332     # path for INSTALL within a source directory, because that will
3333     # break other packages using the cache if that directory is
3334     # removed, or if the path is relative.
3335     INSTALL=$ac_install_sh
3336   fi
3337 fi
3338 echo "$as_me:$LINENO: result: $INSTALL" >&5
3339 echo "${ECHO_T}$INSTALL" >&6
3340
3341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3342 # It thinks the first close brace ends the variable substitution.
3343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3344
3345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3346
3347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3348
3349  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3350 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3351 LN_S=$as_ln_s
3352 if test "$LN_S" = "ln -s"; then
3353   echo "$as_me:$LINENO: result: yes" >&5
3354 echo "${ECHO_T}yes" >&6
3355 else
3356   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3357 echo "${ECHO_T}no, using $LN_S" >&6
3358 fi
3359
3360  # Check whether --enable-shared or --disable-shared was given.
3361 if test "${enable_shared+set}" = set; then
3362   enableval="$enable_shared"
3363   p=${PACKAGE-default}
3364 case $enableval in
3365 yes) enable_shared=yes ;;
3366 no) enable_shared=no ;;
3367 *)
3368   enable_shared=no
3369   # Look at the argument we got.  We use all the common list separators.
3370   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3371   for pkg in $enableval; do
3372     if test "X$pkg" = "X$p"; then
3373       enable_shared=yes
3374     fi
3375   done
3376   IFS="$ac_save_ifs"
3377   ;;
3378 esac
3379 else
3380   enable_shared=yes
3381 fi;
3382 # Check whether --enable-static or --disable-static was given.
3383 if test "${enable_static+set}" = set; then
3384   enableval="$enable_static"
3385   p=${PACKAGE-default}
3386 case $enableval in
3387 yes) enable_static=yes ;;
3388 no) enable_static=no ;;
3389 *)
3390   enable_static=no
3391   # Look at the argument we got.  We use all the common list separators.
3392   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3393   for pkg in $enableval; do
3394     if test "X$pkg" = "X$p"; then
3395       enable_static=yes
3396     fi
3397   done
3398   IFS="$ac_save_ifs"
3399   ;;
3400 esac
3401 else
3402   enable_static=yes
3403 fi;
3404 # Check whether --enable-fast-install or --disable-fast-install was given.
3405 if test "${enable_fast_install+set}" = set; then
3406   enableval="$enable_fast_install"
3407   p=${PACKAGE-default}
3408 case $enableval in
3409 yes) enable_fast_install=yes ;;
3410 no) enable_fast_install=no ;;
3411 *)
3412   enable_fast_install=no
3413   # Look at the argument we got.  We use all the common list separators.
3414   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3415   for pkg in $enableval; do
3416     if test "X$pkg" = "X$p"; then
3417       enable_fast_install=yes
3418     fi
3419   done
3420   IFS="$ac_save_ifs"
3421   ;;
3422 esac
3423 else
3424   enable_fast_install=yes
3425 fi;
3426 # Find the correct PATH separator.  Usually this is `:', but
3427 # DJGPP uses `;' like DOS.
3428 if test "X${PATH_SEPARATOR+set}" != Xset; then
3429   UNAME=${UNAME-`uname 2>/dev/null`}
3430   case X$UNAME in
3431     *-DOS) lt_cv_sys_path_separator=';' ;;
3432     *)     lt_cv_sys_path_separator=':' ;;
3433   esac
3434   PATH_SEPARATOR=$lt_cv_sys_path_separator
3435 fi
3436
3437
3438 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3439 if test "${with_gnu_ld+set}" = set; then
3440   withval="$with_gnu_ld"
3441   test "$withval" = no || with_gnu_ld=yes
3442 else
3443   with_gnu_ld=no
3444 fi;
3445 ac_prog=ld
3446 if test "$GCC" = yes; then
3447   # Check if gcc -print-prog-name=ld gives a path.
3448   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3449 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3450   case $host in
3451   *-*-mingw*)
3452     # gcc leaves a trailing carriage return which upsets mingw
3453     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3454   *)
3455     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3456   esac
3457   case $ac_prog in
3458     # Accept absolute paths.
3459     [\\/]* | [A-Za-z]:[\\/]*)
3460       re_direlt='/[^/][^/]*/\.\./'
3461       # Canonicalize the path of ld
3462       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3463       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3464         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3465       done
3466       test -z "$LD" && LD="$ac_prog"
3467       ;;
3468   "")
3469     # If it fails, then pretend we aren't using GCC.
3470     ac_prog=ld
3471     ;;
3472   *)
3473     # If it is relative, then search for the first ld in PATH.
3474     with_gnu_ld=unknown
3475     ;;
3476   esac
3477 elif test "$with_gnu_ld" = yes; then
3478   echo "$as_me:$LINENO: checking for GNU ld" >&5
3479 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3480 else
3481   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3482 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3483 fi
3484 if test "${lt_cv_path_LD+set}" = set; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   if test -z "$LD"; then
3488   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3489   for ac_dir in $PATH; do
3490     test -z "$ac_dir" && ac_dir=.
3491     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3492       lt_cv_path_LD="$ac_dir/$ac_prog"
3493       # Check to see if the program is GNU ld.  I'd rather use --version,
3494       # but apparently some GNU ld's only accept -v.
3495       # Break only if it was the GNU/non-GNU ld that we prefer.
3496       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3497         test "$with_gnu_ld" != no && break
3498       else
3499         test "$with_gnu_ld" != yes && break
3500       fi
3501     fi
3502   done
3503   IFS="$ac_save_ifs"
3504 else
3505   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3506 fi
3507 fi
3508
3509 LD="$lt_cv_path_LD"
3510 if test -n "$LD"; then
3511   echo "$as_me:$LINENO: result: $LD" >&5
3512 echo "${ECHO_T}$LD" >&6
3513 else
3514   echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6
3516 fi
3517 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3518 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3519    { (exit 1); exit 1; }; }
3520 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3521 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3522 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3526 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3527   lt_cv_prog_gnu_ld=yes
3528 else
3529   lt_cv_prog_gnu_ld=no
3530 fi
3531 fi
3532 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3533 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3534 with_gnu_ld=$lt_cv_prog_gnu_ld
3535
3536
3537 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3538 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3539 if test "${lt_cv_ld_reload_flag+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   lt_cv_ld_reload_flag='-r'
3543 fi
3544 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3545 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3546 reload_flag=$lt_cv_ld_reload_flag
3547 test -n "$reload_flag" && reload_flag=" $reload_flag"
3548
3549 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3550 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3551 if test "${lt_cv_path_NM+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   if test -n "$NM"; then
3555   # Let the user override the test.
3556   lt_cv_path_NM="$NM"
3557 else
3558   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3559   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3560     test -z "$ac_dir" && ac_dir=.
3561     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3562     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3563       # Check to see if the nm accepts a BSD-compat flag.
3564       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3565       #   nm: unknown option "B" ignored
3566       # Tru64's nm complains that /dev/null is an invalid object file
3567       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3568         lt_cv_path_NM="$tmp_nm -B"
3569         break
3570       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3571         lt_cv_path_NM="$tmp_nm -p"
3572         break
3573       else
3574         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3575         continue # so that we can try to find one that supports BSD flags
3576       fi
3577     fi
3578   done
3579   IFS="$ac_save_ifs"
3580   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3581 fi
3582 fi
3583
3584 NM="$lt_cv_path_NM"
3585 echo "$as_me:$LINENO: result: $NM" >&5
3586 echo "${ECHO_T}$NM" >&6
3587
3588 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3589 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3590 if test "${lt_cv_path_SED+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   # Loop through the user's path and test for sed and gsed.
3594 # Then use that list of sed's as ones to test for truncation.
3595 as_executable_p="test -f"
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601   for ac_prog in sed gsed; do
3602     for ac_exec_ext in '' $ac_executable_extensions; do
3603       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3604         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3605       fi
3606     done
3607   done
3608 done
3609
3610   # Create a temporary directory, and hook for its removal unless debugging.
3611 $debug ||
3612 {
3613   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3614   trap '{ (exit 1); exit 1; }' 1 2 13 15
3615 }
3616
3617 # Create a (secure) tmp directory for tmp files.
3618 : ${TMPDIR=/tmp}
3619 {
3620   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3621   test -n "$tmp" && test -d "$tmp"
3622 }  ||
3623 {
3624   tmp=$TMPDIR/sed$$-$RANDOM
3625   (umask 077 && mkdir $tmp)
3626 } ||
3627 {
3628    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3629    { (exit 1); exit 1; }
3630 }
3631   _max=0
3632   _count=0
3633   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3634   # along with /bin/sed that truncates output.
3635   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3636     test ! -f ${_sed} && break
3637     cat /dev/null > "$tmp/sed.in"
3638     _count=0
3639     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3640     # Check for GNU sed and select it if it is found.
3641     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3642       lt_cv_path_SED=${_sed}
3643       break
3644     fi
3645     while true; do
3646       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3647       mv "$tmp/sed.tmp" "$tmp/sed.in"
3648       cp "$tmp/sed.in" "$tmp/sed.nl"
3649       echo >>"$tmp/sed.nl"
3650       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3651       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3652       # 40000 chars as input seems more than enough
3653       test $_count -gt 10 && break
3654       _count=`expr $_count + 1`
3655       if test $_count -gt $_max; then
3656         _max=$_count
3657         lt_cv_path_SED=$_sed
3658       fi
3659     done
3660   done
3661   rm -rf "$tmp"
3662
3663 fi
3664
3665 if test "X$SED" != "X"; then
3666   lt_cv_path_SED=$SED
3667 else
3668   SED=$lt_cv_path_SED
3669 fi
3670 echo "$as_me:$LINENO: result: $SED" >&5
3671 echo "${ECHO_T}$SED" >&6
3672
3673 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3674 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3675 if test "${lt_cv_deplibs_check_method+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   lt_cv_file_magic_cmd='$MAGIC_CMD'
3679 lt_cv_file_magic_test_file=
3680 lt_cv_deplibs_check_method='unknown'
3681 # Need to set the preceding variable on all platforms that support
3682 # interlibrary dependencies.
3683 # 'none' -- dependencies not supported.
3684 # `unknown' -- same as none, but documents that we really don't know.
3685 # 'pass_all' -- all dependencies passed with no checks.
3686 # 'test_compile' -- check by making test program.
3687 # 'file_magic [[regex]]' -- check by looking for files in library path
3688 # which responds to the $file_magic_cmd with a given egrep regex.
3689 # If you have `file' or equivalent on your system and you're not sure
3690 # whether `pass_all' will *always* work, you probably want this one.
3691
3692 case $host_os in
3693 aix4* | aix5*)
3694   lt_cv_deplibs_check_method=pass_all
3695   ;;
3696
3697 beos*)
3698   lt_cv_deplibs_check_method=pass_all
3699   ;;
3700
3701 bsdi4*)
3702   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3703   lt_cv_file_magic_cmd='/usr/bin/file -L'
3704   lt_cv_file_magic_test_file=/shlib/libc.so
3705   ;;
3706
3707 cygwin* | mingw* | pw32*)
3708   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3709   lt_cv_file_magic_cmd='$OBJDUMP -f'
3710   ;;
3711
3712 darwin* | rhapsody*)
3713   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3714   lt_cv_file_magic_cmd='/usr/bin/file -L'
3715   case "$host_os" in
3716   rhapsody* | darwin1.[012])
3717     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3718     ;;
3719   *) # Darwin 1.3 on
3720     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3721     ;;
3722   esac
3723   ;;
3724
3725 freebsd*)
3726   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3727     case $host_cpu in
3728     i*86 )
3729       # Not sure whether the presence of OpenBSD here was a mistake.
3730       # Let's accept both of them until this is cleared up.
3731       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3732       lt_cv_file_magic_cmd=/usr/bin/file
3733       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3734       ;;
3735     esac
3736   else
3737     lt_cv_deplibs_check_method=pass_all
3738   fi
3739   ;;
3740
3741 gnu*)
3742   lt_cv_deplibs_check_method=pass_all
3743   ;;
3744
3745 hpux10.20*|hpux11*)
3746   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3747   lt_cv_file_magic_cmd=/usr/bin/file
3748   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3749   ;;
3750
3751 irix5* | irix6* | nonstopux*)
3752   case $host_os in
3753   irix5* | nonstopux*)
3754     # this will be overridden with pass_all, but let us keep it just in case
3755     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3756     ;;
3757   *)
3758     case $LD in
3759     *-32|*"-32 ") libmagic=32-bit;;
3760     *-n32|*"-n32 ") libmagic=N32;;
3761     *-64|*"-64 ") libmagic=64-bit;;
3762     *) libmagic=never-match;;
3763     esac
3764     # this will be overridden with pass_all, but let us keep it just in case
3765     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3766     ;;
3767   esac
3768   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3769   lt_cv_deplibs_check_method=pass_all
3770   ;;
3771
3772 # This must be Linux ELF.
3773 linux-gnu*)
3774   case $host_cpu in
3775   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3776     lt_cv_deplibs_check_method=pass_all ;;
3777   *)
3778     # glibc up to 2.1.1 does not perform some relocations on ARM
3779     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3780   esac
3781   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3782   ;;
3783
3784 netbsd*)
3785   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3786     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3787   else
3788     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3789   fi
3790   ;;
3791
3792 newos6*)
3793   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3794   lt_cv_file_magic_cmd=/usr/bin/file
3795   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3796   ;;
3797
3798 openbsd*)
3799   lt_cv_file_magic_cmd=/usr/bin/file
3800   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3801   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3802     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3803   else
3804     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3805   fi
3806   ;;
3807
3808 osf3* | osf4* | osf5*)
3809   # this will be overridden with pass_all, but let us keep it just in case
3810   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3811   lt_cv_file_magic_test_file=/shlib/libc.so
3812   lt_cv_deplibs_check_method=pass_all
3813   ;;
3814
3815 sco3.2v5*)
3816   lt_cv_deplibs_check_method=pass_all
3817   ;;
3818
3819 solaris*)
3820   lt_cv_deplibs_check_method=pass_all
3821   lt_cv_file_magic_test_file=/lib/libc.so
3822   ;;
3823
3824 sysv5uw[78]* | sysv4*uw2*)
3825   lt_cv_deplibs_check_method=pass_all
3826   ;;
3827
3828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3829   case $host_vendor in
3830   motorola)
3831     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]'
3832     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3833     ;;
3834   ncr)
3835     lt_cv_deplibs_check_method=pass_all
3836     ;;
3837   sequent)
3838     lt_cv_file_magic_cmd='/bin/file'
3839     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3840     ;;
3841   sni)
3842     lt_cv_file_magic_cmd='/bin/file'
3843     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3844     lt_cv_file_magic_test_file=/lib/libc.so
3845     ;;
3846   siemens)
3847     lt_cv_deplibs_check_method=pass_all
3848     ;;
3849   esac
3850   ;;
3851 esac
3852
3853 fi
3854 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3855 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3856 file_magic_cmd=$lt_cv_file_magic_cmd
3857 deplibs_check_method=$lt_cv_deplibs_check_method
3858
3859
3860
3861
3862
3863
3864
3865
3866 # Check for command to grab the raw symbol name followed by C symbol from nm.
3867 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3868 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3869 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872
3873 # These are sane defaults that work on at least a few old systems.
3874 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3875
3876 # Character class describing NM global symbol codes.
3877 symcode='[BCDEGRST]'
3878
3879 # Regexp to match symbols that can be accessed directly from C.
3880 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3881
3882 # Transform the above into a raw symbol and a C symbol.
3883 symxfrm='\1 \2\3 \3'
3884
3885 # Transform an extracted symbol line into a proper C declaration
3886 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3887
3888 # Transform an extracted symbol line into symbol name and symbol address
3889 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'"
3890
3891 # Define system-specific variables.
3892 case $host_os in
3893 aix*)
3894   symcode='[BCDT]'
3895   ;;
3896 cygwin* | mingw* | pw32*)
3897   symcode='[ABCDGISTW]'
3898   ;;
3899 hpux*) # Its linker distinguishes data from code symbols
3900   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3901   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'"
3902   ;;
3903 irix* | nonstopux*)
3904   symcode='[BCDEGRST]'
3905   ;;
3906 osf*)
3907   symcode='[BCDEGQRST]'
3908   ;;
3909 solaris* | sysv5*)
3910   symcode='[BDT]'
3911   ;;
3912 sysv4)
3913   symcode='[DFNSTU]'
3914   ;;
3915 esac
3916
3917 # Handle CRLF in mingw tool chain
3918 opt_cr=
3919 case $host_os in
3920 mingw*)
3921   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3922   ;;
3923 esac
3924
3925 # If we're using GNU nm, then use its standard symbol codes.
3926 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3927   symcode='[ABCDGISTW]'
3928 fi
3929
3930 # Try without a prefix undercore, then with it.
3931 for ac_symprfx in "" "_"; do
3932
3933   # Write the raw and C identifiers.
3934 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3935
3936   # Check to see that the pipe works correctly.
3937   pipe_works=no
3938   rm -f conftest*
3939   cat > conftest.$ac_ext <<EOF
3940 #ifdef __cplusplus
3941 extern "C" {
3942 #endif
3943 char nm_test_var;
3944 void nm_test_func(){}
3945 #ifdef __cplusplus
3946 }
3947 #endif
3948 int main(){nm_test_var='a';nm_test_func();return(0);}
3949 EOF
3950
3951   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952   (eval $ac_compile) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; then
3956     # Now try to grab the symbols.
3957     nlist=conftest.nm
3958     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3959   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3960   ac_status=$?
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); } && test -s "$nlist"; then
3963       # Try sorting and uniquifying the output.
3964       if sort "$nlist" | uniq > "$nlist"T; then
3965         mv -f "$nlist"T "$nlist"
3966       else
3967         rm -f "$nlist"T
3968       fi
3969
3970       # Make sure that we snagged all the symbols we need.
3971       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3972         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3973           cat <<EOF > conftest.$ac_ext
3974 #ifdef __cplusplus
3975 extern "C" {
3976 #endif
3977
3978 EOF
3979           # Now generate the symbol file.
3980           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3981
3982           cat <<EOF >> conftest.$ac_ext
3983 #if defined (__STDC__) && __STDC__
3984 # define lt_ptr void *
3985 #else
3986 # define lt_ptr char *
3987 # define const
3988 #endif
3989
3990 /* The mapping between symbol names and symbols. */
3991 const struct {
3992   const char *name;
3993   lt_ptr address;
3994 }
3995 lt_preloaded_symbols[] =
3996 {
3997 EOF
3998           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3999           cat <<\EOF >> conftest.$ac_ext
4000   {0, (lt_ptr) 0}
4001 };
4002
4003 #ifdef __cplusplus
4004 }
4005 #endif
4006 EOF
4007           # Now try linking the two files.
4008           mv conftest.$ac_objext conftstm.$ac_objext
4009           save_LIBS="$LIBS"
4010           save_CFLAGS="$CFLAGS"
4011           LIBS="conftstm.$ac_objext"
4012           CFLAGS="$CFLAGS$no_builtin_flag"
4013           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014   (eval $ac_link) 2>&5
4015   ac_status=$?
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); } && test -s conftest$ac_exeext; then
4018             pipe_works=yes
4019           fi
4020           LIBS="$save_LIBS"
4021           CFLAGS="$save_CFLAGS"
4022         else
4023           echo "cannot find nm_test_func in $nlist" >&5
4024         fi
4025       else
4026         echo "cannot find nm_test_var in $nlist" >&5
4027       fi
4028     else
4029       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4030     fi
4031   else
4032     echo "$progname: failed program was:" >&5
4033     cat conftest.$ac_ext >&5
4034   fi
4035   rm -f conftest* conftst*
4036
4037   # Do not use the global_symbol_pipe unless it works.
4038   if test "$pipe_works" = yes; then
4039     break
4040   else
4041     lt_cv_sys_global_symbol_pipe=
4042   fi
4043 done
4044
4045 fi
4046
4047 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4048 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4049   global_symbol_to_cdecl=
4050   global_symbol_to_c_name_address=
4051 else
4052   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4053   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4054 fi
4055 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4056 then
4057   echo "$as_me:$LINENO: result: failed" >&5
4058 echo "${ECHO_T}failed" >&6
4059 else
4060   echo "$as_me:$LINENO: result: ok" >&5
4061 echo "${ECHO_T}ok" >&6
4062 fi
4063
4064
4065 echo "$as_me:$LINENO: checking for egrep" >&5
4066 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4067 if test "${ac_cv_prog_egrep+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4071     then ac_cv_prog_egrep='grep -E'
4072     else ac_cv_prog_egrep='egrep'
4073     fi
4074 fi
4075 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4076 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4077  EGREP=$ac_cv_prog_egrep
4078
4079
4080 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4082 if test "${ac_cv_header_stdc+set}" = set; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085   cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h.  */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h.  */
4091 #include <stdlib.h>
4092 #include <stdarg.h>
4093 #include <string.h>
4094 #include <float.h>
4095
4096 int
4097 main ()
4098 {
4099
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106   (eval $ac_compile) 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } &&
4113          { ac_try='test -z "$ac_c_werror_flag"
4114                          || test ! -s conftest.err'
4115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116   (eval $ac_try) 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; } &&
4120          { ac_try='test -s conftest.$ac_objext'
4121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122   (eval $ac_try) 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; }; then
4126   ac_cv_header_stdc=yes
4127 else
4128   echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 ac_cv_header_stdc=no
4132 fi
4133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134
4135 if test $ac_cv_header_stdc = yes; then
4136   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4137   cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <string.h>
4144
4145 _ACEOF
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147   $EGREP "memchr" >/dev/null 2>&1; then
4148   :
4149 else
4150   ac_cv_header_stdc=no
4151 fi
4152 rm -f conftest*
4153
4154 fi
4155
4156 if test $ac_cv_header_stdc = yes; then
4157   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4158   cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 #include <stdlib.h>
4165
4166 _ACEOF
4167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4168   $EGREP "free" >/dev/null 2>&1; then
4169   :
4170 else
4171   ac_cv_header_stdc=no
4172 fi
4173 rm -f conftest*
4174
4175 fi
4176
4177 if test $ac_cv_header_stdc = yes; then
4178   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4179   if test "$cross_compiling" = yes; then
4180   :
4181 else
4182   cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #include <ctype.h>
4189 #if ((' ' & 0x0FF) == 0x020)
4190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4192 #else
4193 # define ISLOWER(c) \
4194                    (('a' <= (c) && (c) <= 'i') \
4195                      || ('j' <= (c) && (c) <= 'r') \
4196                      || ('s' <= (c) && (c) <= 'z'))
4197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4198 #endif
4199
4200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4201 int
4202 main ()
4203 {
4204   int i;
4205   for (i = 0; i < 256; i++)
4206     if (XOR (islower (i), ISLOWER (i))
4207         || toupper (i) != TOUPPER (i))
4208       exit(2);
4209   exit (0);
4210 }
4211 _ACEOF
4212 rm -f conftest$ac_exeext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4214   (eval $ac_link) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219   (eval $ac_try) 2>&5
4220   ac_status=$?
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); }; }; then
4223   :
4224 else
4225   echo "$as_me: program exited with status $ac_status" >&5
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 ( exit $ac_status )
4230 ac_cv_header_stdc=no
4231 fi
4232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4233 fi
4234 fi
4235 fi
4236 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4237 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4238 if test $ac_cv_header_stdc = yes; then
4239
4240 cat >>confdefs.h <<\_ACEOF
4241 #define STDC_HEADERS 1
4242 _ACEOF
4243
4244 fi
4245
4246 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4257                   inttypes.h stdint.h unistd.h
4258 do
4259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4260 echo "$as_me:$LINENO: checking for $ac_header" >&5
4261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h.  */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h.  */
4271 $ac_includes_default
4272
4273 #include <$ac_header>
4274 _ACEOF
4275 rm -f conftest.$ac_objext
4276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4277   (eval $ac_compile) 2>conftest.er1
4278   ac_status=$?
4279   grep -v '^ *+' conftest.er1 >conftest.err
4280   rm -f conftest.er1
4281   cat conftest.err >&5
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); } &&
4284          { ac_try='test -z "$ac_c_werror_flag"
4285                          || test ! -s conftest.err'
4286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287   (eval $ac_try) 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); }; } &&
4291          { ac_try='test -s conftest.$ac_objext'
4292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293   (eval $ac_try) 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; }; then
4297   eval "$as_ac_Header=yes"
4298 else
4299   echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 eval "$as_ac_Header=no"
4303 fi
4304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4305 fi
4306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4309   cat >>confdefs.h <<_ACEOF
4310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4311 _ACEOF
4312
4313 fi
4314
4315 done
4316
4317
4318
4319 for ac_header in dlfcn.h
4320 do
4321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4323   echo "$as_me:$LINENO: checking for $ac_header" >&5
4324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 fi
4328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4330 else
4331   # Is the header compilable?
4332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 $ac_includes_default
4341 #include <$ac_header>
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345   (eval $ac_compile) 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } &&
4352          { ac_try='test -z "$ac_c_werror_flag"
4353                          || test ! -s conftest.err'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; } &&
4359          { ac_try='test -s conftest.$ac_objext'
4360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361   (eval $ac_try) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   ac_header_compiler=yes
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 ac_header_compiler=no
4371 fi
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4374 echo "${ECHO_T}$ac_header_compiler" >&6
4375
4376 # Is the header present?
4377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385 #include <$ac_header>
4386 _ACEOF
4387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } >/dev/null; then
4395   if test -s conftest.err; then
4396     ac_cpp_err=$ac_c_preproc_warn_flag
4397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4398   else
4399     ac_cpp_err=
4400   fi
4401 else
4402   ac_cpp_err=yes
4403 fi
4404 if test -z "$ac_cpp_err"; then
4405   ac_header_preproc=yes
4406 else
4407   echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410   ac_header_preproc=no
4411 fi
4412 rm -f conftest.err conftest.$ac_ext
4413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4414 echo "${ECHO_T}$ac_header_preproc" >&6
4415
4416 # So?  What about this header?
4417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4418   yes:no: )
4419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4423     ac_header_preproc=yes
4424     ;;
4425   no:yes:* )
4426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4428     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4429 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4430     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4432     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4433 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4436     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4438     (
4439       cat <<\_ASBOX
4440 ## ------------------------------------------ ##
4441 ## Report this to the AC_PACKAGE_NAME lists.  ##
4442 ## ------------------------------------------ ##
4443 _ASBOX
4444     ) |
4445       sed "s/^/$as_me: WARNING:     /" >&2
4446     ;;
4447 esac
4448 echo "$as_me:$LINENO: checking for $ac_header" >&5
4449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4451   echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453   eval "$as_ac_Header=\$ac_header_preproc"
4454 fi
4455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4457
4458 fi
4459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4460   cat >>confdefs.h <<_ACEOF
4461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4462 _ACEOF
4463
4464 fi
4465
4466 done
4467
4468
4469
4470
4471
4472
4473 # Only perform the check for file, if the check method requires it
4474 case $deplibs_check_method in
4475 file_magic*)
4476   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4477     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4478 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4479 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4480   echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482   case $MAGIC_CMD in
4483   /*)
4484   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4485   ;;
4486   ?:/*)
4487   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4488   ;;
4489   *)
4490   ac_save_MAGIC_CMD="$MAGIC_CMD"
4491   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4492   ac_dummy="/usr/bin:$PATH"
4493   for ac_dir in $ac_dummy; do
4494     test -z "$ac_dir" && ac_dir=.
4495     if test -f $ac_dir/${ac_tool_prefix}file; then
4496       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4497       if test -n "$file_magic_test_file"; then
4498         case $deplibs_check_method in
4499         "file_magic "*)
4500           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4501           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4502           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4503             egrep "$file_magic_regex" > /dev/null; then
4504             :
4505           else
4506             cat <<EOF 1>&2
4507
4508 *** Warning: the command libtool uses to detect shared libraries,
4509 *** $file_magic_cmd, produces output that libtool cannot recognize.
4510 *** The result is that libtool may fail to recognize shared libraries
4511 *** as such.  This will affect the creation of libtool libraries that
4512 *** depend on shared libraries, but programs linked with such libtool
4513 *** libraries will work regardless of this problem.  Nevertheless, you
4514 *** may want to report the problem to your system manager and/or to
4515 *** bug-libtool@gnu.org
4516
4517 EOF
4518           fi ;;
4519         esac
4520       fi
4521       break
4522     fi
4523   done
4524   IFS="$ac_save_ifs"
4525   MAGIC_CMD="$ac_save_MAGIC_CMD"
4526   ;;
4527 esac
4528 fi
4529
4530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4531 if test -n "$MAGIC_CMD"; then
4532   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4533 echo "${ECHO_T}$MAGIC_CMD" >&6
4534 else
4535   echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6
4537 fi
4538
4539 if test -z "$lt_cv_path_MAGIC_CMD"; then
4540   if test -n "$ac_tool_prefix"; then
4541     echo "$as_me:$LINENO: checking for file" >&5
4542 echo $ECHO_N "checking for file... $ECHO_C" >&6
4543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   case $MAGIC_CMD in
4547   /*)
4548   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4549   ;;
4550   ?:/*)
4551   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4552   ;;
4553   *)
4554   ac_save_MAGIC_CMD="$MAGIC_CMD"
4555   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4556   ac_dummy="/usr/bin:$PATH"
4557   for ac_dir in $ac_dummy; do
4558     test -z "$ac_dir" && ac_dir=.
4559     if test -f $ac_dir/file; then
4560       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4561       if test -n "$file_magic_test_file"; then
4562         case $deplibs_check_method in
4563         "file_magic "*)
4564           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4565           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4566           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4567             egrep "$file_magic_regex" > /dev/null; then
4568             :
4569           else
4570             cat <<EOF 1>&2
4571
4572 *** Warning: the command libtool uses to detect shared libraries,
4573 *** $file_magic_cmd, produces output that libtool cannot recognize.
4574 *** The result is that libtool may fail to recognize shared libraries
4575 *** as such.  This will affect the creation of libtool libraries that
4576 *** depend on shared libraries, but programs linked with such libtool
4577 *** libraries will work regardless of this problem.  Nevertheless, you
4578 *** may want to report the problem to your system manager and/or to
4579 *** bug-libtool@gnu.org
4580
4581 EOF
4582           fi ;;
4583         esac
4584       fi
4585       break
4586     fi
4587   done
4588   IFS="$ac_save_ifs"
4589   MAGIC_CMD="$ac_save_MAGIC_CMD"
4590   ;;
4591 esac
4592 fi
4593
4594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4595 if test -n "$MAGIC_CMD"; then
4596   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4597 echo "${ECHO_T}$MAGIC_CMD" >&6
4598 else
4599   echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6
4601 fi
4602
4603   else
4604     MAGIC_CMD=:
4605   fi
4606 fi
4607
4608   fi
4609   ;;
4610 esac
4611
4612 if test -n "$ac_tool_prefix"; then
4613   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4615 echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617 if test "${ac_cv_prog_RANLIB+set}" = set; then
4618   echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620   if test -n "$RANLIB"; then
4621   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628   for ac_exec_ext in '' $ac_executable_extensions; do
4629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635 done
4636
4637 fi
4638 fi
4639 RANLIB=$ac_cv_prog_RANLIB
4640 if test -n "$RANLIB"; then
4641   echo "$as_me:$LINENO: result: $RANLIB" >&5
4642 echo "${ECHO_T}$RANLIB" >&6
4643 else
4644   echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4646 fi
4647
4648 fi
4649 if test -z "$ac_cv_prog_RANLIB"; then
4650   ac_ct_RANLIB=$RANLIB
4651   # Extract the first word of "ranlib", so it can be a program name with args.
4652 set dummy ranlib; ac_word=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   if test -n "$ac_ct_RANLIB"; then
4659   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668     ac_cv_prog_ac_ct_RANLIB="ranlib"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674
4675   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4676 fi
4677 fi
4678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4679 if test -n "$ac_ct_RANLIB"; then
4680   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4681 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4682 else
4683   echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6
4685 fi
4686
4687   RANLIB=$ac_ct_RANLIB
4688 else
4689   RANLIB="$ac_cv_prog_RANLIB"
4690 fi
4691
4692 if test -n "$ac_tool_prefix"; then
4693   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4694 set dummy ${ac_tool_prefix}strip; ac_word=$2
4695 echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4697 if test "${ac_cv_prog_STRIP+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   if test -n "$STRIP"; then
4701   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708   for ac_exec_ext in '' $ac_executable_extensions; do
4709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715 done
4716
4717 fi
4718 fi
4719 STRIP=$ac_cv_prog_STRIP
4720 if test -n "$STRIP"; then
4721   echo "$as_me:$LINENO: result: $STRIP" >&5
4722 echo "${ECHO_T}$STRIP" >&6
4723 else
4724   echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6
4726 fi
4727
4728 fi
4729 if test -z "$ac_cv_prog_STRIP"; then
4730   ac_ct_STRIP=$STRIP
4731   # Extract the first word of "strip", so it can be a program name with args.
4732 set dummy strip; ac_word=$2
4733 echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4735 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   if test -n "$ac_ct_STRIP"; then
4739   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746   for ac_exec_ext in '' $ac_executable_extensions; do
4747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748     ac_cv_prog_ac_ct_STRIP="strip"
4749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753 done
4754
4755   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4756 fi
4757 fi
4758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4759 if test -n "$ac_ct_STRIP"; then
4760   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4761 echo "${ECHO_T}$ac_ct_STRIP" >&6
4762 else
4763   echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6
4765 fi
4766
4767   STRIP=$ac_ct_STRIP
4768 else
4769   STRIP="$ac_cv_prog_STRIP"
4770 fi
4771
4772
4773 enable_dlopen=no
4774 enable_win32_dll=no
4775
4776 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4777 if test "${enable_libtool_lock+set}" = set; then
4778   enableval="$enable_libtool_lock"
4779
4780 fi;
4781 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4782
4783 # Some flags need to be propagated to the compiler or linker for good
4784 # libtool support.
4785 case $host in
4786 *-*-irix6*)
4787   # Find out which ABI we are using.
4788   echo '#line 4788 "configure"' > conftest.$ac_ext
4789   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790   (eval $ac_compile) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; then
4794     case `/usr/bin/file conftest.$ac_objext` in
4795     *32-bit*)
4796       LD="${LD-ld} -32"
4797       ;;
4798     *N32*)
4799       LD="${LD-ld} -n32"
4800       ;;
4801     *64-bit*)
4802       LD="${LD-ld} -64"
4803       ;;
4804     esac
4805   fi
4806   rm -rf conftest*
4807   ;;
4808
4809 *-*-linux*)
4810   # Test if the compiler is 64bit
4811   echo 'int i;' > conftest.$ac_ext
4812   lt_cv_cc_64bit_output=no
4813   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814   (eval $ac_compile) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; then
4818     case `/usr/bin/file conftest.$ac_objext` in
4819     *"ELF 64"*)
4820       lt_cv_cc_64bit_output=yes
4821       ;;
4822     esac
4823   fi
4824   rm -rf conftest*
4825   ;;
4826
4827 *-*-sco3.2v5*)
4828   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4829   SAVE_CFLAGS="$CFLAGS"
4830   CFLAGS="$CFLAGS -belf"
4831   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4832 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4833 if test "${lt_cv_cc_needs_belf+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836
4837
4838      ac_ext=c
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843
4844      cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850
4851 int
4852 main ()
4853 {
4854
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 rm -f conftest.$ac_objext conftest$ac_exeext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861   (eval $ac_link) 2>conftest.er1
4862   ac_status=$?
4863   grep -v '^ *+' conftest.er1 >conftest.err
4864   rm -f conftest.er1
4865   cat conftest.err >&5
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } &&
4868          { ac_try='test -z "$ac_c_werror_flag"
4869                          || test ! -s conftest.err'
4870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871   (eval $ac_try) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; } &&
4875          { ac_try='test -s conftest$ac_exeext'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; }; then
4881   lt_cv_cc_needs_belf=yes
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 lt_cv_cc_needs_belf=no
4887 fi
4888 rm -f conftest.err conftest.$ac_objext \
4889       conftest$ac_exeext conftest.$ac_ext
4890      ac_ext=c
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895
4896 fi
4897 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4898 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4899   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4900     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4901     CFLAGS="$SAVE_CFLAGS"
4902   fi
4903   ;;
4904
4905
4906 esac
4907
4908 # Sed substitution that helps us do robust quoting.  It backslashifies
4909 # metacharacters that are still active within double-quoted strings.
4910 Xsed='sed -e s/^X//'
4911 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4912
4913 # Same as above, but do not quote variable references.
4914 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4915
4916 # Sed substitution to delay expansion of an escaped shell variable in a
4917 # double_quote_subst'ed string.
4918 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4919
4920 # Constants:
4921 rm="rm -f"
4922
4923 # Global variables:
4924 default_ofile=libtool
4925 can_build_shared=yes
4926
4927 # All known linkers require a `.a' archive for static linking (except M$VC,
4928 # which needs '.lib').
4929 libext=a
4930 ltmain="$ac_aux_dir/ltmain.sh"
4931 ofile="$default_ofile"
4932 with_gnu_ld="$lt_cv_prog_gnu_ld"
4933 need_locks="$enable_libtool_lock"
4934
4935 old_CC="$CC"
4936 old_CFLAGS="$CFLAGS"
4937
4938 # Set sane defaults for various variables
4939 test -z "$AR" && AR=ar
4940 test -z "$AR_FLAGS" && AR_FLAGS=cru
4941 test -z "$AS" && AS=as
4942 test -z "$CC" && CC=cc
4943 test -z "$DLLTOOL" && DLLTOOL=dlltool
4944 test -z "$LD" && LD=ld
4945 test -z "$LN_S" && LN_S="ln -s"
4946 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4947 test -z "$NM" && NM=nm
4948 test -z "$OBJDUMP" && OBJDUMP=objdump
4949 test -z "$RANLIB" && RANLIB=:
4950 test -z "$STRIP" && STRIP=:
4951 test -z "$ac_objext" && ac_objext=o
4952
4953 if test x"$host" != x"$build"; then
4954   ac_tool_prefix=${host_alias}-
4955 else
4956   ac_tool_prefix=
4957 fi
4958
4959 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4960 case $host_os in
4961 linux-gnu*) ;;
4962 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4963 esac
4964
4965 case $host_os in
4966 aix3*)
4967   # AIX sometimes has problems with the GCC collect2 program.  For some
4968   # reason, if we set the COLLECT_NAMES environment variable, the problems
4969   # vanish in a puff of smoke.
4970   if test "X${COLLECT_NAMES+set}" != Xset; then
4971     COLLECT_NAMES=
4972     export COLLECT_NAMES
4973   fi
4974   ;;
4975 esac
4976
4977 # Determine commands to create old-style static archives.
4978 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4979 old_postinstall_cmds='chmod 644 $oldlib'
4980 old_postuninstall_cmds=
4981
4982 if test -n "$RANLIB"; then
4983   case $host_os in
4984   openbsd*)
4985     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4986     ;;
4987   *)
4988     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4989     ;;
4990   esac
4991   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4992 fi
4993
4994 # Allow CC to be a program name with arguments.
4995 set dummy $CC
4996 compiler="$2"
4997
4998 echo "$as_me:$LINENO: checking for objdir" >&5
4999 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5000 rm -f .libs 2>/dev/null
5001 mkdir .libs 2>/dev/null
5002 if test -d .libs; then
5003   objdir=.libs
5004 else
5005   # MS-DOS does not allow filenames that begin with a dot.
5006   objdir=_libs
5007 fi
5008 rmdir .libs 2>/dev/null
5009 echo "$as_me:$LINENO: result: $objdir" >&5
5010 echo "${ECHO_T}$objdir" >&6
5011
5012
5013
5014 # Check whether --with-pic or --without-pic was given.
5015 if test "${with_pic+set}" = set; then
5016   withval="$with_pic"
5017   pic_mode="$withval"
5018 else
5019   pic_mode=default
5020 fi;
5021 test -z "$pic_mode" && pic_mode=default
5022
5023 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5024 # in isolation, and that seeing it set (from the cache) indicates that
5025 # the associated values are set (in the cache) correctly too.
5026 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5027 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5028 if test "${lt_cv_prog_cc_pic+set}" = set; then
5029   echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031    lt_cv_prog_cc_pic=
5032   lt_cv_prog_cc_shlib=
5033   lt_cv_prog_cc_wl=
5034   lt_cv_prog_cc_static=
5035   lt_cv_prog_cc_no_builtin=
5036   lt_cv_prog_cc_can_build_shared=$can_build_shared
5037
5038   if test "$GCC" = yes; then
5039     lt_cv_prog_cc_wl='-Wl,'
5040     lt_cv_prog_cc_static='-static'
5041
5042     case $host_os in
5043     aix*)
5044       # Below there is a dirty hack to force normal static linking with -ldl
5045       # The problem is because libdl dynamically linked with both libc and
5046       # libC (AIX C++ library), which obviously doesn't included in libraries
5047       # list by gcc. This cause undefined symbols with -static flags.
5048       # This hack allows C programs to be linked with "-static -ldl", but
5049       # not sure about C++ programs.
5050       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5051       ;;
5052     amigaos*)
5053       # FIXME: we need at least 68020 code to build shared libraries, but
5054       # adding the `-m68020' flag to GCC prevents building anything better,
5055       # like `-m68040'.
5056       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5057       ;;
5058     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5059       # PIC is the default for these OSes.
5060       ;;
5061     darwin* | rhapsody*)
5062       # PIC is the default on this platform
5063       # Common symbols not allowed in MH_DYLIB files
5064       lt_cv_prog_cc_pic='-fno-common'
5065       ;;
5066     cygwin* | mingw* | pw32* | os2*)
5067       # This hack is so that the source file can tell whether it is being
5068       # built for inclusion in a dll (and should export symbols for example).
5069       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5070       ;;
5071     sysv4*MP*)
5072       if test -d /usr/nec; then
5073          lt_cv_prog_cc_pic=-Kconform_pic
5074       fi
5075       ;;
5076     *)
5077       lt_cv_prog_cc_pic='-fPIC'
5078       ;;
5079     esac
5080   else
5081     # PORTME Check for PIC flags for the system compiler.
5082     case $host_os in
5083     aix3* | aix4* | aix5*)
5084       lt_cv_prog_cc_wl='-Wl,'
5085       # All AIX code is PIC.
5086       if test "$host_cpu" = ia64; then
5087         # AIX 5 now supports IA64 processor
5088         lt_cv_prog_cc_static='-Bstatic'
5089       else
5090         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5091       fi
5092       ;;
5093
5094     hpux9* | hpux10* | hpux11*)
5095       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5096       lt_cv_prog_cc_wl='-Wl,'
5097       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5098       lt_cv_prog_cc_pic='+Z'
5099       ;;
5100
5101     irix5* | irix6* | nonstopux*)
5102       lt_cv_prog_cc_wl='-Wl,'
5103       lt_cv_prog_cc_static='-non_shared'
5104       # PIC (with -KPIC) is the default.
5105       ;;
5106
5107     cygwin* | mingw* | pw32* | os2*)
5108       # This hack is so that the source file can tell whether it is being
5109       # built for inclusion in a dll (and should export symbols for example).
5110       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5111       ;;
5112
5113     newsos6)
5114       lt_cv_prog_cc_pic='-KPIC'
5115       lt_cv_prog_cc_static='-Bstatic'
5116       ;;
5117
5118     osf3* | osf4* | osf5*)
5119       # All OSF/1 code is PIC.
5120       lt_cv_prog_cc_wl='-Wl,'
5121       lt_cv_prog_cc_static='-non_shared'
5122       ;;
5123
5124     sco3.2v5*)
5125       lt_cv_prog_cc_pic='-Kpic'
5126       lt_cv_prog_cc_static='-dn'
5127       lt_cv_prog_cc_shlib='-belf'
5128       ;;
5129
5130     solaris*)
5131       lt_cv_prog_cc_pic='-KPIC'
5132       lt_cv_prog_cc_static='-Bstatic'
5133       lt_cv_prog_cc_wl='-Wl,'
5134       ;;
5135
5136     sunos4*)
5137       lt_cv_prog_cc_pic='-PIC'
5138       lt_cv_prog_cc_static='-Bstatic'
5139       lt_cv_prog_cc_wl='-Qoption ld '
5140       ;;
5141
5142     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5143       lt_cv_prog_cc_pic='-KPIC'
5144       lt_cv_prog_cc_static='-Bstatic'
5145       lt_cv_prog_cc_wl='-Wl,'
5146       ;;
5147
5148     uts4*)
5149       lt_cv_prog_cc_pic='-pic'
5150       lt_cv_prog_cc_static='-Bstatic'
5151       ;;
5152
5153     sysv4*MP*)
5154       if test -d /usr/nec ;then
5155         lt_cv_prog_cc_pic='-Kconform_pic'
5156         lt_cv_prog_cc_static='-Bstatic'
5157       fi
5158       ;;
5159
5160     *)
5161       lt_cv_prog_cc_can_build_shared=no
5162       ;;
5163     esac
5164   fi
5165
5166 fi
5167
5168 if test -z "$lt_cv_prog_cc_pic"; then
5169   echo "$as_me:$LINENO: result: none" >&5
5170 echo "${ECHO_T}none" >&6
5171 else
5172   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5173 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5174
5175   # Check to make sure the pic_flag actually works.
5176   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5177 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5178   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5179   echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181       save_CFLAGS="$CFLAGS"
5182     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5183     cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h.  */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h.  */
5189
5190 int
5191 main ()
5192 {
5193
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200   (eval $ac_compile) 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } &&
5207          { ac_try='test -z "$ac_c_werror_flag"
5208                          || test ! -s conftest.err'
5209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210   (eval $ac_try) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }; } &&
5214          { ac_try='test -s conftest.$ac_objext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220         case $host_os in
5221       hpux9* | hpux10* | hpux11*)
5222         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5223         # they create non-PIC objects.  So, if there were any warnings, we
5224         # assume that PIC is not supported.
5225         if test -s conftest.err; then
5226           lt_cv_prog_cc_pic_works=no
5227         else
5228           lt_cv_prog_cc_pic_works=yes
5229         fi
5230         ;;
5231       *)
5232         lt_cv_prog_cc_pic_works=yes
5233         ;;
5234       esac
5235
5236 else
5237   echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240       lt_cv_prog_cc_pic_works=no
5241
5242 fi
5243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5244     CFLAGS="$save_CFLAGS"
5245
5246 fi
5247
5248
5249   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5250     lt_cv_prog_cc_pic=
5251     lt_cv_prog_cc_can_build_shared=no
5252   else
5253     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5254   fi
5255
5256   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5257 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5258 fi
5259
5260 # Check for any special shared library compilation flags.
5261 if test -n "$lt_cv_prog_cc_shlib"; then
5262   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5263 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5264   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5265   else
5266    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5267 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5268     lt_cv_prog_cc_can_build_shared=no
5269   fi
5270 fi
5271
5272 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5273 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5274 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277     lt_cv_prog_cc_static_works=no
5278   save_LDFLAGS="$LDFLAGS"
5279   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5280   cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286
5287 int
5288 main ()
5289 {
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 rm -f conftest.$ac_objext conftest$ac_exeext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297   (eval $ac_link) 2>conftest.er1
5298   ac_status=$?
5299   grep -v '^ *+' conftest.er1 >conftest.err
5300   rm -f conftest.er1
5301   cat conftest.err >&5
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } &&
5304          { ac_try='test -z "$ac_c_werror_flag"
5305                          || test ! -s conftest.err'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; } &&
5311          { ac_try='test -s conftest$ac_exeext'
5312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313   (eval $ac_try) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; }; then
5317   lt_cv_prog_cc_static_works=yes
5318 else
5319   echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322 fi
5323 rm -f conftest.err conftest.$ac_objext \
5324       conftest$ac_exeext conftest.$ac_ext
5325   LDFLAGS="$save_LDFLAGS"
5326
5327 fi
5328
5329
5330 # Belt *and* braces to stop my trousers falling down:
5331 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5332 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5333 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5334
5335 pic_flag="$lt_cv_prog_cc_pic"
5336 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5337 wl="$lt_cv_prog_cc_wl"
5338 link_static_flag="$lt_cv_prog_cc_static"
5339 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5340 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5341
5342
5343 # Check to see if options -o and -c are simultaneously supported by compiler
5344 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5345 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5346 if test "${lt_cv_compiler_c_o+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349
5350 $rm -r conftest 2>/dev/null
5351 mkdir conftest
5352 cd conftest
5353 echo "int some_variable = 0;" > conftest.$ac_ext
5354 mkdir out
5355 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5356 # that will create temporary files in the current directory regardless of
5357 # the output directory.  Thus, making CWD read-only will cause this test
5358 # to fail, enabling locking or at least warning the user not to do parallel
5359 # builds.
5360 chmod -w .
5361 save_CFLAGS="$CFLAGS"
5362 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5363 compiler_c_o=no
5364 if { (eval echo configure:5364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5365   # The compiler can only warn and ignore the option if not recognized
5366   # So say no if there are warnings
5367   if test -s out/conftest.err; then
5368     lt_cv_compiler_c_o=no
5369   else
5370     lt_cv_compiler_c_o=yes
5371   fi
5372 else
5373   # Append any errors to the config.log.
5374   cat out/conftest.err 1>&5
5375   lt_cv_compiler_c_o=no
5376 fi
5377 CFLAGS="$save_CFLAGS"
5378 chmod u+w .
5379 $rm conftest* out/*
5380 rmdir out
5381 cd ..
5382 rmdir conftest
5383 $rm -r conftest 2>/dev/null
5384
5385 fi
5386
5387 compiler_c_o=$lt_cv_compiler_c_o
5388 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5389 echo "${ECHO_T}$compiler_c_o" >&6
5390
5391 if test x"$compiler_c_o" = x"yes"; then
5392   # Check to see if we can write to a .lo
5393   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5394 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5395   if test "${lt_cv_compiler_o_lo+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398
5399   lt_cv_compiler_o_lo=no
5400   save_CFLAGS="$CFLAGS"
5401   CFLAGS="$CFLAGS -c -o conftest.lo"
5402   save_objext="$ac_objext"
5403   ac_objext=lo
5404   cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h.  */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h.  */
5410
5411 int
5412 main ()
5413 {
5414 int some_variable = 0;
5415   ;
5416   return 0;
5417 }
5418 _ACEOF
5419 rm -f conftest.$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421   (eval $ac_compile) 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } &&
5428          { ac_try='test -z "$ac_c_werror_flag"
5429                          || test ! -s conftest.err'
5430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431   (eval $ac_try) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; } &&
5435          { ac_try='test -s conftest.$ac_objext'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; }; then
5441       # The compiler can only warn and ignore the option if not recognized
5442     # So say no if there are warnings
5443     if test -s conftest.err; then
5444       lt_cv_compiler_o_lo=no
5445     else
5446       lt_cv_compiler_o_lo=yes
5447     fi
5448
5449 else
5450   echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 fi
5454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455   ac_objext="$save_objext"
5456   CFLAGS="$save_CFLAGS"
5457
5458 fi
5459
5460   compiler_o_lo=$lt_cv_compiler_o_lo
5461   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5462 echo "${ECHO_T}$compiler_o_lo" >&6
5463 else
5464   compiler_o_lo=no
5465 fi
5466
5467 # Check to see if we can do hard links to lock some files if needed
5468 hard_links="nottested"
5469 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5470   # do not overwrite the value of need_locks provided by the user
5471   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5472 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5473   hard_links=yes
5474   $rm conftest*
5475   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5476   touch conftest.a
5477   ln conftest.a conftest.b 2>&5 || hard_links=no
5478   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5479   echo "$as_me:$LINENO: result: $hard_links" >&5
5480 echo "${ECHO_T}$hard_links" >&6
5481   if test "$hard_links" = no; then
5482     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5483 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5484     need_locks=warn
5485   fi
5486 else
5487   need_locks=no
5488 fi
5489
5490 if test "$GCC" = yes; then
5491   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5492   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5493 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5494   echo "int some_variable = 0;" > conftest.$ac_ext
5495   save_CFLAGS="$CFLAGS"
5496   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5497   compiler_rtti_exceptions=no
5498   cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h.  */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h.  */
5504
5505 int
5506 main ()
5507 {
5508 int some_variable = 0;
5509   ;
5510   return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515   (eval $ac_compile) 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } &&
5522          { ac_try='test -z "$ac_c_werror_flag"
5523                          || test ! -s conftest.err'
5524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525   (eval $ac_try) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; } &&
5529          { ac_try='test -s conftest.$ac_objext'
5530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531   (eval $ac_try) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }; }; then
5535       # The compiler can only warn and ignore the option if not recognized
5536     # So say no if there are warnings
5537     if test -s conftest.err; then
5538       compiler_rtti_exceptions=no
5539     else
5540       compiler_rtti_exceptions=yes
5541     fi
5542
5543 else
5544   echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547 fi
5548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5549   CFLAGS="$save_CFLAGS"
5550   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5551 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5552
5553   if test "$compiler_rtti_exceptions" = "yes"; then
5554     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5555   else
5556     no_builtin_flag=' -fno-builtin'
5557   fi
5558 fi
5559
5560 # See if the linker supports building shared libraries.
5561 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5562 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5563
5564 allow_undefined_flag=
5565 no_undefined_flag=
5566 need_lib_prefix=unknown
5567 need_version=unknown
5568 # when you set need_version to no, make sure it does not cause -set_version
5569 # flags to be left without arguments
5570 archive_cmds=
5571 archive_expsym_cmds=
5572 old_archive_from_new_cmds=
5573 old_archive_from_expsyms_cmds=
5574 export_dynamic_flag_spec=
5575 whole_archive_flag_spec=
5576 thread_safe_flag_spec=
5577 hardcode_into_libs=no
5578 hardcode_libdir_flag_spec=
5579 hardcode_libdir_separator=
5580 hardcode_direct=no
5581 hardcode_minus_L=no
5582 hardcode_shlibpath_var=unsupported
5583 runpath_var=
5584 link_all_deplibs=unknown
5585 always_export_symbols=no
5586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5587 # include_expsyms should be a list of space-separated symbols to be *always*
5588 # included in the symbol list
5589 include_expsyms=
5590 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5592 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5593 # as well as any symbol that contains `d'.
5594 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5596 # platforms (ab)use it in PIC code, but their linkers get confused if
5597 # the symbol is explicitly referenced.  Since portable code cannot
5598 # rely on this symbol name, it's probably fine to never include it in
5599 # preloaded symbol tables.
5600 extract_expsyms_cmds=
5601
5602 case $host_os in
5603 cygwin* | mingw* | pw32*)
5604   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5605   # When not using gcc, we currently assume that we are using
5606   # Microsoft Visual C++.
5607   if test "$GCC" != yes; then
5608     with_gnu_ld=no
5609   fi
5610   ;;
5611 openbsd*)
5612   with_gnu_ld=no
5613   ;;
5614 esac
5615
5616 ld_shlibs=yes
5617 if test "$with_gnu_ld" = yes; then
5618   # If archive_cmds runs LD, not CC, wlarc should be empty
5619   wlarc='${wl}'
5620
5621   # See if GNU ld supports shared libraries.
5622   case $host_os in
5623   aix3* | aix4* | aix5*)
5624     # On AIX, the GNU linker is very broken
5625     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5626     ld_shlibs=no
5627     cat <<EOF 1>&2
5628
5629 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5630 *** to be unable to reliably create shared libraries on AIX.
5631 *** Therefore, libtool is disabling shared libraries support.  If you
5632 *** really care for shared libraries, you may want to modify your PATH
5633 *** so that a non-GNU linker is found, and then restart.
5634
5635 EOF
5636     ;;
5637
5638   amigaos*)
5639     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)'
5640     hardcode_libdir_flag_spec='-L$libdir'
5641     hardcode_minus_L=yes
5642
5643     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5644     # that the semantics of dynamic libraries on AmigaOS, at least up
5645     # to version 4, is to share data among multiple programs linked
5646     # with the same dynamic library.  Since this doesn't match the
5647     # behavior of shared libraries on other platforms, we can use
5648     # them.
5649     ld_shlibs=no
5650     ;;
5651
5652   beos*)
5653     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5654       allow_undefined_flag=unsupported
5655       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5656       # support --undefined.  This deserves some investigation.  FIXME
5657       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5658     else
5659       ld_shlibs=no
5660     fi
5661     ;;
5662
5663   cygwin* | mingw* | pw32*)
5664     # hardcode_libdir_flag_spec is actually meaningless, as there is
5665     # no search path for DLLs.
5666     hardcode_libdir_flag_spec='-L$libdir'
5667     allow_undefined_flag=unsupported
5668     always_export_symbols=yes
5669
5670     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5671       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5672       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5673       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5674       else $CC -o impgen impgen.c ; fi)~
5675       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5676
5677     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5678
5679     # cygwin and mingw dlls have different entry points and sets of symbols
5680     # to exclude.
5681     # FIXME: what about values for MSVC?
5682     dll_entry=__cygwin_dll_entry@12
5683     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5684     case $host_os in
5685     mingw*)
5686       # mingw values
5687       dll_entry=_DllMainCRTStartup@12
5688       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5689       ;;
5690     esac
5691
5692     # mingw and cygwin differ, and it's simplest to just exclude the union
5693     # of the two symbol sets.
5694     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5695
5696     # recent cygwin and mingw systems supply a stub DllMain which the user
5697     # can override, but on older systems we have to supply one (in ltdll.c)
5698     if test "x$lt_cv_need_dllmain" = "xyes"; then
5699       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5700       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~
5701         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5702     else
5703       ltdll_obj=
5704       ltdll_cmds=
5705     fi
5706
5707     # Extract the symbol export list from an `--export-all' def file,
5708     # then regenerate the def file from the symbol export list, so that
5709     # the compiled dll only exports the symbol export list.
5710     # Be careful not to strip the DATA tag left be newer dlltools.
5711     export_symbols_cmds="$ltdll_cmds"'
5712       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5713       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5714
5715     # If the export-symbols file already is a .def file (1st line
5716     # is EXPORTS), use it as is.
5717     # If DATA tags from a recent dlltool are present, honour them!
5718     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5719         cp $export_symbols $output_objdir/$soname-def;
5720       else
5721         echo EXPORTS > $output_objdir/$soname-def;
5722         _lt_hint=1;
5723         cat $export_symbols | while read symbol; do
5724          set dummy \$symbol;
5725          case \$# in
5726            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5727            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5728            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5729          esac;
5730          _lt_hint=`expr 1 + \$_lt_hint`;
5731         done;
5732       fi~
5733       '"$ltdll_cmds"'
5734       $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~
5735       $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~
5736       $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~
5737       $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~
5738       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5739     ;;
5740
5741   netbsd*)
5742     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5743       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5744       wlarc=
5745     else
5746       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5747       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5748     fi
5749     ;;
5750
5751   solaris* | sysv5*)
5752     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5753       ld_shlibs=no
5754       cat <<EOF 1>&2
5755
5756 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5757 *** create shared libraries on Solaris systems.  Therefore, libtool
5758 *** is disabling shared libraries support.  We urge you to upgrade GNU
5759 *** binutils to release 2.9.1 or newer.  Another option is to modify
5760 *** your PATH or compiler configuration so that the native linker is
5761 *** used, and then restart.
5762
5763 EOF
5764     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5765       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5766       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5767     else
5768       ld_shlibs=no
5769     fi
5770     ;;
5771
5772   sunos4*)
5773     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5774     wlarc=
5775     hardcode_direct=yes
5776     hardcode_shlibpath_var=no
5777     ;;
5778
5779   linux*)
5780     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5781       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5782       supports_anon_versioning=no
5783       case `$LD -v 2>/dev/null` in
5784         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5785         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5786         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5787         *\ 2.11.*) ;; # other 2.11 versions
5788         *) supports_anon_versioning=yes ;;
5789       esac
5790       if test $supports_anon_versioning = yes; then
5791         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5793 $echo "local: *; };" >> $output_objdir/$libname.ver~
5794         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5795       else
5796         $archive_expsym_cmds="$archive_cmds"
5797       fi
5798     else
5799       ld_shlibs=no
5800     fi
5801     ;;
5802
5803   *)
5804     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5805       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5806       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5807     else
5808       ld_shlibs=no
5809     fi
5810     ;;
5811   esac
5812
5813   if test "$ld_shlibs" = yes; then
5814     runpath_var=LD_RUN_PATH
5815     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5816     export_dynamic_flag_spec='${wl}--export-dynamic'
5817     case $host_os in
5818     cygwin* | mingw* | pw32*)
5819       # dlltool doesn't understand --whole-archive et. al.
5820       whole_archive_flag_spec=
5821       ;;
5822     *)
5823       # ancient GNU ld didn't support --whole-archive et. al.
5824       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5825         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5826       else
5827         whole_archive_flag_spec=
5828       fi
5829       ;;
5830     esac
5831   fi
5832 else
5833   # PORTME fill in a description of your system's linker (not GNU ld)
5834   case $host_os in
5835   aix3*)
5836     allow_undefined_flag=unsupported
5837     always_export_symbols=yes
5838     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'
5839     # Note: this linker hardcodes the directories in LIBPATH if there
5840     # are no directories specified by -L.
5841     hardcode_minus_L=yes
5842     if test "$GCC" = yes && test -z "$link_static_flag"; then
5843       # Neither direct hardcoding nor static linking is supported with a
5844       # broken collect2.
5845       hardcode_direct=unsupported
5846     fi
5847     ;;
5848
5849   aix4* | aix5*)
5850     if test "$host_cpu" = ia64; then
5851       # On IA64, the linker does run time linking by default, so we don't
5852       # have to do anything special.
5853       aix_use_runtimelinking=no
5854       exp_sym_flag='-Bexport'
5855       no_entry_flag=""
5856     else
5857       aix_use_runtimelinking=no
5858
5859       # Test if we are trying to use run time linking or normal
5860       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5861       # need to do runtime linking.
5862       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5863         for ld_flag in $LDFLAGS; do
5864           case $ld_flag in
5865           *-brtl*)
5866             aix_use_runtimelinking=yes
5867             break
5868           ;;
5869           esac
5870         done
5871       esac
5872
5873       exp_sym_flag='-bexport'
5874       no_entry_flag='-bnoentry'
5875     fi
5876
5877     # When large executables or shared objects are built, AIX ld can
5878     # have problems creating the table of contents.  If linking a library
5879     # or program results in "error TOC overflow" add -mminimal-toc to
5880     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5881     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5882
5883     hardcode_direct=yes
5884     archive_cmds=''
5885     hardcode_libdir_separator=':'
5886     if test "$GCC" = yes; then
5887       case $host_os in aix4.[012]|aix4.[012].*)
5888         collect2name=`${CC} -print-prog-name=collect2`
5889         if test -f "$collect2name" && \
5890           strings "$collect2name" | grep resolve_lib_name >/dev/null
5891         then
5892           # We have reworked collect2
5893           hardcode_direct=yes
5894         else
5895           # We have old collect2
5896           hardcode_direct=unsupported
5897           # It fails to find uninstalled libraries when the uninstalled
5898           # path is not listed in the libpath.  Setting hardcode_minus_L
5899           # to unsupported forces relinking
5900           hardcode_minus_L=yes
5901           hardcode_libdir_flag_spec='-L$libdir'
5902           hardcode_libdir_separator=
5903         fi
5904       esac
5905
5906       shared_flag='-shared'
5907     else
5908       # not using gcc
5909       if test "$host_cpu" = ia64; then
5910         shared_flag='${wl}-G'
5911       else
5912         if test "$aix_use_runtimelinking" = yes; then
5913           shared_flag='${wl}-G'
5914         else
5915           shared_flag='${wl}-bM:SRE'
5916         fi
5917       fi
5918     fi
5919
5920     # It seems that -bexpall can do strange things, so it is better to
5921     # generate a list of symbols to export.
5922     always_export_symbols=yes
5923     if test "$aix_use_runtimelinking" = yes; then
5924       # Warning - without using the other runtime loading flags (-brtl),
5925       # -berok will link without error, but may produce a broken library.
5926       allow_undefined_flag='-berok'
5927       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5928       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"
5929     else
5930       if test "$host_cpu" = ia64; then
5931         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5932         allow_undefined_flag="-z nodefs"
5933         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"
5934       else
5935         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5936         # Warning - without using the other run time loading flags,
5937         # -berok will link without error, but may produce a broken library.
5938         allow_undefined_flag='${wl}-berok'
5939         # This is a bit strange, but is similar to how AIX traditionally builds
5940         # it's shared libraries.
5941         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'
5942       fi
5943     fi
5944     ;;
5945
5946   amigaos*)
5947     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)'
5948     hardcode_libdir_flag_spec='-L$libdir'
5949     hardcode_minus_L=yes
5950     # see comment about different semantics on the GNU ld section
5951     ld_shlibs=no
5952     ;;
5953
5954   cygwin* | mingw* | pw32*)
5955     # When not using gcc, we currently assume that we are using
5956     # Microsoft Visual C++.
5957     # hardcode_libdir_flag_spec is actually meaningless, as there is
5958     # no search path for DLLs.
5959     hardcode_libdir_flag_spec=' '
5960     allow_undefined_flag=unsupported
5961     # Tell ltmain to make .lib files, not .a files.
5962     libext=lib
5963     # FIXME: Setting linknames here is a bad hack.
5964     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5965     # The linker will automatically build a .lib file if we build a DLL.
5966     old_archive_from_new_cmds='true'
5967     # FIXME: Should let the user specify the lib program.
5968     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5969     fix_srcfile_path='`cygpath -w "$srcfile"`'
5970     ;;
5971
5972   darwin* | rhapsody*)
5973     case "$host_os" in
5974     rhapsody* | darwin1.[012])
5975       allow_undefined_flag='-undefined suppress'
5976       ;;
5977     *) # Darwin 1.3 on
5978       allow_undefined_flag='-flat_namespace -undefined suppress'
5979       ;;
5980     esac
5981     # FIXME: Relying on posixy $() will cause problems for
5982     #        cross-compilation, but unfortunately the echo tests do not
5983     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5984     #        `"' quotes if we put them in here... so don't!
5985     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)'
5986     # We need to add '_' to the symbols in $export_symbols first
5987     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5988     hardcode_direct=yes
5989     hardcode_shlibpath_var=no
5990     whole_archive_flag_spec='-all_load $convenience'
5991     ;;
5992
5993   freebsd1*)
5994     ld_shlibs=no
5995     ;;
5996
5997   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5998   # support.  Future versions do this automatically, but an explicit c++rt0.o
5999   # does not break anything, and helps significantly (at the cost of a little
6000   # extra space).
6001   freebsd2.2*)
6002     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6003     hardcode_libdir_flag_spec='-R$libdir'
6004     hardcode_direct=yes
6005     hardcode_shlibpath_var=no
6006     ;;
6007
6008   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6009   freebsd2*)
6010     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6011     hardcode_direct=yes
6012     hardcode_minus_L=yes
6013     hardcode_shlibpath_var=no
6014     ;;
6015
6016   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6017   freebsd*)
6018     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6019     hardcode_libdir_flag_spec='-R$libdir'
6020     hardcode_direct=yes
6021     hardcode_shlibpath_var=no
6022     ;;
6023
6024   hpux9* | hpux10* | hpux11*)
6025     case $host_os in
6026     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' ;;
6027     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6028     esac
6029     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6030     hardcode_libdir_separator=:
6031     hardcode_direct=yes
6032     hardcode_minus_L=yes # Not in the search PATH, but as the default
6033                          # location of the library.
6034     export_dynamic_flag_spec='${wl}-E'
6035     ;;
6036
6037   irix5* | irix6* | nonstopux*)
6038     if test "$GCC" = yes; then
6039       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'
6040       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6041     else
6042       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'
6043       hardcode_libdir_flag_spec='-rpath $libdir'
6044     fi
6045     hardcode_libdir_separator=:
6046     link_all_deplibs=yes
6047     ;;
6048
6049   netbsd*)
6050     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6051       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6052     else
6053       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6054     fi
6055     hardcode_libdir_flag_spec='-R$libdir'
6056     hardcode_direct=yes
6057     hardcode_shlibpath_var=no
6058     ;;
6059
6060   newsos6)
6061     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6062     hardcode_direct=yes
6063     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6064     hardcode_libdir_separator=:
6065     hardcode_shlibpath_var=no
6066     ;;
6067
6068   openbsd*)
6069     hardcode_direct=yes
6070     hardcode_shlibpath_var=no
6071     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6072       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6073       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6074       export_dynamic_flag_spec='${wl}-E'
6075     else
6076       case "$host_os" in
6077       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6078         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6079         hardcode_libdir_flag_spec='-R$libdir'
6080         ;;
6081       *)
6082         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6083         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6084         ;;
6085       esac
6086     fi
6087     ;;
6088
6089   os2*)
6090     hardcode_libdir_flag_spec='-L$libdir'
6091     hardcode_minus_L=yes
6092     allow_undefined_flag=unsupported
6093     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'
6094     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6095     ;;
6096
6097   osf3*)
6098     if test "$GCC" = yes; then
6099       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6100       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'
6101     else
6102       allow_undefined_flag=' -expect_unresolved \*'
6103       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'
6104     fi
6105     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6106     hardcode_libdir_separator=:
6107     ;;
6108
6109   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6110     if test "$GCC" = yes; then
6111       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6112       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'
6113       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6114     else
6115       allow_undefined_flag=' -expect_unresolved \*'
6116       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'
6117       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6118       $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'
6119
6120       #Both c and cxx compiler support -rpath directly
6121       hardcode_libdir_flag_spec='-rpath $libdir'
6122     fi
6123     hardcode_libdir_separator=:
6124     ;;
6125
6126   sco3.2v5*)
6127     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6128     hardcode_shlibpath_var=no
6129     runpath_var=LD_RUN_PATH
6130     hardcode_runpath_var=yes
6131     export_dynamic_flag_spec='${wl}-Bexport'
6132     ;;
6133
6134   solaris*)
6135     # gcc --version < 3.0 without binutils cannot create self contained
6136     # shared libraries reliably, requiring libgcc.a to resolve some of
6137     # the object symbols generated in some cases.  Libraries that use
6138     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6139     # a copy of libgcc.a into every shared library to guarantee resolving
6140     # such symbols causes other problems:  According to Tim Van Holder
6141     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6142     # (to the application) exception stack for one thing.
6143     no_undefined_flag=' -z defs'
6144     if test "$GCC" = yes; then
6145       case `$CC --version 2>/dev/null` in
6146       [12].*)
6147         cat <<EOF 1>&2
6148
6149 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6150 *** create self contained shared libraries on Solaris systems, without
6151 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6152 *** -no-undefined support, which will at least allow you to build shared
6153 *** libraries.  However, you may find that when you link such libraries
6154 *** into an application without using GCC, you have to manually add
6155 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6156 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6157 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6158
6159 EOF
6160         no_undefined_flag=
6161         ;;
6162       esac
6163     fi
6164     # $CC -shared without GNU ld will not create a library from C++
6165     # object files and a static libstdc++, better avoid it by now
6166     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6167     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6168                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6169     hardcode_libdir_flag_spec='-R$libdir'
6170     hardcode_shlibpath_var=no
6171     case $host_os in
6172     solaris2.[0-5] | solaris2.[0-5].*) ;;
6173     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6174       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6175     esac
6176     link_all_deplibs=yes
6177     ;;
6178
6179   sunos4*)
6180     if test "x$host_vendor" = xsequent; then
6181       # Use $CC to link under sequent, because it throws in some extra .o
6182       # files that make .init and .fini sections work.
6183       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6184     else
6185       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6186     fi
6187     hardcode_libdir_flag_spec='-L$libdir'
6188     hardcode_direct=yes
6189     hardcode_minus_L=yes
6190     hardcode_shlibpath_var=no
6191     ;;
6192
6193   sysv4)
6194     case $host_vendor in
6195       sni)
6196         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6197         hardcode_direct=yes # is this really true???
6198         ;;
6199       siemens)
6200         ## LD is ld it makes a PLAMLIB
6201         ## CC just makes a GrossModule.
6202         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6203         reload_cmds='$CC -r -o $output$reload_objs'
6204         hardcode_direct=no
6205         ;;
6206       motorola)
6207         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6208         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6209         ;;
6210     esac
6211     runpath_var='LD_RUN_PATH'
6212     hardcode_shlibpath_var=no
6213     ;;
6214
6215   sysv4.3*)
6216     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6217     hardcode_shlibpath_var=no
6218     export_dynamic_flag_spec='-Bexport'
6219     ;;
6220
6221   sysv5*)
6222     no_undefined_flag=' -z text'
6223     # $CC -shared without GNU ld will not create a library from C++
6224     # object files and a static libstdc++, better avoid it by now
6225     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6226     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6227                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6228     hardcode_libdir_flag_spec=
6229     hardcode_shlibpath_var=no
6230     runpath_var='LD_RUN_PATH'
6231     ;;
6232
6233   uts4*)
6234     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6235     hardcode_libdir_flag_spec='-L$libdir'
6236     hardcode_shlibpath_var=no
6237     ;;
6238
6239   dgux*)
6240     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6241     hardcode_libdir_flag_spec='-L$libdir'
6242     hardcode_shlibpath_var=no
6243     ;;
6244
6245   sysv4*MP*)
6246     if test -d /usr/nec; then
6247       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6248       hardcode_shlibpath_var=no
6249       runpath_var=LD_RUN_PATH
6250       hardcode_runpath_var=yes
6251       ld_shlibs=yes
6252     fi
6253     ;;
6254
6255   sysv4.2uw2*)
6256     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6257     hardcode_direct=yes
6258     hardcode_minus_L=no
6259     hardcode_shlibpath_var=no
6260     hardcode_runpath_var=yes
6261     runpath_var=LD_RUN_PATH
6262     ;;
6263
6264   sysv5uw7* | unixware7*)
6265     no_undefined_flag='${wl}-z ${wl}text'
6266     if test "$GCC" = yes; then
6267       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6268     else
6269       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6270     fi
6271     runpath_var='LD_RUN_PATH'
6272     hardcode_shlibpath_var=no
6273     ;;
6274
6275   *)
6276     ld_shlibs=no
6277     ;;
6278   esac
6279 fi
6280 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6281 echo "${ECHO_T}$ld_shlibs" >&6
6282 test "$ld_shlibs" = no && can_build_shared=no
6283
6284 # Check hardcoding attributes.
6285 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6286 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6287 hardcode_action=
6288 if test -n "$hardcode_libdir_flag_spec" || \
6289    test -n "$runpath_var"; then
6290
6291   # We can hardcode non-existant directories.
6292   if test "$hardcode_direct" != no &&
6293      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6294      # have to relink, otherwise we might link with an installed library
6295      # when we should be linking with a yet-to-be-installed one
6296      ## test "$hardcode_shlibpath_var" != no &&
6297      test "$hardcode_minus_L" != no; then
6298     # Linking always hardcodes the temporary library directory.
6299     hardcode_action=relink
6300   else
6301     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6302     hardcode_action=immediate
6303   fi
6304 else
6305   # We cannot hardcode anything, or else we can only hardcode existing
6306   # directories.
6307   hardcode_action=unsupported
6308 fi
6309 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6310 echo "${ECHO_T}$hardcode_action" >&6
6311
6312 striplib=
6313 old_striplib=
6314 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6315 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6316 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6317   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6318   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6319   echo "$as_me:$LINENO: result: yes" >&5
6320 echo "${ECHO_T}yes" >&6
6321 else
6322   echo "$as_me:$LINENO: result: no" >&5
6323 echo "${ECHO_T}no" >&6
6324 fi
6325
6326 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6327 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6328
6329 # PORTME Fill in your ld.so characteristics
6330 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6332 library_names_spec=
6333 libname_spec='lib$name'
6334 soname_spec=
6335 postinstall_cmds=
6336 postuninstall_cmds=
6337 finish_cmds=
6338 finish_eval=
6339 shlibpath_var=
6340 shlibpath_overrides_runpath=unknown
6341 version_type=none
6342 dynamic_linker="$host_os ld.so"
6343 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6344 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6345
6346 case $host_os in
6347 aix3*)
6348   version_type=linux
6349   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6350   shlibpath_var=LIBPATH
6351
6352   # AIX has no versioning support, so we append a major version to the name.
6353   soname_spec='${libname}${release}.so$major'
6354   ;;
6355
6356 aix4* | aix5*)
6357   version_type=linux
6358   need_lib_prefix=no
6359   need_version=no
6360   hardcode_into_libs=yes
6361   if test "$host_cpu" = ia64; then
6362     # AIX 5 supports IA64
6363     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6364     shlibpath_var=LD_LIBRARY_PATH
6365   else
6366     # With GCC up to 2.95.x, collect2 would create an import file
6367     # for dependence libraries.  The import file would start with
6368     # the line `#! .'.  This would cause the generated library to
6369     # depend on `.', always an invalid library.  This was fixed in
6370     # development snapshots of GCC prior to 3.0.
6371     case $host_os in
6372       aix4 | aix4.[01] | aix4.[01].*)
6373         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6374              echo ' yes '
6375              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6376           :
6377         else
6378           can_build_shared=no
6379         fi
6380         ;;
6381     esac
6382     # AIX (on Power*) has no versioning support, so currently we can
6383     # not hardcode correct soname into executable. Probably we can
6384     # add versioning support to collect2, so additional links can
6385     # be useful in future.
6386     if test "$aix_use_runtimelinking" = yes; then
6387       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6388       # instead of lib<name>.a to let people know that these are not
6389       # typical AIX shared libraries.
6390       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6391     else
6392       # We preserve .a as extension for shared libraries through AIX4.2
6393       # and later when we are not doing run time linking.
6394       library_names_spec='${libname}${release}.a $libname.a'
6395       soname_spec='${libname}${release}.so$major'
6396     fi
6397     shlibpath_var=LIBPATH
6398   fi
6399   hardcode_into_libs=yes
6400   ;;
6401
6402 amigaos*)
6403   library_names_spec='$libname.ixlibrary $libname.a'
6404   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6405   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'
6406   ;;
6407
6408 beos*)
6409   library_names_spec='${libname}.so'
6410   dynamic_linker="$host_os ld.so"
6411   shlibpath_var=LIBRARY_PATH
6412   ;;
6413
6414 bsdi4*)
6415   version_type=linux
6416   need_version=no
6417   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6418   soname_spec='${libname}${release}.so$major'
6419   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6420   shlibpath_var=LD_LIBRARY_PATH
6421   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6422   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6423   export_dynamic_flag_spec=-rdynamic
6424   # the default ld.so.conf also contains /usr/contrib/lib and
6425   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6426   # libtool to hard-code these into programs
6427   ;;
6428
6429 cygwin* | mingw* | pw32*)
6430   version_type=windows
6431   need_version=no
6432   need_lib_prefix=no
6433   case $GCC,$host_os in
6434   yes,cygwin*)
6435     library_names_spec='$libname.dll.a'
6436     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6437     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6438       dldir=$destdir/`dirname \$dlpath`~
6439       test -d \$dldir || mkdir -p \$dldir~
6440       $install_prog .libs/$dlname \$dldir/$dlname'
6441     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6442       dlpath=$dir/\$dldll~
6443        $rm \$dlpath'
6444     ;;
6445   yes,mingw*)
6446     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6447     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6448     ;;
6449   yes,pw32*)
6450     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6451     ;;
6452   *)
6453     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6454     ;;
6455   esac
6456   dynamic_linker='Win32 ld.exe'
6457   # FIXME: first we should search . and the directory the executable is in
6458   shlibpath_var=PATH
6459   ;;
6460
6461 darwin* | rhapsody*)
6462   dynamic_linker="$host_os dyld"
6463   version_type=darwin
6464   need_lib_prefix=no
6465   need_version=no
6466   # FIXME: Relying on posixy $() will cause problems for
6467   #        cross-compilation, but unfortunately the echo tests do not
6468   #        yet detect zsh echo's removal of \ escapes.
6469   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)'
6470   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6471   shlibpath_overrides_runpath=yes
6472   shlibpath_var=DYLD_LIBRARY_PATH
6473   ;;
6474
6475 freebsd1*)
6476   dynamic_linker=no
6477   ;;
6478
6479 freebsd*)
6480   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6481   version_type=freebsd-$objformat
6482   case $version_type in
6483     freebsd-elf*)
6484       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6485       need_version=no
6486       need_lib_prefix=no
6487       ;;
6488     freebsd-*)
6489       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6490       need_version=yes
6491       ;;
6492   esac
6493   shlibpath_var=LD_LIBRARY_PATH
6494   case $host_os in
6495   freebsd2*)
6496     shlibpath_overrides_runpath=yes
6497     ;;
6498   *)
6499     shlibpath_overrides_runpath=no
6500     hardcode_into_libs=yes
6501     ;;
6502   esac
6503   ;;
6504
6505 gnu*)
6506   version_type=linux
6507   need_lib_prefix=no
6508   need_version=no
6509   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6510   soname_spec='${libname}${release}.so$major'
6511   shlibpath_var=LD_LIBRARY_PATH
6512   hardcode_into_libs=yes
6513   ;;
6514
6515 hpux9* | hpux10* | hpux11*)
6516   # Give a soname corresponding to the major version so that dld.sl refuses to
6517   # link against other versions.
6518   dynamic_linker="$host_os dld.sl"
6519   version_type=sunos
6520   need_lib_prefix=no
6521   need_version=no
6522   shlibpath_var=SHLIB_PATH
6523   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6524   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6525   soname_spec='${libname}${release}.sl$major'
6526   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6527   postinstall_cmds='chmod 555 $lib'
6528   ;;
6529
6530 irix5* | irix6* | nonstopux*)
6531   case $host_os in
6532     nonstopux*) version_type=nonstopux ;;
6533     *)          version_type=irix ;;
6534   esac
6535   need_lib_prefix=no
6536   need_version=no
6537   soname_spec='${libname}${release}.so$major'
6538   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6539   case $host_os in
6540   irix5* | nonstopux*)
6541     libsuff= shlibsuff=
6542     ;;
6543   *)
6544     case $LD in # libtool.m4 will add one of these switches to LD
6545     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6546     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6547     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6548     *) libsuff= shlibsuff= libmagic=never-match;;
6549     esac
6550     ;;
6551   esac
6552   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6553   shlibpath_overrides_runpath=no
6554   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6555   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6556   ;;
6557
6558 # No shared lib support for Linux oldld, aout, or coff.
6559 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6560   dynamic_linker=no
6561   ;;
6562
6563 # This must be Linux ELF.
6564 linux-gnu*)
6565   version_type=linux
6566   need_lib_prefix=no
6567   need_version=no
6568   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6569   soname_spec='${libname}${release}.so$major'
6570   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6571   shlibpath_var=LD_LIBRARY_PATH
6572   shlibpath_overrides_runpath=no
6573   # This implies no fast_install, which is unacceptable.
6574   # Some rework will be needed to allow for fast_install
6575   # before this can be enabled.
6576   hardcode_into_libs=yes
6577
6578   case $host_cpu:$lt_cv_cc_64bit_output in
6579   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6580     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6581     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6582     ;;
6583   esac
6584
6585   # We used to test for /lib/ld.so.1 and disable shared libraries on
6586   # powerpc, because MkLinux only supported shared libraries with the
6587   # GNU dynamic linker.  Since this was broken with cross compilers,
6588   # most powerpc-linux boxes support dynamic linking these days and
6589   # people can always --disable-shared, the test was removed, and we
6590   # assume the GNU/Linux dynamic linker is in use.
6591   dynamic_linker='GNU/Linux ld.so'
6592
6593   # Find out which ABI we are using (multilib Linux x86_64 hack).
6594   libsuff=
6595   case "$host_cpu" in
6596   x86_64*)
6597     echo '#line 6597 "configure"' > conftest.$ac_ext
6598     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6599   (eval $ac_compile) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; then
6603       case `/usr/bin/file conftest.$ac_objext` in
6604       *64-bit*)
6605         libsuff=64
6606         ;;
6607       esac
6608     fi
6609     rm -rf conftest*
6610     ;;
6611   *)
6612     ;;
6613   esac
6614   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6615   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6616   ;;
6617
6618 netbsd*)
6619   version_type=sunos
6620   need_lib_prefix=no
6621   need_version=no
6622   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6623     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6624     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6625     dynamic_linker='NetBSD (a.out) ld.so'
6626   else
6627     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6628     soname_spec='${libname}${release}.so$major'
6629     dynamic_linker='NetBSD ld.elf_so'
6630   fi
6631   shlibpath_var=LD_LIBRARY_PATH
6632   shlibpath_overrides_runpath=yes
6633   hardcode_into_libs=yes
6634   ;;
6635
6636 newsos6)
6637   version_type=linux
6638   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6639   shlibpath_var=LD_LIBRARY_PATH
6640   shlibpath_overrides_runpath=yes
6641   ;;
6642
6643 openbsd*)
6644   version_type=sunos
6645   need_lib_prefix=no
6646   need_version=no
6647   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6648     case "$host_os" in
6649     openbsd2.[89] | openbsd2.[89].*)
6650       shlibpath_overrides_runpath=no
6651       ;;
6652     *)
6653       shlibpath_overrides_runpath=yes
6654       ;;
6655     esac
6656   else
6657     shlibpath_overrides_runpath=yes
6658   fi
6659   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6660   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6661   shlibpath_var=LD_LIBRARY_PATH
6662   ;;
6663
6664 os2*)
6665   libname_spec='$name'
6666   need_lib_prefix=no
6667   library_names_spec='$libname.dll $libname.a'
6668   dynamic_linker='OS/2 ld.exe'
6669   shlibpath_var=LIBPATH
6670   ;;
6671
6672 osf3* | osf4* | osf5*)
6673   version_type=osf
6674   need_version=no
6675   soname_spec='${libname}${release}.so$major'
6676   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6677   shlibpath_var=LD_LIBRARY_PATH
6678   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6679   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6680   hardcode_into_libs=yes
6681   ;;
6682
6683 sco3.2v5*)
6684   version_type=osf
6685   soname_spec='${libname}${release}.so$major'
6686   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6687   shlibpath_var=LD_LIBRARY_PATH
6688   ;;
6689
6690 solaris*)
6691   version_type=linux
6692   need_lib_prefix=no
6693   need_version=no
6694   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6695   soname_spec='${libname}${release}.so$major'
6696   shlibpath_var=LD_LIBRARY_PATH
6697   shlibpath_overrides_runpath=yes
6698   hardcode_into_libs=yes
6699   # ldd complains unless libraries are executable
6700   postinstall_cmds='chmod +x $lib'
6701   ;;
6702
6703 sunos4*)
6704   version_type=sunos
6705   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6706   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6707   shlibpath_var=LD_LIBRARY_PATH
6708   shlibpath_overrides_runpath=yes
6709   if test "$with_gnu_ld" = yes; then
6710     need_lib_prefix=no
6711   fi
6712   need_version=yes
6713   ;;
6714
6715 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6716   version_type=linux
6717   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6718   soname_spec='${libname}${release}.so$major'
6719   shlibpath_var=LD_LIBRARY_PATH
6720   case $host_vendor in
6721     sni)
6722       shlibpath_overrides_runpath=no
6723       need_lib_prefix=no
6724       export_dynamic_flag_spec='${wl}-Blargedynsym'
6725       runpath_var=LD_RUN_PATH
6726       ;;
6727     siemens)
6728       need_lib_prefix=no
6729       ;;
6730     motorola)
6731       need_lib_prefix=no
6732       need_version=no
6733       shlibpath_overrides_runpath=no
6734       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6735       ;;
6736   esac
6737   ;;
6738
6739 uts4*)
6740   version_type=linux
6741   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6742   soname_spec='${libname}${release}.so$major'
6743   shlibpath_var=LD_LIBRARY_PATH
6744   ;;
6745
6746 dgux*)
6747   version_type=linux
6748   need_lib_prefix=no
6749   need_version=no
6750   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6751   soname_spec='${libname}${release}.so$major'
6752   shlibpath_var=LD_LIBRARY_PATH
6753   ;;
6754
6755 sysv4*MP*)
6756   if test -d /usr/nec ;then
6757     version_type=linux
6758     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6759     soname_spec='$libname.so.$major'
6760     shlibpath_var=LD_LIBRARY_PATH
6761   fi
6762   ;;
6763
6764 *)
6765   dynamic_linker=no
6766   ;;
6767 esac
6768 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6769 echo "${ECHO_T}$dynamic_linker" >&6
6770 test "$dynamic_linker" = no && can_build_shared=no
6771
6772 # Report the final consequences.
6773 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6774 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6775 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6776 echo "${ECHO_T}$can_build_shared" >&6
6777
6778 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6779 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6780 test "$can_build_shared" = "no" && enable_shared=no
6781
6782 # On AIX, shared libraries and static libraries use the same namespace, and
6783 # are all built from PIC.
6784 case "$host_os" in
6785 aix3*)
6786   test "$enable_shared" = yes && enable_static=no
6787   if test -n "$RANLIB"; then
6788     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6789     postinstall_cmds='$RANLIB $lib'
6790   fi
6791   ;;
6792
6793 aix4*)
6794   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6795     test "$enable_shared" = yes && enable_static=no
6796   fi
6797   ;;
6798 esac
6799 echo "$as_me:$LINENO: result: $enable_shared" >&5
6800 echo "${ECHO_T}$enable_shared" >&6
6801
6802 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6803 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6804 # Make sure either enable_shared or enable_static is yes.
6805 test "$enable_shared" = yes || enable_static=yes
6806 echo "$as_me:$LINENO: result: $enable_static" >&5
6807 echo "${ECHO_T}$enable_static" >&6
6808
6809 if test "$hardcode_action" = relink; then
6810   # Fast installation is not supported
6811   enable_fast_install=no
6812 elif test "$shlibpath_overrides_runpath" = yes ||
6813      test "$enable_shared" = no; then
6814   # Fast installation is not necessary
6815   enable_fast_install=needless
6816 fi
6817
6818 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6819 if test "$GCC" = yes; then
6820   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6821 fi
6822
6823 if test "x$enable_dlopen" != xyes; then
6824   enable_dlopen=unknown
6825   enable_dlopen_self=unknown
6826   enable_dlopen_self_static=unknown
6827 else
6828   lt_cv_dlopen=no
6829   lt_cv_dlopen_libs=
6830
6831   case $host_os in
6832   beos*)
6833     lt_cv_dlopen="load_add_on"
6834     lt_cv_dlopen_libs=
6835     lt_cv_dlopen_self=yes
6836     ;;
6837
6838   cygwin* | mingw* | pw32*)
6839     lt_cv_dlopen="LoadLibrary"
6840     lt_cv_dlopen_libs=
6841    ;;
6842
6843   *)
6844     echo "$as_me:$LINENO: checking for shl_load" >&5
6845 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6846 if test "${ac_cv_func_shl_load+set}" = set; then
6847   echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849   cat >conftest.$ac_ext <<_ACEOF
6850 /* confdefs.h.  */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h.  */
6855 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6857 #define shl_load innocuous_shl_load
6858
6859 /* System header to define __stub macros and hopefully few prototypes,
6860     which can conflict with char shl_load (); below.
6861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6862     <limits.h> exists even on freestanding compilers.  */
6863
6864 #ifdef __STDC__
6865 # include <limits.h>
6866 #else
6867 # include <assert.h>
6868 #endif
6869
6870 #undef shl_load
6871
6872 /* Override any gcc2 internal prototype to avoid an error.  */
6873 #ifdef __cplusplus
6874 extern "C"
6875 {
6876 #endif
6877 /* We use char because int might match the return type of a gcc2
6878    builtin and then its argument prototype would still apply.  */
6879 char shl_load ();
6880 /* The GNU C library defines this for functions which it implements
6881     to always fail with ENOSYS.  Some functions are actually named
6882     something starting with __ and the normal name is an alias.  */
6883 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6884 choke me
6885 #else
6886 char (*f) () = shl_load;
6887 #endif
6888 #ifdef __cplusplus
6889 }
6890 #endif
6891
6892 int
6893 main ()
6894 {
6895 return f != shl_load;
6896   ;
6897   return 0;
6898 }
6899 _ACEOF
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6902   (eval $ac_link) 2>conftest.er1
6903   ac_status=$?
6904   grep -v '^ *+' conftest.er1 >conftest.err
6905   rm -f conftest.er1
6906   cat conftest.err >&5
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); } &&
6909          { ac_try='test -z "$ac_c_werror_flag"
6910                          || test ! -s conftest.err'
6911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912   (eval $ac_try) 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); }; } &&
6916          { ac_try='test -s conftest$ac_exeext'
6917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918   (eval $ac_try) 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); }; }; then
6922   ac_cv_func_shl_load=yes
6923 else
6924   echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927 ac_cv_func_shl_load=no
6928 fi
6929 rm -f conftest.err conftest.$ac_objext \
6930       conftest$ac_exeext conftest.$ac_ext
6931 fi
6932 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6933 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6934 if test $ac_cv_func_shl_load = yes; then
6935   lt_cv_dlopen="shl_load"
6936 else
6937   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6938 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6939 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6940   echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942   ac_check_lib_save_LIBS=$LIBS
6943 LIBS="-ldld  $LIBS"
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6950
6951 /* Override any gcc2 internal prototype to avoid an error.  */
6952 #ifdef __cplusplus
6953 extern "C"
6954 #endif
6955 /* We use char because int might match the return type of a gcc2
6956    builtin and then its argument prototype would still apply.  */
6957 char shl_load ();
6958 int
6959 main ()
6960 {
6961 shl_load ();
6962   ;
6963   return 0;
6964 }
6965 _ACEOF
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968   (eval $ac_link) 2>conftest.er1
6969   ac_status=$?
6970   grep -v '^ *+' conftest.er1 >conftest.err
6971   rm -f conftest.er1
6972   cat conftest.err >&5
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } &&
6975          { ac_try='test -z "$ac_c_werror_flag"
6976                          || test ! -s conftest.err'
6977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978   (eval $ac_try) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); }; } &&
6982          { ac_try='test -s conftest$ac_exeext'
6983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984   (eval $ac_try) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); }; }; then
6988   ac_cv_lib_dld_shl_load=yes
6989 else
6990   echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6992
6993 ac_cv_lib_dld_shl_load=no
6994 fi
6995 rm -f conftest.err conftest.$ac_objext \
6996       conftest$ac_exeext conftest.$ac_ext
6997 LIBS=$ac_check_lib_save_LIBS
6998 fi
6999 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7000 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7001 if test $ac_cv_lib_dld_shl_load = yes; then
7002   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7003 else
7004   echo "$as_me:$LINENO: checking for dlopen" >&5
7005 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7006 if test "${ac_cv_func_dlopen+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h.  */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h.  */
7015 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7017 #define dlopen innocuous_dlopen
7018
7019 /* System header to define __stub macros and hopefully few prototypes,
7020     which can conflict with char dlopen (); below.
7021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7022     <limits.h> exists even on freestanding compilers.  */
7023
7024 #ifdef __STDC__
7025 # include <limits.h>
7026 #else
7027 # include <assert.h>
7028 #endif
7029
7030 #undef dlopen
7031
7032 /* Override any gcc2 internal prototype to avoid an error.  */
7033 #ifdef __cplusplus
7034 extern "C"
7035 {
7036 #endif
7037 /* We use char because int might match the return type of a gcc2
7038    builtin and then its argument prototype would still apply.  */
7039 char dlopen ();
7040 /* The GNU C library defines this for functions which it implements
7041     to always fail with ENOSYS.  Some functions are actually named
7042     something starting with __ and the normal name is an alias.  */
7043 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7044 choke me
7045 #else
7046 char (*f) () = dlopen;
7047 #endif
7048 #ifdef __cplusplus
7049 }
7050 #endif
7051
7052 int
7053 main ()
7054 {
7055 return f != dlopen;
7056   ;
7057   return 0;
7058 }
7059 _ACEOF
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062   (eval $ac_link) 2>conftest.er1
7063   ac_status=$?
7064   grep -v '^ *+' conftest.er1 >conftest.err
7065   rm -f conftest.er1
7066   cat conftest.err >&5
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } &&
7069          { ac_try='test -z "$ac_c_werror_flag"
7070                          || test ! -s conftest.err'
7071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072   (eval $ac_try) 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); }; } &&
7076          { ac_try='test -s conftest$ac_exeext'
7077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078   (eval $ac_try) 2>&5
7079   ac_status=$?
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); }; }; then
7082   ac_cv_func_dlopen=yes
7083 else
7084   echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087 ac_cv_func_dlopen=no
7088 fi
7089 rm -f conftest.err conftest.$ac_objext \
7090       conftest$ac_exeext conftest.$ac_ext
7091 fi
7092 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7093 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7094 if test $ac_cv_func_dlopen = yes; then
7095   lt_cv_dlopen="dlopen"
7096 else
7097   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7098 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102   ac_check_lib_save_LIBS=$LIBS
7103 LIBS="-ldl  $LIBS"
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h.  */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h.  */
7110
7111 /* Override any gcc2 internal prototype to avoid an error.  */
7112 #ifdef __cplusplus
7113 extern "C"
7114 #endif
7115 /* We use char because int might match the return type of a gcc2
7116    builtin and then its argument prototype would still apply.  */
7117 char dlopen ();
7118 int
7119 main ()
7120 {
7121 dlopen ();
7122   ;
7123   return 0;
7124 }
7125 _ACEOF
7126 rm -f conftest.$ac_objext conftest$ac_exeext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128   (eval $ac_link) 2>conftest.er1
7129   ac_status=$?
7130   grep -v '^ *+' conftest.er1 >conftest.err
7131   rm -f conftest.er1
7132   cat conftest.err >&5
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); } &&
7135          { ac_try='test -z "$ac_c_werror_flag"
7136                          || test ! -s conftest.err'
7137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138   (eval $ac_try) 2>&5
7139   ac_status=$?
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); }; } &&
7142          { ac_try='test -s conftest$ac_exeext'
7143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144   (eval $ac_try) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); }; }; then
7148   ac_cv_lib_dl_dlopen=yes
7149 else
7150   echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7152
7153 ac_cv_lib_dl_dlopen=no
7154 fi
7155 rm -f conftest.err conftest.$ac_objext \
7156       conftest$ac_exeext conftest.$ac_ext
7157 LIBS=$ac_check_lib_save_LIBS
7158 fi
7159 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7160 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7161 if test $ac_cv_lib_dl_dlopen = yes; then
7162   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7163 else
7164   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7165 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7166 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   ac_check_lib_save_LIBS=$LIBS
7170 LIBS="-lsvld  $LIBS"
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177
7178 /* Override any gcc2 internal prototype to avoid an error.  */
7179 #ifdef __cplusplus
7180 extern "C"
7181 #endif
7182 /* We use char because int might match the return type of a gcc2
7183    builtin and then its argument prototype would still apply.  */
7184 char dlopen ();
7185 int
7186 main ()
7187 {
7188 dlopen ();
7189   ;
7190   return 0;
7191 }
7192 _ACEOF
7193 rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195   (eval $ac_link) 2>conftest.er1
7196   ac_status=$?
7197   grep -v '^ *+' conftest.er1 >conftest.err
7198   rm -f conftest.er1
7199   cat conftest.err >&5
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } &&
7202          { ac_try='test -z "$ac_c_werror_flag"
7203                          || test ! -s conftest.err'
7204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205   (eval $ac_try) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; } &&
7209          { ac_try='test -s conftest$ac_exeext'
7210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211   (eval $ac_try) 2>&5
7212   ac_status=$?
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); }; }; then
7215   ac_cv_lib_svld_dlopen=yes
7216 else
7217   echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7219
7220 ac_cv_lib_svld_dlopen=no
7221 fi
7222 rm -f conftest.err conftest.$ac_objext \
7223       conftest$ac_exeext conftest.$ac_ext
7224 LIBS=$ac_check_lib_save_LIBS
7225 fi
7226 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7227 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7228 if test $ac_cv_lib_svld_dlopen = yes; then
7229   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7230 else
7231   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7232 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7233 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   ac_check_lib_save_LIBS=$LIBS
7237 LIBS="-ldld  $LIBS"
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h.  */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h.  */
7244
7245 /* Override any gcc2 internal prototype to avoid an error.  */
7246 #ifdef __cplusplus
7247 extern "C"
7248 #endif
7249 /* We use char because int might match the return type of a gcc2
7250    builtin and then its argument prototype would still apply.  */
7251 char dld_link ();
7252 int
7253 main ()
7254 {
7255 dld_link ();
7256   ;
7257   return 0;
7258 }
7259 _ACEOF
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262   (eval $ac_link) 2>conftest.er1
7263   ac_status=$?
7264   grep -v '^ *+' conftest.er1 >conftest.err
7265   rm -f conftest.er1
7266   cat conftest.err >&5
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } &&
7269          { ac_try='test -z "$ac_c_werror_flag"
7270                          || test ! -s conftest.err'
7271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272   (eval $ac_try) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); }; } &&
7276          { ac_try='test -s conftest$ac_exeext'
7277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278   (eval $ac_try) 2>&5
7279   ac_status=$?
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); }; }; then
7282   ac_cv_lib_dld_dld_link=yes
7283 else
7284   echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_cv_lib_dld_dld_link=no
7288 fi
7289 rm -f conftest.err conftest.$ac_objext \
7290       conftest$ac_exeext conftest.$ac_ext
7291 LIBS=$ac_check_lib_save_LIBS
7292 fi
7293 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7294 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7295 if test $ac_cv_lib_dld_dld_link = yes; then
7296   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7297 fi
7298
7299
7300 fi
7301
7302
7303 fi
7304
7305
7306 fi
7307
7308
7309 fi
7310
7311
7312 fi
7313
7314     ;;
7315   esac
7316
7317   if test "x$lt_cv_dlopen" != xno; then
7318     enable_dlopen=yes
7319   else
7320     enable_dlopen=no
7321   fi
7322
7323   case $lt_cv_dlopen in
7324   dlopen)
7325     save_CPPFLAGS="$CPPFLAGS"
7326         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7327
7328     save_LDFLAGS="$LDFLAGS"
7329     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7330
7331     save_LIBS="$LIBS"
7332     LIBS="$lt_cv_dlopen_libs $LIBS"
7333
7334     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7335 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7336 if test "${lt_cv_dlopen_self+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339           if test "$cross_compiling" = yes; then :
7340   lt_cv_dlopen_self=cross
7341 else
7342     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7343   lt_status=$lt_dlunknown
7344   cat > conftest.$ac_ext <<EOF
7345 #line 7345 "configure"
7346 #include "confdefs.h"
7347
7348 #if HAVE_DLFCN_H
7349 #include <dlfcn.h>
7350 #endif
7351
7352 #include <stdio.h>
7353
7354 #ifdef RTLD_GLOBAL
7355 #  define LT_DLGLOBAL           RTLD_GLOBAL
7356 #else
7357 #  ifdef DL_GLOBAL
7358 #    define LT_DLGLOBAL         DL_GLOBAL
7359 #  else
7360 #    define LT_DLGLOBAL         0
7361 #  endif
7362 #endif
7363
7364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7365    find out it does not work in some platform. */
7366 #ifndef LT_DLLAZY_OR_NOW
7367 #  ifdef RTLD_LAZY
7368 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7369 #  else
7370 #    ifdef DL_LAZY
7371 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7372 #    else
7373 #      ifdef RTLD_NOW
7374 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7375 #      else
7376 #        ifdef DL_NOW
7377 #          define LT_DLLAZY_OR_NOW      DL_NOW
7378 #        else
7379 #          define LT_DLLAZY_OR_NOW      0
7380 #        endif
7381 #      endif
7382 #    endif
7383 #  endif
7384 #endif
7385
7386 #ifdef __cplusplus
7387 extern "C" void exit (int);
7388 #endif
7389
7390 void fnord() { int i=42;}
7391 int main ()
7392 {
7393   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7394   int status = $lt_dlunknown;
7395
7396   if (self)
7397     {
7398       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7399       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7400       /* dlclose (self); */
7401     }
7402
7403     exit (status);
7404 }
7405 EOF
7406   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407   (eval $ac_link) 2>&5
7408   ac_status=$?
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7411     (./conftest; exit; ) 2>/dev/null
7412     lt_status=$?
7413     case x$lt_status in
7414       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7415       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7416       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7417     esac
7418   else :
7419     # compilation failed
7420     lt_cv_dlopen_self=no
7421   fi
7422 fi
7423 rm -fr conftest*
7424
7425
7426 fi
7427 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7428 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7429
7430     if test "x$lt_cv_dlopen_self" = xyes; then
7431       LDFLAGS="$LDFLAGS $link_static_flag"
7432       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7433 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7434 if test "${lt_cv_dlopen_self_static+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437           if test "$cross_compiling" = yes; then :
7438   lt_cv_dlopen_self_static=cross
7439 else
7440     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7441   lt_status=$lt_dlunknown
7442   cat > conftest.$ac_ext <<EOF
7443 #line 7443 "configure"
7444 #include "confdefs.h"
7445
7446 #if HAVE_DLFCN_H
7447 #include <dlfcn.h>
7448 #endif
7449
7450 #include <stdio.h>
7451
7452 #ifdef RTLD_GLOBAL
7453 #  define LT_DLGLOBAL           RTLD_GLOBAL
7454 #else
7455 #  ifdef DL_GLOBAL
7456 #    define LT_DLGLOBAL         DL_GLOBAL
7457 #  else
7458 #    define LT_DLGLOBAL         0
7459 #  endif
7460 #endif
7461
7462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7463    find out it does not work in some platform. */
7464 #ifndef LT_DLLAZY_OR_NOW
7465 #  ifdef RTLD_LAZY
7466 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7467 #  else
7468 #    ifdef DL_LAZY
7469 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7470 #    else
7471 #      ifdef RTLD_NOW
7472 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7473 #      else
7474 #        ifdef DL_NOW
7475 #          define LT_DLLAZY_OR_NOW      DL_NOW
7476 #        else
7477 #          define LT_DLLAZY_OR_NOW      0
7478 #        endif
7479 #      endif
7480 #    endif
7481 #  endif
7482 #endif
7483
7484 #ifdef __cplusplus
7485 extern "C" void exit (int);
7486 #endif
7487
7488 void fnord() { int i=42;}
7489 int main ()
7490 {
7491   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7492   int status = $lt_dlunknown;
7493
7494   if (self)
7495     {
7496       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7497       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7498       /* dlclose (self); */
7499     }
7500
7501     exit (status);
7502 }
7503 EOF
7504   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505   (eval $ac_link) 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7509     (./conftest; exit; ) 2>/dev/null
7510     lt_status=$?
7511     case x$lt_status in
7512       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7513       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7514       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7515     esac
7516   else :
7517     # compilation failed
7518     lt_cv_dlopen_self_static=no
7519   fi
7520 fi
7521 rm -fr conftest*
7522
7523
7524 fi
7525 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7526 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7527     fi
7528
7529     CPPFLAGS="$save_CPPFLAGS"
7530     LDFLAGS="$save_LDFLAGS"
7531     LIBS="$save_LIBS"
7532     ;;
7533   esac
7534
7535   case $lt_cv_dlopen_self in
7536   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7537   *) enable_dlopen_self=unknown ;;
7538   esac
7539
7540   case $lt_cv_dlopen_self_static in
7541   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7542   *) enable_dlopen_self_static=unknown ;;
7543   esac
7544 fi
7545
7546
7547 if test "$enable_shared" = yes && test "$GCC" = yes; then
7548   case $archive_cmds in
7549   *'~'*)
7550     # FIXME: we may have to deal with multi-command sequences.
7551     ;;
7552   '$CC '*)
7553     # Test whether the compiler implicitly links with -lc since on some
7554     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7555     # to ld, don't add -lc before -lgcc.
7556     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7557 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7558     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   $rm conftest*
7562     echo 'static int dummy;' > conftest.$ac_ext
7563
7564     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7565   (eval $ac_compile) 2>&5
7566   ac_status=$?
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); }; then
7569       soname=conftest
7570       lib=conftest
7571       libobjs=conftest.$ac_objext
7572       deplibs=
7573       wl=$lt_cv_prog_cc_wl
7574       compiler_flags=-v
7575       linker_flags=-v
7576       verstring=
7577       output_objdir=.
7578       libname=conftest
7579       save_allow_undefined_flag=$allow_undefined_flag
7580       allow_undefined_flag=
7581       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7582   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); }
7586       then
7587         lt_cv_archive_cmds_need_lc=no
7588       else
7589         lt_cv_archive_cmds_need_lc=yes
7590       fi
7591       allow_undefined_flag=$save_allow_undefined_flag
7592     else
7593       cat conftest.err 1>&5
7594     fi
7595 fi
7596
7597     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7598 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7599     ;;
7600   esac
7601 fi
7602 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7603
7604 # The second clause should only fire when bootstrapping the
7605 # libtool distribution, otherwise you forgot to ship ltmain.sh
7606 # with your package, and you will get complaints that there are
7607 # no rules to generate ltmain.sh.
7608 if test -f "$ltmain"; then
7609   :
7610 else
7611   # If there is no Makefile yet, we rely on a make rule to execute
7612   # `config.status --recheck' to rerun these tests and create the
7613   # libtool script then.
7614   test -f Makefile && make "$ltmain"
7615 fi
7616
7617 if test -f "$ltmain"; then
7618   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7619   $rm -f "${ofile}T"
7620
7621   echo creating $ofile
7622
7623   # Now quote all the things that may contain metacharacters while being
7624   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7625   # variables and quote the copies for generation of the libtool script.
7626   for var in echo old_CC old_CFLAGS SED \
7627     AR AR_FLAGS CC LD LN_S NM SHELL \
7628     reload_flag reload_cmds wl \
7629     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7630     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7631     library_names_spec soname_spec \
7632     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7633     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7634     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7635     old_striplib striplib file_magic_cmd export_symbols_cmds \
7636     deplibs_check_method allow_undefined_flag no_undefined_flag \
7637     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7638     global_symbol_to_c_name_address \
7639     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7640     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7641     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7642
7643     case $var in
7644     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7645     old_postinstall_cmds | old_postuninstall_cmds | \
7646     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7647     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7648     postinstall_cmds | postuninstall_cmds | \
7649     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7650       # Double-quote double-evaled strings.
7651       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7652       ;;
7653     *)
7654       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7655       ;;
7656     esac
7657   done
7658
7659   cat <<__EOF__ > "${ofile}T"
7660 #! $SHELL
7661
7662 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7663 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7664 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7665 #
7666 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7667 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7668 #
7669 # This program is free software; you can redistribute it and/or modify
7670 # it under the terms of the GNU General Public License as published by
7671 # the Free Software Foundation; either version 2 of the License, or
7672 # (at your option) any later version.
7673 #
7674 # This program is distributed in the hope that it will be useful, but
7675 # WITHOUT ANY WARRANTY; without even the implied warranty of
7676 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7677 # General Public License for more details.
7678 #
7679 # You should have received a copy of the GNU General Public License
7680 # along with this program; if not, write to the Free Software
7681 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7682 #
7683 # As a special exception to the GNU General Public License, if you
7684 # distribute this file as part of a program that contains a
7685 # configuration script generated by Autoconf, you may include it under
7686 # the same distribution terms that you use for the rest of that program.
7687
7688 # A sed that does not truncate output.
7689 SED=$lt_SED
7690
7691 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7692 Xsed="${SED} -e s/^X//"
7693
7694 # The HP-UX ksh and POSIX shell print the target directory to stdout
7695 # if CDPATH is set.
7696 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7697
7698 # ### BEGIN LIBTOOL CONFIG
7699
7700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7701
7702 # Shell to use when invoking shell scripts.
7703 SHELL=$lt_SHELL
7704
7705 # Whether or not to build shared libraries.
7706 build_libtool_libs=$enable_shared
7707
7708 # Whether or not to build static libraries.
7709 build_old_libs=$enable_static
7710
7711 # Whether or not to add -lc for building shared libraries.
7712 build_libtool_need_lc=$need_lc
7713
7714 # Whether or not to optimize for fast installation.
7715 fast_install=$enable_fast_install
7716
7717 # The host system.
7718 host_alias=$host_alias
7719 host=$host
7720
7721 # An echo program that does not interpret backslashes.
7722 echo=$lt_echo
7723
7724 # The archiver.
7725 AR=$lt_AR
7726 AR_FLAGS=$lt_AR_FLAGS
7727
7728 # The default C compiler.
7729 CC=$lt_CC
7730
7731 # Is the compiler the GNU C compiler?
7732 with_gcc=$GCC
7733
7734 # The linker used to build libraries.
7735 LD=$lt_LD
7736
7737 # Whether we need hard or soft links.
7738 LN_S=$lt_LN_S
7739
7740 # A BSD-compatible nm program.
7741 NM=$lt_NM
7742
7743 # A symbol stripping program
7744 STRIP=$STRIP
7745
7746 # Used to examine libraries when file_magic_cmd begins "file"
7747 MAGIC_CMD=$MAGIC_CMD
7748
7749 # Used on cygwin: DLL creation program.
7750 DLLTOOL="$DLLTOOL"
7751
7752 # Used on cygwin: object dumper.
7753 OBJDUMP="$OBJDUMP"
7754
7755 # Used on cygwin: assembler.
7756 AS="$AS"
7757
7758 # The name of the directory that contains temporary libtool files.
7759 objdir=$objdir
7760
7761 # How to create reloadable object files.
7762 reload_flag=$lt_reload_flag
7763 reload_cmds=$lt_reload_cmds
7764
7765 # How to pass a linker flag through the compiler.
7766 wl=$lt_wl
7767
7768 # Object file suffix (normally "o").
7769 objext="$ac_objext"
7770
7771 # Old archive suffix (normally "a").
7772 libext="$libext"
7773
7774 # Executable file suffix (normally "").
7775 exeext="$exeext"
7776
7777 # Additional compiler flags for building library objects.
7778 pic_flag=$lt_pic_flag
7779 pic_mode=$pic_mode
7780
7781 # Does compiler simultaneously support -c and -o options?
7782 compiler_c_o=$lt_compiler_c_o
7783
7784 # Can we write directly to a .lo ?
7785 compiler_o_lo=$lt_compiler_o_lo
7786
7787 # Must we lock files when doing compilation ?
7788 need_locks=$lt_need_locks
7789
7790 # Do we need the lib prefix for modules?
7791 need_lib_prefix=$need_lib_prefix
7792
7793 # Do we need a version for libraries?
7794 need_version=$need_version
7795
7796 # Whether dlopen is supported.
7797 dlopen_support=$enable_dlopen
7798
7799 # Whether dlopen of programs is supported.
7800 dlopen_self=$enable_dlopen_self
7801
7802 # Whether dlopen of statically linked programs is supported.
7803 dlopen_self_static=$enable_dlopen_self_static
7804
7805 # Compiler flag to prevent dynamic linking.
7806 link_static_flag=$lt_link_static_flag
7807
7808 # Compiler flag to turn off builtin functions.
7809 no_builtin_flag=$lt_no_builtin_flag
7810
7811 # Compiler flag to allow reflexive dlopens.
7812 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7813
7814 # Compiler flag to generate shared objects directly from archives.
7815 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7816
7817 # Compiler flag to generate thread-safe objects.
7818 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7819
7820 # Library versioning type.
7821 version_type=$version_type
7822
7823 # Format of library name prefix.
7824 libname_spec=$lt_libname_spec
7825
7826 # List of archive names.  First name is the real one, the rest are links.
7827 # The last name is the one that the linker finds with -lNAME.
7828 library_names_spec=$lt_library_names_spec
7829
7830 # The coded name of the library, if different from the real name.
7831 soname_spec=$lt_soname_spec
7832
7833 # Commands used to build and install an old-style archive.
7834 RANLIB=$lt_RANLIB
7835 old_archive_cmds=$lt_old_archive_cmds
7836 old_postinstall_cmds=$lt_old_postinstall_cmds
7837 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7838
7839 # Create an old-style archive from a shared archive.
7840 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7841
7842 # Create a temporary old-style archive to link instead of a shared archive.
7843 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7844
7845 # Commands used to build and install a shared archive.
7846 archive_cmds=$lt_archive_cmds
7847 archive_expsym_cmds=$lt_archive_expsym_cmds
7848 postinstall_cmds=$lt_postinstall_cmds
7849 postuninstall_cmds=$lt_postuninstall_cmds
7850
7851 # Commands to strip libraries.
7852 old_striplib=$lt_old_striplib
7853 striplib=$lt_striplib
7854
7855 # Method to check whether dependent libraries are shared objects.
7856 deplibs_check_method=$lt_deplibs_check_method
7857
7858 # Command to use when deplibs_check_method == file_magic.
7859 file_magic_cmd=$lt_file_magic_cmd
7860
7861 # Flag that allows shared libraries with undefined symbols to be built.
7862 allow_undefined_flag=$lt_allow_undefined_flag
7863
7864 # Flag that forces no undefined symbols.
7865 no_undefined_flag=$lt_no_undefined_flag
7866
7867 # Commands used to finish a libtool library installation in a directory.
7868 finish_cmds=$lt_finish_cmds
7869
7870 # Same as above, but a single script fragment to be evaled but not shown.
7871 finish_eval=$lt_finish_eval
7872
7873 # Take the output of nm and produce a listing of raw symbols and C names.
7874 global_symbol_pipe=$lt_global_symbol_pipe
7875
7876 # Transform the output of nm in a proper C declaration
7877 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7878
7879 # Transform the output of nm in a C name address pair
7880 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7881
7882 # This is the shared library runtime path variable.
7883 runpath_var=$runpath_var
7884
7885 # This is the shared library path variable.
7886 shlibpath_var=$shlibpath_var
7887
7888 # Is shlibpath searched before the hard-coded library search path?
7889 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7890
7891 # How to hardcode a shared library path into an executable.
7892 hardcode_action=$hardcode_action
7893
7894 # Whether we should hardcode library paths into libraries.
7895 hardcode_into_libs=$hardcode_into_libs
7896
7897 # Flag to hardcode \$libdir into a binary during linking.
7898 # This must work even if \$libdir does not exist.
7899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7900
7901 # Whether we need a single -rpath flag with a separated argument.
7902 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7903
7904 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7905 # resulting binary.
7906 hardcode_direct=$hardcode_direct
7907
7908 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7909 # resulting binary.
7910 hardcode_minus_L=$hardcode_minus_L
7911
7912 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7913 # the resulting binary.
7914 hardcode_shlibpath_var=$hardcode_shlibpath_var
7915
7916 # Variables whose values should be saved in libtool wrapper scripts and
7917 # restored at relink time.
7918 variables_saved_for_relink="$variables_saved_for_relink"
7919
7920 # Whether libtool must link a program against all its dependency libraries.
7921 link_all_deplibs=$link_all_deplibs
7922
7923 # Compile-time system search path for libraries
7924 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7925
7926 # Run-time system search path for libraries
7927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7928
7929 # Fix the shell variable \$srcfile for the compiler.
7930 fix_srcfile_path="$fix_srcfile_path"
7931
7932 # Set to yes if exported symbols are required.
7933 always_export_symbols=$always_export_symbols
7934
7935 # The commands to list exported symbols.
7936 export_symbols_cmds=$lt_export_symbols_cmds
7937
7938 # The commands to extract the exported symbol list from a shared archive.
7939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7940
7941 # Symbols that should not be listed in the preloaded symbols.
7942 exclude_expsyms=$lt_exclude_expsyms
7943
7944 # Symbols that must always be exported.
7945 include_expsyms=$lt_include_expsyms
7946
7947 # ### END LIBTOOL CONFIG
7948
7949 __EOF__
7950
7951   case $host_os in
7952   aix3*)
7953     cat <<\EOF >> "${ofile}T"
7954
7955 # AIX sometimes has problems with the GCC collect2 program.  For some
7956 # reason, if we set the COLLECT_NAMES environment variable, the problems
7957 # vanish in a puff of smoke.
7958 if test "X${COLLECT_NAMES+set}" != Xset; then
7959   COLLECT_NAMES=
7960   export COLLECT_NAMES
7961 fi
7962 EOF
7963     ;;
7964   esac
7965
7966   case $host_os in
7967   cygwin* | mingw* | pw32* | os2*)
7968     cat <<'EOF' >> "${ofile}T"
7969       # This is a source program that is used to create dlls on Windows
7970       # Don't remove nor modify the starting and closing comments
7971 # /* ltdll.c starts here */
7972 # #define WIN32_LEAN_AND_MEAN
7973 # #include <windows.h>
7974 # #undef WIN32_LEAN_AND_MEAN
7975 # #include <stdio.h>
7976 #
7977 # #ifndef __CYGWIN__
7978 # #  ifdef __CYGWIN32__
7979 # #    define __CYGWIN__ __CYGWIN32__
7980 # #  endif
7981 # #endif
7982 #
7983 # #ifdef __cplusplus
7984 # extern "C" {
7985 # #endif
7986 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7987 # #ifdef __cplusplus
7988 # }
7989 # #endif
7990 #
7991 # #ifdef __CYGWIN__
7992 # #include <cygwin/cygwin_dll.h>
7993 # DECLARE_CYGWIN_DLL( DllMain );
7994 # #endif
7995 # HINSTANCE __hDllInstance_base;
7996 #
7997 # BOOL APIENTRY
7998 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7999 # {
8000 #   __hDllInstance_base = hInst;
8001 #   return TRUE;
8002 # }
8003 # /* ltdll.c ends here */
8004         # This is a source program that is used to create import libraries
8005         # on Windows for dlls which lack them. Don't remove nor modify the
8006         # starting and closing comments
8007 # /* impgen.c starts here */
8008 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8009 #
8010 #  This file is part of GNU libtool.
8011 #
8012 #  This program is free software; you can redistribute it and/or modify
8013 #  it under the terms of the GNU General Public License as published by
8014 #  the Free Software Foundation; either version 2 of the License, or
8015 #  (at your option) any later version.
8016 #
8017 #  This program is distributed in the hope that it will be useful,
8018 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8019 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8020 #  GNU General Public License for more details.
8021 #
8022 #  You should have received a copy of the GNU General Public License
8023 #  along with this program; if not, write to the Free Software
8024 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8025 #  */
8026 #
8027 # #include <stdio.h>            /* for printf() */
8028 # #include <unistd.h>           /* for open(), lseek(), read() */
8029 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8030 # #include <string.h>           /* for strdup() */
8031 #
8032 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8033 # #ifndef O_BINARY
8034 # #define O_BINARY 0
8035 # #endif
8036 #
8037 # static unsigned int
8038 # pe_get16 (fd, offset)
8039 #      int fd;
8040 #      int offset;
8041 # {
8042 #   unsigned char b[2];
8043 #   lseek (fd, offset, SEEK_SET);
8044 #   read (fd, b, 2);
8045 #   return b[0] + (b[1]<<8);
8046 # }
8047 #
8048 # static unsigned int
8049 # pe_get32 (fd, offset)
8050 #     int fd;
8051 #     int offset;
8052 # {
8053 #   unsigned char b[4];
8054 #   lseek (fd, offset, SEEK_SET);
8055 #   read (fd, b, 4);
8056 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8057 # }
8058 #
8059 # static unsigned int
8060 # pe_as32 (ptr)
8061 #      void *ptr;
8062 # {
8063 #   unsigned char *b = ptr;
8064 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8065 # }
8066 #
8067 # int
8068 # main (argc, argv)
8069 #     int argc;
8070 #     char *argv[];
8071 # {
8072 #     int dll;
8073 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8074 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8075 #     unsigned long name_rvas, nexp;
8076 #     unsigned char *expdata, *erva;
8077 #     char *filename, *dll_name;
8078 #
8079 #     filename = argv[1];
8080 #
8081 #     dll = open(filename, O_RDONLY|O_BINARY);
8082 #     if (dll < 1)
8083 #       return 1;
8084 #
8085 #     dll_name = filename;
8086 #
8087 #     for (i=0; filename[i]; i++)
8088 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8089 #           dll_name = filename + i +1;
8090 #
8091 #     pe_header_offset = pe_get32 (dll, 0x3c);
8092 #     opthdr_ofs = pe_header_offset + 4 + 20;
8093 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8094 #
8095 #     if (num_entries < 1) /* no exports */
8096 #       return 1;
8097 #
8098 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8099 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8100 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8101 #     secptr = (pe_header_offset + 4 + 20 +
8102 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8103 #
8104 #     expptr = 0;
8105 #     for (i = 0; i < nsections; i++)
8106 #     {
8107 #       char sname[8];
8108 #       unsigned long secptr1 = secptr + 40 * i;
8109 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8110 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8111 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8112 #       lseek(dll, secptr1, SEEK_SET);
8113 #       read(dll, sname, 8);
8114 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8115 #       {
8116 #           expptr = fptr + (export_rva - vaddr);
8117 #           if (export_rva + export_size > vaddr + vsize)
8118 #               export_size = vsize - (export_rva - vaddr);
8119 #           break;
8120 #       }
8121 #     }
8122 #
8123 #     expdata = (unsigned char*)malloc(export_size);
8124 #     lseek (dll, expptr, SEEK_SET);
8125 #     read (dll, expdata, export_size);
8126 #     erva = expdata - export_rva;
8127 #
8128 #     nexp = pe_as32 (expdata+24);
8129 #     name_rvas = pe_as32 (expdata+32);
8130 #
8131 #     printf ("EXPORTS\n");
8132 #     for (i = 0; i<nexp; i++)
8133 #     {
8134 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8135 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8136 #     }
8137 #
8138 #     return 0;
8139 # }
8140 # /* impgen.c ends here */
8141
8142 EOF
8143     ;;
8144   esac
8145
8146   # We use sed instead of cat because bash on DJGPP gets confused if
8147   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8148   # text mode, it properly converts lines to CR/LF.  This bash problem
8149   # is reportedly fixed, but why not run on old versions too?
8150   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8151
8152   mv -f "${ofile}T" "$ofile" || \
8153     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8154   chmod +x "$ofile"
8155 fi
8156
8157
8158
8159
8160
8161 # This can be used to rebuild libtool when needed
8162 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8163
8164 # Always use our own libtool.
8165 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8166
8167 # Prevent multiple expansion
8168
8169
8170  for ac_prog in gzip uncompress compress
8171 do
8172   # Extract the first word of "$ac_prog", so it can be a program name with args.
8173 set dummy $ac_prog; ac_word=$2
8174 echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8176 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179   if test -n "$UNCOMPRESS"; then
8180   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185   IFS=$as_save_IFS
8186   test -z "$as_dir" && as_dir=.
8187   for ac_exec_ext in '' $ac_executable_extensions; do
8188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189     ac_cv_prog_UNCOMPRESS="$ac_prog"
8190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191     break 2
8192   fi
8193 done
8194 done
8195
8196 fi
8197 fi
8198 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8199 if test -n "$UNCOMPRESS"; then
8200   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8201 echo "${ECHO_T}$UNCOMPRESS" >&6
8202 else
8203   echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6
8205 fi
8206
8207   test -n "$UNCOMPRESS" && break
8208 done
8209
8210
8211
8212
8213
8214
8215
8216
8217 echo "$as_me:$LINENO: checking for target system" >&5
8218 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8219 CYGWIN=
8220 MINGW=
8221 case $host_os in
8222     *cygwin* ) CYGWIN=yes;;
8223     *mingw* ) MINGW=yes;;
8224 esac
8225
8226 AR=ar
8227 if test "x$MINGW" = "xyes"; then
8228     #fix for the debian distribution of mingw
8229     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8230         AR="/usr/i586-mingw32msvc/bin/ar"
8231     fi
8232     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8233         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8234     fi
8235     #fix for the gentoo distribution of mingw
8236     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8237         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8238     fi
8239     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8240         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8241     fi
8242     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8243         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8244     fi
8245 fi
8246
8247
8248
8249 if test "x${CYGWIN}" = "xyes"; then
8250     cat >>confdefs.h <<_ACEOF
8251 #define CYGWIN 1
8252 _ACEOF
8253
8254     echo "$as_me:$LINENO: result: cygwin" >&5
8255 echo "${ECHO_T}cygwin" >&6
8256 else
8257     if test "x${MINGW}" = "xyes"; then
8258         cat >>confdefs.h <<_ACEOF
8259 #define MINGW 1
8260 _ACEOF
8261
8262         WIN32=1
8263         cat >>confdefs.h <<_ACEOF
8264 #define WIN32 1
8265 _ACEOF
8266
8267         LIBS="$LIBS -lws2_32"
8268         echo "$as_me:$LINENO: result: mingw" >&5
8269 echo "${ECHO_T}mingw" >&6
8270     else
8271         LINUX=1
8272         export LINUX
8273         cat >>confdefs.h <<_ACEOF
8274 #define LINUX 1
8275 _ACEOF
8276
8277         echo "$as_me:$LINENO: result: " >&5
8278 echo "${ECHO_T}" >&6
8279     fi
8280 fi
8281
8282
8283 if test "x${MINGW}" != "xyes"; then
8284     cat >>confdefs.h <<_ACEOF
8285 #define O_BINARY 0
8286 _ACEOF
8287
8288 fi
8289 # The following tries to make use of includes and libraries in
8290 # /usr/local, too. Notice: A -I/usr/local/include might break
8291 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8292 # especially on systems which link /usr/local to /usr, so it has yet
8293 # to be seen how useful this is.
8294 if test -d /usr/local/lib; then
8295     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8296 fi
8297 if test -d /usr/local/include; then
8298 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8299 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8300     echo > /dev/null
8301 fi
8302 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8303     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8304     # and $prefix/include, which should be included in our search paths for libraries
8305     # and includes.
8306     LDFLAGS="$LDFLAGS -L${libdir}"
8307     CPPFLAGS="$CPPFLAGS -I${includedir}"
8308     # TODO- test whether gcc still works after this
8309 fi
8310
8311 # this must be done after (I believe) AC_PROG_MAKE_SET
8312 if test "x$DEBUG" '!=' "x";then
8313     STRIP="@echo debug enabled, not stripping "
8314     export STRIP
8315
8316 fi
8317
8318
8319 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8320 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8321 if test "${ac_cv_lib_m_sin+set}" = set; then
8322   echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324   ac_check_lib_save_LIBS=$LIBS
8325 LIBS="-lm  $LIBS"
8326 cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h.  */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h.  */
8332
8333 /* Override any gcc2 internal prototype to avoid an error.  */
8334 #ifdef __cplusplus
8335 extern "C"
8336 #endif
8337 /* We use char because int might match the return type of a gcc2
8338    builtin and then its argument prototype would still apply.  */
8339 char sin ();
8340 int
8341 main ()
8342 {
8343 sin ();
8344   ;
8345   return 0;
8346 }
8347 _ACEOF
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350   (eval $ac_link) 2>conftest.er1
8351   ac_status=$?
8352   grep -v '^ *+' conftest.er1 >conftest.err
8353   rm -f conftest.er1
8354   cat conftest.err >&5
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); } &&
8357          { ac_try='test -z "$ac_c_werror_flag"
8358                          || test ! -s conftest.err'
8359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360   (eval $ac_try) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; } &&
8364          { ac_try='test -s conftest$ac_exeext'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   ac_cv_lib_m_sin=yes
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8374
8375 ac_cv_lib_m_sin=no
8376 fi
8377 rm -f conftest.err conftest.$ac_objext \
8378       conftest$ac_exeext conftest.$ac_ext
8379 LIBS=$ac_check_lib_save_LIBS
8380 fi
8381 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8382 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8383 if test $ac_cv_lib_m_sin = yes; then
8384   cat >>confdefs.h <<_ACEOF
8385 #define HAVE_LIBM 1
8386 _ACEOF
8387
8388   LIBS="-lm $LIBS"
8389
8390 else
8391   echo "Error: Math library not found.";
8392  exit;
8393
8394 fi
8395
8396
8397 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8398 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8399 if test "${ac_cv_lib_z_deflate+set}" = set; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   ac_check_lib_save_LIBS=$LIBS
8403 LIBS="-lz  $LIBS"
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410
8411 /* Override any gcc2 internal prototype to avoid an error.  */
8412 #ifdef __cplusplus
8413 extern "C"
8414 #endif
8415 /* We use char because int might match the return type of a gcc2
8416    builtin and then its argument prototype would still apply.  */
8417 char deflate ();
8418 int
8419 main ()
8420 {
8421 deflate ();
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428   (eval $ac_link) 2>conftest.er1
8429   ac_status=$?
8430   grep -v '^ *+' conftest.er1 >conftest.err
8431   rm -f conftest.er1
8432   cat conftest.err >&5
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); } &&
8435          { ac_try='test -z "$ac_c_werror_flag"
8436                          || test ! -s conftest.err'
8437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438   (eval $ac_try) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; } &&
8442          { ac_try='test -s conftest$ac_exeext'
8443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444   (eval $ac_try) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; }; then
8448   ac_cv_lib_z_deflate=yes
8449 else
8450   echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453 ac_cv_lib_z_deflate=no
8454 fi
8455 rm -f conftest.err conftest.$ac_objext \
8456       conftest$ac_exeext conftest.$ac_ext
8457 LIBS=$ac_check_lib_save_LIBS
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8460 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8461 if test $ac_cv_lib_z_deflate = yes; then
8462   cat >>confdefs.h <<_ACEOF
8463 #define HAVE_LIBZ 1
8464 _ACEOF
8465
8466   LIBS="-lz $LIBS"
8467
8468 else
8469   DISABLEPNG2SWF=true;
8470  MISSINGLIBS="${MISSINGLIBS} zlib"
8471  ZLIBMISSING=true;
8472
8473 fi
8474
8475
8476 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8477 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8478 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481   ac_check_lib_save_LIBS=$LIBS
8482 LIBS="-ljpeg  $LIBS"
8483 cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h.  */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h.  */
8489
8490 /* Override any gcc2 internal prototype to avoid an error.  */
8491 #ifdef __cplusplus
8492 extern "C"
8493 #endif
8494 /* We use char because int might match the return type of a gcc2
8495    builtin and then its argument prototype would still apply.  */
8496 char jpeg_write_raw_data ();
8497 int
8498 main ()
8499 {
8500 jpeg_write_raw_data ();
8501   ;
8502   return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507   (eval $ac_link) 2>conftest.er1
8508   ac_status=$?
8509   grep -v '^ *+' conftest.er1 >conftest.err
8510   rm -f conftest.er1
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); } &&
8514          { ac_try='test -z "$ac_c_werror_flag"
8515                          || test ! -s conftest.err'
8516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517   (eval $ac_try) 2>&5
8518   ac_status=$?
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); }; } &&
8521          { ac_try='test -s conftest$ac_exeext'
8522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523   (eval $ac_try) 2>&5
8524   ac_status=$?
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); }; }; then
8527   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8533 fi
8534 rm -f conftest.err conftest.$ac_objext \
8535       conftest$ac_exeext conftest.$ac_ext
8536 LIBS=$ac_check_lib_save_LIBS
8537 fi
8538 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8539 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8540 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8541   cat >>confdefs.h <<_ACEOF
8542 #define HAVE_LIBJPEG 1
8543 _ACEOF
8544
8545   LIBS="-ljpeg $LIBS"
8546
8547 else
8548   DISABLEPDF2SWF=true;
8549  DISABLEJPEG2SWF=true;
8550  MISSINGLIBS="${MISSINGLIBS} jpeglib"
8551
8552 fi
8553
8554
8555 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8556 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8557 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   ac_check_lib_save_LIBS=$LIBS
8561 LIBS="-lt1  $LIBS"
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h.  */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h.  */
8568
8569 /* Override any gcc2 internal prototype to avoid an error.  */
8570 #ifdef __cplusplus
8571 extern "C"
8572 #endif
8573 /* We use char because int might match the return type of a gcc2
8574    builtin and then its argument prototype would still apply.  */
8575 char T1_LoadFont ();
8576 int
8577 main ()
8578 {
8579 T1_LoadFont ();
8580   ;
8581   return 0;
8582 }
8583 _ACEOF
8584 rm -f conftest.$ac_objext conftest$ac_exeext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586   (eval $ac_link) 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -z "$ac_c_werror_flag"
8594                          || test ! -s conftest.err'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; } &&
8600          { ac_try='test -s conftest$ac_exeext'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; }; then
8606   ac_cv_lib_t1_T1_LoadFont=yes
8607 else
8608   echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 ac_cv_lib_t1_T1_LoadFont=no
8612 fi
8613 rm -f conftest.err conftest.$ac_objext \
8614       conftest$ac_exeext conftest.$ac_ext
8615 LIBS=$ac_check_lib_save_LIBS
8616 fi
8617 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8618 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8619 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8620   cat >>confdefs.h <<_ACEOF
8621 #define HAVE_LIBT1 1
8622 _ACEOF
8623
8624   LIBS="-lt1 $LIBS"
8625
8626 else
8627   DISABLEPDF2SWF=true;
8628  MISSINGLIBS="${MISSINGLIBS} t1lib"
8629
8630 fi
8631
8632
8633
8634 for ac_prog in freetype-config
8635 do
8636   # Extract the first word of "$ac_prog", so it can be a program name with args.
8637 set dummy $ac_prog; ac_word=$2
8638 echo "$as_me:$LINENO: checking for $ac_word" >&5
8639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8640 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8641   echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643   if test -n "$FREETYPE_CONFIG"; then
8644   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8645 else
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649   IFS=$as_save_IFS
8650   test -z "$as_dir" && as_dir=.
8651   for ac_exec_ext in '' $ac_executable_extensions; do
8652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655     break 2
8656   fi
8657 done
8658 done
8659
8660 fi
8661 fi
8662 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8663 if test -n "$FREETYPE_CONFIG"; then
8664   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8665 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8666 else
8667   echo "$as_me:$LINENO: result: no" >&5
8668 echo "${ECHO_T}no" >&6
8669 fi
8670
8671   test -n "$FREETYPE_CONFIG" && break
8672 done
8673
8674 OLDCPPFLAGS="${CPPFLAGS}"
8675 OLDLIBS="${LIBS}"
8676 if test "x${FREETYPE_CONFIG}" != "x"; then
8677     CPPFLAGS="$CFLAGS "`freetype-config --cflags`
8678 else if test -d /usr/include/freetype2; then
8679     CPPFLAGS="$CFLAGS -I/usr/include/freetype2"
8680 else if test -d /usr/local/include/freetype2; then
8681     CPPFLAGS="$CFLAGS -I/usr/local/include/freetype2"
8682 fi
8683 fi
8684 fi
8685 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8686 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8687 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690   ac_check_lib_save_LIBS=$LIBS
8691 LIBS="-lfreetype  $LIBS"
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h.  */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h.  */
8698
8699 /* Override any gcc2 internal prototype to avoid an error.  */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 /* We use char because int might match the return type of a gcc2
8704    builtin and then its argument prototype would still apply.  */
8705 char FT_Init_FreeType ();
8706 int
8707 main ()
8708 {
8709 FT_Init_FreeType ();
8710   ;
8711   return 0;
8712 }
8713 _ACEOF
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716   (eval $ac_link) 2>conftest.er1
8717   ac_status=$?
8718   grep -v '^ *+' conftest.er1 >conftest.err
8719   rm -f conftest.er1
8720   cat conftest.err >&5
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } &&
8723          { ac_try='test -z "$ac_c_werror_flag"
8724                          || test ! -s conftest.err'
8725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726   (eval $ac_try) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; } &&
8730          { ac_try='test -s conftest$ac_exeext'
8731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732   (eval $ac_try) 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; }; then
8736   ac_cv_lib_freetype_FT_Init_FreeType=yes
8737 else
8738   echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741 ac_cv_lib_freetype_FT_Init_FreeType=no
8742 fi
8743 rm -f conftest.err conftest.$ac_objext \
8744       conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8746 fi
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8748 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8749 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8750   HAVE_LIB_FREETYPE=1
8751 fi
8752
8753
8754 for ac_header in freetype/freetype.h
8755 do
8756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8758   echo "$as_me:$LINENO: checking for $ac_header" >&5
8759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761   echo $ECHO_N "(cached) $ECHO_C" >&6
8762 fi
8763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8765 else
8766   # Is the header compilable?
8767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h.  */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h.  */
8775 $ac_includes_default
8776 #include <$ac_header>
8777 _ACEOF
8778 rm -f conftest.$ac_objext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8780   (eval $ac_compile) 2>conftest.er1
8781   ac_status=$?
8782   grep -v '^ *+' conftest.er1 >conftest.err
8783   rm -f conftest.er1
8784   cat conftest.err >&5
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); } &&
8787          { ac_try='test -z "$ac_c_werror_flag"
8788                          || test ! -s conftest.err'
8789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790   (eval $ac_try) 2>&5
8791   ac_status=$?
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); }; } &&
8794          { ac_try='test -s conftest.$ac_objext'
8795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796   (eval $ac_try) 2>&5
8797   ac_status=$?
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); }; }; then
8800   ac_header_compiler=yes
8801 else
8802   echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8804
8805 ac_header_compiler=no
8806 fi
8807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8809 echo "${ECHO_T}$ac_header_compiler" >&6
8810
8811 # Is the header present?
8812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8814 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h.  */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h.  */
8820 #include <$ac_header>
8821 _ACEOF
8822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8824   ac_status=$?
8825   grep -v '^ *+' conftest.er1 >conftest.err
8826   rm -f conftest.er1
8827   cat conftest.err >&5
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); } >/dev/null; then
8830   if test -s conftest.err; then
8831     ac_cpp_err=$ac_c_preproc_warn_flag
8832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8833   else
8834     ac_cpp_err=
8835   fi
8836 else
8837   ac_cpp_err=yes
8838 fi
8839 if test -z "$ac_cpp_err"; then
8840   ac_header_preproc=yes
8841 else
8842   echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8844
8845   ac_header_preproc=no
8846 fi
8847 rm -f conftest.err conftest.$ac_ext
8848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8849 echo "${ECHO_T}$ac_header_preproc" >&6
8850
8851 # So?  What about this header?
8852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8853   yes:no: )
8854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8858     ac_header_preproc=yes
8859     ;;
8860   no:yes:* )
8861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8863     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8864 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8865     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8867     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8868 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8871     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8873     (
8874       cat <<\_ASBOX
8875 ## ------------------------------------------ ##
8876 ## Report this to the AC_PACKAGE_NAME lists.  ##
8877 ## ------------------------------------------ ##
8878 _ASBOX
8879     ) |
8880       sed "s/^/$as_me: WARNING:     /" >&2
8881     ;;
8882 esac
8883 echo "$as_me:$LINENO: checking for $ac_header" >&5
8884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8886   echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888   eval "$as_ac_Header=\$ac_header_preproc"
8889 fi
8890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8892
8893 fi
8894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8895   cat >>confdefs.h <<_ACEOF
8896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8897 _ACEOF
8898  HAVE_FREETYPE_FREETYPE_H=1
8899 fi
8900
8901 done
8902
8903 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8904 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8905     HAVE_FREETYPE=1
8906 fi
8907 fi
8908
8909 if test "x${HAVE_FREETYPE}" = "x1"; then
8910     if test "x{$FREETYPE_CONFIG}" != "x"; then
8911         LIBS="$LIBS "`freetype-config --libs`
8912     else
8913         LIBS="$LIBS -lfreetype"
8914     fi
8915
8916     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8917 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8918
8919     cat > conftest.c << EOF
8920 #include <freetype/freetype.h>
8921 #include <freetype/ftglyph.h>
8922 #include <freetype/ftsnames.h>
8923 #include <freetype/ttnameid.h>
8924 #include <freetype/ftoutln.h>
8925
8926 int main()
8927 {
8928     FT_Library ftlibrary;
8929     FT_Face face;
8930     FT_Error error;
8931     FT_ULong charcode;
8932     FT_UInt gindex;
8933     FT_Glyph glyph;
8934     FT_BBox bbox;
8935     FT_Matrix matrix;
8936     FT_UInt i;
8937     char* name = 0;
8938     char italic, bold;
8939
8940     FT_Init_FreeType(&ftlibrary);
8941     FT_New_Face(ftlibrary, "filename", 0, &face);
8942     i = face->num_glyphs - 1;
8943     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8944     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8945     FT_Get_Postscript_Name(face);
8946     FT_Get_Char_Index(face, 33);
8947     FT_Get_First_Char(face, &i);
8948     FT_Get_Next_Char(face, 33, &i);
8949     if(FT_HAS_GLYPH_NAMES(face)) {
8950         FT_Get_Glyph_Name(face, 33, name, 127);
8951     }
8952     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8953     FT_Get_Glyph(face->glyph, &glyph);
8954     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8955     FT_Done_Glyph(glyph);
8956     FT_Done_Face(face);
8957     FT_Done_FreeType(ftlibrary);
8958     return 0;
8959 }
8960 EOF
8961
8962     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LIBS -o conftest${ac_exeext}'
8963     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8964         echo "$as_me:$LINENO: result: yes" >&5
8965 echo "${ECHO_T}yes" >&6
8966         cat >>confdefs.h <<_ACEOF
8967 #define HAVE_FREETYPE 1
8968 _ACEOF
8969
8970         cat >>confdefs.h <<_ACEOF
8971 #define USE_FREETYPE 1
8972 _ACEOF
8973   # for ttf2tp1
8974     else
8975         echo "configure: failed program was:" >&5
8976         cat conftest.c >&5
8977         HAVE_FREETYPE=0
8978         echo "$as_me:$LINENO: result: no" >&5
8979 echo "${ECHO_T}no" >&6
8980     fi
8981     rm -f conftest*
8982 fi
8983
8984 # if the above didn't work out, reset all changes to the compiler variables.
8985 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8986     CPPFLAGS=$OLDCPPFLAGS
8987     LIBS=$OLDLIBS
8988 fi
8989
8990
8991
8992 echo "$as_me:$LINENO: checking for byte order" >&5
8993 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8994 if test "$cross_compiling" = yes; then
8995   CROSSCOMPILE=1
8996 else
8997   cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h.  */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h.  */
9003
9004 int main (int argc, char *argv[])
9005 {
9006     int i = 1;
9007     return *(char*)&i;
9008 }
9009
9010 _ACEOF
9011 rm -f conftest$ac_exeext
9012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013   (eval $ac_link) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018   (eval $ac_try) 2>&5
9019   ac_status=$?
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); }; }; then
9022   BIGENDIAN=1
9023 else
9024   echo "$as_me: program exited with status $ac_status" >&5
9025 echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9027
9028 ( exit $ac_status )
9029 LITTLEENDIAN=1
9030 fi
9031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9032 fi
9033 export CROSSCOMPILE
9034
9035 if test "x${CROSSCOMPILE}" = "x1"; then
9036  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9037 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9038  echo "$as_me:$LINENO: checking target system type" >&5
9039 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9040 if test "${ac_cv_target+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   ac_cv_target_alias=$target_alias
9044 test "x$ac_cv_target_alias" = "x" &&
9045   ac_cv_target_alias=$ac_cv_host_alias
9046 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9047   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9048 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9049    { (exit 1); exit 1; }; }
9050
9051 fi
9052 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9053 echo "${ECHO_T}$ac_cv_target" >&6
9054 target=$ac_cv_target
9055 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9056 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9057 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9058
9059
9060 # The aliases save the names the user supplied, while $host etc.
9061 # will get canonicalized.
9062 test -n "$target_alias" &&
9063   test "$program_prefix$program_suffix$program_transform_name" = \
9064     NONENONEs,x,x, &&
9065   program_prefix=${target_alias}-
9066  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9067 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9068  case "${target}" in
9069   *86* | *-pc-* )
9070      LITTLEENDIAN=1
9071      ;;
9072   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9073      BIGENDIAN=1
9074      ;;
9075  esac
9076 fi
9077
9078 export LITTLEENDIAN
9079 if test "x${LITTLEENDIAN}" = "x1"; then
9080 echo "$as_me:$LINENO: result: little endian" >&5
9081 echo "${ECHO_T}little endian" >&6
9082 BYTEORDERCHECKOK=1
9083 fi
9084 export BIGENDIAN
9085 if test "x${BIGENDIAN}" = "x1"; then
9086 echo "$as_me:$LINENO: result: big endian" >&5
9087 echo "${ECHO_T}big endian" >&6
9088 BYTEORDERCHECKOK=1
9089 WORDS_BIGENDIAN=1
9090 export WORDS_BIGENDIAN
9091 cat >>confdefs.h <<_ACEOF
9092 #define WORDS_BIGENDIAN 1
9093 _ACEOF
9094
9095 fi
9096 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9097 echo "$as_me:$LINENO: result: unknown" >&5
9098 echo "${ECHO_T}unknown" >&6
9099 echo Byte order could not determined.
9100 exit 1
9101 fi
9102
9103
9104
9105 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9106 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9107 if test "$cross_compiling" = yes; then
9108   CROSSCOMPILE=1
9109 else
9110   cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h.  */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h.  */
9116
9117 #include "stdlib.h"
9118 int main (int argc, char*argv[])
9119 {
9120     return system("test `touch config.tmp2`");
9121 }
9122
9123 _ACEOF
9124 rm -f conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126   (eval $ac_link) 2>&5
9127   ac_status=$?
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131   (eval $ac_try) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); }; }; then
9135   OK=OK
9136 else
9137   echo "$as_me: program exited with status $ac_status" >&5
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9140
9141 fi
9142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9143 fi
9144
9145 if test "x${OK}" = "xOK";then
9146     test -f config.tmp2 || OK=
9147 fi
9148
9149 if test "x${CROSSCOMPILE}" = "x1";then
9150     OK=OK;
9151 fi
9152 if test "x${OK}" = "xOK";then
9153 rm -f config.tmp2
9154 echo "$as_me:$LINENO: result: yes" >&5
9155 echo "${ECHO_T}yes" >&6
9156 SYSTEM_BACKTICKS=1
9157 export SYSTEM_BACKTICKS
9158 cat >>confdefs.h <<_ACEOF
9159 #define SYSTEM_BACKTICKS 1
9160 _ACEOF
9161
9162 else
9163 echo "$as_me:$LINENO: result: no" >&5
9164 echo "${ECHO_T}no" >&6
9165 fi
9166
9167
9168
9169 test "$program_prefix" != NONE &&
9170   program_transform_name="s,^,$program_prefix,;$program_transform_name"
9171 # Use a double $ so make ignores it.
9172 test "$program_suffix" != NONE &&
9173   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9174 # Double any \ or $.  echo might interpret backslashes.
9175 # By default was `s,x,x', remove it if useless.
9176 cat <<\_ACEOF >conftest.sed
9177 s/[\\$]/&&/g;s/;s,x,x,$//
9178 _ACEOF
9179 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9180 rm conftest.sed
9181
9182
9183            ac_config_headers="$ac_config_headers config.h"
9184
9185
9186
9187
9188
9189
9190 ac_header_dirent=no
9191 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9192   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9193 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9194 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196   echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198   cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h.  */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h.  */
9204 #include <sys/types.h>
9205 #include <$ac_hdr>
9206
9207 int
9208 main ()
9209 {
9210 if ((DIR *) 0)
9211 return 0;
9212   ;
9213   return 0;
9214 }
9215 _ACEOF
9216 rm -f conftest.$ac_objext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218   (eval $ac_compile) 2>conftest.er1
9219   ac_status=$?
9220   grep -v '^ *+' conftest.er1 >conftest.err
9221   rm -f conftest.er1
9222   cat conftest.err >&5
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } &&
9225          { ac_try='test -z "$ac_c_werror_flag"
9226                          || test ! -s conftest.err'
9227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228   (eval $ac_try) 2>&5
9229   ac_status=$?
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); }; } &&
9232          { ac_try='test -s conftest.$ac_objext'
9233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234   (eval $ac_try) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; }; then
9238   eval "$as_ac_Header=yes"
9239 else
9240   echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9242
9243 eval "$as_ac_Header=no"
9244 fi
9245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246 fi
9247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9250   cat >>confdefs.h <<_ACEOF
9251 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9252 _ACEOF
9253
9254 ac_header_dirent=$ac_hdr; break
9255 fi
9256
9257 done
9258 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9259 if test $ac_header_dirent = dirent.h; then
9260   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9261 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9262 if test "${ac_cv_search_opendir+set}" = set; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265   ac_func_search_save_LIBS=$LIBS
9266 ac_cv_search_opendir=no
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273
9274 /* Override any gcc2 internal prototype to avoid an error.  */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 /* We use char because int might match the return type of a gcc2
9279    builtin and then its argument prototype would still apply.  */
9280 char opendir ();
9281 int
9282 main ()
9283 {
9284 opendir ();
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291   (eval $ac_link) 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -z "$ac_c_werror_flag"
9299                          || test ! -s conftest.err'
9300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301   (eval $ac_try) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); }; } &&
9305          { ac_try='test -s conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   ac_cv_search_opendir="none required"
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 fi
9317 rm -f conftest.err conftest.$ac_objext \
9318       conftest$ac_exeext conftest.$ac_ext
9319 if test "$ac_cv_search_opendir" = no; then
9320   for ac_lib in dir; do
9321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9322     cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328
9329 /* Override any gcc2 internal prototype to avoid an error.  */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 /* We use char because int might match the return type of a gcc2
9334    builtin and then its argument prototype would still apply.  */
9335 char opendir ();
9336 int
9337 main ()
9338 {
9339 opendir ();
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346   (eval $ac_link) 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -z "$ac_c_werror_flag"
9354                          || test ! -s conftest.err'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; } &&
9360          { ac_try='test -s conftest$ac_exeext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_cv_search_opendir="-l$ac_lib"
9367 break
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 fi
9373 rm -f conftest.err conftest.$ac_objext \
9374       conftest$ac_exeext conftest.$ac_ext
9375   done
9376 fi
9377 LIBS=$ac_func_search_save_LIBS
9378 fi
9379 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9380 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9381 if test "$ac_cv_search_opendir" != no; then
9382   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9383
9384 fi
9385
9386 else
9387   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9388 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9389 if test "${ac_cv_search_opendir+set}" = set; then
9390   echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392   ac_func_search_save_LIBS=$LIBS
9393 ac_cv_search_opendir=no
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h.  */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h.  */
9400
9401 /* Override any gcc2 internal prototype to avoid an error.  */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 /* We use char because int might match the return type of a gcc2
9406    builtin and then its argument prototype would still apply.  */
9407 char opendir ();
9408 int
9409 main ()
9410 {
9411 opendir ();
9412   ;
9413   return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418   (eval $ac_link) 2>conftest.er1
9419   ac_status=$?
9420   grep -v '^ *+' conftest.er1 >conftest.err
9421   rm -f conftest.er1
9422   cat conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } &&
9425          { ac_try='test -z "$ac_c_werror_flag"
9426                          || test ! -s conftest.err'
9427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428   (eval $ac_try) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; } &&
9432          { ac_try='test -s conftest$ac_exeext'
9433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434   (eval $ac_try) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438   ac_cv_search_opendir="none required"
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 fi
9444 rm -f conftest.err conftest.$ac_objext \
9445       conftest$ac_exeext conftest.$ac_ext
9446 if test "$ac_cv_search_opendir" = no; then
9447   for ac_lib in x; do
9448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9449     cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h.  */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h.  */
9455
9456 /* Override any gcc2 internal prototype to avoid an error.  */
9457 #ifdef __cplusplus
9458 extern "C"
9459 #endif
9460 /* We use char because int might match the return type of a gcc2
9461    builtin and then its argument prototype would still apply.  */
9462 char opendir ();
9463 int
9464 main ()
9465 {
9466 opendir ();
9467   ;
9468   return 0;
9469 }
9470 _ACEOF
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9473   (eval $ac_link) 2>conftest.er1
9474   ac_status=$?
9475   grep -v '^ *+' conftest.er1 >conftest.err
9476   rm -f conftest.er1
9477   cat conftest.err >&5
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); } &&
9480          { ac_try='test -z "$ac_c_werror_flag"
9481                          || test ! -s conftest.err'
9482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483   (eval $ac_try) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); }; } &&
9487          { ac_try='test -s conftest$ac_exeext'
9488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489   (eval $ac_try) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }; }; then
9493   ac_cv_search_opendir="-l$ac_lib"
9494 break
9495 else
9496   echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499 fi
9500 rm -f conftest.err conftest.$ac_objext \
9501       conftest$ac_exeext conftest.$ac_ext
9502   done
9503 fi
9504 LIBS=$ac_func_search_save_LIBS
9505 fi
9506 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9507 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9508 if test "$ac_cv_search_opendir" != no; then
9509   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9510
9511 fi
9512
9513 fi
9514
9515  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9517 if test "${ac_cv_header_stdc+set}" = set; then
9518   echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520   cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h.  */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h.  */
9526 #include <stdlib.h>
9527 #include <stdarg.h>
9528 #include <string.h>
9529 #include <float.h>
9530
9531 int
9532 main ()
9533 {
9534
9535   ;
9536   return 0;
9537 }
9538 _ACEOF
9539 rm -f conftest.$ac_objext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541   (eval $ac_compile) 2>conftest.er1
9542   ac_status=$?
9543   grep -v '^ *+' conftest.er1 >conftest.err
9544   rm -f conftest.er1
9545   cat conftest.err >&5
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); } &&
9548          { ac_try='test -z "$ac_c_werror_flag"
9549                          || test ! -s conftest.err'
9550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551   (eval $ac_try) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; } &&
9555          { ac_try='test -s conftest.$ac_objext'
9556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557   (eval $ac_try) 2>&5
9558   ac_status=$?
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); }; }; then
9561   ac_cv_header_stdc=yes
9562 else
9563   echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_cv_header_stdc=no
9567 fi
9568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9569
9570 if test $ac_cv_header_stdc = yes; then
9571   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9572   cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h.  */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h.  */
9578 #include <string.h>
9579
9580 _ACEOF
9581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9582   $EGREP "memchr" >/dev/null 2>&1; then
9583   :
9584 else
9585   ac_cv_header_stdc=no
9586 fi
9587 rm -f conftest*
9588
9589 fi
9590
9591 if test $ac_cv_header_stdc = yes; then
9592   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9593   cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h.  */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h.  */
9599 #include <stdlib.h>
9600
9601 _ACEOF
9602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9603   $EGREP "free" >/dev/null 2>&1; then
9604   :
9605 else
9606   ac_cv_header_stdc=no
9607 fi
9608 rm -f conftest*
9609
9610 fi
9611
9612 if test $ac_cv_header_stdc = yes; then
9613   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9614   if test "$cross_compiling" = yes; then
9615   :
9616 else
9617   cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h.  */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h.  */
9623 #include <ctype.h>
9624 #if ((' ' & 0x0FF) == 0x020)
9625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9627 #else
9628 # define ISLOWER(c) \
9629                    (('a' <= (c) && (c) <= 'i') \
9630                      || ('j' <= (c) && (c) <= 'r') \
9631                      || ('s' <= (c) && (c) <= 'z'))
9632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9633 #endif
9634
9635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9636 int
9637 main ()
9638 {
9639   int i;
9640   for (i = 0; i < 256; i++)
9641     if (XOR (islower (i), ISLOWER (i))
9642         || toupper (i) != TOUPPER (i))
9643       exit(2);
9644   exit (0);
9645 }
9646 _ACEOF
9647 rm -f conftest$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649   (eval $ac_link) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; }; then
9658   :
9659 else
9660   echo "$as_me: program exited with status $ac_status" >&5
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 ( exit $ac_status )
9665 ac_cv_header_stdc=no
9666 fi
9667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9668 fi
9669 fi
9670 fi
9671 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9672 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9673 if test $ac_cv_header_stdc = yes; then
9674
9675 cat >>confdefs.h <<\_ACEOF
9676 #define STDC_HEADERS 1
9677 _ACEOF
9678
9679 fi
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695 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
9696 do
9697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9699   echo "$as_me:$LINENO: checking for $ac_header" >&5
9700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 fi
9704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9706 else
9707   # Is the header compilable?
9708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h.  */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h.  */
9716 $ac_includes_default
9717 #include <$ac_header>
9718 _ACEOF
9719 rm -f conftest.$ac_objext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9721   (eval $ac_compile) 2>conftest.er1
9722   ac_status=$?
9723   grep -v '^ *+' conftest.er1 >conftest.err
9724   rm -f conftest.er1
9725   cat conftest.err >&5
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); } &&
9728          { ac_try='test -z "$ac_c_werror_flag"
9729                          || test ! -s conftest.err'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; } &&
9735          { ac_try='test -s conftest.$ac_objext'
9736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737   (eval $ac_try) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); }; }; then
9741   ac_header_compiler=yes
9742 else
9743   echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746 ac_header_compiler=no
9747 fi
9748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9750 echo "${ECHO_T}$ac_header_compiler" >&6
9751
9752 # Is the header present?
9753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h.  */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h.  */
9761 #include <$ac_header>
9762 _ACEOF
9763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9765   ac_status=$?
9766   grep -v '^ *+' conftest.er1 >conftest.err
9767   rm -f conftest.er1
9768   cat conftest.err >&5
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } >/dev/null; then
9771   if test -s conftest.err; then
9772     ac_cpp_err=$ac_c_preproc_warn_flag
9773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9774   else
9775     ac_cpp_err=
9776   fi
9777 else
9778   ac_cpp_err=yes
9779 fi
9780 if test -z "$ac_cpp_err"; then
9781   ac_header_preproc=yes
9782 else
9783   echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9785
9786   ac_header_preproc=no
9787 fi
9788 rm -f conftest.err conftest.$ac_ext
9789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9790 echo "${ECHO_T}$ac_header_preproc" >&6
9791
9792 # So?  What about this header?
9793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9794   yes:no: )
9795     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9799     ac_header_preproc=yes
9800     ;;
9801   no:yes:* )
9802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9804     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9805 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9806     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9808     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9809 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9812     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9814     (
9815       cat <<\_ASBOX
9816 ## ------------------------------------------ ##
9817 ## Report this to the AC_PACKAGE_NAME lists.  ##
9818 ## ------------------------------------------ ##
9819 _ASBOX
9820     ) |
9821       sed "s/^/$as_me: WARNING:     /" >&2
9822     ;;
9823 esac
9824 echo "$as_me:$LINENO: checking for $ac_header" >&5
9825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   eval "$as_ac_Header=\$ac_header_preproc"
9830 fi
9831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9833
9834 fi
9835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9836   cat >>confdefs.h <<_ACEOF
9837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9838 _ACEOF
9839
9840 fi
9841
9842 done
9843
9844
9845 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9846  DISABLEPDF2SWF=true;
9847  DISABLEJPEG2SWF=true;
9848  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9849 fi
9850 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9851  DISABLEPDF2SWF=true;
9852  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9853 fi
9854 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9855  DISABLEPNG2SWF=true;
9856  MISSINGLIBS="${MISSINGLIBS} zlib.h"
9857  ZLIBMISSING=true;
9858 fi
9859
9860 cat >>confdefs.h <<_ACEOF
9861 #define PACKAGE "$PACKAGE"
9862 _ACEOF
9863
9864 cat >>confdefs.h <<_ACEOF
9865 #define VERSION "$VERSION"
9866 _ACEOF
9867
9868
9869
9870
9871
9872
9873
9874  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9875 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9876 if test "${ac_cv_c_const+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885
9886 int
9887 main ()
9888 {
9889 /* FIXME: Include the comments suggested by Paul. */
9890 #ifndef __cplusplus
9891   /* Ultrix mips cc rejects this.  */
9892   typedef int charset[2];
9893   const charset x;
9894   /* SunOS 4.1.1 cc rejects this.  */
9895   char const *const *ccp;
9896   char **p;
9897   /* NEC SVR4.0.2 mips cc rejects this.  */
9898   struct point {int x, y;};
9899   static struct point const zero = {0,0};
9900   /* AIX XL C 1.02.0.0 rejects this.
9901      It does not let you subtract one const X* pointer from another in
9902      an arm of an if-expression whose if-part is not a constant
9903      expression */
9904   const char *g = "string";
9905   ccp = &g + (g ? g-g : 0);
9906   /* HPUX 7.0 cc rejects these. */
9907   ++ccp;
9908   p = (char**) ccp;
9909   ccp = (char const *const *) p;
9910   { /* SCO 3.2v4 cc rejects this.  */
9911     char *t;
9912     char const *s = 0 ? (char *) 0 : (char const *) 0;
9913
9914     *t++ = 0;
9915   }
9916   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9917     int x[] = {25, 17};
9918     const int *foo = &x[0];
9919     ++foo;
9920   }
9921   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9922     typedef const int *iptr;
9923     iptr p = 0;
9924     ++p;
9925   }
9926   { /* AIX XL C 1.02.0.0 rejects this saying
9927        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9928     struct s { int j; const int *ap[3]; };
9929     struct s *b; b->j = 5;
9930   }
9931   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9932     const int foo = 10;
9933   }
9934 #endif
9935
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942   (eval $ac_compile) 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -z "$ac_c_werror_flag"
9950                          || test ! -s conftest.err'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; } &&
9956          { ac_try='test -s conftest.$ac_objext'
9957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; }; then
9962   ac_cv_c_const=yes
9963 else
9964   echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9966
9967 ac_cv_c_const=no
9968 fi
9969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9970 fi
9971 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9972 echo "${ECHO_T}$ac_cv_c_const" >&6
9973 if test $ac_cv_c_const = no; then
9974
9975 cat >>confdefs.h <<\_ACEOF
9976 #define const
9977 _ACEOF
9978
9979 fi
9980
9981  echo "$as_me:$LINENO: checking for inline" >&5
9982 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9983 if test "${ac_cv_c_inline+set}" = set; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   ac_cv_c_inline=no
9987 for ac_kw in inline __inline__ __inline; do
9988   cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h.  */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h.  */
9994 #ifndef __cplusplus
9995 typedef int foo_t;
9996 static $ac_kw foo_t static_foo () {return 0; }
9997 $ac_kw foo_t foo () {return 0; }
9998 #endif
9999
10000 _ACEOF
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003   (eval $ac_compile) 2>conftest.er1
10004   ac_status=$?
10005   grep -v '^ *+' conftest.er1 >conftest.err
10006   rm -f conftest.er1
10007   cat conftest.err >&5
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); } &&
10010          { ac_try='test -z "$ac_c_werror_flag"
10011                          || test ! -s conftest.err'
10012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013   (eval $ac_try) 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); }; } &&
10017          { ac_try='test -s conftest.$ac_objext'
10018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019   (eval $ac_try) 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; }; then
10023   ac_cv_c_inline=$ac_kw; break
10024 else
10025   echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028 fi
10029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10030 done
10031
10032 fi
10033 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10034 echo "${ECHO_T}$ac_cv_c_inline" >&6
10035
10036
10037 case $ac_cv_c_inline in
10038   inline | yes) ;;
10039   *)
10040     case $ac_cv_c_inline in
10041       no) ac_val=;;
10042       *) ac_val=$ac_cv_c_inline;;
10043     esac
10044     cat >>confdefs.h <<_ACEOF
10045 #ifndef __cplusplus
10046 #define inline $ac_val
10047 #endif
10048 _ACEOF
10049     ;;
10050 esac
10051
10052  echo "$as_me:$LINENO: checking for off_t" >&5
10053 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10054 if test "${ac_cv_type_off_t+set}" = set; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063 $ac_includes_default
10064 int
10065 main ()
10066 {
10067 if ((off_t *) 0)
10068   return 0;
10069 if (sizeof (off_t))
10070   return 0;
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 rm -f conftest.$ac_objext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077   (eval $ac_compile) 2>conftest.er1
10078   ac_status=$?
10079   grep -v '^ *+' conftest.er1 >conftest.err
10080   rm -f conftest.er1
10081   cat conftest.err >&5
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); } &&
10084          { ac_try='test -z "$ac_c_werror_flag"
10085                          || test ! -s conftest.err'
10086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087   (eval $ac_try) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; } &&
10091          { ac_try='test -s conftest.$ac_objext'
10092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093   (eval $ac_try) 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; }; then
10097   ac_cv_type_off_t=yes
10098 else
10099   echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10101
10102 ac_cv_type_off_t=no
10103 fi
10104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10105 fi
10106 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10107 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10108 if test $ac_cv_type_off_t = yes; then
10109   :
10110 else
10111
10112 cat >>confdefs.h <<_ACEOF
10113 #define off_t long
10114 _ACEOF
10115
10116 fi
10117
10118  echo "$as_me:$LINENO: checking for size_t" >&5
10119 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10120 if test "${ac_cv_type_size_t+set}" = set; then
10121   echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123   cat >conftest.$ac_ext <<_ACEOF
10124 /* confdefs.h.  */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h.  */
10129 $ac_includes_default
10130 int
10131 main ()
10132 {
10133 if ((size_t *) 0)
10134   return 0;
10135 if (sizeof (size_t))
10136   return 0;
10137   ;
10138   return 0;
10139 }
10140 _ACEOF
10141 rm -f conftest.$ac_objext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143   (eval $ac_compile) 2>conftest.er1
10144   ac_status=$?
10145   grep -v '^ *+' conftest.er1 >conftest.err
10146   rm -f conftest.er1
10147   cat conftest.err >&5
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); } &&
10150          { ac_try='test -z "$ac_c_werror_flag"
10151                          || test ! -s conftest.err'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; } &&
10157          { ac_try='test -s conftest.$ac_objext'
10158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159   (eval $ac_try) 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; }; then
10163   ac_cv_type_size_t=yes
10164 else
10165   echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10167
10168 ac_cv_type_size_t=no
10169 fi
10170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10171 fi
10172 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10173 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10174 if test $ac_cv_type_size_t = yes; then
10175   :
10176 else
10177
10178 cat >>confdefs.h <<_ACEOF
10179 #define size_t unsigned
10180 _ACEOF
10181
10182 fi
10183
10184  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10185 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10186 if test "${ac_cv_struct_tm+set}" = set; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   cat >conftest.$ac_ext <<_ACEOF
10190 /* confdefs.h.  */
10191 _ACEOF
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h.  */
10195 #include <sys/types.h>
10196 #include <time.h>
10197
10198 int
10199 main ()
10200 {
10201 struct tm *tp; tp->tm_sec;
10202   ;
10203   return 0;
10204 }
10205 _ACEOF
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208   (eval $ac_compile) 2>conftest.er1
10209   ac_status=$?
10210   grep -v '^ *+' conftest.er1 >conftest.err
10211   rm -f conftest.er1
10212   cat conftest.err >&5
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); } &&
10215          { ac_try='test -z "$ac_c_werror_flag"
10216                          || test ! -s conftest.err'
10217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218   (eval $ac_try) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; } &&
10222          { ac_try='test -s conftest.$ac_objext'
10223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224   (eval $ac_try) 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; }; then
10228   ac_cv_struct_tm=time.h
10229 else
10230   echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233 ac_cv_struct_tm=sys/time.h
10234 fi
10235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10236 fi
10237 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10238 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10239 if test $ac_cv_struct_tm = sys/time.h; then
10240
10241 cat >>confdefs.h <<\_ACEOF
10242 #define TM_IN_SYS_TIME 1
10243 _ACEOF
10244
10245 fi
10246
10247  echo "$as_me:$LINENO: checking for boolean" >&5
10248 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10249 if test "${ac_cv_type_boolean+set}" = set; then
10250   echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252   cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258 $ac_includes_default
10259 int
10260 main ()
10261 {
10262 if ((boolean *) 0)
10263   return 0;
10264 if (sizeof (boolean))
10265   return 0;
10266   ;
10267   return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272   (eval $ac_compile) 2>conftest.er1
10273   ac_status=$?
10274   grep -v '^ *+' conftest.er1 >conftest.err
10275   rm -f conftest.er1
10276   cat conftest.err >&5
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } &&
10279          { ac_try='test -z "$ac_c_werror_flag"
10280                          || test ! -s conftest.err'
10281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282   (eval $ac_try) 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); }; } &&
10286          { ac_try='test -s conftest.$ac_objext'
10287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288   (eval $ac_try) 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292   ac_cv_type_boolean=yes
10293 else
10294   echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297 ac_cv_type_boolean=no
10298 fi
10299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10300 fi
10301 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10302 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10303 if test $ac_cv_type_boolean = yes; then
10304   :
10305 else
10306
10307 cat >>confdefs.h <<_ACEOF
10308 #define boolean int
10309 _ACEOF
10310
10311 fi
10312
10313  echo "$as_me:$LINENO: checking for bool" >&5
10314 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10315 if test "${ac_cv_type_bool+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 $ac_includes_default
10325 int
10326 main ()
10327 {
10328 if ((bool *) 0)
10329   return 0;
10330 if (sizeof (bool))
10331   return 0;
10332   ;
10333   return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338   (eval $ac_compile) 2>conftest.er1
10339   ac_status=$?
10340   grep -v '^ *+' conftest.er1 >conftest.err
10341   rm -f conftest.er1
10342   cat conftest.err >&5
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); } &&
10345          { ac_try='test -z "$ac_c_werror_flag"
10346                          || test ! -s conftest.err'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; } &&
10352          { ac_try='test -s conftest.$ac_objext'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   ac_cv_type_bool=yes
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_cv_type_bool=no
10364 fi
10365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10366 fi
10367 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10368 echo "${ECHO_T}$ac_cv_type_bool" >&6
10369 if test $ac_cv_type_bool = yes; then
10370   :
10371 else
10372
10373 cat >>confdefs.h <<_ACEOF
10374 #define bool char
10375 _ACEOF
10376
10377 fi
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10391 do
10392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10393 echo "$as_me:$LINENO: checking for $ac_func" >&5
10394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10395 if eval "test \"\${$as_ac_var+set}\" = set"; then
10396   echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398   cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h.  */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h.  */
10404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10406 #define $ac_func innocuous_$ac_func
10407
10408 /* System header to define __stub macros and hopefully few prototypes,
10409     which can conflict with char $ac_func (); below.
10410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10411     <limits.h> exists even on freestanding compilers.  */
10412
10413 #ifdef __STDC__
10414 # include <limits.h>
10415 #else
10416 # include <assert.h>
10417 #endif
10418
10419 #undef $ac_func
10420
10421 /* Override any gcc2 internal prototype to avoid an error.  */
10422 #ifdef __cplusplus
10423 extern "C"
10424 {
10425 #endif
10426 /* We use char because int might match the return type of a gcc2
10427    builtin and then its argument prototype would still apply.  */
10428 char $ac_func ();
10429 /* The GNU C library defines this for functions which it implements
10430     to always fail with ENOSYS.  Some functions are actually named
10431     something starting with __ and the normal name is an alias.  */
10432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10433 choke me
10434 #else
10435 char (*f) () = $ac_func;
10436 #endif
10437 #ifdef __cplusplus
10438 }
10439 #endif
10440
10441 int
10442 main ()
10443 {
10444 return f != $ac_func;
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10451   (eval $ac_link) 2>conftest.er1
10452   ac_status=$?
10453   grep -v '^ *+' conftest.er1 >conftest.err
10454   rm -f conftest.er1
10455   cat conftest.err >&5
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); } &&
10458          { ac_try='test -z "$ac_c_werror_flag"
10459                          || test ! -s conftest.err'
10460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461   (eval $ac_try) 2>&5
10462   ac_status=$?
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); }; } &&
10465          { ac_try='test -s conftest$ac_exeext'
10466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467   (eval $ac_try) 2>&5
10468   ac_status=$?
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); }; }; then
10471   eval "$as_ac_var=yes"
10472 else
10473   echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10475
10476 eval "$as_ac_var=no"
10477 fi
10478 rm -f conftest.err conftest.$ac_objext \
10479       conftest$ac_exeext conftest.$ac_ext
10480 fi
10481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10483 if test `eval echo '${'$as_ac_var'}'` = yes; then
10484   cat >>confdefs.h <<_ACEOF
10485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10486 _ACEOF
10487
10488 fi
10489 done
10490
10491
10492
10493 for ac_prog in avifile-config
10494 do
10495   # Extract the first word of "$ac_prog", so it can be a program name with args.
10496 set dummy $ac_prog; ac_word=$2
10497 echo "$as_me:$LINENO: checking for $ac_word" >&5
10498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10499 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   if test -n "$AVIFILE_CONFIG"; then
10503   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10504 else
10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10507 do
10508   IFS=$as_save_IFS
10509   test -z "$as_dir" && as_dir=.
10510   for ac_exec_ext in '' $ac_executable_extensions; do
10511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10512     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10514     break 2
10515   fi
10516 done
10517 done
10518
10519 fi
10520 fi
10521 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10522 if test -n "$AVIFILE_CONFIG"; then
10523   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10524 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10525 else
10526   echo "$as_me:$LINENO: result: no" >&5
10527 echo "${ECHO_T}no" >&6
10528 fi
10529
10530   test -n "$AVIFILE_CONFIG" && break
10531 done
10532
10533
10534 if test "x$AVIFILE_CONFIG" '!=' "x";then
10535     OLDCPPFLAGS="$CPPFLAGS"
10536     #OLDLDFLAGS="$LDFLAGS"
10537     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10538     #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10539
10540
10541 for ac_header in avifile/version.h version.h
10542 do
10543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10545   echo "$as_me:$LINENO: checking for $ac_header" >&5
10546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10548   echo $ECHO_N "(cached) $ECHO_C" >&6
10549 fi
10550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10552 else
10553   # Is the header compilable?
10554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562 $ac_includes_default
10563 #include <$ac_header>
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567   (eval $ac_compile) 2>conftest.er1
10568   ac_status=$?
10569   grep -v '^ *+' conftest.er1 >conftest.err
10570   rm -f conftest.er1
10571   cat conftest.err >&5
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); } &&
10574          { ac_try='test -z "$ac_c_werror_flag"
10575                          || test ! -s conftest.err'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; } &&
10581          { ac_try='test -s conftest.$ac_objext'
10582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583   (eval $ac_try) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; }; then
10587   ac_header_compiler=yes
10588 else
10589   echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10591
10592 ac_header_compiler=no
10593 fi
10594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10596 echo "${ECHO_T}$ac_header_compiler" >&6
10597
10598 # Is the header present?
10599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h.  */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h.  */
10607 #include <$ac_header>
10608 _ACEOF
10609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10610   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10611   ac_status=$?
10612   grep -v '^ *+' conftest.er1 >conftest.err
10613   rm -f conftest.er1
10614   cat conftest.err >&5
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } >/dev/null; then
10617   if test -s conftest.err; then
10618     ac_cpp_err=$ac_c_preproc_warn_flag
10619     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10620   else
10621     ac_cpp_err=
10622   fi
10623 else
10624   ac_cpp_err=yes
10625 fi
10626 if test -z "$ac_cpp_err"; then
10627   ac_header_preproc=yes
10628 else
10629   echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632   ac_header_preproc=no
10633 fi
10634 rm -f conftest.err conftest.$ac_ext
10635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10636 echo "${ECHO_T}$ac_header_preproc" >&6
10637
10638 # So?  What about this header?
10639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10640   yes:no: )
10641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10645     ac_header_preproc=yes
10646     ;;
10647   no:yes:* )
10648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10650     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10651 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10652     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10654     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10655 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10660     (
10661       cat <<\_ASBOX
10662 ## ------------------------------------------ ##
10663 ## Report this to the AC_PACKAGE_NAME lists.  ##
10664 ## ------------------------------------------ ##
10665 _ASBOX
10666     ) |
10667       sed "s/^/$as_me: WARNING:     /" >&2
10668     ;;
10669 esac
10670 echo "$as_me:$LINENO: checking for $ac_header" >&5
10671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675   eval "$as_ac_Header=\$ac_header_preproc"
10676 fi
10677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10679
10680 fi
10681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10682   cat >>confdefs.h <<_ACEOF
10683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10684 _ACEOF
10685
10686 fi
10687
10688 done
10689
10690     #LDFLAGS="$OLDLDFLAGS"
10691     CPPFLAGS="$OLDCPPFLAGS"
10692 fi
10693
10694 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10695 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10696
10697 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10698     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10699 fi
10700 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10701     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10702 fi
10703
10704 cat > conftest.cpp << EOF
10705
10706 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10707 // so we have to introduce them this way
10708 $HAVE_VERSION_H_DEFINE
10709 $HAVE_AVIFILE_VERSION_H_DEFINE
10710
10711 #ifdef HAVE_VERSION_H
10712   #include <version.h>
10713 #endif
10714 #ifdef HAVE_AVIFILE_VERSION_H
10715   #include <avifile/version.h>
10716 #endif
10717
10718 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10719    #include <avifile.h>
10720    #include <aviplay.h>
10721    #include <fourcc.h>
10722    #include <creators.h>
10723    #include <StreamInfo.h>
10724    #define VERSION6
10725 #else
10726    #include <avifile.h>
10727    #include <aviplay.h>
10728    #include <aviutil.h>
10729    #define Width width
10730    #define Height height
10731    #define Data data
10732    #define Bpp bpp
10733 #endif
10734
10735 void test()
10736 {
10737   IAviReadFile* player;
10738   IAviReadStream* astream;
10739   IAviReadStream* vstream;
10740   player = CreateIAviReadFile(0);
10741   astream = player->GetStream(0, AviStream::Audio);
10742   vstream = player->GetStream(0, AviStream::Video);
10743   vstream -> StartStreaming();
10744   astream -> StartStreaming();
10745 #ifndef VERSION6
10746   MainAVIHeader head;
10747   player->GetFileHeader(&head);
10748   head.dwMicroSecPerFrame;
10749   head.dwTotalFrames;
10750   head.dwStreams;
10751   head.dwWidth;
10752   head.dwHeight;
10753   head.dwMicroSecPerFrame;
10754   astream->GetEndPos(),
10755   astream->GetEndTime());
10756   player->StreamCount();
10757 #else
10758   StreamInfo*audioinfo;
10759   StreamInfo*videoinfo;
10760   audioinfo = astream->GetStreamInfo();
10761   videoinfo = vstream->GetStreamInfo();
10762   videoinfo->GetVideoWidth();
10763   videoinfo->GetVideoHeight();
10764   audioinfo->GetAudioSamplesPerSec();
10765   videoinfo->GetFps();
10766 #endif
10767   CImage*img = vstream->GetFrame();
10768   img->ToRGB();
10769   img->Data();
10770   img->Bpp();
10771   img->Width();
10772   img->Height();
10773   WAVEFORMATEX wave;
10774   astream->GetAudioFormatInfo(&wave,0);
10775   uint_t a,b;
10776   astream->ReadFrames(0,0,0,a,b);
10777 }
10778 int main (int argc, char*argv)
10779 {
10780     return 0;
10781 }
10782 EOF
10783
10784 if test "x$AVIFILE_CONFIG" '!=' "x";then
10785     ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
10786     if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10787       echo "$as_me:$LINENO: result: yes" >&5
10788 echo "${ECHO_T}yes" >&6
10789       AVIFILE=true
10790       export AVIFILE
10791       cat >>confdefs.h <<_ACEOF
10792 #define AVIFILE true
10793 _ACEOF
10794
10795     else
10796       echo "configure: failed program was:" >&5
10797       cat conftest.cpp >&5
10798       echo "$as_me:$LINENO: result: no" >&5
10799 echo "${ECHO_T}no" >&6
10800     fi
10801 else
10802     echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6
10804 fi
10805 rm -f conftest*
10806
10807
10808 avi2swf="avi2swf/Makefile"
10809 if test "x${AVIFILE}" != "xtrue"; then
10810  echo "* Couldn't compile the avifile test program."
10811  echo "* Disabling avi2swf tool..."
10812  echo all install uninstall clean: > avi2swf/Makefile
10813  avi2swf=
10814 fi
10815
10816 if test "x${DISABLE_LAME}" = "xtrue"; then
10817     echo "*" Disabling lame support...
10818     lame_objects=
10819 else
10820     cat >>confdefs.h <<_ACEOF
10821 #define HAVE_LAME 1
10822 _ACEOF
10823
10824     lame_objects='$(lame_objects_2)'
10825 fi
10826
10827
10828 if test "x${UNCOMPRESS}" = "xgzip"; then
10829     cat >>confdefs.h <<_ACEOF
10830 #define USE_GZIP 1
10831 _ACEOF
10832
10833 fi
10834
10835
10836 JPEG2SWF='jpeg2swf$(E)'
10837 export JPEG2SWF
10838 PNG2SWF='png2swf$(E)'
10839 export PNG2SWF
10840
10841 if test "x" = "x"; then
10842     pythonrfxswf="lib/python/Makefile"
10843 else
10844     echo all install uninstall clean: > lib/python/Makefile
10845 fi
10846
10847 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10848   echo "***************************************************"
10849   echo "The following headers/libraries are missing: " ${MISSINGLIBS}
10850   if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10851     echo "Disabling pdf2swf tool..."
10852     rm -f pdf2swf/Makefile
10853     echo all install uninstall clean: > pdf2swf/Makefile
10854   fi
10855   if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10856     echo "Disabling jpeg2swf tool..."
10857     JPEG2SWF=
10858     export JPEG2SWF
10859   fi
10860   if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10861     echo "Disabling png2swf tool..."
10862     PNG2SWF=
10863     export PNG2SWF
10864   fi
10865   if test "x${ZLIBMISSING}" = "xtrue"; then
10866     echo
10867     echo "Warning! Without zlib, you will not be able to read"
10868     echo "or write compressed Flash MX files!"
10869   fi
10870   echo "***************************************************"
10871   FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile ${pythonrfxswf}"
10872 else
10873   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}"
10874 fi
10875
10876
10877
10878           ac_config_files="$ac_config_files ${FILES}"
10879
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