configure: fixed LDFLAGS passing, added -Wno-write-strings
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="src/"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 PNG2SWF
641 GIF2SWF
642 JPEG2SWF
643 PDF2PDF
644 DEVICE_PDF
645 LIBPDF
646 PDF2SWF
647 HAVE_PYTHON_IMAGING
648 PYTHON_INCLUDES
649 PYTHON_LIB
650 USE_GZIP
651 VIDEO_CFLAGS
652 VIDEO_LIBS
653 AVIFILE_CONFIG
654 splash_in_source
655 xpdf_in_source
656 lame_in_source
657 DEVICE_OPENGL
658 FREETYPE_CONFIG
659 HAVE_UNISTD_H
660 VERSION
661 PACKAGE
662 EGREP
663 GREP
664 SYSTEM_BACKTICKS
665 WORDS_BIGENDIAN
666 target_os
667 target_vendor
668 target_cpu
669 target
670 STRIP
671 CXXLIBS
672 SLEXT
673 AR
674 AREXT
675 UNCOMPRESS
676 LN_S
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
680 SET_MAKE
681 RANLIB
682 CPP
683 ac_ct_CXX
684 CXXFLAGS
685 CXX
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 SHARED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_checkmem
743 enable_debug
744 enable_profiling
745 enable_warnings
746 enable_optimizations
747 enable_lame
748 '
749       ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CXX
758 CXXFLAGS
759 CCC
760 CPP'
761
762
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
784
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
810
811 ac_prev=
812 ac_dashdash=
813 for ac_option
814 do
815   # If the previous option needs an argument, assign it.
816   if test -n "$ac_prev"; then
817     eval $ac_prev=\$ac_option
818     ac_prev=
819     continue
820   fi
821
822   case $ac_option in
823   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824   *)    ac_optarg=yes ;;
825   esac
826
827   # Accept the important Cygnus configure options, so we can diagnose typos.
828
829   case $ac_dashdash$ac_option in
830   --)
831     ac_dashdash=yes ;;
832
833   -bindir | --bindir | --bindi | --bind | --bin | --bi)
834     ac_prev=bindir ;;
835   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836     bindir=$ac_optarg ;;
837
838   -build | --build | --buil | --bui | --bu)
839     ac_prev=build_alias ;;
840   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841     build_alias=$ac_optarg ;;
842
843   -cache-file | --cache-file | --cache-fil | --cache-fi \
844   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845     ac_prev=cache_file ;;
846   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848     cache_file=$ac_optarg ;;
849
850   --config-cache | -C)
851     cache_file=config.cache ;;
852
853   -datadir | --datadir | --datadi | --datad)
854     ac_prev=datadir ;;
855   -datadir=* | --datadir=* | --datadi=* | --datad=*)
856     datadir=$ac_optarg ;;
857
858   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859   | --dataroo | --dataro | --datar)
860     ac_prev=datarootdir ;;
861   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863     datarootdir=$ac_optarg ;;
864
865   -disable-* | --disable-*)
866     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867     # Reject names that are not valid shell variable names.
868     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
870    { (exit 1); exit 1; }; }
871     ac_useropt_orig=$ac_useropt
872     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873     case $ac_user_opts in
874       *"
875 "enable_$ac_useropt"
876 "*) ;;
877       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878          ac_unrecognized_sep=', ';;
879     esac
880     eval enable_$ac_useropt=no ;;
881
882   -docdir | --docdir | --docdi | --doc | --do)
883     ac_prev=docdir ;;
884   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885     docdir=$ac_optarg ;;
886
887   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888     ac_prev=dvidir ;;
889   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890     dvidir=$ac_optarg ;;
891
892   -enable-* | --enable-*)
893     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894     # Reject names that are not valid shell variable names.
895     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
897    { (exit 1); exit 1; }; }
898     ac_useropt_orig=$ac_useropt
899     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900     case $ac_user_opts in
901       *"
902 "enable_$ac_useropt"
903 "*) ;;
904       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905          ac_unrecognized_sep=', ';;
906     esac
907     eval enable_$ac_useropt=\$ac_optarg ;;
908
909   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911   | --exec | --exe | --ex)
912     ac_prev=exec_prefix ;;
913   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915   | --exec=* | --exe=* | --ex=*)
916     exec_prefix=$ac_optarg ;;
917
918   -gas | --gas | --ga | --g)
919     # Obsolete; use --with-gas.
920     with_gas=yes ;;
921
922   -help | --help | --hel | --he | -h)
923     ac_init_help=long ;;
924   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925     ac_init_help=recursive ;;
926   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927     ac_init_help=short ;;
928
929   -host | --host | --hos | --ho)
930     ac_prev=host_alias ;;
931   -host=* | --host=* | --hos=* | --ho=*)
932     host_alias=$ac_optarg ;;
933
934   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935     ac_prev=htmldir ;;
936   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937   | --ht=*)
938     htmldir=$ac_optarg ;;
939
940   -includedir | --includedir | --includedi | --included | --include \
941   | --includ | --inclu | --incl | --inc)
942     ac_prev=includedir ;;
943   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944   | --includ=* | --inclu=* | --incl=* | --inc=*)
945     includedir=$ac_optarg ;;
946
947   -infodir | --infodir | --infodi | --infod | --info | --inf)
948     ac_prev=infodir ;;
949   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950     infodir=$ac_optarg ;;
951
952   -libdir | --libdir | --libdi | --libd)
953     ac_prev=libdir ;;
954   -libdir=* | --libdir=* | --libdi=* | --libd=*)
955     libdir=$ac_optarg ;;
956
957   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958   | --libexe | --libex | --libe)
959     ac_prev=libexecdir ;;
960   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961   | --libexe=* | --libex=* | --libe=*)
962     libexecdir=$ac_optarg ;;
963
964   -localedir | --localedir | --localedi | --localed | --locale)
965     ac_prev=localedir ;;
966   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967     localedir=$ac_optarg ;;
968
969   -localstatedir | --localstatedir | --localstatedi | --localstated \
970   | --localstate | --localstat | --localsta | --localst | --locals)
971     ac_prev=localstatedir ;;
972   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974     localstatedir=$ac_optarg ;;
975
976   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977     ac_prev=mandir ;;
978   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979     mandir=$ac_optarg ;;
980
981   -nfp | --nfp | --nf)
982     # Obsolete; use --without-fp.
983     with_fp=no ;;
984
985   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986   | --no-cr | --no-c | -n)
987     no_create=yes ;;
988
989   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991     no_recursion=yes ;;
992
993   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995   | --oldin | --oldi | --old | --ol | --o)
996     ac_prev=oldincludedir ;;
997   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000     oldincludedir=$ac_optarg ;;
1001
1002   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003     ac_prev=prefix ;;
1004   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005     prefix=$ac_optarg ;;
1006
1007   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008   | --program-pre | --program-pr | --program-p)
1009     ac_prev=program_prefix ;;
1010   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012     program_prefix=$ac_optarg ;;
1013
1014   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015   | --program-suf | --program-su | --program-s)
1016     ac_prev=program_suffix ;;
1017   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019     program_suffix=$ac_optarg ;;
1020
1021   -program-transform-name | --program-transform-name \
1022   | --program-transform-nam | --program-transform-na \
1023   | --program-transform-n | --program-transform- \
1024   | --program-transform | --program-transfor \
1025   | --program-transfo | --program-transf \
1026   | --program-trans | --program-tran \
1027   | --progr-tra | --program-tr | --program-t)
1028     ac_prev=program_transform_name ;;
1029   -program-transform-name=* | --program-transform-name=* \
1030   | --program-transform-nam=* | --program-transform-na=* \
1031   | --program-transform-n=* | --program-transform-=* \
1032   | --program-transform=* | --program-transfor=* \
1033   | --program-transfo=* | --program-transf=* \
1034   | --program-trans=* | --program-tran=* \
1035   | --progr-tra=* | --program-tr=* | --program-t=*)
1036     program_transform_name=$ac_optarg ;;
1037
1038   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039     ac_prev=pdfdir ;;
1040   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041     pdfdir=$ac_optarg ;;
1042
1043   -psdir | --psdir | --psdi | --psd | --ps)
1044     ac_prev=psdir ;;
1045   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046     psdir=$ac_optarg ;;
1047
1048   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049   | -silent | --silent | --silen | --sile | --sil)
1050     silent=yes ;;
1051
1052   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053     ac_prev=sbindir ;;
1054   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055   | --sbi=* | --sb=*)
1056     sbindir=$ac_optarg ;;
1057
1058   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060   | --sharedst | --shareds | --shared | --share | --shar \
1061   | --sha | --sh)
1062     ac_prev=sharedstatedir ;;
1063   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066   | --sha=* | --sh=*)
1067     sharedstatedir=$ac_optarg ;;
1068
1069   -site | --site | --sit)
1070     ac_prev=site ;;
1071   -site=* | --site=* | --sit=*)
1072     site=$ac_optarg ;;
1073
1074   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075     ac_prev=srcdir ;;
1076   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077     srcdir=$ac_optarg ;;
1078
1079   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080   | --syscon | --sysco | --sysc | --sys | --sy)
1081     ac_prev=sysconfdir ;;
1082   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084     sysconfdir=$ac_optarg ;;
1085
1086   -target | --target | --targe | --targ | --tar | --ta | --t)
1087     ac_prev=target_alias ;;
1088   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089     target_alias=$ac_optarg ;;
1090
1091   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092     verbose=yes ;;
1093
1094   -version | --version | --versio | --versi | --vers | -V)
1095     ac_init_version=: ;;
1096
1097   -with-* | --with-*)
1098     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1102    { (exit 1); exit 1; }; }
1103     ac_useropt_orig=$ac_useropt
1104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105     case $ac_user_opts in
1106       *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110          ac_unrecognized_sep=', ';;
1111     esac
1112     eval with_$ac_useropt=\$ac_optarg ;;
1113
1114   -without-* | --without-*)
1115     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1119    { (exit 1); exit 1; }; }
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval with_$ac_useropt=no ;;
1130
1131   --x)
1132     # Obsolete; use --with-x.
1133     with_x=yes ;;
1134
1135   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136   | --x-incl | --x-inc | --x-in | --x-i)
1137     ac_prev=x_includes ;;
1138   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140     x_includes=$ac_optarg ;;
1141
1142   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144     ac_prev=x_libraries ;;
1145   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147     x_libraries=$ac_optarg ;;
1148
1149   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1150 Try \`$0 --help' for more information." >&2
1151    { (exit 1); exit 1; }; }
1152     ;;
1153
1154   *=*)
1155     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1158       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1159    { (exit 1); exit 1; }; }
1160     eval $ac_envvar=\$ac_optarg
1161     export $ac_envvar ;;
1162
1163   *)
1164     # FIXME: should be removed in autoconf 3.0.
1165     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169     ;;
1170
1171   esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1177    { (exit 1); exit 1; }; }
1178 fi
1179
1180 if test -n "$ac_unrecognized_opts"; then
1181   case $enable_option_checking in
1182     no) ;;
1183     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1184    { (exit 1); exit 1; }; } ;;
1185     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186   esac
1187 fi
1188
1189 # Check all directory arguments for consistency.
1190 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191                 datadir sysconfdir sharedstatedir localstatedir includedir \
1192                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193                 libdir localedir mandir
1194 do
1195   eval ac_val=\$$ac_var
1196   # Remove trailing slashes.
1197   case $ac_val in
1198     */ )
1199       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200       eval $ac_var=\$ac_val;;
1201   esac
1202   # Be sure to have absolute directory names.
1203   case $ac_val in
1204     [\\/$]* | ?:[\\/]* )  continue;;
1205     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206   esac
1207   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1208    { (exit 1); exit 1; }; }
1209 done
1210
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1214 build=$build_alias
1215 host=$host_alias
1216 target=$target_alias
1217
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220   if test "x$build_alias" = x; then
1221     cross_compiling=maybe
1222     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1223     If a cross compiler is detected then cross compile mode will be used." >&2
1224   elif test "x$build_alias" != "x$host_alias"; then
1225     cross_compiling=yes
1226   fi
1227 fi
1228
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232 test "$silent" = yes && exec 6>/dev/null
1233
1234
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1239    { (exit 1); exit 1; }; }
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1242    { (exit 1); exit 1; }; }
1243
1244
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247   ac_srcdir_defaulted=yes
1248   # Try the directory containing this script, then the parent directory.
1249   ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251          X"$as_myself" : 'X\(//\)[^/]' \| \
1252          X"$as_myself" : 'X\(//\)$' \| \
1253          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\/\)[^/].*/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\).*/{
1268             s//\1/
1269             q
1270           }
1271           s/.*/./; q'`
1272   srcdir=$ac_confdir
1273   if test ! -r "$srcdir/$ac_unique_file"; then
1274     srcdir=..
1275   fi
1276 else
1277   ac_srcdir_defaulted=no
1278 fi
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1282    { (exit 1); exit 1; }; }
1283 fi
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1287    { (exit 1); exit 1; }; }
1288         pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291   srcdir=.
1292 fi
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301   eval ac_env_${ac_var}_value=\$${ac_var}
1302   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1305
1306 #
1307 # Report the --help message.
1308 #
1309 if test "$ac_init_help" = "long"; then
1310   # Omit some internal or obsolete options to make the list less imposing.
1311   # This message is too long to be a string in the A/UX 3.1 sh.
1312   cat <<_ACEOF
1313 \`configure' configures this package to adapt to many kinds of systems.
1314
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE.  See below for descriptions of some of the useful variables.
1319
1320 Defaults for the options are specified in brackets.
1321
1322 Configuration:
1323   -h, --help              display this help and exit
1324       --help=short        display options specific to this package
1325       --help=recursive    display the short help of all the included packages
1326   -V, --version           display version information and exit
1327   -q, --quiet, --silent   do not print \`checking...' messages
1328       --cache-file=FILE   cache test results in FILE [disabled]
1329   -C, --config-cache      alias for \`--cache-file=config.cache'
1330   -n, --no-create         do not create output files
1331       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1332
1333 Installation directories:
1334   --prefix=PREFIX         install architecture-independent files in PREFIX
1335                           [$ac_default_prefix]
1336   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1337                           [PREFIX]
1338
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1343
1344 For better control, use the options below.
1345
1346 Fine tuning of the installation directories:
1347   --bindir=DIR            user executables [EPREFIX/bin]
1348   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1349   --libexecdir=DIR        program executables [EPREFIX/libexec]
1350   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1351   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1352   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1353   --libdir=DIR            object code libraries [EPREFIX/lib]
1354   --includedir=DIR        C header files [PREFIX/include]
1355   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1356   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1357   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1358   --infodir=DIR           info documentation [DATAROOTDIR/info]
1359   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1360   --mandir=DIR            man documentation [DATAROOTDIR/man]
1361   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1362   --htmldir=DIR           html documentation [DOCDIR]
1363   --dvidir=DIR            dvi documentation [DOCDIR]
1364   --pdfdir=DIR            pdf documentation [DOCDIR]
1365   --psdir=DIR             ps documentation [DOCDIR]
1366 _ACEOF
1367
1368   cat <<\_ACEOF
1369
1370 Program names:
1371   --program-prefix=PREFIX            prepend PREFIX to installed program names
1372   --program-suffix=SUFFIX            append SUFFIX to installed program names
1373   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378   --target=TARGET   configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383
1384   cat <<\_ACEOF
1385
1386 Optional Features:
1387   --disable-option-checking  ignore unrecognized --enable/--with options
1388   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390   --enable-checkmem       turn on ccmalloc debugging
1391   --enable-debug          turn on debugging
1392   --enable-profiling      turn on profiling
1393   --enable-warnings        turn on compiler warnings
1394   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1395   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1396
1397 Some influential environment variables:
1398   CC          C compiler command
1399   CFLAGS      C compiler flags
1400   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1401               nonstandard directory <lib dir>
1402   LIBS        libraries to pass to the linker, e.g. -l<library>
1403   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1404               you have headers in a nonstandard directory <include dir>
1405   CXX         C++ compiler command
1406   CXXFLAGS    C++ compiler flags
1407   CPP         C preprocessor
1408
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1411
1412 _ACEOF
1413 ac_status=$?
1414 fi
1415
1416 if test "$ac_init_help" = "recursive"; then
1417   # If there are subdirs, report their specific --help.
1418   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419     test -d "$ac_dir" ||
1420       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421       continue
1422     ac_builddir=.
1423
1424 case "$ac_dir" in
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *)
1427   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428   # A ".." for each directory in $ac_dir_suffix.
1429   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430   case $ac_top_builddir_sub in
1431   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433   esac ;;
1434 esac
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1439
1440 case $srcdir in
1441   .)  # We are building in place.
1442     ac_srcdir=.
1443     ac_top_srcdir=$ac_top_builddir_sub
1444     ac_abs_top_srcdir=$ac_pwd ;;
1445   [\\/]* | ?:[\\/]* )  # Absolute name.
1446     ac_srcdir=$srcdir$ac_dir_suffix;
1447     ac_top_srcdir=$srcdir
1448     ac_abs_top_srcdir=$srcdir ;;
1449   *) # Relative name.
1450     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451     ac_top_srcdir=$ac_top_build_prefix$srcdir
1452     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 esac
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455
1456     cd "$ac_dir" || { ac_status=$?; continue; }
1457     # Check for guested configure.
1458     if test -f "$ac_srcdir/configure.gnu"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461     elif test -f "$ac_srcdir/configure"; then
1462       echo &&
1463       $SHELL "$ac_srcdir/configure" --help=recursive
1464     else
1465       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466     fi || ac_status=$?
1467     cd "$ac_pwd" || { ac_status=$?; break; }
1468   done
1469 fi
1470
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473   cat <<\_ACEOF
1474 configure
1475 generated by GNU Autoconf 2.63
1476
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482   exit
1483 fi
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1487
1488 It was created by $as_me, which was
1489 generated by GNU Autoconf 2.63.  Invocation command line was
1490
1491   $ $0 $@
1492
1493 _ACEOF
1494 exec 5>>config.log
1495 {
1496 cat <<_ASUNAME
1497 ## --------- ##
1498 ## Platform. ##
1499 ## --------- ##
1500
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1506
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1509
1510 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1511 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1514 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1515 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1516 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1517
1518 _ASUNAME
1519
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1522 do
1523   IFS=$as_save_IFS
1524   test -z "$as_dir" && as_dir=.
1525   $as_echo "PATH: $as_dir"
1526 done
1527 IFS=$as_save_IFS
1528
1529 } >&5
1530
1531 cat >&5 <<_ACEOF
1532
1533
1534 ## ----------- ##
1535 ## Core tests. ##
1536 ## ----------- ##
1537
1538 _ACEOF
1539
1540
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1546 ac_configure_args=
1547 ac_configure_args0=
1548 ac_configure_args1=
1549 ac_must_keep_next=false
1550 for ac_pass in 1 2
1551 do
1552   for ac_arg
1553   do
1554     case $ac_arg in
1555     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557     | -silent | --silent | --silen | --sile | --sil)
1558       continue ;;
1559     *\'*)
1560       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1561     esac
1562     case $ac_pass in
1563     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1564     2)
1565       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566       if test $ac_must_keep_next = true; then
1567         ac_must_keep_next=false # Got value, back to normal.
1568       else
1569         case $ac_arg in
1570           *=* | --config-cache | -C | -disable-* | --disable-* \
1571           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573           | -with-* | --with-* | -without-* | --without-* | --x)
1574             case "$ac_configure_args0 " in
1575               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1576             esac
1577             ;;
1578           -* ) ac_must_keep_next=true ;;
1579         esac
1580       fi
1581       ac_configure_args="$ac_configure_args '$ac_arg'"
1582       ;;
1583     esac
1584   done
1585 done
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1588
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log.  We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595   # Save into config.log some information that might help in debugging.
1596   {
1597     echo
1598
1599     cat <<\_ASBOX
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1603 _ASBOX
1604     echo
1605     # The following way of writing the cache mishandles newlines in values,
1606 (
1607   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608     eval ac_val=\$$ac_var
1609     case $ac_val in #(
1610     *${as_nl}*)
1611       case $ac_var in #(
1612       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1614       esac
1615       case $ac_var in #(
1616       _ | IFS | as_nl) ;; #(
1617       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1618       *) $as_unset $ac_var ;;
1619       esac ;;
1620     esac
1621   done
1622   (set) 2>&1 |
1623     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624     *${as_nl}ac_space=\ *)
1625       sed -n \
1626         "s/'\''/'\''\\\\'\'''\''/g;
1627           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1628       ;; #(
1629     *)
1630       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1631       ;;
1632     esac |
1633     sort
1634 )
1635     echo
1636
1637     cat <<\_ASBOX
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1641 _ASBOX
1642     echo
1643     for ac_var in $ac_subst_vars
1644     do
1645       eval ac_val=\$$ac_var
1646       case $ac_val in
1647       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648       esac
1649       $as_echo "$ac_var='\''$ac_val'\''"
1650     done | sort
1651     echo
1652
1653     if test -n "$ac_subst_files"; then
1654       cat <<\_ASBOX
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1658 _ASBOX
1659       echo
1660       for ac_var in $ac_subst_files
1661       do
1662         eval ac_val=\$$ac_var
1663         case $ac_val in
1664         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665         esac
1666         $as_echo "$ac_var='\''$ac_val'\''"
1667       done | sort
1668       echo
1669     fi
1670
1671     if test -s confdefs.h; then
1672       cat <<\_ASBOX
1673 ## ----------- ##
1674 ## confdefs.h. ##
1675 ## ----------- ##
1676 _ASBOX
1677       echo
1678       cat confdefs.h
1679       echo
1680     fi
1681     test "$ac_signal" != 0 &&
1682       $as_echo "$as_me: caught signal $ac_signal"
1683     $as_echo "$as_me: exit $exit_status"
1684   } >&5
1685   rm -f core *.core core.conftest.* &&
1686     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1687     exit $exit_status
1688 ' 0
1689 for ac_signal in 1 2 13 15; do
1690   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1691 done
1692 ac_signal=0
1693
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1696
1697 # Predefined preprocessor variables.
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1721 _ACEOF
1722
1723
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer an explicitly selected file to automatically selected ones.
1726 ac_site_file1=NONE
1727 ac_site_file2=NONE
1728 if test -n "$CONFIG_SITE"; then
1729   ac_site_file1=$CONFIG_SITE
1730 elif test "x$prefix" != xNONE; then
1731   ac_site_file1=$prefix/share/config.site
1732   ac_site_file2=$prefix/etc/config.site
1733 else
1734   ac_site_file1=$ac_default_prefix/share/config.site
1735   ac_site_file2=$ac_default_prefix/etc/config.site
1736 fi
1737 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1738 do
1739   test "x$ac_site_file" = xNONE && continue
1740   if test -r "$ac_site_file"; then
1741     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1743     sed 's/^/| /' "$ac_site_file" >&5
1744     . "$ac_site_file"
1745   fi
1746 done
1747
1748 if test -r "$cache_file"; then
1749   # Some versions of bash will fail to source /dev/null (special
1750   # files actually), so we avoid doing that.
1751   if test -f "$cache_file"; then
1752     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 $as_echo "$as_me: loading cache $cache_file" >&6;}
1754     case $cache_file in
1755       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756       *)                      . "./$cache_file";;
1757     esac
1758   fi
1759 else
1760   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 $as_echo "$as_me: creating cache $cache_file" >&6;}
1762   >$cache_file
1763 fi
1764
1765 # Check that the precious variables saved in the cache have kept the same
1766 # value.
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770   eval ac_new_set=\$ac_env_${ac_var}_set
1771   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772   eval ac_new_val=\$ac_env_${ac_var}_value
1773   case $ac_old_set,$ac_new_set in
1774     set,)
1775       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777       ac_cache_corrupted=: ;;
1778     ,set)
1779       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781       ac_cache_corrupted=: ;;
1782     ,);;
1783     *)
1784       if test "x$ac_old_val" != "x$ac_new_val"; then
1785         # differences in whitespace do not lead to failure.
1786         ac_old_val_w=`echo x $ac_old_val`
1787         ac_new_val_w=`echo x $ac_new_val`
1788         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1789           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1790 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1791           ac_cache_corrupted=:
1792         else
1793           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1794 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1795           eval $ac_var=\$ac_old_val
1796         fi
1797         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1798 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1799         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1800 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1801       fi;;
1802   esac
1803   # Pass precious variables to config.status.
1804   if test "$ac_new_set" = set; then
1805     case $ac_new_val in
1806     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1807     *) ac_arg=$ac_var=$ac_new_val ;;
1808     esac
1809     case " $ac_configure_args " in
1810       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1811       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1812     esac
1813   fi
1814 done
1815 if $ac_cache_corrupted; then
1816   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1818   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1819 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1820   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1821 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1822    { (exit 1); exit 1; }; }
1823 fi
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841 ac_ext=c
1842 ac_cpp='$CPP $CPPFLAGS'
1843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846
1847
1848
1849
1850 # ------------------- option parsing -------------------------------
1851
1852 DEBUG=
1853 CHECKMEM=
1854 PROFILING=
1855 ENABLE_WARNINGS=
1856 OPTIMIZE=
1857 DISABLE_LAME=
1858
1859 # Check whether --enable-checkmem was given.
1860 if test "${enable_checkmem+set}" = set; then
1861   enableval=$enable_checkmem; CHECKMEM=true
1862 fi
1863
1864 # Check whether --enable-debug was given.
1865 if test "${enable_debug+set}" = set; then
1866   enableval=$enable_debug; DEBUG=true
1867 fi
1868
1869 # Check whether --enable-profiling was given.
1870 if test "${enable_profiling+set}" = set; then
1871   enableval=$enable_profiling; PROFILING=true
1872 fi
1873
1874 # Check whether --enable-warnings was given.
1875 if test "${enable_warnings+set}" = set; then
1876   enableval=$enable_warnings; ENABLE_WARNINGS=true
1877 fi
1878
1879 # Check whether --enable-optimizations was given.
1880 if test "${enable_optimizations+set}" = set; then
1881   enableval=$enable_optimizations; OPTIMIZE=true
1882 fi
1883
1884 # Check whether --enable-lame was given.
1885 if test "${enable_lame+set}" = set; then
1886   enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1887     DISABLE_LAME=yes
1888 fi
1889 else
1890   DISABLE_LAME=
1891 fi
1892
1893
1894 PACKAGE=swftools
1895 VERSION=2009-08-12-1514
1896
1897 # ------------------------------------------------------------------
1898
1899 if test "x${srcdir}" != "x."; then
1900     echo "--srcdir is not supported"
1901     exit 1
1902 fi
1903
1904 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type -Wno-write-strings"
1905 if test "x$ENABLE_WARNINGS" '!=' "x";then
1906     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
1907 fi
1908
1909 if test "x$CHECKMEM" '!=' "x";then
1910     DEBUG=yes
1911 fi
1912 if test "x$PROFILING" '!=' "x";then
1913     DEBUG=yes
1914 fi
1915 if test "x$DEBUG" '!=' "x";then
1916     if test "x$PROFILING" = "x";then
1917         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1918         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1919         LDFLAGS="-g $LDFLAGS"
1920     else
1921         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1922         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1923         LDFLAGS="-g -pg $LDFLAGS"
1924     fi
1925 else if test "x$OPTIMIZE" '!=' "x"; then
1926     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1927     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1928 else
1929     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1930     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1931 fi
1932 fi
1933
1934 CFLAGS="-fPIC $CFLAGS"
1935 CXXFLAGS="-fPIC $CFLAGS"
1936
1937 #OLDGCC=1
1938 #if test "x$OLDGCC" '!=' "x";then
1939 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1940 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1941 #     CFLAGS="$CFLAGS -ansi -pendantic"
1942 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1943 #fi
1944
1945 export PACKAGE VERSION CFLAGS CXXFLAGS
1946
1947
1948 ac_aux_dir=
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950   if test -f "$ac_dir/install-sh"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/install-sh -c"
1953     break
1954   elif test -f "$ac_dir/install.sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install.sh -c"
1957     break
1958   elif test -f "$ac_dir/shtool"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/shtool install -c"
1961     break
1962   fi
1963 done
1964 if test -z "$ac_aux_dir"; then
1965   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967    { (exit 1); exit 1; }; }
1968 fi
1969
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1977
1978
1979 # Make sure we can run config.sub.
1980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1981   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1982 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1983    { (exit 1); exit 1; }; }
1984
1985 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1986 $as_echo_n "checking build system type... " >&6; }
1987 if test "${ac_cv_build+set}" = set; then
1988   $as_echo_n "(cached) " >&6
1989 else
1990   ac_build_alias=$build_alias
1991 test "x$ac_build_alias" = x &&
1992   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1993 test "x$ac_build_alias" = x &&
1994   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1995 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1996    { (exit 1); exit 1; }; }
1997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1998   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1999 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2000    { (exit 1); exit 1; }; }
2001
2002 fi
2003 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2004 $as_echo "$ac_cv_build" >&6; }
2005 case $ac_cv_build in
2006 *-*-*) ;;
2007 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2008 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2009    { (exit 1); exit 1; }; };;
2010 esac
2011 build=$ac_cv_build
2012 ac_save_IFS=$IFS; IFS='-'
2013 set x $ac_cv_build
2014 shift
2015 build_cpu=$1
2016 build_vendor=$2
2017 shift; shift
2018 # Remember, the first character of IFS is used to create $*,
2019 # except with old shells:
2020 build_os=$*
2021 IFS=$ac_save_IFS
2022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2023
2024
2025 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2026 $as_echo_n "checking host system type... " >&6; }
2027 if test "${ac_cv_host+set}" = set; then
2028   $as_echo_n "(cached) " >&6
2029 else
2030   if test "x$host_alias" = x; then
2031   ac_cv_host=$ac_cv_build
2032 else
2033   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2034     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2035 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2036    { (exit 1); exit 1; }; }
2037 fi
2038
2039 fi
2040 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2041 $as_echo "$ac_cv_host" >&6; }
2042 case $ac_cv_host in
2043 *-*-*) ;;
2044 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2045 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2046    { (exit 1); exit 1; }; };;
2047 esac
2048 host=$ac_cv_host
2049 ac_save_IFS=$IFS; IFS='-'
2050 set x $ac_cv_host
2051 shift
2052 host_cpu=$1
2053 host_vendor=$2
2054 shift; shift
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2057 host_os=$*
2058 IFS=$ac_save_IFS
2059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2060
2061
2062
2063 SHARED="-shared"
2064 MACOSX=
2065 case $host_os in
2066     *darwin* )
2067         MACOSX=yes
2068         CFLAGS="$CFLAGS"
2069         CXXFLAGS="$CXXFLAGS -fno-rtti"
2070         SHARED="-bundle"
2071         if test -d /opt/local/include && test -d /opt/local/lib; then
2072             CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2073             LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2074         fi
2075         # Use fink packages if available.
2076         #if test -d /sw/include && test -d /sw/lib; then
2077         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
2078         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
2079         #fi
2080         ;;
2081 esac
2082
2083
2084
2085  ac_ext=c
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 if test -n "$ac_tool_prefix"; then
2091   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 $as_echo_n "checking for $ac_word... " >&6; }
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096   $as_echo_n "(cached) " >&6
2097 else
2098   if test -n "$CC"; then
2099   ac_cv_prog_CC="$CC" # Let the user override the test.
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2109     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110     break 2
2111   fi
2112 done
2113 done
2114 IFS=$as_save_IFS
2115
2116 fi
2117 fi
2118 CC=$ac_cv_prog_CC
2119 if test -n "$CC"; then
2120   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2121 $as_echo "$CC" >&6; }
2122 else
2123   { $as_echo "$as_me:$LINENO: result: no" >&5
2124 $as_echo "no" >&6; }
2125 fi
2126
2127
2128 fi
2129 if test -z "$ac_cv_prog_CC"; then
2130   ac_ct_CC=$CC
2131   # Extract the first word of "gcc", so it can be a program name with args.
2132 set dummy gcc; ac_word=$2
2133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 $as_echo_n "checking for $ac_word... " >&6; }
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136   $as_echo_n "(cached) " >&6
2137 else
2138   if test -n "$ac_ct_CC"; then
2139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   for ac_exec_ext in '' $ac_executable_extensions; do
2147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2148     ac_cv_prog_ac_ct_CC="gcc"
2149     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150     break 2
2151   fi
2152 done
2153 done
2154 IFS=$as_save_IFS
2155
2156 fi
2157 fi
2158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2159 if test -n "$ac_ct_CC"; then
2160   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2161 $as_echo "$ac_ct_CC" >&6; }
2162 else
2163   { $as_echo "$as_me:$LINENO: result: no" >&5
2164 $as_echo "no" >&6; }
2165 fi
2166
2167   if test "x$ac_ct_CC" = x; then
2168     CC=""
2169   else
2170     case $cross_compiling:$ac_tool_warned in
2171 yes:)
2172 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2174 ac_tool_warned=yes ;;
2175 esac
2176     CC=$ac_ct_CC
2177   fi
2178 else
2179   CC="$ac_cv_prog_CC"
2180 fi
2181
2182 if test -z "$CC"; then
2183           if test -n "$ac_tool_prefix"; then
2184     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2185 set dummy ${ac_tool_prefix}cc; ac_word=$2
2186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 $as_echo_n "checking for $ac_word... " >&6; }
2188 if test "${ac_cv_prog_CC+set}" = set; then
2189   $as_echo_n "(cached) " >&6
2190 else
2191   if test -n "$CC"; then
2192   ac_cv_prog_CC="$CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197   IFS=$as_save_IFS
2198   test -z "$as_dir" && as_dir=.
2199   for ac_exec_ext in '' $ac_executable_extensions; do
2200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201     ac_cv_prog_CC="${ac_tool_prefix}cc"
2202     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203     break 2
2204   fi
2205 done
2206 done
2207 IFS=$as_save_IFS
2208
2209 fi
2210 fi
2211 CC=$ac_cv_prog_CC
2212 if test -n "$CC"; then
2213   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2214 $as_echo "$CC" >&6; }
2215 else
2216   { $as_echo "$as_me:$LINENO: result: no" >&5
2217 $as_echo "no" >&6; }
2218 fi
2219
2220
2221   fi
2222 fi
2223 if test -z "$CC"; then
2224   # Extract the first word of "cc", so it can be a program name with args.
2225 set dummy cc; ac_word=$2
2226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229   $as_echo_n "(cached) " >&6
2230 else
2231   if test -n "$CC"; then
2232   ac_cv_prog_CC="$CC" # Let the user override the test.
2233 else
2234   ac_prog_rejected=no
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238   IFS=$as_save_IFS
2239   test -z "$as_dir" && as_dir=.
2240   for ac_exec_ext in '' $ac_executable_extensions; do
2241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2243        ac_prog_rejected=yes
2244        continue
2245      fi
2246     ac_cv_prog_CC="cc"
2247     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251 done
2252 IFS=$as_save_IFS
2253
2254 if test $ac_prog_rejected = yes; then
2255   # We found a bogon in the path, so make sure we never use it.
2256   set dummy $ac_cv_prog_CC
2257   shift
2258   if test $# != 0; then
2259     # We chose a different compiler from the bogus one.
2260     # However, it has the same basename, so the bogon will be chosen
2261     # first if we set CC to just the basename; use the full file name.
2262     shift
2263     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2264   fi
2265 fi
2266 fi
2267 fi
2268 CC=$ac_cv_prog_CC
2269 if test -n "$CC"; then
2270   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2271 $as_echo "$CC" >&6; }
2272 else
2273   { $as_echo "$as_me:$LINENO: result: no" >&5
2274 $as_echo "no" >&6; }
2275 fi
2276
2277
2278 fi
2279 if test -z "$CC"; then
2280   if test -n "$ac_tool_prefix"; then
2281   for ac_prog in cl.exe
2282   do
2283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 $as_echo_n "checking for $ac_word... " >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288   $as_echo_n "(cached) " >&6
2289 else
2290   if test -n "$CC"; then
2291   ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2301     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306 IFS=$as_save_IFS
2307
2308 fi
2309 fi
2310 CC=$ac_cv_prog_CC
2311 if test -n "$CC"; then
2312   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2313 $as_echo "$CC" >&6; }
2314 else
2315   { $as_echo "$as_me:$LINENO: result: no" >&5
2316 $as_echo "no" >&6; }
2317 fi
2318
2319
2320     test -n "$CC" && break
2321   done
2322 fi
2323 if test -z "$CC"; then
2324   ac_ct_CC=$CC
2325   for ac_prog in cl.exe
2326 do
2327   # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 $as_echo_n "checking for $ac_word... " >&6; }
2331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2332   $as_echo_n "(cached) " >&6
2333 else
2334   if test -n "$ac_ct_CC"; then
2335   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340   IFS=$as_save_IFS
2341   test -z "$as_dir" && as_dir=.
2342   for ac_exec_ext in '' $ac_executable_extensions; do
2343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344     ac_cv_prog_ac_ct_CC="$ac_prog"
2345     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346     break 2
2347   fi
2348 done
2349 done
2350 IFS=$as_save_IFS
2351
2352 fi
2353 fi
2354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2355 if test -n "$ac_ct_CC"; then
2356   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2357 $as_echo "$ac_ct_CC" >&6; }
2358 else
2359   { $as_echo "$as_me:$LINENO: result: no" >&5
2360 $as_echo "no" >&6; }
2361 fi
2362
2363
2364   test -n "$ac_ct_CC" && break
2365 done
2366
2367   if test "x$ac_ct_CC" = x; then
2368     CC=""
2369   else
2370     case $cross_compiling:$ac_tool_warned in
2371 yes:)
2372 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2374 ac_tool_warned=yes ;;
2375 esac
2376     CC=$ac_ct_CC
2377   fi
2378 fi
2379
2380 fi
2381
2382
2383 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2386 See \`config.log' for more details." >&5
2387 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2388 See \`config.log' for more details." >&2;}
2389    { (exit 1); exit 1; }; }; }
2390
2391 # Provide some information about the compiler.
2392 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2393 set X $ac_compile
2394 ac_compiler=$2
2395 { (ac_try="$ac_compiler --version >&5"
2396 case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2401 $as_echo "$ac_try_echo") >&5
2402   (eval "$ac_compiler --version >&5") 2>&5
2403   ac_status=$?
2404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }
2406 { (ac_try="$ac_compiler -v >&5"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2412 $as_echo "$ac_try_echo") >&5
2413   (eval "$ac_compiler -v >&5") 2>&5
2414   ac_status=$?
2415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }
2417 { (ac_try="$ac_compiler -V >&5"
2418 case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2423 $as_echo "$ac_try_echo") >&5
2424   (eval "$ac_compiler -V >&5") 2>&5
2425   ac_status=$?
2426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }
2428
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h.  */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h.  */
2435
2436 int
2437 main ()
2438 {
2439
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 ac_clean_files_save=$ac_clean_files
2445 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2446 # Try to create an executable without -o first, disregard a.out.
2447 # It will help us diagnose broken compilers, and finding out an intuition
2448 # of exeext.
2449 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2450 $as_echo_n "checking for C compiler default output file name... " >&6; }
2451 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2452
2453 # The possible output files:
2454 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2455
2456 ac_rmfiles=
2457 for ac_file in $ac_files
2458 do
2459   case $ac_file in
2460     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2461     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2462   esac
2463 done
2464 rm -f $ac_rmfiles
2465
2466 if { (ac_try="$ac_link_default"
2467 case "(($ac_try" in
2468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469   *) ac_try_echo=$ac_try;;
2470 esac
2471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2472 $as_echo "$ac_try_echo") >&5
2473   (eval "$ac_link_default") 2>&5
2474   ac_status=$?
2475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; then
2477   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2478 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2479 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2480 # so that the user can short-circuit this test for compilers unknown to
2481 # Autoconf.
2482 for ac_file in $ac_files ''
2483 do
2484   test -f "$ac_file" || continue
2485   case $ac_file in
2486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2487         ;;
2488     [ab].out )
2489         # We found the default executable, but exeext='' is most
2490         # certainly right.
2491         break;;
2492     *.* )
2493         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2494         then :; else
2495            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2496         fi
2497         # We set ac_cv_exeext here because the later test for it is not
2498         # safe: cross compilers may not add the suffix if given an `-o'
2499         # argument, so we may need to know it at that point already.
2500         # Even if this section looks crufty: it has the advantage of
2501         # actually working.
2502         break;;
2503     * )
2504         break;;
2505   esac
2506 done
2507 test "$ac_cv_exeext" = no && ac_cv_exeext=
2508
2509 else
2510   ac_file=''
2511 fi
2512
2513 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2514 $as_echo "$ac_file" >&6; }
2515 if test -z "$ac_file"; then
2516   $as_echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2522 See \`config.log' for more details." >&5
2523 $as_echo "$as_me: error: C compiler cannot create executables
2524 See \`config.log' for more details." >&2;}
2525    { (exit 77); exit 77; }; }; }
2526 fi
2527
2528 ac_exeext=$ac_cv_exeext
2529
2530 # Check that the compiler produces executables we can run.  If not, either
2531 # the compiler is broken, or we cross compile.
2532 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2533 $as_echo_n "checking whether the C compiler works... " >&6; }
2534 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2535 # If not cross compiling, check that we can run a simple program.
2536 if test "$cross_compiling" != yes; then
2537   if { ac_try='./$ac_file'
2538   { (case "(($ac_try" in
2539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540   *) ac_try_echo=$ac_try;;
2541 esac
2542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2543 $as_echo "$ac_try_echo") >&5
2544   (eval "$ac_try") 2>&5
2545   ac_status=$?
2546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548     cross_compiling=no
2549   else
2550     if test "$cross_compiling" = maybe; then
2551         cross_compiling=yes
2552     else
2553         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2556 If you meant to cross compile, use \`--host'.
2557 See \`config.log' for more details." >&5
2558 $as_echo "$as_me: error: cannot run C compiled programs.
2559 If you meant to cross compile, use \`--host'.
2560 See \`config.log' for more details." >&2;}
2561    { (exit 1); exit 1; }; }; }
2562     fi
2563   fi
2564 fi
2565 { $as_echo "$as_me:$LINENO: result: yes" >&5
2566 $as_echo "yes" >&6; }
2567
2568 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2569 ac_clean_files=$ac_clean_files_save
2570 # Check that the compiler produces executables we can run.  If not, either
2571 # the compiler is broken, or we cross compile.
2572 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2573 $as_echo_n "checking whether we are cross compiling... " >&6; }
2574 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2575 $as_echo "$cross_compiling" >&6; }
2576
2577 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2578 $as_echo_n "checking for suffix of executables... " >&6; }
2579 if { (ac_try="$ac_link"
2580 case "(($ac_try" in
2581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582   *) ac_try_echo=$ac_try;;
2583 esac
2584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2585 $as_echo "$ac_try_echo") >&5
2586   (eval "$ac_link") 2>&5
2587   ac_status=$?
2588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; then
2590   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2591 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2592 # work properly (i.e., refer to `conftest.exe'), while it won't with
2593 # `rm'.
2594 for ac_file in conftest.exe conftest conftest.*; do
2595   test -f "$ac_file" || continue
2596   case $ac_file in
2597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2598     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2599           break;;
2600     * ) break;;
2601   esac
2602 done
2603 else
2604   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2607 See \`config.log' for more details." >&5
2608 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2609 See \`config.log' for more details." >&2;}
2610    { (exit 1); exit 1; }; }; }
2611 fi
2612
2613 rm -f conftest$ac_cv_exeext
2614 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2615 $as_echo "$ac_cv_exeext" >&6; }
2616
2617 rm -f conftest.$ac_ext
2618 EXEEXT=$ac_cv_exeext
2619 ac_exeext=$EXEEXT
2620 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2621 $as_echo_n "checking for suffix of object files... " >&6; }
2622 if test "${ac_cv_objext+set}" = set; then
2623   $as_echo_n "(cached) " >&6
2624 else
2625   cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631
2632 int
2633 main ()
2634 {
2635
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.o conftest.obj
2641 if { (ac_try="$ac_compile"
2642 case "(($ac_try" in
2643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644   *) ac_try_echo=$ac_try;;
2645 esac
2646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2647 $as_echo "$ac_try_echo") >&5
2648   (eval "$ac_compile") 2>&5
2649   ac_status=$?
2650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); }; then
2652   for ac_file in conftest.o conftest.obj conftest.*; do
2653   test -f "$ac_file" || continue;
2654   case $ac_file in
2655     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2656     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2657        break;;
2658   esac
2659 done
2660 else
2661   $as_echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2667 See \`config.log' for more details." >&5
2668 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2669 See \`config.log' for more details." >&2;}
2670    { (exit 1); exit 1; }; }; }
2671 fi
2672
2673 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2674 fi
2675 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2676 $as_echo "$ac_cv_objext" >&6; }
2677 OBJEXT=$ac_cv_objext
2678 ac_objext=$OBJEXT
2679 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2680 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2681 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2682   $as_echo_n "(cached) " >&6
2683 else
2684   cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h.  */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h.  */
2690
2691 int
2692 main ()
2693 {
2694 #ifndef __GNUC__
2695        choke me
2696 #endif
2697
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2704 case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2709 $as_echo "$ac_try_echo") >&5
2710   (eval "$ac_compile") 2>conftest.er1
2711   ac_status=$?
2712   grep -v '^ *+' conftest.er1 >conftest.err
2713   rm -f conftest.er1
2714   cat conftest.err >&5
2715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); } && {
2717          test -z "$ac_c_werror_flag" ||
2718          test ! -s conftest.err
2719        } && test -s conftest.$ac_objext; then
2720   ac_compiler_gnu=yes
2721 else
2722   $as_echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725         ac_compiler_gnu=no
2726 fi
2727
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2730
2731 fi
2732 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2734 if test $ac_compiler_gnu = yes; then
2735   GCC=yes
2736 else
2737   GCC=
2738 fi
2739 ac_test_CFLAGS=${CFLAGS+set}
2740 ac_save_CFLAGS=$CFLAGS
2741 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2743 if test "${ac_cv_prog_cc_g+set}" = set; then
2744   $as_echo_n "(cached) " >&6
2745 else
2746   ac_save_c_werror_flag=$ac_c_werror_flag
2747    ac_c_werror_flag=yes
2748    ac_cv_prog_cc_g=no
2749    CFLAGS="-g"
2750    cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756
2757 int
2758 main ()
2759 {
2760
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (ac_try="$ac_compile"
2767 case "(($ac_try" in
2768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769   *) ac_try_echo=$ac_try;;
2770 esac
2771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2772 $as_echo "$ac_try_echo") >&5
2773   (eval "$ac_compile") 2>conftest.er1
2774   ac_status=$?
2775   grep -v '^ *+' conftest.er1 >conftest.err
2776   rm -f conftest.er1
2777   cat conftest.err >&5
2778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } && {
2780          test -z "$ac_c_werror_flag" ||
2781          test ! -s conftest.err
2782        } && test -s conftest.$ac_objext; then
2783   ac_cv_prog_cc_g=yes
2784 else
2785   $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788         CFLAGS=""
2789       cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795
2796 int
2797 main ()
2798 {
2799
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2806 case "(($ac_try" in
2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808   *) ac_try_echo=$ac_try;;
2809 esac
2810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2811 $as_echo "$ac_try_echo") >&5
2812   (eval "$ac_compile") 2>conftest.er1
2813   ac_status=$?
2814   grep -v '^ *+' conftest.er1 >conftest.err
2815   rm -f conftest.er1
2816   cat conftest.err >&5
2817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); } && {
2819          test -z "$ac_c_werror_flag" ||
2820          test ! -s conftest.err
2821        } && test -s conftest.$ac_objext; then
2822   :
2823 else
2824   $as_echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827         ac_c_werror_flag=$ac_save_c_werror_flag
2828          CFLAGS="-g"
2829          cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835
2836 int
2837 main ()
2838 {
2839
2840   ;
2841   return 0;
2842 }
2843 _ACEOF
2844 rm -f conftest.$ac_objext
2845 if { (ac_try="$ac_compile"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2851 $as_echo "$ac_try_echo") >&5
2852   (eval "$ac_compile") 2>conftest.er1
2853   ac_status=$?
2854   grep -v '^ *+' conftest.er1 >conftest.err
2855   rm -f conftest.er1
2856   cat conftest.err >&5
2857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); } && {
2859          test -z "$ac_c_werror_flag" ||
2860          test ! -s conftest.err
2861        } && test -s conftest.$ac_objext; then
2862   ac_cv_prog_cc_g=yes
2863 else
2864   $as_echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867
2868 fi
2869
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 fi
2872
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 fi
2875
2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877    ac_c_werror_flag=$ac_save_c_werror_flag
2878 fi
2879 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2880 $as_echo "$ac_cv_prog_cc_g" >&6; }
2881 if test "$ac_test_CFLAGS" = set; then
2882   CFLAGS=$ac_save_CFLAGS
2883 elif test $ac_cv_prog_cc_g = yes; then
2884   if test "$GCC" = yes; then
2885     CFLAGS="-g -O2"
2886   else
2887     CFLAGS="-g"
2888   fi
2889 else
2890   if test "$GCC" = yes; then
2891     CFLAGS="-O2"
2892   else
2893     CFLAGS=
2894   fi
2895 fi
2896 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2897 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2898 if test "${ac_cv_prog_cc_c89+set}" = set; then
2899   $as_echo_n "(cached) " >&6
2900 else
2901   ac_cv_prog_cc_c89=no
2902 ac_save_CC=$CC
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 #include <stdarg.h>
2910 #include <stdio.h>
2911 #include <sys/types.h>
2912 #include <sys/stat.h>
2913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2914 struct buf { int x; };
2915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2916 static char *e (p, i)
2917      char **p;
2918      int i;
2919 {
2920   return p[i];
2921 }
2922 static char *f (char * (*g) (char **, int), char **p, ...)
2923 {
2924   char *s;
2925   va_list v;
2926   va_start (v,p);
2927   s = g (p, va_arg (v,int));
2928   va_end (v);
2929   return s;
2930 }
2931
2932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2933    function prototypes and stuff, but not '\xHH' hex character constants.
2934    These don't provoke an error unfortunately, instead are silently treated
2935    as 'x'.  The following induces an error, until -std is added to get
2936    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2937    array size at least.  It's necessary to write '\x00'==0 to get something
2938    that's true only with -std.  */
2939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2940
2941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2942    inside strings and character constants.  */
2943 #define FOO(x) 'x'
2944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2945
2946 int test (int i, double x);
2947 struct s1 {int (*f) (int a);};
2948 struct s2 {int (*f) (double a);};
2949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2950 int argc;
2951 char **argv;
2952 int
2953 main ()
2954 {
2955 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2961         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2962 do
2963   CC="$ac_save_CC $ac_arg"
2964   rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2966 case "(($ac_try" in
2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968   *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971 $as_echo "$ac_try_echo") >&5
2972   (eval "$ac_compile") 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } && {
2979          test -z "$ac_c_werror_flag" ||
2980          test ! -s conftest.err
2981        } && test -s conftest.$ac_objext; then
2982   ac_cv_prog_cc_c89=$ac_arg
2983 else
2984   $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987
2988 fi
2989
2990 rm -f core conftest.err conftest.$ac_objext
2991   test "x$ac_cv_prog_cc_c89" != "xno" && break
2992 done
2993 rm -f conftest.$ac_ext
2994 CC=$ac_save_CC
2995
2996 fi
2997 # AC_CACHE_VAL
2998 case "x$ac_cv_prog_cc_c89" in
2999   x)
3000     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3001 $as_echo "none needed" >&6; } ;;
3002   xno)
3003     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3004 $as_echo "unsupported" >&6; } ;;
3005   *)
3006     CC="$CC $ac_cv_prog_cc_c89"
3007     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3008 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3009 esac
3010
3011
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017
3018  ac_ext=cpp
3019 ac_cpp='$CXXCPP $CPPFLAGS'
3020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3023 if test -z "$CXX"; then
3024   if test -n "$CCC"; then
3025     CXX=$CCC
3026   else
3027     if test -n "$ac_tool_prefix"; then
3028   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3029   do
3030     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CXX+set}" = set; then
3035   $as_echo_n "(cached) " >&6
3036 else
3037   if test -n "$CXX"; then
3038   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045   for ac_exec_ext in '' $ac_executable_extensions; do
3046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3048     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049     break 2
3050   fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 CXX=$ac_cv_prog_CXX
3058 if test -n "$CXX"; then
3059   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3060 $as_echo "$CXX" >&6; }
3061 else
3062   { $as_echo "$as_me:$LINENO: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067     test -n "$CXX" && break
3068   done
3069 fi
3070 if test -z "$CXX"; then
3071   ac_ct_CXX=$CXX
3072   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3073 do
3074   # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test -n "$ac_ct_CXX"; then
3082   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089   for ac_exec_ext in '' $ac_executable_extensions; do
3090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091     ac_cv_prog_ac_ct_CXX="$ac_prog"
3092     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3102 if test -n "$ac_ct_CXX"; then
3103   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3104 $as_echo "$ac_ct_CXX" >&6; }
3105 else
3106   { $as_echo "$as_me:$LINENO: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111   test -n "$ac_ct_CXX" && break
3112 done
3113
3114   if test "x$ac_ct_CXX" = x; then
3115     CXX="g++"
3116   else
3117     case $cross_compiling:$ac_tool_warned in
3118 yes:)
3119 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned=yes ;;
3122 esac
3123     CXX=$ac_ct_CXX
3124   fi
3125 fi
3126
3127   fi
3128 fi
3129 # Provide some information about the compiler.
3130 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3131 set X $ac_compile
3132 ac_compiler=$2
3133 { (ac_try="$ac_compiler --version >&5"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3139 $as_echo "$ac_try_echo") >&5
3140   (eval "$ac_compiler --version >&5") 2>&5
3141   ac_status=$?
3142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }
3144 { (ac_try="$ac_compiler -v >&5"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3150 $as_echo "$ac_try_echo") >&5
3151   (eval "$ac_compiler -v >&5") 2>&5
3152   ac_status=$?
3153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }
3155 { (ac_try="$ac_compiler -V >&5"
3156 case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3161 $as_echo "$ac_try_echo") >&5
3162   (eval "$ac_compiler -V >&5") 2>&5
3163   ac_status=$?
3164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }
3166
3167 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3168 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3169 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3170   $as_echo_n "(cached) " >&6
3171 else
3172   cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178
3179 int
3180 main ()
3181 {
3182 #ifndef __GNUC__
3183        choke me
3184 #endif
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3197 $as_echo "$ac_try_echo") >&5
3198   (eval "$ac_compile") 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } && {
3205          test -z "$ac_cxx_werror_flag" ||
3206          test ! -s conftest.err
3207        } && test -s conftest.$ac_objext; then
3208   ac_compiler_gnu=yes
3209 else
3210   $as_echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213         ac_compiler_gnu=no
3214 fi
3215
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3218
3219 fi
3220 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3222 if test $ac_compiler_gnu = yes; then
3223   GXX=yes
3224 else
3225   GXX=
3226 fi
3227 ac_test_CXXFLAGS=${CXXFLAGS+set}
3228 ac_save_CXXFLAGS=$CXXFLAGS
3229 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3231 if test "${ac_cv_prog_cxx_g+set}" = set; then
3232   $as_echo_n "(cached) " >&6
3233 else
3234   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3235    ac_cxx_werror_flag=yes
3236    ac_cv_prog_cxx_g=no
3237    CXXFLAGS="-g"
3238    cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261   (eval "$ac_compile") 2>conftest.er1
3262   ac_status=$?
3263   grep -v '^ *+' conftest.er1 >conftest.err
3264   rm -f conftest.er1
3265   cat conftest.err >&5
3266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); } && {
3268          test -z "$ac_cxx_werror_flag" ||
3269          test ! -s conftest.err
3270        } && test -s conftest.$ac_objext; then
3271   ac_cv_prog_cxx_g=yes
3272 else
3273   $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276         CXXFLAGS=""
3277       cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (ac_try="$ac_compile"
3294 case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299 $as_echo "$ac_try_echo") >&5
3300   (eval "$ac_compile") 2>conftest.er1
3301   ac_status=$?
3302   grep -v '^ *+' conftest.er1 >conftest.err
3303   rm -f conftest.er1
3304   cat conftest.err >&5
3305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); } && {
3307          test -z "$ac_cxx_werror_flag" ||
3308          test ! -s conftest.err
3309        } && test -s conftest.$ac_objext; then
3310   :
3311 else
3312   $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3316          CXXFLAGS="-g"
3317          cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h.  */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h.  */
3323
3324 int
3325 main ()
3326 {
3327
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (ac_try="$ac_compile"
3334 case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340   (eval "$ac_compile") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && {
3347          test -z "$ac_cxx_werror_flag" ||
3348          test ! -s conftest.err
3349        } && test -s conftest.$ac_objext; then
3350   ac_cv_prog_cxx_g=yes
3351 else
3352   $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 fi
3363
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3366 fi
3367 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3368 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3369 if test "$ac_test_CXXFLAGS" = set; then
3370   CXXFLAGS=$ac_save_CXXFLAGS
3371 elif test $ac_cv_prog_cxx_g = yes; then
3372   if test "$GXX" = yes; then
3373     CXXFLAGS="-g -O2"
3374   else
3375     CXXFLAGS="-g"
3376   fi
3377 else
3378   if test "$GXX" = yes; then
3379     CXXFLAGS="-O2"
3380   else
3381     CXXFLAGS=
3382   fi
3383 fi
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389
3390
3391
3392
3393 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3394 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3395
3396 cat > conftest.c << EOF
3397 #include <stdlib.h>
3398 #include <stdio.h>
3399
3400 int main (int argc, char*argv)
3401 {
3402     int a,b;
3403     b=3;
3404     int c;
3405     c=4;
3406     return 0;
3407 }
3408 EOF
3409
3410 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3411 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412   { $as_echo "$as_me:$LINENO: result: yes" >&5
3413 $as_echo "yes" >&6; }
3414   GCC_IS_OK=true
3415   export GCC_IS_OK
3416 else
3417   echo "configure: failed program was:" >&5
3418   cat conftest.c >&5
3419   { $as_echo "$as_me:$LINENO: result: no" >&5
3420 $as_echo "no" >&6; }
3421 fi
3422 rm -f conftest*
3423
3424
3425 if test "x$GCC_IS_OK" '=' "x";then
3426     echo "***************************************************"
3427     echo "* Your gcc is too old to compile this!"
3428     echo "* "
3429     echo "* The last version compileable by this compiler is "
3430     echo "* swftools 0.7.0, which you can download from "
3431     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3432     echo "* ."
3433     echo "* Newer versions require at least gcc 3.0.0 "
3434     echo "***************************************************"
3435     exit 1
3436 fi
3437
3438 if test "x$CHECKMEM" '!=' "x";then
3439     CC="ccmalloc $CC"
3440     CXX="ccmalloc $CXX"
3441     #echo running again
3442     #unset ac_cv_prog_CC
3443     #unset ac_cv_prog_CXX
3444     #AC_PROG_CC
3445     #AC_PROG_CXX
3446 fi
3447  ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3454 # On Suns, sometimes $CPP names a directory.
3455 if test -n "$CPP" && test -d "$CPP"; then
3456   CPP=
3457 fi
3458 if test -z "$CPP"; then
3459   if test "${ac_cv_prog_CPP+set}" = set; then
3460   $as_echo_n "(cached) " >&6
3461 else
3462       # Double quotes because CPP needs to be expanded
3463     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3464     do
3465       ac_preproc_ok=false
3466 for ac_c_preproc_warn_flag in '' yes
3467 do
3468   # Use a header file that comes with gcc, so configuring glibc
3469   # with a fresh cross-compiler works.
3470   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471   # <limits.h> exists even on freestanding compilers.
3472   # On the NeXT, cc -E runs the code through the compiler's parser,
3473   # not just through cpp. "Syntax error" is here to catch this case.
3474   cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h.  */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h.  */
3480 #ifdef __STDC__
3481 # include <limits.h>
3482 #else
3483 # include <assert.h>
3484 #endif
3485                      Syntax error
3486 _ACEOF
3487 if { (ac_try="$ac_cpp conftest.$ac_ext"
3488 case "(($ac_try" in
3489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490   *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } >/dev/null && {
3501          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502          test ! -s conftest.err
3503        }; then
3504   :
3505 else
3506   $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509   # Broken: fails on valid input.
3510 continue
3511 fi
3512
3513 rm -f conftest.err conftest.$ac_ext
3514
3515   # OK, works on sane cases.  Now check whether nonexistent headers
3516   # can be detected and how.
3517   cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523 #include <ac_nonexistent.h>
3524 _ACEOF
3525 if { (ac_try="$ac_cpp conftest.$ac_ext"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3533   ac_status=$?
3534   grep -v '^ *+' conftest.er1 >conftest.err
3535   rm -f conftest.er1
3536   cat conftest.err >&5
3537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); } >/dev/null && {
3539          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540          test ! -s conftest.err
3541        }; then
3542   # Broken: success on invalid input.
3543 continue
3544 else
3545   $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548   # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3551 fi
3552
3553 rm -f conftest.err conftest.$ac_ext
3554
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559   break
3560 fi
3561
3562     done
3563     ac_cv_prog_CPP=$CPP
3564
3565 fi
3566   CPP=$ac_cv_prog_CPP
3567 else
3568   ac_cv_prog_CPP=$CPP
3569 fi
3570 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3571 $as_echo "$CPP" >&6; }
3572 ac_preproc_ok=false
3573 for ac_c_preproc_warn_flag in '' yes
3574 do
3575   # Use a header file that comes with gcc, so configuring glibc
3576   # with a fresh cross-compiler works.
3577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578   # <limits.h> exists even on freestanding compilers.
3579   # On the NeXT, cc -E runs the code through the compiler's parser,
3580   # not just through cpp. "Syntax error" is here to catch this case.
3581   cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592                      Syntax error
3593 _ACEOF
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } >/dev/null && {
3608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3609          test ! -s conftest.err
3610        }; then
3611   :
3612 else
3613   $as_echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616   # Broken: fails on valid input.
3617 continue
3618 fi
3619
3620 rm -f conftest.err conftest.$ac_ext
3621
3622   # OK, works on sane cases.  Now check whether nonexistent headers
3623   # can be detected and how.
3624   cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h.  */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h.  */
3630 #include <ac_nonexistent.h>
3631 _ACEOF
3632 if { (ac_try="$ac_cpp conftest.$ac_ext"
3633 case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638 $as_echo "$ac_try_echo") >&5
3639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3640   ac_status=$?
3641   grep -v '^ *+' conftest.er1 >conftest.err
3642   rm -f conftest.er1
3643   cat conftest.err >&5
3644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); } >/dev/null && {
3646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3647          test ! -s conftest.err
3648        }; then
3649   # Broken: success on invalid input.
3650 continue
3651 else
3652   $as_echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655   # Passes both tests.
3656 ac_preproc_ok=:
3657 break
3658 fi
3659
3660 rm -f conftest.err conftest.$ac_ext
3661
3662 done
3663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664 rm -f conftest.err conftest.$ac_ext
3665 if $ac_preproc_ok; then
3666   :
3667 else
3668   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3671 See \`config.log' for more details." >&5
3672 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3673 See \`config.log' for more details." >&2;}
3674    { (exit 1); exit 1; }; }; }
3675 fi
3676
3677 ac_ext=c
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682
3683
3684  if test -n "$ac_tool_prefix"; then
3685   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_RANLIB+set}" = set; then
3690   $as_echo_n "(cached) " >&6
3691 else
3692   if test -n "$RANLIB"; then
3693   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700   for ac_exec_ext in '' $ac_executable_extensions; do
3701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3703     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704     break 2
3705   fi
3706 done
3707 done
3708 IFS=$as_save_IFS
3709
3710 fi
3711 fi
3712 RANLIB=$ac_cv_prog_RANLIB
3713 if test -n "$RANLIB"; then
3714   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3715 $as_echo "$RANLIB" >&6; }
3716 else
3717   { $as_echo "$as_me:$LINENO: result: no" >&5
3718 $as_echo "no" >&6; }
3719 fi
3720
3721
3722 fi
3723 if test -z "$ac_cv_prog_RANLIB"; then
3724   ac_ct_RANLIB=$RANLIB
3725   # Extract the first word of "ranlib", so it can be a program name with args.
3726 set dummy ranlib; ac_word=$2
3727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3730   $as_echo_n "(cached) " >&6
3731 else
3732   if test -n "$ac_ct_RANLIB"; then
3733   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738   IFS=$as_save_IFS
3739   test -z "$as_dir" && as_dir=.
3740   for ac_exec_ext in '' $ac_executable_extensions; do
3741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742     ac_cv_prog_ac_ct_RANLIB="ranlib"
3743     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744     break 2
3745   fi
3746 done
3747 done
3748 IFS=$as_save_IFS
3749
3750 fi
3751 fi
3752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3753 if test -n "$ac_ct_RANLIB"; then
3754   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3755 $as_echo "$ac_ct_RANLIB" >&6; }
3756 else
3757   { $as_echo "$as_me:$LINENO: result: no" >&5
3758 $as_echo "no" >&6; }
3759 fi
3760
3761   if test "x$ac_ct_RANLIB" = x; then
3762     RANLIB=":"
3763   else
3764     case $cross_compiling:$ac_tool_warned in
3765 yes:)
3766 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3768 ac_tool_warned=yes ;;
3769 esac
3770     RANLIB=$ac_ct_RANLIB
3771   fi
3772 else
3773   RANLIB="$ac_cv_prog_RANLIB"
3774 fi
3775
3776  { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3777 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3778 set x ${MAKE-make}
3779 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3780 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3781   $as_echo_n "(cached) " >&6
3782 else
3783   cat >conftest.make <<\_ACEOF
3784 SHELL = /bin/sh
3785 all:
3786         @echo '@@@%%%=$(MAKE)=@@@%%%'
3787 _ACEOF
3788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3789 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3790   *@@@%%%=?*=@@@%%%*)
3791     eval ac_cv_prog_make_${ac_make}_set=yes;;
3792   *)
3793     eval ac_cv_prog_make_${ac_make}_set=no;;
3794 esac
3795 rm -f conftest.make
3796 fi
3797 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3798   { $as_echo "$as_me:$LINENO: result: yes" >&5
3799 $as_echo "yes" >&6; }
3800   SET_MAKE=
3801 else
3802   { $as_echo "$as_me:$LINENO: result: no" >&5
3803 $as_echo "no" >&6; }
3804   SET_MAKE="MAKE=${MAKE-make}"
3805 fi
3806
3807  # Find a good install program.  We prefer a C program (faster),
3808 # so one script is as good as another.  But avoid the broken or
3809 # incompatible versions:
3810 # SysV /etc/install, /usr/sbin/install
3811 # SunOS /usr/etc/install
3812 # IRIX /sbin/install
3813 # AIX /bin/install
3814 # AmigaOS /C/install, which installs bootblocks on floppy discs
3815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3818 # OS/2's system install, which has a completely different semantic
3819 # ./install, which can be erroneously created by make from ./install.sh.
3820 # Reject install programs that cannot install multiple files.
3821 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3822 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3823 if test -z "$INSTALL"; then
3824 if test "${ac_cv_path_install+set}" = set; then
3825   $as_echo_n "(cached) " >&6
3826 else
3827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830   IFS=$as_save_IFS
3831   test -z "$as_dir" && as_dir=.
3832   # Account for people who put trailing slashes in PATH elements.
3833 case $as_dir/ in
3834   ./ | .// | /cC/* | \
3835   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3836   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3837   /usr/ucb/* ) ;;
3838   *)
3839     # OSF1 and SCO ODT 3.0 have their own names for install.
3840     # Don't use installbsd from OSF since it installs stuff as root
3841     # by default.
3842     for ac_prog in ginstall scoinst install; do
3843       for ac_exec_ext in '' $ac_executable_extensions; do
3844         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3845           if test $ac_prog = install &&
3846             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3847             # AIX install.  It has an incompatible calling convention.
3848             :
3849           elif test $ac_prog = install &&
3850             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3851             # program-specific install script used by HP pwplus--don't use.
3852             :
3853           else
3854             rm -rf conftest.one conftest.two conftest.dir
3855             echo one > conftest.one
3856             echo two > conftest.two
3857             mkdir conftest.dir
3858             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3859               test -s conftest.one && test -s conftest.two &&
3860               test -s conftest.dir/conftest.one &&
3861               test -s conftest.dir/conftest.two
3862             then
3863               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3864               break 3
3865             fi
3866           fi
3867         fi
3868       done
3869     done
3870     ;;
3871 esac
3872
3873 done
3874 IFS=$as_save_IFS
3875
3876 rm -rf conftest.one conftest.two conftest.dir
3877
3878 fi
3879   if test "${ac_cv_path_install+set}" = set; then
3880     INSTALL=$ac_cv_path_install
3881   else
3882     # As a last resort, use the slow shell script.  Don't cache a
3883     # value for INSTALL within a source directory, because that will
3884     # break other packages using the cache if that directory is
3885     # removed, or if the value is a relative name.
3886     INSTALL=$ac_install_sh
3887   fi
3888 fi
3889 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3890 $as_echo "$INSTALL" >&6; }
3891
3892 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3893 # It thinks the first close brace ends the variable substitution.
3894 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3895
3896 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3897
3898 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3899
3900  { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3901 $as_echo_n "checking whether ln -s works... " >&6; }
3902 LN_S=$as_ln_s
3903 if test "$LN_S" = "ln -s"; then
3904   { $as_echo "$as_me:$LINENO: result: yes" >&5
3905 $as_echo "yes" >&6; }
3906 else
3907   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3908 $as_echo "no, using $LN_S" >&6; }
3909 fi
3910
3911  for ac_prog in gzip uncompress compress
3912 do
3913   # Extract the first word of "$ac_prog", so it can be a program name with args.
3914 set dummy $ac_prog; ac_word=$2
3915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3918   $as_echo_n "(cached) " >&6
3919 else
3920   if test -n "$UNCOMPRESS"; then
3921   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926   IFS=$as_save_IFS
3927   test -z "$as_dir" && as_dir=.
3928   for ac_exec_ext in '' $ac_executable_extensions; do
3929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930     ac_cv_prog_UNCOMPRESS="$ac_prog"
3931     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932     break 2
3933   fi
3934 done
3935 done
3936 IFS=$as_save_IFS
3937
3938 fi
3939 fi
3940 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3941 if test -n "$UNCOMPRESS"; then
3942   { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3943 $as_echo "$UNCOMPRESS" >&6; }
3944 else
3945   { $as_echo "$as_me:$LINENO: result: no" >&5
3946 $as_echo "no" >&6; }
3947 fi
3948
3949
3950   test -n "$UNCOMPRESS" && break
3951 done
3952
3953
3954
3955 OBJEXT="o"
3956 AREXT=".a"
3957 CXXLIBS="-lstdc++"
3958
3959
3960
3961 if test "x$EXEEXT" = "x.exe";then
3962     OBJEXT="obj"
3963     AREXT=".lib"
3964     CXXLIBS=""
3965 fi
3966
3967
3968
3969
3970 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3971 $as_echo_n "checking host system type... " >&6; }
3972 if test "${ac_cv_host+set}" = set; then
3973   $as_echo_n "(cached) " >&6
3974 else
3975   if test "x$host_alias" = x; then
3976   ac_cv_host=$ac_cv_build
3977 else
3978   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3979     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3980 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3981    { (exit 1); exit 1; }; }
3982 fi
3983
3984 fi
3985 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3986 $as_echo "$ac_cv_host" >&6; }
3987 case $ac_cv_host in
3988 *-*-*) ;;
3989 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3990 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3991    { (exit 1); exit 1; }; };;
3992 esac
3993 host=$ac_cv_host
3994 ac_save_IFS=$IFS; IFS='-'
3995 set x $ac_cv_host
3996 shift
3997 host_cpu=$1
3998 host_vendor=$2
3999 shift; shift
4000 # Remember, the first character of IFS is used to create $*,
4001 # except with old shells:
4002 host_os=$*
4003 IFS=$ac_save_IFS
4004 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4005
4006
4007
4008
4009 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4010 $as_echo_n "checking for target system... " >&6; }
4011 CYGWIN=
4012 MINGW=
4013 case $host_os in
4014     *cygwin* ) CYGWIN=yes;;
4015     *mingw* ) MINGW=yes;;
4016 esac
4017
4018 AR=ar
4019 if test "x$MINGW" = "xyes"; then
4020     #fix for the debian distribution of mingw
4021     if test -x "/usr/i586-mingw32msvc/bin/ar";then
4022         AR="/usr/i586-mingw32msvc/bin/ar"
4023     fi
4024     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4025         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4026     fi
4027     #fix for the gentoo distribution of mingw
4028     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4029         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4030     fi
4031     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4032         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4033     fi
4034     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4035         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4036     fi
4037 fi
4038
4039
4040
4041 if test "x${CYGWIN}" = "xyes"; then
4042
4043 cat >>confdefs.h <<\_ACEOF
4044 #define CYGWIN 1
4045 _ACEOF
4046
4047     { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4048 $as_echo "cygwin" >&6; }
4049 else
4050     if test "x${MINGW}" = "xyes"; then
4051
4052 cat >>confdefs.h <<\_ACEOF
4053 #define MINGW 1
4054 _ACEOF
4055
4056         WIN32=1
4057
4058 cat >>confdefs.h <<\_ACEOF
4059 #define WIN32 1
4060 _ACEOF
4061
4062         LIBS="$LIBS -lws2_32 -lgdi32"
4063         { $as_echo "$as_me:$LINENO: result: mingw" >&5
4064 $as_echo "mingw" >&6; }
4065     else
4066         LINUX=1
4067         export LINUX
4068
4069 cat >>confdefs.h <<\_ACEOF
4070 #define LINUX 1
4071 _ACEOF
4072
4073         { $as_echo "$as_me:$LINENO: result: " >&5
4074 $as_echo "" >&6; }
4075     fi
4076 fi
4077
4078
4079 SLEXT="so"
4080 if test "x${MINGW}" != "xyes"; then
4081     # no mingW
4082
4083 cat >>confdefs.h <<\_ACEOF
4084 #define O_BINARY 0
4085 _ACEOF
4086
4087 else
4088     # mingW
4089     SLEXT="dll"
4090     CXXLIBS=""
4091 fi
4092 export SLEXT
4093
4094
4095
4096 # The following tries to make use of includes and libraries in
4097 # /usr/local, too. Notice: A -I/usr/local/include might break
4098 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4099 # especially on systems which link /usr/local to /usr, so it has yet
4100 # to be seen how useful this is.
4101 if test -d /usr/local/lib; then
4102     LDFLAGS="$LDFLAGS -L/usr/local/lib"
4103 fi
4104 if test -d /usr/local/include; then
4105 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4106 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4107     echo > /dev/null
4108 fi
4109 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4110     # if the user has a special prefix (like /opt), there might also be $prefix/lib
4111     # and $prefix/include, which should be included in our search paths for libraries
4112     # and includes.
4113     LDFLAGS="$LDFLAGS -L${libdir}"
4114     CPPFLAGS="$CPPFLAGS -I${includedir}"
4115     # TODO- test whether gcc still works after this
4116 fi
4117
4118 #Mac OS:
4119 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4120
4121
4122 # this must be done after (I believe) AC_PROG_MAKE_SET
4123 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4124     if test "$MACOSX";then
4125         STRIP=dsymutil
4126     else
4127         STRIP="@echo debug enabled, not stripping "
4128     fi
4129     export STRIP
4130
4131 fi
4132
4133
4134
4135 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4136 $as_echo_n "checking for sin in -lm... " >&6; }
4137 if test "${ac_cv_lib_m_sin+set}" = set; then
4138   $as_echo_n "(cached) " >&6
4139 else
4140   ac_check_lib_save_LIBS=$LIBS
4141 LIBS="-lm  $LIBS"
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148
4149 /* Override any GCC internal prototype to avoid an error.
4150    Use char because int might match the return type of a GCC
4151    builtin and then its argument prototype would still apply.  */
4152 #ifdef __cplusplus
4153 extern "C"
4154 #endif
4155 char sin ();
4156 int
4157 main ()
4158 {
4159 return sin ();
4160   ;
4161   return 0;
4162 }
4163 _ACEOF
4164 rm -f conftest.$ac_objext conftest$ac_exeext
4165 if { (ac_try="$ac_link"
4166 case "(($ac_try" in
4167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168   *) ac_try_echo=$ac_try;;
4169 esac
4170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4171 $as_echo "$ac_try_echo") >&5
4172   (eval "$ac_link") 2>conftest.er1
4173   ac_status=$?
4174   grep -v '^ *+' conftest.er1 >conftest.err
4175   rm -f conftest.er1
4176   cat conftest.err >&5
4177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); } && {
4179          test -z "$ac_c_werror_flag" ||
4180          test ! -s conftest.err
4181        } && test -s conftest$ac_exeext && {
4182          test "$cross_compiling" = yes ||
4183          $as_test_x conftest$ac_exeext
4184        }; then
4185   ac_cv_lib_m_sin=yes
4186 else
4187   $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190         ac_cv_lib_m_sin=no
4191 fi
4192
4193 rm -rf conftest.dSYM
4194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4195       conftest$ac_exeext conftest.$ac_ext
4196 LIBS=$ac_check_lib_save_LIBS
4197 fi
4198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4199 $as_echo "$ac_cv_lib_m_sin" >&6; }
4200 if test "x$ac_cv_lib_m_sin" = x""yes; then
4201   cat >>confdefs.h <<_ACEOF
4202 #define HAVE_LIBM 1
4203 _ACEOF
4204
4205   LIBS="-lm $LIBS"
4206
4207 else
4208   echo "Error: Math library not found.";
4209  exit;
4210
4211 fi
4212
4213
4214 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4215 $as_echo_n "checking for deflate in -lz... " >&6; }
4216 if test "${ac_cv_lib_z_deflate+set}" = set; then
4217   $as_echo_n "(cached) " >&6
4218 else
4219   ac_check_lib_save_LIBS=$LIBS
4220 LIBS="-lz  $LIBS"
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h.  */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h.  */
4227
4228 /* Override any GCC internal prototype to avoid an error.
4229    Use char because int might match the return type of a GCC
4230    builtin and then its argument prototype would still apply.  */
4231 #ifdef __cplusplus
4232 extern "C"
4233 #endif
4234 char deflate ();
4235 int
4236 main ()
4237 {
4238 return deflate ();
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest.$ac_objext conftest$ac_exeext
4244 if { (ac_try="$ac_link"
4245 case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4250 $as_echo "$ac_try_echo") >&5
4251   (eval "$ac_link") 2>conftest.er1
4252   ac_status=$?
4253   grep -v '^ *+' conftest.er1 >conftest.err
4254   rm -f conftest.er1
4255   cat conftest.err >&5
4256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); } && {
4258          test -z "$ac_c_werror_flag" ||
4259          test ! -s conftest.err
4260        } && test -s conftest$ac_exeext && {
4261          test "$cross_compiling" = yes ||
4262          $as_test_x conftest$ac_exeext
4263        }; then
4264   ac_cv_lib_z_deflate=yes
4265 else
4266   $as_echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269         ac_cv_lib_z_deflate=no
4270 fi
4271
4272 rm -rf conftest.dSYM
4273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4274       conftest$ac_exeext conftest.$ac_ext
4275 LIBS=$ac_check_lib_save_LIBS
4276 fi
4277 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4278 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4279 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4280   cat >>confdefs.h <<_ACEOF
4281 #define HAVE_LIBZ 1
4282 _ACEOF
4283
4284   LIBS="-lz $LIBS"
4285
4286 else
4287   ZLIBMISSING=true
4288 fi
4289
4290
4291 if test "x$ZLIBMISSING" = "xtrue";then
4292     echo
4293     echo "ERROR:"
4294     echo "You need zlib to compile swftools"
4295     echo
4296     exit
4297 fi
4298
4299
4300 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4301 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4302 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4303   $as_echo_n "(cached) " >&6
4304 else
4305   ac_check_lib_save_LIBS=$LIBS
4306 LIBS="-lpdf  $LIBS"
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h.  */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h.  */
4313
4314 /* Override any GCC internal prototype to avoid an error.
4315    Use char because int might match the return type of a GCC
4316    builtin and then its argument prototype would still apply.  */
4317 #ifdef __cplusplus
4318 extern "C"
4319 #endif
4320 char PDF_open_file ();
4321 int
4322 main ()
4323 {
4324 return PDF_open_file ();
4325   ;
4326   return 0;
4327 }
4328 _ACEOF
4329 rm -f conftest.$ac_objext conftest$ac_exeext
4330 if { (ac_try="$ac_link"
4331 case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4336 $as_echo "$ac_try_echo") >&5
4337   (eval "$ac_link") 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } && {
4344          test -z "$ac_c_werror_flag" ||
4345          test ! -s conftest.err
4346        } && test -s conftest$ac_exeext && {
4347          test "$cross_compiling" = yes ||
4348          $as_test_x conftest$ac_exeext
4349        }; then
4350   ac_cv_lib_pdf_PDF_open_file=yes
4351 else
4352   $as_echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4354
4355         ac_cv_lib_pdf_PDF_open_file=no
4356 fi
4357
4358 rm -rf conftest.dSYM
4359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4360       conftest$ac_exeext conftest.$ac_ext
4361 LIBS=$ac_check_lib_save_LIBS
4362 fi
4363 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4364 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4365 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4366   cat >>confdefs.h <<_ACEOF
4367 #define HAVE_LIBPDF 1
4368 _ACEOF
4369
4370   LIBS="-lpdf $LIBS"
4371
4372 else
4373   PDFLIBMISSING=true
4374 fi
4375
4376
4377 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4378 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4379 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4380   $as_echo_n "(cached) " >&6
4381 else
4382   ac_check_lib_save_LIBS=$LIBS
4383 LIBS="-ljpeg  $LIBS"
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390
4391 /* Override any GCC internal prototype to avoid an error.
4392    Use char because int might match the return type of a GCC
4393    builtin and then its argument prototype would still apply.  */
4394 #ifdef __cplusplus
4395 extern "C"
4396 #endif
4397 char jpeg_write_raw_data ();
4398 int
4399 main ()
4400 {
4401 return jpeg_write_raw_data ();
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (ac_try="$ac_link"
4408 case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4413 $as_echo "$ac_try_echo") >&5
4414   (eval "$ac_link") 2>conftest.er1
4415   ac_status=$?
4416   grep -v '^ *+' conftest.er1 >conftest.err
4417   rm -f conftest.er1
4418   cat conftest.err >&5
4419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); } && {
4421          test -z "$ac_c_werror_flag" ||
4422          test ! -s conftest.err
4423        } && test -s conftest$ac_exeext && {
4424          test "$cross_compiling" = yes ||
4425          $as_test_x conftest$ac_exeext
4426        }; then
4427   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4428 else
4429   $as_echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4433 fi
4434
4435 rm -rf conftest.dSYM
4436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4437       conftest$ac_exeext conftest.$ac_ext
4438 LIBS=$ac_check_lib_save_LIBS
4439 fi
4440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4441 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4442 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4443   cat >>confdefs.h <<_ACEOF
4444 #define HAVE_LIBJPEG 1
4445 _ACEOF
4446
4447   LIBS="-ljpeg $LIBS"
4448
4449 else
4450   JPEGLIBMISSING=true
4451 fi
4452
4453
4454 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4455 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4456 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4457   $as_echo_n "(cached) " >&6
4458 else
4459   ac_check_lib_save_LIBS=$LIBS
4460 LIBS="-lungif  $LIBS"
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h.  */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h.  */
4467
4468 /* Override any GCC internal prototype to avoid an error.
4469    Use char because int might match the return type of a GCC
4470    builtin and then its argument prototype would still apply.  */
4471 #ifdef __cplusplus
4472 extern "C"
4473 #endif
4474 char DGifOpen ();
4475 int
4476 main ()
4477 {
4478 return DGifOpen ();
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (ac_try="$ac_link"
4485 case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4490 $as_echo "$ac_try_echo") >&5
4491   (eval "$ac_link") 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } && {
4498          test -z "$ac_c_werror_flag" ||
4499          test ! -s conftest.err
4500        } && test -s conftest$ac_exeext && {
4501          test "$cross_compiling" = yes ||
4502          $as_test_x conftest$ac_exeext
4503        }; then
4504   ac_cv_lib_ungif_DGifOpen=yes
4505 else
4506   $as_echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509         ac_cv_lib_ungif_DGifOpen=no
4510 fi
4511
4512 rm -rf conftest.dSYM
4513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4514       conftest$ac_exeext conftest.$ac_ext
4515 LIBS=$ac_check_lib_save_LIBS
4516 fi
4517 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4518 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4519 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4520   cat >>confdefs.h <<_ACEOF
4521 #define HAVE_LIBUNGIF 1
4522 _ACEOF
4523
4524   LIBS="-lungif $LIBS"
4525
4526 else
4527   UNGIFMISSING=true
4528 fi
4529
4530 if test "$UNGIFMISSING";then
4531     UNGIFMISSING=
4532
4533 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4534 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4535 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4536   $as_echo_n "(cached) " >&6
4537 else
4538   ac_check_lib_save_LIBS=$LIBS
4539 LIBS="-lgif  $LIBS"
4540 cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h.  */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h.  */
4546
4547 /* Override any GCC internal prototype to avoid an error.
4548    Use char because int might match the return type of a GCC
4549    builtin and then its argument prototype would still apply.  */
4550 #ifdef __cplusplus
4551 extern "C"
4552 #endif
4553 char DGifOpen ();
4554 int
4555 main ()
4556 {
4557 return DGifOpen ();
4558   ;
4559   return 0;
4560 }
4561 _ACEOF
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (ac_try="$ac_link"
4564 case "(($ac_try" in
4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566   *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569 $as_echo "$ac_try_echo") >&5
4570   (eval "$ac_link") 2>conftest.er1
4571   ac_status=$?
4572   grep -v '^ *+' conftest.er1 >conftest.err
4573   rm -f conftest.er1
4574   cat conftest.err >&5
4575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } && {
4577          test -z "$ac_c_werror_flag" ||
4578          test ! -s conftest.err
4579        } && test -s conftest$ac_exeext && {
4580          test "$cross_compiling" = yes ||
4581          $as_test_x conftest$ac_exeext
4582        }; then
4583   ac_cv_lib_gif_DGifOpen=yes
4584 else
4585   $as_echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588         ac_cv_lib_gif_DGifOpen=no
4589 fi
4590
4591 rm -rf conftest.dSYM
4592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4593       conftest$ac_exeext conftest.$ac_ext
4594 LIBS=$ac_check_lib_save_LIBS
4595 fi
4596 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4597 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4598 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4599   cat >>confdefs.h <<_ACEOF
4600 #define HAVE_LIBGIF 1
4601 _ACEOF
4602
4603   LIBS="-lgif $LIBS"
4604
4605 else
4606   UNGIFMISSING=true
4607 fi
4608
4609 fi
4610
4611
4612 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4613 $as_echo_n "checking for byte order... " >&6; }
4614 if test "$cross_compiling" = yes; then
4615   CROSSCOMPILE=1
4616 else
4617   cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623
4624 int main (int argc, char *argv[])
4625 {
4626     int i = 1;
4627     return *(char*)&i;
4628 }
4629
4630 _ACEOF
4631 rm -f conftest$ac_exeext
4632 if { (ac_try="$ac_link"
4633 case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4638 $as_echo "$ac_try_echo") >&5
4639   (eval "$ac_link") 2>&5
4640   ac_status=$?
4641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4643   { (case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4648 $as_echo "$ac_try_echo") >&5
4649   (eval "$ac_try") 2>&5
4650   ac_status=$?
4651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }; }; then
4653   BIGENDIAN=1
4654 else
4655   $as_echo "$as_me: program exited with status $ac_status" >&5
4656 $as_echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4658
4659 ( exit $ac_status )
4660 LITTLEENDIAN=1
4661 fi
4662 rm -rf conftest.dSYM
4663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4664 fi
4665
4666
4667 export CROSSCOMPILE
4668
4669 if test "x${CROSSCOMPILE}" = "x1"; then
4670  { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4671 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4672  { $as_echo "$as_me:$LINENO: checking target system type" >&5
4673 $as_echo_n "checking target system type... " >&6; }
4674 if test "${ac_cv_target+set}" = set; then
4675   $as_echo_n "(cached) " >&6
4676 else
4677   if test "x$target_alias" = x; then
4678   ac_cv_target=$ac_cv_host
4679 else
4680   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4681     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4682 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4683    { (exit 1); exit 1; }; }
4684 fi
4685
4686 fi
4687 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4688 $as_echo "$ac_cv_target" >&6; }
4689 case $ac_cv_target in
4690 *-*-*) ;;
4691 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4692 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4693    { (exit 1); exit 1; }; };;
4694 esac
4695 target=$ac_cv_target
4696 ac_save_IFS=$IFS; IFS='-'
4697 set x $ac_cv_target
4698 shift
4699 target_cpu=$1
4700 target_vendor=$2
4701 shift; shift
4702 # Remember, the first character of IFS is used to create $*,
4703 # except with old shells:
4704 target_os=$*
4705 IFS=$ac_save_IFS
4706 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4707
4708
4709 # The aliases save the names the user supplied, while $host etc.
4710 # will get canonicalized.
4711 test -n "$target_alias" &&
4712   test "$program_prefix$program_suffix$program_transform_name" = \
4713     NONENONEs,x,x, &&
4714   program_prefix=${target_alias}-
4715  { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4716 $as_echo_n "checking for byte order, try 2... " >&6; }
4717  case "${target}" in
4718   *86* | *-pc-* )
4719      LITTLEENDIAN=1
4720      ;;
4721   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4722      BIGENDIAN=1
4723      ;;
4724  esac
4725 fi
4726
4727 export LITTLEENDIAN
4728 if test "x${LITTLEENDIAN}" = "x1"; then
4729 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4730 $as_echo "little endian" >&6; }
4731 BYTEORDERCHECKOK=1
4732 fi
4733 export BIGENDIAN
4734 if test "x${BIGENDIAN}" = "x1"; then
4735 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4736 $as_echo "big endian" >&6; }
4737 BYTEORDERCHECKOK=1
4738 WORDS_BIGENDIAN=1
4739 export WORDS_BIGENDIAN
4740
4741 cat >>confdefs.h <<\_ACEOF
4742 #define WORDS_BIGENDIAN 1
4743 _ACEOF
4744
4745 fi
4746 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4747 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4748 $as_echo "unknown" >&6; }
4749 echo Byte order could not determined.
4750 exit 1
4751 fi
4752
4753
4754
4755 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4756 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4757 if test "$cross_compiling" = yes; then
4758   CROSSCOMPILE=1
4759 else
4760   cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h.  */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h.  */
4766
4767 #include "stdlib.h"
4768 int main (int argc, char*argv[])
4769 {
4770     return system("test `touch config.tmp2`");
4771 }
4772
4773 _ACEOF
4774 rm -f conftest$ac_exeext
4775 if { (ac_try="$ac_link"
4776 case "(($ac_try" in
4777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778   *) ac_try_echo=$ac_try;;
4779 esac
4780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4781 $as_echo "$ac_try_echo") >&5
4782   (eval "$ac_link") 2>&5
4783   ac_status=$?
4784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4786   { (case "(($ac_try" in
4787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788   *) ac_try_echo=$ac_try;;
4789 esac
4790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4791 $as_echo "$ac_try_echo") >&5
4792   (eval "$ac_try") 2>&5
4793   ac_status=$?
4794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; }; then
4796   OK=OK
4797 else
4798   $as_echo "$as_me: program exited with status $ac_status" >&5
4799 $as_echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4801
4802 fi
4803 rm -rf conftest.dSYM
4804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4805 fi
4806
4807
4808
4809 if test "x${OK}" = "xOK";then
4810     test -f config.tmp2 || OK=
4811 fi
4812
4813 if test "x${CROSSCOMPILE}" = "x1";then
4814     OK=no;
4815 fi
4816 if test "x${OK}" = "xOK";then
4817 rm -f config.tmp2
4818 { $as_echo "$as_me:$LINENO: result: yes" >&5
4819 $as_echo "yes" >&6; }
4820 SYSTEM_BACKTICKS=1
4821 export SYSTEM_BACKTICKS
4822
4823 cat >>confdefs.h <<\_ACEOF
4824 #define SYSTEM_BACKTICKS 1
4825 _ACEOF
4826
4827 else
4828 { $as_echo "$as_me:$LINENO: result: no" >&5
4829 $as_echo "no" >&6; }
4830 fi
4831
4832
4833
4834 test "$program_prefix" != NONE &&
4835   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4836 # Use a double $ so make ignores it.
4837 test "$program_suffix" != NONE &&
4838   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4839 # Double any \ or $.
4840 # By default was `s,x,x', remove it if useless.
4841 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4842 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4843
4844
4845  ac_config_headers="$ac_config_headers config.h"
4846
4847
4848
4849
4850
4851
4852 ac_header_dirent=no
4853 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4854   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4855 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4856 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4858   $as_echo_n "(cached) " >&6
4859 else
4860   cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h.  */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h.  */
4866 #include <sys/types.h>
4867 #include <$ac_hdr>
4868
4869 int
4870 main ()
4871 {
4872 if ((DIR *) 0)
4873 return 0;
4874   ;
4875   return 0;
4876 }
4877 _ACEOF
4878 rm -f conftest.$ac_objext
4879 if { (ac_try="$ac_compile"
4880 case "(($ac_try" in
4881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882   *) ac_try_echo=$ac_try;;
4883 esac
4884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4885 $as_echo "$ac_try_echo") >&5
4886   (eval "$ac_compile") 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } && {
4893          test -z "$ac_c_werror_flag" ||
4894          test ! -s conftest.err
4895        } && test -s conftest.$ac_objext; then
4896   eval "$as_ac_Header=yes"
4897 else
4898   $as_echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901         eval "$as_ac_Header=no"
4902 fi
4903
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 fi
4906 ac_res=`eval 'as_val=${'$as_ac_Header'}
4907                  $as_echo "$as_val"'`
4908                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4909 $as_echo "$ac_res" >&6; }
4910 as_val=`eval 'as_val=${'$as_ac_Header'}
4911                  $as_echo "$as_val"'`
4912    if test "x$as_val" = x""yes; then
4913   cat >>confdefs.h <<_ACEOF
4914 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4915 _ACEOF
4916
4917 ac_header_dirent=$ac_hdr; break
4918 fi
4919
4920 done
4921 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4922 if test $ac_header_dirent = dirent.h; then
4923   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4924 $as_echo_n "checking for library containing opendir... " >&6; }
4925 if test "${ac_cv_search_opendir+set}" = set; then
4926   $as_echo_n "(cached) " >&6
4927 else
4928   ac_func_search_save_LIBS=$LIBS
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935
4936 /* Override any GCC internal prototype to avoid an error.
4937    Use char because int might match the return type of a GCC
4938    builtin and then its argument prototype would still apply.  */
4939 #ifdef __cplusplus
4940 extern "C"
4941 #endif
4942 char opendir ();
4943 int
4944 main ()
4945 {
4946 return opendir ();
4947   ;
4948   return 0;
4949 }
4950 _ACEOF
4951 for ac_lib in '' dir; do
4952   if test -z "$ac_lib"; then
4953     ac_res="none required"
4954   else
4955     ac_res=-l$ac_lib
4956     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4957   fi
4958   rm -f conftest.$ac_objext conftest$ac_exeext
4959 if { (ac_try="$ac_link"
4960 case "(($ac_try" in
4961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962   *) ac_try_echo=$ac_try;;
4963 esac
4964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4965 $as_echo "$ac_try_echo") >&5
4966   (eval "$ac_link") 2>conftest.er1
4967   ac_status=$?
4968   grep -v '^ *+' conftest.er1 >conftest.err
4969   rm -f conftest.er1
4970   cat conftest.err >&5
4971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); } && {
4973          test -z "$ac_c_werror_flag" ||
4974          test ! -s conftest.err
4975        } && test -s conftest$ac_exeext && {
4976          test "$cross_compiling" = yes ||
4977          $as_test_x conftest$ac_exeext
4978        }; then
4979   ac_cv_search_opendir=$ac_res
4980 else
4981   $as_echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984
4985 fi
4986
4987 rm -rf conftest.dSYM
4988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4989       conftest$ac_exeext
4990   if test "${ac_cv_search_opendir+set}" = set; then
4991   break
4992 fi
4993 done
4994 if test "${ac_cv_search_opendir+set}" = set; then
4995   :
4996 else
4997   ac_cv_search_opendir=no
4998 fi
4999 rm conftest.$ac_ext
5000 LIBS=$ac_func_search_save_LIBS
5001 fi
5002 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5003 $as_echo "$ac_cv_search_opendir" >&6; }
5004 ac_res=$ac_cv_search_opendir
5005 if test "$ac_res" != no; then
5006   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5007
5008 fi
5009
5010 else
5011   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5012 $as_echo_n "checking for library containing opendir... " >&6; }
5013 if test "${ac_cv_search_opendir+set}" = set; then
5014   $as_echo_n "(cached) " >&6
5015 else
5016   ac_func_search_save_LIBS=$LIBS
5017 cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h.  */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h.  */
5023
5024 /* Override any GCC internal prototype to avoid an error.
5025    Use char because int might match the return type of a GCC
5026    builtin and then its argument prototype would still apply.  */
5027 #ifdef __cplusplus
5028 extern "C"
5029 #endif
5030 char opendir ();
5031 int
5032 main ()
5033 {
5034 return opendir ();
5035   ;
5036   return 0;
5037 }
5038 _ACEOF
5039 for ac_lib in '' x; do
5040   if test -z "$ac_lib"; then
5041     ac_res="none required"
5042   else
5043     ac_res=-l$ac_lib
5044     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5045   fi
5046   rm -f conftest.$ac_objext conftest$ac_exeext
5047 if { (ac_try="$ac_link"
5048 case "(($ac_try" in
5049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050   *) ac_try_echo=$ac_try;;
5051 esac
5052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054   (eval "$ac_link") 2>conftest.er1
5055   ac_status=$?
5056   grep -v '^ *+' conftest.er1 >conftest.err
5057   rm -f conftest.er1
5058   cat conftest.err >&5
5059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); } && {
5061          test -z "$ac_c_werror_flag" ||
5062          test ! -s conftest.err
5063        } && test -s conftest$ac_exeext && {
5064          test "$cross_compiling" = yes ||
5065          $as_test_x conftest$ac_exeext
5066        }; then
5067   ac_cv_search_opendir=$ac_res
5068 else
5069   $as_echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072
5073 fi
5074
5075 rm -rf conftest.dSYM
5076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5077       conftest$ac_exeext
5078   if test "${ac_cv_search_opendir+set}" = set; then
5079   break
5080 fi
5081 done
5082 if test "${ac_cv_search_opendir+set}" = set; then
5083   :
5084 else
5085   ac_cv_search_opendir=no
5086 fi
5087 rm conftest.$ac_ext
5088 LIBS=$ac_func_search_save_LIBS
5089 fi
5090 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5091 $as_echo "$ac_cv_search_opendir" >&6; }
5092 ac_res=$ac_cv_search_opendir
5093 if test "$ac_res" != no; then
5094   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5095
5096 fi
5097
5098 fi
5099
5100
5101 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5103 if test "${ac_cv_path_GREP+set}" = set; then
5104   $as_echo_n "(cached) " >&6
5105 else
5106   if test -z "$GREP"; then
5107   ac_path_GREP_found=false
5108   # Loop through the user's path and test for each of PROGNAME-LIST
5109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114   for ac_prog in grep ggrep; do
5115     for ac_exec_ext in '' $ac_executable_extensions; do
5116       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5117       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119   # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5121 *GNU*)
5122   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5123 *)
5124   ac_count=0
5125   $as_echo_n 0123456789 >"conftest.in"
5126   while :
5127   do
5128     cat "conftest.in" "conftest.in" >"conftest.tmp"
5129     mv "conftest.tmp" "conftest.in"
5130     cp "conftest.in" "conftest.nl"
5131     $as_echo 'GREP' >> "conftest.nl"
5132     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5133     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5134     ac_count=`expr $ac_count + 1`
5135     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136       # Best one so far, save it but keep looking for a better one
5137       ac_cv_path_GREP="$ac_path_GREP"
5138       ac_path_GREP_max=$ac_count
5139     fi
5140     # 10*(2^10) chars as input seems more than enough
5141     test $ac_count -gt 10 && break
5142   done
5143   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5144 esac
5145
5146       $ac_path_GREP_found && break 3
5147     done
5148   done
5149 done
5150 IFS=$as_save_IFS
5151   if test -z "$ac_cv_path_GREP"; then
5152     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5153 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5154    { (exit 1); exit 1; }; }
5155   fi
5156 else
5157   ac_cv_path_GREP=$GREP
5158 fi
5159
5160 fi
5161 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5162 $as_echo "$ac_cv_path_GREP" >&6; }
5163  GREP="$ac_cv_path_GREP"
5164
5165
5166 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5167 $as_echo_n "checking for egrep... " >&6; }
5168 if test "${ac_cv_path_EGREP+set}" = set; then
5169   $as_echo_n "(cached) " >&6
5170 else
5171   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5172    then ac_cv_path_EGREP="$GREP -E"
5173    else
5174      if test -z "$EGREP"; then
5175   ac_path_EGREP_found=false
5176   # Loop through the user's path and test for each of PROGNAME-LIST
5177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182   for ac_prog in egrep; do
5183     for ac_exec_ext in '' $ac_executable_extensions; do
5184       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5185       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5186 # Check for GNU ac_path_EGREP and select it if it is found.
5187   # Check for GNU $ac_path_EGREP
5188 case `"$ac_path_EGREP" --version 2>&1` in
5189 *GNU*)
5190   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5191 *)
5192   ac_count=0
5193   $as_echo_n 0123456789 >"conftest.in"
5194   while :
5195   do
5196     cat "conftest.in" "conftest.in" >"conftest.tmp"
5197     mv "conftest.tmp" "conftest.in"
5198     cp "conftest.in" "conftest.nl"
5199     $as_echo 'EGREP' >> "conftest.nl"
5200     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5201     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5202     ac_count=`expr $ac_count + 1`
5203     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5204       # Best one so far, save it but keep looking for a better one
5205       ac_cv_path_EGREP="$ac_path_EGREP"
5206       ac_path_EGREP_max=$ac_count
5207     fi
5208     # 10*(2^10) chars as input seems more than enough
5209     test $ac_count -gt 10 && break
5210   done
5211   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5212 esac
5213
5214       $ac_path_EGREP_found && break 3
5215     done
5216   done
5217 done
5218 IFS=$as_save_IFS
5219   if test -z "$ac_cv_path_EGREP"; then
5220     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5221 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5222    { (exit 1); exit 1; }; }
5223   fi
5224 else
5225   ac_cv_path_EGREP=$EGREP
5226 fi
5227
5228    fi
5229 fi
5230 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5231 $as_echo "$ac_cv_path_EGREP" >&6; }
5232  EGREP="$ac_cv_path_EGREP"
5233
5234
5235 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5236 $as_echo_n "checking for ANSI C header files... " >&6; }
5237 if test "${ac_cv_header_stdc+set}" = set; then
5238   $as_echo_n "(cached) " >&6
5239 else
5240   cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h.  */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h.  */
5246 #include <stdlib.h>
5247 #include <stdarg.h>
5248 #include <string.h>
5249 #include <float.h>
5250
5251 int
5252 main ()
5253 {
5254
5255   ;
5256   return 0;
5257 }
5258 _ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (ac_try="$ac_compile"
5261 case "(($ac_try" in
5262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263   *) ac_try_echo=$ac_try;;
5264 esac
5265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5266 $as_echo "$ac_try_echo") >&5
5267   (eval "$ac_compile") 2>conftest.er1
5268   ac_status=$?
5269   grep -v '^ *+' conftest.er1 >conftest.err
5270   rm -f conftest.er1
5271   cat conftest.err >&5
5272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); } && {
5274          test -z "$ac_c_werror_flag" ||
5275          test ! -s conftest.err
5276        } && test -s conftest.$ac_objext; then
5277   ac_cv_header_stdc=yes
5278 else
5279   $as_echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5281
5282         ac_cv_header_stdc=no
5283 fi
5284
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286
5287 if test $ac_cv_header_stdc = yes; then
5288   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5289   cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h.  */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h.  */
5295 #include <string.h>
5296
5297 _ACEOF
5298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5299   $EGREP "memchr" >/dev/null 2>&1; then
5300   :
5301 else
5302   ac_cv_header_stdc=no
5303 fi
5304 rm -f conftest*
5305
5306 fi
5307
5308 if test $ac_cv_header_stdc = yes; then
5309   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5310   cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h.  */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h.  */
5316 #include <stdlib.h>
5317
5318 _ACEOF
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320   $EGREP "free" >/dev/null 2>&1; then
5321   :
5322 else
5323   ac_cv_header_stdc=no
5324 fi
5325 rm -f conftest*
5326
5327 fi
5328
5329 if test $ac_cv_header_stdc = yes; then
5330   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5331   if test "$cross_compiling" = yes; then
5332   :
5333 else
5334   cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340 #include <ctype.h>
5341 #include <stdlib.h>
5342 #if ((' ' & 0x0FF) == 0x020)
5343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5345 #else
5346 # define ISLOWER(c) \
5347                    (('a' <= (c) && (c) <= 'i') \
5348                      || ('j' <= (c) && (c) <= 'r') \
5349                      || ('s' <= (c) && (c) <= 'z'))
5350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5351 #endif
5352
5353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5354 int
5355 main ()
5356 {
5357   int i;
5358   for (i = 0; i < 256; i++)
5359     if (XOR (islower (i), ISLOWER (i))
5360         || toupper (i) != TOUPPER (i))
5361       return 2;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest$ac_exeext
5366 if { (ac_try="$ac_link"
5367 case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5372 $as_echo "$ac_try_echo") >&5
5373   (eval "$ac_link") 2>&5
5374   ac_status=$?
5375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5377   { (case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5382 $as_echo "$ac_try_echo") >&5
5383   (eval "$ac_try") 2>&5
5384   ac_status=$?
5385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); }; }; then
5387   :
5388 else
5389   $as_echo "$as_me: program exited with status $ac_status" >&5
5390 $as_echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ( exit $ac_status )
5394 ac_cv_header_stdc=no
5395 fi
5396 rm -rf conftest.dSYM
5397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5398 fi
5399
5400
5401 fi
5402 fi
5403 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5404 $as_echo "$ac_cv_header_stdc" >&6; }
5405 if test $ac_cv_header_stdc = yes; then
5406
5407 cat >>confdefs.h <<\_ACEOF
5408 #define STDC_HEADERS 1
5409 _ACEOF
5410
5411 fi
5412
5413
5414  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5425                   inttypes.h stdint.h unistd.h
5426 do
5427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5429 $as_echo_n "checking for $ac_header... " >&6; }
5430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5431   $as_echo_n "(cached) " >&6
5432 else
5433   cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h.  */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h.  */
5439 $ac_includes_default
5440
5441 #include <$ac_header>
5442 _ACEOF
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5445 case "(($ac_try" in
5446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447   *) ac_try_echo=$ac_try;;
5448 esac
5449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5450 $as_echo "$ac_try_echo") >&5
5451   (eval "$ac_compile") 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } && {
5458          test -z "$ac_c_werror_flag" ||
5459          test ! -s conftest.err
5460        } && test -s conftest.$ac_objext; then
5461   eval "$as_ac_Header=yes"
5462 else
5463   $as_echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466         eval "$as_ac_Header=no"
5467 fi
5468
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 fi
5471 ac_res=`eval 'as_val=${'$as_ac_Header'}
5472                  $as_echo "$as_val"'`
5473                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5474 $as_echo "$ac_res" >&6; }
5475 as_val=`eval 'as_val=${'$as_ac_Header'}
5476                  $as_echo "$as_val"'`
5477    if test "x$as_val" = x""yes; then
5478   cat >>confdefs.h <<_ACEOF
5479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5480 _ACEOF
5481
5482 fi
5483
5484 done
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h pdflib.h
5508 do
5509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5511   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5512 $as_echo_n "checking for $ac_header... " >&6; }
5513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5514   $as_echo_n "(cached) " >&6
5515 fi
5516 ac_res=`eval 'as_val=${'$as_ac_Header'}
5517                  $as_echo "$as_val"'`
5518                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5519 $as_echo "$ac_res" >&6; }
5520 else
5521   # Is the header compilable?
5522 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5523 $as_echo_n "checking $ac_header usability... " >&6; }
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h.  */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h.  */
5530 $ac_includes_default
5531 #include <$ac_header>
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5535 case "(($ac_try" in
5536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537   *) ac_try_echo=$ac_try;;
5538 esac
5539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5540 $as_echo "$ac_try_echo") >&5
5541   (eval "$ac_compile") 2>conftest.er1
5542   ac_status=$?
5543   grep -v '^ *+' conftest.er1 >conftest.err
5544   rm -f conftest.er1
5545   cat conftest.err >&5
5546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } && {
5548          test -z "$ac_c_werror_flag" ||
5549          test ! -s conftest.err
5550        } && test -s conftest.$ac_objext; then
5551   ac_header_compiler=yes
5552 else
5553   $as_echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556         ac_header_compiler=no
5557 fi
5558
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5561 $as_echo "$ac_header_compiler" >&6; }
5562
5563 # Is the header present?
5564 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5565 $as_echo_n "checking $ac_header presence... " >&6; }
5566 cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h.  */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h.  */
5572 #include <$ac_header>
5573 _ACEOF
5574 if { (ac_try="$ac_cpp conftest.$ac_ext"
5575 case "(($ac_try" in
5576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577   *) ac_try_echo=$ac_try;;
5578 esac
5579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5580 $as_echo "$ac_try_echo") >&5
5581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5582   ac_status=$?
5583   grep -v '^ *+' conftest.er1 >conftest.err
5584   rm -f conftest.er1
5585   cat conftest.err >&5
5586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } >/dev/null && {
5588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5589          test ! -s conftest.err
5590        }; then
5591   ac_header_preproc=yes
5592 else
5593   $as_echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596   ac_header_preproc=no
5597 fi
5598
5599 rm -f conftest.err conftest.$ac_ext
5600 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5601 $as_echo "$ac_header_preproc" >&6; }
5602
5603 # So?  What about this header?
5604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5605   yes:no: )
5606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5607 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5610     ac_header_preproc=yes
5611     ;;
5612   no:yes:* )
5613     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5614 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5615     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5616 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5617     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5618 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5619     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5620 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5621     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5623     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5624 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5625
5626     ;;
5627 esac
5628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5629 $as_echo_n "checking for $ac_header... " >&6; }
5630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5631   $as_echo_n "(cached) " >&6
5632 else
5633   eval "$as_ac_Header=\$ac_header_preproc"
5634 fi
5635 ac_res=`eval 'as_val=${'$as_ac_Header'}
5636                  $as_echo "$as_val"'`
5637                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5638 $as_echo "$ac_res" >&6; }
5639
5640 fi
5641 as_val=`eval 'as_val=${'$as_ac_Header'}
5642                  $as_echo "$as_val"'`
5643    if test "x$as_val" = x""yes; then
5644   cat >>confdefs.h <<_ACEOF
5645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5646 _ACEOF
5647
5648 fi
5649
5650 done
5651
5652
5653
5654 cat >>confdefs.h <<_ACEOF
5655 #define PACKAGE "$PACKAGE"
5656 _ACEOF
5657
5658
5659 cat >>confdefs.h <<_ACEOF
5660 #define VERSION "$VERSION"
5661 _ACEOF
5662
5663
5664
5665
5666
5667
5668
5669  { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5670 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5671 if test "${ac_cv_c_const+set}" = set; then
5672   $as_echo_n "(cached) " >&6
5673 else
5674   cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680
5681 int
5682 main ()
5683 {
5684 /* FIXME: Include the comments suggested by Paul. */
5685 #ifndef __cplusplus
5686   /* Ultrix mips cc rejects this.  */
5687   typedef int charset[2];
5688   const charset cs;
5689   /* SunOS 4.1.1 cc rejects this.  */
5690   char const *const *pcpcc;
5691   char **ppc;
5692   /* NEC SVR4.0.2 mips cc rejects this.  */
5693   struct point {int x, y;};
5694   static struct point const zero = {0,0};
5695   /* AIX XL C 1.02.0.0 rejects this.
5696      It does not let you subtract one const X* pointer from another in
5697      an arm of an if-expression whose if-part is not a constant
5698      expression */
5699   const char *g = "string";
5700   pcpcc = &g + (g ? g-g : 0);
5701   /* HPUX 7.0 cc rejects these. */
5702   ++pcpcc;
5703   ppc = (char**) pcpcc;
5704   pcpcc = (char const *const *) ppc;
5705   { /* SCO 3.2v4 cc rejects this.  */
5706     char *t;
5707     char const *s = 0 ? (char *) 0 : (char const *) 0;
5708
5709     *t++ = 0;
5710     if (s) return 0;
5711   }
5712   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5713     int x[] = {25, 17};
5714     const int *foo = &x[0];
5715     ++foo;
5716   }
5717   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5718     typedef const int *iptr;
5719     iptr p = 0;
5720     ++p;
5721   }
5722   { /* AIX XL C 1.02.0.0 rejects this saying
5723        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5724     struct s { int j; const int *ap[3]; };
5725     struct s *b; b->j = 5;
5726   }
5727   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5728     const int foo = 10;
5729     if (!foo) return 0;
5730   }
5731   return !cs[0] && !zero.x;
5732 #endif
5733
5734   ;
5735   return 0;
5736 }
5737 _ACEOF
5738 rm -f conftest.$ac_objext
5739 if { (ac_try="$ac_compile"
5740 case "(($ac_try" in
5741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742   *) ac_try_echo=$ac_try;;
5743 esac
5744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5745 $as_echo "$ac_try_echo") >&5
5746   (eval "$ac_compile") 2>conftest.er1
5747   ac_status=$?
5748   grep -v '^ *+' conftest.er1 >conftest.err
5749   rm -f conftest.er1
5750   cat conftest.err >&5
5751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); } && {
5753          test -z "$ac_c_werror_flag" ||
5754          test ! -s conftest.err
5755        } && test -s conftest.$ac_objext; then
5756   ac_cv_c_const=yes
5757 else
5758   $as_echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761         ac_cv_c_const=no
5762 fi
5763
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 fi
5766 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5767 $as_echo "$ac_cv_c_const" >&6; }
5768 if test $ac_cv_c_const = no; then
5769
5770 cat >>confdefs.h <<\_ACEOF
5771 #define const /**/
5772 _ACEOF
5773
5774 fi
5775
5776  { $as_echo "$as_me:$LINENO: checking for inline" >&5
5777 $as_echo_n "checking for inline... " >&6; }
5778 if test "${ac_cv_c_inline+set}" = set; then
5779   $as_echo_n "(cached) " >&6
5780 else
5781   ac_cv_c_inline=no
5782 for ac_kw in inline __inline__ __inline; do
5783   cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h.  */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h.  */
5789 #ifndef __cplusplus
5790 typedef int foo_t;
5791 static $ac_kw foo_t static_foo () {return 0; }
5792 $ac_kw foo_t foo () {return 0; }
5793 #endif
5794
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (ac_try="$ac_compile"
5798 case "(($ac_try" in
5799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800   *) ac_try_echo=$ac_try;;
5801 esac
5802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5803 $as_echo "$ac_try_echo") >&5
5804   (eval "$ac_compile") 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } && {
5811          test -z "$ac_c_werror_flag" ||
5812          test ! -s conftest.err
5813        } && test -s conftest.$ac_objext; then
5814   ac_cv_c_inline=$ac_kw
5815 else
5816   $as_echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819
5820 fi
5821
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823   test "$ac_cv_c_inline" != no && break
5824 done
5825
5826 fi
5827 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5828 $as_echo "$ac_cv_c_inline" >&6; }
5829
5830
5831 case $ac_cv_c_inline in
5832   inline | yes) ;;
5833   *)
5834     case $ac_cv_c_inline in
5835       no) ac_val=;;
5836       *) ac_val=$ac_cv_c_inline;;
5837     esac
5838     cat >>confdefs.h <<_ACEOF
5839 #ifndef __cplusplus
5840 #define inline $ac_val
5841 #endif
5842 _ACEOF
5843     ;;
5844 esac
5845
5846  { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5847 $as_echo_n "checking for off_t... " >&6; }
5848 if test "${ac_cv_type_off_t+set}" = set; then
5849   $as_echo_n "(cached) " >&6
5850 else
5851   ac_cv_type_off_t=no
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858 $ac_includes_default
5859 int
5860 main ()
5861 {
5862 if (sizeof (off_t))
5863        return 0;
5864   ;
5865   return 0;
5866 }
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5870 case "(($ac_try" in
5871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872   *) ac_try_echo=$ac_try;;
5873 esac
5874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5875 $as_echo "$ac_try_echo") >&5
5876   (eval "$ac_compile") 2>conftest.er1
5877   ac_status=$?
5878   grep -v '^ *+' conftest.er1 >conftest.err
5879   rm -f conftest.er1
5880   cat conftest.err >&5
5881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); } && {
5883          test -z "$ac_c_werror_flag" ||
5884          test ! -s conftest.err
5885        } && test -s conftest.$ac_objext; then
5886   cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h.  */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h.  */
5892 $ac_includes_default
5893 int
5894 main ()
5895 {
5896 if (sizeof ((off_t)))
5897           return 0;
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5904 case "(($ac_try" in
5905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906   *) ac_try_echo=$ac_try;;
5907 esac
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910   (eval "$ac_compile") 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } && {
5917          test -z "$ac_c_werror_flag" ||
5918          test ! -s conftest.err
5919        } && test -s conftest.$ac_objext; then
5920   :
5921 else
5922   $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925         ac_cv_type_off_t=yes
5926 fi
5927
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 else
5930   $as_echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933
5934 fi
5935
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 fi
5938 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5939 $as_echo "$ac_cv_type_off_t" >&6; }
5940 if test "x$ac_cv_type_off_t" = x""yes; then
5941   :
5942 else
5943
5944 cat >>confdefs.h <<_ACEOF
5945 #define off_t long int
5946 _ACEOF
5947
5948 fi
5949
5950  { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5951 $as_echo_n "checking for size_t... " >&6; }
5952 if test "${ac_cv_type_size_t+set}" = set; then
5953   $as_echo_n "(cached) " >&6
5954 else
5955   ac_cv_type_size_t=no
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 $ac_includes_default
5963 int
5964 main ()
5965 {
5966 if (sizeof (size_t))
5967        return 0;
5968   ;
5969   return 0;
5970 }
5971 _ACEOF
5972 rm -f conftest.$ac_objext
5973 if { (ac_try="$ac_compile"
5974 case "(($ac_try" in
5975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976   *) ac_try_echo=$ac_try;;
5977 esac
5978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5979 $as_echo "$ac_try_echo") >&5
5980   (eval "$ac_compile") 2>conftest.er1
5981   ac_status=$?
5982   grep -v '^ *+' conftest.er1 >conftest.err
5983   rm -f conftest.er1
5984   cat conftest.err >&5
5985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } && {
5987          test -z "$ac_c_werror_flag" ||
5988          test ! -s conftest.err
5989        } && test -s conftest.$ac_objext; then
5990   cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h.  */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h.  */
5996 $ac_includes_default
5997 int
5998 main ()
5999 {
6000 if (sizeof ((size_t)))
6001           return 0;
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010   *) ac_try_echo=$ac_try;;
6011 esac
6012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014   (eval "$ac_compile") 2>conftest.er1
6015   ac_status=$?
6016   grep -v '^ *+' conftest.er1 >conftest.err
6017   rm -f conftest.er1
6018   cat conftest.err >&5
6019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } && {
6021          test -z "$ac_c_werror_flag" ||
6022          test ! -s conftest.err
6023        } && test -s conftest.$ac_objext; then
6024   :
6025 else
6026   $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029         ac_cv_type_size_t=yes
6030 fi
6031
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 else
6034   $as_echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037
6038 fi
6039
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6043 $as_echo "$ac_cv_type_size_t" >&6; }
6044 if test "x$ac_cv_type_size_t" = x""yes; then
6045   :
6046 else
6047
6048 cat >>confdefs.h <<_ACEOF
6049 #define size_t unsigned int
6050 _ACEOF
6051
6052 fi
6053
6054  { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6055 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6056 if test "${ac_cv_struct_tm+set}" = set; then
6057   $as_echo_n "(cached) " >&6
6058 else
6059   cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065 #include <sys/types.h>
6066 #include <time.h>
6067
6068 int
6069 main ()
6070 {
6071 struct tm tm;
6072                                      int *p = &tm.tm_sec;
6073                                      return !p;
6074   ;
6075   return 0;
6076 }
6077 _ACEOF
6078 rm -f conftest.$ac_objext
6079 if { (ac_try="$ac_compile"
6080 case "(($ac_try" in
6081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082   *) ac_try_echo=$ac_try;;
6083 esac
6084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6085 $as_echo "$ac_try_echo") >&5
6086   (eval "$ac_compile") 2>conftest.er1
6087   ac_status=$?
6088   grep -v '^ *+' conftest.er1 >conftest.err
6089   rm -f conftest.er1
6090   cat conftest.err >&5
6091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); } && {
6093          test -z "$ac_c_werror_flag" ||
6094          test ! -s conftest.err
6095        } && test -s conftest.$ac_objext; then
6096   ac_cv_struct_tm=time.h
6097 else
6098   $as_echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101         ac_cv_struct_tm=sys/time.h
6102 fi
6103
6104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 fi
6106 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6107 $as_echo "$ac_cv_struct_tm" >&6; }
6108 if test $ac_cv_struct_tm = sys/time.h; then
6109
6110 cat >>confdefs.h <<\_ACEOF
6111 #define TM_IN_SYS_TIME 1
6112 _ACEOF
6113
6114 fi
6115
6116  { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6117 $as_echo_n "checking for boolean... " >&6; }
6118 if test "${ac_cv_type_boolean+set}" = set; then
6119   $as_echo_n "(cached) " >&6
6120 else
6121   ac_cv_type_boolean=no
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h.  */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h.  */
6128 $ac_includes_default
6129 int
6130 main ()
6131 {
6132 if (sizeof (boolean))
6133        return 0;
6134   ;
6135   return 0;
6136 }
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (ac_try="$ac_compile"
6140 case "(($ac_try" in
6141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142   *) ac_try_echo=$ac_try;;
6143 esac
6144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6145 $as_echo "$ac_try_echo") >&5
6146   (eval "$ac_compile") 2>conftest.er1
6147   ac_status=$?
6148   grep -v '^ *+' conftest.er1 >conftest.err
6149   rm -f conftest.er1
6150   cat conftest.err >&5
6151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); } && {
6153          test -z "$ac_c_werror_flag" ||
6154          test ! -s conftest.err
6155        } && test -s conftest.$ac_objext; then
6156   cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162 $ac_includes_default
6163 int
6164 main ()
6165 {
6166 if (sizeof ((boolean)))
6167           return 0;
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6174 case "(($ac_try" in
6175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176   *) ac_try_echo=$ac_try;;
6177 esac
6178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180   (eval "$ac_compile") 2>conftest.er1
6181   ac_status=$?
6182   grep -v '^ *+' conftest.er1 >conftest.err
6183   rm -f conftest.er1
6184   cat conftest.err >&5
6185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } && {
6187          test -z "$ac_c_werror_flag" ||
6188          test ! -s conftest.err
6189        } && test -s conftest.$ac_objext; then
6190   :
6191 else
6192   $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195         ac_cv_type_boolean=yes
6196 fi
6197
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 else
6200   $as_echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203
6204 fi
6205
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 fi
6208 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6209 $as_echo "$ac_cv_type_boolean" >&6; }
6210 if test "x$ac_cv_type_boolean" = x""yes; then
6211   :
6212 else
6213
6214 cat >>confdefs.h <<_ACEOF
6215 #define boolean int
6216 _ACEOF
6217
6218 fi
6219  #needed for jpeglib
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6236 do
6237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6238 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6239 $as_echo_n "checking for $ac_func... " >&6; }
6240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6241   $as_echo_n "(cached) " >&6
6242 else
6243   cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h.  */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h.  */
6249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6251 #define $ac_func innocuous_$ac_func
6252
6253 /* System header to define __stub macros and hopefully few prototypes,
6254     which can conflict with char $ac_func (); below.
6255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6256     <limits.h> exists even on freestanding compilers.  */
6257
6258 #ifdef __STDC__
6259 # include <limits.h>
6260 #else
6261 # include <assert.h>
6262 #endif
6263
6264 #undef $ac_func
6265
6266 /* Override any GCC internal prototype to avoid an error.
6267    Use char because int might match the return type of a GCC
6268    builtin and then its argument prototype would still apply.  */
6269 #ifdef __cplusplus
6270 extern "C"
6271 #endif
6272 char $ac_func ();
6273 /* The GNU C library defines this for functions which it implements
6274     to always fail with ENOSYS.  Some functions are actually named
6275     something starting with __ and the normal name is an alias.  */
6276 #if defined __stub_$ac_func || defined __stub___$ac_func
6277 choke me
6278 #endif
6279
6280 int
6281 main ()
6282 {
6283 return $ac_func ();
6284   ;
6285   return 0;
6286 }
6287 _ACEOF
6288 rm -f conftest.$ac_objext conftest$ac_exeext
6289 if { (ac_try="$ac_link"
6290 case "(($ac_try" in
6291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292   *) ac_try_echo=$ac_try;;
6293 esac
6294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6295 $as_echo "$ac_try_echo") >&5
6296   (eval "$ac_link") 2>conftest.er1
6297   ac_status=$?
6298   grep -v '^ *+' conftest.er1 >conftest.err
6299   rm -f conftest.er1
6300   cat conftest.err >&5
6301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); } && {
6303          test -z "$ac_c_werror_flag" ||
6304          test ! -s conftest.err
6305        } && test -s conftest$ac_exeext && {
6306          test "$cross_compiling" = yes ||
6307          $as_test_x conftest$ac_exeext
6308        }; then
6309   eval "$as_ac_var=yes"
6310 else
6311   $as_echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314         eval "$as_ac_var=no"
6315 fi
6316
6317 rm -rf conftest.dSYM
6318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6319       conftest$ac_exeext conftest.$ac_ext
6320 fi
6321 ac_res=`eval 'as_val=${'$as_ac_var'}
6322                  $as_echo "$as_val"'`
6323                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6324 $as_echo "$ac_res" >&6; }
6325 as_val=`eval 'as_val=${'$as_ac_var'}
6326                  $as_echo "$as_val"'`
6327    if test "x$as_val" = x""yes; then
6328   cat >>confdefs.h <<_ACEOF
6329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6330 _ACEOF
6331
6332 fi
6333 done
6334
6335
6336 # The cast to long int works around a bug in the HP C Compiler
6337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6339 # This bug is HP SR number 8606223364.
6340 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6341 $as_echo_n "checking size of signed char... " >&6; }
6342 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6343   $as_echo_n "(cached) " >&6
6344 else
6345   if test "$cross_compiling" = yes; then
6346   # Depending upon the size, compute the lo and hi bounds.
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h.  */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h.  */
6353 $ac_includes_default
6354 int
6355 main ()
6356 {
6357 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6358 test_array [0] = 0
6359
6360   ;
6361   return 0;
6362 }
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6366 case "(($ac_try" in
6367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368   *) ac_try_echo=$ac_try;;
6369 esac
6370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6371 $as_echo "$ac_try_echo") >&5
6372   (eval "$ac_compile") 2>conftest.er1
6373   ac_status=$?
6374   grep -v '^ *+' conftest.er1 >conftest.err
6375   rm -f conftest.er1
6376   cat conftest.err >&5
6377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); } && {
6379          test -z "$ac_c_werror_flag" ||
6380          test ! -s conftest.err
6381        } && test -s conftest.$ac_objext; then
6382   ac_lo=0 ac_mid=0
6383   while :; do
6384     cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h.  */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h.  */
6390 $ac_includes_default
6391 int
6392 main ()
6393 {
6394 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6395 test_array [0] = 0
6396
6397   ;
6398   return 0;
6399 }
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (ac_try="$ac_compile"
6403 case "(($ac_try" in
6404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405   *) ac_try_echo=$ac_try;;
6406 esac
6407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6408 $as_echo "$ac_try_echo") >&5
6409   (eval "$ac_compile") 2>conftest.er1
6410   ac_status=$?
6411   grep -v '^ *+' conftest.er1 >conftest.err
6412   rm -f conftest.er1
6413   cat conftest.err >&5
6414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); } && {
6416          test -z "$ac_c_werror_flag" ||
6417          test ! -s conftest.err
6418        } && test -s conftest.$ac_objext; then
6419   ac_hi=$ac_mid; break
6420 else
6421   $as_echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424         ac_lo=`expr $ac_mid + 1`
6425                         if test $ac_lo -le $ac_mid; then
6426                           ac_lo= ac_hi=
6427                           break
6428                         fi
6429                         ac_mid=`expr 2 '*' $ac_mid + 1`
6430 fi
6431
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433   done
6434 else
6435   $as_echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438         cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444 $ac_includes_default
6445 int
6446 main ()
6447 {
6448 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6449 test_array [0] = 0
6450
6451   ;
6452   return 0;
6453 }
6454 _ACEOF
6455 rm -f conftest.$ac_objext
6456 if { (ac_try="$ac_compile"
6457 case "(($ac_try" in
6458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459   *) ac_try_echo=$ac_try;;
6460 esac
6461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6462 $as_echo "$ac_try_echo") >&5
6463   (eval "$ac_compile") 2>conftest.er1
6464   ac_status=$?
6465   grep -v '^ *+' conftest.er1 >conftest.err
6466   rm -f conftest.er1
6467   cat conftest.err >&5
6468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } && {
6470          test -z "$ac_c_werror_flag" ||
6471          test ! -s conftest.err
6472        } && test -s conftest.$ac_objext; then
6473   ac_hi=-1 ac_mid=-1
6474   while :; do
6475     cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h.  */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h.  */
6481 $ac_includes_default
6482 int
6483 main ()
6484 {
6485 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6486 test_array [0] = 0
6487
6488   ;
6489   return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext
6493 if { (ac_try="$ac_compile"
6494 case "(($ac_try" in
6495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496   *) ac_try_echo=$ac_try;;
6497 esac
6498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499 $as_echo "$ac_try_echo") >&5
6500   (eval "$ac_compile") 2>conftest.er1
6501   ac_status=$?
6502   grep -v '^ *+' conftest.er1 >conftest.err
6503   rm -f conftest.er1
6504   cat conftest.err >&5
6505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); } && {
6507          test -z "$ac_c_werror_flag" ||
6508          test ! -s conftest.err
6509        } && test -s conftest.$ac_objext; then
6510   ac_lo=$ac_mid; break
6511 else
6512   $as_echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515         ac_hi=`expr '(' $ac_mid ')' - 1`
6516                         if test $ac_mid -le $ac_hi; then
6517                           ac_lo= ac_hi=
6518                           break
6519                         fi
6520                         ac_mid=`expr 2 '*' $ac_mid`
6521 fi
6522
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524   done
6525 else
6526   $as_echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6528
6529         ac_lo= ac_hi=
6530 fi
6531
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 fi
6534
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 # Binary search between lo and hi bounds.
6537 while test "x$ac_lo" != "x$ac_hi"; do
6538   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6539   cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h.  */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h.  */
6545 $ac_includes_default
6546 int
6547 main ()
6548 {
6549 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6550 test_array [0] = 0
6551
6552   ;
6553   return 0;
6554 }
6555 _ACEOF
6556 rm -f conftest.$ac_objext
6557 if { (ac_try="$ac_compile"
6558 case "(($ac_try" in
6559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560   *) ac_try_echo=$ac_try;;
6561 esac
6562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6563 $as_echo "$ac_try_echo") >&5
6564   (eval "$ac_compile") 2>conftest.er1
6565   ac_status=$?
6566   grep -v '^ *+' conftest.er1 >conftest.err
6567   rm -f conftest.er1
6568   cat conftest.err >&5
6569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); } && {
6571          test -z "$ac_c_werror_flag" ||
6572          test ! -s conftest.err
6573        } && test -s conftest.$ac_objext; then
6574   ac_hi=$ac_mid
6575 else
6576   $as_echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6578
6579         ac_lo=`expr '(' $ac_mid ')' + 1`
6580 fi
6581
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 done
6584 case $ac_lo in
6585 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6586 '') if test "$ac_cv_type_signed_char" = yes; then
6587      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6589 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6590 See \`config.log' for more details." >&5
6591 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6592 See \`config.log' for more details." >&2;}
6593    { (exit 77); exit 77; }; }; }
6594    else
6595      ac_cv_sizeof_signed_char=0
6596    fi ;;
6597 esac
6598 else
6599   cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h.  */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h.  */
6605 $ac_includes_default
6606 static long int longval () { return (long int) (sizeof (signed char)); }
6607 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6608 #include <stdio.h>
6609 #include <stdlib.h>
6610 int
6611 main ()
6612 {
6613
6614   FILE *f = fopen ("conftest.val", "w");
6615   if (! f)
6616     return 1;
6617   if (((long int) (sizeof (signed char))) < 0)
6618     {
6619       long int i = longval ();
6620       if (i != ((long int) (sizeof (signed char))))
6621         return 1;
6622       fprintf (f, "%ld", i);
6623     }
6624   else
6625     {
6626       unsigned long int i = ulongval ();
6627       if (i != ((long int) (sizeof (signed char))))
6628         return 1;
6629       fprintf (f, "%lu", i);
6630     }
6631   /* Do not output a trailing newline, as this causes \r\n confusion
6632      on some platforms.  */
6633   return ferror (f) || fclose (f) != 0;
6634
6635   ;
6636   return 0;
6637 }
6638 _ACEOF
6639 rm -f conftest$ac_exeext
6640 if { (ac_try="$ac_link"
6641 case "(($ac_try" in
6642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643   *) ac_try_echo=$ac_try;;
6644 esac
6645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6646 $as_echo "$ac_try_echo") >&5
6647   (eval "$ac_link") 2>&5
6648   ac_status=$?
6649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6651   { (case "(($ac_try" in
6652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653   *) ac_try_echo=$ac_try;;
6654 esac
6655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6656 $as_echo "$ac_try_echo") >&5
6657   (eval "$ac_try") 2>&5
6658   ac_status=$?
6659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; }; then
6661   ac_cv_sizeof_signed_char=`cat conftest.val`
6662 else
6663   $as_echo "$as_me: program exited with status $ac_status" >&5
6664 $as_echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ( exit $ac_status )
6668 if test "$ac_cv_type_signed_char" = yes; then
6669      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6671 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6672 See \`config.log' for more details." >&5
6673 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6674 See \`config.log' for more details." >&2;}
6675    { (exit 77); exit 77; }; }; }
6676    else
6677      ac_cv_sizeof_signed_char=0
6678    fi
6679 fi
6680 rm -rf conftest.dSYM
6681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6682 fi
6683 rm -f conftest.val
6684 fi
6685 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6686 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6687
6688
6689
6690 cat >>confdefs.h <<_ACEOF
6691 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6692 _ACEOF
6693
6694
6695 # The cast to long int works around a bug in the HP C Compiler
6696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6698 # This bug is HP SR number 8606223364.
6699 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6700 $as_echo_n "checking size of signed short... " >&6; }
6701 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6702   $as_echo_n "(cached) " >&6
6703 else
6704   if test "$cross_compiling" = yes; then
6705   # Depending upon the size, compute the lo and hi bounds.
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h.  */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h.  */
6712 $ac_includes_default
6713 int
6714 main ()
6715 {
6716 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6717 test_array [0] = 0
6718
6719   ;
6720   return 0;
6721 }
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6725 case "(($ac_try" in
6726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727   *) ac_try_echo=$ac_try;;
6728 esac
6729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6730 $as_echo "$ac_try_echo") >&5
6731   (eval "$ac_compile") 2>conftest.er1
6732   ac_status=$?
6733   grep -v '^ *+' conftest.er1 >conftest.err
6734   rm -f conftest.er1
6735   cat conftest.err >&5
6736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); } && {
6738          test -z "$ac_c_werror_flag" ||
6739          test ! -s conftest.err
6740        } && test -s conftest.$ac_objext; then
6741   ac_lo=0 ac_mid=0
6742   while :; do
6743     cat >conftest.$ac_ext <<_ACEOF
6744 /* confdefs.h.  */
6745 _ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h.  */
6749 $ac_includes_default
6750 int
6751 main ()
6752 {
6753 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6754 test_array [0] = 0
6755
6756   ;
6757   return 0;
6758 }
6759 _ACEOF
6760 rm -f conftest.$ac_objext
6761 if { (ac_try="$ac_compile"
6762 case "(($ac_try" in
6763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764   *) ac_try_echo=$ac_try;;
6765 esac
6766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6767 $as_echo "$ac_try_echo") >&5
6768   (eval "$ac_compile") 2>conftest.er1
6769   ac_status=$?
6770   grep -v '^ *+' conftest.er1 >conftest.err
6771   rm -f conftest.er1
6772   cat conftest.err >&5
6773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); } && {
6775          test -z "$ac_c_werror_flag" ||
6776          test ! -s conftest.err
6777        } && test -s conftest.$ac_objext; then
6778   ac_hi=$ac_mid; break
6779 else
6780   $as_echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783         ac_lo=`expr $ac_mid + 1`
6784                         if test $ac_lo -le $ac_mid; then
6785                           ac_lo= ac_hi=
6786                           break
6787                         fi
6788                         ac_mid=`expr 2 '*' $ac_mid + 1`
6789 fi
6790
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792   done
6793 else
6794   $as_echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6796
6797         cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h.  */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h.  */
6803 $ac_includes_default
6804 int
6805 main ()
6806 {
6807 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6808 test_array [0] = 0
6809
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6816 case "(($ac_try" in
6817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818   *) ac_try_echo=$ac_try;;
6819 esac
6820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6821 $as_echo "$ac_try_echo") >&5
6822   (eval "$ac_compile") 2>conftest.er1
6823   ac_status=$?
6824   grep -v '^ *+' conftest.er1 >conftest.err
6825   rm -f conftest.er1
6826   cat conftest.err >&5
6827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); } && {
6829          test -z "$ac_c_werror_flag" ||
6830          test ! -s conftest.err
6831        } && test -s conftest.$ac_objext; then
6832   ac_hi=-1 ac_mid=-1
6833   while :; do
6834     cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h.  */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h.  */
6840 $ac_includes_default
6841 int
6842 main ()
6843 {
6844 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6845 test_array [0] = 0
6846
6847   ;
6848   return 0;
6849 }
6850 _ACEOF
6851 rm -f conftest.$ac_objext
6852 if { (ac_try="$ac_compile"
6853 case "(($ac_try" in
6854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855   *) ac_try_echo=$ac_try;;
6856 esac
6857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6858 $as_echo "$ac_try_echo") >&5
6859   (eval "$ac_compile") 2>conftest.er1
6860   ac_status=$?
6861   grep -v '^ *+' conftest.er1 >conftest.err
6862   rm -f conftest.er1
6863   cat conftest.err >&5
6864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); } && {
6866          test -z "$ac_c_werror_flag" ||
6867          test ! -s conftest.err
6868        } && test -s conftest.$ac_objext; then
6869   ac_lo=$ac_mid; break
6870 else
6871   $as_echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6873
6874         ac_hi=`expr '(' $ac_mid ')' - 1`
6875                         if test $ac_mid -le $ac_hi; then
6876                           ac_lo= ac_hi=
6877                           break
6878                         fi
6879                         ac_mid=`expr 2 '*' $ac_mid`
6880 fi
6881
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883   done
6884 else
6885   $as_echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888         ac_lo= ac_hi=
6889 fi
6890
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 fi
6893
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895 # Binary search between lo and hi bounds.
6896 while test "x$ac_lo" != "x$ac_hi"; do
6897   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6898   cat >conftest.$ac_ext <<_ACEOF
6899 /* confdefs.h.  */
6900 _ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h.  */
6904 $ac_includes_default
6905 int
6906 main ()
6907 {
6908 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6909 test_array [0] = 0
6910
6911   ;
6912   return 0;
6913 }
6914 _ACEOF
6915 rm -f conftest.$ac_objext
6916 if { (ac_try="$ac_compile"
6917 case "(($ac_try" in
6918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919   *) ac_try_echo=$ac_try;;
6920 esac
6921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6922 $as_echo "$ac_try_echo") >&5
6923   (eval "$ac_compile") 2>conftest.er1
6924   ac_status=$?
6925   grep -v '^ *+' conftest.er1 >conftest.err
6926   rm -f conftest.er1
6927   cat conftest.err >&5
6928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); } && {
6930          test -z "$ac_c_werror_flag" ||
6931          test ! -s conftest.err
6932        } && test -s conftest.$ac_objext; then
6933   ac_hi=$ac_mid
6934 else
6935   $as_echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938         ac_lo=`expr '(' $ac_mid ')' + 1`
6939 fi
6940
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 done
6943 case $ac_lo in
6944 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6945 '') if test "$ac_cv_type_signed_short" = yes; then
6946      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6948 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6949 See \`config.log' for more details." >&5
6950 $as_echo "$as_me: error: cannot compute sizeof (signed short)
6951 See \`config.log' for more details." >&2;}
6952    { (exit 77); exit 77; }; }; }
6953    else
6954      ac_cv_sizeof_signed_short=0
6955    fi ;;
6956 esac
6957 else
6958   cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h.  */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h.  */
6964 $ac_includes_default
6965 static long int longval () { return (long int) (sizeof (signed short)); }
6966 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
6967 #include <stdio.h>
6968 #include <stdlib.h>
6969 int
6970 main ()
6971 {
6972
6973   FILE *f = fopen ("conftest.val", "w");
6974   if (! f)
6975     return 1;
6976   if (((long int) (sizeof (signed short))) < 0)
6977     {
6978       long int i = longval ();
6979       if (i != ((long int) (sizeof (signed short))))
6980         return 1;
6981       fprintf (f, "%ld", i);
6982     }
6983   else
6984     {
6985       unsigned long int i = ulongval ();
6986       if (i != ((long int) (sizeof (signed short))))
6987         return 1;
6988       fprintf (f, "%lu", i);
6989     }
6990   /* Do not output a trailing newline, as this causes \r\n confusion
6991      on some platforms.  */
6992   return ferror (f) || fclose (f) != 0;
6993
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest$ac_exeext
6999 if { (ac_try="$ac_link"
7000 case "(($ac_try" in
7001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002   *) ac_try_echo=$ac_try;;
7003 esac
7004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7005 $as_echo "$ac_try_echo") >&5
7006   (eval "$ac_link") 2>&5
7007   ac_status=$?
7008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7010   { (case "(($ac_try" in
7011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012   *) ac_try_echo=$ac_try;;
7013 esac
7014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7015 $as_echo "$ac_try_echo") >&5
7016   (eval "$ac_try") 2>&5
7017   ac_status=$?
7018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; }; then
7020   ac_cv_sizeof_signed_short=`cat conftest.val`
7021 else
7022   $as_echo "$as_me: program exited with status $ac_status" >&5
7023 $as_echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 ( exit $ac_status )
7027 if test "$ac_cv_type_signed_short" = yes; then
7028      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7030 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7031 See \`config.log' for more details." >&5
7032 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7033 See \`config.log' for more details." >&2;}
7034    { (exit 77); exit 77; }; }; }
7035    else
7036      ac_cv_sizeof_signed_short=0
7037    fi
7038 fi
7039 rm -rf conftest.dSYM
7040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7041 fi
7042 rm -f conftest.val
7043 fi
7044 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7045 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7046
7047
7048
7049 cat >>confdefs.h <<_ACEOF
7050 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7051 _ACEOF
7052
7053
7054 # The cast to long int works around a bug in the HP C Compiler
7055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7057 # This bug is HP SR number 8606223364.
7058 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7059 $as_echo_n "checking size of signed... " >&6; }
7060 if test "${ac_cv_sizeof_signed+set}" = set; then
7061   $as_echo_n "(cached) " >&6
7062 else
7063   if test "$cross_compiling" = yes; then
7064   # Depending upon the size, compute the lo and hi bounds.
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h.  */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h.  */
7071 $ac_includes_default
7072 int
7073 main ()
7074 {
7075 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7076 test_array [0] = 0
7077
7078   ;
7079   return 0;
7080 }
7081 _ACEOF
7082 rm -f conftest.$ac_objext
7083 if { (ac_try="$ac_compile"
7084 case "(($ac_try" in
7085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086   *) ac_try_echo=$ac_try;;
7087 esac
7088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7089 $as_echo "$ac_try_echo") >&5
7090   (eval "$ac_compile") 2>conftest.er1
7091   ac_status=$?
7092   grep -v '^ *+' conftest.er1 >conftest.err
7093   rm -f conftest.er1
7094   cat conftest.err >&5
7095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); } && {
7097          test -z "$ac_c_werror_flag" ||
7098          test ! -s conftest.err
7099        } && test -s conftest.$ac_objext; then
7100   ac_lo=0 ac_mid=0
7101   while :; do
7102     cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h.  */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h.  */
7108 $ac_includes_default
7109 int
7110 main ()
7111 {
7112 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7113 test_array [0] = 0
7114
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext
7120 if { (ac_try="$ac_compile"
7121 case "(($ac_try" in
7122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123   *) ac_try_echo=$ac_try;;
7124 esac
7125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7126 $as_echo "$ac_try_echo") >&5
7127   (eval "$ac_compile") 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } && {
7134          test -z "$ac_c_werror_flag" ||
7135          test ! -s conftest.err
7136        } && test -s conftest.$ac_objext; then
7137   ac_hi=$ac_mid; break
7138 else
7139   $as_echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7141
7142         ac_lo=`expr $ac_mid + 1`
7143                         if test $ac_lo -le $ac_mid; then
7144                           ac_lo= ac_hi=
7145                           break
7146                         fi
7147                         ac_mid=`expr 2 '*' $ac_mid + 1`
7148 fi
7149
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151   done
7152 else
7153   $as_echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7155
7156         cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h.  */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h.  */
7162 $ac_includes_default
7163 int
7164 main ()
7165 {
7166 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7167 test_array [0] = 0
7168
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7175 case "(($ac_try" in
7176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177   *) ac_try_echo=$ac_try;;
7178 esac
7179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7180 $as_echo "$ac_try_echo") >&5
7181   (eval "$ac_compile") 2>conftest.er1
7182   ac_status=$?
7183   grep -v '^ *+' conftest.er1 >conftest.err
7184   rm -f conftest.er1
7185   cat conftest.err >&5
7186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); } && {
7188          test -z "$ac_c_werror_flag" ||
7189          test ! -s conftest.err
7190        } && test -s conftest.$ac_objext; then
7191   ac_hi=-1 ac_mid=-1
7192   while :; do
7193     cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199 $ac_includes_default
7200 int
7201 main ()
7202 {
7203 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7204 test_array [0] = 0
7205
7206   ;
7207   return 0;
7208 }
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7212 case "(($ac_try" in
7213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214   *) ac_try_echo=$ac_try;;
7215 esac
7216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7217 $as_echo "$ac_try_echo") >&5
7218   (eval "$ac_compile") 2>conftest.er1
7219   ac_status=$?
7220   grep -v '^ *+' conftest.er1 >conftest.err
7221   rm -f conftest.er1
7222   cat conftest.err >&5
7223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224   (exit $ac_status); } && {
7225          test -z "$ac_c_werror_flag" ||
7226          test ! -s conftest.err
7227        } && test -s conftest.$ac_objext; then
7228   ac_lo=$ac_mid; break
7229 else
7230   $as_echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7232
7233         ac_hi=`expr '(' $ac_mid ')' - 1`
7234                         if test $ac_mid -le $ac_hi; then
7235                           ac_lo= ac_hi=
7236                           break
7237                         fi
7238                         ac_mid=`expr 2 '*' $ac_mid`
7239 fi
7240
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242   done
7243 else
7244   $as_echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247         ac_lo= ac_hi=
7248 fi
7249
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251 fi
7252
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 # Binary search between lo and hi bounds.
7255 while test "x$ac_lo" != "x$ac_hi"; do
7256   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7257   cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h.  */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h.  */
7263 $ac_includes_default
7264 int
7265 main ()
7266 {
7267 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7268 test_array [0] = 0
7269
7270   ;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest.$ac_objext
7275 if { (ac_try="$ac_compile"
7276 case "(($ac_try" in
7277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278   *) ac_try_echo=$ac_try;;
7279 esac
7280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7281 $as_echo "$ac_try_echo") >&5
7282   (eval "$ac_compile") 2>conftest.er1
7283   ac_status=$?
7284   grep -v '^ *+' conftest.er1 >conftest.err
7285   rm -f conftest.er1
7286   cat conftest.err >&5
7287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } && {
7289          test -z "$ac_c_werror_flag" ||
7290          test ! -s conftest.err
7291        } && test -s conftest.$ac_objext; then
7292   ac_hi=$ac_mid
7293 else
7294   $as_echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.$ac_ext >&5
7296
7297         ac_lo=`expr '(' $ac_mid ')' + 1`
7298 fi
7299
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 done
7302 case $ac_lo in
7303 ?*) ac_cv_sizeof_signed=$ac_lo;;
7304 '') if test "$ac_cv_type_signed" = yes; then
7305      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7307 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7308 See \`config.log' for more details." >&5
7309 $as_echo "$as_me: error: cannot compute sizeof (signed)
7310 See \`config.log' for more details." >&2;}
7311    { (exit 77); exit 77; }; }; }
7312    else
7313      ac_cv_sizeof_signed=0
7314    fi ;;
7315 esac
7316 else
7317   cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323 $ac_includes_default
7324 static long int longval () { return (long int) (sizeof (signed)); }
7325 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7326 #include <stdio.h>
7327 #include <stdlib.h>
7328 int
7329 main ()
7330 {
7331
7332   FILE *f = fopen ("conftest.val", "w");
7333   if (! f)
7334     return 1;
7335   if (((long int) (sizeof (signed))) < 0)
7336     {
7337       long int i = longval ();
7338       if (i != ((long int) (sizeof (signed))))
7339         return 1;
7340       fprintf (f, "%ld", i);
7341     }
7342   else
7343     {
7344       unsigned long int i = ulongval ();
7345       if (i != ((long int) (sizeof (signed))))
7346         return 1;
7347       fprintf (f, "%lu", i);
7348     }
7349   /* Do not output a trailing newline, as this causes \r\n confusion
7350      on some platforms.  */
7351   return ferror (f) || fclose (f) != 0;
7352
7353   ;
7354   return 0;
7355 }
7356 _ACEOF
7357 rm -f conftest$ac_exeext
7358 if { (ac_try="$ac_link"
7359 case "(($ac_try" in
7360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361   *) ac_try_echo=$ac_try;;
7362 esac
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365   (eval "$ac_link") 2>&5
7366   ac_status=$?
7367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7369   { (case "(($ac_try" in
7370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371   *) ac_try_echo=$ac_try;;
7372 esac
7373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7374 $as_echo "$ac_try_echo") >&5
7375   (eval "$ac_try") 2>&5
7376   ac_status=$?
7377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); }; }; then
7379   ac_cv_sizeof_signed=`cat conftest.val`
7380 else
7381   $as_echo "$as_me: program exited with status $ac_status" >&5
7382 $as_echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7384
7385 ( exit $ac_status )
7386 if test "$ac_cv_type_signed" = yes; then
7387      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7389 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7390 See \`config.log' for more details." >&5
7391 $as_echo "$as_me: error: cannot compute sizeof (signed)
7392 See \`config.log' for more details." >&2;}
7393    { (exit 77); exit 77; }; }; }
7394    else
7395      ac_cv_sizeof_signed=0
7396    fi
7397 fi
7398 rm -rf conftest.dSYM
7399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7400 fi
7401 rm -f conftest.val
7402 fi
7403 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7404 $as_echo "$ac_cv_sizeof_signed" >&6; }
7405
7406
7407
7408 cat >>confdefs.h <<_ACEOF
7409 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7410 _ACEOF
7411
7412
7413 # The cast to long int works around a bug in the HP C Compiler
7414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7416 # This bug is HP SR number 8606223364.
7417 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7418 $as_echo_n "checking size of signed long long... " >&6; }
7419 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7420   $as_echo_n "(cached) " >&6
7421 else
7422   if test "$cross_compiling" = yes; then
7423   # Depending upon the size, compute the lo and hi bounds.
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h.  */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h.  */
7430 $ac_includes_default
7431 int
7432 main ()
7433 {
7434 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7435 test_array [0] = 0
7436
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (ac_try="$ac_compile"
7443 case "(($ac_try" in
7444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445   *) ac_try_echo=$ac_try;;
7446 esac
7447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7448 $as_echo "$ac_try_echo") >&5
7449   (eval "$ac_compile") 2>conftest.er1
7450   ac_status=$?
7451   grep -v '^ *+' conftest.er1 >conftest.err
7452   rm -f conftest.er1
7453   cat conftest.err >&5
7454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); } && {
7456          test -z "$ac_c_werror_flag" ||
7457          test ! -s conftest.err
7458        } && test -s conftest.$ac_objext; then
7459   ac_lo=0 ac_mid=0
7460   while :; do
7461     cat >conftest.$ac_ext <<_ACEOF
7462 /* confdefs.h.  */
7463 _ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h.  */
7467 $ac_includes_default
7468 int
7469 main ()
7470 {
7471 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7472 test_array [0] = 0
7473
7474   ;
7475   return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (ac_try="$ac_compile"
7480 case "(($ac_try" in
7481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482   *) ac_try_echo=$ac_try;;
7483 esac
7484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7485 $as_echo "$ac_try_echo") >&5
7486   (eval "$ac_compile") 2>conftest.er1
7487   ac_status=$?
7488   grep -v '^ *+' conftest.er1 >conftest.err
7489   rm -f conftest.er1
7490   cat conftest.err >&5
7491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); } && {
7493          test -z "$ac_c_werror_flag" ||
7494          test ! -s conftest.err
7495        } && test -s conftest.$ac_objext; then
7496   ac_hi=$ac_mid; break
7497 else
7498   $as_echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501         ac_lo=`expr $ac_mid + 1`
7502                         if test $ac_lo -le $ac_mid; then
7503                           ac_lo= ac_hi=
7504                           break
7505                         fi
7506                         ac_mid=`expr 2 '*' $ac_mid + 1`
7507 fi
7508
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510   done
7511 else
7512   $as_echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7514
7515         cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h.  */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h.  */
7521 $ac_includes_default
7522 int
7523 main ()
7524 {
7525 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7526 test_array [0] = 0
7527
7528   ;
7529   return 0;
7530 }
7531 _ACEOF
7532 rm -f conftest.$ac_objext
7533 if { (ac_try="$ac_compile"
7534 case "(($ac_try" in
7535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536   *) ac_try_echo=$ac_try;;
7537 esac
7538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7539 $as_echo "$ac_try_echo") >&5
7540   (eval "$ac_compile") 2>conftest.er1
7541   ac_status=$?
7542   grep -v '^ *+' conftest.er1 >conftest.err
7543   rm -f conftest.er1
7544   cat conftest.err >&5
7545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); } && {
7547          test -z "$ac_c_werror_flag" ||
7548          test ! -s conftest.err
7549        } && test -s conftest.$ac_objext; then
7550   ac_hi=-1 ac_mid=-1
7551   while :; do
7552     cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h.  */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h.  */
7558 $ac_includes_default
7559 int
7560 main ()
7561 {
7562 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7563 test_array [0] = 0
7564
7565   ;
7566   return 0;
7567 }
7568 _ACEOF
7569 rm -f conftest.$ac_objext
7570 if { (ac_try="$ac_compile"
7571 case "(($ac_try" in
7572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573   *) ac_try_echo=$ac_try;;
7574 esac
7575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7576 $as_echo "$ac_try_echo") >&5
7577   (eval "$ac_compile") 2>conftest.er1
7578   ac_status=$?
7579   grep -v '^ *+' conftest.er1 >conftest.err
7580   rm -f conftest.er1
7581   cat conftest.err >&5
7582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); } && {
7584          test -z "$ac_c_werror_flag" ||
7585          test ! -s conftest.err
7586        } && test -s conftest.$ac_objext; then
7587   ac_lo=$ac_mid; break
7588 else
7589   $as_echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7591
7592         ac_hi=`expr '(' $ac_mid ')' - 1`
7593                         if test $ac_mid -le $ac_hi; then
7594                           ac_lo= ac_hi=
7595                           break
7596                         fi
7597                         ac_mid=`expr 2 '*' $ac_mid`
7598 fi
7599
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601   done
7602 else
7603   $as_echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7605
7606         ac_lo= ac_hi=
7607 fi
7608
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 fi
7611
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 # Binary search between lo and hi bounds.
7614 while test "x$ac_lo" != "x$ac_hi"; do
7615   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7616   cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h.  */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h.  */
7622 $ac_includes_default
7623 int
7624 main ()
7625 {
7626 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7627 test_array [0] = 0
7628
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (ac_try="$ac_compile"
7635 case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641   (eval "$ac_compile") 2>conftest.er1
7642   ac_status=$?
7643   grep -v '^ *+' conftest.er1 >conftest.err
7644   rm -f conftest.er1
7645   cat conftest.err >&5
7646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); } && {
7648          test -z "$ac_c_werror_flag" ||
7649          test ! -s conftest.err
7650        } && test -s conftest.$ac_objext; then
7651   ac_hi=$ac_mid
7652 else
7653   $as_echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7655
7656         ac_lo=`expr '(' $ac_mid ')' + 1`
7657 fi
7658
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660 done
7661 case $ac_lo in
7662 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7663 '') if test "$ac_cv_type_signed_long_long" = yes; then
7664      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7666 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7667 See \`config.log' for more details." >&5
7668 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7669 See \`config.log' for more details." >&2;}
7670    { (exit 77); exit 77; }; }; }
7671    else
7672      ac_cv_sizeof_signed_long_long=0
7673    fi ;;
7674 esac
7675 else
7676   cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h.  */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h.  */
7682 $ac_includes_default
7683 static long int longval () { return (long int) (sizeof (signed long long)); }
7684 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7685 #include <stdio.h>
7686 #include <stdlib.h>
7687 int
7688 main ()
7689 {
7690
7691   FILE *f = fopen ("conftest.val", "w");
7692   if (! f)
7693     return 1;
7694   if (((long int) (sizeof (signed long long))) < 0)
7695     {
7696       long int i = longval ();
7697       if (i != ((long int) (sizeof (signed long long))))
7698         return 1;
7699       fprintf (f, "%ld", i);
7700     }
7701   else
7702     {
7703       unsigned long int i = ulongval ();
7704       if (i != ((long int) (sizeof (signed long long))))
7705         return 1;
7706       fprintf (f, "%lu", i);
7707     }
7708   /* Do not output a trailing newline, as this causes \r\n confusion
7709      on some platforms.  */
7710   return ferror (f) || fclose (f) != 0;
7711
7712   ;
7713   return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest$ac_exeext
7717 if { (ac_try="$ac_link"
7718 case "(($ac_try" in
7719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720   *) ac_try_echo=$ac_try;;
7721 esac
7722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7723 $as_echo "$ac_try_echo") >&5
7724   (eval "$ac_link") 2>&5
7725   ac_status=$?
7726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7728   { (case "(($ac_try" in
7729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730   *) ac_try_echo=$ac_try;;
7731 esac
7732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733 $as_echo "$ac_try_echo") >&5
7734   (eval "$ac_try") 2>&5
7735   ac_status=$?
7736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); }; }; then
7738   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7739 else
7740   $as_echo "$as_me: program exited with status $ac_status" >&5
7741 $as_echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7743
7744 ( exit $ac_status )
7745 if test "$ac_cv_type_signed_long_long" = yes; then
7746      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7748 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7749 See \`config.log' for more details." >&5
7750 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7751 See \`config.log' for more details." >&2;}
7752    { (exit 77); exit 77; }; }; }
7753    else
7754      ac_cv_sizeof_signed_long_long=0
7755    fi
7756 fi
7757 rm -rf conftest.dSYM
7758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7759 fi
7760 rm -f conftest.val
7761 fi
7762 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7763 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7764
7765
7766
7767 cat >>confdefs.h <<_ACEOF
7768 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7769 _ACEOF
7770
7771
7772 # The cast to long int works around a bug in the HP C Compiler
7773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7775 # This bug is HP SR number 8606223364.
7776 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7777 $as_echo_n "checking size of void*... " >&6; }
7778 if test "${ac_cv_sizeof_voidp+set}" = set; then
7779   $as_echo_n "(cached) " >&6
7780 else
7781   if test "$cross_compiling" = yes; then
7782   # Depending upon the size, compute the lo and hi bounds.
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789 $ac_includes_default
7790 int
7791 main ()
7792 {
7793 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7794 test_array [0] = 0
7795
7796   ;
7797   return 0;
7798 }
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7802 case "(($ac_try" in
7803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804   *) ac_try_echo=$ac_try;;
7805 esac
7806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7807 $as_echo "$ac_try_echo") >&5
7808   (eval "$ac_compile") 2>conftest.er1
7809   ac_status=$?
7810   grep -v '^ *+' conftest.er1 >conftest.err
7811   rm -f conftest.er1
7812   cat conftest.err >&5
7813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); } && {
7815          test -z "$ac_c_werror_flag" ||
7816          test ! -s conftest.err
7817        } && test -s conftest.$ac_objext; then
7818   ac_lo=0 ac_mid=0
7819   while :; do
7820     cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h.  */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h.  */
7826 $ac_includes_default
7827 int
7828 main ()
7829 {
7830 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7831 test_array [0] = 0
7832
7833   ;
7834   return 0;
7835 }
7836 _ACEOF
7837 rm -f conftest.$ac_objext
7838 if { (ac_try="$ac_compile"
7839 case "(($ac_try" in
7840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841   *) ac_try_echo=$ac_try;;
7842 esac
7843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7844 $as_echo "$ac_try_echo") >&5
7845   (eval "$ac_compile") 2>conftest.er1
7846   ac_status=$?
7847   grep -v '^ *+' conftest.er1 >conftest.err
7848   rm -f conftest.er1
7849   cat conftest.err >&5
7850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); } && {
7852          test -z "$ac_c_werror_flag" ||
7853          test ! -s conftest.err
7854        } && test -s conftest.$ac_objext; then
7855   ac_hi=$ac_mid; break
7856 else
7857   $as_echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7859
7860         ac_lo=`expr $ac_mid + 1`
7861                         if test $ac_lo -le $ac_mid; then
7862                           ac_lo= ac_hi=
7863                           break
7864                         fi
7865                         ac_mid=`expr 2 '*' $ac_mid + 1`
7866 fi
7867
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869   done
7870 else
7871   $as_echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7873
7874         cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h.  */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h.  */
7880 $ac_includes_default
7881 int
7882 main ()
7883 {
7884 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7885 test_array [0] = 0
7886
7887   ;
7888   return 0;
7889 }
7890 _ACEOF
7891 rm -f conftest.$ac_objext
7892 if { (ac_try="$ac_compile"
7893 case "(($ac_try" in
7894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895   *) ac_try_echo=$ac_try;;
7896 esac
7897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7898 $as_echo "$ac_try_echo") >&5
7899   (eval "$ac_compile") 2>conftest.er1
7900   ac_status=$?
7901   grep -v '^ *+' conftest.er1 >conftest.err
7902   rm -f conftest.er1
7903   cat conftest.err >&5
7904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); } && {
7906          test -z "$ac_c_werror_flag" ||
7907          test ! -s conftest.err
7908        } && test -s conftest.$ac_objext; then
7909   ac_hi=-1 ac_mid=-1
7910   while :; do
7911     cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h.  */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h.  */
7917 $ac_includes_default
7918 int
7919 main ()
7920 {
7921 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
7922 test_array [0] = 0
7923
7924   ;
7925   return 0;
7926 }
7927 _ACEOF
7928 rm -f conftest.$ac_objext
7929 if { (ac_try="$ac_compile"
7930 case "(($ac_try" in
7931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932   *) ac_try_echo=$ac_try;;
7933 esac
7934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7935 $as_echo "$ac_try_echo") >&5
7936   (eval "$ac_compile") 2>conftest.er1
7937   ac_status=$?
7938   grep -v '^ *+' conftest.er1 >conftest.err
7939   rm -f conftest.er1
7940   cat conftest.err >&5
7941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); } && {
7943          test -z "$ac_c_werror_flag" ||
7944          test ! -s conftest.err
7945        } && test -s conftest.$ac_objext; then
7946   ac_lo=$ac_mid; break
7947 else
7948   $as_echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951         ac_hi=`expr '(' $ac_mid ')' - 1`
7952                         if test $ac_mid -le $ac_hi; then
7953                           ac_lo= ac_hi=
7954                           break
7955                         fi
7956                         ac_mid=`expr 2 '*' $ac_mid`
7957 fi
7958
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960   done
7961 else
7962   $as_echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7964
7965         ac_lo= ac_hi=
7966 fi
7967
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 fi
7970
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 # Binary search between lo and hi bounds.
7973 while test "x$ac_lo" != "x$ac_hi"; do
7974   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7975   cat >conftest.$ac_ext <<_ACEOF
7976 /* confdefs.h.  */
7977 _ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h.  */
7981 $ac_includes_default
7982 int
7983 main ()
7984 {
7985 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7986 test_array [0] = 0
7987
7988   ;
7989   return 0;
7990 }
7991 _ACEOF
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7994 case "(($ac_try" in
7995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996   *) ac_try_echo=$ac_try;;
7997 esac
7998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7999 $as_echo "$ac_try_echo") >&5
8000   (eval "$ac_compile") 2>conftest.er1
8001   ac_status=$?
8002   grep -v '^ *+' conftest.er1 >conftest.err
8003   rm -f conftest.er1
8004   cat conftest.err >&5
8005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } && {
8007          test -z "$ac_c_werror_flag" ||
8008          test ! -s conftest.err
8009        } && test -s conftest.$ac_objext; then
8010   ac_hi=$ac_mid
8011 else
8012   $as_echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8014
8015         ac_lo=`expr '(' $ac_mid ')' + 1`
8016 fi
8017
8018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 done
8020 case $ac_lo in
8021 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8022 '') if test "$ac_cv_type_voidp" = yes; then
8023      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8025 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8026 See \`config.log' for more details." >&5
8027 $as_echo "$as_me: error: cannot compute sizeof (void*)
8028 See \`config.log' for more details." >&2;}
8029    { (exit 77); exit 77; }; }; }
8030    else
8031      ac_cv_sizeof_voidp=0
8032    fi ;;
8033 esac
8034 else
8035   cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 $ac_includes_default
8042 static long int longval () { return (long int) (sizeof (void*)); }
8043 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8044 #include <stdio.h>
8045 #include <stdlib.h>
8046 int
8047 main ()
8048 {
8049
8050   FILE *f = fopen ("conftest.val", "w");
8051   if (! f)
8052     return 1;
8053   if (((long int) (sizeof (void*))) < 0)
8054     {
8055       long int i = longval ();
8056       if (i != ((long int) (sizeof (void*))))
8057         return 1;
8058       fprintf (f, "%ld", i);
8059     }
8060   else
8061     {
8062       unsigned long int i = ulongval ();
8063       if (i != ((long int) (sizeof (void*))))
8064         return 1;
8065       fprintf (f, "%lu", i);
8066     }
8067   /* Do not output a trailing newline, as this causes \r\n confusion
8068      on some platforms.  */
8069   return ferror (f) || fclose (f) != 0;
8070
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest$ac_exeext
8076 if { (ac_try="$ac_link"
8077 case "(($ac_try" in
8078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079   *) ac_try_echo=$ac_try;;
8080 esac
8081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082 $as_echo "$ac_try_echo") >&5
8083   (eval "$ac_link") 2>&5
8084   ac_status=$?
8085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8087   { (case "(($ac_try" in
8088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089   *) ac_try_echo=$ac_try;;
8090 esac
8091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8092 $as_echo "$ac_try_echo") >&5
8093   (eval "$ac_try") 2>&5
8094   ac_status=$?
8095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_sizeof_voidp=`cat conftest.val`
8098 else
8099   $as_echo "$as_me: program exited with status $ac_status" >&5
8100 $as_echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 ( exit $ac_status )
8104 if test "$ac_cv_type_voidp" = yes; then
8105      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8107 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8108 See \`config.log' for more details." >&5
8109 $as_echo "$as_me: error: cannot compute sizeof (void*)
8110 See \`config.log' for more details." >&2;}
8111    { (exit 77); exit 77; }; }; }
8112    else
8113      ac_cv_sizeof_voidp=0
8114    fi
8115 fi
8116 rm -rf conftest.dSYM
8117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8118 fi
8119 rm -f conftest.val
8120 fi
8121 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8122 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8123
8124
8125
8126 cat >>confdefs.h <<_ACEOF
8127 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8128 _ACEOF
8129
8130
8131
8132
8133
8134 # Extract the first word of "freetype-config", so it can be a program name with args.
8135 set dummy freetype-config; ac_word=$2
8136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8139   $as_echo_n "(cached) " >&6
8140 else
8141   case $FREETYPE_CONFIG in
8142   [\\/]* | ?:[\\/]*)
8143   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8144   ;;
8145   *)
8146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8148 for as_dir in $as_dummy
8149 do
8150   IFS=$as_save_IFS
8151   test -z "$as_dir" && as_dir=.
8152   for ac_exec_ext in '' $ac_executable_extensions; do
8153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8154     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8156     break 2
8157   fi
8158 done
8159 done
8160 IFS=$as_save_IFS
8161
8162   ;;
8163 esac
8164 fi
8165 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8166 if test -n "$FREETYPE_CONFIG"; then
8167   { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8168 $as_echo "$FREETYPE_CONFIG" >&6; }
8169 else
8170   { $as_echo "$as_me:$LINENO: result: no" >&5
8171 $as_echo "no" >&6; }
8172 fi
8173
8174
8175
8176 OLDCPPFLAGS="${CPPFLAGS}"
8177 OLDLIBS="${LIBS}"
8178 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8179     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8180 else if test -d /usr/include/freetype2; then
8181     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8182 else if test -d /usr/local/include/freetype2; then
8183     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8184 fi
8185 fi
8186 fi
8187
8188 if test "x${FREETYPE_CONFIG}" '=' "x";then
8189     # if we didn't find the freetype-config program, we won't
8190     # know where the libs are expected to be. So just blindly
8191     # try to link against them.
8192     { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8193 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8194 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8195   $as_echo_n "(cached) " >&6
8196 else
8197   ac_check_lib_save_LIBS=$LIBS
8198 LIBS="-lfreetype  $LIBS"
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h.  */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h.  */
8205
8206 /* Override any GCC internal prototype to avoid an error.
8207    Use char because int might match the return type of a GCC
8208    builtin and then its argument prototype would still apply.  */
8209 #ifdef __cplusplus
8210 extern "C"
8211 #endif
8212 char FT_Init_FreeType ();
8213 int
8214 main ()
8215 {
8216 return FT_Init_FreeType ();
8217   ;
8218   return 0;
8219 }
8220 _ACEOF
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (ac_try="$ac_link"
8223 case "(($ac_try" in
8224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225   *) ac_try_echo=$ac_try;;
8226 esac
8227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8228 $as_echo "$ac_try_echo") >&5
8229   (eval "$ac_link") 2>conftest.er1
8230   ac_status=$?
8231   grep -v '^ *+' conftest.er1 >conftest.err
8232   rm -f conftest.er1
8233   cat conftest.err >&5
8234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); } && {
8236          test -z "$ac_c_werror_flag" ||
8237          test ! -s conftest.err
8238        } && test -s conftest$ac_exeext && {
8239          test "$cross_compiling" = yes ||
8240          $as_test_x conftest$ac_exeext
8241        }; then
8242   ac_cv_lib_freetype_FT_Init_FreeType=yes
8243 else
8244   $as_echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247         ac_cv_lib_freetype_FT_Init_FreeType=no
8248 fi
8249
8250 rm -rf conftest.dSYM
8251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8252       conftest$ac_exeext conftest.$ac_ext
8253 LIBS=$ac_check_lib_save_LIBS
8254 fi
8255 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8256 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8257 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8258   HAVE_LIB_FREETYPE=1
8259 fi
8260
8261 fi
8262
8263
8264 for ac_header in ft2build.h
8265 do
8266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8269 $as_echo_n "checking for $ac_header... " >&6; }
8270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8271   $as_echo_n "(cached) " >&6
8272 fi
8273 ac_res=`eval 'as_val=${'$as_ac_Header'}
8274                  $as_echo "$as_val"'`
8275                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8276 $as_echo "$ac_res" >&6; }
8277 else
8278   # Is the header compilable?
8279 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8280 $as_echo_n "checking $ac_header usability... " >&6; }
8281 cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287 $ac_includes_default
8288 #include <$ac_header>
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8292 case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297 $as_echo "$ac_try_echo") >&5
8298   (eval "$ac_compile") 2>conftest.er1
8299   ac_status=$?
8300   grep -v '^ *+' conftest.er1 >conftest.err
8301   rm -f conftest.er1
8302   cat conftest.err >&5
8303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); } && {
8305          test -z "$ac_c_werror_flag" ||
8306          test ! -s conftest.err
8307        } && test -s conftest.$ac_objext; then
8308   ac_header_compiler=yes
8309 else
8310   $as_echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313         ac_header_compiler=no
8314 fi
8315
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8318 $as_echo "$ac_header_compiler" >&6; }
8319
8320 # Is the header present?
8321 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8322 $as_echo_n "checking $ac_header presence... " >&6; }
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h.  */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h.  */
8329 #include <$ac_header>
8330 _ACEOF
8331 if { (ac_try="$ac_cpp conftest.$ac_ext"
8332 case "(($ac_try" in
8333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334   *) ac_try_echo=$ac_try;;
8335 esac
8336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8337 $as_echo "$ac_try_echo") >&5
8338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8339   ac_status=$?
8340   grep -v '^ *+' conftest.er1 >conftest.err
8341   rm -f conftest.er1
8342   cat conftest.err >&5
8343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } >/dev/null && {
8345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8346          test ! -s conftest.err
8347        }; then
8348   ac_header_preproc=yes
8349 else
8350   $as_echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353   ac_header_preproc=no
8354 fi
8355
8356 rm -f conftest.err conftest.$ac_ext
8357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8358 $as_echo "$ac_header_preproc" >&6; }
8359
8360 # So?  What about this header?
8361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8362   yes:no: )
8363     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8364 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8365     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8367     ac_header_preproc=yes
8368     ;;
8369   no:yes:* )
8370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8371 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8373 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8375 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8377 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8380     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8381 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8382
8383     ;;
8384 esac
8385 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8386 $as_echo_n "checking for $ac_header... " >&6; }
8387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8388   $as_echo_n "(cached) " >&6
8389 else
8390   eval "$as_ac_Header=\$ac_header_preproc"
8391 fi
8392 ac_res=`eval 'as_val=${'$as_ac_Header'}
8393                  $as_echo "$as_val"'`
8394                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8395 $as_echo "$ac_res" >&6; }
8396
8397 fi
8398 as_val=`eval 'as_val=${'$as_ac_Header'}
8399                  $as_echo "$as_val"'`
8400    if test "x$as_val" = x""yes; then
8401   cat >>confdefs.h <<_ACEOF
8402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8403 _ACEOF
8404  HAVE_FT2BUILD_H=1
8405 fi
8406
8407 done
8408
8409 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8410
8411 for ac_header in freetype/freetype.h
8412 do
8413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8415   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8416 $as_echo_n "checking for $ac_header... " >&6; }
8417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8418   $as_echo_n "(cached) " >&6
8419 fi
8420 ac_res=`eval 'as_val=${'$as_ac_Header'}
8421                  $as_echo "$as_val"'`
8422                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8423 $as_echo "$ac_res" >&6; }
8424 else
8425   # Is the header compilable?
8426 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8427 $as_echo_n "checking $ac_header usability... " >&6; }
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434 $ac_includes_default
8435 #include <$ac_header>
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8439 case "(($ac_try" in
8440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441   *) ac_try_echo=$ac_try;;
8442 esac
8443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8444 $as_echo "$ac_try_echo") >&5
8445   (eval "$ac_compile") 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } && {
8452          test -z "$ac_c_werror_flag" ||
8453          test ! -s conftest.err
8454        } && test -s conftest.$ac_objext; then
8455   ac_header_compiler=yes
8456 else
8457   $as_echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8459
8460         ac_header_compiler=no
8461 fi
8462
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8465 $as_echo "$ac_header_compiler" >&6; }
8466
8467 # Is the header present?
8468 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8469 $as_echo_n "checking $ac_header presence... " >&6; }
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h.  */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h.  */
8476 #include <$ac_header>
8477 _ACEOF
8478 if { (ac_try="$ac_cpp conftest.$ac_ext"
8479 case "(($ac_try" in
8480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481   *) ac_try_echo=$ac_try;;
8482 esac
8483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8486   ac_status=$?
8487   grep -v '^ *+' conftest.er1 >conftest.err
8488   rm -f conftest.er1
8489   cat conftest.err >&5
8490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); } >/dev/null && {
8492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8493          test ! -s conftest.err
8494        }; then
8495   ac_header_preproc=yes
8496 else
8497   $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500   ac_header_preproc=no
8501 fi
8502
8503 rm -f conftest.err conftest.$ac_ext
8504 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8505 $as_echo "$ac_header_preproc" >&6; }
8506
8507 # So?  What about this header?
8508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8509   yes:no: )
8510     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8511 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8512     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8513 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8514     ac_header_preproc=yes
8515     ;;
8516   no:yes:* )
8517     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8518 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8519     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8520 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8521     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8522 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8523     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8524 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8525     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8526 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8527     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8528 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8529
8530     ;;
8531 esac
8532 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8533 $as_echo_n "checking for $ac_header... " >&6; }
8534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8535   $as_echo_n "(cached) " >&6
8536 else
8537   eval "$as_ac_Header=\$ac_header_preproc"
8538 fi
8539 ac_res=`eval 'as_val=${'$as_ac_Header'}
8540                  $as_echo "$as_val"'`
8541                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8542 $as_echo "$ac_res" >&6; }
8543
8544 fi
8545 as_val=`eval 'as_val=${'$as_ac_Header'}
8546                  $as_echo "$as_val"'`
8547    if test "x$as_val" = x""yes; then
8548   cat >>confdefs.h <<_ACEOF
8549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8550 _ACEOF
8551  HAVE_FREETYPE_FREETYPE_H=1
8552 fi
8553
8554 done
8555
8556 fi
8557
8558 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8559         "x${FREETYPE_CONFIG}" '!=' "x";then
8560     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8561         HAVE_FREETYPE=1
8562     fi
8563     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8564         HAVE_FREETYPE=1
8565     fi
8566 fi
8567
8568 if test "x${HAVE_FREETYPE}" = "x1"; then
8569     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8570         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8571     else
8572         LIBS="$LIBS -lfreetype"
8573     fi
8574
8575     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8576         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8577     fi
8578
8579     { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8580 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8581
8582     cat > conftest.c << EOF
8583 $HAVE_FT2BUILD_H_DEFINE
8584
8585 #ifdef HAVE_FT2BUILD_H
8586 #include <ft2build.h>
8587 #include FT_FREETYPE_H
8588 #include FT_GLYPH_H
8589 #include FT_SIZES_H
8590 #include FT_SFNT_NAMES_H
8591 #include FT_TRUETYPE_IDS_H
8592 #include FT_OUTLINE_H
8593 #else
8594 #include <freetype/freetype.h>
8595 #include <freetype/ftglyph.h>
8596 #include <freetype/ftsizes.h>
8597 #include <freetype/ftsnames.h>
8598 #include <freetype/ttnameid.h>
8599 #include <freetype/ftoutln.h>
8600 #endif
8601
8602 int main()
8603 {
8604     FT_Library ftlibrary;
8605     FT_Face face;
8606     FT_Error error;
8607     FT_ULong charcode;
8608     FT_UInt gindex;
8609     FT_Glyph glyph;
8610     FT_BBox bbox;
8611     FT_Matrix matrix;
8612     FT_UInt i;
8613     char* name = 0;
8614     char italic, bold;
8615
8616     FT_Init_FreeType(&ftlibrary);
8617     FT_New_Face(ftlibrary, "filename", 0, &face);
8618     i = face->num_glyphs - 1;
8619     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8620     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8621     FT_Get_Postscript_Name(face);
8622     FT_Get_Char_Index(face, 33);
8623     FT_Get_First_Char(face, &i);
8624     FT_Get_Next_Char(face, 33, &i);
8625     if(FT_HAS_GLYPH_NAMES(face)) {
8626         FT_Get_Glyph_Name(face, 33, name, 127);
8627     }
8628     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8629     FT_Get_Glyph(face->glyph, &glyph);
8630     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8631     FT_Done_Glyph(glyph);
8632     FT_Done_Face(face);
8633     FT_Done_FreeType(ftlibrary);
8634     return 0;
8635 }
8636 EOF
8637
8638     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8639     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8640         { $as_echo "$as_me:$LINENO: result: yes" >&5
8641 $as_echo "yes" >&6; }
8642
8643 cat >>confdefs.h <<\_ACEOF
8644 #define HAVE_FREETYPE 1
8645 _ACEOF
8646
8647
8648 cat >>confdefs.h <<\_ACEOF
8649 #define HAVE_FREETYPE_FREETYPE_H 1
8650 _ACEOF
8651
8652
8653 cat >>confdefs.h <<\_ACEOF
8654 #define USE_FREETYPE 1
8655 _ACEOF
8656   # for ttf2tp1
8657     else
8658         echo "configure: failed program was:" >&5
8659         cat conftest.c >&5
8660         HAVE_FREETYPE=0
8661         { $as_echo "$as_me:$LINENO: result: no" >&5
8662 $as_echo "no" >&6; }
8663     fi
8664     rm -f conftest*
8665 fi
8666
8667 # if the above didn't work out, reset all changes to the compiler variables.
8668 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8669     CPPFLAGS=$OLDCPPFLAGS
8670     LIBS=$OLDLIBS
8671 fi
8672
8673
8674
8675 OLDCPPFLAGS="${CPPFLAGS}"
8676 OLDLIBS="${LIBS}"
8677
8678 if test -d /usr/include/fontconfig; then
8679     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8680 fi
8681
8682 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8683 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8684 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8685   $as_echo_n "(cached) " >&6
8686 else
8687   ac_check_lib_save_LIBS=$LIBS
8688 LIBS="-lfontconfig  $LIBS"
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h.  */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h.  */
8695
8696 /* Override any GCC internal prototype to avoid an error.
8697    Use char because int might match the return type of a GCC
8698    builtin and then its argument prototype would still apply.  */
8699 #ifdef __cplusplus
8700 extern "C"
8701 #endif
8702 char FcInit ();
8703 int
8704 main ()
8705 {
8706 return FcInit ();
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (ac_try="$ac_link"
8713 case "(($ac_try" in
8714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715   *) ac_try_echo=$ac_try;;
8716 esac
8717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8718 $as_echo "$ac_try_echo") >&5
8719   (eval "$ac_link") 2>conftest.er1
8720   ac_status=$?
8721   grep -v '^ *+' conftest.er1 >conftest.err
8722   rm -f conftest.er1
8723   cat conftest.err >&5
8724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); } && {
8726          test -z "$ac_c_werror_flag" ||
8727          test ! -s conftest.err
8728        } && test -s conftest$ac_exeext && {
8729          test "$cross_compiling" = yes ||
8730          $as_test_x conftest$ac_exeext
8731        }; then
8732   ac_cv_lib_fontconfig_FcInit=yes
8733 else
8734   $as_echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737         ac_cv_lib_fontconfig_FcInit=no
8738 fi
8739
8740 rm -rf conftest.dSYM
8741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8742       conftest$ac_exeext conftest.$ac_ext
8743 LIBS=$ac_check_lib_save_LIBS
8744 fi
8745 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8746 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8747 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8748   HAVE_LIB_FONTCONFIG=1
8749 fi
8750
8751
8752 for ac_header in fontconfig.h
8753 do
8754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8756   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8757 $as_echo_n "checking for $ac_header... " >&6; }
8758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8759   $as_echo_n "(cached) " >&6
8760 fi
8761 ac_res=`eval 'as_val=${'$as_ac_Header'}
8762                  $as_echo "$as_val"'`
8763                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8764 $as_echo "$ac_res" >&6; }
8765 else
8766   # Is the header compilable?
8767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8768 $as_echo_n "checking $ac_header usability... " >&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 { (ac_try="$ac_compile"
8780 case "(($ac_try" in
8781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782   *) ac_try_echo=$ac_try;;
8783 esac
8784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8785 $as_echo "$ac_try_echo") >&5
8786   (eval "$ac_compile") 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } && {
8793          test -z "$ac_c_werror_flag" ||
8794          test ! -s conftest.err
8795        } && test -s conftest.$ac_objext; then
8796   ac_header_compiler=yes
8797 else
8798   $as_echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801         ac_header_compiler=no
8802 fi
8803
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8806 $as_echo "$ac_header_compiler" >&6; }
8807
8808 # Is the header present?
8809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8810 $as_echo_n "checking $ac_header presence... " >&6; }
8811 cat >conftest.$ac_ext <<_ACEOF
8812 /* confdefs.h.  */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h.  */
8817 #include <$ac_header>
8818 _ACEOF
8819 if { (ac_try="$ac_cpp conftest.$ac_ext"
8820 case "(($ac_try" in
8821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822   *) ac_try_echo=$ac_try;;
8823 esac
8824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8827   ac_status=$?
8828   grep -v '^ *+' conftest.er1 >conftest.err
8829   rm -f conftest.er1
8830   cat conftest.err >&5
8831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); } >/dev/null && {
8833          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8834          test ! -s conftest.err
8835        }; then
8836   ac_header_preproc=yes
8837 else
8838   $as_echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841   ac_header_preproc=no
8842 fi
8843
8844 rm -f conftest.err conftest.$ac_ext
8845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8846 $as_echo "$ac_header_preproc" >&6; }
8847
8848 # So?  What about this header?
8849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8850   yes:no: )
8851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8853     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8855     ac_header_preproc=yes
8856     ;;
8857   no:yes:* )
8858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8861 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8865 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8870
8871     ;;
8872 esac
8873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8874 $as_echo_n "checking for $ac_header... " >&6; }
8875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8876   $as_echo_n "(cached) " >&6
8877 else
8878   eval "$as_ac_Header=\$ac_header_preproc"
8879 fi
8880 ac_res=`eval 'as_val=${'$as_ac_Header'}
8881                  $as_echo "$as_val"'`
8882                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8883 $as_echo "$ac_res" >&6; }
8884
8885 fi
8886 as_val=`eval 'as_val=${'$as_ac_Header'}
8887                  $as_echo "$as_val"'`
8888    if test "x$as_val" = x""yes; then
8889   cat >>confdefs.h <<_ACEOF
8890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8891 _ACEOF
8892  HAVE_FONTCONFIG_H=1
8893 fi
8894
8895 done
8896
8897
8898 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8899 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8900     HAVE_FONTCONFIG=1
8901 fi
8902 fi
8903
8904 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8905     LIBS="$LIBS -lfontconfig"
8906 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8907 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8908
8909 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8910     #move freetype library to the end of libraries, otherwise fontconfig
8911     #won't compile.
8912     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8913 fi
8914
8915 cat > conftest.c << EOF
8916 #include <string.h>
8917 #include <fontconfig.h>
8918
8919 int main()
8920 {
8921     FcPattern *pattern, *match;
8922     FcResult result;
8923     FcChar8 *v;
8924     char*s1="abc",*s2="ABC";
8925     strcasecmp(s1,s2);
8926     FcInit();
8927     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8928     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8929     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8930
8931     FcConfig*c = FcConfigCreate();
8932     FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8933     FcConfigBuildFonts(c);
8934     FcConfigSetCurrent(c);
8935
8936     FcFontSet * set =  FcConfigGetFonts(c, FcSetSystem);
8937     FcFontSetDestroy(set);
8938
8939     FcConfigSubstitute(0, pattern, FcMatchPattern);
8940     FcDefaultSubstitute(pattern);
8941     match = FcFontMatch(0, pattern, &result);
8942     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8943     FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8944     FcPatternPrint(pattern);
8945     FcPatternDestroy(pattern);
8946     FcPatternDestroy(match);
8947     FcFini();
8948     return 0;
8949 }
8950 EOF
8951
8952     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8953     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8954         { $as_echo "$as_me:$LINENO: result: yes" >&5
8955 $as_echo "yes" >&6; }
8956
8957 cat >>confdefs.h <<\_ACEOF
8958 #define HAVE_FONTCONFIG 1
8959 _ACEOF
8960
8961     else
8962         echo "configure: failed program was:" >&5
8963         cat conftest.c >&5
8964         HAVE_FONTCONFIG=0
8965         { $as_echo "$as_me:$LINENO: result: no" >&5
8966 $as_echo "no" >&6; }
8967     fi
8968     rm -f conftest*
8969 fi
8970
8971 # if the above didn't work out, reset all changes to the compiler variables.
8972 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8973     CPPFLAGS=$OLDCPPFLAGS
8974     LIBS=$OLDLIBS
8975 fi
8976
8977
8978
8979   OLDCPPFLAGS="${CPPFLAGS}"
8980   OLDLIBS="${LIBS}"
8981
8982   { $as_echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
8983 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
8984 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
8985   $as_echo_n "(cached) " >&6
8986 else
8987   ac_check_lib_save_LIBS=$LIBS
8988 LIBS="-lfftw3  $LIBS"
8989 cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h.  */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h.  */
8995
8996 /* Override any GCC internal prototype to avoid an error.
8997    Use char because int might match the return type of a GCC
8998    builtin and then its argument prototype would still apply.  */
8999 #ifdef __cplusplus
9000 extern "C"
9001 #endif
9002 char fftw_plan_dft_r2c_2d ();
9003 int
9004 main ()
9005 {
9006 return fftw_plan_dft_r2c_2d ();
9007   ;
9008   return 0;
9009 }
9010 _ACEOF
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9013 case "(($ac_try" in
9014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015   *) ac_try_echo=$ac_try;;
9016 esac
9017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9018 $as_echo "$ac_try_echo") >&5
9019   (eval "$ac_link") 2>conftest.er1
9020   ac_status=$?
9021   grep -v '^ *+' conftest.er1 >conftest.err
9022   rm -f conftest.er1
9023   cat conftest.err >&5
9024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); } && {
9026          test -z "$ac_c_werror_flag" ||
9027          test ! -s conftest.err
9028        } && test -s conftest$ac_exeext && {
9029          test "$cross_compiling" = yes ||
9030          $as_test_x conftest$ac_exeext
9031        }; then
9032   ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
9033 else
9034   $as_echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9036
9037         ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
9038 fi
9039
9040 rm -rf conftest.dSYM
9041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9042       conftest$ac_exeext conftest.$ac_ext
9043 LIBS=$ac_check_lib_save_LIBS
9044 fi
9045 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
9046 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
9047 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then
9048   HAVE_LIBFFTW3=1
9049 fi
9050
9051
9052 for ac_header in fftw3.h
9053 do
9054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9057 $as_echo_n "checking for $ac_header... " >&6; }
9058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9059   $as_echo_n "(cached) " >&6
9060 fi
9061 ac_res=`eval 'as_val=${'$as_ac_Header'}
9062                  $as_echo "$as_val"'`
9063                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9064 $as_echo "$ac_res" >&6; }
9065 else
9066   # Is the header compilable?
9067 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9068 $as_echo_n "checking $ac_header usability... " >&6; }
9069 cat >conftest.$ac_ext <<_ACEOF
9070 /* confdefs.h.  */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h.  */
9075 $ac_includes_default
9076 #include <$ac_header>
9077 _ACEOF
9078 rm -f conftest.$ac_objext
9079 if { (ac_try="$ac_compile"
9080 case "(($ac_try" in
9081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082   *) ac_try_echo=$ac_try;;
9083 esac
9084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9085 $as_echo "$ac_try_echo") >&5
9086   (eval "$ac_compile") 2>conftest.er1
9087   ac_status=$?
9088   grep -v '^ *+' conftest.er1 >conftest.err
9089   rm -f conftest.er1
9090   cat conftest.err >&5
9091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); } && {
9093          test -z "$ac_c_werror_flag" ||
9094          test ! -s conftest.err
9095        } && test -s conftest.$ac_objext; then
9096   ac_header_compiler=yes
9097 else
9098   $as_echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101         ac_header_compiler=no
9102 fi
9103
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9106 $as_echo "$ac_header_compiler" >&6; }
9107
9108 # Is the header present?
9109 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9110 $as_echo_n "checking $ac_header presence... " >&6; }
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h.  */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h.  */
9117 #include <$ac_header>
9118 _ACEOF
9119 if { (ac_try="$ac_cpp conftest.$ac_ext"
9120 case "(($ac_try" in
9121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122   *) ac_try_echo=$ac_try;;
9123 esac
9124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9125 $as_echo "$ac_try_echo") >&5
9126   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9127   ac_status=$?
9128   grep -v '^ *+' conftest.er1 >conftest.err
9129   rm -f conftest.er1
9130   cat conftest.err >&5
9131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); } >/dev/null && {
9133          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9134          test ! -s conftest.err
9135        }; then
9136   ac_header_preproc=yes
9137 else
9138   $as_echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9140
9141   ac_header_preproc=no
9142 fi
9143
9144 rm -f conftest.err conftest.$ac_ext
9145 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9146 $as_echo "$ac_header_preproc" >&6; }
9147
9148 # So?  What about this header?
9149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9150   yes:no: )
9151     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9152 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9153     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9155     ac_header_preproc=yes
9156     ;;
9157   no:yes:* )
9158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9159 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9160     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9161 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9162     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9163 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9165 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9167 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9168     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9169 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9170
9171     ;;
9172 esac
9173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9174 $as_echo_n "checking for $ac_header... " >&6; }
9175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9176   $as_echo_n "(cached) " >&6
9177 else
9178   eval "$as_ac_Header=\$ac_header_preproc"
9179 fi
9180 ac_res=`eval 'as_val=${'$as_ac_Header'}
9181                  $as_echo "$as_val"'`
9182                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9183 $as_echo "$ac_res" >&6; }
9184
9185 fi
9186 as_val=`eval 'as_val=${'$as_ac_Header'}
9187                  $as_echo "$as_val"'`
9188    if test "x$as_val" = x""yes; then
9189   cat >>confdefs.h <<_ACEOF
9190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9191 _ACEOF
9192  HAVE_FFTW3_H=1
9193 fi
9194
9195 done
9196
9197
9198   if test "x${HAVE_LIBFFTW3}" != "x";then
9199     if test "x${HAVE_FFTW3_H}" != "x";then
9200       HAVE_FFTW3=1
9201     fi
9202   fi
9203
9204   if test "x${HAVE_FFTW3}" = "x1"; then
9205     LIBS="$LIBS -lfftw3"
9206     { $as_echo "$as_me:$LINENO: checking whether we can compile the fftw3 test program" >&5
9207 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
9208
9209     cat > conftest.c << EOF
9210     #include <fftw3.h>
9211
9212     int main()
9213     {
9214         char*data = 0;
9215         fftw_plan plan = fftw_plan_dft_2d(600, 800, (fftw_complex*)data, (fftw_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
9216         plan = fftw_plan_dft_r2c_2d(600, 800, (double*)data, (fftw_complex*)data, FFTW_ESTIMATE);
9217         plan = fftw_plan_dft_c2r_2d(600, 800, (fftw_complex*)data, (double*)data, FFTW_ESTIMATE);
9218         fftw_execute(plan);
9219         fftw_destroy_plan(plan);
9220     }
9221 EOF
9222
9223     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9224     if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9225       { $as_echo "$as_me:$LINENO: result: yes" >&5
9226 $as_echo "yes" >&6; }
9227
9228 cat >>confdefs.h <<\_ACEOF
9229 #define HAVE_FFTW3 1
9230 _ACEOF
9231
9232     else
9233       echo "configure: failed program was:" >&5
9234       cat conftest.c >&5
9235       HAVE_FFTW3=0
9236       { $as_echo "$as_me:$LINENO: result: no" >&5
9237 $as_echo "no" >&6; }
9238     fi
9239     rm -f conftest*
9240   fi
9241
9242   # if the above didn't work out, reset all changes to the compiler variables.
9243   if test "x${HAVE_FFTW3}" "!=" "x1"; then
9244       CPPFLAGS=$OLDCPPFLAGS
9245       LIBS=$OLDLIBS
9246   fi
9247
9248
9249 # RFX_CHECK_OPENGL
9250 # if test "$HAVE_OPENGL";then
9251 #     DEVICE_OPENGL='devices/opengl.$(O)'
9252 #     AC_SUBST(DEVICE_OPENGL)
9253 # fi
9254
9255
9256 lame_in_source=
9257 lame_makefile=
9258 if test "x${DISABLE_LAME}" = "xtrue"; then
9259     echo "*" Disabling lame support...
9260 else
9261     # old lame code at lib/lame
9262     if test -f lib/lame/Makefile.in; then
9263         lame_in_source='$(lame_objects)'
9264         lame_makefile="lib/lame/Makefile"
9265         CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9266
9267 cat >>confdefs.h <<\_ACEOF
9268 #define HAVE_LAME 1
9269 _ACEOF
9270
9271     else
9272         if test -d /usr/include/lame; then
9273             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9274         else
9275             if test -d /usr/local/include/lame; then
9276                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9277             fi
9278         fi
9279
9280 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9281 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9282 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9283   $as_echo_n "(cached) " >&6
9284 else
9285   ac_check_lib_save_LIBS=$LIBS
9286 LIBS="-lmp3lame  $LIBS"
9287 cat >conftest.$ac_ext <<_ACEOF
9288 /* confdefs.h.  */
9289 _ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h.  */
9293
9294 /* Override any GCC internal prototype to avoid an error.
9295    Use char because int might match the return type of a GCC
9296    builtin and then its argument prototype would still apply.  */
9297 #ifdef __cplusplus
9298 extern "C"
9299 #endif
9300 char lame_init ();
9301 int
9302 main ()
9303 {
9304 return lame_init ();
9305   ;
9306   return 0;
9307 }
9308 _ACEOF
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (ac_try="$ac_link"
9311 case "(($ac_try" in
9312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313   *) ac_try_echo=$ac_try;;
9314 esac
9315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9316 $as_echo "$ac_try_echo") >&5
9317   (eval "$ac_link") 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } && {
9324          test -z "$ac_c_werror_flag" ||
9325          test ! -s conftest.err
9326        } && test -s conftest$ac_exeext && {
9327          test "$cross_compiling" = yes ||
9328          $as_test_x conftest$ac_exeext
9329        }; then
9330   ac_cv_lib_mp3lame_lame_init=yes
9331 else
9332   $as_echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335         ac_cv_lib_mp3lame_lame_init=no
9336 fi
9337
9338 rm -rf conftest.dSYM
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340       conftest$ac_exeext conftest.$ac_ext
9341 LIBS=$ac_check_lib_save_LIBS
9342 fi
9343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9344 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9345 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9346   cat >>confdefs.h <<_ACEOF
9347 #define HAVE_LIBMP3LAME 1
9348 _ACEOF
9349
9350   LIBS="-lmp3lame $LIBS"
9351
9352 else
9353   NO_LIBMP3LAME=1
9354 fi
9355
9356         HASLAMEHEADER=
9357
9358 for ac_header in lame.h
9359 do
9360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9362   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9363 $as_echo_n "checking for $ac_header... " >&6; }
9364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9365   $as_echo_n "(cached) " >&6
9366 fi
9367 ac_res=`eval 'as_val=${'$as_ac_Header'}
9368                  $as_echo "$as_val"'`
9369                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9370 $as_echo "$ac_res" >&6; }
9371 else
9372   # Is the header compilable?
9373 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9374 $as_echo_n "checking $ac_header usability... " >&6; }
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381 $ac_includes_default
9382 #include <$ac_header>
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (ac_try="$ac_compile"
9386 case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9391 $as_echo "$ac_try_echo") >&5
9392   (eval "$ac_compile") 2>conftest.er1
9393   ac_status=$?
9394   grep -v '^ *+' conftest.er1 >conftest.err
9395   rm -f conftest.er1
9396   cat conftest.err >&5
9397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); } && {
9399          test -z "$ac_c_werror_flag" ||
9400          test ! -s conftest.err
9401        } && test -s conftest.$ac_objext; then
9402   ac_header_compiler=yes
9403 else
9404   $as_echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407         ac_header_compiler=no
9408 fi
9409
9410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9412 $as_echo "$ac_header_compiler" >&6; }
9413
9414 # Is the header present?
9415 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9416 $as_echo_n "checking $ac_header presence... " >&6; }
9417 cat >conftest.$ac_ext <<_ACEOF
9418 /* confdefs.h.  */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h.  */
9423 #include <$ac_header>
9424 _ACEOF
9425 if { (ac_try="$ac_cpp conftest.$ac_ext"
9426 case "(($ac_try" in
9427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428   *) ac_try_echo=$ac_try;;
9429 esac
9430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9431 $as_echo "$ac_try_echo") >&5
9432   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9433   ac_status=$?
9434   grep -v '^ *+' conftest.er1 >conftest.err
9435   rm -f conftest.er1
9436   cat conftest.err >&5
9437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); } >/dev/null && {
9439          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9440          test ! -s conftest.err
9441        }; then
9442   ac_header_preproc=yes
9443 else
9444   $as_echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447   ac_header_preproc=no
9448 fi
9449
9450 rm -f conftest.err conftest.$ac_ext
9451 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9452 $as_echo "$ac_header_preproc" >&6; }
9453
9454 # So?  What about this header?
9455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9456   yes:no: )
9457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9458 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9461     ac_header_preproc=yes
9462     ;;
9463   no:yes:* )
9464     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9465 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9466     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9467 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9468     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9469 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9470     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9471 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9475 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9476
9477     ;;
9478 esac
9479 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9480 $as_echo_n "checking for $ac_header... " >&6; }
9481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9482   $as_echo_n "(cached) " >&6
9483 else
9484   eval "$as_ac_Header=\$ac_header_preproc"
9485 fi
9486 ac_res=`eval 'as_val=${'$as_ac_Header'}
9487                  $as_echo "$as_val"'`
9488                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9489 $as_echo "$ac_res" >&6; }
9490
9491 fi
9492 as_val=`eval 'as_val=${'$as_ac_Header'}
9493                  $as_echo "$as_val"'`
9494    if test "x$as_val" = x""yes; then
9495   cat >>confdefs.h <<_ACEOF
9496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9497 _ACEOF
9498  HASLAMEHEADER=1
9499 fi
9500
9501 done
9502
9503         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9504             cat >>confdefs.h <<\_ACEOF
9505 #define HAVE_LAME 1
9506 _ACEOF
9507
9508         fi
9509     fi
9510 fi
9511
9512
9513 splash_in_source='$(splash_objects)'
9514 xpdf_in_source='$(xpdf_objects)'
9515
9516
9517
9518
9519
9520 # ------------------------------------------------------------------
9521
9522
9523 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9524 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9525
9526 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9527 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9528 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9529     { $as_echo "$as_me:$LINENO: result: yes" >&5
9530 $as_echo "yes" >&6; }
9531
9532 cat >>confdefs.h <<\_ACEOF
9533 #define LOWERCASE_UPPERCASE 1
9534 _ACEOF
9535
9536 else
9537     { $as_echo "$as_me:$LINENO: result: no" >&5
9538 $as_echo "no" >&6; }
9539 fi
9540
9541 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9542 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9543
9544
9545
9546 for ac_prog in avifile-config
9547 do
9548   # Extract the first word of "$ac_prog", so it can be a program name with args.
9549 set dummy $ac_prog; ac_word=$2
9550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9553   $as_echo_n "(cached) " >&6
9554 else
9555   if test -n "$AVIFILE_CONFIG"; then
9556   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9557 else
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 for as_dir in $PATH
9560 do
9561   IFS=$as_save_IFS
9562   test -z "$as_dir" && as_dir=.
9563   for ac_exec_ext in '' $ac_executable_extensions; do
9564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9566     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9567     break 2
9568   fi
9569 done
9570 done
9571 IFS=$as_save_IFS
9572
9573 fi
9574 fi
9575 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9576 if test -n "$AVIFILE_CONFIG"; then
9577   { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9578 $as_echo "$AVIFILE_CONFIG" >&6; }
9579 else
9580   { $as_echo "$as_me:$LINENO: result: no" >&5
9581 $as_echo "no" >&6; }
9582 fi
9583
9584
9585   test -n "$AVIFILE_CONFIG" && break
9586 done
9587
9588
9589 if test "x$AVIFILE_CONFIG" '!=' "x";then
9590     OLDCPPFLAGS="$CPPFLAGS"
9591     # temporarily add avifile paths to CPPFLAGS...
9592     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9593
9594
9595 for ac_header in avifile/version.h version.h
9596 do
9597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9599   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9600 $as_echo_n "checking for $ac_header... " >&6; }
9601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9602   $as_echo_n "(cached) " >&6
9603 fi
9604 ac_res=`eval 'as_val=${'$as_ac_Header'}
9605                  $as_echo "$as_val"'`
9606                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9607 $as_echo "$ac_res" >&6; }
9608 else
9609   # Is the header compilable?
9610 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9611 $as_echo_n "checking $ac_header usability... " >&6; }
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618 $ac_includes_default
9619 #include <$ac_header>
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (ac_try="$ac_compile"
9623 case "(($ac_try" in
9624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625   *) ac_try_echo=$ac_try;;
9626 esac
9627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628 $as_echo "$ac_try_echo") >&5
9629   (eval "$ac_compile") 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } && {
9636          test -z "$ac_c_werror_flag" ||
9637          test ! -s conftest.err
9638        } && test -s conftest.$ac_objext; then
9639   ac_header_compiler=yes
9640 else
9641   $as_echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9643
9644         ac_header_compiler=no
9645 fi
9646
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9649 $as_echo "$ac_header_compiler" >&6; }
9650
9651 # Is the header present?
9652 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9653 $as_echo_n "checking $ac_header presence... " >&6; }
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660 #include <$ac_header>
9661 _ACEOF
9662 if { (ac_try="$ac_cpp conftest.$ac_ext"
9663 case "(($ac_try" in
9664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665   *) ac_try_echo=$ac_try;;
9666 esac
9667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9668 $as_echo "$ac_try_echo") >&5
9669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9670   ac_status=$?
9671   grep -v '^ *+' conftest.er1 >conftest.err
9672   rm -f conftest.er1
9673   cat conftest.err >&5
9674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } >/dev/null && {
9676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9677          test ! -s conftest.err
9678        }; then
9679   ac_header_preproc=yes
9680 else
9681   $as_echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684   ac_header_preproc=no
9685 fi
9686
9687 rm -f conftest.err conftest.$ac_ext
9688 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9689 $as_echo "$ac_header_preproc" >&6; }
9690
9691 # So?  What about this header?
9692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9693   yes:no: )
9694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9695 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9697 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9698     ac_header_preproc=yes
9699     ;;
9700   no:yes:* )
9701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9702 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9704 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9705     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9706 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9707     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9708 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9709     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9710 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9711     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9712 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9713
9714     ;;
9715 esac
9716 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9717 $as_echo_n "checking for $ac_header... " >&6; }
9718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9719   $as_echo_n "(cached) " >&6
9720 else
9721   eval "$as_ac_Header=\$ac_header_preproc"
9722 fi
9723 ac_res=`eval 'as_val=${'$as_ac_Header'}
9724                  $as_echo "$as_val"'`
9725                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9726 $as_echo "$ac_res" >&6; }
9727
9728 fi
9729 as_val=`eval 'as_val=${'$as_ac_Header'}
9730                  $as_echo "$as_val"'`
9731    if test "x$as_val" = x""yes; then
9732   cat >>confdefs.h <<_ACEOF
9733 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9734 _ACEOF
9735
9736 fi
9737
9738 done
9739
9740     # ... and reset
9741     CPPFLAGS="$OLDCPPFLAGS"
9742 fi
9743
9744 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9745 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9746
9747 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9748     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9749 fi
9750 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9751     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9752 fi
9753
9754 cat > conftest.cpp << EOF
9755
9756 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9757 // so we have to introduce them this way
9758 $HAVE_VERSION_H_DEFINE
9759 $HAVE_AVIFILE_VERSION_H_DEFINE
9760
9761 #ifdef HAVE_VERSION_H
9762   #include <version.h>
9763 #endif
9764 #ifdef HAVE_AVIFILE_VERSION_H
9765   #include <avifile/version.h>
9766 #endif
9767
9768 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9769    #include <avifile.h>
9770    #include <aviplay.h>
9771    #include <avm_fourcc.h>
9772    #include <avm_creators.h>
9773    #include <StreamInfo.h>
9774    #define VERSION6
9775 #else
9776    #include <avifile.h>
9777    #include <aviplay.h>
9778    #include <aviutil.h>
9779    #define Width width
9780    #define Height height
9781    #define Data data
9782    #define Bpp bpp
9783 #endif
9784
9785 void test()
9786 {
9787   IAviReadFile* player;
9788   IAviReadStream* astream;
9789   IAviReadStream* vstream;
9790   player = CreateIAviReadFile(0);
9791   astream = player->GetStream(0, AviStream::Audio);
9792   vstream = player->GetStream(0, AviStream::Video);
9793   vstream -> StartStreaming();
9794   astream -> StartStreaming();
9795 #ifndef VERSION6
9796   MainAVIHeader head;
9797   player->GetFileHeader(&head);
9798   head.dwMicroSecPerFrame;
9799   head.dwTotalFrames;
9800   head.dwStreams;
9801   head.dwWidth;
9802   head.dwHeight;
9803   head.dwMicroSecPerFrame;
9804   astream->GetEndPos(),
9805   astream->GetEndTime());
9806   player->StreamCount();
9807 #else
9808   StreamInfo*audioinfo;
9809   StreamInfo*videoinfo;
9810   audioinfo = astream->GetStreamInfo();
9811   videoinfo = vstream->GetStreamInfo();
9812   videoinfo->GetVideoWidth();
9813   videoinfo->GetVideoHeight();
9814   audioinfo->GetAudioSamplesPerSec();
9815   videoinfo->GetFps();
9816 #endif
9817   CImage*img = vstream->GetFrame();
9818   img->ToRGB();
9819   img->Data();
9820   img->Bpp();
9821   img->Width();
9822   img->Height();
9823   WAVEFORMATEX wave;
9824   astream->GetAudioFormatInfo(&wave,0);
9825   uint_t a,b;
9826   astream->ReadFrames(0,0,0,a,b);
9827 }
9828 int main (int argc, char*argv)
9829 {
9830     return 0;
9831 }
9832 EOF
9833
9834 if test "x$AVIFILE_CONFIG" '!=' "x";then
9835     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9836     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9837     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9838     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9839       { $as_echo "$as_me:$LINENO: result: yes" >&5
9840 $as_echo "yes" >&6; }
9841       AVIFILE=true
9842       export AVIFILE
9843
9844 cat >>confdefs.h <<\_ACEOF
9845 #define AVIFILE true
9846 _ACEOF
9847
9848     else
9849       echo "configure: failed program was:" >&5
9850       cat conftest.cpp >&5
9851       { $as_echo "$as_me:$LINENO: result: no" >&5
9852 $as_echo "no" >&6; }
9853     fi
9854 else
9855     { $as_echo "$as_me:$LINENO: result: no" >&5
9856 $as_echo "no" >&6; }
9857 fi
9858 rm -f conftest*
9859
9860 if test "x${AVIFILE}" = "xtrue"; then
9861     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9862     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9863
9864 cat >>confdefs.h <<\_ACEOF
9865 #define HAVE_AVIFILE 1
9866 _ACEOF
9867
9868 fi
9869
9870 if test "x${WIN32}" != "x"; then
9871     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9872     #if test "x${AVIFIL32}" != "x"; then
9873     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9874     #fi
9875     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9876     AVIFIL32=true
9877 fi
9878
9879
9880
9881 # ------------------------------------------------------------------
9882
9883 if test "x${UNCOMPRESS}" = "xgzip"; then
9884
9885 cat >>confdefs.h <<\_ACEOF
9886 #define USE_GZIP 1
9887 _ACEOF
9888
9889 fi
9890
9891
9892 # ------------------------------------------------------------------
9893
9894
9895 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
9896 $as_echo_n "checking for Python.h... " >&6; }
9897
9898 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9899     PY_VERSION=unknown
9900 else
9901     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9902         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9903     fi
9904     # iterate through version 2.2 to 2.6
9905     for v in 2 3 4 5 6; do
9906         # Linux
9907         if test -f "/usr/include/python2.$v/Python.h";then
9908             PY_VERSION=2.$v
9909             PYTHON_LIB="-lpython$PY_VERSION"
9910             if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9911                 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9912                 HAVE_PYTHON_IMAGING_LIB=1
9913             else
9914                 PYTHON_LIB2="$PYTHON_LIB"
9915             fi
9916             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9917         # Mac OS X
9918         elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9919             PY_VERSION=2.$v
9920             PYTHON_LIB="-framework Python"
9921             if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
9922                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9923                 HAVE_PYTHON_IMAGING_LIB=1
9924             else
9925                 PYTHON_LIB2="$PYTHON_LIB"
9926             fi
9927             PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9928         # Mac OS X [Fink]:
9929         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9930                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9931                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9932                   ")" \
9933                -a -f "/sw/include/python2.$v/Python.h"; then
9934             PY_VERSION=2.$v
9935             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9936             if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9937                 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9938                 HAVE_PYTHON_IMAGING_LIB=1
9939             else
9940                 PYTHON_LIB2="$PYTHON_LIB"
9941             fi
9942             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9943         fi
9944     done
9945 fi
9946
9947 if test "x$PY_VERSION" "!=" "x"; then
9948     { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9949 $as_echo "$PY_VERSION" >&6; }
9950     export PYTHON_INCLUDES PYTHON_LIB
9951
9952
9953     { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9954 $as_echo_n "checking whether we can compile the python test program... " >&6; }
9955
9956     cat > conftest.c << EOF
9957 #include <Python.h>
9958
9959 int main()
9960 {
9961     int ret;
9962     ret = Py_Main(0, 0);
9963     int x; // check also for gcc 2.95.x incompatibilities
9964     return ret;
9965 }
9966 EOF
9967
9968     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9969     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9970         { $as_echo "$as_me:$LINENO: result: yes" >&5
9971 $as_echo "yes" >&6; }
9972         PYTHON_OK=yes
9973     else
9974         echo "configure: failed program was:" >&5
9975         cat conftest.c >&5
9976         { $as_echo "$as_me:$LINENO: result: no" >&5
9977 $as_echo "no" >&6; }
9978     fi
9979     rm -f conftest*
9980     if test "x$PYTHON_OK" = "xyes";then
9981         { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
9982 $as_echo_n "checking for Python-Imaging... " >&6; }
9983     cat > conftest.c << EOF
9984 #include <Python.h>
9985 #include <Imaging.h>
9986
9987 int main()
9988 {
9989     Py_Main(0, 0);
9990     return 0;
9991 }
9992 EOF
9993         if test "$HAVE_PYTHON_IMAGING_LIB"; then
9994             ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9995             if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9996                 PYTHON_LIB="${PYTHON_LIB2}"
9997
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_PYTHON_IMAGING 1
10000 _ACEOF
10001
10002                 HAVE_PYTHON_IMAGING=yes
10003                 export HAVE_PYTHON_IMAGING
10004
10005                 { $as_echo "$as_me:$LINENO: result: yes" >&5
10006 $as_echo "yes" >&6; }
10007             else
10008                 echo "configure: failed program was:" >&5
10009                 cat conftest.c >&5
10010                 { $as_echo "$as_me:$LINENO: result: no" >&5
10011 $as_echo "no" >&6; }
10012             fi
10013         else
10014             echo "(didn't find the Python-Imaging libraries)" >&5
10015             { $as_echo "$as_me:$LINENO: result: no" >&5
10016 $as_echo "no" >&6; }
10017         fi
10018     fi
10019     rm -f conftest*
10020 else
10021     { $as_echo "$as_me:$LINENO: result: nope" >&5
10022 $as_echo "nope" >&6; }
10023 fi
10024
10025
10026 if test "x$PYTHON_OK" '!=' "xyes";then
10027     echo all install uninstall clean: > lib/python/Makefile
10028     # fail silently- the most users won't have any need for the
10029     # python interface anyway
10030 else
10031     pythonrfxswf="lib/python/Makefile"
10032 fi
10033
10034 # ------------------------------------------------------------------
10035
10036 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10037 $as_echo_n "checking for missing libraries... " >&6; }
10038
10039 if test "x$ZLIBMISSING" = "xtrue";then
10040     MISSINGLIBS="${MISSINGLIBS} zlib"
10041     DISABLEPNG2SWF=true
10042     PARTIAL=true
10043 fi
10044 if test "x$JPEGLIBMISSING" = "xtrue";then
10045     MISSINGLIBS="${MISSINGLIBS} jpeglib"
10046     DISABLEPDF2SWF=true
10047     DISABLEJPEG2SWF=true
10048     PARTIAL=true
10049 fi
10050 if test "x$PDFLIBMISSING" = "xtrue";then
10051     DISABLEPDF2PDF=true;
10052 fi
10053 #if test "x$T1LIBMISSING" = "xtrue";then
10054 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
10055 #fi
10056 if test "x$UNGIFMISSING" = "xtrue";then
10057     DISABLEGIF2SWF=true
10058     MISSINGLIBS="${MISSINGLIBS} ungif"
10059     PARTIAL=true
10060 fi
10061
10062 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
10063     DISABLEPDF2PDF=true;
10064 fi
10065 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10066     DISABLEPDF2SWF=true;
10067     DISABLEJPEG2SWF=true;
10068     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10069     PARTIAL=true
10070 fi
10071 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10072     DISABLEPDF2SWF=true;
10073     MISSINGLIBS="${MISSINGLIBS} freetype"
10074     PARTIAL=true
10075 fi
10076 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10077 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10078 #fi
10079 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10080     DISABLEGIF2SWF=true
10081     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10082     PARTIAL=true
10083 fi
10084 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10085     DISABLEPNG2SWF=true;
10086     MISSINGLIBS="${MISSINGLIBS} zlib.h"
10087     PARTIAL=true
10088 fi
10089 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10090 #    MISSINGLIBS="${MISSINGLIBS} avifile"
10091 #fi
10092
10093 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10094 $as_echo "${MISSINGLIBS}" >&6; }
10095
10096 # ------------------------------------------------------------------
10097
10098 if test "x${MISSINGLIBS}" '!=' "x"; then
10099   echo "***************************************************"
10100   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10101 fi
10102
10103 avi2swf="avi2swf/Makefile"
10104 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10105  #don't whine, avi2swf is outdated anyway
10106  #echo "* Disabling avi2swf tool..."
10107  echo all install uninstall clean: > avi2swf/Makefile
10108  avi2swf=
10109 fi
10110
10111 pdf2swf_makefile="lib/pdf/Makefile"
10112 PDF2SWF='pdf2swf$(E)'
10113 LIBPDF='libpdf$(A)'
10114
10115 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10116   echo "* Disabling pdf2swf tool..."
10117   rm -f lib/pdf/Makefile
10118   echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
10119   pdf2swf_makefile=""
10120   PDF2SWF=
10121   LIBPDF=
10122 fi
10123
10124
10125
10126 PDF2PDF='pdf2pdf$(E)'
10127 DEVICE_PDF='devices/pdf.$(O)'
10128 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
10129   #echo "* Disabling pdf2pdf tool..."
10130   PDF2PDF=
10131   DEVICE_PDF=
10132 fi
10133
10134
10135
10136 if test "x${ZLIBMISSING}" = "xtrue"; then
10137   echo
10138   echo "* Warning! Without zlib, you will not be able to read"
10139   echo "* or write compressed Flash MX files!"
10140 fi
10141
10142 JPEG2SWF='jpeg2swf$(E)'
10143 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10144   echo "* Disabling jpeg2swf tool..."
10145   JPEG2SWF=
10146 fi
10147 export JPEG2SWF
10148
10149
10150 GIF2SWF='gif2swf$(E)'
10151 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10152   echo "* Disabling gif2swf tool..."
10153   GIF2SWF=
10154 fi
10155 export GIF2SWF
10156
10157
10158 PNG2SWF='png2swf$(E)'
10159 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10160   echo "* Disabling png2swf tool..."
10161   PNG2SWF=
10162 fi
10163 export PNG2SWF
10164
10165
10166 if test "x${MISSINGLIBS}" '!=' "x"; then
10167   if test "x${PARTIAL}" '=' "x"; then
10168     echo "* (never mind)"
10169   fi
10170   echo "***************************************************"
10171 fi
10172
10173 # ------------------------------------------------------------------
10174
10175
10176
10177
10178
10179
10180
10181 if test -f "release.in"; then release_in="./release"; fi
10182 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10183 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
10184 ac_config_files="$ac_config_files ${FILES}"
10185
10186 cat >confcache <<\_ACEOF
10187 # This file is a shell script that caches the results of configure
10188 # tests run on this system so they can be shared between configure
10189 # scripts and configure runs, see configure's option --config-cache.
10190 # It is not useful on other systems.  If it contains results you don't
10191 # want to keep, you may remove or edit it.
10192 #
10193 # config.status only pays attention to the cache file if you give it
10194 # the --recheck option to rerun configure.
10195 #
10196 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10197 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10198 # following values.
10199
10200 _ACEOF
10201
10202 # The following way of writing the cache mishandles newlines in values,
10203 # but we know of no workaround that is simple, portable, and efficient.
10204 # So, we kill variables containing newlines.
10205 # Ultrix sh set writes to stderr and can't be redirected directly,
10206 # and sets the high bit in the cache file unless we assign to the vars.
10207 (
10208   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10209     eval ac_val=\$$ac_var
10210     case $ac_val in #(
10211     *${as_nl}*)
10212       case $ac_var in #(
10213       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10214 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10215       esac
10216       case $ac_var in #(
10217       _ | IFS | as_nl) ;; #(
10218       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10219       *) $as_unset $ac_var ;;
10220       esac ;;
10221     esac
10222   done
10223
10224   (set) 2>&1 |
10225     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10226     *${as_nl}ac_space=\ *)
10227       # `set' does not quote correctly, so add quotes (double-quote
10228       # substitution turns \\\\ into \\, and sed turns \\ into \).
10229       sed -n \
10230         "s/'/'\\\\''/g;
10231           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10232       ;; #(
10233     *)
10234       # `set' quotes correctly as required by POSIX, so do not add quotes.
10235       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10236       ;;
10237     esac |
10238     sort
10239 ) |
10240   sed '
10241      /^ac_cv_env_/b end
10242      t clear
10243      :clear
10244      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10245      t end
10246      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10247      :end' >>confcache
10248 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10249   if test -w "$cache_file"; then
10250     test "x$cache_file" != "x/dev/null" &&
10251       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10252 $as_echo "$as_me: updating cache $cache_file" >&6;}
10253     cat confcache >$cache_file
10254   else
10255     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10256 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10257   fi
10258 fi
10259 rm -f confcache
10260
10261 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10262 # Let make expand exec_prefix.
10263 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10264
10265 DEFS=-DHAVE_CONFIG_H
10266
10267 ac_libobjs=
10268 ac_ltlibobjs=
10269 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10270   # 1. Remove the extension, and $U if already installed.
10271   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10272   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10273   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10274   #    will be set to the directory where LIBOBJS objects are built.
10275   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10276   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10277 done
10278 LIBOBJS=$ac_libobjs
10279
10280 LTLIBOBJS=$ac_ltlibobjs
10281
10282
10283
10284 : ${CONFIG_STATUS=./config.status}
10285 ac_write_fail=0
10286 ac_clean_files_save=$ac_clean_files
10287 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10288 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10289 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10290 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10291 #! $SHELL
10292 # Generated by $as_me.
10293 # Run this file to recreate the current configuration.
10294 # Compiler output produced by configure, useful for debugging
10295 # configure, is in config.log if it exists.
10296
10297 debug=false
10298 ac_cs_recheck=false
10299 ac_cs_silent=false
10300 SHELL=\${CONFIG_SHELL-$SHELL}
10301 _ACEOF
10302
10303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10304 ## --------------------- ##
10305 ## M4sh Initialization.  ##
10306 ## --------------------- ##
10307
10308 # Be more Bourne compatible
10309 DUALCASE=1; export DUALCASE # for MKS sh
10310 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10311   emulate sh
10312   NULLCMD=:
10313   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10314   # is contrary to our usage.  Disable this feature.
10315   alias -g '${1+"$@"}'='"$@"'
10316   setopt NO_GLOB_SUBST
10317 else
10318   case `(set -o) 2>/dev/null` in
10319   *posix*) set -o posix ;;
10320 esac
10321
10322 fi
10323
10324
10325
10326
10327 # PATH needs CR
10328 # Avoid depending upon Character Ranges.
10329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10332 as_cr_digits='0123456789'
10333 as_cr_alnum=$as_cr_Letters$as_cr_digits
10334
10335 as_nl='
10336 '
10337 export as_nl
10338 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10339 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10340 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10341 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10342 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10343   as_echo='printf %s\n'
10344   as_echo_n='printf %s'
10345 else
10346   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10347     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10348     as_echo_n='/usr/ucb/echo -n'
10349   else
10350     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10351     as_echo_n_body='eval
10352       arg=$1;
10353       case $arg in
10354       *"$as_nl"*)
10355         expr "X$arg" : "X\\(.*\\)$as_nl";
10356         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10357       esac;
10358       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10359     '
10360     export as_echo_n_body
10361     as_echo_n='sh -c $as_echo_n_body as_echo'
10362   fi
10363   export as_echo_body
10364   as_echo='sh -c $as_echo_body as_echo'
10365 fi
10366
10367 # The user is always right.
10368 if test "${PATH_SEPARATOR+set}" != set; then
10369   PATH_SEPARATOR=:
10370   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10371     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10372       PATH_SEPARATOR=';'
10373   }
10374 fi
10375
10376 # Support unset when possible.
10377 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10378   as_unset=unset
10379 else
10380   as_unset=false
10381 fi
10382
10383
10384 # IFS
10385 # We need space, tab and new line, in precisely that order.  Quoting is
10386 # there to prevent editors from complaining about space-tab.
10387 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10388 # splitting by setting IFS to empty value.)
10389 IFS=" ""        $as_nl"
10390
10391 # Find who we are.  Look in the path if we contain no directory separator.
10392 case $0 in
10393   *[\\/]* ) as_myself=$0 ;;
10394   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10395 for as_dir in $PATH
10396 do
10397   IFS=$as_save_IFS
10398   test -z "$as_dir" && as_dir=.
10399   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10400 done
10401 IFS=$as_save_IFS
10402
10403      ;;
10404 esac
10405 # We did not find ourselves, most probably we were run as `sh COMMAND'
10406 # in which case we are not to be found in the path.
10407 if test "x$as_myself" = x; then
10408   as_myself=$0
10409 fi
10410 if test ! -f "$as_myself"; then
10411   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10412   { (exit 1); exit 1; }
10413 fi
10414
10415 # Work around bugs in pre-3.0 UWIN ksh.
10416 for as_var in ENV MAIL MAILPATH
10417 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10418 done
10419 PS1='$ '
10420 PS2='> '
10421 PS4='+ '
10422
10423 # NLS nuisances.
10424 LC_ALL=C
10425 export LC_ALL
10426 LANGUAGE=C
10427 export LANGUAGE
10428
10429 # Required to use basename.
10430 if expr a : '\(a\)' >/dev/null 2>&1 &&
10431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10432   as_expr=expr
10433 else
10434   as_expr=false
10435 fi
10436
10437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10438   as_basename=basename
10439 else
10440   as_basename=false
10441 fi
10442
10443
10444 # Name of the executable.
10445 as_me=`$as_basename -- "$0" ||
10446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10447          X"$0" : 'X\(//\)$' \| \
10448          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10449 $as_echo X/"$0" |
10450     sed '/^.*\/\([^/][^/]*\)\/*$/{
10451             s//\1/
10452             q
10453           }
10454           /^X\/\(\/\/\)$/{
10455             s//\1/
10456             q
10457           }
10458           /^X\/\(\/\).*/{
10459             s//\1/
10460             q
10461           }
10462           s/.*/./; q'`
10463
10464 # CDPATH.
10465 $as_unset CDPATH
10466
10467
10468
10469   as_lineno_1=$LINENO
10470   as_lineno_2=$LINENO
10471   test "x$as_lineno_1" != "x$as_lineno_2" &&
10472   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10473
10474   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10475   # uniformly replaced by the line number.  The first 'sed' inserts a
10476   # line-number line after each line using $LINENO; the second 'sed'
10477   # does the real work.  The second script uses 'N' to pair each
10478   # line-number line with the line containing $LINENO, and appends
10479   # trailing '-' during substitution so that $LINENO is not a special
10480   # case at line end.
10481   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10482   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10483   # E. McMahon (1931-1989) for sed's syntax.  :-)
10484   sed -n '
10485     p
10486     /[$]LINENO/=
10487   ' <$as_myself |
10488     sed '
10489       s/[$]LINENO.*/&-/
10490       t lineno
10491       b
10492       :lineno
10493       N
10494       :loop
10495       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10496       t loop
10497       s/-\n.*//
10498     ' >$as_me.lineno &&
10499   chmod +x "$as_me.lineno" ||
10500     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10501    { (exit 1); exit 1; }; }
10502
10503   # Don't try to exec as it changes $[0], causing all sort of problems
10504   # (the dirname of $[0] is not the place where we might find the
10505   # original and so on.  Autoconf is especially sensitive to this).
10506   . "./$as_me.lineno"
10507   # Exit status is that of the last command.
10508   exit
10509 }
10510
10511
10512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10513   as_dirname=dirname
10514 else
10515   as_dirname=false
10516 fi
10517
10518 ECHO_C= ECHO_N= ECHO_T=
10519 case `echo -n x` in
10520 -n*)
10521   case `echo 'x\c'` in
10522   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10523   *)   ECHO_C='\c';;
10524   esac;;
10525 *)
10526   ECHO_N='-n';;
10527 esac
10528 if expr a : '\(a\)' >/dev/null 2>&1 &&
10529    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10530   as_expr=expr
10531 else
10532   as_expr=false
10533 fi
10534
10535 rm -f conf$$ conf$$.exe conf$$.file
10536 if test -d conf$$.dir; then
10537   rm -f conf$$.dir/conf$$.file
10538 else
10539   rm -f conf$$.dir
10540   mkdir conf$$.dir 2>/dev/null
10541 fi
10542 if (echo >conf$$.file) 2>/dev/null; then
10543   if ln -s conf$$.file conf$$ 2>/dev/null; then
10544     as_ln_s='ln -s'
10545     # ... but there are two gotchas:
10546     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10547     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10548     # In both cases, we have to default to `cp -p'.
10549     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10550       as_ln_s='cp -p'
10551   elif ln conf$$.file conf$$ 2>/dev/null; then
10552     as_ln_s=ln
10553   else
10554     as_ln_s='cp -p'
10555   fi
10556 else
10557   as_ln_s='cp -p'
10558 fi
10559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10560 rmdir conf$$.dir 2>/dev/null
10561
10562 if mkdir -p . 2>/dev/null; then
10563   as_mkdir_p=:
10564 else
10565   test -d ./-p && rmdir ./-p
10566   as_mkdir_p=false
10567 fi
10568
10569 if test -x / >/dev/null 2>&1; then
10570   as_test_x='test -x'
10571 else
10572   if ls -dL / >/dev/null 2>&1; then
10573     as_ls_L_option=L
10574   else
10575     as_ls_L_option=
10576   fi
10577   as_test_x='
10578     eval sh -c '\''
10579       if test -d "$1"; then
10580         test -d "$1/.";
10581       else
10582         case $1 in
10583         -*)set "./$1";;
10584         esac;
10585         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10586         ???[sx]*):;;*)false;;esac;fi
10587     '\'' sh
10588   '
10589 fi
10590 as_executable_p=$as_test_x
10591
10592 # Sed expression to map a string onto a valid CPP name.
10593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10594
10595 # Sed expression to map a string onto a valid variable name.
10596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10597
10598
10599 exec 6>&1
10600
10601 # Save the log message, to keep $[0] and so on meaningful, and to
10602 # report actual input values of CONFIG_FILES etc. instead of their
10603 # values after options handling.
10604 ac_log="
10605 This file was extended by $as_me, which was
10606 generated by GNU Autoconf 2.63.  Invocation command line was
10607
10608   CONFIG_FILES    = $CONFIG_FILES
10609   CONFIG_HEADERS  = $CONFIG_HEADERS
10610   CONFIG_LINKS    = $CONFIG_LINKS
10611   CONFIG_COMMANDS = $CONFIG_COMMANDS
10612   $ $0 $@
10613
10614 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10615 "
10616
10617 _ACEOF
10618
10619 case $ac_config_files in *"
10620 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10621 esac
10622
10623 case $ac_config_headers in *"
10624 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10625 esac
10626
10627
10628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10629 # Files that config.status was made for.
10630 config_files="$ac_config_files"
10631 config_headers="$ac_config_headers"
10632
10633 _ACEOF
10634
10635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10636 ac_cs_usage="\
10637 \`$as_me' instantiates files from templates according to the
10638 current configuration.
10639
10640 Usage: $0 [OPTION]... [FILE]...
10641
10642   -h, --help       print this help, then exit
10643   -V, --version    print version number and configuration settings, then exit
10644   -q, --quiet, --silent
10645                    do not print progress messages
10646   -d, --debug      don't remove temporary files
10647       --recheck    update $as_me by reconfiguring in the same conditions
10648       --file=FILE[:TEMPLATE]
10649                    instantiate the configuration file FILE
10650       --header=FILE[:TEMPLATE]
10651                    instantiate the configuration header FILE
10652
10653 Configuration files:
10654 $config_files
10655
10656 Configuration headers:
10657 $config_headers
10658
10659 Report bugs to <bug-autoconf@gnu.org>."
10660
10661 _ACEOF
10662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10663 ac_cs_version="\\
10664 config.status
10665 configured by $0, generated by GNU Autoconf 2.63,
10666   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10667
10668 Copyright (C) 2008 Free Software Foundation, Inc.
10669 This config.status script is free software; the Free Software Foundation
10670 gives unlimited permission to copy, distribute and modify it."
10671
10672 ac_pwd='$ac_pwd'
10673 srcdir='$srcdir'
10674 INSTALL='$INSTALL'
10675 test -n "\$AWK" || AWK=awk
10676 _ACEOF
10677
10678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10679 # The default lists apply if the user does not specify any file.
10680 ac_need_defaults=:
10681 while test $# != 0
10682 do
10683   case $1 in
10684   --*=*)
10685     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10686     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10687     ac_shift=:
10688     ;;
10689   *)
10690     ac_option=$1
10691     ac_optarg=$2
10692     ac_shift=shift
10693     ;;
10694   esac
10695
10696   case $ac_option in
10697   # Handling of the options.
10698   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10699     ac_cs_recheck=: ;;
10700   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10701     $as_echo "$ac_cs_version"; exit ;;
10702   --debug | --debu | --deb | --de | --d | -d )
10703     debug=: ;;
10704   --file | --fil | --fi | --f )
10705     $ac_shift
10706     case $ac_optarg in
10707     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10708     esac
10709     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10710     ac_need_defaults=false;;
10711   --header | --heade | --head | --hea )
10712     $ac_shift
10713     case $ac_optarg in
10714     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10715     esac
10716     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10717     ac_need_defaults=false;;
10718   --he | --h)
10719     # Conflict between --help and --header
10720     { $as_echo "$as_me: error: ambiguous option: $1
10721 Try \`$0 --help' for more information." >&2
10722    { (exit 1); exit 1; }; };;
10723   --help | --hel | -h )
10724     $as_echo "$ac_cs_usage"; exit ;;
10725   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10726   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10727     ac_cs_silent=: ;;
10728
10729   # This is an error.
10730   -*) { $as_echo "$as_me: error: unrecognized option: $1
10731 Try \`$0 --help' for more information." >&2
10732    { (exit 1); exit 1; }; } ;;
10733
10734   *) ac_config_targets="$ac_config_targets $1"
10735      ac_need_defaults=false ;;
10736
10737   esac
10738   shift
10739 done
10740
10741 ac_configure_extra_args=
10742
10743 if $ac_cs_silent; then
10744   exec 6>/dev/null
10745   ac_configure_extra_args="$ac_configure_extra_args --silent"
10746 fi
10747
10748 _ACEOF
10749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10750 if \$ac_cs_recheck; then
10751   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10752   shift
10753   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10754   CONFIG_SHELL='$SHELL'
10755   export CONFIG_SHELL
10756   exec "\$@"
10757 fi
10758
10759 _ACEOF
10760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10761 exec 5>>config.log
10762 {
10763   echo
10764   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10765 ## Running $as_me. ##
10766 _ASBOX
10767   $as_echo "$ac_log"
10768 } >&5
10769
10770 _ACEOF
10771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10772 _ACEOF
10773
10774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10775
10776 # Handling of arguments.
10777 for ac_config_target in $ac_config_targets
10778 do
10779   case $ac_config_target in
10780     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10781     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10782
10783   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10784 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10785    { (exit 1); exit 1; }; };;
10786   esac
10787 done
10788
10789
10790 # If the user did not use the arguments to specify the items to instantiate,
10791 # then the envvar interface is used.  Set only those that are not.
10792 # We use the long form for the default assignment because of an extremely
10793 # bizarre bug on SunOS 4.1.3.
10794 if $ac_need_defaults; then
10795   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10796   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10797 fi
10798
10799 # Have a temporary directory for convenience.  Make it in the build tree
10800 # simply because there is no reason against having it here, and in addition,
10801 # creating and moving files from /tmp can sometimes cause problems.
10802 # Hook for its removal unless debugging.
10803 # Note that there is a small window in which the directory will not be cleaned:
10804 # after its creation but before its name has been assigned to `$tmp'.
10805 $debug ||
10806 {
10807   tmp=
10808   trap 'exit_status=$?
10809   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10810 ' 0
10811   trap '{ (exit 1); exit 1; }' 1 2 13 15
10812 }
10813 # Create a (secure) tmp directory for tmp files.
10814
10815 {
10816   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10817   test -n "$tmp" && test -d "$tmp"
10818 }  ||
10819 {
10820   tmp=./conf$$-$RANDOM
10821   (umask 077 && mkdir "$tmp")
10822 } ||
10823 {
10824    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10825    { (exit 1); exit 1; }
10826 }
10827
10828 # Set up the scripts for CONFIG_FILES section.
10829 # No need to generate them if there are no CONFIG_FILES.
10830 # This happens for instance with `./config.status config.h'.
10831 if test -n "$CONFIG_FILES"; then
10832
10833
10834 ac_cr='\r'
10835 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10836 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10837   ac_cs_awk_cr='\\r'
10838 else
10839   ac_cs_awk_cr=$ac_cr
10840 fi
10841
10842 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10843 _ACEOF
10844
10845
10846 {
10847   echo "cat >conf$$subs.awk <<_ACEOF" &&
10848   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10849   echo "_ACEOF"
10850 } >conf$$subs.sh ||
10851   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10852 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10853    { (exit 1); exit 1; }; }
10854 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10855 ac_delim='%!_!# '
10856 for ac_last_try in false false false false false :; do
10857   . ./conf$$subs.sh ||
10858     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10859 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10860    { (exit 1); exit 1; }; }
10861
10862   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10863   if test $ac_delim_n = $ac_delim_num; then
10864     break
10865   elif $ac_last_try; then
10866     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10867 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10868    { (exit 1); exit 1; }; }
10869   else
10870     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10871   fi
10872 done
10873 rm -f conf$$subs.sh
10874
10875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10876 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10877 _ACEOF
10878 sed -n '
10879 h
10880 s/^/S["/; s/!.*/"]=/
10881 p
10882 g
10883 s/^[^!]*!//
10884 :repl
10885 t repl
10886 s/'"$ac_delim"'$//
10887 t delim
10888 :nl
10889 h
10890 s/\(.\{148\}\).*/\1/
10891 t more1
10892 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10893 p
10894 n
10895 b repl
10896 :more1
10897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10898 p
10899 g
10900 s/.\{148\}//
10901 t nl
10902 :delim
10903 h
10904 s/\(.\{148\}\).*/\1/
10905 t more2
10906 s/["\\]/\\&/g; s/^/"/; s/$/"/
10907 p
10908 b
10909 :more2
10910 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10911 p
10912 g
10913 s/.\{148\}//
10914 t delim
10915 ' <conf$$subs.awk | sed '
10916 /^[^""]/{
10917   N
10918   s/\n//
10919 }
10920 ' >>$CONFIG_STATUS || ac_write_fail=1
10921 rm -f conf$$subs.awk
10922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10923 _ACAWK
10924 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10925   for (key in S) S_is_set[key] = 1
10926   FS = "\a"
10927
10928 }
10929 {
10930   line = $ 0
10931   nfields = split(line, field, "@")
10932   substed = 0
10933   len = length(field[1])
10934   for (i = 2; i < nfields; i++) {
10935     key = field[i]
10936     keylen = length(key)
10937     if (S_is_set[key]) {
10938       value = S[key]
10939       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10940       len += length(value) + length(field[++i])
10941       substed = 1
10942     } else
10943       len += 1 + keylen
10944   }
10945
10946   print line
10947 }
10948
10949 _ACAWK
10950 _ACEOF
10951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10952 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10953   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10954 else
10955   cat
10956 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10957   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10958 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10959    { (exit 1); exit 1; }; }
10960 _ACEOF
10961
10962 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10963 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10964 # trailing colons and then remove the whole line if VPATH becomes empty
10965 # (actually we leave an empty line to preserve line numbers).
10966 if test "x$srcdir" = x.; then
10967   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10968 s/:*\$(srcdir):*/:/
10969 s/:*\${srcdir}:*/:/
10970 s/:*@srcdir@:*/:/
10971 s/^\([^=]*=[     ]*\):*/\1/
10972 s/:*$//
10973 s/^[^=]*=[       ]*$//
10974 }'
10975 fi
10976
10977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10978 fi # test -n "$CONFIG_FILES"
10979
10980 # Set up the scripts for CONFIG_HEADERS section.
10981 # No need to generate them if there are no CONFIG_HEADERS.
10982 # This happens for instance with `./config.status Makefile'.
10983 if test -n "$CONFIG_HEADERS"; then
10984 cat >"$tmp/defines.awk" <<\_ACAWK ||
10985 BEGIN {
10986 _ACEOF
10987
10988 # Transform confdefs.h into an awk script `defines.awk', embedded as
10989 # here-document in config.status, that substitutes the proper values into
10990 # config.h.in to produce config.h.
10991
10992 # Create a delimiter string that does not exist in confdefs.h, to ease
10993 # handling of long lines.
10994 ac_delim='%!_!# '
10995 for ac_last_try in false false :; do
10996   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10997   if test -z "$ac_t"; then
10998     break
10999   elif $ac_last_try; then
11000     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11001 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11002    { (exit 1); exit 1; }; }
11003   else
11004     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11005   fi
11006 done
11007
11008 # For the awk script, D is an array of macro values keyed by name,
11009 # likewise P contains macro parameters if any.  Preserve backslash
11010 # newline sequences.
11011
11012 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11013 sed -n '
11014 s/.\{148\}/&'"$ac_delim"'/g
11015 t rset
11016 :rset
11017 s/^[     ]*#[    ]*define[       ][      ]*/ /
11018 t def
11019 d
11020 :def
11021 s/\\$//
11022 t bsnl
11023 s/["\\]/\\&/g
11024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11025 D["\1"]=" \3"/p
11026 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11027 d
11028 :bsnl
11029 s/["\\]/\\&/g
11030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11031 D["\1"]=" \3\\\\\\n"\\/p
11032 t cont
11033 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11034 t cont
11035 d
11036 :cont
11037 n
11038 s/.\{148\}/&'"$ac_delim"'/g
11039 t clear
11040 :clear
11041 s/\\$//
11042 t bsnlc
11043 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11044 d
11045 :bsnlc
11046 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11047 b cont
11048 ' <confdefs.h | sed '
11049 s/'"$ac_delim"'/"\\\
11050 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11051
11052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11053   for (key in D) D_is_set[key] = 1
11054   FS = "\a"
11055 }
11056 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11057   line = \$ 0
11058   split(line, arg, " ")
11059   if (arg[1] == "#") {
11060     defundef = arg[2]
11061     mac1 = arg[3]
11062   } else {
11063     defundef = substr(arg[1], 2)
11064     mac1 = arg[2]
11065   }
11066   split(mac1, mac2, "(") #)
11067   macro = mac2[1]
11068   prefix = substr(line, 1, index(line, defundef) - 1)
11069   if (D_is_set[macro]) {
11070     # Preserve the white space surrounding the "#".
11071     print prefix "define", macro P[macro] D[macro]
11072     next
11073   } else {
11074     # Replace #undef with comments.  This is necessary, for example,
11075     # in the case of _POSIX_SOURCE, which is predefined and required
11076     # on some systems where configure will not decide to define it.
11077     if (defundef == "undef") {
11078       print "/*", prefix defundef, macro, "*/"
11079       next
11080     }
11081   }
11082 }
11083 { print }
11084 _ACAWK
11085 _ACEOF
11086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11087   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11088 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11089    { (exit 1); exit 1; }; }
11090 fi # test -n "$CONFIG_HEADERS"
11091
11092
11093 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11094 shift
11095 for ac_tag
11096 do
11097   case $ac_tag in
11098   :[FHLC]) ac_mode=$ac_tag; continue;;
11099   esac
11100   case $ac_mode$ac_tag in
11101   :[FHL]*:*);;
11102   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11103 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11104    { (exit 1); exit 1; }; };;
11105   :[FH]-) ac_tag=-:-;;
11106   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11107   esac
11108   ac_save_IFS=$IFS
11109   IFS=:
11110   set x $ac_tag
11111   IFS=$ac_save_IFS
11112   shift
11113   ac_file=$1
11114   shift
11115
11116   case $ac_mode in
11117   :L) ac_source=$1;;
11118   :[FH])
11119     ac_file_inputs=
11120     for ac_f
11121     do
11122       case $ac_f in
11123       -) ac_f="$tmp/stdin";;
11124       *) # Look for the file first in the build tree, then in the source tree
11125          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11126          # because $ac_f cannot contain `:'.
11127          test -f "$ac_f" ||
11128            case $ac_f in
11129            [\\/$]*) false;;
11130            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11131            esac ||
11132            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11133 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11134    { (exit 1); exit 1; }; };;
11135       esac
11136       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11137       ac_file_inputs="$ac_file_inputs '$ac_f'"
11138     done
11139
11140     # Let's still pretend it is `configure' which instantiates (i.e., don't
11141     # use $as_me), people would be surprised to read:
11142     #    /* config.h.  Generated by config.status.  */
11143     configure_input='Generated from '`
11144           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11145         `' by configure.'
11146     if test x"$ac_file" != x-; then
11147       configure_input="$ac_file.  $configure_input"
11148       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11149 $as_echo "$as_me: creating $ac_file" >&6;}
11150     fi
11151     # Neutralize special characters interpreted by sed in replacement strings.
11152     case $configure_input in #(
11153     *\&* | *\|* | *\\* )
11154        ac_sed_conf_input=`$as_echo "$configure_input" |
11155        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11156     *) ac_sed_conf_input=$configure_input;;
11157     esac
11158
11159     case $ac_tag in
11160     *:-:* | *:-) cat >"$tmp/stdin" \
11161       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11162 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11163    { (exit 1); exit 1; }; } ;;
11164     esac
11165     ;;
11166   esac
11167
11168   ac_dir=`$as_dirname -- "$ac_file" ||
11169 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11170          X"$ac_file" : 'X\(//\)[^/]' \| \
11171          X"$ac_file" : 'X\(//\)$' \| \
11172          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11173 $as_echo X"$ac_file" |
11174     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11175             s//\1/
11176             q
11177           }
11178           /^X\(\/\/\)[^/].*/{
11179             s//\1/
11180             q
11181           }
11182           /^X\(\/\/\)$/{
11183             s//\1/
11184             q
11185           }
11186           /^X\(\/\).*/{
11187             s//\1/
11188             q
11189           }
11190           s/.*/./; q'`
11191   { as_dir="$ac_dir"
11192   case $as_dir in #(
11193   -*) as_dir=./$as_dir;;
11194   esac
11195   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11196     as_dirs=
11197     while :; do
11198       case $as_dir in #(
11199       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11200       *) as_qdir=$as_dir;;
11201       esac
11202       as_dirs="'$as_qdir' $as_dirs"
11203       as_dir=`$as_dirname -- "$as_dir" ||
11204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11205          X"$as_dir" : 'X\(//\)[^/]' \| \
11206          X"$as_dir" : 'X\(//\)$' \| \
11207          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11208 $as_echo X"$as_dir" |
11209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11210             s//\1/
11211             q
11212           }
11213           /^X\(\/\/\)[^/].*/{
11214             s//\1/
11215             q
11216           }
11217           /^X\(\/\/\)$/{
11218             s//\1/
11219             q
11220           }
11221           /^X\(\/\).*/{
11222             s//\1/
11223             q
11224           }
11225           s/.*/./; q'`
11226       test -d "$as_dir" && break
11227     done
11228     test -z "$as_dirs" || eval "mkdir $as_dirs"
11229   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11230 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11231    { (exit 1); exit 1; }; }; }
11232   ac_builddir=.
11233
11234 case "$ac_dir" in
11235 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11236 *)
11237   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11238   # A ".." for each directory in $ac_dir_suffix.
11239   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11240   case $ac_top_builddir_sub in
11241   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11242   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11243   esac ;;
11244 esac
11245 ac_abs_top_builddir=$ac_pwd
11246 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11247 # for backward compatibility:
11248 ac_top_builddir=$ac_top_build_prefix
11249
11250 case $srcdir in
11251   .)  # We are building in place.
11252     ac_srcdir=.
11253     ac_top_srcdir=$ac_top_builddir_sub
11254     ac_abs_top_srcdir=$ac_pwd ;;
11255   [\\/]* | ?:[\\/]* )  # Absolute name.
11256     ac_srcdir=$srcdir$ac_dir_suffix;
11257     ac_top_srcdir=$srcdir
11258     ac_abs_top_srcdir=$srcdir ;;
11259   *) # Relative name.
11260     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11261     ac_top_srcdir=$ac_top_build_prefix$srcdir
11262     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11263 esac
11264 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11265
11266
11267   case $ac_mode in
11268   :F)
11269   #
11270   # CONFIG_FILE
11271   #
11272
11273   case $INSTALL in
11274   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11275   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11276   esac
11277 _ACEOF
11278
11279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11280 # If the template does not know about datarootdir, expand it.
11281 # FIXME: This hack should be removed a few years after 2.60.
11282 ac_datarootdir_hack=; ac_datarootdir_seen=
11283
11284 ac_sed_dataroot='
11285 /datarootdir/ {
11286   p
11287   q
11288 }
11289 /@datadir@/p
11290 /@docdir@/p
11291 /@infodir@/p
11292 /@localedir@/p
11293 /@mandir@/p
11294 '
11295 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11296 *datarootdir*) ac_datarootdir_seen=yes;;
11297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11298   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11299 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11300 _ACEOF
11301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11302   ac_datarootdir_hack='
11303   s&@datadir@&$datadir&g
11304   s&@docdir@&$docdir&g
11305   s&@infodir@&$infodir&g
11306   s&@localedir@&$localedir&g
11307   s&@mandir@&$mandir&g
11308     s&\\\${datarootdir}&$datarootdir&g' ;;
11309 esac
11310 _ACEOF
11311
11312 # Neutralize VPATH when `$srcdir' = `.'.
11313 # Shell code in configure.ac might set extrasub.
11314 # FIXME: do we really want to maintain this feature?
11315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11316 ac_sed_extra="$ac_vpsub
11317 $extrasub
11318 _ACEOF
11319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11320 :t
11321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11322 s|@configure_input@|$ac_sed_conf_input|;t t
11323 s&@top_builddir@&$ac_top_builddir_sub&;t t
11324 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11325 s&@srcdir@&$ac_srcdir&;t t
11326 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11327 s&@top_srcdir@&$ac_top_srcdir&;t t
11328 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11329 s&@builddir@&$ac_builddir&;t t
11330 s&@abs_builddir@&$ac_abs_builddir&;t t
11331 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11332 s&@INSTALL@&$ac_INSTALL&;t t
11333 $ac_datarootdir_hack
11334 "
11335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11336   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11338    { (exit 1); exit 1; }; }
11339
11340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11341   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11342   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11343   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11344 which seems to be undefined.  Please make sure it is defined." >&5
11345 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11346 which seems to be undefined.  Please make sure it is defined." >&2;}
11347
11348   rm -f "$tmp/stdin"
11349   case $ac_file in
11350   -) cat "$tmp/out" && rm -f "$tmp/out";;
11351   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11352   esac \
11353   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11354 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11355    { (exit 1); exit 1; }; }
11356  ;;
11357   :H)
11358   #
11359   # CONFIG_HEADER
11360   #
11361   if test x"$ac_file" != x-; then
11362     {
11363       $as_echo "/* $configure_input  */" \
11364       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11365     } >"$tmp/config.h" \
11366       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11367 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11368    { (exit 1); exit 1; }; }
11369     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11370       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11371 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11372     else
11373       rm -f "$ac_file"
11374       mv "$tmp/config.h" "$ac_file" \
11375         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11376 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11377    { (exit 1); exit 1; }; }
11378     fi
11379   else
11380     $as_echo "/* $configure_input  */" \
11381       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11382       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11383 $as_echo "$as_me: error: could not create -" >&2;}
11384    { (exit 1); exit 1; }; }
11385   fi
11386  ;;
11387
11388
11389   esac
11390
11391 done # for ac_tag
11392
11393
11394 { (exit 0); exit 0; }
11395 _ACEOF
11396 chmod +x $CONFIG_STATUS
11397 ac_clean_files=$ac_clean_files_save
11398
11399 test $ac_write_fail = 0 ||
11400   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11401 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11402    { (exit 1); exit 1; }; }
11403
11404
11405 # configure is writing to config.log, and then calls config.status.
11406 # config.status does its own redirection, appending to config.log.
11407 # Unfortunately, on DOS this fails, as config.log is still kept open
11408 # by configure, so config.status won't be able to write to it; its
11409 # output is simply discarded.  So we exec the FD to /dev/null,
11410 # effectively closing config.log, so it can be properly (re)opened and
11411 # appended to by config.status.  When coming back to configure, we
11412 # need to make the FD available again.
11413 if test "$no_create" != yes; then
11414   ac_cs_success=:
11415   ac_config_status_args=
11416   test "$silent" = yes &&
11417     ac_config_status_args="$ac_config_status_args --quiet"
11418   exec 5>/dev/null
11419   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11420   exec 5>>config.log
11421   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11422   # would make configure fail if this is the last instruction.
11423   $ac_cs_success || { (exit 1); exit 1; }
11424 fi
11425 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11426   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11427 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11428 fi
11429
11430
11431
11432 #
11433 # On development trees, create snapshots of config.status
11434 #
11435 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11436     if test "x${MINGW}" = "xyes"; then
11437         echo cp config.status config.status.win32
11438         cp config.status config.status.win32
11439     else
11440         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
11441             echo cp config.status config.status.linux
11442             cp config.status config.status.linux
11443         fi
11444         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
11445             echo cp config.status config.status.debug
11446             cp config.status config.status.debug
11447         fi
11448         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
11449             echo cp config.status config.status.optimize
11450             cp config.status config.status.optimize
11451         fi
11452     fi
11453 fi