Develop and Download Open Source Software

Browse CVS Repository

Contents of /mod-uploader/mod_uploader/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.133 - (show annotations) (download)
Sat Feb 7 16:07:15 2009 UTC (15 years, 2 months ago) by kimata
Branch: MAIN
CVS Tags: release-3_1_1_0902081100, HEAD
Changes since 1.132: +28 -33 lines
*** empty log message ***

1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for mod_uploader 3.1.1.
5 #
6 # Report bugs to <kimata@acapulco.dyndns.org>.
7 #
8 # Copyright (C) 2006-2009 Tetsuya Kimata. All Rights Reserved.
9 #
10 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 emulate sh
22 NULLCMD=:
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
30 esac
31
32 fi
33
34
35
36
37 # PATH needs CR
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
44
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
49 chmod +x conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 PATH_SEPARATOR=';'
52 else
53 PATH_SEPARATOR=:
54 fi
55 rm -f conf$$.sh
56 fi
57
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 as_unset=unset
61 else
62 as_unset=false
63 fi
64
65
66 # IFS
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
71 as_nl='
72 '
73 IFS=" "" $as_nl"
74
75 # Find who we are. Look in the path if we contain no directory separator.
76 case $0 in
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 for as_dir in $PATH
80 do
81 IFS=$as_save_IFS
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 done
85 IFS=$as_save_IFS
86
87 ;;
88 esac
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x; then
92 as_myself=$0
93 fi
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 { (exit 1); exit 1; }
97 fi
98
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 done
103 PS1='$ '
104 PS2='> '
105 PS4='+ '
106
107 # NLS nuisances.
108 for as_var in \
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 LC_TELEPHONE LC_TIME
112 do
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
115 else
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 fi
118 done
119
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 as_expr=expr
124 else
125 as_expr=false
126 fi
127
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 as_basename=basename
130 else
131 as_basename=false
132 fi
133
134
135 # Name of the executable.
136 as_me=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 echo X/"$0" |
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\/\)$/{
146 s//\1/
147 q
148 }
149 /^X\/\(\/\).*/{
150 s//\1/
151 q
152 }
153 s/.*/./; q'`
154
155 # CDPATH.
156 $as_unset CDPATH
157
158
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
161 as_have_required=yes
162 else
163 as_have_required=no
164 fi
165
166 if test $as_have_required = yes && (eval ":
167 (as_func_return () {
168 (exit \$1)
169 }
170 as_func_success () {
171 as_func_return 0
172 }
173 as_func_failure () {
174 as_func_return 1
175 }
176 as_func_ret_success () {
177 return 0
178 }
179 as_func_ret_failure () {
180 return 1
181 }
182
183 exitcode=0
184 if as_func_success; then
185 :
186 else
187 exitcode=1
188 echo as_func_success failed.
189 fi
190
191 if as_func_failure; then
192 exitcode=1
193 echo as_func_failure succeeded.
194 fi
195
196 if as_func_ret_success; then
197 :
198 else
199 exitcode=1
200 echo as_func_ret_success failed.
201 fi
202
203 if as_func_ret_failure; then
204 exitcode=1
205 echo as_func_ret_failure succeeded.
206 fi
207
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 :
210 else
211 exitcode=1
212 echo positional parameters were not saved.
213 fi
214
215 test \$exitcode = 0) || { (exit 1); exit 1; }
216
217 (
218 as_lineno_1=\$LINENO
219 as_lineno_2=\$LINENO
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev/null; then
223 :
224 else
225 as_candidate_shells=
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 do
229 IFS=$as_save_IFS
230 test -z "$as_dir" && as_dir=.
231 case $as_dir in
232 /*)
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 done;;
236 esac
237 done
238 IFS=$as_save_IFS
239
240
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 emulate sh
247 NULLCMD=:
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
251 setopt NO_GLOB_SUBST
252 else
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
255 esac
256
257 fi
258
259
260 :
261 _ASEOF
262 }; then
263 CONFIG_SHELL=$as_shell
264 as_have_required=yes
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 emulate sh
268 NULLCMD=:
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273 else
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
276 esac
277
278 fi
279
280
281 :
282 (as_func_return () {
283 (exit $1)
284 }
285 as_func_success () {
286 as_func_return 0
287 }
288 as_func_failure () {
289 as_func_return 1
290 }
291 as_func_ret_success () {
292 return 0
293 }
294 as_func_ret_failure () {
295 return 1
296 }
297
298 exitcode=0
299 if as_func_success; then
300 :
301 else
302 exitcode=1
303 echo as_func_success failed.
304 fi
305
306 if as_func_failure; then
307 exitcode=1
308 echo as_func_failure succeeded.
309 fi
310
311 if as_func_ret_success; then
312 :
313 else
314 exitcode=1
315 echo as_func_ret_success failed.
316 fi
317
318 if as_func_ret_failure; then
319 exitcode=1
320 echo as_func_ret_failure succeeded.
321 fi
322
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 :
325 else
326 exitcode=1
327 echo positional parameters were not saved.
328 fi
329
330 test $exitcode = 0) || { (exit 1); exit 1; }
331
332 (
333 as_lineno_1=$LINENO
334 as_lineno_2=$LINENO
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337
338 _ASEOF
339 }; then
340 break
341 fi
342
343 fi
344
345 done
346
347 if test "x$CONFIG_SHELL" != x; then
348 for as_var in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 done
351 export CONFIG_SHELL
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 fi
354
355
356 if test $as_have_required = no; then
357 echo This script requires a shell more modern than all the
358 echo shells that I found on your system. Please install a
359 echo modern shell, or manually run the script under such a
360 echo shell if you do have one.
361 { (exit 1); exit 1; }
362 fi
363
364
365 fi
366
367 fi
368
369
370
371 (eval "as_func_return () {
372 (exit \$1)
373 }
374 as_func_success () {
375 as_func_return 0
376 }
377 as_func_failure () {
378 as_func_return 1
379 }
380 as_func_ret_success () {
381 return 0
382 }
383 as_func_ret_failure () {
384 return 1
385 }
386
387 exitcode=0
388 if as_func_success; then
389 :
390 else
391 exitcode=1
392 echo as_func_success failed.
393 fi
394
395 if as_func_failure; then
396 exitcode=1
397 echo as_func_failure succeeded.
398 fi
399
400 if as_func_ret_success; then
401 :
402 else
403 exitcode=1
404 echo as_func_ret_success failed.
405 fi
406
407 if as_func_ret_failure; then
408 exitcode=1
409 echo as_func_ret_failure succeeded.
410 fi
411
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 :
414 else
415 exitcode=1
416 echo positional parameters were not saved.
417 fi
418
419 test \$exitcode = 0") || {
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system,
422 echo including any error possibly output before this
423 echo message
424 }
425
426
427
428 as_lineno_1=$LINENO
429 as_lineno_2=$LINENO
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
439 # case at line end.
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
443 sed -n '
444 p
445 /[$]LINENO/=
446 ' <$as_myself |
447 sed '
448 s/[$]LINENO.*/&-/
449 t lineno
450 b
451 :lineno
452 N
453 :loop
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 t loop
456 s/-\n.*//
457 ' >$as_me.lineno &&
458 chmod +x "$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
461
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
468 }
469
470
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 as_dirname=dirname
473 else
474 as_dirname=false
475 fi
476
477 ECHO_C= ECHO_N= ECHO_T=
478 case `echo -n x` in
479 -n*)
480 case `echo 'x\c'` in
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
482 *) ECHO_C='\c';;
483 esac;;
484 *)
485 ECHO_N='-n';;
486 esac
487
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 as_expr=expr
491 else
492 as_expr=false
493 fi
494
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
498 else
499 rm -f conf$$.dir
500 mkdir conf$$.dir
501 fi
502 echo >conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s='ln -s'
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 as_ln_s='cp -p'
511 elif ln conf$$.file conf$$ 2>/dev/null; then
512 as_ln_s=ln
513 else
514 as_ln_s='cp -p'
515 fi
516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 rmdir conf$$.dir 2>/dev/null
518
519 if mkdir -p . 2>/dev/null; then
520 as_mkdir_p=:
521 else
522 test -d ./-p && rmdir ./-p
523 as_mkdir_p=false
524 fi
525
526 if test -x / >/dev/null 2>&1; then
527 as_test_x='test -x'
528 else
529 if ls -dL / >/dev/null 2>&1; then
530 as_ls_L_option=L
531 else
532 as_ls_L_option=
533 fi
534 as_test_x='
535 eval sh -c '\''
536 if test -d "$1"; then
537 test -d "$1/.";
538 else
539 case $1 in
540 -*)set "./$1";;
541 esac;
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
544 '\'' sh
545 '
546 fi
547 as_executable_p=$as_test_x
548
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556
557 exec 7<&0 </dev/null 6>&1
558
559 # Name of the host.
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
564 #
565 # Initializations.
566 #
567 ac_default_prefix=/usr/local
568 ac_clean_files=
569 ac_config_libobj_dir=.
570 LIBOBJS=
571 cross_compiling=no
572 subdirs=
573 MFLAGS=
574 MAKEFLAGS=
575 SHELL=${CONFIG_SHELL-/bin/sh}
576
577 # Identity of this package.
578 PACKAGE_NAME='mod_uploader'
579 PACKAGE_TARNAME='mod_uploader'
580 PACKAGE_VERSION='3.1.1'
581 PACKAGE_STRING='mod_uploader 3.1.1'
582 PACKAGE_BUGREPORT='kimata@acapulco.dyndns.org'
583
584 ac_unique_file="src/mod_uploader.cpp"
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
620
621 ac_subst_vars='SHELL
622 PATH_SEPARATOR
623 PACKAGE_NAME
624 PACKAGE_TARNAME
625 PACKAGE_VERSION
626 PACKAGE_STRING
627 PACKAGE_BUGREPORT
628 exec_prefix
629 prefix
630 program_transform_name
631 bindir
632 sbindir
633 libexecdir
634 datarootdir
635 datadir
636 sysconfdir
637 sharedstatedir
638 localstatedir
639 includedir
640 oldincludedir
641 docdir
642 infodir
643 htmldir
644 dvidir
645 pdfdir
646 psdir
647 libdir
648 localedir
649 mandir
650 DEFS
651 ECHO_C
652 ECHO_N
653 ECHO_T
654 LIBS
655 build_alias
656 host_alias
657 target_alias
658 PACKAGE_CODE
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
667 target
668 target_cpu
669 target_vendor
670 target_os
671 CC
672 CFLAGS
673 LDFLAGS
674 CPPFLAGS
675 ac_ct_CC
676 EXEEXT
677 OBJEXT
678 CPP
679 CXX
680 CXXFLAGS
681 ac_ct_CXX
682 GLIBTOOL
683 LIBTOOL
684 CXXCPP
685 GREP
686 EGREP
687 MARCH_OPT
688 LIB_ICONV
689 ICONV_2ND_ARG_TYPE
690 APXS2
691 APXS1
692 AP_BUILD_DIR
693 APACHE2CTL
694 APACHE1CTL
695 APRCONF
696 APXS
697 APACHE_BIN
698 APACHE_VERSION
699 ACCESS_MODULE_NAME
700 SED
701 RUBY
702 RST2HTML
703 DOXYGEN
704 DOT
705 PS2PDF
706 SVN
707 FIND
708 CAT
709 TAR
710 TEE
711 NKF
712 WC
713 IPCS
714 IPCRM
715 AWK
716 DIFF
717 ENV
718 XARGS
719 GDB
720 VALGRIND
721 LSB_RELEASE
722 PWD
723 USER
724 HOSTNAME
725 LIBEXECDIR
726 EMPTY_COMMENT
727 EMPTY_PASSWORD
728 MCONF
729 MAKE_THUMBNAIL
730 WRITER_NAME
731 WRITER_CLASS
732 WRITER_DECL
733 ORIG_WRITER_NAME
734 ORIG_WRITER_CLASS
735 DEBUG
736 LIBOBJS
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP
748 CXX
749 CXXFLAGS
750 CCC
751 CXXCPP'
752
753
754 # Initialize some variables set by options.
755 ac_init_help=
756 ac_init_version=false
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
773
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
799
800 ac_prev=
801 ac_dashdash=
802 for ac_option
803 do
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
809 fi
810
811 case $ac_option in
812 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *) ac_optarg=yes ;;
814 esac
815
816 # Accept the important Cygnus configure options, so we can diagnose typos.
817
818 case $ac_dashdash$ac_option in
819 --)
820 ac_dashdash=yes ;;
821
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 ac_prev=bindir ;;
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 bindir=$ac_optarg ;;
826
827 -build | --build | --buil | --bui | --bu)
828 ac_prev=build_alias ;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias=$ac_optarg ;;
831
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file=$ac_optarg ;;
838
839 --config-cache | -C)
840 cache_file=config.cache ;;
841
842 -datadir | --datadir | --datadi | --datad)
843 ac_prev=datadir ;;
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir=$ac_optarg ;;
846
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
853
854 -disable-* | --disable-*)
855 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859 { (exit 1); exit 1; }; }
860 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861 eval enable_$ac_feature=no ;;
862
863 -docdir | --docdir | --docdi | --doc | --do)
864 ac_prev=docdir ;;
865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866 docdir=$ac_optarg ;;
867
868 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869 ac_prev=dvidir ;;
870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871 dvidir=$ac_optarg ;;
872
873 -enable-* | --enable-*)
874 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
877 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
878 { (exit 1); exit 1; }; }
879 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
880 eval enable_$ac_feature=\$ac_optarg ;;
881
882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884 | --exec | --exe | --ex)
885 ac_prev=exec_prefix ;;
886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888 | --exec=* | --exe=* | --ex=*)
889 exec_prefix=$ac_optarg ;;
890
891 -gas | --gas | --ga | --g)
892 # Obsolete; use --with-gas.
893 with_gas=yes ;;
894
895 -help | --help | --hel | --he | -h)
896 ac_init_help=long ;;
897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898 ac_init_help=recursive ;;
899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900 ac_init_help=short ;;
901
902 -host | --host | --hos | --ho)
903 ac_prev=host_alias ;;
904 -host=* | --host=* | --hos=* | --ho=*)
905 host_alias=$ac_optarg ;;
906
907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908 ac_prev=htmldir ;;
909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910 | --ht=*)
911 htmldir=$ac_optarg ;;
912
913 -includedir | --includedir | --includedi | --included | --include \
914 | --includ | --inclu | --incl | --inc)
915 ac_prev=includedir ;;
916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917 | --includ=* | --inclu=* | --incl=* | --inc=*)
918 includedir=$ac_optarg ;;
919
920 -infodir | --infodir | --infodi | --infod | --info | --inf)
921 ac_prev=infodir ;;
922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
923 infodir=$ac_optarg ;;
924
925 -libdir | --libdir | --libdi | --libd)
926 ac_prev=libdir ;;
927 -libdir=* | --libdir=* | --libdi=* | --libd=*)
928 libdir=$ac_optarg ;;
929
930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931 | --libexe | --libex | --libe)
932 ac_prev=libexecdir ;;
933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934 | --libexe=* | --libex=* | --libe=*)
935 libexecdir=$ac_optarg ;;
936
937 -localedir | --localedir | --localedi | --localed | --locale)
938 ac_prev=localedir ;;
939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940 localedir=$ac_optarg ;;
941
942 -localstatedir | --localstatedir | --localstatedi | --localstated \
943 | --localstate | --localstat | --localsta | --localst | --locals)
944 ac_prev=localstatedir ;;
945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
947 localstatedir=$ac_optarg ;;
948
949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950 ac_prev=mandir ;;
951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 mandir=$ac_optarg ;;
953
954 -nfp | --nfp | --nf)
955 # Obsolete; use --without-fp.
956 with_fp=no ;;
957
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c | -n)
960 no_create=yes ;;
961
962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
964 no_recursion=yes ;;
965
966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968 | --oldin | --oldi | --old | --ol | --o)
969 ac_prev=oldincludedir ;;
970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
973 oldincludedir=$ac_optarg ;;
974
975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976 ac_prev=prefix ;;
977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
978 prefix=$ac_optarg ;;
979
980 -program-prefix | --program-prefix | --program-prefi | --program-pref \
981 | --program-pre | --program-pr | --program-p)
982 ac_prev=program_prefix ;;
983 -program-prefix=* | --program-prefix=* | --program-prefi=* \
984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
985 program_prefix=$ac_optarg ;;
986
987 -program-suffix | --program-suffix | --program-suffi | --program-suff \
988 | --program-suf | --program-su | --program-s)
989 ac_prev=program_suffix ;;
990 -program-suffix=* | --program-suffix=* | --program-suffi=* \
991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
992 program_suffix=$ac_optarg ;;
993
994 -program-transform-name | --program-transform-name \
995 | --program-transform-nam | --program-transform-na \
996 | --program-transform-n | --program-transform- \
997 | --program-transform | --program-transfor \
998 | --program-transfo | --program-transf \
999 | --program-trans | --program-tran \
1000 | --progr-tra | --program-tr | --program-t)
1001 ac_prev=program_transform_name ;;
1002 -program-transform-name=* | --program-transform-name=* \
1003 | --program-transform-nam=* | --program-transform-na=* \
1004 | --program-transform-n=* | --program-transform-=* \
1005 | --program-transform=* | --program-transfor=* \
1006 | --program-transfo=* | --program-transf=* \
1007 | --program-trans=* | --program-tran=* \
1008 | --progr-tra=* | --program-tr=* | --program-t=*)
1009 program_transform_name=$ac_optarg ;;
1010
1011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012 ac_prev=pdfdir ;;
1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014 pdfdir=$ac_optarg ;;
1015
1016 -psdir | --psdir | --psdi | --psd | --ps)
1017 ac_prev=psdir ;;
1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1019 psdir=$ac_optarg ;;
1020
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 silent=yes ;;
1024
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
1029 sbindir=$ac_optarg ;;
1030
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
1040 sharedstatedir=$ac_optarg ;;
1041
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
1045 site=$ac_optarg ;;
1046
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050 srcdir=$ac_optarg ;;
1051
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057 sysconfdir=$ac_optarg ;;
1058
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
1060 ac_prev=target_alias ;;
1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062 target_alias=$ac_optarg ;;
1063
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1066
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
1069
1070 -with-* | --with-*)
1071 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=\$ac_optarg ;;
1078
1079 -without-* | --without-*)
1080 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid package name: $ac_package" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1086 eval with_$ac_package=no ;;
1087
1088 --x)
1089 # Obsolete; use --with-x.
1090 with_x=yes ;;
1091
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097 x_includes=$ac_optarg ;;
1098
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104 x_libraries=$ac_optarg ;;
1105
1106 -*) { echo "$as_me: error: unrecognized option: $ac_option
1107 Try \`$0 --help' for more information." >&2
1108 { (exit 1); exit 1; }; }
1109 ;;
1110
1111 *=*)
1112 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1116 { (exit 1); exit 1; }; }
1117 eval $ac_envvar=\$ac_optarg
1118 export $ac_envvar ;;
1119
1120 *)
1121 # FIXME: should be removed in autoconf 3.0.
1122 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 ;;
1127
1128 esac
1129 done
1130
1131 if test -n "$ac_prev"; then
1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133 { echo "$as_me: error: missing argument to $ac_option" >&2
1134 { (exit 1); exit 1; }; }
1135 fi
1136
1137 # Be sure to have absolute directory names.
1138 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1139 datadir sysconfdir sharedstatedir localstatedir includedir \
1140 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1141 libdir localedir mandir
1142 do
1143 eval ac_val=\$$ac_var
1144 case $ac_val in
1145 [\\/$]* | ?:[\\/]* ) continue;;
1146 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1147 esac
1148 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1149 { (exit 1); exit 1; }; }
1150 done
1151
1152 # There might be people who depend on the old broken behavior: `$host'
1153 # used to hold the argument of --host etc.
1154 # FIXME: To remove some day.
1155 build=$build_alias
1156 host=$host_alias
1157 target=$target_alias
1158
1159 # FIXME: To remove some day.
1160 if test "x$host_alias" != x; then
1161 if test "x$build_alias" = x; then
1162 cross_compiling=maybe
1163 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1164 If a cross compiler is detected then cross compile mode will be used." >&2
1165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1167 fi
1168 fi
1169
1170 ac_tool_prefix=
1171 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172
1173 test "$silent" = yes && exec 6>/dev/null
1174
1175
1176 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177 ac_ls_di=`ls -di .` &&
1178 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1179 { echo "$as_me: error: Working directory cannot be determined" >&2
1180 { (exit 1); exit 1; }; }
1181 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1182 { echo "$as_me: error: pwd does not report name of working directory" >&2
1183 { (exit 1); exit 1; }; }
1184
1185
1186 # Find the source files, if location was not specified.
1187 if test -z "$srcdir"; then
1188 ac_srcdir_defaulted=yes
1189 # Try the directory containing this script, then the parent directory.
1190 ac_confdir=`$as_dirname -- "$0" ||
1191 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1192 X"$0" : 'X\(//\)[^/]' \| \
1193 X"$0" : 'X\(//\)$' \| \
1194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1195 echo X"$0" |
1196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)[^/].*/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\).*/{
1209 s//\1/
1210 q
1211 }
1212 s/.*/./; q'`
1213 srcdir=$ac_confdir
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1215 srcdir=..
1216 fi
1217 else
1218 ac_srcdir_defaulted=no
1219 fi
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1221 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1222 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1223 { (exit 1); exit 1; }; }
1224 fi
1225 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226 ac_abs_confdir=`(
1227 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1228 { (exit 1); exit 1; }; }
1229 pwd)`
1230 # When building in place, set srcdir=.
1231 if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 srcdir=.
1233 fi
1234 # Remove unnecessary trailing slashes from srcdir.
1235 # Double slashes in file names in object file debugging info
1236 # mess up M-x gdb in Emacs.
1237 case $srcdir in
1238 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239 esac
1240 for ac_var in $ac_precious_vars; do
1241 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_env_${ac_var}_value=\$${ac_var}
1243 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245 done
1246
1247 #
1248 # Report the --help message.
1249 #
1250 if test "$ac_init_help" = "long"; then
1251 # Omit some internal or obsolete options to make the list less imposing.
1252 # This message is too long to be a string in the A/UX 3.1 sh.
1253 cat <<_ACEOF
1254 \`configure' configures mod_uploader 3.1.1 to adapt to many kinds of systems.
1255
1256 Usage: $0 [OPTION]... [VAR=VALUE]...
1257
1258 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1259 VAR=VALUE. See below for descriptions of some of the useful variables.
1260
1261 Defaults for the options are specified in brackets.
1262
1263 Configuration:
1264 -h, --help display this help and exit
1265 --help=short display options specific to this package
1266 --help=recursive display the short help of all the included packages
1267 -V, --version display version information and exit
1268 -q, --quiet, --silent do not print \`checking...' messages
1269 --cache-file=FILE cache test results in FILE [disabled]
1270 -C, --config-cache alias for \`--cache-file=config.cache'
1271 -n, --no-create do not create output files
1272 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273
1274 Installation directories:
1275 --prefix=PREFIX install architecture-independent files in PREFIX
1276 [$ac_default_prefix]
1277 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1278 [PREFIX]
1279
1280 By default, \`make install' will install all the files in
1281 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1282 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1283 for instance \`--prefix=\$HOME'.
1284
1285 For better control, use the options below.
1286
1287 Fine tuning of the installation directories:
1288 --bindir=DIR user executables [EPREFIX/bin]
1289 --sbindir=DIR system admin executables [EPREFIX/sbin]
1290 --libexecdir=DIR program executables [EPREFIX/libexec]
1291 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1292 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1293 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1294 --libdir=DIR object code libraries [EPREFIX/lib]
1295 --includedir=DIR C header files [PREFIX/include]
1296 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1297 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1298 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1299 --infodir=DIR info documentation [DATAROOTDIR/info]
1300 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1301 --mandir=DIR man documentation [DATAROOTDIR/man]
1302 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_uploader]
1303 --htmldir=DIR html documentation [DOCDIR]
1304 --dvidir=DIR dvi documentation [DOCDIR]
1305 --pdfdir=DIR pdf documentation [DOCDIR]
1306 --psdir=DIR ps documentation [DOCDIR]
1307 _ACEOF
1308
1309 cat <<\_ACEOF
1310
1311 System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 --target=TARGET configure for building compilers for TARGET [HOST]
1315 _ACEOF
1316 fi
1317
1318 if test -n "$ac_init_help"; then
1319 case $ac_init_help in
1320 short | recursive ) echo "Configuration of mod_uploader 3.1.1:";;
1321 esac
1322 cat <<\_ACEOF
1323
1324 Optional Features:
1325 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1326 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1327 --enable-atomic-builtins Use GCC Atomic Builtins
1328 --enable-apache13 Use Apache 1.3.x
1329 --enable-empty-comment Accept empty comment
1330 --enable-empty-password Accept empty password
1331 --enable-remove-unpopular remove files based on popularity
1332 --enable-thumbnail trun making thumbnail on
1333 --enable-numname use numbered file name
1334 --enable-fastest omit dynamic template checking
1335 --enable-gzip use Content-Encoding: gzip
1336 --enable-debug trun on debugging default no
1337
1338 Optional Packages:
1339 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1340 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1341 --with-libtool=LIBTOOL Set path to libtool program
1342 --with-march=CPU Set CPU type (ie: pentium4, athlon-xp, ...)
1343 --with-apxs=APXS Set path to apxs program
1344 --with-apctl=APCTL Set path to apachectl program
1345 --with-aprconf=APRCONF Set path to apr-config program
1346 --with-mconf=MCONF Set path to Magick++-config program
1347 --with-writer=TYPE write method (mmap or basic)
1348
1349 Some influential environment variables:
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1353 nonstandard directory <lib dir>
1354 LIBS libraries to pass to the linker, e.g. -l<library>
1355 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1356 you have headers in a nonstandard directory <include dir>
1357 CPP C preprocessor
1358 CXX C++ compiler command
1359 CXXFLAGS C++ compiler flags
1360 CXXCPP C++ preprocessor
1361
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1364
1365 Report bugs to <kimata@acapulco.dyndns.org>.
1366 _ACEOF
1367 ac_status=$?
1368 fi
1369
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" || continue
1374 ac_builddir=.
1375
1376 case "$ac_dir" in
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *)
1379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 esac ;;
1386 esac
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1391
1392 case $srcdir in
1393 .) # We are building in place.
1394 ac_srcdir=.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1401 *) # Relative name.
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 esac
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1421 fi
1422
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425 cat <<\_ACEOF
1426 mod_uploader configure 3.1.1
1427 generated by GNU Autoconf 2.61
1428
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1433
1434 Copyright (C) 2006-2009 Tetsuya Kimata. All Rights Reserved.
1435 _ACEOF
1436 exit
1437 fi
1438 cat >config.log <<_ACEOF
1439 This file contains any messages produced by compilers while
1440 running configure, to aid debugging if configure makes a mistake.
1441
1442 It was created by mod_uploader $as_me 3.1.1, which was
1443 generated by GNU Autoconf 2.61. Invocation command line was
1444
1445 $ $0 $@
1446
1447 _ACEOF
1448 exec 5>>config.log
1449 {
1450 cat <<_ASUNAME
1451 ## --------- ##
1452 ## Platform. ##
1453 ## --------- ##
1454
1455 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1456 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1457 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1458 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1459 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1460
1461 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1462 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1463
1464 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1465 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1466 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1467 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1468 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1469 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1470 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1471
1472 _ASUNAME
1473
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 echo "PATH: $as_dir"
1480 done
1481 IFS=$as_save_IFS
1482
1483 } >&5
1484
1485 cat >&5 <<_ACEOF
1486
1487
1488 ## ----------- ##
1489 ## Core tests. ##
1490 ## ----------- ##
1491
1492 _ACEOF
1493
1494
1495 # Keep a trace of the command line.
1496 # Strip out --no-create and --no-recursion so they do not pile up.
1497 # Strip out --silent because we don't want to record it for future runs.
1498 # Also quote any args containing shell meta-characters.
1499 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_configure_args=
1501 ac_configure_args0=
1502 ac_configure_args1=
1503 ac_must_keep_next=false
1504 for ac_pass in 1 2
1505 do
1506 for ac_arg
1507 do
1508 case $ac_arg in
1509 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1512 continue ;;
1513 *\'*)
1514 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1515 esac
1516 case $ac_pass in
1517 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1518 2)
1519 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1520 if test $ac_must_keep_next = true; then
1521 ac_must_keep_next=false # Got value, back to normal.
1522 else
1523 case $ac_arg in
1524 *=* | --config-cache | -C | -disable-* | --disable-* \
1525 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1526 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1527 | -with-* | --with-* | -without-* | --without-* | --x)
1528 case "$ac_configure_args0 " in
1529 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1530 esac
1531 ;;
1532 -* ) ac_must_keep_next=true ;;
1533 esac
1534 fi
1535 ac_configure_args="$ac_configure_args '$ac_arg'"
1536 ;;
1537 esac
1538 done
1539 done
1540 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1541 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1542
1543 # When interrupted or exit'd, cleanup temporary files, and complete
1544 # config.log. We remove comments because anyway the quotes in there
1545 # would cause problems or look ugly.
1546 # WARNING: Use '\'' to represent an apostrophe within the trap.
1547 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1548 trap 'exit_status=$?
1549 # Save into config.log some information that might help in debugging.
1550 {
1551 echo
1552
1553 cat <<\_ASBOX
1554 ## ---------------- ##
1555 ## Cache variables. ##
1556 ## ---------------- ##
1557 _ASBOX
1558 echo
1559 # The following way of writing the cache mishandles newlines in values,
1560 (
1561 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1562 eval ac_val=\$$ac_var
1563 case $ac_val in #(
1564 *${as_nl}*)
1565 case $ac_var in #(
1566 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1567 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1568 esac
1569 case $ac_var in #(
1570 _ | IFS | as_nl) ;; #(
1571 *) $as_unset $ac_var ;;
1572 esac ;;
1573 esac
1574 done
1575 (set) 2>&1 |
1576 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1577 *${as_nl}ac_space=\ *)
1578 sed -n \
1579 "s/'\''/'\''\\\\'\'''\''/g;
1580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1581 ;; #(
1582 *)
1583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1584 ;;
1585 esac |
1586 sort
1587 )
1588 echo
1589
1590 cat <<\_ASBOX
1591 ## ----------------- ##
1592 ## Output variables. ##
1593 ## ----------------- ##
1594 _ASBOX
1595 echo
1596 for ac_var in $ac_subst_vars
1597 do
1598 eval ac_val=\$$ac_var
1599 case $ac_val in
1600 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601 esac
1602 echo "$ac_var='\''$ac_val'\''"
1603 done | sort
1604 echo
1605
1606 if test -n "$ac_subst_files"; then
1607 cat <<\_ASBOX
1608 ## ------------------- ##
1609 ## File substitutions. ##
1610 ## ------------------- ##
1611 _ASBOX
1612 echo
1613 for ac_var in $ac_subst_files
1614 do
1615 eval ac_val=\$$ac_var
1616 case $ac_val in
1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 esac
1619 echo "$ac_var='\''$ac_val'\''"
1620 done | sort
1621 echo
1622 fi
1623
1624 if test -s confdefs.h; then
1625 cat <<\_ASBOX
1626 ## ----------- ##
1627 ## confdefs.h. ##
1628 ## ----------- ##
1629 _ASBOX
1630 echo
1631 cat confdefs.h
1632 echo
1633 fi
1634 test "$ac_signal" != 0 &&
1635 echo "$as_me: caught signal $ac_signal"
1636 echo "$as_me: exit $exit_status"
1637 } >&5
1638 rm -f core *.core core.conftest.* &&
1639 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1640 exit $exit_status
1641 ' 0
1642 for ac_signal in 1 2 13 15; do
1643 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 done
1645 ac_signal=0
1646
1647 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1648 rm -f -r conftest* confdefs.h
1649
1650 # Predefined preprocessor variables.
1651
1652 cat >>confdefs.h <<_ACEOF
1653 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 _ACEOF
1655
1656
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 _ACEOF
1660
1661
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 _ACEOF
1665
1666
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 _ACEOF
1670
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 _ACEOF
1675
1676
1677 # Let the site file select an alternate cache file if it wants to.
1678 # Prefer explicitly selected file to automatically selected ones.
1679 if test -n "$CONFIG_SITE"; then
1680 set x "$CONFIG_SITE"
1681 elif test "x$prefix" != xNONE; then
1682 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1683 else
1684 set x "$ac_default_prefix/share/config.site" \
1685 "$ac_default_prefix/etc/config.site"
1686 fi
1687 shift
1688 for ac_site_file
1689 do
1690 if test -r "$ac_site_file"; then
1691 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1692 echo "$as_me: loading site script $ac_site_file" >&6;}
1693 sed 's/^/| /' "$ac_site_file" >&5
1694 . "$ac_site_file"
1695 fi
1696 done
1697
1698 if test -r "$cache_file"; then
1699 # Some versions of bash will fail to source /dev/null (special
1700 # files actually), so we avoid doing that.
1701 if test -f "$cache_file"; then
1702 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1703 echo "$as_me: loading cache $cache_file" >&6;}
1704 case $cache_file in
1705 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1706 *) . "./$cache_file";;
1707 esac
1708 fi
1709 else
1710 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1711 echo "$as_me: creating cache $cache_file" >&6;}
1712 >$cache_file
1713 fi
1714
1715 # Check that the precious variables saved in the cache have kept the same
1716 # value.
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1733 *)
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1738 echo "$as_me: former value: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1740 echo "$as_me: current value: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1754 fi
1755 done
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1762 fi
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788 ac_ext=c
1789 ac_cpp='$CPP $CPPFLAGS'
1790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1793
1794
1795
1796
1797 ac_aux_dir=
1798 for ac_dir in build "$srcdir"/build; do
1799 if test -f "$ac_dir/install-sh"; then
1800 ac_aux_dir=$ac_dir
1801 ac_install_sh="$ac_aux_dir/install-sh -c"
1802 break
1803 elif test -f "$ac_dir/install.sh"; then
1804 ac_aux_dir=$ac_dir
1805 ac_install_sh="$ac_aux_dir/install.sh -c"
1806 break
1807 elif test -f "$ac_dir/shtool"; then
1808 ac_aux_dir=$ac_dir
1809 ac_install_sh="$ac_aux_dir/shtool install -c"
1810 break
1811 fi
1812 done
1813 if test -z "$ac_aux_dir"; then
1814 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
1815 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
1816 { (exit 1); exit 1; }; }
1817 fi
1818
1819 # These three variables are undocumented and unsupported,
1820 # and are intended to be withdrawn in a future Autoconf release.
1821 # They can cause serious problems if a builder's source tree is in a directory
1822 # whose full name contains unusual characters.
1823 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1824 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1825 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1826
1827
1828
1829 PACKAGE_CODE=`echo $PACKAGE_NAME-$PACKAGE_VERSION | md5sum | cut -b -12 | tr 'a-f' 'A-F'`
1830
1831
1832 ###############################################################################
1833 # ������������
1834 # Make sure we can run config.sub.
1835 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1836 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1837 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1838 { (exit 1); exit 1; }; }
1839
1840 { echo "$as_me:$LINENO: checking build system type" >&5
1841 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1842 if test "${ac_cv_build+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 ac_build_alias=$build_alias
1846 test "x$ac_build_alias" = x &&
1847 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1848 test "x$ac_build_alias" = x &&
1849 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1850 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1851 { (exit 1); exit 1; }; }
1852 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1853 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1854 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1855 { (exit 1); exit 1; }; }
1856
1857 fi
1858 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1859 echo "${ECHO_T}$ac_cv_build" >&6; }
1860 case $ac_cv_build in
1861 *-*-*) ;;
1862 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1863 echo "$as_me: error: invalid value of canonical build" >&2;}
1864 { (exit 1); exit 1; }; };;
1865 esac
1866 build=$ac_cv_build
1867 ac_save_IFS=$IFS; IFS='-'
1868 set x $ac_cv_build
1869 shift
1870 build_cpu=$1
1871 build_vendor=$2
1872 shift; shift
1873 # Remember, the first character of IFS is used to create $*,
1874 # except with old shells:
1875 build_os=$*
1876 IFS=$ac_save_IFS
1877 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1878
1879
1880 { echo "$as_me:$LINENO: checking host system type" >&5
1881 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1882 if test "${ac_cv_host+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test "x$host_alias" = x; then
1886 ac_cv_host=$ac_cv_build
1887 else
1888 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1889 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1890 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1891 { (exit 1); exit 1; }; }
1892 fi
1893
1894 fi
1895 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1896 echo "${ECHO_T}$ac_cv_host" >&6; }
1897 case $ac_cv_host in
1898 *-*-*) ;;
1899 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1900 echo "$as_me: error: invalid value of canonical host" >&2;}
1901 { (exit 1); exit 1; }; };;
1902 esac
1903 host=$ac_cv_host
1904 ac_save_IFS=$IFS; IFS='-'
1905 set x $ac_cv_host
1906 shift
1907 host_cpu=$1
1908 host_vendor=$2
1909 shift; shift
1910 # Remember, the first character of IFS is used to create $*,
1911 # except with old shells:
1912 host_os=$*
1913 IFS=$ac_save_IFS
1914 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1915
1916
1917 { echo "$as_me:$LINENO: checking target system type" >&5
1918 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1919 if test "${ac_cv_target+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 if test "x$target_alias" = x; then
1923 ac_cv_target=$ac_cv_host
1924 else
1925 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1926 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1927 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1928 { (exit 1); exit 1; }; }
1929 fi
1930
1931 fi
1932 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1933 echo "${ECHO_T}$ac_cv_target" >&6; }
1934 case $ac_cv_target in
1935 *-*-*) ;;
1936 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1937 echo "$as_me: error: invalid value of canonical target" >&2;}
1938 { (exit 1); exit 1; }; };;
1939 esac
1940 target=$ac_cv_target
1941 ac_save_IFS=$IFS; IFS='-'
1942 set x $ac_cv_target
1943 shift
1944 target_cpu=$1
1945 target_vendor=$2
1946 shift; shift
1947 # Remember, the first character of IFS is used to create $*,
1948 # except with old shells:
1949 target_os=$*
1950 IFS=$ac_save_IFS
1951 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1952
1953
1954 # The aliases save the names the user supplied, while $host etc.
1955 # will get canonicalized.
1956 test -n "$target_alias" &&
1957 test "$program_prefix$program_suffix$program_transform_name" = \
1958 NONENONEs,x,x, &&
1959 program_prefix=${target_alias}-
1960
1961 ###############################################################################
1962 # ����������������
1963
1964 ac_config_headers="$ac_config_headers include/mod_uploader_config.h"
1965
1966
1967 ###############################################################################
1968 # ����������
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1976 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1992 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1995 fi
1996 done
1997 done
1998 IFS=$as_save_IFS
1999
2000 fi
2001 fi
2002 CC=$ac_cv_prog_CC
2003 if test -n "$CC"; then
2004 { echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6; }
2006 else
2007 { echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6; }
2009 fi
2010
2011
2012 fi
2013 if test -z "$ac_cv_prog_CC"; then
2014 ac_ct_CC=$CC
2015 # Extract the first word of "gcc", so it can be a program name with args.
2016 set dummy gcc; ac_word=$2
2017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 if test -n "$ac_ct_CC"; then
2023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 else
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2032 ac_cv_prog_ac_ct_CC="gcc"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 break 2
2035 fi
2036 done
2037 done
2038 IFS=$as_save_IFS
2039
2040 fi
2041 fi
2042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2043 if test -n "$ac_ct_CC"; then
2044 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2045 echo "${ECHO_T}$ac_ct_CC" >&6; }
2046 else
2047 { echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6; }
2049 fi
2050
2051 if test "x$ac_ct_CC" = x; then
2052 CC=""
2053 else
2054 case $cross_compiling:$ac_tool_warned in
2055 yes:)
2056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057 whose name does not start with the host triplet. If you think this
2058 configuration is useful to you, please write to autoconf@gnu.org." >&5
2059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet. If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2062 ac_tool_warned=yes ;;
2063 esac
2064 CC=$ac_ct_CC
2065 fi
2066 else
2067 CC="$ac_cv_prog_CC"
2068 fi
2069
2070 if test -z "$CC"; then
2071 if test -n "$ac_tool_prefix"; then
2072 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2073 set dummy ${ac_tool_prefix}cc; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$CC"; then
2080 ac_cv_prog_CC="$CC" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_prog_CC="${ac_tool_prefix}cc"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2092 fi
2093 done
2094 done
2095 IFS=$as_save_IFS
2096
2097 fi
2098 fi
2099 CC=$ac_cv_prog_CC
2100 if test -n "$CC"; then
2101 { echo "$as_me:$LINENO: result: $CC" >&5
2102 echo "${ECHO_T}$CC" >&6; }
2103 else
2104 { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2106 fi
2107
2108
2109 fi
2110 fi
2111 if test -z "$CC"; then
2112 # Extract the first word of "cc", so it can be a program name with args.
2113 set dummy cc; ac_word=$2
2114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2116 if test "${ac_cv_prog_CC+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119 if test -n "$CC"; then
2120 ac_cv_prog_CC="$CC" # Let the user override the test.
2121 else
2122 ac_prog_rejected=no
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2125 do
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2130 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2131 ac_prog_rejected=yes
2132 continue
2133 fi
2134 ac_cv_prog_CC="cc"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2137 fi
2138 done
2139 done
2140 IFS=$as_save_IFS
2141
2142 if test $ac_prog_rejected = yes; then
2143 # We found a bogon in the path, so make sure we never use it.
2144 set dummy $ac_cv_prog_CC
2145 shift
2146 if test $# != 0; then
2147 # We chose a different compiler from the bogus one.
2148 # However, it has the same basename, so the bogon will be chosen
2149 # first if we set CC to just the basename; use the full file name.
2150 shift
2151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2152 fi
2153 fi
2154 fi
2155 fi
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158 { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2160 else
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2163 fi
2164
2165
2166 fi
2167 if test -z "$CC"; then
2168 if test -n "$ac_tool_prefix"; then
2169 for ac_prog in cl.exe
2170 do
2171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2191 fi
2192 done
2193 done
2194 IFS=$as_save_IFS
2195
2196 fi
2197 fi
2198 CC=$ac_cv_prog_CC
2199 if test -n "$CC"; then
2200 { echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6; }
2202 else
2203 { echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6; }
2205 fi
2206
2207
2208 test -n "$CC" && break
2209 done
2210 fi
2211 if test -z "$CC"; then
2212 ac_ct_CC=$CC
2213 for ac_prog in cl.exe
2214 do
2215 # Extract the first word of "$ac_prog", so it can be a program name with args.
2216 set dummy $ac_prog; ac_word=$2
2217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 if test -n "$ac_ct_CC"; then
2223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2232 ac_cv_prog_ac_ct_CC="$ac_prog"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2235 fi
2236 done
2237 done
2238 IFS=$as_save_IFS
2239
2240 fi
2241 fi
2242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2243 if test -n "$ac_ct_CC"; then
2244 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2245 echo "${ECHO_T}$ac_ct_CC" >&6; }
2246 else
2247 { echo "$as_me:$LINENO: result: no" >&5
2248 echo "${ECHO_T}no" >&6; }
2249 fi
2250
2251
2252 test -n "$ac_ct_CC" && break
2253 done
2254
2255 if test "x$ac_ct_CC" = x; then
2256 CC=""
2257 else
2258 case $cross_compiling:$ac_tool_warned in
2259 yes:)
2260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2261 whose name does not start with the host triplet. If you think this
2262 configuration is useful to you, please write to autoconf@gnu.org." >&5
2263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2264 whose name does not start with the host triplet. If you think this
2265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2266 ac_tool_warned=yes ;;
2267 esac
2268 CC=$ac_ct_CC
2269 fi
2270 fi
2271
2272 fi
2273
2274
2275 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: no acceptable C compiler found in \$PATH
2278 See \`config.log' for more details." >&2;}
2279 { (exit 1); exit 1; }; }
2280
2281 # Provide some information about the compiler.
2282 echo "$as_me:$LINENO: checking for C compiler version" >&5
2283 ac_compiler=`set X $ac_compile; echo $2`
2284 { (ac_try="$ac_compiler --version >&5"
2285 case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290 (eval "$ac_compiler --version >&5") 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }
2294 { (ac_try="$ac_compiler -v >&5"
2295 case "(($ac_try" in
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2298 esac
2299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2300 (eval "$ac_compiler -v >&5") 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }
2304 { (ac_try="$ac_compiler -V >&5"
2305 case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2308 esac
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310 (eval "$ac_compiler -V >&5") 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }
2314
2315 cat >conftest.$ac_ext <<_ACEOF
2316 /* confdefs.h. */
2317 _ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h. */
2321
2322 int
2323 main ()
2324 {
2325
2326 ;
2327 return 0;
2328 }
2329 _ACEOF
2330 ac_clean_files_save=$ac_clean_files
2331 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2332 # Try to create an executable without -o first, disregard a.out.
2333 # It will help us diagnose broken compilers, and finding out an intuition
2334 # of exeext.
2335 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2336 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2337 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2338 #
2339 # List of possible output files, starting from the most likely.
2340 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2341 # only as a last resort. b.out is created by i960 compilers.
2342 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2343 #
2344 # The IRIX 6 linker writes into existing files which may not be
2345 # executable, retaining their permissions. Remove them first so a
2346 # subsequent execution test works.
2347 ac_rmfiles=
2348 for ac_file in $ac_files
2349 do
2350 case $ac_file in
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2353 esac
2354 done
2355 rm -f $ac_rmfiles
2356
2357 if { (ac_try="$ac_link_default"
2358 case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361 esac
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363 (eval "$ac_link_default") 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; then
2367 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2368 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2369 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2370 # so that the user can short-circuit this test for compilers unknown to
2371 # Autoconf.
2372 for ac_file in $ac_files ''
2373 do
2374 test -f "$ac_file" || continue
2375 case $ac_file in
2376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2377 ;;
2378 [ab].out )
2379 # We found the default executable, but exeext='' is most
2380 # certainly right.
2381 break;;
2382 *.* )
2383 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2384 then :; else
2385 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2386 fi
2387 # We set ac_cv_exeext here because the later test for it is not
2388 # safe: cross compilers may not add the suffix if given an `-o'
2389 # argument, so we may need to know it at that point already.
2390 # Even if this section looks crufty: it has the advantage of
2391 # actually working.
2392 break;;
2393 * )
2394 break;;
2395 esac
2396 done
2397 test "$ac_cv_exeext" = no && ac_cv_exeext=
2398
2399 else
2400 ac_file=''
2401 fi
2402
2403 { echo "$as_me:$LINENO: result: $ac_file" >&5
2404 echo "${ECHO_T}$ac_file" >&6; }
2405 if test -z "$ac_file"; then
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2410 See \`config.log' for more details." >&5
2411 echo "$as_me: error: C compiler cannot create executables
2412 See \`config.log' for more details." >&2;}
2413 { (exit 77); exit 77; }; }
2414 fi
2415
2416 ac_exeext=$ac_cv_exeext
2417
2418 # Check that the compiler produces executables we can run. If not, either
2419 # the compiler is broken, or we cross compile.
2420 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2421 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2422 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2423 # If not cross compiling, check that we can run a simple program.
2424 if test "$cross_compiling" != yes; then
2425 if { ac_try='./$ac_file'
2426 { (case "(($ac_try" in
2427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2428 *) ac_try_echo=$ac_try;;
2429 esac
2430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2431 (eval "$ac_try") 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 cross_compiling=no
2436 else
2437 if test "$cross_compiling" = maybe; then
2438 cross_compiling=yes
2439 else
2440 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2441 If you meant to cross compile, use \`--host'.
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: cannot run C compiled programs.
2444 If you meant to cross compile, use \`--host'.
2445 See \`config.log' for more details." >&2;}
2446 { (exit 1); exit 1; }; }
2447 fi
2448 fi
2449 fi
2450 { echo "$as_me:$LINENO: result: yes" >&5
2451 echo "${ECHO_T}yes" >&6; }
2452
2453 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2454 ac_clean_files=$ac_clean_files_save
2455 # Check that the compiler produces executables we can run. If not, either
2456 # the compiler is broken, or we cross compile.
2457 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2458 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2459 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2460 echo "${ECHO_T}$cross_compiling" >&6; }
2461
2462 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2463 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2464 if { (ac_try="$ac_link"
2465 case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_link") 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; then
2474 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2475 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2476 # work properly (i.e., refer to `conftest.exe'), while it won't with
2477 # `rm'.
2478 for ac_file in conftest.exe conftest conftest.*; do
2479 test -f "$ac_file" || continue
2480 case $ac_file in
2481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2483 break;;
2484 * ) break;;
2485 esac
2486 done
2487 else
2488 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2489 See \`config.log' for more details." >&5
2490 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2491 See \`config.log' for more details." >&2;}
2492 { (exit 1); exit 1; }; }
2493 fi
2494
2495 rm -f conftest$ac_cv_exeext
2496 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2497 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2498
2499 rm -f conftest.$ac_ext
2500 EXEEXT=$ac_cv_exeext
2501 ac_exeext=$EXEEXT
2502 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2503 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2504 if test "${ac_cv_objext+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h. */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2513
2514 int
2515 main ()
2516 {
2517
2518 ;
2519 return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.o conftest.obj
2523 if { (ac_try="$ac_compile"
2524 case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_compile") 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; then
2533 for ac_file in conftest.o conftest.obj conftest.*; do
2534 test -f "$ac_file" || continue;
2535 case $ac_file in
2536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2537 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2538 break;;
2539 esac
2540 done
2541 else
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2548 See \`config.log' for more details." >&2;}
2549 { (exit 1); exit 1; }; }
2550 fi
2551
2552 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2553 fi
2554 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2555 echo "${ECHO_T}$ac_cv_objext" >&6; }
2556 OBJEXT=$ac_cv_objext
2557 ac_objext=$OBJEXT
2558 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2559 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2560 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569
2570 int
2571 main ()
2572 {
2573 #ifndef __GNUC__
2574 choke me
2575 #endif
2576
2577 ;
2578 return 0;
2579 }
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (ac_try="$ac_compile"
2583 case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_compile") 2>conftest.er1
2589 ac_status=$?
2590 grep -v '^ *+' conftest.er1 >conftest.err
2591 rm -f conftest.er1
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } && {
2595 test -z "$ac_c_werror_flag" ||
2596 test ! -s conftest.err
2597 } && test -s conftest.$ac_objext; then
2598 ac_compiler_gnu=yes
2599 else
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603 ac_compiler_gnu=no
2604 fi
2605
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2608
2609 fi
2610 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2611 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2612 GCC=`test $ac_compiler_gnu = yes && echo yes`
2613 ac_test_CFLAGS=${CFLAGS+set}
2614 ac_save_CFLAGS=$CFLAGS
2615 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2616 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2617 if test "${ac_cv_prog_cc_g+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620 ac_save_c_werror_flag=$ac_c_werror_flag
2621 ac_c_werror_flag=yes
2622 ac_cv_prog_cc_g=no
2623 CFLAGS="-g"
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h. */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2630
2631 int
2632 main ()
2633 {
2634
2635 ;
2636 return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (ac_try="$ac_compile"
2641 case "(($ac_try" in
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2644 esac
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compile") 2>conftest.er1
2647 ac_status=$?
2648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } && {
2653 test -z "$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2655 } && test -s conftest.$ac_objext; then
2656 ac_cv_prog_cc_g=yes
2657 else
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661 CFLAGS=""
2662 cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h. */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2668
2669 int
2670 main ()
2671 {
2672
2673 ;
2674 return 0;
2675 }
2676 _ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (ac_try="$ac_compile"
2679 case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682 esac
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compile") 2>conftest.er1
2685 ac_status=$?
2686 grep -v '^ *+' conftest.er1 >conftest.err
2687 rm -f conftest.er1
2688 cat conftest.err >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } && {
2691 test -z "$ac_c_werror_flag" ||
2692 test ! -s conftest.err
2693 } && test -s conftest.$ac_objext; then
2694 :
2695 else
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2698
2699 ac_c_werror_flag=$ac_save_c_werror_flag
2700 CFLAGS="-g"
2701 cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h. */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2707
2708 int
2709 main ()
2710 {
2711
2712 ;
2713 return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext
2717 if { (ac_try="$ac_compile"
2718 case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compile") 2>conftest.er1
2724 ac_status=$?
2725 grep -v '^ *+' conftest.er1 >conftest.err
2726 rm -f conftest.er1
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } && {
2730 test -z "$ac_c_werror_flag" ||
2731 test ! -s conftest.err
2732 } && test -s conftest.$ac_objext; then
2733 ac_cv_prog_cc_g=yes
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738
2739 fi
2740
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 fi
2743
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 fi
2746
2747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_c_werror_flag=$ac_save_c_werror_flag
2749 fi
2750 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2751 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2752 if test "$ac_test_CFLAGS" = set; then
2753 CFLAGS=$ac_save_CFLAGS
2754 elif test $ac_cv_prog_cc_g = yes; then
2755 if test "$GCC" = yes; then
2756 CFLAGS="-g -O2"
2757 else
2758 CFLAGS="-g"
2759 fi
2760 else
2761 if test "$GCC" = yes; then
2762 CFLAGS="-O2"
2763 else
2764 CFLAGS=
2765 fi
2766 fi
2767 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2768 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2769 if test "${ac_cv_prog_cc_c89+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772 ac_cv_prog_cc_c89=no
2773 ac_save_CC=$CC
2774 cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h. */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2780 #include <stdarg.h>
2781 #include <stdio.h>
2782 #include <sys/types.h>
2783 #include <sys/stat.h>
2784 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2785 struct buf { int x; };
2786 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2787 static char *e (p, i)
2788 char **p;
2789 int i;
2790 {
2791 return p[i];
2792 }
2793 static char *f (char * (*g) (char **, int), char **p, ...)
2794 {
2795 char *s;
2796 va_list v;
2797 va_start (v,p);
2798 s = g (p, va_arg (v,int));
2799 va_end (v);
2800 return s;
2801 }
2802
2803 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2804 function prototypes and stuff, but not '\xHH' hex character constants.
2805 These don't provoke an error unfortunately, instead are silently treated
2806 as 'x'. The following induces an error, until -std is added to get
2807 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2808 array size at least. It's necessary to write '\x00'==0 to get something
2809 that's true only with -std. */
2810 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2811
2812 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2813 inside strings and character constants. */
2814 #define FOO(x) 'x'
2815 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2816
2817 int test (int i, double x);
2818 struct s1 {int (*f) (int a);};
2819 struct s2 {int (*f) (double a);};
2820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2821 int argc;
2822 char **argv;
2823 int
2824 main ()
2825 {
2826 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2827 ;
2828 return 0;
2829 }
2830 _ACEOF
2831 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2832 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2833 do
2834 CC="$ac_save_CC $ac_arg"
2835 rm -f conftest.$ac_objext
2836 if { (ac_try="$ac_compile"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compile") 2>conftest.er1
2843 ac_status=$?
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } && {
2849 test -z "$ac_c_werror_flag" ||
2850 test ! -s conftest.err
2851 } && test -s conftest.$ac_objext; then
2852 ac_cv_prog_cc_c89=$ac_arg
2853 else
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857
2858 fi
2859
2860 rm -f core conftest.err conftest.$ac_objext
2861 test "x$ac_cv_prog_cc_c89" != "xno" && break
2862 done
2863 rm -f conftest.$ac_ext
2864 CC=$ac_save_CC
2865
2866 fi
2867 # AC_CACHE_VAL
2868 case "x$ac_cv_prog_cc_c89" in
2869 x)
2870 { echo "$as_me:$LINENO: result: none needed" >&5
2871 echo "${ECHO_T}none needed" >&6; } ;;
2872 xno)
2873 { echo "$as_me:$LINENO: result: unsupported" >&5
2874 echo "${ECHO_T}unsupported" >&6; } ;;
2875 *)
2876 CC="$CC $ac_cv_prog_cc_c89"
2877 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2878 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2879 esac
2880
2881
2882 ac_ext=c
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2897 CPP=
2898 fi
2899 if test -z "$CPP"; then
2900 if test "${ac_cv_prog_CPP+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 # Double quotes because CPP needs to be expanded
2904 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2905 do
2906 ac_preproc_ok=false
2907 for ac_c_preproc_warn_flag in '' yes
2908 do
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #ifdef __STDC__
2922 # include <limits.h>
2923 #else
2924 # include <assert.h>
2925 #endif
2926 Syntax error
2927 _ACEOF
2928 if { (ac_try="$ac_cpp conftest.$ac_ext"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null && {
2941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2942 test ! -s conftest.err
2943 }; then
2944 :
2945 else
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 # Broken: fails on valid input.
2950 continue
2951 fi
2952
2953 rm -f conftest.err conftest.$ac_ext
2954
2955 # OK, works on sane cases. Now check whether nonexistent headers
2956 # can be detected and how.
2957 cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h. */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963 #include <ac_nonexistent.h>
2964 _ACEOF
2965 if { (ac_try="$ac_cpp conftest.$ac_ext"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2972 ac_status=$?
2973 grep -v '^ *+' conftest.er1 >conftest.err
2974 rm -f conftest.er1
2975 cat conftest.err >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } >/dev/null && {
2978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2979 test ! -s conftest.err
2980 }; then
2981 # Broken: success on invalid input.
2982 continue
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 # Passes both tests.
2988 ac_preproc_ok=:
2989 break
2990 fi
2991
2992 rm -f conftest.err conftest.$ac_ext
2993
2994 done
2995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2996 rm -f conftest.err conftest.$ac_ext
2997 if $ac_preproc_ok; then
2998 break
2999 fi
3000
3001 done
3002 ac_cv_prog_CPP=$CPP
3003
3004 fi
3005 CPP=$ac_cv_prog_CPP
3006 else
3007 ac_cv_prog_CPP=$CPP
3008 fi
3009 { echo "$as_me:$LINENO: result: $CPP" >&5
3010 echo "${ECHO_T}$CPP" >&6; }
3011 ac_preproc_ok=false
3012 for ac_c_preproc_warn_flag in '' yes
3013 do
3014 # Use a header file that comes with gcc, so configuring glibc
3015 # with a fresh cross-compiler works.
3016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3017 # <limits.h> exists even on freestanding compilers.
3018 # On the NeXT, cc -E runs the code through the compiler's parser,
3019 # not just through cpp. "Syntax error" is here to catch this case.
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026 #ifdef __STDC__
3027 # include <limits.h>
3028 #else
3029 # include <assert.h>
3030 #endif
3031 Syntax error
3032 _ACEOF
3033 if { (ac_try="$ac_cpp conftest.$ac_ext"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3040 ac_status=$?
3041 grep -v '^ *+' conftest.er1 >conftest.err
3042 rm -f conftest.er1
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev/null && {
3046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3047 test ! -s conftest.err
3048 }; then
3049 :
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 # Broken: fails on valid input.
3055 continue
3056 fi
3057
3058 rm -f conftest.err conftest.$ac_ext
3059
3060 # OK, works on sane cases. Now check whether nonexistent headers
3061 # can be detected and how.
3062 cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h. */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3068 #include <ac_nonexistent.h>
3069 _ACEOF
3070 if { (ac_try="$ac_cpp conftest.$ac_ext"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } >/dev/null && {
3083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3085 }; then
3086 # Broken: success on invalid input.
3087 continue
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 # Passes both tests.
3093 ac_preproc_ok=:
3094 break
3095 fi
3096
3097 rm -f conftest.err conftest.$ac_ext
3098
3099 done
3100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3101 rm -f conftest.err conftest.$ac_ext
3102 if $ac_preproc_ok; then
3103 :
3104 else
3105 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3106 See \`config.log' for more details." >&5
3107 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3108 See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3110 fi
3111
3112 ac_ext=c
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3128 if test "${ac_cv_prog_CC+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3144 fi
3145 done
3146 done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 CC=$ac_cv_prog_CC
3152 if test -n "$CC"; then
3153 { echo "$as_me:$LINENO: result: $CC" >&5
3154 echo "${ECHO_T}$CC" >&6; }
3155 else
3156 { echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6; }
3158 fi
3159
3160
3161 fi
3162 if test -z "$ac_cv_prog_CC"; then
3163 ac_ct_CC=$CC
3164 # Extract the first word of "gcc", so it can be a program name with args.
3165 set dummy gcc; ac_word=$2
3166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 if test -n "$ac_ct_CC"; then
3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_ac_ct_CC="gcc"
3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3194 echo "${ECHO_T}$ac_ct_CC" >&6; }
3195 else
3196 { echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6; }
3198 fi
3199
3200 if test "x$ac_ct_CC" = x; then
3201 CC=""
3202 else
3203 case $cross_compiling:$ac_tool_warned in
3204 yes:)
3205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3206 whose name does not start with the host triplet. If you think this
3207 configuration is useful to you, please write to autoconf@gnu.org." >&5
3208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3209 whose name does not start with the host triplet. If you think this
3210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3211 ac_tool_warned=yes ;;
3212 esac
3213 CC=$ac_ct_CC
3214 fi
3215 else
3216 CC="$ac_cv_prog_CC"
3217 fi
3218
3219 if test -z "$CC"; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}cc; ac_word=$2
3223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_CC+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC="$CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_CC="${ac_tool_prefix}cc"
3239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242 done
3243 done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250 { echo "$as_me:$LINENO: result: $CC" >&5
3251 echo "${ECHO_T}$CC" >&6; }
3252 else
3253 { echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6; }
3255 fi
3256
3257
3258 fi
3259 fi
3260 if test -z "$CC"; then
3261 # Extract the first word of "cc", so it can be a program name with args.
3262 set dummy cc; ac_word=$2
3263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 ac_prog_rejected=no
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3280 ac_prog_rejected=yes
3281 continue
3282 fi
3283 ac_cv_prog_CC="cc"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 if test $ac_prog_rejected = yes; then
3292 # We found a bogon in the path, so make sure we never use it.
3293 set dummy $ac_cv_prog_CC
3294 shift
3295 if test $# != 0; then
3296 # We chose a different compiler from the bogus one.
3297 # However, it has the same basename, so the bogon will be chosen
3298 # first if we set CC to just the basename; use the full file name.
3299 shift
3300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3301 fi
3302 fi
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307 { echo "$as_me:$LINENO: result: $CC" >&5
3308 echo "${ECHO_T}$CC" >&6; }
3309 else
3310 { echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6; }
3312 fi
3313
3314
3315 fi
3316 if test -z "$CC"; then
3317 if test -n "$ac_tool_prefix"; then
3318 for ac_prog in cl.exe
3319 do
3320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3324 if test "${ac_cv_prog_CC+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341 done
3342 done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { echo "$as_me:$LINENO: result: $CC" >&5
3350 echo "${ECHO_T}$CC" >&6; }
3351 else
3352 { echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6; }
3354 fi
3355
3356
3357 test -n "$CC" && break
3358 done
3359 fi
3360 if test -z "$CC"; then
3361 ac_ct_CC=$CC
3362 for ac_prog in cl.exe
3363 do
3364 # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy $ac_prog; ac_word=$2
3366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 if test -n "$ac_ct_CC"; then
3372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_ac_ct_CC="$ac_prog"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3392 if test -n "$ac_ct_CC"; then
3393 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3394 echo "${ECHO_T}$ac_ct_CC" >&6; }
3395 else
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3398 fi
3399
3400
3401 test -n "$ac_ct_CC" && break
3402 done
3403
3404 if test "x$ac_ct_CC" = x; then
3405 CC=""
3406 else
3407 case $cross_compiling:$ac_tool_warned in
3408 yes:)
3409 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3410 whose name does not start with the host triplet. If you think this
3411 configuration is useful to you, please write to autoconf@gnu.org." >&5
3412 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3413 whose name does not start with the host triplet. If you think this
3414 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3415 ac_tool_warned=yes ;;
3416 esac
3417 CC=$ac_ct_CC
3418 fi
3419 fi
3420
3421 fi
3422
3423
3424 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3425 See \`config.log' for more details." >&5
3426 echo "$as_me: error: no acceptable C compiler found in \$PATH
3427 See \`config.log' for more details." >&2;}
3428 { (exit 1); exit 1; }; }
3429
3430 # Provide some information about the compiler.
3431 echo "$as_me:$LINENO: checking for C compiler version" >&5
3432 ac_compiler=`set X $ac_compile; echo $2`
3433 { (ac_try="$ac_compiler --version >&5"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_compiler --version >&5") 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }
3443 { (ac_try="$ac_compiler -v >&5"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compiler -v >&5") 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }
3453 { (ac_try="$ac_compiler -V >&5"
3454 case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457 esac
3458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459 (eval "$ac_compiler -V >&5") 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }
3463
3464 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3465 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3466 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475
3476 int
3477 main ()
3478 {
3479 #ifndef __GNUC__
3480 choke me
3481 #endif
3482
3483 ;
3484 return 0;
3485 }
3486 _ACEOF
3487 rm -f conftest.$ac_objext
3488 if { (ac_try="$ac_compile"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_compile") 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && {
3501 test -z "$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 } && test -s conftest.$ac_objext; then
3504 ac_compiler_gnu=yes
3505 else
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509 ac_compiler_gnu=no
3510 fi
3511
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3514
3515 fi
3516 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3517 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3518 GCC=`test $ac_compiler_gnu = yes && echo yes`
3519 ac_test_CFLAGS=${CFLAGS+set}
3520 ac_save_CFLAGS=$CFLAGS
3521 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3522 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3523 if test "${ac_cv_prog_cc_g+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526 ac_save_c_werror_flag=$ac_c_werror_flag
3527 ac_c_werror_flag=yes
3528 ac_cv_prog_cc_g=no
3529 CFLAGS="-g"
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h. */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536
3537 int
3538 main ()
3539 {
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 rm -f conftest.$ac_objext
3546 if { (ac_try="$ac_compile"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_compile") 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } && {
3559 test -z "$ac_c_werror_flag" ||
3560 test ! -s conftest.err
3561 } && test -s conftest.$ac_objext; then
3562 ac_cv_prog_cc_g=yes
3563 else
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567 CFLAGS=""
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_compile") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } && {
3597 test -z "$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 } && test -s conftest.$ac_objext; then
3600 :
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3606 CFLAGS="-g"
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } && {
3636 test -z "$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3638 } && test -s conftest.$ac_objext; then
3639 ac_cv_prog_cc_g=yes
3640 else
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644
3645 fi
3646
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 fi
3649
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 fi
3652
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_c_werror_flag=$ac_save_c_werror_flag
3655 fi
3656 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3657 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3658 if test "$ac_test_CFLAGS" = set; then
3659 CFLAGS=$ac_save_CFLAGS
3660 elif test $ac_cv_prog_cc_g = yes; then
3661 if test "$GCC" = yes; then
3662 CFLAGS="-g -O2"
3663 else
3664 CFLAGS="-g"
3665 fi
3666 else
3667 if test "$GCC" = yes; then
3668 CFLAGS="-O2"
3669 else
3670 CFLAGS=
3671 fi
3672 fi
3673 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3674 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3675 if test "${ac_cv_prog_cc_c89+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678 ac_cv_prog_cc_c89=no
3679 ac_save_CC=$CC
3680 cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #include <stdarg.h>
3687 #include <stdio.h>
3688 #include <sys/types.h>
3689 #include <sys/stat.h>
3690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3691 struct buf { int x; };
3692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3693 static char *e (p, i)
3694 char **p;
3695 int i;
3696 {
3697 return p[i];
3698 }
3699 static char *f (char * (*g) (char **, int), char **p, ...)
3700 {
3701 char *s;
3702 va_list v;
3703 va_start (v,p);
3704 s = g (p, va_arg (v,int));
3705 va_end (v);
3706 return s;
3707 }
3708
3709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3710 function prototypes and stuff, but not '\xHH' hex character constants.
3711 These don't provoke an error unfortunately, instead are silently treated
3712 as 'x'. The following induces an error, until -std is added to get
3713 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3714 array size at least. It's necessary to write '\x00'==0 to get somet