Debian Codegraph @

configure

raw ◀ ▶
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell [email protected] about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="io/cpostscript.cxx"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 MAKEDEPEND
641 LIBCOMMAND
642 IMLIBS
643 PNGLIB
644 TIFFLIB
645 JPEGLIB
646 have_magick_config
647 POSIX_IPC_LIB
648 THREADLIB
649 FLTKEXTRA
650 FLTKLIB
651 FLUID
652 MATHLIB
653 LIBXTRA
654 XLIBS
655 X_EXTRA_LIBS
656 X_LIBS
657 X_PRE_LIBS
658 X_CFLAGS
659 XMKMF
660 EGREP
661 GREP
662 CPP
663 SET_MAKE
664 RANLIB
665 INSTALL_DATA
666 INSTALL_SCRIPT
667 INSTALL_PROGRAM
668 ac_ct_CC
669 CFLAGS
670 CC
671 OBJEXT
672 EXEEXT
673 ac_ct_CXX
674 CPPFLAGS
675 LDFLAGS
676 CXXFLAGS
677 CXX
678 EEXT
679 MV
680 CP
681 FLTK_CONFIG
682 have_fltk_config
683 BRANCH_TAG
684 MICRO_VERSION
685 MINOR_VERSION
686 MAJOR_VERSION
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 with_fltk_dir
740 enable_prof
741 enable_gprof
742 enable_gcov
743 enable_dblbuf
744 enable_registration
745 with_jpeg
746 with_tiff
747 with_magick
748 with_pink
749 with_native_chooser
750 enable_debug
751 with_server
752 with_sysv_ipc
753 with_posix_ipc
754 with_x
755 '
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
759 CXX
760 CXXFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
764 CCC
765 CC
766 CFLAGS
767 CPP
768 XMKMF'
769
770
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
792
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
818
819 ac_prev=
820 ac_dashdash=
821 for ac_option
822 do
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
828 fi
829
830 case $ac_option in
831 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *) ac_optarg=yes ;;
833 esac
834
835 # Accept the important Cygnus configure options, so we can diagnose typos.
836
837 case $ac_dashdash$ac_option in
838 --)
839 ac_dashdash=yes ;;
840
841 -bindir | --bindir | --bindi | --bind | --bin | --bi)
842 ac_prev=bindir ;;
843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844 bindir=$ac_optarg ;;
845
846 -build | --build | --buil | --bui | --bu)
847 ac_prev=build_alias ;;
848 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849 build_alias=$ac_optarg ;;
850
851 -cache-file | --cache-file | --cache-fil | --cache-fi \
852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853 ac_prev=cache_file ;;
854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856 cache_file=$ac_optarg ;;
857
858 --config-cache | -C)
859 cache_file=config.cache ;;
860
861 -datadir | --datadir | --datadi | --datad)
862 ac_prev=datadir ;;
863 -datadir=* | --datadir=* | --datadi=* | --datad=*)
864 datadir=$ac_optarg ;;
865
866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867 | --dataroo | --dataro | --datar)
868 ac_prev=datarootdir ;;
869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871 datarootdir=$ac_optarg ;;
872
873 -disable-* | --disable-*)
874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
878 { (exit 1); exit 1; }; }
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
899
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
905 { (exit 1); exit 1; }; }
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
1121
1122 -without-* | --without-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1127 { (exit 1); exit 1; }; }
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=no ;;
1138
1139 --x)
1140 # Obsolete; use --with-x.
1141 with_x=yes ;;
1142
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1149
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1156
1157 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1158 Try \`$0 --help' for more information." >&2
1159 { (exit 1); exit 1; }; }
1160 ;;
1161
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167 { (exit 1); exit 1; }; }
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1170
1171 *)
1172 # FIXME: should be removed in autoconf 3.0.
1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 ;;
1178
1179 esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1185 { (exit 1); exit 1; }; }
1186 fi
1187
1188 if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1190 no) ;;
1191 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1192 { (exit 1); exit 1; }; } ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 esac
1195 fi
1196
1197 # Check all directory arguments for consistency.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1202 do
1203 eval ac_val=\$$ac_var
1204 # Remove trailing slashes.
1205 case $ac_val in
1206 */ )
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1209 esac
1210 # Be sure to have absolute directory names.
1211 case $ac_val in
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 esac
1215 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$as_myself" : 'X\(//\)[^/]' \| \
1260 X"$as_myself" : 'X\(//\)$' \| \
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
1280 srcdir=$ac_confdir
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 srcdir=..
1283 fi
1284 else
1285 ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures this package to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 X features:
1379 --x-includes=DIR X include files are in DIR
1380 --x-libraries=DIR X library files are in DIR
1381
1382 System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390
1391 cat <<\_ACEOF
1392
1393 Optional Features:
1394 --disable-option-checking ignore unrecognized --enable/--with options
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --enable-prof enable prof source profiling support default=disable
1398 --enable-gprof enable gprof source profiling support default=disable
1399 --enable-gcov enable gcov source profiling support default=disable
1400 --enable-dblbuf enable use of double-buffered windows default=disable
1401 --enable-registration enable the registration panel default=disable
1402 --enable-debug turn on debugging default=disable
1403
1404 Optional Packages:
1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1407 --with-fltk-dir=DIR location of the FLTK distribution directory to use.
1408 --without-jpeg disable native JPEG support default=enable
1409 --without-tiff disable native TIFF support default=enable
1410 --without-magick disable ImageMagick support default=enable
1411 --without-pink disable PINK support default=enable
1412 --without-native-chooser disable experimental native chooser default=enable
1413 --without-server disable image server default=with
1414 --without-sysv-ipc disable Unix SYSV shared memory support default=with
1415 --without-posix-ipc disable Unix POSIX shared memory support default=with
1416 --with-x use the X Window System
1417
1418 Some influential environment variables:
1419 CXX C++ compiler command
1420 CXXFLAGS C++ compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 CPP C preprocessor
1429 XMKMF Path to xmkmf, Makefile generator for X Window System
1430
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1433
1434 _ACEOF
1435 ac_status=$?
1436 fi
1437
1438 if test "$ac_init_help" = "recursive"; then
1439 # If there are subdirs, report their specific --help.
1440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441 test -d "$ac_dir" ||
1442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 continue
1444 ac_builddir=.
1445
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *)
1449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1461
1462 case $srcdir in
1463 .) # We are building in place.
1464 ac_srcdir=.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1471 *) # Relative name.
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1486 else
1487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 fi || ac_status=$?
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1490 done
1491 fi
1492
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495 cat <<\_ACEOF
1496 configure
1497 generated by GNU Autoconf 2.63
1498
1499 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1500 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1503 _ACEOF
1504 exit
1505 fi
1506 cat >config.log <<_ACEOF
1507 This file contains any messages produced by compilers while
1508 running configure, to aid debugging if configure makes a mistake.
1509
1510 It was created by $as_me, which was
1511 generated by GNU Autoconf 2.63. Invocation command line was
1512
1513 $ $0 $@
1514
1515 _ACEOF
1516 exec 5>>config.log
1517 {
1518 cat <<_ASUNAME
1519 ## --------- ##
1520 ## Platform. ##
1521 ## --------- ##
1522
1523 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1524 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1525 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1526 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1527 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1528
1529 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1530 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1531
1532 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1533 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1534 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1535 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1536 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1537 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1538 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1539
1540 _ASUNAME
1541
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 for as_dir in $PATH
1544 do
1545 IFS=$as_save_IFS
1546 test -z "$as_dir" && as_dir=.
1547 $as_echo "PATH: $as_dir"
1548 done
1549 IFS=$as_save_IFS
1550
1551 } >&5
1552
1553 cat >&5 <<_ACEOF
1554
1555
1556 ## ----------- ##
1557 ## Core tests. ##
1558 ## ----------- ##
1559
1560 _ACEOF
1561
1562
1563 # Keep a trace of the command line.
1564 # Strip out --no-create and --no-recursion so they do not pile up.
1565 # Strip out --silent because we don't want to record it for future runs.
1566 # Also quote any args containing shell meta-characters.
1567 # Make two passes to allow for proper duplicate-argument suppression.
1568 ac_configure_args=
1569 ac_configure_args0=
1570 ac_configure_args1=
1571 ac_must_keep_next=false
1572 for ac_pass in 1 2
1573 do
1574 for ac_arg
1575 do
1576 case $ac_arg in
1577 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579 | -silent | --silent | --silen | --sile | --sil)
1580 continue ;;
1581 *\'*)
1582 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1583 esac
1584 case $ac_pass in
1585 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1586 2)
1587 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1588 if test $ac_must_keep_next = true; then
1589 ac_must_keep_next=false # Got value, back to normal.
1590 else
1591 case $ac_arg in
1592 *=* | --config-cache | -C | -disable-* | --disable-* \
1593 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1594 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1595 | -with-* | --with-* | -without-* | --without-* | --x)
1596 case "$ac_configure_args0 " in
1597 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1598 esac
1599 ;;
1600 -* ) ac_must_keep_next=true ;;
1601 esac
1602 fi
1603 ac_configure_args="$ac_configure_args '$ac_arg'"
1604 ;;
1605 esac
1606 done
1607 done
1608 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1609 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1610
1611 # When interrupted or exit'd, cleanup temporary files, and complete
1612 # config.log. We remove comments because anyway the quotes in there
1613 # would cause problems or look ugly.
1614 # WARNING: Use '\'' to represent an apostrophe within the trap.
1615 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1616 trap 'exit_status=$?
1617 # Save into config.log some information that might help in debugging.
1618 {
1619 echo
1620
1621 cat <<\_ASBOX
1622 ## ---------------- ##
1623 ## Cache variables. ##
1624 ## ---------------- ##
1625 _ASBOX
1626 echo
1627 # The following way of writing the cache mishandles newlines in values,
1628 (
1629 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1630 eval ac_val=\$$ac_var
1631 case $ac_val in #(
1632 *${as_nl}*)
1633 case $ac_var in #(
1634 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1635 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1636 esac
1637 case $ac_var in #(
1638 _ | IFS | as_nl) ;; #(
1639 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1640 *) $as_unset $ac_var ;;
1641 esac ;;
1642 esac
1643 done
1644 (set) 2>&1 |
1645 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1646 *${as_nl}ac_space=\ *)
1647 sed -n \
1648 "s/'\''/'\''\\\\'\'''\''/g;
1649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1650 ;; #(
1651 *)
1652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1653 ;;
1654 esac |
1655 sort
1656 )
1657 echo
1658
1659 cat <<\_ASBOX
1660 ## ----------------- ##
1661 ## Output variables. ##
1662 ## ----------------- ##
1663 _ASBOX
1664 echo
1665 for ac_var in $ac_subst_vars
1666 do
1667 eval ac_val=\$$ac_var
1668 case $ac_val in
1669 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670 esac
1671 $as_echo "$ac_var='\''$ac_val'\''"
1672 done | sort
1673 echo
1674
1675 if test -n "$ac_subst_files"; then
1676 cat <<\_ASBOX
1677 ## ------------------- ##
1678 ## File substitutions. ##
1679 ## ------------------- ##
1680 _ASBOX
1681 echo
1682 for ac_var in $ac_subst_files
1683 do
1684 eval ac_val=\$$ac_var
1685 case $ac_val in
1686 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1687 esac
1688 $as_echo "$ac_var='\''$ac_val'\''"
1689 done | sort
1690 echo
1691 fi
1692
1693 if test -s confdefs.h; then
1694 cat <<\_ASBOX
1695 ## ----------- ##
1696 ## confdefs.h. ##
1697 ## ----------- ##
1698 _ASBOX
1699 echo
1700 cat confdefs.h
1701 echo
1702 fi
1703 test "$ac_signal" != 0 &&
1704 $as_echo "$as_me: caught signal $ac_signal"
1705 $as_echo "$as_me: exit $exit_status"
1706 } >&5
1707 rm -f core *.core core.conftest.* &&
1708 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1709 exit $exit_status
1710 ' 0
1711 for ac_signal in 1 2 13 15; do
1712 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1713 done
1714 ac_signal=0
1715
1716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1717 rm -f -r conftest* confdefs.h
1718
1719 # Predefined preprocessor variables.
1720
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_NAME "$PACKAGE_NAME"
1723 _ACEOF
1724
1725
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1728 _ACEOF
1729
1730
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1733 _ACEOF
1734
1735
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_STRING "$PACKAGE_STRING"
1738 _ACEOF
1739
1740
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1743 _ACEOF
1744
1745
1746 # Let the site file select an alternate cache file if it wants to.
1747 # Prefer an explicitly selected file to automatically selected ones.
1748 ac_site_file1=NONE
1749 ac_site_file2=NONE
1750 if test -n "$CONFIG_SITE"; then
1751 ac_site_file1=$CONFIG_SITE
1752 elif test "x$prefix" != xNONE; then
1753 ac_site_file1=$prefix/share/config.site
1754 ac_site_file2=$prefix/etc/config.site
1755 else
1756 ac_site_file1=$ac_default_prefix/share/config.site
1757 ac_site_file2=$ac_default_prefix/etc/config.site
1758 fi
1759 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1760 do
1761 test "x$ac_site_file" = xNONE && continue
1762 if test -r "$ac_site_file"; then
1763 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1764 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1765 sed 's/^/| /' "$ac_site_file" >&5
1766 . "$ac_site_file"
1767 fi
1768 done
1769
1770
1771 # Check that the precious variables saved in the cache have kept the same
1772 # value.
1773 ac_cache_corrupted=false
1774 for ac_var in $ac_precious_vars; do
1775 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1776 eval ac_new_set=\$ac_env_${ac_var}_set
1777 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1778 eval ac_new_val=\$ac_env_${ac_var}_value
1779 case $ac_old_set,$ac_new_set in
1780 set,)
1781 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1782 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1783 ac_cache_corrupted=: ;;
1784 ,set)
1785 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1786 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1787 ac_cache_corrupted=: ;;
1788 ,);;
1789 *)
1790 if test "x$ac_old_val" != "x$ac_new_val"; then
1791 # differences in whitespace do not lead to failure.
1792 ac_old_val_w=`echo x $ac_old_val`
1793 ac_new_val_w=`echo x $ac_new_val`
1794 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1795 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1796 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1797 ac_cache_corrupted=:
1798 else
1799 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1800 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1801 eval $ac_var=\$ac_old_val
1802 fi
1803 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1804 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1805 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1806 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1807 fi;;
1808 esac
1809 # Pass precious variables to config.status.
1810 if test "$ac_new_set" = set; then
1811 case $ac_new_val in
1812 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1813 *) ac_arg=$ac_var=$ac_new_val ;;
1814 esac
1815 case " $ac_configure_args " in
1816 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1817 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1818 esac
1819 fi
1820 done
1821 if $ac_cache_corrupted; then
1822 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1824 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1825 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1826 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1827 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1828 { (exit 1); exit 1; }; }
1829 fi
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847 ac_ext=c
1848 ac_cpp='$CPP $CPPFLAGS'
1849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852
1853
1854 ac_aux_dir=
1855 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1856 if test -f "$ac_dir/install-sh"; then
1857 ac_aux_dir=$ac_dir
1858 ac_install_sh="$ac_aux_dir/install-sh -c"
1859 break
1860 elif test -f "$ac_dir/install.sh"; then
1861 ac_aux_dir=$ac_dir
1862 ac_install_sh="$ac_aux_dir/install.sh -c"
1863 break
1864 elif test -f "$ac_dir/shtool"; then
1865 ac_aux_dir=$ac_dir
1866 ac_install_sh="$ac_aux_dir/shtool install -c"
1867 break
1868 fi
1869 done
1870 if test -z "$ac_aux_dir"; then
1871 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1872 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1873 { (exit 1); exit 1; }; }
1874 fi
1875
1876 # These three variables are undocumented and unsupported,
1877 # and are intended to be withdrawn in a future Autoconf release.
1878 # They can cause serious problems if a builder's source tree is in a directory
1879 # whose full name contains unusual characters.
1880 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1881 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1882 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1883
1884
1885 # Make sure we can run config.sub.
1886 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1887 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1888 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1889 { (exit 1); exit 1; }; }
1890
1891 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1892 $as_echo_n "checking build system type... " >&6; }
1893 if test "${ac_cv_build+set}" = set; then
1894 $as_echo_n "(cached) " >&6
1895 else
1896 ac_build_alias=$build_alias
1897 test "x$ac_build_alias" = x &&
1898 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1899 test "x$ac_build_alias" = x &&
1900 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1901 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1902 { (exit 1); exit 1; }; }
1903 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1904 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1905 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1906 { (exit 1); exit 1; }; }
1907
1908 fi
1909 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1910 $as_echo "$ac_cv_build" >&6; }
1911 case $ac_cv_build in
1912 *-*-*) ;;
1913 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1914 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1915 { (exit 1); exit 1; }; };;
1916 esac
1917 build=$ac_cv_build
1918 ac_save_IFS=$IFS; IFS='-'
1919 set x $ac_cv_build
1920 shift
1921 build_cpu=$1
1922 build_vendor=$2
1923 shift; shift
1924 # Remember, the first character of IFS is used to create $*,
1925 # except with old shells:
1926 build_os=$*
1927 IFS=$ac_save_IFS
1928 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1929
1930
1931 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1932 $as_echo_n "checking host system type... " >&6; }
1933 if test "${ac_cv_host+set}" = set; then
1934 $as_echo_n "(cached) " >&6
1935 else
1936 if test "x$host_alias" = x; then
1937 ac_cv_host=$ac_cv_build
1938 else
1939 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1940 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1941 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1942 { (exit 1); exit 1; }; }
1943 fi
1944
1945 fi
1946 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1947 $as_echo "$ac_cv_host" >&6; }
1948 case $ac_cv_host in
1949 *-*-*) ;;
1950 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1951 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1952 { (exit 1); exit 1; }; };;
1953 esac
1954 host=$ac_cv_host
1955 ac_save_IFS=$IFS; IFS='-'
1956 set x $ac_cv_host
1957 shift
1958 host_cpu=$1
1959 host_vendor=$2
1960 shift; shift
1961 # Remember, the first character of IFS is used to create $*,
1962 # except with old shells:
1963 host_os=$*
1964 IFS=$ac_save_IFS
1965 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1966
1967
1968 { $as_echo "$as_me:$LINENO: checking target system type" >&5
1969 $as_echo_n "checking target system type... " >&6; }
1970 if test "${ac_cv_target+set}" = set; then
1971 $as_echo_n "(cached) " >&6
1972 else
1973 if test "x$target_alias" = x; then
1974 ac_cv_target=$ac_cv_host
1975 else
1976 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1977 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1978 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1979 { (exit 1); exit 1; }; }
1980 fi
1981
1982 fi
1983 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1984 $as_echo "$ac_cv_target" >&6; }
1985 case $ac_cv_target in
1986 *-*-*) ;;
1987 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1988 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
1989 { (exit 1); exit 1; }; };;
1990 esac
1991 target=$ac_cv_target
1992 ac_save_IFS=$IFS; IFS='-'
1993 set x $ac_cv_target
1994 shift
1995 target_cpu=$1
1996 target_vendor=$2
1997 shift; shift
1998 # Remember, the first character of IFS is used to create $*,
1999 # except with old shells:
2000 target_os=$*
2001 IFS=$ac_save_IFS
2002 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2003
2004
2005 # The aliases save the names the user supplied, while $host etc.
2006 # will get canonicalized.
2007 test -n "$target_alias" &&
2008 test "$program_prefix$program_suffix$program_transform_name" = \
2009 NONENONEs,x,x, &&
2010 program_prefix=${target_alias}-
2011
2012 # generate configure header
2013 ac_config_headers="$ac_config_headers imcfg.h"
2014 # the name config.h is used everywhere these days
2015
2016 # Set version
2017 MAJOR_VERSION=1
2018 MINOR_VERSION=1
•2019 MICRO_VERSION=10 # ball is now rolling
2020
2021 echo "configuring Imview $MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION"
2022
2023 # Branch tag
2024 BRANCH_TAG=rel-1-1-0
2025 echo "Branch $BRANCH_TAG"
2026
2027
2028 # start of the real thing
2029
2030 # we need the version number, actually
2031 cat >>confdefs.h <<_ACEOF
2032 #define IMVIEW_MAJOR $MAJOR_VERSION
2033 _ACEOF
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define IMVIEW_MINOR $MINOR_VERSION
2037 _ACEOF
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define IMVIEW_MICRO $MICRO_VERSION
2041 _ACEOF
2042
2043
2044 #
2045 # we need the default prefix!
2046 #
2047 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2048 # Let make expand exec_prefix.
2049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2050
2051
2052
2053 #dnl Use C++ as the test language.
2054 # AC_LANG_CPLUSPLUS
2055
2056 # does not seem to work...
2057 #AC_ARG_VAR ($CC," C compiler of choice")
2058 #AC_ARG_VAR ($CXX, "C++ compiler of choice")
2059
2060 # location of FLTK library
2061
2062 # Check whether --with-fltk-dir was given.
2063 if test "${with_fltk_dir+set}" = set; then
2064 withval=$with_fltk_dir; fltk_dist=$withval
2065 else
2066 fltk_dist=""
2067 fi
2068
2069
2070 # Enable prof-based profiling support
2071 # Check whether --enable-prof was given.
2072 if test "${enable_prof+set}" = set; then
2073 enableval=$enable_prof; with_prof=$enableval
2074 else
2075 with_prof='no'
2076 fi
2077
2078
2079 # Enable gprof-based profiling support
2080 # Check whether --enable-gprof was given.
2081 if test "${enable_gprof+set}" = set; then
2082 enableval=$enable_gprof; with_gprof=$enableval
2083 else
2084 with_gprof='no'
2085 fi
2086
2087
2088 # Enable gcov-based profiling support
2089 # Check whether --enable-gcov was given.
2090 if test "${enable_gcov+set}" = set; then
2091 enableval=$enable_gcov; with_gcov=$enableval
2092 else
2093 with_gcov='no'
2094 fi
2095
2096
2097 with_profiling='no'
2098 if test "$with_prof" = 'yes' || test "$with_gprof" = 'yes' || test "$with_gcov" = 'yes'
2099 then
2100 with_profiling='yes'
2101 fi
2102
2103 # Enable use of double-buffering windows. Doesn't work everywhere yet
2104 # Check whether --enable-dblbuf was given.
2105 if test "${enable_dblbuf+set}" = set; then
2106 enableval=$enable_dblbuf; with_dblbuf=$enableval
2107 else
2108 with_dblbuf='no'
2109 fi
2110
2111
2112 # Check whether --enable-registration was given.
2113 if test "${enable_registration+set}" = set; then
2114 enableval=$enable_registration; with_registration=$withval
2115 else
2116 with_registration='no'
2117 fi
2118
2119
2120 # diverse optional libraries
2121
2122 # Check whether --with-jpeg was given.
2123 if test "${with_jpeg+set}" = set; then
2124 withval=$with_jpeg; with_jpeg=$withval
2125 else
2126 with_jpeg='yes'
2127 fi
2128
2129
2130
2131 # Check whether --with-tiff was given.
2132 if test "${with_tiff+set}" = set; then
2133 withval=$with_tiff; with_tiff=$withval
2134 else
2135 with_tiff='yes'
2136 fi
2137
2138
2139
2140 # Check whether --with-magick was given.
2141 if test "${with_magick+set}" = set; then
2142 withval=$with_magick; with_magick=$withval
2143 else
2144 with_magick='yes'
2145 fi
2146
2147
2148
2149 # Check whether --with-pink was given.
2150 if test "${with_pink+set}" = set; then
2151 withval=$with_pink; with_pink=$withval
2152 else
2153 with_pink='yes'
2154 fi
2155
2156
2157 # the native chooser is MUCH nicer
2158
2159 # Check whether --with-native-chooser was given.
2160 if test "${with_native_chooser+set}" = set; then
2161 withval=$with_native_chooser; with_native_chooser=$withval
2162 else
2163 with_native_chooser='yes'
2164 fi
2165
2166
2167
2168 DEBUGFLAG=""
2169 PICFLAG=0
2170 CFLAGS="${CFLAGS:=}"
2171 CXXFLAGS="${CXXFLAGS:=}"
2172
2173 # Check whether --enable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175 enableval=$enable_debug; \
2176 with_debug=$enableval
2177 else
2178 with_debug='no'
2179 fi
2180
2181
2182 if test "$with_debug" != "no"
2183 then
2184 # [if eval "test x$enable_debug = xyes"; then DEBUGFLAG="-g " ; fi])
2185 DEBUGFLAG="-g "
2186 fi
2187
2188
2189 # Enable support for image server
2190
2191 # Check whether --with-server was given.
2192 if test "${with_server+set}" = set; then
2193 withval=$with_server; with_server=$withval
2194 else
2195 with_server='yes'
2196 fi
2197
2198
2199
2200 # enable support for SYSV type shared memory (not shared library!)
2201
2202 # Check whether --with-sysv-ipc was given.
2203 if test "${with_sysv_ipc+set}" = set; then
2204 withval=$with_sysv_ipc; with_sysv_ipc=$withval
2205 else
2206 with_sysv_ipc='yes'
2207 fi
2208
2209
2210 # enable support for POSIX type shared memory (not shared library!)
2211
2212 # Check whether --with-posix-ipc was given.
2213 if test "${with_posix_ipc+set}" = set; then
2214 withval=$with_posix_ipc; with_posix_ipc=$withval
2215 else
2216 with_posix_ipc='yes'
2217 fi
2218
2219
2220
2221 # if server is disabled, so is SYSV and POSIX
2222 if test "$with_server" != "yes" ; then
2223 with_sysv_ipc="no"
2224 with_posix_ipc="no"
2225 fi
2226
2227
2228 save_prof=$with_prof
2229 save_gprof=$with_gprof
2230 save_gcov=$with_gcov
2231 save_jpeg=$with_jpeg
2232 save_tiff=$with_tiff
2233 save_magick=$with_magick
2234 save_pink=$with_pink
2235 save_native_chooser=$with_native_chooser
2236 save_debug=$with_debug
2237 save_server=$with_server
2238 save_sysv_ipc=$with_sysv_ipc
2239 save_posix_ipc=$with_posix_ipc
2240 save_dblbuf=$with_dblbuf
2241 save_registration=$with_registration
2242
2243 # Evaluate shell variable equivalents to Makefile directory variables
2244 eval "eval BIN_DIR=$bindir"
2245 eval "eval DATA_DIR=$datadir"
2246 eval "eval INCLUDE_DIR=$includedir"
2247 eval "eval LIB_DIR=$libdir"
2248
2249 srcdirfull=`cd $srcdir && pwd`
2250
2251 # so that we also look where the software will be installed (the `local' /usr/local...)
2252 LDFLAGS="$LDFLAGS -L$LIB_DIR"
2253 CPPFLAGS="$CPPFLAGS -I. "
2254
2255
2256 # by default we build for Unix and we need X.
2257 have_x="yes"
2258 have_carbon="no" # Carbon environment
2259 have_wingdi="no" # Windows GDI
2260 exec_extension="" # Unix executable are not known by their extention
2261 # use the host type
2262 LIBXTRA=""
2263
2264 # trying for a `standard' echo
2265 ECHO=echo
2266 # other standard commands
2267 CP=/bin/cp
2268 MV=/bin/mv
2269
2270 #needed to work around a bug in mingw
2271 START=""
2272
2273
2274 # Extract the first word of "fltk-config", so it can be a program name with args.
2275 set dummy fltk-config; ac_word=$2
2276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_have_fltk_config+set}" = set; then
2279 $as_echo_n "(cached) " >&6
2280 else
2281 if test -n "$have_fltk_config"; then
2282 ac_cv_prog_have_fltk_config="$have_fltk_config" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 as_dummy="${fltk_dist}:$PATH"
2286 for as_dir in $as_dummy
2287 do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_have_fltk_config=""yes""
2293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2295 fi
2296 done
2297 done
2298 IFS=$as_save_IFS
2299
2300 test -z "$ac_cv_prog_have_fltk_config" && ac_cv_prog_have_fltk_config=""no""
2301 fi
2302 fi
2303 have_fltk_config=$ac_cv_prog_have_fltk_config
2304 if test -n "$have_fltk_config"; then
2305 { $as_echo "$as_me:$LINENO: result: $have_fltk_config" >&5
2306 $as_echo "$have_fltk_config" >&6; }
2307 else
2308 { $as_echo "$as_me:$LINENO: result: no" >&5
2309 $as_echo "no" >&6; }
2310 fi
2311
2312
2313 if test "$have_fltk_config" != "yes"
2314 then
2315 echo "*** Fltk-config was not found!"
2316 echo "*** You need to upgrade FLTK to version 1.1.x, exiting"
2317 exit 1
2318 fi
2319
2320
2321 if test "$fltk_dist" != ""
2322 then
2323 my_fltk_config=${fltk_dist}/fltk-config
2324 my_fltk_version=`${fltk_dist}/fltk-config --version`
•2325 my_fltk_api_minor_version=`${fltk_dist}/fltk-config --api-version | sed 's/1\.//'`
2326 fltk_config_name=`$my_fltk_config --libs` # that's pre-installation, no good
2327 fltk_cfg_nm=`echo $fltk_config_name | sed 's%.*/lib\(fltk.*\).a%\1%'` # short name still OK
2328 fltk_config_name=${fltk_dist}/lib/lib${fltk_cfg_nm}.a
2329 fltk_images_name=${fltk_dist}/lib/lib${fltk_cfg_nm}_images.a
2330 fltk_include_flags=`$my_fltk_config --use-images --cxxflags`
2331 LDFLAGS="-L${fltk_dist}/lib $LDFLAGS"
2332 CPPFLAGS="-I${fltk_dist} $fltk_include_flags $CPPFLAGS"
2333 FLUID=${START}${fltk_dist}/fluid/fluid
2334 FLTKLIB=" $fltk_images_name $fltk_config_name"
2335 fltklib=fltk
2336 # one more hack for the road... This is needed to get the `framework` information on macos
2337 LDFLAGS="$LDFLAGS `$my_fltk_config --ldflags`"
2338 else
2339 my_fltk_config=fltk-config
2340 my_fltk_version=`fltk-config --version`
•2341 my_fltk_api_minor_version=`${fltk_dist}/fltk-config --api-version | sed 's/1\.//'`
2342 fltk_config_name=`$my_fltk_config --libs` # long path
2343 fltk_cfg_nm=`echo $fltk_config_name | sed 's%.*/lib\(fltk.*\).a%\1%'` # short name
2344 fltk_images_name=`$my_fltk_config --libs | sed 's/\(.*fltk\)\(\.a$\)/\1_images.a/'`
2345 fltk_include_flags=`$my_fltk_config --use-images --cxxflags`
2346 FLUID=${START}fluid
2347 LDFLAGS="$LDFLAGS `$my_fltk_config --use-images --ldstaticflags`"
•2348 CPPFLAGS="$CPPFLAGS $fltk_include_flags"
2349 FLTKLIB="`$my_fltk_config --use-images --ldstaticflags`"
2350 fltklib=$fltk_cfg_name
2351 fi
2352
•2353 CPPFLAGS="$CPPFLAGS -DFLTK_API_MINOR_VERSION=$my_fltk_api_minor_version"
2354
2355 fltk_x11_ldflags=`$my_fltk_config --ldflags | grep '\-lX11'`
2356 if test "$fltk_x11_ldflags" != "" ; then
2357 fltk_uses_x11=yes
2358 else
2359 fltk_uses_x11=no
2360 fi
2361
2362
2363 FLTK_CONFIG=$my_fltk_config
2364
2365
2366
2367 case $target in
2368 *linux*)
2369 # our favourite platform :-)
2370 CPPFLAGS="-DLinux $CPPFLAGS"
2371 ;;
2372
2373 *dec-osf*)
2374 # Compaq Tru64, aka DEC Unix, aka OSF1
2375 CPPFLAGS="-DOSF1 $CPPFLAGS"
2376 ;;
2377
2378 *sun-solaris2*)
2379 # Sun Solaris. Broken X headers are no fun
2380 CPPFLAGS="-DSolaris -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ $CPPFLAGS"
2381 # Sun POSIX IPC does not allow paths under /tmp
2382 cat >>confdefs.h <<\_ACEOF
2383 #define POSIX_IPC_PREFIX "/"
2384 _ACEOF
2385
2386 # Solaris /usr/bin/echo does not understand `-n'
2387 ECHO=/usr/ucb/echo
2388 ;;
2389
2390 *pc-mingw32*)
2391 # MINGW32. Nothing special, but no X!
2392 have_x="no"
2393 have_wingdi="yes"
2394 exec_extension=".exe" # Windows executable are `.exe' files.
2395 CPPFLAGS="$CPPFLAGS -O2" # my compiler doesn't produce correct executable unless optimizing!
2396 WINTHREAD="pthreadGC" # use the pthread-win32 without structured exceptions.
2397 START="/bin/start " # to be able non-mingw GUI applications like fluid, NOTE: space is important
2398 LDFLAGS="$LDFLAGS -mwindows -lole32 -luuid -lcomctl32 -lwsock32 -lsupc++"
2399 ;;
2400
2401 *i686-pc-cygwin)
2402 # MINGW32. Nothing special, but no X!
2403 have_x="no"
2404 have_wingdi="yes"
2405 exec_extension=".exe" # Windows executable are `.exe' files.
2406 CPPFLAGS="$CPPFLAGS -O2 -mwin32" # my compiler doesn't produce correct executable unless optimizing!
2407 WINTHREAD="pthread"
2408 ;;
2409
2410 *darwin*)
2411 # Mac OS/X
2412 echo "*** Oooh, MacOS/X"
2413 if test "$fltk_uses_x11" = "no" ; then
2414 echo "*** Using Carbon too"
2415 have_x="no" # use Carbon instead
2416 have_carbon="yes"
2417 CPPFLAGS="-DMACOSX_CARBON $CPPFLAGS"
2418 else
2419 echo "*** Still using X11"
2420 fi
2421 # removed dependency on FINK (/sw)
2422 CPPFLAGS="-DDARWIN -O2 $CPPFLAGS"
2423 LDFLAGS="$LDFLAGS"
2424 if test "$with_magick" = "yes" ; then
2425 echo "Silencing magick warnings at link time"
2426 LDFLAGS="$LDFLAGS -Xlinker -multiply_defined -Xlinker suppress"
2427 echo "*NOTE: You might see a lot of warnings at link time if your version"
2428 echo " of ImageMagick embeds symbols from various other standard libraries"
2429 echo " such as libjpeg or libz. This is pretty harmless."
2430 fi
2431 CP=/Developer/Tools/CpMac
2432 MV=/Developer/Tools/MvMac
2433 ;;
2434
2435
2436 *)
2437 echo "*** A platform I haven't tried! Some definitions might be lacking"
2438 echo "*** Please contribute your changes if any required."
2439 echo "*** mailto: [email protected]"
2440 ;;
2441 esac
2442
2443
2444
2445 EEXT=$exec_extension
2446
2447
2448 ac_ext=cpp
2449 ac_cpp='$CXXCPP $CPPFLAGS'
2450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2453 if test -z "$CXX"; then
2454 if test -n "$CCC"; then
2455 CXX=$CCC
2456 else
2457 if test -n "$ac_tool_prefix"; then
2458 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2459 do
2460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if test "${ac_cv_prog_CXX+set}" = set; then
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$CXX"; then
2468 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 CXX=$ac_cv_prog_CXX
2488 if test -n "$CXX"; then
2489 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2490 $as_echo "$CXX" >&6; }
2491 else
2492 { $as_echo "$as_me:$LINENO: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496
2497 test -n "$CXX" && break
2498 done
2499 fi
2500 if test -z "$CXX"; then
2501 ac_ct_CXX=$CXX
2502 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2503 do
2504 # Extract the first word of "$ac_prog", so it can be a program name with args.
2505 set dummy $ac_prog; ac_word=$2
2506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test -n "$ac_ct_CXX"; then
2512 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_ac_ct_CXX="$ac_prog"
2522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530 fi
2531 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2532 if test -n "$ac_ct_CXX"; then
2533 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2534 $as_echo "$ac_ct_CXX" >&6; }
2535 else
2536 { $as_echo "$as_me:$LINENO: result: no" >&5
2537 $as_echo "no" >&6; }
2538 fi
2539
2540
2541 test -n "$ac_ct_CXX" && break
2542 done
2543
2544 if test "x$ac_ct_CXX" = x; then
2545 CXX="g++"
2546 else
2547 case $cross_compiling:$ac_tool_warned in
2548 yes:)
2549 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551 ac_tool_warned=yes ;;
2552 esac
2553 CXX=$ac_ct_CXX
2554 fi
2555 fi
2556
2557 fi
2558 fi
2559 # Provide some information about the compiler.
2560 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2561 set X $ac_compile
2562 ac_compiler=$2
2563 { (ac_try="$ac_compiler --version >&5"
2564 case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2569 $as_echo "$ac_try_echo") >&5
2570 (eval "$ac_compiler --version >&5") 2>&5
2571 ac_status=$?
2572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2574 { (ac_try="$ac_compiler -v >&5"
2575 case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578 esac
2579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2580 $as_echo "$ac_try_echo") >&5
2581 (eval "$ac_compiler -v >&5") 2>&5
2582 ac_status=$?
2583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }
2585 { (ac_try="$ac_compiler -V >&5"
2586 case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589 esac
2590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2591 $as_echo "$ac_try_echo") >&5
2592 (eval "$ac_compiler -V >&5") 2>&5
2593 ac_status=$?
2594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }
2596
2597 cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h. */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2603
2604 int
2605 main ()
2606 {
2607
2608 ;
2609 return 0;
2610 }
2611 _ACEOF
2612 ac_clean_files_save=$ac_clean_files
2613 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2614 # Try to create an executable without -o first, disregard a.out.
2615 # It will help us diagnose broken compilers, and finding out an intuition
2616 # of exeext.
2617 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2618 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2619 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2620
2621 # The possible output files:
2622 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2623
2624 ac_rmfiles=
2625 for ac_file in $ac_files
2626 do
2627 case $ac_file in
2628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2629 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2630 esac
2631 done
2632 rm -f $ac_rmfiles
2633
2634 if { (ac_try="$ac_link_default"
2635 case "(($ac_try" in
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2638 esac
2639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2640 $as_echo "$ac_try_echo") >&5
2641 (eval "$ac_link_default") 2>&5
2642 ac_status=$?
2643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; then
2645 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2646 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2647 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2648 # so that the user can short-circuit this test for compilers unknown to
2649 # Autoconf.
2650 for ac_file in $ac_files ''
2651 do
2652 test -f "$ac_file" || continue
2653 case $ac_file in
2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2655 ;;
2656 [ab].out )
2657 # We found the default executable, but exeext='' is most
2658 # certainly right.
2659 break;;
2660 *.* )
2661 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2662 then :; else
2663 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2664 fi
2665 # We set ac_cv_exeext here because the later test for it is not
2666 # safe: cross compilers may not add the suffix if given an `-o'
2667 # argument, so we may need to know it at that point already.
2668 # Even if this section looks crufty: it has the advantage of
2669 # actually working.
2670 break;;
2671 * )
2672 break;;
2673 esac
2674 done
2675 test "$ac_cv_exeext" = no && ac_cv_exeext=
2676
2677 else
2678 ac_file=''
2679 fi
2680
2681 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2682 $as_echo "$ac_file" >&6; }
2683 if test -z "$ac_file"; then
2684 $as_echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2686
2687 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2689 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2690 See \`config.log' for more details." >&5
2691 $as_echo "$as_me: error: C++ compiler cannot create executables
2692 See \`config.log' for more details." >&2;}
2693 { (exit 77); exit 77; }; }; }
2694 fi
2695
2696 ac_exeext=$ac_cv_exeext
2697
2698 # Check that the compiler produces executables we can run. If not, either
2699 # the compiler is broken, or we cross compile.
2700 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2701 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2702 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2703 # If not cross compiling, check that we can run a simple program.
2704 if test "$cross_compiling" != yes; then
2705 if { ac_try='./$ac_file'
2706 { (case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709 esac
2710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2711 $as_echo "$ac_try_echo") >&5
2712 (eval "$ac_try") 2>&5
2713 ac_status=$?
2714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2716 cross_compiling=no
2717 else
2718 if test "$cross_compiling" = maybe; then
2719 cross_compiling=yes
2720 else
2721 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2724 If you meant to cross compile, use \`--host'.
2725 See \`config.log' for more details." >&5
2726 $as_echo "$as_me: error: cannot run C++ compiled programs.
2727 If you meant to cross compile, use \`--host'.
2728 See \`config.log' for more details." >&2;}
2729 { (exit 1); exit 1; }; }; }
2730 fi
2731 fi
2732 fi
2733 { $as_echo "$as_me:$LINENO: result: yes" >&5
2734 $as_echo "yes" >&6; }
2735
2736 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2737 ac_clean_files=$ac_clean_files_save
2738 # Check that the compiler produces executables we can run. If not, either
2739 # the compiler is broken, or we cross compile.
2740 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2741 $as_echo_n "checking whether we are cross compiling... " >&6; }
2742 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2743 $as_echo "$cross_compiling" >&6; }
2744
2745 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2746 $as_echo_n "checking for suffix of executables... " >&6; }
2747 if { (ac_try="$ac_link"
2748 case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751 esac
2752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2753 $as_echo "$ac_try_echo") >&5
2754 (eval "$ac_link") 2>&5
2755 ac_status=$?
2756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; then
2758 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2759 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2760 # work properly (i.e., refer to `conftest.exe'), while it won't with
2761 # `rm'.
2762 for ac_file in conftest.exe conftest conftest.*; do
2763 test -f "$ac_file" || continue
2764 case $ac_file in
2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2766 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2767 break;;
2768 * ) break;;
2769 esac
2770 done
2771 else
2772 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2775 See \`config.log' for more details." >&5
2776 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2777 See \`config.log' for more details." >&2;}
2778 { (exit 1); exit 1; }; }; }
2779 fi
2780
2781 rm -f conftest$ac_cv_exeext
2782 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2783 $as_echo "$ac_cv_exeext" >&6; }
2784
2785 rm -f conftest.$ac_ext
2786 EXEEXT=$ac_cv_exeext
2787 ac_exeext=$EXEEXT
2788 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2789 $as_echo_n "checking for suffix of object files... " >&6; }
2790 if test "${ac_cv_objext+set}" = set; then
2791 $as_echo_n "(cached) " >&6
2792 else
2793 cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h. */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2799
2800 int
2801 main ()
2802 {
2803
2804 ;
2805 return 0;
2806 }
2807 _ACEOF
2808 rm -f conftest.o conftest.obj
2809 if { (ac_try="$ac_compile"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2815 $as_echo "$ac_try_echo") >&5
2816 (eval "$ac_compile") 2>&5
2817 ac_status=$?
2818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; then
2820 for ac_file in conftest.o conftest.obj conftest.*; do
2821 test -f "$ac_file" || continue;
2822 case $ac_file in
2823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2824 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2825 break;;
2826 esac
2827 done
2828 else
2829 $as_echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2835 See \`config.log' for more details." >&5
2836 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2837 See \`config.log' for more details." >&2;}
2838 { (exit 1); exit 1; }; }; }
2839 fi
2840
2841 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2842 fi
2843 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2844 $as_echo "$ac_cv_objext" >&6; }
2845 OBJEXT=$ac_cv_objext
2846 ac_objext=$OBJEXT
2847 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2848 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2849 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2850 $as_echo_n "(cached) " >&6
2851 else
2852 cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h. */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858
2859 int
2860 main ()
2861 {
2862 #ifndef __GNUC__
2863 choke me
2864 #endif
2865
2866 ;
2867 return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (ac_try="$ac_compile"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2877 $as_echo "$ac_try_echo") >&5
2878 (eval "$ac_compile") 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
2882 cat conftest.err >&5
2883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && {
2885 test -z "$ac_cxx_werror_flag" ||
2886 test ! -s conftest.err
2887 } && test -s conftest.$ac_objext; then
2888 ac_compiler_gnu=yes
2889 else
2890 $as_echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893 ac_compiler_gnu=no
2894 fi
2895
2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2898
2899 fi
2900 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2901 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2902 if test $ac_compiler_gnu = yes; then
2903 GXX=yes
2904 else
2905 GXX=
2906 fi
2907 ac_test_CXXFLAGS=${CXXFLAGS+set}
2908 ac_save_CXXFLAGS=$CXXFLAGS
2909 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2910 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2911 if test "${ac_cv_prog_cxx_g+set}" = set; then
2912 $as_echo_n "(cached) " >&6
2913 else
2914 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2915 ac_cxx_werror_flag=yes
2916 ac_cv_prog_cxx_g=no
2917 CXXFLAGS="-g"
2918 cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h. */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2924
2925 int
2926 main ()
2927 {
2928
2929 ;
2930 return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (ac_try="$ac_compile"
2935 case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938 esac
2939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940 $as_echo "$ac_try_echo") >&5
2941 (eval "$ac_compile") 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } && {
2948 test -z "$ac_cxx_werror_flag" ||
2949 test ! -s conftest.err
2950 } && test -s conftest.$ac_objext; then
2951 ac_cv_prog_cxx_g=yes
2952 else
2953 $as_echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956 CXXFLAGS=""
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
2964 int
2965 main ()
2966 {
2967
2968 ;
2969 return 0;
2970 }
2971 _ACEOF
2972 rm -f conftest.$ac_objext
2973 if { (ac_try="$ac_compile"
2974 case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977 esac
2978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2979 $as_echo "$ac_try_echo") >&5
2980 (eval "$ac_compile") 2>conftest.er1
2981 ac_status=$?
2982 grep -v '^ *+' conftest.er1 >conftest.err
2983 rm -f conftest.er1
2984 cat conftest.err >&5
2985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } && {
2987 test -z "$ac_cxx_werror_flag" ||
2988 test ! -s conftest.err
2989 } && test -s conftest.$ac_objext; then
2990 :
2991 else
2992 $as_echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2996 CXXFLAGS="-g"
2997 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003
3004 int
3005 main ()
3006 {
3007
3008 ;
3009 return 0;
3010 }
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3014 case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017 esac
3018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3019 $as_echo "$ac_try_echo") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } && {
3027 test -z "$ac_cxx_werror_flag" ||
3028 test ! -s conftest.err
3029 } && test -s conftest.$ac_objext; then
3030 ac_cv_prog_cxx_g=yes
3031 else
3032 $as_echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035
3036 fi
3037
3038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 fi
3040
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 fi
3043
3044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3046 fi
3047 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3048 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3049 if test "$ac_test_CXXFLAGS" = set; then
3050 CXXFLAGS=$ac_save_CXXFLAGS
3051 elif test $ac_cv_prog_cxx_g = yes; then
3052 if test "$GXX" = yes; then
3053 CXXFLAGS="-g -O2"
3054 else
3055 CXXFLAGS="-g"
3056 fi
3057 else
3058 if test "$GXX" = yes; then
3059 CXXFLAGS="-O2"
3060 else
3061 CXXFLAGS=
3062 fi
3063 fi
3064 ac_ext=c
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069
3070 ac_ext=c
3071 ac_cpp='$CPP $CPPFLAGS'
3072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075 if test -n "$ac_tool_prefix"; then
3076 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3077 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_prog_CC+set}" = set; then
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108 { $as_echo "$as_me:$LINENO: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113 fi
3114 if test -z "$ac_cv_prog_CC"; then
3115 ac_ct_CC=$CC
3116 # Extract the first word of "gcc", so it can be a program name with args.
3117 set dummy gcc; ac_word=$2
3118 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test -n "$ac_ct_CC"; then
3124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 ac_cv_prog_ac_ct_CC="gcc"
3134 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3144 if test -n "$ac_ct_CC"; then
3145 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3146 $as_echo "$ac_ct_CC" >&6; }
3147 else
3148 { $as_echo "$as_me:$LINENO: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152 if test "x$ac_ct_CC" = x; then
3153 CC=""
3154 else
3155 case $cross_compiling:$ac_tool_warned in
3156 yes:)
3157 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3159 ac_tool_warned=yes ;;
3160 esac
3161 CC=$ac_ct_CC
3162 fi
3163 else
3164 CC="$ac_cv_prog_CC"
3165 fi
3166
3167 if test -z "$CC"; then
3168 if test -n "$ac_tool_prefix"; then
3169 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3170 set dummy ${ac_tool_prefix}cc; ac_word=$2
3171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if test "${ac_cv_prog_CC+set}" = set; then
3174 $as_echo_n "(cached) " >&6
3175 else
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3186 ac_cv_prog_CC="${ac_tool_prefix}cc"
3187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190 done
3191 done
3192 IFS=$as_save_IFS
3193
3194 fi
3195 fi
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3199 $as_echo "$CC" >&6; }
3200 else
3201 { $as_echo "$as_me:$LINENO: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206 fi
3207 fi
3208 if test -z "$CC"; then
3209 # Extract the first word of "cc", so it can be a program name with args.
3210 set dummy cc; ac_word=$2
3211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if test "${ac_cv_prog_CC+set}" = set; then
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 else
3219 ac_prog_rejected=no
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3228 ac_prog_rejected=yes
3229 continue
3230 fi
3231 ac_cv_prog_CC="cc"
3232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 if test $ac_prog_rejected = yes; then
3240 # We found a bogon in the path, so make sure we never use it.
3241 set dummy $ac_cv_prog_CC
3242 shift
3243 if test $# != 0; then
3244 # We chose a different compiler from the bogus one.
3245 # However, it has the same basename, so the bogon will be chosen
3246 # first if we set CC to just the basename; use the full file name.
3247 shift
3248 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3249 fi
3250 fi
3251 fi
3252 fi
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258 { $as_echo "$as_me:$LINENO: result: no" >&5
3259 $as_echo "no" >&6; }
3260 fi
3261
3262
3263 fi
3264 if test -z "$CC"; then
3265 if test -n "$ac_tool_prefix"; then
3266 for ac_prog in cl.exe
3267 do
3268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if test "${ac_cv_prog_CC+set}" = set; then
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 fi
3294 fi
3295 CC=$ac_cv_prog_CC
3296 if test -n "$CC"; then
3297 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3298 $as_echo "$CC" >&6; }
3299 else
3300 { $as_echo "$as_me:$LINENO: result: no" >&5
3301 $as_echo "no" >&6; }
3302 fi
3303
3304
3305 test -n "$CC" && break
3306 done
3307 fi
3308 if test -z "$CC"; then
3309 ac_ct_CC=$CC
3310 for ac_prog in cl.exe
3311 do
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy $ac_prog; ac_word=$2
3314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3317 $as_echo_n "(cached) " >&6
3318 else
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329 ac_cv_prog_ac_ct_CC="$ac_prog"
3330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333 done
3334 done
3335 IFS=$as_save_IFS
3336
3337 fi
3338 fi
3339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340 if test -n "$ac_ct_CC"; then
3341 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3342 $as_echo "$ac_ct_CC" >&6; }
3343 else
3344 { $as_echo "$as_me:$LINENO: result: no" >&5
3345 $as_echo "no" >&6; }
3346 fi
3347
3348
3349 test -n "$ac_ct_CC" && break
3350 done
3351
3352 if test "x$ac_ct_CC" = x; then
3353 CC=""
3354 else
3355 case $cross_compiling:$ac_tool_warned in
3356 yes:)
3357 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3359 ac_tool_warned=yes ;;
3360 esac
3361 CC=$ac_ct_CC
3362 fi
3363 fi
3364
3365 fi
3366
3367
3368 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3371 See \`config.log' for more details." >&5
3372 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3373 See \`config.log' for more details." >&2;}
3374 { (exit 1); exit 1; }; }; }
3375
3376 # Provide some information about the compiler.
3377 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3378 set X $ac_compile
3379 ac_compiler=$2
3380 { (ac_try="$ac_compiler --version >&5"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386 $as_echo "$ac_try_echo") >&5
3387 (eval "$ac_compiler --version >&5") 2>&5
3388 ac_status=$?
3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }
3391 { (ac_try="$ac_compiler -v >&5"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3397 $as_echo "$ac_try_echo") >&5
3398 (eval "$ac_compiler -v >&5") 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }
3402 { (ac_try="$ac_compiler -V >&5"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_compiler -V >&5") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }
3413
3414 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3415 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3416 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3417 $as_echo_n "(cached) " >&6
3418 else
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425
3426 int
3427 main ()
3428 {
3429 #ifndef __GNUC__
3430 choke me
3431 #endif
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444 $as_echo "$ac_try_echo") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && {
3452 test -z "$ac_c_werror_flag" ||
3453 test ! -s conftest.err
3454 } && test -s conftest.$ac_objext; then
3455 ac_compiler_gnu=yes
3456 else
3457 $as_echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 ac_compiler_gnu=no
3461 fi
3462
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3465
3466 fi
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3468 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3469 if test $ac_compiler_gnu = yes; then
3470 GCC=yes
3471 else
3472 GCC=
3473 fi
3474 ac_test_CFLAGS=${CFLAGS+set}
3475 ac_save_CFLAGS=$CFLAGS
3476 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3477 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3478 if test "${ac_cv_prog_cc_g+set}" = set; then
3479 $as_echo_n "(cached) " >&6
3480 else
3481 ac_save_c_werror_flag=$ac_c_werror_flag
3482 ac_c_werror_flag=yes
3483 ac_cv_prog_cc_g=no
3484 CFLAGS="-g"
3485 cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h. */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491
3492 int
3493 main ()
3494 {
3495
3496 ;
3497 return 0;
3498 }
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3507 $as_echo "$ac_try_echo") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3518 ac_cv_prog_cc_g=yes
3519 else
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 CFLAGS=""
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530
3531 int
3532 main ()
3533 {
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (ac_try="$ac_compile"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3546 $as_echo "$ac_try_echo") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3548 ac_status=$?
3549 grep -v '^ *+' conftest.er1 >conftest.err
3550 rm -f conftest.er1
3551 cat conftest.err >&5
3552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_c_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
3557 :
3558 else
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3563 CFLAGS="-g"
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570
3571 int
3572 main ()
3573 {
3574
3575 ;
3576 return 0;
3577 }
3578 _ACEOF
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3586 $as_echo "$ac_try_echo") >&5
3587 (eval "$ac_compile") 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } && {
3594 test -z "$ac_c_werror_flag" ||
3595 test ! -s conftest.err
3596 } && test -s conftest.$ac_objext; then
3597 ac_cv_prog_cc_g=yes
3598 else
3599 $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602
3603 fi
3604
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_c_werror_flag=$ac_save_c_werror_flag
3613 fi
3614 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3615 $as_echo "$ac_cv_prog_cc_g" >&6; }
3616 if test "$ac_test_CFLAGS" = set; then
3617 CFLAGS=$ac_save_CFLAGS
3618 elif test $ac_cv_prog_cc_g = yes; then
3619 if test "$GCC" = yes; then
3620 CFLAGS="-g -O2"
3621 else
3622 CFLAGS="-g"
3623 fi
3624 else
3625 if test "$GCC" = yes; then
3626 CFLAGS="-O2"
3627 else
3628 CFLAGS=
3629 fi
3630 fi
3631 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3632 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3633 if test "${ac_cv_prog_cc_c89+set}" = set; then
3634 $as_echo_n "(cached) " >&6
3635 else
3636 ac_cv_prog_cc_c89=no
3637 ac_save_CC=$CC
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 #include <stdarg.h>
3645 #include <stdio.h>
3646 #include <sys/types.h>
3647 #include <sys/stat.h>
3648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3649 struct buf { int x; };
3650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3651 static char *e (p, i)
3652 char **p;
3653 int i;
3654 {
3655 return p[i];
3656 }
3657 static char *f (char * (*g) (char **, int), char **p, ...)
3658 {
3659 char *s;
3660 va_list v;
3661 va_start (v,p);
3662 s = g (p, va_arg (v,int));
3663 va_end (v);
3664 return s;
3665 }
3666
3667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3668 function prototypes and stuff, but not '\xHH' hex character constants.
3669 These don't provoke an error unfortunately, instead are silently treated
3670 as 'x'. The following induces an error, until -std is added to get
3671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3672 array size at least. It's necessary to write '\x00'==0 to get something
3673 that's true only with -std. */
3674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3675
3676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3677 inside strings and character constants. */
3678 #define FOO(x) 'x'
3679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3680
3681 int test (int i, double x);
3682 struct s1 {int (*f) (int a);};
3683 struct s2 {int (*f) (double a);};
3684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3685 int argc;
3686 char **argv;
3687 int
3688 main ()
3689 {
3690 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3697 do
3698 CC="$ac_save_CC $ac_arg"
3699 rm -f conftest.$ac_objext
3700 if { (ac_try="$ac_compile"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } && {
3714 test -z "$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 } && test -s conftest.$ac_objext; then
3717 ac_cv_prog_cc_c89=$ac_arg
3718 else
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722
3723 fi
3724
3725 rm -f core conftest.err conftest.$ac_objext
3726 test "x$ac_cv_prog_cc_c89" != "xno" && break
3727 done
3728 rm -f conftest.$ac_ext
3729 CC=$ac_save_CC
3730
3731 fi
3732 # AC_CACHE_VAL
3733 case "x$ac_cv_prog_cc_c89" in
3734 x)
3735 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3736 $as_echo "none needed" >&6; } ;;
3737 xno)
3738 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3739 $as_echo "unsupported" >&6; } ;;
3740 *)
3741 CC="$CC $ac_cv_prog_cc_c89"
3742 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744 esac
3745
3746
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753 # Find a good install program. We prefer a C program (faster),
3754 # so one script is as good as another. But avoid the broken or
3755 # incompatible versions:
3756 # SysV /etc/install, /usr/sbin/install
3757 # SunOS /usr/etc/install
3758 # IRIX /sbin/install
3759 # AIX /bin/install
3760 # AmigaOS /C/install, which installs bootblocks on floppy discs
3761 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3762 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3763 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3764 # OS/2's system install, which has a completely different semantic
3765 # ./install, which can be erroneously created by make from ./install.sh.
3766 # Reject install programs that cannot install multiple files.
3767 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3768 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3769 if test -z "$INSTALL"; then
3770 if test "${ac_cv_path_install+set}" = set; then
3771 $as_echo_n "(cached) " >&6
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 # Account for people who put trailing slashes in PATH elements.
3779 case $as_dir/ in
3780 ./ | .// | /cC/* | \
3781 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3782 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3783 /usr/ucb/* ) ;;
3784 *)
3785 # OSF1 and SCO ODT 3.0 have their own names for install.
3786 # Don't use installbsd from OSF since it installs stuff as root
3787 # by default.
3788 for ac_prog in ginstall scoinst install; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3791 if test $ac_prog = install &&
3792 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3793 # AIX install. It has an incompatible calling convention.
3794 :
3795 elif test $ac_prog = install &&
3796 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3797 # program-specific install script used by HP pwplus--don't use.
3798 :
3799 else
3800 rm -rf conftest.one conftest.two conftest.dir
3801 echo one > conftest.one
3802 echo two > conftest.two
3803 mkdir conftest.dir
3804 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3805 test -s conftest.one && test -s conftest.two &&
3806 test -s conftest.dir/conftest.one &&
3807 test -s conftest.dir/conftest.two
3808 then
3809 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3810 break 3
3811 fi
3812 fi
3813 fi
3814 done
3815 done
3816 ;;
3817 esac
3818
3819 done
3820 IFS=$as_save_IFS
3821
3822 rm -rf conftest.one conftest.two conftest.dir
3823
3824 fi
3825 if test "${ac_cv_path_install+set}" = set; then
3826 INSTALL=$ac_cv_path_install
3827 else
3828 # As a last resort, use the slow shell script. Don't cache a
3829 # value for INSTALL within a source directory, because that will
3830 # break other packages using the cache if that directory is
3831 # removed, or if the value is a relative name.
3832 INSTALL=$ac_install_sh
3833 fi
3834 fi
3835 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3836 $as_echo "$INSTALL" >&6; }
3837
3838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3839 # It thinks the first close brace ends the variable substitution.
3840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3841
3842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3843
3844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3845
3846 if test -n "$ac_tool_prefix"; then
3847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_RANLIB+set}" = set; then
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$RANLIB"; then
3855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3867 fi
3868 done
3869 done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 RANLIB=$ac_cv_prog_RANLIB
3875 if test -n "$RANLIB"; then
3876 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3877 $as_echo "$RANLIB" >&6; }
3878 else
3879 { $as_echo "$as_me:$LINENO: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884 fi
3885 if test -z "$ac_cv_prog_RANLIB"; then
3886 ac_ct_RANLIB=$RANLIB
3887 # Extract the first word of "ranlib", so it can be a program name with args.
3888 set dummy ranlib; ac_word=$2
3889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$ac_ct_RANLIB"; then
3895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904 ac_cv_prog_ac_ct_RANLIB="ranlib"
3905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3907 fi
3908 done
3909 done
3910 IFS=$as_save_IFS
3911
3912 fi
3913 fi
3914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3915 if test -n "$ac_ct_RANLIB"; then
3916 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3917 $as_echo "$ac_ct_RANLIB" >&6; }
3918 else
3919 { $as_echo "$as_me:$LINENO: result: no" >&5
3920 $as_echo "no" >&6; }
3921 fi
3922
3923 if test "x$ac_ct_RANLIB" = x; then
3924 RANLIB=":"
3925 else
3926 case $cross_compiling:$ac_tool_warned in
3927 yes:)
3928 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3930 ac_tool_warned=yes ;;
3931 esac
3932 RANLIB=$ac_ct_RANLIB
3933 fi
3934 else
3935 RANLIB="$ac_cv_prog_RANLIB"
3936 fi
3937
3938
3939
3940 if test "$RANLIB" != ":"; then
3941 LIBCOMMAND="ar cr"
3942 else
3943 LIBCOMMAND="ar crs"
3944 fi
3945
3946 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3947 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3948 set x ${MAKE-make}
3949 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3950 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3951 $as_echo_n "(cached) " >&6
3952 else
3953 cat >conftest.make <<\_ACEOF
3954 SHELL = /bin/sh
3955 all:
3956 @echo '@@@%%%=$(MAKE)=@@@%%%'
3957 _ACEOF
3958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3960 *@@@%%%=?*=@@@%%%*)
3961 eval ac_cv_prog_make_${ac_make}_set=yes;;
3962 *)
3963 eval ac_cv_prog_make_${ac_make}_set=no;;
3964 esac
3965 rm -f conftest.make
3966 fi
3967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3968 { $as_echo "$as_me:$LINENO: result: yes" >&5
3969 $as_echo "yes" >&6; }
3970 SET_MAKE=
3971 else
3972 { $as_echo "$as_me:$LINENO: result: no" >&5
3973 $as_echo "no" >&6; }
3974 SET_MAKE="MAKE=${MAKE-make}"
3975 fi
3976
3977
3978
3979 { $as_echo "$as_me:$LINENO: checking whether the compiler supports member templates" >&5
3980 $as_echo_n "checking whether the compiler supports member templates... " >&6; }
3981 if test "${ac_cv_cxx_member_templates+set}" = set; then
3982 $as_echo_n "(cached) " >&6
3983 else
3984
3985 ac_ext=cpp
3986 ac_cpp='$CXXCPP $CPPFLAGS'
3987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3990
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h. */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997
3998 template<class T, int N> class A
3999 { public:
4000 template<int N2> A<T,N> operator=(const A<T,N2>& z) { return A<T,N>(); }
4001 };
4002 int
4003 main ()
4004 {
4005 A<double,4> x; A<double,7> y; x = y; return 0;
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 rm -f conftest.$ac_objext
4011 if { (ac_try="$ac_compile"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4017 $as_echo "$ac_try_echo") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_cxx_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest.$ac_objext; then
4028 ac_cv_cxx_member_templates=yes
4029 else
4030 $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 ac_cv_cxx_member_templates=no
4034 fi
4035
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043
4044 fi
4045 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_member_templates" >&5
4046 $as_echo "$ac_cv_cxx_member_templates" >&6; }
4047 if test "$ac_cv_cxx_member_templates" = yes; then
4048
4049 cat >>confdefs.h <<\_ACEOF
4050 #define HAVE_MEMBER_TEMPLATES /**/
4051 _ACEOF
4052
4053 fi
4054
4055 { $as_echo "$as_me:$LINENO: checking whether the compiler supports use of the template keyword as a qualifier" >&5
4056 $as_echo_n "checking whether the compiler supports use of the template keyword as a qualifier... " >&6; }
4057 if test "${ac_cv_cxx_template_keyword_qualifier+set}" = set; then
4058 $as_echo_n "(cached) " >&6
4059 else
4060
4061 ac_ext=cpp
4062 ac_cpp='$CXXCPP $CPPFLAGS'
4063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073
4074 class A { public : A() {}; template<class T> static T convert() { return T(); }
4075 };
4076
4077 int
4078 main ()
4079 {
4080 double z = A::template convert<double>(); return 0;
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4092 $as_echo "$ac_try_echo") >&5
4093 (eval "$ac_compile") 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } && {
4100 test -z "$ac_cxx_werror_flag" ||
4101 test ! -s conftest.err
4102 } && test -s conftest.$ac_objext; then
4103 ac_cv_cxx_template_keyword_qualifier=yes
4104 else
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 ac_cv_cxx_template_keyword_qualifier=no
4109 fi
4110
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117
4118
4119 fi
4120 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_template_keyword_qualifier" >&5
4121 $as_echo "$ac_cv_cxx_template_keyword_qualifier" >&6; }
4122 if test "$ac_cv_cxx_template_keyword_qualifier" = yes; then
4123
4124 cat >>confdefs.h <<\_ACEOF
4125 #define HAVE_TEMPLATE_KEYWORD_QUALIFIER /**/
4126 _ACEOF
4127
4128 fi
4129
4130 { $as_echo "$as_me:$LINENO: checking whether the compiler supports templates as template arguments" >&5
4131 $as_echo_n "checking whether the compiler supports templates as template arguments... " >&6; }
4132 if test "${ac_cv_cxx_templates_as_template_arguments+set}" = set; then
4133 $as_echo_n "(cached) " >&6
4134 else
4135
4136 ac_ext=cpp
4137 ac_cpp='$CXXCPP $CPPFLAGS'
4138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4141
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148
4149 template<class T> class allocator { public : allocator() {}; };
4150 template<class X, template<class Y> class T_alloc>
4151 class A { public : A() {} private : T_alloc<X> alloc_; };
4152
4153 int
4154 main ()
4155 {
4156 A<double, allocator> x; return 0;
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4163 case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166 esac
4167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4168 $as_echo "$ac_try_echo") >&5
4169 (eval "$ac_compile") 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } && {
4176 test -z "$ac_cxx_werror_flag" ||
4177 test ! -s conftest.err
4178 } && test -s conftest.$ac_objext; then
4179 ac_cv_cxx_templates_as_template_arguments=yes
4180 else
4181 $as_echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 ac_cv_cxx_templates_as_template_arguments=no
4185 fi
4186
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193
4194
4195 fi
4196 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_templates_as_template_arguments" >&5
4197 $as_echo "$ac_cv_cxx_templates_as_template_arguments" >&6; }
4198 if test "$ac_cv_cxx_templates_as_template_arguments" = yes; then
4199
4200 cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_TEMPLATES_AS_TEMPLATE_ARGUMENTS /**/
4202 _ACEOF
4203
4204 fi
4205
4206 { $as_echo "$as_me:$LINENO: checking whether the compiler supports default template parameters" >&5
4207 $as_echo_n "checking whether the compiler supports default template parameters... " >&6; }
4208 if test "${ac_cv_cxx_default_template_parameters+set}" = set; then
4209 $as_echo_n "(cached) " >&6
4210 else
4211
4212 ac_ext=cpp
4213 ac_cpp='$CXXCPP $CPPFLAGS'
4214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4217
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h. */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224
4225 template<class T = double, int N = 10> class A {public: int f() {return 0;}};
4226
4227 int
4228 main ()
4229 {
4230 A<float> a; return a.f();
4231 ;
4232 return 0;
4233 }
4234 _ACEOF
4235 rm -f conftest.$ac_objext
4236 if { (ac_try="$ac_compile"
4237 case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4242 $as_echo "$ac_try_echo") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && {
4250 test -z "$ac_cxx_werror_flag" ||
4251 test ! -s conftest.err
4252 } && test -s conftest.$ac_objext; then
4253 ac_cv_cxx_default_template_parameters=yes
4254 else
4255 $as_echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 ac_cv_cxx_default_template_parameters=no
4259 fi
4260
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268
4269 fi
4270 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_default_template_parameters" >&5
4271 $as_echo "$ac_cv_cxx_default_template_parameters" >&6; }
4272 if test "$ac_cv_cxx_default_template_parameters" = yes; then
4273
4274 cat >>confdefs.h <<\_ACEOF
4275 #define HAVE_DEFAULT_TEMPLATE_PARAMETERS /**/
4276 _ACEOF
4277
4278 fi
4279
4280 { $as_echo "$as_me:$LINENO: checking whether the compiler supports standard char traits" >&5
4281 $as_echo_n "checking whether the compiler supports standard char traits... " >&6; }
4282 if test "${ac_cv_cxx_standard_char_traits+set}" = set; then
4283 $as_echo_n "(cached) " >&6
4284 else
4285
4286 ac_ext=cpp
4287 ac_cpp='$CXXCPP $CPPFLAGS'
4288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4291
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298
4299 #include <string>
4300 template<class charT, class traits = std::char_traits <charT> > class A {public: charT f() {return 'c';}};
4301
4302 int
4303 main ()
4304 {
4305 A<char> a; return a.f();
4306 ;
4307 return 0;
4308 }
4309 _ACEOF
4310 rm -f conftest.$ac_objext
4311 if { (ac_try="$ac_compile"
4312 case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4317 $as_echo "$ac_try_echo") >&5
4318 (eval "$ac_compile") 2>conftest.er1
4319 ac_status=$?
4320 grep -v '^ *+' conftest.er1 >conftest.err
4321 rm -f conftest.er1
4322 cat conftest.err >&5
4323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && {
4325 test -z "$ac_cxx_werror_flag" ||
4326 test ! -s conftest.err
4327 } && test -s conftest.$ac_objext; then
4328 ac_cv_cxx_standard_char_traits=yes
4329 else
4330 $as_echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 ac_cv_cxx_standard_char_traits=no
4334 fi
4335
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342
4343
4344 fi
4345 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_standard_char_traits" >&5
4346 $as_echo "$ac_cv_cxx_standard_char_traits" >&6; }
4347 if test "$ac_cv_cxx_standard_char_traits" = yes; then
4348
4349 cat >>confdefs.h <<\_ACEOF
4350 #define HAVE_STANDARD_CHAR_TRAITS /**/
4351 _ACEOF
4352
4353 fi
4354
4355
4356 { $as_echo "$as_me:$LINENO: checking whether the compiler accepts array type casts in templates" >&5
4357 $as_echo_n "checking whether the compiler accepts array type casts in templates... " >&6; }
4358 if test "${ac_cv_cxx_template_cast_array+set}" = set; then
4359 $as_echo_n "(cached) " >&6
4360 else
4361
4362 ac_ext=cpp
4363 ac_cpp='$CXXCPP $CPPFLAGS'
4364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4367
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374
4375 typedef unsigned char uchar; template <class T> void testfeeble0(void *p, T dummy) { uchar (*q)[256] = (uchar (*)[256]) p;}
4376
4377 int
4378 main ()
4379 {
4380 uchar a[3][256], d; testfeeble0<uchar>(a,d); return 0;
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (ac_try="$ac_compile"
4387 case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4392 $as_echo "$ac_try_echo") >&5
4393 (eval "$ac_compile") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && {
4400 test -z "$ac_cxx_werror_flag" ||
4401 test ! -s conftest.err
4402 } && test -s conftest.$ac_objext; then
4403 ac_cv_cxx_template_cast_array=yes
4404 else
4405 $as_echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 ac_cv_cxx_template_cast_array=no
4409 fi
4410
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 ac_ext=c
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417
4418
4419 fi
4420 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_template_cast_array" >&5
4421 $as_echo "$ac_cv_cxx_template_cast_array" >&6; }
4422 if test "$ac_cv_cxx_template_cast_array" = yes; then
4423
4424 cat >>confdefs.h <<\_ACEOF
4425 #define HAVE_TEMPLATE_CAST_ARRAY /**/
4426 _ACEOF
4427
4428 fi
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438 ac_header_dirent=no
4439 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4440 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4441 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4442 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4444 $as_echo_n "(cached) " >&6
4445 else
4446 cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h. */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 #include <sys/types.h>
4453 #include <$ac_hdr>
4454
4455 int
4456 main ()
4457 {
4458 if ((DIR *) 0)
4459 return 0;
4460 ;
4461 return 0;
4462 }
4463 _ACEOF
4464 rm -f conftest.$ac_objext
4465 if { (ac_try="$ac_compile"
4466 case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469 esac
4470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4471 $as_echo "$ac_try_echo") >&5
4472 (eval "$ac_compile") 2>conftest.er1
4473 ac_status=$?
4474 grep -v '^ *+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } && {
4479 test -z "$ac_c_werror_flag" ||
4480 test ! -s conftest.err
4481 } && test -s conftest.$ac_objext; then
4482 eval "$as_ac_Header=yes"
4483 else
4484 $as_echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 eval "$as_ac_Header=no"
4488 fi
4489
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 fi
4492 ac_res=`eval 'as_val=${'$as_ac_Header'}
4493 $as_echo "$as_val"'`
4494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4495 $as_echo "$ac_res" >&6; }
4496 as_val=`eval 'as_val=${'$as_ac_Header'}
4497 $as_echo "$as_val"'`
4498 if test "x$as_val" = x""yes; then
4499 cat >>confdefs.h <<_ACEOF
4500 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4501 _ACEOF
4502
4503 ac_header_dirent=$ac_hdr; break
4504 fi
4505
4506 done
4507 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4508 if test $ac_header_dirent = dirent.h; then
4509 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4510 $as_echo_n "checking for library containing opendir... " >&6; }
4511 if test "${ac_cv_search_opendir+set}" = set; then
4512 $as_echo_n "(cached) " >&6
4513 else
4514 ac_func_search_save_LIBS=$LIBS
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521
4522 /* Override any GCC internal prototype to avoid an error.
4523 Use char because int might match the return type of a GCC
4524 builtin and then its argument prototype would still apply. */
4525 #ifdef __cplusplus
4526 extern "C"
4527 #endif
4528 char opendir ();
4529 int
4530 main ()
4531 {
4532 return opendir ();
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 for ac_lib in '' dir; do
4538 if test -z "$ac_lib"; then
4539 ac_res="none required"
4540 else
4541 ac_res=-l$ac_lib
4542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4543 fi
4544 rm -f conftest.$ac_objext conftest$ac_exeext
4545 if { (ac_try="$ac_link"
4546 case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552 (eval "$ac_link") 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && {
4559 test -z "$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4561 } && test -s conftest$ac_exeext && {
4562 test "$cross_compiling" = yes ||
4563 $as_test_x conftest$ac_exeext
4564 }; then
4565 ac_cv_search_opendir=$ac_res
4566 else
4567 $as_echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570
4571 fi
4572
4573 rm -rf conftest.dSYM
4574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4575 conftest$ac_exeext
4576 if test "${ac_cv_search_opendir+set}" = set; then
4577 break
4578 fi
4579 done
4580 if test "${ac_cv_search_opendir+set}" = set; then
4581 :
4582 else
4583 ac_cv_search_opendir=no
4584 fi
4585 rm conftest.$ac_ext
4586 LIBS=$ac_func_search_save_LIBS
4587 fi
4588 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4589 $as_echo "$ac_cv_search_opendir" >&6; }
4590 ac_res=$ac_cv_search_opendir
4591 if test "$ac_res" != no; then
4592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4593
4594 fi
4595
4596 else
4597 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4598 $as_echo_n "checking for library containing opendir... " >&6; }
4599 if test "${ac_cv_search_opendir+set}" = set; then
4600 $as_echo_n "(cached) " >&6
4601 else
4602 ac_func_search_save_LIBS=$LIBS
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609
4610 /* Override any GCC internal prototype to avoid an error.
4611 Use char because int might match the return type of a GCC
4612 builtin and then its argument prototype would still apply. */
4613 #ifdef __cplusplus
4614 extern "C"
4615 #endif
4616 char opendir ();
4617 int
4618 main ()
4619 {
4620 return opendir ();
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 for ac_lib in '' x; do
4626 if test -z "$ac_lib"; then
4627 ac_res="none required"
4628 else
4629 ac_res=-l$ac_lib
4630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4631 fi
4632 rm -f conftest.$ac_objext conftest$ac_exeext
4633 if { (ac_try="$ac_link"
4634 case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4639 $as_echo "$ac_try_echo") >&5
4640 (eval "$ac_link") 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } && {
4647 test -z "$ac_c_werror_flag" ||
4648 test ! -s conftest.err
4649 } && test -s conftest$ac_exeext && {
4650 test "$cross_compiling" = yes ||
4651 $as_test_x conftest$ac_exeext
4652 }; then
4653 ac_cv_search_opendir=$ac_res
4654 else
4655 $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658
4659 fi
4660
4661 rm -rf conftest.dSYM
4662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4663 conftest$ac_exeext
4664 if test "${ac_cv_search_opendir+set}" = set; then
4665 break
4666 fi
4667 done
4668 if test "${ac_cv_search_opendir+set}" = set; then
4669 :
4670 else
4671 ac_cv_search_opendir=no
4672 fi
4673 rm conftest.$ac_ext
4674 LIBS=$ac_func_search_save_LIBS
4675 fi
4676 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4677 $as_echo "$ac_cv_search_opendir" >&6; }
4678 ac_res=$ac_cv_search_opendir
4679 if test "$ac_res" != no; then
4680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4681
4682 fi
4683
4684 fi
4685
4686
4687
4688 ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4694 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4695 # On Suns, sometimes $CPP names a directory.
4696 if test -n "$CPP" && test -d "$CPP"; then
4697 CPP=
4698 fi
4699 if test -z "$CPP"; then
4700 if test "${ac_cv_prog_CPP+set}" = set; then
4701 $as_echo_n "(cached) " >&6
4702 else
4703 # Double quotes because CPP needs to be expanded
4704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4705 do
4706 ac_preproc_ok=false
4707 for ac_c_preproc_warn_flag in '' yes
4708 do
4709 # Use a header file that comes with gcc, so configuring glibc
4710 # with a fresh cross-compiler works.
4711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712 # <limits.h> exists even on freestanding compilers.
4713 # On the NeXT, cc -E runs the code through the compiler's parser,
4714 # not just through cpp. "Syntax error" is here to catch this case.
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #ifdef __STDC__
4722 # include <limits.h>
4723 #else
4724 # include <assert.h>
4725 #endif
4726 Syntax error
4727 _ACEOF
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4729 case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4734 $as_echo "$ac_try_echo") >&5
4735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev/null && {
4742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4744 }; then
4745 :
4746 else
4747 $as_echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 # Broken: fails on valid input.
4751 continue
4752 fi
4753
4754 rm -f conftest.err conftest.$ac_ext
4755
4756 # OK, works on sane cases. Now check whether nonexistent headers
4757 # can be detected and how.
4758 cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h. */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 #include <ac_nonexistent.h>
4765 _ACEOF
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4772 $as_echo "$ac_try_echo") >&5
4773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } >/dev/null && {
4780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4782 }; then
4783 # Broken: success on invalid input.
4784 continue
4785 else
4786 $as_echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 # Passes both tests.
4790 ac_preproc_ok=:
4791 break
4792 fi
4793
4794 rm -f conftest.err conftest.$ac_ext
4795
4796 done
4797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4798 rm -f conftest.err conftest.$ac_ext
4799 if $ac_preproc_ok; then
4800 break
4801 fi
4802
4803 done
4804 ac_cv_prog_CPP=$CPP
4805
4806 fi
4807 CPP=$ac_cv_prog_CPP
4808 else
4809 ac_cv_prog_CPP=$CPP
4810 fi
4811 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4812 $as_echo "$CPP" >&6; }
4813 ac_preproc_ok=false
4814 for ac_c_preproc_warn_flag in '' yes
4815 do
4816 # Use a header file that comes with gcc, so configuring glibc
4817 # with a fresh cross-compiler works.
4818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4819 # <limits.h> exists even on freestanding compilers.
4820 # On the NeXT, cc -E runs the code through the compiler's parser,
4821 # not just through cpp. "Syntax error" is here to catch this case.
4822 cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h. */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 #ifdef __STDC__
4829 # include <limits.h>
4830 #else
4831 # include <assert.h>
4832 #endif
4833 Syntax error
4834 _ACEOF
4835 if { (ac_try="$ac_cpp conftest.$ac_ext"
4836 case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4841 $as_echo "$ac_try_echo") >&5
4842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } >/dev/null && {
4849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4850 test ! -s conftest.err
4851 }; then
4852 :
4853 else
4854 $as_echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4856
4857 # Broken: fails on valid input.
4858 continue
4859 fi
4860
4861 rm -f conftest.err conftest.$ac_ext
4862
4863 # OK, works on sane cases. Now check whether nonexistent headers
4864 # can be detected and how.
4865 cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h. */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4871 #include <ac_nonexistent.h>
4872 _ACEOF
4873 if { (ac_try="$ac_cpp conftest.$ac_ext"
4874 case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877 esac
4878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4879 $as_echo "$ac_try_echo") >&5
4880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } >/dev/null && {
4887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 }; then
4890 # Broken: success on invalid input.
4891 continue
4892 else
4893 $as_echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4895
4896 # Passes both tests.
4897 ac_preproc_ok=:
4898 break
4899 fi
4900
4901 rm -f conftest.err conftest.$ac_ext
4902
4903 done
4904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4905 rm -f conftest.err conftest.$ac_ext
4906 if $ac_preproc_ok; then
4907 :
4908 else
4909 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4911 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4912 See \`config.log' for more details." >&5
4913 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4914 See \`config.log' for more details." >&2;}
4915 { (exit 1); exit 1; }; }; }
4916 fi
4917
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923
4924
4925 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4926 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4927 if test "${ac_cv_path_GREP+set}" = set; then
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -z "$GREP"; then
4931 ac_path_GREP_found=false
4932 # Loop through the user's path and test for each of PROGNAME-LIST
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4935 do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_prog in grep ggrep; do
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4941 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4942 # Check for GNU ac_path_GREP and select it if it is found.
4943 # Check for GNU $ac_path_GREP
4944 case `"$ac_path_GREP" --version 2>&1` in
4945 *GNU*)
4946 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4947 *)
4948 ac_count=0
4949 $as_echo_n 0123456789 >"conftest.in"
4950 while :
4951 do
4952 cat "conftest.in" "conftest.in" >"conftest.tmp"
4953 mv "conftest.tmp" "conftest.in"
4954 cp "conftest.in" "conftest.nl"
4955 $as_echo 'GREP' >> "conftest.nl"
4956 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4958 ac_count=`expr $ac_count + 1`
4959 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4960 # Best one so far, save it but keep looking for a better one
4961 ac_cv_path_GREP="$ac_path_GREP"
4962 ac_path_GREP_max=$ac_count
4963 fi
4964 # 10*(2^10) chars as input seems more than enough
4965 test $ac_count -gt 10 && break
4966 done
4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4968 esac
4969
4970 $ac_path_GREP_found && break 3
4971 done
4972 done
4973 done
4974 IFS=$as_save_IFS
4975 if test -z "$ac_cv_path_GREP"; then
4976 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4977 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4978 { (exit 1); exit 1; }; }
4979 fi
4980 else
4981 ac_cv_path_GREP=$GREP
4982 fi
4983
4984 fi
4985 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4986 $as_echo "$ac_cv_path_GREP" >&6; }
4987 GREP="$ac_cv_path_GREP"
4988
4989
4990 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4991 $as_echo_n "checking for egrep... " >&6; }
4992 if test "${ac_cv_path_EGREP+set}" = set; then
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4996 then ac_cv_path_EGREP="$GREP -E"
4997 else
4998 if test -z "$EGREP"; then
4999 ac_path_EGREP_found=false
5000 # Loop through the user's path and test for each of PROGNAME-LIST
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5003 do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_prog in egrep; do
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5009 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5010 # Check for GNU ac_path_EGREP and select it if it is found.
5011 # Check for GNU $ac_path_EGREP
5012 case `"$ac_path_EGREP" --version 2>&1` in
5013 *GNU*)
5014 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5015 *)
5016 ac_count=0
5017 $as_echo_n 0123456789 >"conftest.in"
5018 while :
5019 do
5020 cat "conftest.in" "conftest.in" >"conftest.tmp"
5021 mv "conftest.tmp" "conftest.in"
5022 cp "conftest.in" "conftest.nl"
5023 $as_echo 'EGREP' >> "conftest.nl"
5024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5026 ac_count=`expr $ac_count + 1`
5027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5028 # Best one so far, save it but keep looking for a better one
5029 ac_cv_path_EGREP="$ac_path_EGREP"
5030 ac_path_EGREP_max=$ac_count
5031 fi
5032 # 10*(2^10) chars as input seems more than enough
5033 test $ac_count -gt 10 && break
5034 done
5035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5036 esac
5037
5038 $ac_path_EGREP_found && break 3
5039 done
5040 done
5041 done
5042 IFS=$as_save_IFS
5043 if test -z "$ac_cv_path_EGREP"; then
5044 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5045 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5046 { (exit 1); exit 1; }; }
5047 fi
5048 else
5049 ac_cv_path_EGREP=$EGREP
5050 fi
5051
5052 fi
5053 fi
5054 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5055 $as_echo "$ac_cv_path_EGREP" >&6; }
5056 EGREP="$ac_cv_path_EGREP"
5057
5058
5059 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5060 $as_echo_n "checking for ANSI C header files... " >&6; }
5061 if test "${ac_cv_header_stdc+set}" = set; then
5062 $as_echo_n "(cached) " >&6
5063 else
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <stdlib.h>
5071 #include <stdarg.h>
5072 #include <string.h>
5073 #include <float.h>
5074
5075 int
5076 main ()
5077 {
5078
5079 ;
5080 return 0;
5081 }
5082 _ACEOF
5083 rm -f conftest.$ac_objext
5084 if { (ac_try="$ac_compile"
5085 case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088 esac
5089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5090 $as_echo "$ac_try_echo") >&5
5091 (eval "$ac_compile") 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest.$ac_objext; then
5101 ac_cv_header_stdc=yes
5102 else
5103 $as_echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5105
5106 ac_cv_header_stdc=no
5107 fi
5108
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110
5111 if test $ac_cv_header_stdc = yes; then
5112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5113 cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h. */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 #include <string.h>
5120
5121 _ACEOF
5122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5123 $EGREP "memchr" >/dev/null 2>&1; then
5124 :
5125 else
5126 ac_cv_header_stdc=no
5127 fi
5128 rm -f conftest*
5129
5130 fi
5131
5132 if test $ac_cv_header_stdc = yes; then
5133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #include <stdlib.h>
5141
5142 _ACEOF
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "free" >/dev/null 2>&1; then
5145 :
5146 else
5147 ac_cv_header_stdc=no
5148 fi
5149 rm -f conftest*
5150
5151 fi
5152
5153 if test $ac_cv_header_stdc = yes; then
5154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5155 if test "$cross_compiling" = yes; then
5156 :
5157 else
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h. */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #include <ctype.h>
5165 #include <stdlib.h>
5166 #if ((' ' & 0x0FF) == 0x020)
5167 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5168 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5169 #else
5170 # define ISLOWER(c) \
5171 (('a' <= (c) && (c) <= 'i') \
5172 || ('j' <= (c) && (c) <= 'r') \
5173 || ('s' <= (c) && (c) <= 'z'))
5174 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5175 #endif
5176
5177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5178 int
5179 main ()
5180 {
5181 int i;
5182 for (i = 0; i < 256; i++)
5183 if (XOR (islower (i), ISLOWER (i))
5184 || toupper (i) != TOUPPER (i))
5185 return 2;
5186 return 0;
5187 }
5188 _ACEOF
5189 rm -f conftest$ac_exeext
5190 if { (ac_try="$ac_link"
5191 case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194 esac
5195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5196 $as_echo "$ac_try_echo") >&5
5197 (eval "$ac_link") 2>&5
5198 ac_status=$?
5199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5201 { (case "(($ac_try" in
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5204 esac
5205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5206 $as_echo "$ac_try_echo") >&5
5207 (eval "$ac_try") 2>&5
5208 ac_status=$?
5209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 :
5212 else
5213 $as_echo "$as_me: program exited with status $ac_status" >&5
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5216
5217 ( exit $ac_status )
5218 ac_cv_header_stdc=no
5219 fi
5220 rm -rf conftest.dSYM
5221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5222 fi
5223
5224
5225 fi
5226 fi
5227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5228 $as_echo "$ac_cv_header_stdc" >&6; }
5229 if test $ac_cv_header_stdc = yes; then
5230
5231 cat >>confdefs.h <<\_ACEOF
5232 #define STDC_HEADERS 1
5233 _ACEOF
5234
5235 fi
5236
5237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5248 inttypes.h stdint.h unistd.h
5249 do
5250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5251 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5252 $as_echo_n "checking for $ac_header... " >&6; }
5253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5254 $as_echo_n "(cached) " >&6
5255 else
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h. */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 $ac_includes_default
5263
5264 #include <$ac_header>
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (ac_try="$ac_compile"
5268 case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5273 $as_echo "$ac_try_echo") >&5
5274 (eval "$ac_compile") 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && {
5281 test -z "$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5283 } && test -s conftest.$ac_objext; then
5284 eval "$as_ac_Header=yes"
5285 else
5286 $as_echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5288
5289 eval "$as_ac_Header=no"
5290 fi
5291
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 fi
5294 ac_res=`eval 'as_val=${'$as_ac_Header'}
5295 $as_echo "$as_val"'`
5296 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5297 $as_echo "$ac_res" >&6; }
5298 as_val=`eval 'as_val=${'$as_ac_Header'}
5299 $as_echo "$as_val"'`
5300 if test "x$as_val" = x""yes; then
5301 cat >>confdefs.h <<_ACEOF
5302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5303 _ACEOF
5304
5305 fi
5306
5307 done
5308
5309
5310 if test "${ac_cv_header_sys_select_h+set}" = set; then
5311 { $as_echo "$as_me:$LINENO: checking for sys/select.h" >&5
5312 $as_echo_n "checking for sys/select.h... " >&6; }
5313 if test "${ac_cv_header_sys_select_h+set}" = set; then
5314 $as_echo_n "(cached) " >&6
5315 fi
5316 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
5317 $as_echo "$ac_cv_header_sys_select_h" >&6; }
5318 else
5319 # Is the header compilable?
5320 { $as_echo "$as_me:$LINENO: checking sys/select.h usability" >&5
5321 $as_echo_n "checking sys/select.h usability... " >&6; }
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 $ac_includes_default
5329 #include <sys/select.h>
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (ac_try="$ac_compile"
5333 case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336 esac
5337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5338 $as_echo "$ac_try_echo") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_header_compiler=yes
5350 else
5351 $as_echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ac_header_compiler=no
5355 fi
5356
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 $as_echo "$ac_header_compiler" >&6; }
5360
5361 # Is the header present?
5362 { $as_echo "$as_me:$LINENO: checking sys/select.h presence" >&5
5363 $as_echo_n "checking sys/select.h presence... " >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <sys/select.h>
5371 _ACEOF
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5378 $as_echo "$ac_try_echo") >&5
5379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } >/dev/null && {
5386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5387 test ! -s conftest.err
5388 }; then
5389 ac_header_preproc=yes
5390 else
5391 $as_echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394 ac_header_preproc=no
5395 fi
5396
5397 rm -f conftest.err conftest.$ac_ext
5398 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5399 $as_echo "$ac_header_preproc" >&6; }
5400
5401 # So? What about this header?
5402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 yes:no: )
5404 { $as_echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
5405 $as_echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5406 { $as_echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
5407 $as_echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
5408 ac_header_preproc=yes
5409 ;;
5410 no:yes:* )
5411 { $as_echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
5412 $as_echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
5413 { $as_echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
5414 $as_echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
5415 { $as_echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
5416 $as_echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
5417 { $as_echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
5418 $as_echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
5419 { $as_echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
5420 $as_echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
5421 { $as_echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
5422 $as_echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
5423
5424 ;;
5425 esac
5426 { $as_echo "$as_me:$LINENO: checking for sys/select.h" >&5
5427 $as_echo_n "checking for sys/select.h... " >&6; }
5428 if test "${ac_cv_header_sys_select_h+set}" = set; then
5429 $as_echo_n "(cached) " >&6
5430 else
5431 ac_cv_header_sys_select_h=$ac_header_preproc
5432 fi
5433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
5434 $as_echo "$ac_cv_header_sys_select_h" >&6; }
5435
5436 fi
5437
5438
5439 if test "${ac_cv_header_winsock_h+set}" = set; then
5440 { $as_echo "$as_me:$LINENO: checking for winsock.h" >&5
5441 $as_echo_n "checking for winsock.h... " >&6; }
5442 if test "${ac_cv_header_winsock_h+set}" = set; then
5443 $as_echo_n "(cached) " >&6
5444 fi
5445 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
5446 $as_echo "$ac_cv_header_winsock_h" >&6; }
5447 else
5448 # Is the header compilable?
5449 { $as_echo "$as_me:$LINENO: checking winsock.h usability" >&5
5450 $as_echo_n "checking winsock.h usability... " >&6; }
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 $ac_includes_default
5458 #include <winsock.h>
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5462 case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5467 $as_echo "$ac_try_echo") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5478 ac_header_compiler=yes
5479 else
5480 $as_echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 ac_header_compiler=no
5484 fi
5485
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5488 $as_echo "$ac_header_compiler" >&6; }
5489
5490 # Is the header present?
5491 { $as_echo "$as_me:$LINENO: checking winsock.h presence" >&5
5492 $as_echo_n "checking winsock.h presence... " >&6; }
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <winsock.h>
5500 _ACEOF
5501 if { (ac_try="$ac_cpp conftest.$ac_ext"
5502 case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507 $as_echo "$ac_try_echo") >&5
5508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } >/dev/null && {
5515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 }; then
5518 ac_header_preproc=yes
5519 else
5520 $as_echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 ac_header_preproc=no
5524 fi
5525
5526 rm -f conftest.err conftest.$ac_ext
5527 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5528 $as_echo "$ac_header_preproc" >&6; }
5529
5530 # So? What about this header?
5531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5532 yes:no: )
5533 { $as_echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
5534 $as_echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5535 { $as_echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
5536 $as_echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
5537 ac_header_preproc=yes
5538 ;;
5539 no:yes:* )
5540 { $as_echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
5541 $as_echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
5542 { $as_echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
5543 $as_echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
5544 { $as_echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
5545 $as_echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
5546 { $as_echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
5547 $as_echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
5548 { $as_echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
5549 $as_echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
5550 { $as_echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
5551 $as_echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
5552
5553 ;;
5554 esac
5555 { $as_echo "$as_me:$LINENO: checking for winsock.h" >&5
5556 $as_echo_n "checking for winsock.h... " >&6; }
5557 if test "${ac_cv_header_winsock_h+set}" = set; then
5558 $as_echo_n "(cached) " >&6
5559 else
5560 ac_cv_header_winsock_h=$ac_header_preproc
5561 fi
5562 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
5563 $as_echo "$ac_cv_header_winsock_h" >&6; }
5564
5565 fi
5566
5567
5568
5569 { $as_echo "$as_me:$LINENO: checking whether accept uses socklen_t" >&5
5570 $as_echo_n "checking whether accept uses socklen_t... " >&6; }
5571 if test "${ac_cv_accept_uses_socklen_t_init+set}" = set; then
5572 $as_echo_n "(cached) " >&6
5573 else
5574
5575 ac_ext=c
5576 ac_cpp='$CPP $CPPFLAGS'
5577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5580
5581 cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h. */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587
5588 #include <stdio.h>
5589 #include <sys/types.h>
5590 #include <sys/socket.h>
5591 int
5592 main ()
5593 {
5594
5595 accept (1, NULL, (socklen_t*)NULL);
5596 return 0;
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5603 case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5608 $as_echo "$ac_try_echo") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest.$ac_objext; then
5619 ac_cv_accept_uses_socklen_t_init=yes
5620 else
5621 $as_echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5623
5624 acc_cv_accept_uses_socklen_t_init=no
5625 fi
5626
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 ac_ext=c
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633
5634
5635 fi
5636 { $as_echo "$as_me:$LINENO: result: $ac_cv_accept_uses_socklen_t_init" >&5
5637 $as_echo "$ac_cv_accept_uses_socklen_t_init" >&6; }
5638 if test "$ac_cv_accept_uses_socklen_t_init" = yes ; then
5639
5640 cat >>confdefs.h <<\_ACEOF
5641 #define ACCEPT_USES_SOCKLEN_T /**/
5642 _ACEOF
5643
5644 fi
5645
5646
5647 { $as_echo "$as_me:$LINENO: checking for scandir" >&5
5648 $as_echo_n "checking for scandir... " >&6; }
5649 if test "${ac_cv_func_scandir+set}" = set; then
5650 $as_echo_n "(cached) " >&6
5651 else
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 /* Define scandir to an innocuous variant, in case <limits.h> declares scandir.
5659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5660 #define scandir innocuous_scandir
5661
5662 /* System header to define __stub macros and hopefully few prototypes,
5663 which can conflict with char scandir (); below.
5664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665 <limits.h> exists even on freestanding compilers. */
5666
5667 #ifdef __STDC__
5668 # include <limits.h>
5669 #else
5670 # include <assert.h>
5671 #endif
5672
5673 #undef scandir
5674
5675 /* Override any GCC internal prototype to avoid an error.
5676 Use char because int might match the return type of a GCC
5677 builtin and then its argument prototype would still apply. */
5678 #ifdef __cplusplus
5679 extern "C"
5680 #endif
5681 char scandir ();
5682 /* The GNU C library defines this for functions which it implements
5683 to always fail with ENOSYS. Some functions are actually named
5684 something starting with __ and the normal name is an alias. */
5685 #if defined __stub_scandir || defined __stub___scandir
5686 choke me
5687 #endif
5688
5689 int
5690 main ()
5691 {
5692 return scandir ();
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 rm -f conftest.$ac_objext conftest$ac_exeext
5698 if { (ac_try="$ac_link"
5699 case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5704 $as_echo "$ac_try_echo") >&5
5705 (eval "$ac_link") 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && {
5712 test -z "$ac_c_werror_flag" ||
5713 test ! -s conftest.err
5714 } && test -s conftest$ac_exeext && {
5715 test "$cross_compiling" = yes ||
5716 $as_test_x conftest$ac_exeext
5717 }; then
5718 ac_cv_func_scandir=yes
5719 else
5720 $as_echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 ac_cv_func_scandir=no
5724 fi
5725
5726 rm -rf conftest.dSYM
5727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5728 conftest$ac_exeext conftest.$ac_ext
5729 fi
5730 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_scandir" >&5
5731 $as_echo "$ac_cv_func_scandir" >&6; }
5732 if test "x$ac_cv_func_scandir" = x""yes; then
5733 if test "$uname" = "SunOS"; then
5734 echo Not using Solaris scandir BSD emulation function.
5735 else
5736 cat >>confdefs.h <<\_ACEOF
5737 #define HAVE_SCANDIR 1
5738 _ACEOF
5739
5740 fi
5741 fi
5742
5743
5744 { $as_echo "$as_me:$LINENO: checking for vsnprintf" >&5
5745 $as_echo_n "checking for vsnprintf... " >&6; }
5746 if test "${ac_cv_func_vsnprintf+set}" = set; then
5747 $as_echo_n "(cached) " >&6
5748 else
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h. */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
5756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5757 #define vsnprintf innocuous_vsnprintf
5758
5759 /* System header to define __stub macros and hopefully few prototypes,
5760 which can conflict with char vsnprintf (); below.
5761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5762 <limits.h> exists even on freestanding compilers. */
5763
5764 #ifdef __STDC__
5765 # include <limits.h>
5766 #else
5767 # include <assert.h>
5768 #endif
5769
5770 #undef vsnprintf
5771
5772 /* Override any GCC internal prototype to avoid an error.
5773 Use char because int might match the return type of a GCC
5774 builtin and then its argument prototype would still apply. */
5775 #ifdef __cplusplus
5776 extern "C"
5777 #endif
5778 char vsnprintf ();
5779 /* The GNU C library defines this for functions which it implements
5780 to always fail with ENOSYS. Some functions are actually named
5781 something starting with __ and the normal name is an alias. */
5782 #if defined __stub_vsnprintf || defined __stub___vsnprintf
5783 choke me
5784 #endif
5785
5786 int
5787 main ()
5788 {
5789 return vsnprintf ();
5790 ;
5791 return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (ac_try="$ac_link"
5796 case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799 esac
5800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5801 $as_echo "$ac_try_echo") >&5
5802 (eval "$ac_link") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest$ac_exeext && {
5812 test "$cross_compiling" = yes ||
5813 $as_test_x conftest$ac_exeext
5814 }; then
5815 ac_cv_func_vsnprintf=yes
5816 else
5817 $as_echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5819
5820 ac_cv_func_vsnprintf=no
5821 fi
5822
5823 rm -rf conftest.dSYM
5824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5825 conftest$ac_exeext conftest.$ac_ext
5826 fi
5827 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
5828 $as_echo "$ac_cv_func_vsnprintf" >&6; }
5829 if test "x$ac_cv_func_vsnprintf" = x""yes; then
5830 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5831 echo Not using built-in vsnprintf function because you are running HP-UX 10.20.
5832 else
5833 cat >>confdefs.h <<\_ACEOF
5834 #define HAVE_VSNPRINTF 1
5835 _ACEOF
5836
5837 fi
5838 fi
5839
5840
5841 { $as_echo "$as_me:$LINENO: checking for snprintf" >&5
5842 $as_echo_n "checking for snprintf... " >&6; }
5843 if test "${ac_cv_func_snprintf+set}" = set; then
5844 $as_echo_n "(cached) " >&6
5845 else
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
5853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5854 #define snprintf innocuous_snprintf
5855
5856 /* System header to define __stub macros and hopefully few prototypes,
5857 which can conflict with char snprintf (); below.
5858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5859 <limits.h> exists even on freestanding compilers. */
5860
5861 #ifdef __STDC__
5862 # include <limits.h>
5863 #else
5864 # include <assert.h>
5865 #endif
5866
5867 #undef snprintf
5868
5869 /* Override any GCC internal prototype to avoid an error.
5870 Use char because int might match the return type of a GCC
5871 builtin and then its argument prototype would still apply. */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 char snprintf ();
5876 /* The GNU C library defines this for functions which it implements
5877 to always fail with ENOSYS. Some functions are actually named
5878 something starting with __ and the normal name is an alias. */
5879 #if defined __stub_snprintf || defined __stub___snprintf
5880 choke me
5881 #endif
5882
5883 int
5884 main ()
5885 {
5886 return snprintf ();
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 rm -f conftest.$ac_objext conftest$ac_exeext
5892 if { (ac_try="$ac_link"
5893 case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896 esac
5897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5898 $as_echo "$ac_try_echo") >&5
5899 (eval "$ac_link") 2>conftest.er1
5900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
5904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } && {
5906 test -z "$ac_c_werror_flag" ||
5907 test ! -s conftest.err
5908 } && test -s conftest$ac_exeext && {
5909 test "$cross_compiling" = yes ||
5910 $as_test_x conftest$ac_exeext
5911 }; then
5912 ac_cv_func_snprintf=yes
5913 else
5914 $as_echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917 ac_cv_func_snprintf=no
5918 fi
5919
5920 rm -rf conftest.dSYM
5921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5922 conftest$ac_exeext conftest.$ac_ext
5923 fi
5924 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
5925 $as_echo "$ac_cv_func_snprintf" >&6; }
5926 if test "x$ac_cv_func_snprintf" = x""yes; then
5927 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5928 echo Not using built-in snprintf function because you are running HP-UX 10.20.
5929 else
5930 cat >>confdefs.h <<\_ACEOF
5931 #define HAVE_SNPRINTF 1
5932 _ACEOF
5933
5934 fi
5935 fi
5936
5937
5938
5939 for ac_func in vsprintf
5940 do
5941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5942 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5943 $as_echo_n "checking for $ac_func... " >&6; }
5944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5945 $as_echo_n "(cached) " >&6
5946 else
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5955 #define $ac_func innocuous_$ac_func
5956
5957 /* System header to define __stub macros and hopefully few prototypes,
5958 which can conflict with char $ac_func (); below.
5959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5960 <limits.h> exists even on freestanding compilers. */
5961
5962 #ifdef __STDC__
5963 # include <limits.h>
5964 #else
5965 # include <assert.h>
5966 #endif
5967
5968 #undef $ac_func
5969
5970 /* Override any GCC internal prototype to avoid an error.
5971 Use char because int might match the return type of a GCC
5972 builtin and then its argument prototype would still apply. */
5973 #ifdef __cplusplus
5974 extern "C"
5975 #endif
5976 char $ac_func ();
5977 /* The GNU C library defines this for functions which it implements
5978 to always fail with ENOSYS. Some functions are actually named
5979 something starting with __ and the normal name is an alias. */
5980 #if defined __stub_$ac_func || defined __stub___$ac_func
5981 choke me
5982 #endif
5983
5984 int
5985 main ()
5986 {
5987 return $ac_func ();
5988 ;
5989 return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (ac_try="$ac_link"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5999 $as_echo "$ac_try_echo") >&5
6000 (eval "$ac_link") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest$ac_exeext && {
6010 test "$cross_compiling" = yes ||
6011 $as_test_x conftest$ac_exeext
6012 }; then
6013 eval "$as_ac_var=yes"
6014 else
6015 $as_echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 eval "$as_ac_var=no"
6019 fi
6020
6021 rm -rf conftest.dSYM
6022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6023 conftest$ac_exeext conftest.$ac_ext
6024 fi
6025 ac_res=`eval 'as_val=${'$as_ac_var'}
6026 $as_echo "$as_val"'`
6027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6028 $as_echo "$ac_res" >&6; }
6029 as_val=`eval 'as_val=${'$as_ac_var'}
6030 $as_echo "$as_val"'`
6031 if test "x$as_val" = x""yes; then
6032 cat >>confdefs.h <<_ACEOF
6033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6034 _ACEOF
6035
6036 fi
6037 done
6038
6039
6040
6041
6042 for ac_func in usleep nanosleep
6043 do
6044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6045 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6046 $as_echo_n "checking for $ac_func... " >&6; }
6047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6048 $as_echo_n "(cached) " >&6
6049 else
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6058 #define $ac_func innocuous_$ac_func
6059
6060 /* System header to define __stub macros and hopefully few prototypes,
6061 which can conflict with char $ac_func (); below.
6062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6063 <limits.h> exists even on freestanding compilers. */
6064
6065 #ifdef __STDC__
6066 # include <limits.h>
6067 #else
6068 # include <assert.h>
6069 #endif
6070
6071 #undef $ac_func
6072
6073 /* Override any GCC internal prototype to avoid an error.
6074 Use char because int might match the return type of a GCC
6075 builtin and then its argument prototype would still apply. */
6076 #ifdef __cplusplus
6077 extern "C"
6078 #endif
6079 char $ac_func ();
6080 /* The GNU C library defines this for functions which it implements
6081 to always fail with ENOSYS. Some functions are actually named
6082 something starting with __ and the normal name is an alias. */
6083 #if defined __stub_$ac_func || defined __stub___$ac_func
6084 choke me
6085 #endif
6086
6087 int
6088 main ()
6089 {
6090 return $ac_func ();
6091 ;
6092 return 0;
6093 }
6094 _ACEOF
6095 rm -f conftest.$ac_objext conftest$ac_exeext
6096 if { (ac_try="$ac_link"
6097 case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100 esac
6101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6102 $as_echo "$ac_try_echo") >&5
6103 (eval "$ac_link") 2>conftest.er1
6104 ac_status=$?
6105 grep -v '^ *+' conftest.er1 >conftest.err
6106 rm -f conftest.er1
6107 cat conftest.err >&5
6108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } && {
6110 test -z "$ac_c_werror_flag" ||
6111 test ! -s conftest.err
6112 } && test -s conftest$ac_exeext && {
6113 test "$cross_compiling" = yes ||
6114 $as_test_x conftest$ac_exeext
6115 }; then
6116 eval "$as_ac_var=yes"
6117 else
6118 $as_echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6120
6121 eval "$as_ac_var=no"
6122 fi
6123
6124 rm -rf conftest.dSYM
6125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6126 conftest$ac_exeext conftest.$ac_ext
6127 fi
6128 ac_res=`eval 'as_val=${'$as_ac_var'}
6129 $as_echo "$as_val"'`
6130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6131 $as_echo "$ac_res" >&6; }
6132 as_val=`eval 'as_val=${'$as_ac_var'}
6133 $as_echo "$as_val"'`
6134 if test "x$as_val" = x""yes; then
6135 cat >>confdefs.h <<_ACEOF
6136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6137 _ACEOF
6138
6139 fi
6140 done
6141
6142
6143 if test "$have_x" = "yes" ; then
6144 # Check for X
6145 { $as_echo "$as_me:$LINENO: checking for X" >&5
6146 $as_echo_n "checking for X... " >&6; }
6147
6148
6149 # Check whether --with-x was given.
6150 if test "${with_x+set}" = set; then
6151 withval=$with_x;
6152 fi
6153
6154 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6155 if test "x$with_x" = xno; then
6156 # The user explicitly disabled X.
6157 have_x=disabled
6158 else
6159 case $x_includes,$x_libraries in #(
6160 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6161 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6162 { (exit 1); exit 1; }; };; #(
6163 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6164 $as_echo_n "(cached) " >&6
6165 else
6166 # One or both of the vars are not set, and there is no cached value.
6167 ac_x_includes=no ac_x_libraries=no
6168 rm -f -r conftest.dir
6169 if mkdir conftest.dir; then
6170 cd conftest.dir
6171 cat >Imakefile <<'_ACEOF'
6172 incroot:
6173 @echo incroot='${INCROOT}'
6174 usrlibdir:
6175 @echo usrlibdir='${USRLIBDIR}'
6176 libdir:
6177 @echo libdir='${LIBDIR}'
6178 _ACEOF
6179 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6181 for ac_var in incroot usrlibdir libdir; do
6182 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6183 done
6184 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6185 for ac_extension in a so sl dylib la dll; do
6186 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6187 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6188 ac_im_usrlibdir=$ac_im_libdir; break
6189 fi
6190 done
6191 # Screen out bogus values from the imake configuration. They are
6192 # bogus both because they are the default anyway, and because
6193 # using them would break gcc on systems where it needs fixed includes.
6194 case $ac_im_incroot in
6195 /usr/include) ac_x_includes= ;;
6196 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6197 esac
6198 case $ac_im_usrlibdir in
6199 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6200 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6201 esac
6202 fi
6203 cd ..
6204 rm -f -r conftest.dir
6205 fi
6206
6207 # Standard set of common directories for X headers.
6208 # Check X11 before X11Rn because it is often a symlink to the current release.
6209 ac_x_header_dirs='
6210 /usr/X11/include
6211 /usr/X11R6/include
6212 /usr/X11R5/include
6213 /usr/X11R4/include
6214
6215 /usr/include/X11
6216 /usr/include/X11R6
6217 /usr/include/X11R5
6218 /usr/include/X11R4
6219
6220 /usr/local/X11/include
6221 /usr/local/X11R6/include
6222 /usr/local/X11R5/include
6223 /usr/local/X11R4/include
6224
6225 /usr/local/include/X11
6226 /usr/local/include/X11R6
6227 /usr/local/include/X11R5
6228 /usr/local/include/X11R4
6229
6230 /usr/X386/include
6231 /usr/x386/include
6232 /usr/XFree86/include/X11
6233
6234 /usr/include
6235 /usr/local/include
6236 /usr/unsupported/include
6237 /usr/athena/include
6238 /usr/local/x11r5/include
6239 /usr/lpp/Xamples/include
6240
6241 /usr/openwin/include
6242 /usr/openwin/share/include'
6243
6244 if test "$ac_x_includes" = no; then
6245 # Guess where to find include files, by looking for Xlib.h.
6246 # First, try using that file with no special directory specified.
6247 cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h. */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 #include <X11/Xlib.h>
6254 _ACEOF
6255 if { (ac_try="$ac_cpp conftest.$ac_ext"
6256 case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259 esac
6260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6261 $as_echo "$ac_try_echo") >&5
6262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6263 ac_status=$?
6264 grep -v '^ *+' conftest.er1 >conftest.err
6265 rm -f conftest.er1
6266 cat conftest.err >&5
6267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } >/dev/null && {
6269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 }; then
6272 # We can compile using X headers with no special include directory.
6273 ac_x_includes=
6274 else
6275 $as_echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 for ac_dir in $ac_x_header_dirs; do
6279 if test -r "$ac_dir/X11/Xlib.h"; then
6280 ac_x_includes=$ac_dir
6281 break
6282 fi
6283 done
6284 fi
6285
6286 rm -f conftest.err conftest.$ac_ext
6287 fi # $ac_x_includes = no
6288
6289 if test "$ac_x_libraries" = no; then
6290 # Check for the libraries.
6291 # See if we find them without any special options.
6292 # Don't add to $LIBS permanently.
6293 ac_save_LIBS=$LIBS
6294 LIBS="-lX11 $LIBS"
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 #include <X11/Xlib.h>
6302 int
6303 main ()
6304 {
6305 XrmInitialize ()
6306 ;
6307 return 0;
6308 }
6309 _ACEOF
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (ac_try="$ac_link"
6312 case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315 esac
6316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6317 $as_echo "$ac_try_echo") >&5
6318 (eval "$ac_link") 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest$ac_exeext && {
6328 test "$cross_compiling" = yes ||
6329 $as_test_x conftest$ac_exeext
6330 }; then
6331 LIBS=$ac_save_LIBS
6332 # We can link X programs with no special library path.
6333 ac_x_libraries=
6334 else
6335 $as_echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 LIBS=$ac_save_LIBS
6339 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6340 do
6341 # Don't even attempt the hair of trying to link an X program!
6342 for ac_extension in a so sl dylib la dll; do
6343 if test -r "$ac_dir/libX11.$ac_extension"; then
6344 ac_x_libraries=$ac_dir
6345 break 2
6346 fi
6347 done
6348 done
6349 fi
6350
6351 rm -rf conftest.dSYM
6352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6353 conftest$ac_exeext conftest.$ac_ext
6354 fi # $ac_x_libraries = no
6355
6356 case $ac_x_includes,$ac_x_libraries in #(
6357 no,* | *,no | *\'*)
6358 # Didn't find X, or a directory has "'" in its name.
6359 ac_cv_have_x="have_x=no";; #(
6360 *)
6361 # Record where we found X for the cache.
6362 ac_cv_have_x="have_x=yes\
6363 ac_x_includes='$ac_x_includes'\
6364 ac_x_libraries='$ac_x_libraries'"
6365 esac
6366 fi
6367 ;; #(
6368 *) have_x=yes;;
6369 esac
6370 eval "$ac_cv_have_x"
6371 fi # $with_x != no
6372
6373 if test "$have_x" != yes; then
6374 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6375 $as_echo "$have_x" >&6; }
6376 no_x=yes
6377 else
6378 # If each of the values was on the command line, it overrides each guess.
6379 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6380 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6381 # Update the cache value to reflect the command line values.
6382 ac_cv_have_x="have_x=yes\
6383 ac_x_includes='$x_includes'\
6384 ac_x_libraries='$x_libraries'"
6385 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6386 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6387 fi
6388
6389 if test "$no_x" = yes; then
6390 # Not all programs may use this symbol, but it does not hurt to define it.
6391
6392 cat >>confdefs.h <<\_ACEOF
6393 #define X_DISPLAY_MISSING 1
6394 _ACEOF
6395
6396 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6397 else
6398 if test -n "$x_includes"; then
6399 X_CFLAGS="$X_CFLAGS -I$x_includes"
6400 fi
6401
6402 # It would also be nice to do this for all -L options, not just this one.
6403 if test -n "$x_libraries"; then
6404 X_LIBS="$X_LIBS -L$x_libraries"
6405 # For Solaris; some versions of Sun CC require a space after -R and
6406 # others require no space. Words are not sufficient . . . .
6407 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6408 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6409 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6410 ac_xsave_c_werror_flag=$ac_c_werror_flag
6411 ac_c_werror_flag=yes
6412 cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h. */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6418
6419 int
6420 main ()
6421 {
6422
6423 ;
6424 return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (ac_try="$ac_link"
6429 case "(($ac_try" in
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6432 esac
6433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6434 $as_echo "$ac_try_echo") >&5
6435 (eval "$ac_link") 2>conftest.er1
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && {
6442 test -z "$ac_c_werror_flag" ||
6443 test ! -s conftest.err
6444 } && test -s conftest$ac_exeext && {
6445 test "$cross_compiling" = yes ||
6446 $as_test_x conftest$ac_exeext
6447 }; then
6448 { $as_echo "$as_me:$LINENO: result: no" >&5
6449 $as_echo "no" >&6; }
6450 X_LIBS="$X_LIBS -R$x_libraries"
6451 else
6452 $as_echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 LIBS="$ac_xsave_LIBS -R $x_libraries"
6456 cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h. */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462
6463 int
6464 main ()
6465 {
6466
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 rm -f conftest.$ac_objext conftest$ac_exeext
6472 if { (ac_try="$ac_link"
6473 case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476 esac
6477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6478 $as_echo "$ac_try_echo") >&5
6479 (eval "$ac_link") 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_c_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest$ac_exeext && {
6489 test "$cross_compiling" = yes ||
6490 $as_test_x conftest$ac_exeext
6491 }; then
6492 { $as_echo "$as_me:$LINENO: result: yes" >&5
6493 $as_echo "yes" >&6; }
6494 X_LIBS="$X_LIBS -R $x_libraries"
6495 else
6496 $as_echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6500 $as_echo "neither works" >&6; }
6501 fi
6502
6503 rm -rf conftest.dSYM
6504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6505 conftest$ac_exeext conftest.$ac_ext
6506 fi
6507
6508 rm -rf conftest.dSYM
6509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6510 conftest$ac_exeext conftest.$ac_ext
6511 ac_c_werror_flag=$ac_xsave_c_werror_flag
6512 LIBS=$ac_xsave_LIBS
6513 fi
6514
6515 # Check for system-dependent libraries X programs must link with.
6516 # Do this before checking for the system-independent R6 libraries
6517 # (-lICE), since we may need -lsocket or whatever for X linking.
6518
6519 if test "$ISC" = yes; then
6520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6521 else
6522 # Martyn Johnson says this is needed for Ultrix, if the X
6523 # libraries were built with DECnet support. And Karl Berry says
6524 # the Alpha needs dnet_stub (dnet does not exist).
6525 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532
6533 /* Override any GCC internal prototype to avoid an error.
6534 Use char because int might match the return type of a GCC
6535 builtin and then its argument prototype would still apply. */
6536 #ifdef __cplusplus
6537 extern "C"
6538 #endif
6539 char XOpenDisplay ();
6540 int
6541 main ()
6542 {
6543 return XOpenDisplay ();
6544 ;
6545 return 0;
6546 }
6547 _ACEOF
6548 rm -f conftest.$ac_objext conftest$ac_exeext
6549 if { (ac_try="$ac_link"
6550 case "(($ac_try" in
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6553 esac
6554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6555 $as_echo "$ac_try_echo") >&5
6556 (eval "$ac_link") 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest$ac_exeext && {
6566 test "$cross_compiling" = yes ||
6567 $as_test_x conftest$ac_exeext
6568 }; then
6569 :
6570 else
6571 $as_echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6575 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6576 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6577 $as_echo_n "(cached) " >&6
6578 else
6579 ac_check_lib_save_LIBS=$LIBS
6580 LIBS="-ldnet $LIBS"
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587
6588 /* Override any GCC internal prototype to avoid an error.
6589 Use char because int might match the return type of a GCC
6590 builtin and then its argument prototype would still apply. */
6591 #ifdef __cplusplus
6592 extern "C"
6593 #endif
6594 char dnet_ntoa ();
6595 int
6596 main ()
6597 {
6598 return dnet_ntoa ();
6599 ;
6600 return 0;
6601 }
6602 _ACEOF
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6605 case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608 esac
6609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6610 $as_echo "$ac_try_echo") >&5
6611 (eval "$ac_link") 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } && {
6618 test -z "$ac_c_werror_flag" ||
6619 test ! -s conftest.err
6620 } && test -s conftest$ac_exeext && {
6621 test "$cross_compiling" = yes ||
6622 $as_test_x conftest$ac_exeext
6623 }; then
6624 ac_cv_lib_dnet_dnet_ntoa=yes
6625 else
6626 $as_echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629 ac_cv_lib_dnet_dnet_ntoa=no
6630 fi
6631
6632 rm -rf conftest.dSYM
6633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6634 conftest$ac_exeext conftest.$ac_ext
6635 LIBS=$ac_check_lib_save_LIBS
6636 fi
6637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6638 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6639 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6640 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6641 fi
6642
6643 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6644 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6645 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6646 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6647 $as_echo_n "(cached) " >&6
6648 else
6649 ac_check_lib_save_LIBS=$LIBS
6650 LIBS="-ldnet_stub $LIBS"
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657
6658 /* Override any GCC internal prototype to avoid an error.
6659 Use char because int might match the return type of a GCC
6660 builtin and then its argument prototype would still apply. */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 char dnet_ntoa ();
6665 int
6666 main ()
6667 {
6668 return dnet_ntoa ();
6669 ;
6670 return 0;
6671 }
6672 _ACEOF
6673 rm -f conftest.$ac_objext conftest$ac_exeext
6674 if { (ac_try="$ac_link"
6675 case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678 esac
6679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6680 $as_echo "$ac_try_echo") >&5
6681 (eval "$ac_link") 2>conftest.er1
6682 ac_status=$?
6683 grep -v '^ *+' conftest.er1 >conftest.err
6684 rm -f conftest.er1
6685 cat conftest.err >&5
6686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_c_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest$ac_exeext && {
6691 test "$cross_compiling" = yes ||
6692 $as_test_x conftest$ac_exeext
6693 }; then
6694 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6695 else
6696 $as_echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699 ac_cv_lib_dnet_stub_dnet_ntoa=no
6700 fi
6701
6702 rm -rf conftest.dSYM
6703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6704 conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6706 fi
6707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6708 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6709 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6710 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6711 fi
6712
6713 fi
6714 fi
6715
6716 rm -rf conftest.dSYM
6717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6718 conftest$ac_exeext conftest.$ac_ext
6719 LIBS="$ac_xsave_LIBS"
6720
6721 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
6722 # to get the SysV transport functions.
6723 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6724 # needs -lnsl.
6725 # The nsl library prevents programs from opening the X display
6726 # on Irix 5.2, according to T.E. Dickey.
6727 # The functions gethostbyname, getservbyname, and inet_addr are
6728 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6729 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6730 $as_echo_n "checking for gethostbyname... " >&6; }
6731 if test "${ac_cv_func_gethostbyname+set}" = set; then
6732 $as_echo_n "(cached) " >&6
6733 else
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6742 #define gethostbyname innocuous_gethostbyname
6743
6744 /* System header to define __stub macros and hopefully few prototypes,
6745 which can conflict with char gethostbyname (); below.
6746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6747 <limits.h> exists even on freestanding compilers. */
6748
6749 #ifdef __STDC__
6750 # include <limits.h>
6751 #else
6752 # include <assert.h>
6753 #endif
6754
6755 #undef gethostbyname
6756
6757 /* Override any GCC internal prototype to avoid an error.
6758 Use char because int might match the return type of a GCC
6759 builtin and then its argument prototype would still apply. */
6760 #ifdef __cplusplus
6761 extern "C"
6762 #endif
6763 char gethostbyname ();
6764 /* The GNU C library defines this for functions which it implements
6765 to always fail with ENOSYS. Some functions are actually named
6766 something starting with __ and the normal name is an alias. */
6767 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6768 choke me
6769 #endif
6770
6771 int
6772 main ()
6773 {
6774 return gethostbyname ();
6775 ;
6776 return 0;
6777 }
6778 _ACEOF
6779 rm -f conftest.$ac_objext conftest$ac_exeext
6780 if { (ac_try="$ac_link"
6781 case "(($ac_try" in
6782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783 *) ac_try_echo=$ac_try;;
6784 esac
6785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6786 $as_echo "$ac_try_echo") >&5
6787 (eval "$ac_link") 2>conftest.er1
6788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest$ac_exeext && {
6797 test "$cross_compiling" = yes ||
6798 $as_test_x conftest$ac_exeext
6799 }; then
6800 ac_cv_func_gethostbyname=yes
6801 else
6802 $as_echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 ac_cv_func_gethostbyname=no
6806 fi
6807
6808 rm -rf conftest.dSYM
6809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6810 conftest$ac_exeext conftest.$ac_ext
6811 fi
6812 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6813 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6814
6815 if test $ac_cv_func_gethostbyname = no; then
6816 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6817 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6818 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6819 $as_echo_n "(cached) " >&6
6820 else
6821 ac_check_lib_save_LIBS=$LIBS
6822 LIBS="-lnsl $LIBS"
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829
6830 /* Override any GCC internal prototype to avoid an error.
6831 Use char because int might match the return type of a GCC
6832 builtin and then its argument prototype would still apply. */
6833 #ifdef __cplusplus
6834 extern "C"
6835 #endif
6836 char gethostbyname ();
6837 int
6838 main ()
6839 {
6840 return gethostbyname ();
6841 ;
6842 return 0;
6843 }
6844 _ACEOF
6845 rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (ac_try="$ac_link"
6847 case "(($ac_try" in
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6850 esac
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853 (eval "$ac_link") 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest$ac_exeext && {
6863 test "$cross_compiling" = yes ||
6864 $as_test_x conftest$ac_exeext
6865 }; then
6866 ac_cv_lib_nsl_gethostbyname=yes
6867 else
6868 $as_echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6870
6871 ac_cv_lib_nsl_gethostbyname=no
6872 fi
6873
6874 rm -rf conftest.dSYM
6875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6876 conftest$ac_exeext conftest.$ac_ext
6877 LIBS=$ac_check_lib_save_LIBS
6878 fi
6879 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6880 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6881 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6882 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6883 fi
6884
6885 if test $ac_cv_lib_nsl_gethostbyname = no; then
6886 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6887 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6888 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6889 $as_echo_n "(cached) " >&6
6890 else
6891 ac_check_lib_save_LIBS=$LIBS
6892 LIBS="-lbsd $LIBS"
6893 cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h. */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899
6900 /* Override any GCC internal prototype to avoid an error.
6901 Use char because int might match the return type of a GCC
6902 builtin and then its argument prototype would still apply. */
6903 #ifdef __cplusplus
6904 extern "C"
6905 #endif
6906 char gethostbyname ();
6907 int
6908 main ()
6909 {
6910 return gethostbyname ();
6911 ;
6912 return 0;
6913 }
6914 _ACEOF
6915 rm -f conftest.$ac_objext conftest$ac_exeext
6916 if { (ac_try="$ac_link"
6917 case "(($ac_try" in
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6920 esac
6921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6922 $as_echo "$ac_try_echo") >&5
6923 (eval "$ac_link") 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && {
6930 test -z "$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6932 } && test -s conftest$ac_exeext && {
6933 test "$cross_compiling" = yes ||
6934 $as_test_x conftest$ac_exeext
6935 }; then
6936 ac_cv_lib_bsd_gethostbyname=yes
6937 else
6938 $as_echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6940
6941 ac_cv_lib_bsd_gethostbyname=no
6942 fi
6943
6944 rm -rf conftest.dSYM
6945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6946 conftest$ac_exeext conftest.$ac_ext
6947 LIBS=$ac_check_lib_save_LIBS
6948 fi
6949 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6950 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6951 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
6952 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6953 fi
6954
6955 fi
6956 fi
6957
6958 # [email protected] says without -lsocket,
6959 # socket/setsockopt and other routines are undefined under SCO ODT
6960 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6961 # on later versions), says Simon Leinen: it contains gethostby*
6962 # variants that don't use the name server (or something). -lsocket
6963 # must be given before -lnsl if both are needed. We assume that
6964 # if connect needs -lnsl, so does gethostbyname.
6965 { $as_echo "$as_me:$LINENO: checking for connect" >&5
6966 $as_echo_n "checking for connect... " >&6; }
6967 if test "${ac_cv_func_connect+set}" = set; then
6968 $as_echo_n "(cached) " >&6
6969 else
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6978 #define connect innocuous_connect
6979
6980 /* System header to define __stub macros and hopefully few prototypes,
6981 which can conflict with char connect (); below.
6982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6983 <limits.h> exists even on freestanding compilers. */
6984
6985 #ifdef __STDC__
6986 # include <limits.h>
6987 #else
6988 # include <assert.h>
6989 #endif
6990
6991 #undef connect
6992
6993 /* Override any GCC internal prototype to avoid an error.
6994 Use char because int might match the return type of a GCC
6995 builtin and then its argument prototype would still apply. */
6996 #ifdef __cplusplus
6997 extern "C"
6998 #endif
6999 char connect ();
7000 /* The GNU C library defines this for functions which it implements
7001 to always fail with ENOSYS. Some functions are actually named
7002 something starting with __ and the normal name is an alias. */
7003 #if defined __stub_connect || defined __stub___connect
7004 choke me
7005 #endif
7006
7007 int
7008 main ()
7009 {
7010 return connect ();
7011 ;
7012 return 0;
7013 }
7014 _ACEOF
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (ac_try="$ac_link"
7017 case "(($ac_try" in
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7020 esac
7021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7022 $as_echo "$ac_try_echo") >&5
7023 (eval "$ac_link") 2>conftest.er1
7024 ac_status=$?
7025 grep -v '^ *+' conftest.er1 >conftest.err
7026 rm -f conftest.er1
7027 cat conftest.err >&5
7028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && {
7030 test -z "$ac_c_werror_flag" ||
7031 test ! -s conftest.err
7032 } && test -s conftest$ac_exeext && {
7033 test "$cross_compiling" = yes ||
7034 $as_test_x conftest$ac_exeext
7035 }; then
7036 ac_cv_func_connect=yes
7037 else
7038 $as_echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 ac_cv_func_connect=no
7042 fi
7043
7044 rm -rf conftest.dSYM
7045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7046 conftest$ac_exeext conftest.$ac_ext
7047 fi
7048 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7049 $as_echo "$ac_cv_func_connect" >&6; }
7050
7051 if test $ac_cv_func_connect = no; then
7052 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7053 $as_echo_n "checking for connect in -lsocket... " >&6; }
7054 if test "${ac_cv_lib_socket_connect+set}" = set; then
7055 $as_echo_n "(cached) " >&6
7056 else
7057 ac_check_lib_save_LIBS=$LIBS
7058 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065
7066 /* Override any GCC internal prototype to avoid an error.
7067 Use char because int might match the return type of a GCC
7068 builtin and then its argument prototype would still apply. */
7069 #ifdef __cplusplus
7070 extern "C"
7071 #endif
7072 char connect ();
7073 int
7074 main ()
7075 {
7076 return connect ();
7077 ;
7078 return 0;
7079 }
7080 _ACEOF
7081 rm -f conftest.$ac_objext conftest$ac_exeext
7082 if { (ac_try="$ac_link"
7083 case "(($ac_try" in
7084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085 *) ac_try_echo=$ac_try;;
7086 esac
7087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7088 $as_echo "$ac_try_echo") >&5
7089 (eval "$ac_link") 2>conftest.er1
7090 ac_status=$?
7091 grep -v '^ *+' conftest.er1 >conftest.err
7092 rm -f conftest.er1
7093 cat conftest.err >&5
7094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } && {
7096 test -z "$ac_c_werror_flag" ||
7097 test ! -s conftest.err
7098 } && test -s conftest$ac_exeext && {
7099 test "$cross_compiling" = yes ||
7100 $as_test_x conftest$ac_exeext
7101 }; then
7102 ac_cv_lib_socket_connect=yes
7103 else
7104 $as_echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7106
7107 ac_cv_lib_socket_connect=no
7108 fi
7109
7110 rm -rf conftest.dSYM
7111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7112 conftest$ac_exeext conftest.$ac_ext
7113 LIBS=$ac_check_lib_save_LIBS
7114 fi
7115 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7116 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7117 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7118 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7119 fi
7120
7121 fi
7122
7123 # Guillermo Gomez says -lposix is necessary on A/UX.
7124 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7125 $as_echo_n "checking for remove... " >&6; }
7126 if test "${ac_cv_func_remove+set}" = set; then
7127 $as_echo_n "(cached) " >&6
7128 else
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7137 #define remove innocuous_remove
7138
7139 /* System header to define __stub macros and hopefully few prototypes,
7140 which can conflict with char remove (); below.
7141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7142 <limits.h> exists even on freestanding compilers. */
7143
7144 #ifdef __STDC__
7145 # include <limits.h>
7146 #else
7147 # include <assert.h>
7148 #endif
7149
7150 #undef remove
7151
7152 /* Override any GCC internal prototype to avoid an error.
7153 Use char because int might match the return type of a GCC
7154 builtin and then its argument prototype would still apply. */
7155 #ifdef __cplusplus
7156 extern "C"
7157 #endif
7158 char remove ();
7159 /* The GNU C library defines this for functions which it implements
7160 to always fail with ENOSYS. Some functions are actually named
7161 something starting with __ and the normal name is an alias. */
7162 #if defined __stub_remove || defined __stub___remove
7163 choke me
7164 #endif
7165
7166 int
7167 main ()
7168 {
7169 return remove ();
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 rm -f conftest.$ac_objext conftest$ac_exeext
7175 if { (ac_try="$ac_link"
7176 case "(($ac_try" in
7177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178 *) ac_try_echo=$ac_try;;
7179 esac
7180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7181 $as_echo "$ac_try_echo") >&5
7182 (eval "$ac_link") 2>conftest.er1
7183 ac_status=$?
7184 grep -v '^ *+' conftest.er1 >conftest.err
7185 rm -f conftest.er1
7186 cat conftest.err >&5
7187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } && {
7189 test -z "$ac_c_werror_flag" ||
7190 test ! -s conftest.err
7191 } && test -s conftest$ac_exeext && {
7192 test "$cross_compiling" = yes ||
7193 $as_test_x conftest$ac_exeext
7194 }; then
7195 ac_cv_func_remove=yes
7196 else
7197 $as_echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7199
7200 ac_cv_func_remove=no
7201 fi
7202
7203 rm -rf conftest.dSYM
7204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7205 conftest$ac_exeext conftest.$ac_ext
7206 fi
7207 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7208 $as_echo "$ac_cv_func_remove" >&6; }
7209
7210 if test $ac_cv_func_remove = no; then
7211 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7212 $as_echo_n "checking for remove in -lposix... " >&6; }
7213 if test "${ac_cv_lib_posix_remove+set}" = set; then
7214 $as_echo_n "(cached) " >&6
7215 else
7216 ac_check_lib_save_LIBS=$LIBS
7217 LIBS="-lposix $LIBS"
7218 cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h. */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224
7225 /* Override any GCC internal prototype to avoid an error.
7226 Use char because int might match the return type of a GCC
7227 builtin and then its argument prototype would still apply. */
7228 #ifdef __cplusplus
7229 extern "C"
7230 #endif
7231 char remove ();
7232 int
7233 main ()
7234 {
7235 return remove ();
7236 ;
7237 return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (ac_try="$ac_link"
7242 case "(($ac_try" in
7243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244 *) ac_try_echo=$ac_try;;
7245 esac
7246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7247 $as_echo "$ac_try_echo") >&5
7248 (eval "$ac_link") 2>conftest.er1
7249 ac_status=$?
7250 grep -v '^ *+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && {
7255 test -z "$ac_c_werror_flag" ||
7256 test ! -s conftest.err
7257 } && test -s conftest$ac_exeext && {
7258 test "$cross_compiling" = yes ||
7259 $as_test_x conftest$ac_exeext
7260 }; then
7261 ac_cv_lib_posix_remove=yes
7262 else
7263 $as_echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266 ac_cv_lib_posix_remove=no
7267 fi
7268
7269 rm -rf conftest.dSYM
7270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7271 conftest$ac_exeext conftest.$ac_ext
7272 LIBS=$ac_check_lib_save_LIBS
7273 fi
7274 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7275 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7276 if test "x$ac_cv_lib_posix_remove" = x""yes; then
7277 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7278 fi
7279
7280 fi
7281
7282 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7283 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7284 $as_echo_n "checking for shmat... " >&6; }
7285 if test "${ac_cv_func_shmat+set}" = set; then
7286 $as_echo_n "(cached) " >&6
7287 else
7288 cat >conftest.$ac_ext <<_ACEOF
7289 /* confdefs.h. */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7294 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7296 #define shmat innocuous_shmat
7297
7298 /* System header to define __stub macros and hopefully few prototypes,
7299 which can conflict with char shmat (); below.
7300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7301 <limits.h> exists even on freestanding compilers. */
7302
7303 #ifdef __STDC__
7304 # include <limits.h>
7305 #else
7306 # include <assert.h>
7307 #endif
7308
7309 #undef shmat
7310
7311 /* Override any GCC internal prototype to avoid an error.
7312 Use char because int might match the return type of a GCC
7313 builtin and then its argument prototype would still apply. */
7314 #ifdef __cplusplus
7315 extern "C"
7316 #endif
7317 char shmat ();
7318 /* The GNU C library defines this for functions which it implements
7319 to always fail with ENOSYS. Some functions are actually named
7320 something starting with __ and the normal name is an alias. */
7321 #if defined __stub_shmat || defined __stub___shmat
7322 choke me
7323 #endif
7324
7325 int
7326 main ()
7327 {
7328 return shmat ();
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 rm -f conftest.$ac_objext conftest$ac_exeext
7334 if { (ac_try="$ac_link"
7335 case "(($ac_try" in
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7338 esac
7339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7340 $as_echo "$ac_try_echo") >&5
7341 (eval "$ac_link") 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && {
7348 test -z "$ac_c_werror_flag" ||
7349 test ! -s conftest.err
7350 } && test -s conftest$ac_exeext && {
7351 test "$cross_compiling" = yes ||
7352 $as_test_x conftest$ac_exeext
7353 }; then
7354 ac_cv_func_shmat=yes
7355 else
7356 $as_echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7358
7359 ac_cv_func_shmat=no
7360 fi
7361
7362 rm -rf conftest.dSYM
7363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7364 conftest$ac_exeext conftest.$ac_ext
7365 fi
7366 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7367 $as_echo "$ac_cv_func_shmat" >&6; }
7368
7369 if test $ac_cv_func_shmat = no; then
7370 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7371 $as_echo_n "checking for shmat in -lipc... " >&6; }
7372 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7373 $as_echo_n "(cached) " >&6
7374 else
7375 ac_check_lib_save_LIBS=$LIBS
7376 LIBS="-lipc $LIBS"
7377 cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h. */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7383
7384 /* Override any GCC internal prototype to avoid an error.
7385 Use char because int might match the return type of a GCC
7386 builtin and then its argument prototype would still apply. */
7387 #ifdef __cplusplus
7388 extern "C"
7389 #endif
7390 char shmat ();
7391 int
7392 main ()
7393 {
7394 return shmat ();
7395 ;
7396 return 0;
7397 }
7398 _ACEOF
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (ac_try="$ac_link"
7401 case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404 esac
7405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7406 $as_echo "$ac_try_echo") >&5
7407 (eval "$ac_link") 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest$ac_exeext && {
7417 test "$cross_compiling" = yes ||
7418 $as_test_x conftest$ac_exeext
7419 }; then
7420 ac_cv_lib_ipc_shmat=yes
7421 else
7422 $as_echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425 ac_cv_lib_ipc_shmat=no
7426 fi
7427
7428 rm -rf conftest.dSYM
7429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7430 conftest$ac_exeext conftest.$ac_ext
7431 LIBS=$ac_check_lib_save_LIBS
7432 fi
7433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7434 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7435 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7436 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7437 fi
7438
7439 fi
7440 fi
7441
7442 # Check for libraries that X11R6 Xt/Xaw programs need.
7443 ac_save_LDFLAGS=$LDFLAGS
7444 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7445 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7446 # check for ICE first), but we must link in the order -lSM -lICE or
7447 # we get undefined symbols. So assume we have SM if we have ICE.
7448 # These have to be linked with before -lX11, unlike the other
7449 # libraries we check for below, so use a different variable.
7450 # John Interrante, Karl Berry
7451 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7452 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7453 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7454 $as_echo_n "(cached) " >&6
7455 else
7456 ac_check_lib_save_LIBS=$LIBS
7457 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464
7465 /* Override any GCC internal prototype to avoid an error.
7466 Use char because int might match the return type of a GCC
7467 builtin and then its argument prototype would still apply. */
7468 #ifdef __cplusplus
7469 extern "C"
7470 #endif
7471 char IceConnectionNumber ();
7472 int
7473 main ()
7474 {
7475 return IceConnectionNumber ();
7476 ;
7477 return 0;
7478 }
7479 _ACEOF
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7482 case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7485 esac
7486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7487 $as_echo "$ac_try_echo") >&5
7488 (eval "$ac_link") 2>conftest.er1
7489 ac_status=$?
7490 grep -v '^ *+' conftest.er1 >conftest.err
7491 rm -f conftest.er1
7492 cat conftest.err >&5
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest$ac_exeext && {
7498 test "$cross_compiling" = yes ||
7499 $as_test_x conftest$ac_exeext
7500 }; then
7501 ac_cv_lib_ICE_IceConnectionNumber=yes
7502 else
7503 $as_echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506 ac_cv_lib_ICE_IceConnectionNumber=no
7507 fi
7508
7509 rm -rf conftest.dSYM
7510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7511 conftest$ac_exeext conftest.$ac_ext
7512 LIBS=$ac_check_lib_save_LIBS
7513 fi
7514 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7515 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7516 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7517 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7518 fi
7519
7520 LDFLAGS=$ac_save_LDFLAGS
7521
7522 fi
7523
7524 echo "Ignoring libraries \"$X_PRE_LIBS\" requested by configure."
7525 if test "$with_magick" != "no" ; then
7526 # this seems to be sufficient somehow
7527 # as Magick will include the right libraries and flags already
7528 XLIBS="-lX11 -lXext -lXpm"
7529 else
7530 # I'm not sure how reliable this is...
7531 XLIBS="$X_LIBS -lX11 -lXext -lXpm"
7532 fi
7533 # LIBS="$LIBS$X_LIBS"
7534 CFLAGS="$CFLAGS $X_CFLAGS"
7535 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7536
7537 # advertise we are using X, as under some platform we may choose to use X11 or not
7538 cat >>confdefs.h <<\_ACEOF
7539 #define FLTK_USES_X 1
7540 _ACEOF
7541
7542 # check for some incorrect X11 headers
7543 { $as_echo "$as_me:$LINENO: checking whether the compiler needs -fpermissive to compile the X11 headers" >&5
7544 $as_echo_n "checking whether the compiler needs -fpermissive to compile the X11 headers... " >&6; }
7545 if test "${ac_cv_cxx_needs_permissive+set}" = set; then
7546 $as_echo_n "(cached) " >&6
7547 else
7548
7549 ac_ext=cpp
7550 ac_cpp='$CXXCPP $CPPFLAGS'
7551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7554
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561
7562 #include <X11/Xlib.h>
7563
7564 int
7565 main ()
7566 {
7567
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7574 case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7577 esac
7578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7579 $as_echo "$ac_try_echo") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_cxx_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_cv_cxx_needs_permissive=no
7591 else
7592 $as_echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595 ac_cv_cxx_needs_permissive=yes
7596 fi
7597
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 ac_ext=c
7600 ac_cpp='$CPP $CPPFLAGS'
7601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604
7605
7606 fi
7607 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_needs_permissive" >&5
7608 $as_echo "$ac_cv_cxx_needs_permissive" >&6; }
7609 if test "$ac_cv_cxx_needs_permissive" = yes ; then
7610 if test -n "$GXX" ; then
7611 CPPFLAGS="-fpermissive $CPPFLAGS"
7612 else
7613 echo "*** Compiler is not GCC, cannot fix that problem"
7614 fi
7615 fi
7616
7617 # check for Xinerama
7618 { $as_echo "$as_me:$LINENO: checking check for the xinerama extension" >&5
7619 $as_echo_n "checking check for the xinerama extension... " >&6; }
7620 if test "${ac_x11_has_xinerama+set}" = set; then
7621 $as_echo_n "(cached) " >&6
7622 else
7623
7624 ac_ext=cpp
7625 ac_cpp='$CXXCPP $CPPFLAGS'
7626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7629
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636
7637 #include <X11/Xlib.h>
7638 #include <X11/extensions/Xinerama.h>
7639
7640 int
7641 main ()
7642 {
7643 (void) XineramaIsActive(0); return 0;
7644 ;
7645 return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7650 case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653 esac
7654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7655 $as_echo "$ac_try_echo") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_cxx_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
7666 ac_x11_has_xinerama=yes
7667 else
7668 $as_echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 ac_x11_has_xinerama=no
7672 fi
7673
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 ac_ext=c
7676 ac_cpp='$CPP $CPPFLAGS'
7677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7680
7681
7682 fi
7683 { $as_echo "$as_me:$LINENO: result: $ac_x11_has_xinerama" >&5
7684 $as_echo "$ac_x11_has_xinerama" >&6; }
7685 if test "$ac_x11_has_xinerama" = yes ; then
7686 XINERAMA="-lXinerama"
7687
7688 cat >>confdefs.h <<\_ACEOF
7689 #define HAVE_XINERAMA /**/
7690 _ACEOF
7691
7692 else
7693 XINERAMA=""
7694 fi
7695
7696 XLIBS="$XLIBS $XINERAMA"
7697 fi
7698
7699 MAKEDEPEND="\$(CXX) -M"
7700
7701 if test -n "$GXX"; then
7702 { $as_echo "$as_me:$LINENO: checking whether gcc bitches when told to look inside INCLUDE_DIR" >&5
7703 $as_echo_n "checking whether gcc bitches when told to look inside INCLUDE_DIR... " >&6; }
7704 if test "${ac_cv_gcc_complains_about_system_headers+set}" = set; then
7705 $as_echo_n "(cached) " >&6
7706 else
7707
7708 ac_ext=c
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714 CPPSAVE=$CPPFLAGS
7715 CPPFLAGS="$CPPFLAGS -I$INCLUDE_DIR -Werror"
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722
7723 #include <stdio.h>
7724 int
7725 main ()
7726 {
7727
7728 printf("hello world\n");
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 rm -f conftest.$ac_objext
7734 if { (ac_try="$ac_compile"
7735 case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738 esac
7739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7740 $as_echo "$ac_try_echo") >&5
7741 (eval "$ac_compile") 2>conftest.er1
7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest.$ac_objext; then
7751 ac_cv_gcc_complains_about_system_headers=no
7752 else
7753 $as_echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 ac_cv_gcc_complains_about_system_headers=yes
7757 fi
7758
7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760 ac_ext=c
7761 ac_cpp='$CPP $CPPFLAGS'
7762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765
7766 CPPFLAGS=$CPPSAVE
7767
7768 fi
7769 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_complains_about_system_headers" >&5
7770 $as_echo "$ac_cv_gcc_complains_about_system_headers" >&6; }
7771 if test "$ac_cv_gcc_complains_about_system_headers" = no ; then
7772 CPPFLAGS="$CPPFLAGS -I$INCLUDE_DIR"
7773 else
7774 CPPFLAGS="$CPPFLAGS -isystem $INCLUDE_DIR"
7775 fi
7776 # this will add -I$INCLUDE_DIR if the compiler does not complain about it.
7777 { $as_echo "$as_me:$LINENO: checking whether gcc bitches when including some deprecated headers" >&5
7778 $as_echo_n "checking whether gcc bitches when including some deprecated headers... " >&6; }
7779 if test "${ac_cv_gcc_complains_about_deprecated_headers+set}" = set; then
7780 $as_echo_n "(cached) " >&6
7781 else
7782
7783 ac_ext=cpp
7784 ac_cpp='$CXXCPP $CPPFLAGS'
7785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7788
7789 CPPSAVE=$CPPFLAGS
7790 CPPFLAGS="$CPPFLAGS -I$INCLUDE_DIR -Werror"
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797
7798 #include <streambuf.h>
7799 #include <iostream.h>
7800 int
7801 main ()
7802 {
7803
7804 std::cout << "Hello world\n";
7805 ;
7806 return 0;
7807 }
7808 _ACEOF
7809 rm -f conftest.$ac_objext
7810 if { (ac_try="$ac_compile"
7811 case "(($ac_try" in
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7814 esac
7815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7816 $as_echo "$ac_try_echo") >&5
7817 (eval "$ac_compile") 2>conftest.er1
7818 ac_status=$?
7819 grep -v '^ *+' conftest.er1 >conftest.err
7820 rm -f conftest.er1
7821 cat conftest.err >&5
7822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } && {
7824 test -z "$ac_cxx_werror_flag" ||
7825 test ! -s conftest.err
7826 } && test -s conftest.$ac_objext; then
7827 ac_cv_gcc_complains_about_deprecated_headers=no
7828 else
7829 $as_echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 ac_cv_gcc_complains_about_deprecated_headers=yes
7833 fi
7834
7835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 ac_ext=c
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842 CPPFLAGS=$CPPSAVE
7843
7844 fi
7845 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_complains_about_deprecated_headers" >&5
7846 $as_echo "$ac_cv_gcc_complains_about_deprecated_headers" >&6; }
7847 if test "$ac_cv_gcc_complains_about_deprecated_headers" = yes ; then
7848 CXXFLAGS="$CXXFLAGS -Wno-deprecated"
7849 fi
7850 # this will test if -Wno-deprecated is necessary
7851
7852 CFLAGS="-Wall $CFLAGS"
7853 # GNU C++ is sometimes missing bits of the STL
7854 { $as_echo "$as_me:$LINENO: checking whether the C++ library knows about string streams" >&5
7855 $as_echo_n "checking whether the C++ library knows about string streams... " >&6; }
7856 if test "${ac_cv_cxx_has_strstream+set}" = set; then
7857 $as_echo_n "(cached) " >&6
7858 else
7859
7860 ac_ext=cpp
7861 ac_cpp='$CXXCPP $CPPFLAGS'
7862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7865
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872
7873 #include <sstream>
7874 int
7875 main ()
7876 {
7877
7878 ;
7879 return 0;
7880 }
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (ac_try="$ac_compile"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7889 $as_echo "$ac_try_echo") >&5
7890 (eval "$ac_compile") 2>conftest.er1
7891 ac_status=$?
7892 grep -v '^ *+' conftest.er1 >conftest.err
7893 rm -f conftest.er1
7894 cat conftest.err >&5
7895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } && {
7897 test -z "$ac_cxx_werror_flag" ||
7898 test ! -s conftest.err
7899 } && test -s conftest.$ac_objext; then
7900 ac_cv_cxx_has_strstream=yes
7901 else
7902 $as_echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905 ac_cv_cxx_has_strstream=no
7906 fi
7907
7908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 ac_ext=c
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7914
7915
7916 fi
7917 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_has_strstream" >&5
7918 $as_echo "$ac_cv_cxx_has_strstream" >&6; }
7919 if test "$ac_cv_cxx_has_strstream" = no ; then
7920 CXXFLAGS="-I$srcdirfull/stl/sstream $CXXFLAGS"
7921 fi
7922
7923 # other bits for g++
7924 CXXFLAGS="-Wall -Wno-return-type -Wno-unknown-pragmas $CXXFLAGS"
7925 if test -z "$DEBUGFLAG"; then
7926 CFLAGS="-O2 $CFLAGS"
7927 CXXFLAGS="-O2 $CXXFLAGS"
7928 else
7929 CFLAGS="$DEBUGFLAG $CFLAGS"
7930 CXXFLAGS="$DEBUGFLAG $CXXFLAGS"
7931 fi
7932 else
7933 case `(uname) 2>/dev/null` in
7934 IRIX*)
7935 # Running some flavor of IRIX; see which version and
7936 # set things up according...
7937 if test "$uversion" -ge 62; then
7938 # We are running IRIX 6.2 or higher; uncomment the following
7939 # lines if you don't have IDO 7.2 or higher:
7940 #
7941 # CXX="CC -n32"
7942 # CC="cc -n32"
7943 # LD="ld -n32"
7944 # MAKEDEPEND="CC -M"
7945
7946 echo "FOR BEST RESULTS BEFORE COMPILING: setenv SGI_ABI -n32"
7947 # -woff 3322 is necessary due to errors in Xlib headers on IRIX
7948 CFLAGS="-fullwarn $CFLAGS"
7949 CXXFLAGS="-fullwarn -woff 1685,3322 $CXXFLAGS"
7950 else
7951 CXXFLAGS="+w +pp $CXXFLAGS"
7952 fi
7953 if test -z "$DEBUGFLAG"; then
7954 CFLAGS="-O2 $CFLAGS"
7955 CXXFLAGS="-O2 $CXXFLAGS"
7956 fi
7957 ;;
7958 HP-UX*)
7959 # Running HP-UX; these options should work for the HP compilers.
7960 if test -z "$DEBUGFLAG"; then
7961 CFLAGS="+O2 $CFLAGS"
7962 CXXFLAGS="+O2 +W336,501,736,740,749,829 $CXXFLAGS"
7963 fi
7964 ;;
7965 SunOS*)
7966 # Solaris
7967 if test -z "$DEBUGFLAG"; then
7968 CFLAGS="-O"
7969 CXXFLAGS="-O"
7970 fi
7971 ;;
7972 OSF*)
7973 # DEC Unix (Compaq silly tru64)
7974 if test -z "$DEBUGFLAG"; then
7975 CFLAGS="-O2 -Olimit 2000 $CFLAGS"
7976 CXXFLAGS="-ttimestamp -O2 -Olimit 2000 $CXXFLAGS"
7977 else
7978 CFLAGS="$DEBUGFLAG $CFLAGS"
7979 CXXFLAGS="$DEBUGFLAG $CXXFLAGS"
7980 fi
7981
7982 CFLAGS="$CFLAGS -I${prefix}/include"
7983 CXXFLAGS="$CXXFLAGS -I${prefix}/include"
7984
7985 LIBCOMMAND="/usr/bin/ar cr" # make sure we use the system's archiver. GNU's not compatible with cxx
7986 # we need the IOStream library, and we enable ALL the compiler messages
7987 CXXFLAGS="-w1 -D__USE_STD_IOSTREAM $CXXFLAGS"
7988 # the CXX compiler requires this when using automated template
7989 # instantiation.
7990 LIBXTRA="cxx_repository/*.o"
7991 ;;
7992
7993 Linux*)
7994 # test for the Intel compiler
7995 if test "$CXX" = "icc" ; then
7996 if test -z "$DEBUGFLAG"; then
7997 CFLAGS="-O2 -w1"
7998 CXXFLAGS="-O2"
7999 fi
8000 else
8001 echo "+++ Unknown compiler, using safe optimization flags"
8002 if test -z "$DEBUGFLAG"; then
8003 CFLAGS="-O"
8004 CXXFLAGS="-O"
8005 fi
8006 fi
8007 ;;
8008
8009 Darwin*)
8010 # Mac OS/X, where cc is really gcc
8011 # assume presence of fink
8012 ;;
8013
8014 *)
8015 # Running some other operating system; inform the user they
8016 # should contribute the necessary options to [email protected]...
8017 echo "+++ Untried platform"
8018 echo "+++ Building Imview with default compiler flags; contact"
8019 echo "+++ hugues.talbot at gmail dot com with uname and compiler options needed"
8020 echo "+++ for your platform, or set the CFLAGS and CXXFLAGS options"
8021 echo "+++ before running configure."
8022 ;;
8023 esac
8024 fi
8025
8026
8027
8028
8029 #
8030 # Find math library
8031 #
8032 MATHLIB=''
8033 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
8034 $as_echo_n "checking for sqrt in -lm... " >&6; }
8035 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8036 $as_echo_n "(cached) " >&6
8037 else
8038 ac_check_lib_save_LIBS=$LIBS
8039 LIBS="-lm $LIBS"
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046
8047 /* Override any GCC internal prototype to avoid an error.
8048 Use char because int might match the return type of a GCC
8049 builtin and then its argument prototype would still apply. */
8050 #ifdef __cplusplus
8051 extern "C"
8052 #endif
8053 char sqrt ();
8054 int
8055 main ()
8056 {
8057 return sqrt ();
8058 ;
8059 return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext conftest$ac_exeext
8063 if { (ac_try="$ac_link"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070 (eval "$ac_link") 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest$ac_exeext && {
8080 test "$cross_compiling" = yes ||
8081 $as_test_x conftest$ac_exeext
8082 }; then
8083 ac_cv_lib_m_sqrt=yes
8084 else
8085 $as_echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088 ac_cv_lib_m_sqrt=no
8089 fi
8090
8091 rm -rf conftest.dSYM
8092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8093 conftest$ac_exeext conftest.$ac_ext
8094 LIBS=$ac_check_lib_save_LIBS
8095 fi
8096 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
8097 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
8098 if test "x$ac_cv_lib_m_sqrt" = x""yes; then
8099 MATHLIB=" -lm"
8100 fi
8101
8102 LIBS="$LIBS $MATHLIB" # -lm is needed almost everywhere
8103
8104
8105 #AC_CHECK_LIB(GL, main)
8106
8107
8108
8109 $ECHO -n "Checking for fltk version: <${my_fltk_version}> "
8110 majorver=`(${FLUID} -o /tmp/toto -c /dev/null ; grep 'version' /tmp/toto | awk '{printf("%.0f\n", $NF)}' )`
8111 minorver=`( grep 'version' /tmp/toto | awk '{printf("%0.f\n", ($NF-int($NF)) * 100)}' )`
8112 patchver=`( grep 'version' /tmp/toto | awk '{printf("%0.f\n", 100*((($NF-int($NF))*100)-int(($NF-int($NF))*100)))}' )`
8113 rm /tmp/toto # clean up
8114 if test $majorver -eq 1 -a $minorver -ge 1
8115 then
8116 echo "... OK"
8117 else
8118 echo ""
8119 echo "*** Please select FLTK version 1.1.x"
8120 echo "*** NOTE that FLTK 2.0 or greater is not supported yet..."
8121 echo "*** FLTK 1.0.x is only supported by imview-1.0.x or lesser"
8122 exit 1
8123 fi
8124
8125 fltk_alt_suff=`echo $CXX | sed 's%/%_%g'`
8126 echo "Alternative libfltk name: " libfltk_${fltk_alt_suff}.a
8127 echo "Configured libfltk name: " $fltk_config_name
8128
8129
8130
8131
8132 xtra_cflags=`$my_fltk_config --cflags`
8133 xtra_ldflags=`$my_fltk_config --ldflags`
8134 if test "$have_wingdi" = 'yes' ; then
8135 echo "Building for the Windows GDI"
8136 CPPFLAGS="$CPPFLAGS ${xtra_cflags}"
8137 XLIBS="$XLIBS ${xtra_ldflags}"
8138 fi
8139
8140 if test "$have_macos" = 'yes' ; then
8141 echo "Building for MacOS Carbon environment"
8142 XLIBS="$XLIBS -framework Carbon -framework ApplicationServices"
8143 fi
8144
8145
8146 need_Xft=`$my_fltk_config --ldflags | grep Xft`
8147 echo -n "Testing if $fltklib needs True Type rendering"
8148 if test "$need_Xft" != ""
8149 then
8150 echo "... Yes"
8151 FLTKEXTRA="$FLTKEXTRA -lXft"
8152 else
8153 echo "... No"
8154 fi
8155
8156
8157
8158 THREADLIB=''
8159 if test "$with_server" != 'no'
8160 then
8161 # Unix
8162 if test "$have_x" != "no" -o "$have_carbon" != "no" ; then
8163 echo "Testing for Unix threads"
8164 echo "Standard Pthreads:"
8165 { $as_echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
8166 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
8167 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
8168 $as_echo_n "(cached) " >&6
8169 else
8170 ac_check_lib_save_LIBS=$LIBS
8171 LIBS="-lpthread $LIBS"
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h. */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178
8179 /* Override any GCC internal prototype to avoid an error.
8180 Use char because int might match the return type of a GCC
8181 builtin and then its argument prototype would still apply. */
8182 #ifdef __cplusplus
8183 extern "C"
8184 #endif
8185 char pthread_attr_init ();
8186 int
8187 main ()
8188 {
8189 return pthread_attr_init ();
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (ac_try="$ac_link"
8196 case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199 esac
8200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8201 $as_echo "$ac_try_echo") >&5
8202 (eval "$ac_link") 2>conftest.er1
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } && {
8209 test -z "$ac_c_werror_flag" ||
8210 test ! -s conftest.err
8211 } && test -s conftest$ac_exeext && {
8212 test "$cross_compiling" = yes ||
8213 $as_test_x conftest$ac_exeext
8214 }; then
8215 ac_cv_lib_pthread_pthread_attr_init=yes
8216 else
8217 $as_echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8219
8220 ac_cv_lib_pthread_pthread_attr_init=no
8221 fi
8222
8223 rm -rf conftest.dSYM
8224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8225 conftest$ac_exeext conftest.$ac_ext
8226 LIBS=$ac_check_lib_save_LIBS
8227 fi
8228 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
8229 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
8230 if test "x$ac_cv_lib_pthread_pthread_attr_init" = x""yes; then
8231
8232 cat >>confdefs.h <<\_ACEOF
8233 #define HAVE_PTHREADS 1
8234 _ACEOF
8235
8236 THREADLIB="-lpthread"
8237 THREADDEF="-D_REENTRANT"
8238 else
8239 echo "Old DEC threads:"
8240 { $as_echo "$as_me:$LINENO: checking for pthread_attr_create in -lpthreads" >&5
8241 $as_echo_n "checking for pthread_attr_create in -lpthreads... " >&6; }
8242 if test "${ac_cv_lib_pthreads_pthread_attr_create+set}" = set; then
8243 $as_echo_n "(cached) " >&6
8244 else
8245 ac_check_lib_save_LIBS=$LIBS
8246 LIBS="-lpthreads $LIBS"
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253
8254 /* Override any GCC internal prototype to avoid an error.
8255 Use char because int might match the return type of a GCC
8256 builtin and then its argument prototype would still apply. */
8257 #ifdef __cplusplus
8258 extern "C"
8259 #endif
8260 char pthread_attr_create ();
8261 int
8262 main ()
8263 {
8264 return pthread_attr_create ();
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 rm -f conftest.$ac_objext conftest$ac_exeext
8270 if { (ac_try="$ac_link"
8271 case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274 esac
8275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8276 $as_echo "$ac_try_echo") >&5
8277 (eval "$ac_link") 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest$ac_exeext && {
8287 test "$cross_compiling" = yes ||
8288 $as_test_x conftest$ac_exeext
8289 }; then
8290 ac_cv_lib_pthreads_pthread_attr_create=yes
8291 else
8292 $as_echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_cv_lib_pthreads_pthread_attr_create=no
8296 fi
8297
8298 rm -rf conftest.dSYM
8299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8300 conftest$ac_exeext conftest.$ac_ext
8301 LIBS=$ac_check_lib_save_LIBS
8302 fi
8303 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_create" >&5
8304 $as_echo "$ac_cv_lib_pthreads_pthread_attr_create" >&6; }
8305 if test "x$ac_cv_lib_pthreads_pthread_attr_create" = x""yes; then
8306
8307 cat >>confdefs.h <<\_ACEOF
8308 #define HAVE_DECTHREADS 1
8309 _ACEOF
8310
8311
8312 cat >>confdefs.h <<\_ACEOF
8313 #define HAVE_PTHREADS 1
8314 _ACEOF
8315
8316 THREADLIB="-lpthreads"
8317 else
8318 with_server="no"; echo "*** The server would not be able to run"
8319 fi
8320
8321 fi
8322
8323 else # for Windows we use a compatibility library, slightly different name
8324 echo "Testing for windows compatible pthreads"
8325 as_ac_Lib=`$as_echo "ac_cv_lib_${WINTHREAD}''_pthread_attr_init" | $as_tr_sh`
8326 { $as_echo "$as_me:$LINENO: checking for pthread_attr_init in -l${WINTHREAD}" >&5
8327 $as_echo_n "checking for pthread_attr_init in -l${WINTHREAD}... " >&6; }
8328 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
8329 $as_echo_n "(cached) " >&6
8330 else
8331 ac_check_lib_save_LIBS=$LIBS
8332 LIBS="-l${WINTHREAD} $LIBS"
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339
8340 /* Override any GCC internal prototype to avoid an error.
8341 Use char because int might match the return type of a GCC
8342 builtin and then its argument prototype would still apply. */
8343 #ifdef __cplusplus
8344 extern "C"
8345 #endif
8346 char pthread_attr_init ();
8347 int
8348 main ()
8349 {
8350 return pthread_attr_init ();
8351 ;
8352 return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (ac_try="$ac_link"
8357 case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8360 esac
8361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8362 $as_echo "$ac_try_echo") >&5
8363 (eval "$ac_link") 2>conftest.er1
8364 ac_status=$?
8365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
8368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && {
8370 test -z "$ac_c_werror_flag" ||
8371 test ! -s conftest.err
8372 } && test -s conftest$ac_exeext && {
8373 test "$cross_compiling" = yes ||
8374 $as_test_x conftest$ac_exeext
8375 }; then
8376 eval "$as_ac_Lib=yes"
8377 else
8378 $as_echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 eval "$as_ac_Lib=no"
8382 fi
8383
8384 rm -rf conftest.dSYM
8385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8386 conftest$ac_exeext conftest.$ac_ext
8387 LIBS=$ac_check_lib_save_LIBS
8388 fi
8389 ac_res=`eval 'as_val=${'$as_ac_Lib'}
8390 $as_echo "$as_val"'`
8391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8392 $as_echo "$ac_res" >&6; }
8393 as_val=`eval 'as_val=${'$as_ac_Lib'}
8394 $as_echo "$as_val"'`
8395 if test "x$as_val" = x""yes; then
8396
8397 cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_PTHREADS 1
8399 _ACEOF
8400
8401 THREADLIB="-l${WINTHREAD}"
8402 THREADDEF=""
8403 else
8404 with_server="no"; echo "*** The server would not be able to run"
8405 fi
8406
8407 fi
8408 # LIBS="$THREADLIB $LIBS"
8409 CPPFLAGS="$THREADDEF $CPPFLAGS"
8410 fi
8411
8412
8413 if test "$with_sysv_ipc" != "no"
8414 then
8415 { $as_echo "$as_me:$LINENO: checking for ftok" >&5
8416 $as_echo_n "checking for ftok... " >&6; }
8417 if test "${ac_cv_func_ftok+set}" = set; then
8418 $as_echo_n "(cached) " >&6
8419 else
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 /* Define ftok to an innocuous variant, in case <limits.h> declares ftok.
8427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8428 #define ftok innocuous_ftok
8429
8430 /* System header to define __stub macros and hopefully few prototypes,
8431 which can conflict with char ftok (); below.
8432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8433 <limits.h> exists even on freestanding compilers. */
8434
8435 #ifdef __STDC__
8436 # include <limits.h>
8437 #else
8438 # include <assert.h>
8439 #endif
8440
8441 #undef ftok
8442
8443 /* Override any GCC internal prototype to avoid an error.
8444 Use char because int might match the return type of a GCC
8445 builtin and then its argument prototype would still apply. */
8446 #ifdef __cplusplus
8447 extern "C"
8448 #endif
8449 char ftok ();
8450 /* The GNU C library defines this for functions which it implements
8451 to always fail with ENOSYS. Some functions are actually named
8452 something starting with __ and the normal name is an alias. */
8453 #if defined __stub_ftok || defined __stub___ftok
8454 choke me
8455 #endif
8456
8457 int
8458 main ()
8459 {
8460 return ftok ();
8461 ;
8462 return 0;
8463 }
8464 _ACEOF
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (ac_try="$ac_link"
8467 case "(($ac_try" in
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8470 esac
8471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8472 $as_echo "$ac_try_echo") >&5
8473 (eval "$ac_link") 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && {
8480 test -z "$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 } && test -s conftest$ac_exeext && {
8483 test "$cross_compiling" = yes ||
8484 $as_test_x conftest$ac_exeext
8485 }; then
8486 ac_cv_func_ftok=yes
8487 else
8488 $as_echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491 ac_cv_func_ftok=no
8492 fi
8493
8494 rm -rf conftest.dSYM
8495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8496 conftest$ac_exeext conftest.$ac_ext
8497 fi
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_ftok" >&5
8499 $as_echo "$ac_cv_func_ftok" >&6; }
8500 if test "x$ac_cv_func_ftok" = x""yes; then
8501
8502 cat >>confdefs.h <<\_ACEOF
8503 #define HAVE_SYSV_IPC 1
8504 _ACEOF
8505
8506 else
8507 with_sysv_ipc='no'
8508 fi
8509
8510 CPPFLAGS="$SYSVDEF $CPPFLAGS"
8511 fi
8512
8513 if test "$with_posix_ipc" != "no"
8514 then
8515 POSIX_IPC_LIB=''
8516 { $as_echo "$as_me:$LINENO: checking for shm_open in -lrt" >&5
8517 $as_echo_n "checking for shm_open in -lrt... " >&6; }
8518 if test "${ac_cv_lib_rt_shm_open+set}" = set; then
8519 $as_echo_n "(cached) " >&6
8520 else
8521 ac_check_lib_save_LIBS=$LIBS
8522 LIBS="-lrt $LIBS"
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h. */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529
8530 /* Override any GCC internal prototype to avoid an error.
8531 Use char because int might match the return type of a GCC
8532 builtin and then its argument prototype would still apply. */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 char shm_open ();
8537 int
8538 main ()
8539 {
8540 return shm_open ();
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8552 $as_echo "$ac_try_echo") >&5
8553 (eval "$ac_link") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest$ac_exeext && {
8563 test "$cross_compiling" = yes ||
8564 $as_test_x conftest$ac_exeext
8565 }; then
8566 ac_cv_lib_rt_shm_open=yes
8567 else
8568 $as_echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_lib_rt_shm_open=no
8572 fi
8573
8574 rm -rf conftest.dSYM
8575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8576 conftest$ac_exeext conftest.$ac_ext
8577 LIBS=$ac_check_lib_save_LIBS
8578 fi
8579 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_shm_open" >&5
8580 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
8581 if test "x$ac_cv_lib_rt_shm_open" = x""yes; then
8582 SAVELIBS=$LIBS
8583 LIBS="$LIBS -lrt"
8584 $ECHO -n "checking if the POSIX semaphores actually work... "
8585 if test "$cross_compiling" = yes; then
8586 echo "no (cross-compiling)"
8587 POSIX_IPC_LIB=""
8588 with_posix_ipc=no
8589 else
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h. */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8596
8597 #include <stdio.h>
8598 #include <errno.h>
8599 #include <semaphore.h>
8600 #include <fcntl.h>
8601 #include <unistd.h>
8602 #include <stdlib.h>
8603 #ifdef Solaris
8604 #define TESTPATH "/px_ipc_test"
8605 #else
8606 #define TESTPATH "/tmp/px_ipc_test"
8607 #endif
8608 int main()
8609 {
8610 sem_t *sem;
8611 int err;
8612 fputs("testpath = " TESTPATH, stderr);
8613 sem=sem_open(TESTPATH, O_RDWR | O_CREAT, 0600,0);
8614 if (sem == SEM_FAILED) {
8615 perror("semtest, sem_open failed:");
8616 exit(1);
8617 }
8618 if ((err = sem_close(sem)) != 0) {
8619 perror("semtest, sem_close failed:");
8620 return(err);
8621 }
8622 if ((err = sem_unlink(TESTPATH)) != 0) {
8623 perror("semtest, sem_unlink failed:");
8624 }
8625 return(err);
8626 }
8627
8628 _ACEOF
8629 rm -f conftest$ac_exeext
8630 if { (ac_try="$ac_link"
8631 case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634 esac
8635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8636 $as_echo "$ac_try_echo") >&5
8637 (eval "$ac_link") 2>&5
8638 ac_status=$?
8639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8641 { (case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8644 esac
8645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8646 $as_echo "$ac_try_echo") >&5
8647 (eval "$ac_try") 2>&5
8648 ac_status=$?
8649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 echo "yes"
8652 cat >>confdefs.h <<\_ACEOF
8653 #define HAVE_POSIX_IPC 1
8654 _ACEOF
8655 POSIX_IPC_LIB="-lrt"
8656 else
8657 $as_echo "$as_me: program exited with status $ac_status" >&5
8658 $as_echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 ( exit $ac_status )
8662 echo "no"
8663 POSIX_IPC_LIB=""
8664 with_posix_ipc=no
8665 fi
8666 rm -rf conftest.dSYM
8667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8668 fi
8669
8670
8671 LIBS=$SAVELIBS
8672 else
8673 with_posix_ipc=no
8674 fi
8675
8676
8677 fi
8678
8679
8680 if test "$with_magick" != "no"
8681 then
8682 MAGICKLIB=''
8683 # check if we can find the configuration utility
8684 # Extract the first word of "Magick-config", so it can be a program name with args.
8685 set dummy Magick-config; ac_word=$2
8686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if test "${ac_cv_prog_have_magick_config+set}" = set; then
8689 $as_echo_n "(cached) " >&6
8690 else
8691 if test -n "$have_magick_config"; then
8692 ac_cv_prog_have_magick_config="$have_magick_config" # Let the user override the test.
8693 else
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8701 ac_cv_prog_have_magick_config=""yes""
8702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705 done
8706 done
8707 IFS=$as_save_IFS
8708
8709 test -z "$ac_cv_prog_have_magick_config" && ac_cv_prog_have_magick_config=""no""
8710 fi
8711 fi
8712 have_magick_config=$ac_cv_prog_have_magick_config
8713 if test -n "$have_magick_config"; then
8714 { $as_echo "$as_me:$LINENO: result: $have_magick_config" >&5
8715 $as_echo "$have_magick_config" >&6; }
8716 else
8717 { $as_echo "$as_me:$LINENO: result: no" >&5
8718 $as_echo "no" >&6; }
8719 fi
8720
8721
8722 if test "$have_magick_config" != "no"
8723 then
8724 # verify that Magick associated libraries are not incompatible
8725 if test "$have_x" != "yes" -a "`Magick-config --libs | grep X11`" != "" ; then
8726 # conflict
8727 echo "Magick library conflicts with requested absence of X11 library usage"
8728 with_magick=no
8729 else
8730 # this might turn really ugly
8731 CPPFLAGS="$CPPFLAGS "`Magick-config --cppflags`
8732 LDFLAGS="$LDFLAGS "`Magick-config --ldflags`
8733 IMLIBS="$IMLIBS "`Magick-config --libs`
8734 # we are not finished: we must check we have the correct version
8735 # Try first with libMagick.so .a .dll or .dylib
8736 { $as_echo "$as_me:$LINENO: checking for DispatchImage in -lMagick" >&5
8737 $as_echo_n "checking for DispatchImage in -lMagick... " >&6; }
8738 if test "${ac_cv_lib_Magick_DispatchImage+set}" = set; then
8739 $as_echo_n "(cached) " >&6
8740 else
8741 ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-lMagick $IMLIBS $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749
8750 /* Override any GCC internal prototype to avoid an error.
8751 Use char because int might match the return type of a GCC
8752 builtin and then its argument prototype would still apply. */
8753 #ifdef __cplusplus
8754 extern "C"
8755 #endif
8756 char DispatchImage ();
8757 int
8758 main ()
8759 {
8760 return DispatchImage ();
8761 ;
8762 return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (ac_try="$ac_link"
8767 case "(($ac_try" in
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8770 esac
8771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8772 $as_echo "$ac_try_echo") >&5
8773 (eval "$ac_link") 2>conftest.er1
8774 ac_status=$?
8775 grep -v '^ *+' conftest.er1 >conftest.err
8776 rm -f conftest.er1
8777 cat conftest.err >&5
8778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } && {
8780 test -z "$ac_c_werror_flag" ||
8781 test ! -s conftest.err
8782 } && test -s conftest$ac_exeext && {
8783 test "$cross_compiling" = yes ||
8784 $as_test_x conftest$ac_exeext
8785 }; then
8786 ac_cv_lib_Magick_DispatchImage=yes
8787 else
8788 $as_echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 ac_cv_lib_Magick_DispatchImage=no
8792 fi
8793
8794 rm -rf conftest.dSYM
8795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8796 conftest$ac_exeext conftest.$ac_ext
8797 LIBS=$ac_check_lib_save_LIBS
8798 fi
8799 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Magick_DispatchImage" >&5
8800 $as_echo "$ac_cv_lib_Magick_DispatchImage" >&6; }
8801 if test "x$ac_cv_lib_Magick_DispatchImage" = x""yes; then
8802 cat >>confdefs.h <<\_ACEOF
8803 #define HAVE_MAGICK 1
8804 _ACEOF
8805 MAGICKLIB=" -lMagick"
8806 else
8807 MAGICKLIB=""
8808 fi
8809
8810 if test "$MAGICKLIB" != " -lMagick" ; then
8811 # then try with newer MagickCore.blabla
8812 echo "Magick lib not found, trying with MagickCore"
8813 { $as_echo "$as_me:$LINENO: checking for DispatchImage in -lMagickCore" >&5
8814 $as_echo_n "checking for DispatchImage in -lMagickCore... " >&6; }
8815 if test "${ac_cv_lib_MagickCore_DispatchImage+set}" = set; then
8816 $as_echo_n "(cached) " >&6
8817 else
8818 ac_check_lib_save_LIBS=$LIBS
8819 LIBS="-lMagickCore $IMLIBS $LIBS"
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h. */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826
8827 /* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 char DispatchImage ();
8834 int
8835 main ()
8836 {
8837 return DispatchImage ();
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (ac_try="$ac_link"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8849 $as_echo "$ac_try_echo") >&5
8850 (eval "$ac_link") 2>conftest.er1
8851 ac_status=$?
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest$ac_exeext && {
8860 test "$cross_compiling" = yes ||
8861 $as_test_x conftest$ac_exeext
8862 }; then
8863 ac_cv_lib_MagickCore_DispatchImage=yes
8864 else
8865 $as_echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_cv_lib_MagickCore_DispatchImage=no
8869 fi
8870
8871 rm -rf conftest.dSYM
8872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8873 conftest$ac_exeext conftest.$ac_ext
8874 LIBS=$ac_check_lib_save_LIBS
8875 fi
8876 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_MagickCore_DispatchImage" >&5
8877 $as_echo "$ac_cv_lib_MagickCore_DispatchImage" >&6; }
8878 if test "x$ac_cv_lib_MagickCore_DispatchImage" = x""yes; then
8879 cat >>confdefs.h <<\_ACEOF
8880 #define HAVE_MAGICK 1
8881 _ACEOF
8882 MAGICKLIB=" -lMagickCore"
8883 else
8884 MAGICKLIB=""
8885 fi
8886
8887 if test "$MAGICKLIB" != " -lMagickCore" ; then
8888 echo "Magick-config found, but library does not appear compatible."
8889 echo "Please report to developers : [email protected]"
8890 echo "Magic-config version is " `Magick-config --version`
8891 with_magick="no"
8892 fi
8893 fi
8894
8895 if test "$with_magic" != "no" ; then
8896 # check if ImageMagick uses the new exception structure
8897 { $as_echo "$as_me:$LINENO: checking whether ImageMagick uses the new exception structure" >&5
8898 $as_echo_n "checking whether ImageMagick uses the new exception structure... " >&6; }
8899 if test "${ac_cv_magick_reason+set}" = set; then
8900 $as_echo_n "(cached) " >&6
8901 else
8902
8903 ac_ext=cpp
8904 ac_cpp='$CXXCPP $CPPFLAGS'
8905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8908
8909 cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h. */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915
8916 #include <stdio.h>
8917 #include <sys/types.h>
8918 #include <magick/api.h>
8919 int
8920 main ()
8921 {
8922
8923 ExceptionInfo exception;
8924 MagickWarning(exception.severity,exception.reason,exception.description);
8925 return 0;
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 rm -f conftest.$ac_objext
8931 if { (ac_try="$ac_compile"
8932 case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935 esac
8936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8937 $as_echo "$ac_try_echo") >&5
8938 (eval "$ac_compile") 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && {
8945 test -z "$ac_cxx_werror_flag" ||
8946 test ! -s conftest.err
8947 } && test -s conftest.$ac_objext; then
8948 ac_cv_magick_reason=yes
8949 else
8950 $as_echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953 ac_cv_magick_reason=no
8954 fi
8955
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 ac_ext=c
8958 ac_cpp='$CPP $CPPFLAGS'
8959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8962
8963
8964 fi
8965 { $as_echo "$as_me:$LINENO: result: $ac_cv_magick_reason" >&5
8966 $as_echo "$ac_cv_magick_reason" >&6; }
8967 if test "$ac_cv_magick_reason" = yes ; then
8968
8969 cat >>confdefs.h <<\_ACEOF
8970 #define MAGICK_USES_REASON /**/
8971 _ACEOF
8972
8973 fi
8974
8975 # check if ImageMagick uses InitMagick now
8976 { $as_echo "$as_me:$LINENO: checking whether ImageMagick uses InitializeMagick" >&5
8977 $as_echo_n "checking whether ImageMagick uses InitializeMagick... " >&6; }
8978 if test "${ac_cv_magick_init+set}" = set; then
8979 $as_echo_n "(cached) " >&6
8980 else
8981
8982 ac_ext=cpp
8983 ac_cpp='$CXXCPP $CPPFLAGS'
8984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8987
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994
8995 #include <stdio.h>
8996 #include <sys/types.h>
8997 #include <magick/api.h>
8998 int
8999 main ()
9000 {
9001
9002 InitializeMagick(NULL);
9003 return 0;
9004 ;
9005 return 0;
9006 }
9007 _ACEOF
9008 rm -f conftest.$ac_objext
9009 if { (ac_try="$ac_compile"
9010 case "(($ac_try" in
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9013 esac
9014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9015 $as_echo "$ac_try_echo") >&5
9016 (eval "$ac_compile") 2>conftest.er1
9017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
9021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_cxx_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest.$ac_objext; then
9026 ac_cv_magick_init=yes
9027 else
9028 $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 ac_cv_magick_init=no
9032 fi
9033
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 ac_ext=c
9036 ac_cpp='$CPP $CPPFLAGS'
9037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9040
9041
9042 fi
9043 { $as_echo "$as_me:$LINENO: result: $ac_cv_magick_init" >&5
9044 $as_echo "$ac_cv_magick_init" >&6; }
9045 if test "$ac_cv_magick_init" = yes ; then
9046
9047 cat >>confdefs.h <<\_ACEOF
9048 #define MAGICK_USES_INIT /**/
9049 _ACEOF
9050
9051 fi
9052
9053 # check if some extra arguments are required
9054 { $as_echo "$as_me:$LINENO: checking whether ImageMagick passes around an extra exception reference all over the place" >&5
9055 $as_echo_n "checking whether ImageMagick passes around an extra exception reference all over the place... " >&6; }
9056 if test "${ac_cv_magick_needs_more_exception+set}" = set; then
9057 $as_echo_n "(cached) " >&6
9058 else
9059
9060 ac_ext=cpp
9061 ac_cpp='$CXXCPP $CPPFLAGS'
9062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9065
9066 cat >conftest.$ac_ext <<_ACEOF
9067 /* confdefs.h. */
9068 _ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h. */
9072
9073 #include <stdio.h>
9074 #include <sys/types.h>
9075 #include <magick/api.h>
9076 int
9077 main ()
9078 {
9079
9080 ExceptionInfo exception;
9081 Image *image;
9082
9083 IsGrayImage(image, &exception);
9084 return 0;
9085 ;
9086 return 0;
9087 }
9088 _ACEOF
9089 rm -f conftest.$ac_objext
9090 if { (ac_try="$ac_compile"
9091 case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9094 esac
9095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9096 $as_echo "$ac_try_echo") >&5
9097 (eval "$ac_compile") 2>conftest.er1
9098 ac_status=$?
9099 grep -v '^ *+' conftest.er1 >conftest.err
9100 rm -f conftest.er1
9101 cat conftest.err >&5
9102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && {
9104 test -z "$ac_cxx_werror_flag" ||
9105 test ! -s conftest.err
9106 } && test -s conftest.$ac_objext; then
9107 ac_cv_magick_needs_more_exception=yes
9108 else
9109 $as_echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9111
9112 ac_cv_magick_needs_more_exception=no
9113 fi
9114
9115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9116 ac_ext=c
9117 ac_cpp='$CPP $CPPFLAGS'
9118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9121
9122
9123 fi
9124 { $as_echo "$as_me:$LINENO: result: $ac_cv_magick_needs_more_exception" >&5
9125 $as_echo "$ac_cv_magick_needs_more_exception" >&6; }
9126 if test "$ac_cv_magick_needs_more_exception" = yes ; then
9127
9128 cat >>confdefs.h <<\_ACEOF
9129 #define MAGICK_NEEDS_MORE_EXCEPTION /**/
9130 _ACEOF
9131
9132 fi
9133
9134 fi
9135 fi
9136 else
9137 echo "*** Magick-config not found in path!"
9138 with_magick="no"
9139 fi
9140 fi
9141
9142
9143 # ZLIB is not an option, required by some libraries
9144 ZLIB=""
9145 { $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
9146 $as_echo_n "checking for gzopen in -lz... " >&6; }
9147 if test "${ac_cv_lib_z_gzopen+set}" = set; then
9148 $as_echo_n "(cached) " >&6
9149 else
9150 ac_check_lib_save_LIBS=$LIBS
9151 LIBS="-lz $LIBS"
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158
9159 /* Override any GCC internal prototype to avoid an error.
9160 Use char because int might match the return type of a GCC
9161 builtin and then its argument prototype would still apply. */
9162 #ifdef __cplusplus
9163 extern "C"
9164 #endif
9165 char gzopen ();
9166 int
9167 main ()
9168 {
9169 return gzopen ();
9170 ;
9171 return 0;
9172 }
9173 _ACEOF
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (ac_try="$ac_link"
9176 case "(($ac_try" in
9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9179 esac
9180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9181 $as_echo "$ac_try_echo") >&5
9182 (eval "$ac_link") 2>conftest.er1
9183 ac_status=$?
9184 grep -v '^ *+' conftest.er1 >conftest.err
9185 rm -f conftest.er1
9186 cat conftest.err >&5
9187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && {
9189 test -z "$ac_c_werror_flag" ||
9190 test ! -s conftest.err
9191 } && test -s conftest$ac_exeext && {
9192 test "$cross_compiling" = yes ||
9193 $as_test_x conftest$ac_exeext
9194 }; then
9195 ac_cv_lib_z_gzopen=yes
9196 else
9197 $as_echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200 ac_cv_lib_z_gzopen=no
9201 fi
9202
9203 rm -rf conftest.dSYM
9204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9205 conftest$ac_exeext conftest.$ac_ext
9206 LIBS=$ac_check_lib_save_LIBS
9207 fi
9208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
9209 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
9210 if test "x$ac_cv_lib_z_gzopen" = x""yes; then
9211 cat >>confdefs.h <<\_ACEOF
9212 #define HAVE_LIBZ 1
9213 _ACEOF
9214 ZLIB=" -lz"
9215 fi
9216
9217 if test "$ZLIB" = ""
9218 then
9219 ## second chance
9220 { $as_echo "$as_me:$LINENO: checking for gzopen in -lfltk_z" >&5
9221 $as_echo_n "checking for gzopen in -lfltk_z... " >&6; }
9222 if test "${ac_cv_lib_fltk_z_gzopen+set}" = set; then
9223 $as_echo_n "(cached) " >&6
9224 else
9225 ac_check_lib_save_LIBS=$LIBS
9226 LIBS="-lfltk_z $LIBS"
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h. */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233
9234 /* Override any GCC internal prototype to avoid an error.
9235 Use char because int might match the return type of a GCC
9236 builtin and then its argument prototype would still apply. */
9237 #ifdef __cplusplus
9238 extern "C"
9239 #endif
9240 char gzopen ();
9241 int
9242 main ()
9243 {
9244 return gzopen ();
9245 ;
9246 return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (ac_try="$ac_link"
9251 case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254 esac
9255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9256 $as_echo "$ac_try_echo") >&5
9257 (eval "$ac_link") 2>conftest.er1
9258 ac_status=$?
9259 grep -v '^ *+' conftest.er1 >conftest.err
9260 rm -f conftest.er1
9261 cat conftest.err >&5
9262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && {
9264 test -z "$ac_c_werror_flag" ||
9265 test ! -s conftest.err
9266 } && test -s conftest$ac_exeext && {
9267 test "$cross_compiling" = yes ||
9268 $as_test_x conftest$ac_exeext
9269 }; then
9270 ac_cv_lib_fltk_z_gzopen=yes
9271 else
9272 $as_echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275 ac_cv_lib_fltk_z_gzopen=no
9276 fi
9277
9278 rm -rf conftest.dSYM
9279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9280 conftest$ac_exeext conftest.$ac_ext
9281 LIBS=$ac_check_lib_save_LIBS
9282 fi
9283 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_z_gzopen" >&5
9284 $as_echo "$ac_cv_lib_fltk_z_gzopen" >&6; }
9285 if test "x$ac_cv_lib_fltk_z_gzopen" = x""yes; then
9286 cat >>confdefs.h <<\_ACEOF
9287 #define HAVE_LIBZ 1
9288 _ACEOF
9289 ZLIB=" -lfltk_z"
9290 fi
9291
9292 fi
9293
9294 if test "$with_jpeg" != "no"
9295 then
9296 JPEGLIB=''
9297 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
9298 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
9299 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
9300 $as_echo_n "(cached) " >&6
9301 else
9302 ac_check_lib_save_LIBS=$LIBS
9303 LIBS="-ljpeg ${ZLIB} $LIBS"
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310
9311 /* Override any GCC internal prototype to avoid an error.
9312 Use char because int might match the return type of a GCC
9313 builtin and then its argument prototype would still apply. */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 char jpeg_write_raw_data ();
9318 int
9319 main ()
9320 {
9321 return jpeg_write_raw_data ();
9322 ;
9323 return 0;
9324 }
9325 _ACEOF
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (ac_try="$ac_link"
9328 case "(($ac_try" in
9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9331 esac
9332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9333 $as_echo "$ac_try_echo") >&5
9334 (eval "$ac_link") 2>conftest.er1
9335 ac_status=$?
9336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } && {
9341 test -z "$ac_c_werror_flag" ||
9342 test ! -s conftest.err
9343 } && test -s conftest$ac_exeext && {
9344 test "$cross_compiling" = yes ||
9345 $as_test_x conftest$ac_exeext
9346 }; then
9347 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
9348 else
9349 $as_echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352 ac_cv_lib_jpeg_jpeg_write_raw_data=no
9353 fi
9354
9355 rm -rf conftest.dSYM
9356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9357 conftest$ac_exeext conftest.$ac_ext
9358 LIBS=$ac_check_lib_save_LIBS
9359 fi
9360 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
9361 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
9362 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
9363 cat >>confdefs.h <<\_ACEOF
9364 #define HAVE_JPEG 1
9365 _ACEOF
9366 JPEGLIB=" -ljpeg"
9367 else
9368 with_jpeg=no
9369 fi
9370
9371 # second chance
9372 if test "$JPEGLIB" = ""
9373 then
9374 # try if fltk_jpeg exists
9375 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -lfltk_jpeg" >&5
9376 $as_echo_n "checking for jpeg_write_raw_data in -lfltk_jpeg... " >&6; }
9377 if test "${ac_cv_lib_fltk_jpeg_jpeg_write_raw_data+set}" = set; then
9378 $as_echo_n "(cached) " >&6
9379 else
9380 ac_check_lib_save_LIBS=$LIBS
9381 LIBS="-lfltk_jpeg ${ZLIB} $LIBS"
9382 cat >conftest.$ac_ext <<_ACEOF
9383 /* confdefs.h. */
9384 _ACEOF
9385 cat confdefs.h >>conftest.$ac_ext
9386 cat >>conftest.$ac_ext <<_ACEOF
9387 /* end confdefs.h. */
9388
9389 /* Override any GCC internal prototype to avoid an error.
9390 Use char because int might match the return type of a GCC
9391 builtin and then its argument prototype would still apply. */
9392 #ifdef __cplusplus
9393 extern "C"
9394 #endif
9395 char jpeg_write_raw_data ();
9396 int
9397 main ()
9398 {
9399 return jpeg_write_raw_data ();
9400 ;
9401 return 0;
9402 }
9403 _ACEOF
9404 rm -f conftest.$ac_objext conftest$ac_exeext
9405 if { (ac_try="$ac_link"
9406 case "(($ac_try" in
9407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408 *) ac_try_echo=$ac_try;;
9409 esac
9410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9411 $as_echo "$ac_try_echo") >&5
9412 (eval "$ac_link") 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } && {
9419 test -z "$ac_c_werror_flag" ||
9420 test ! -s conftest.err
9421 } && test -s conftest$ac_exeext && {
9422 test "$cross_compiling" = yes ||
9423 $as_test_x conftest$ac_exeext
9424 }; then
9425 ac_cv_lib_fltk_jpeg_jpeg_write_raw_data=yes
9426 else
9427 $as_echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9429
9430 ac_cv_lib_fltk_jpeg_jpeg_write_raw_data=no
9431 fi
9432
9433 rm -rf conftest.dSYM
9434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435 conftest$ac_exeext conftest.$ac_ext
9436 LIBS=$ac_check_lib_save_LIBS
9437 fi
9438 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_jpeg_jpeg_write_raw_data" >&5
9439 $as_echo "$ac_cv_lib_fltk_jpeg_jpeg_write_raw_data" >&6; }
9440 if test "x$ac_cv_lib_fltk_jpeg_jpeg_write_raw_data" = x""yes; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define HAVE_JPEG 1
9443 _ACEOF
9444 JPEGLIB=" -lfltk_jpeg"
9445 else
9446 with_jpeg=no
9447 fi
9448
9449 fi
9450
9451
9452 fi
9453
9454 if test "$with_tiff" != "no"
9455 then
9456 TIFFLIB=''
9457 { $as_echo "$as_me:$LINENO: checking for TIFFClose in -ltiff" >&5
9458 $as_echo_n "checking for TIFFClose in -ltiff... " >&6; }
9459 if test "${ac_cv_lib_tiff_TIFFClose+set}" = set; then
9460 $as_echo_n "(cached) " >&6
9461 else
9462 ac_check_lib_save_LIBS=$LIBS
9463 LIBS="-ltiff ${JPEGLIB} ${ZLIB} $LIBS"
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470
9471 /* Override any GCC internal prototype to avoid an error.
9472 Use char because int might match the return type of a GCC
9473 builtin and then its argument prototype would still apply. */
9474 #ifdef __cplusplus
9475 extern "C"
9476 #endif
9477 char TIFFClose ();
9478 int
9479 main ()
9480 {
9481 return TIFFClose ();
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (ac_try="$ac_link"
9488 case "(($ac_try" in
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9491 esac
9492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9493 $as_echo "$ac_try_echo") >&5
9494 (eval "$ac_link") 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } && {
9501 test -z "$ac_c_werror_flag" ||
9502 test ! -s conftest.err
9503 } && test -s conftest$ac_exeext && {
9504 test "$cross_compiling" = yes ||
9505 $as_test_x conftest$ac_exeext
9506 }; then
9507 ac_cv_lib_tiff_TIFFClose=yes
9508 else
9509 $as_echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9511
9512 ac_cv_lib_tiff_TIFFClose=no
9513 fi
9514
9515 rm -rf conftest.dSYM
9516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LIBS=$ac_check_lib_save_LIBS
9519 fi
9520 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClose" >&5
9521 $as_echo "$ac_cv_lib_tiff_TIFFClose" >&6; }
9522 if test "x$ac_cv_lib_tiff_TIFFClose" = x""yes; then
9523 cat >>confdefs.h <<\_ACEOF
9524 #define HAVE_TIFF 1
9525 _ACEOF
9526 TIFFLIB=" -ltiff"
9527 else
9528 with_tiff=no
9529 fi
9530
9531
9532 fi
9533
9534 if test "$with_pink" != "no"
9535 then
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_PINK_PGM_EXTENSIONS 1
9538 _ACEOF
9539
9540 fi
9541
9542
9543
9544 # check for libpng as well, this is not a choice at this point,
9545 # it may be required by libfltk_image.a
9546 PNGLIB=''
9547 if test "$ZLIB" != ""
9548 then
9549 { $as_echo "$as_me:$LINENO: checking for png_read_rows in -lpng" >&5
9550 $as_echo_n "checking for png_read_rows in -lpng... " >&6; }
9551 if test "${ac_cv_lib_png_png_read_rows+set}" = set; then
9552 $as_echo_n "(cached) " >&6
9553 else
9554 ac_check_lib_save_LIBS=$LIBS
9555 LIBS="-lpng ${ZLIB} $LIBS"
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char png_read_rows ();
9570 int
9571 main ()
9572 {
9573 return png_read_rows ();
9574 ;
9575 return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (ac_try="$ac_link"
9580 case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583 esac
9584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9585 $as_echo "$ac_try_echo") >&5
9586 (eval "$ac_link") 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest$ac_exeext && {
9596 test "$cross_compiling" = yes ||
9597 $as_test_x conftest$ac_exeext
9598 }; then
9599 ac_cv_lib_png_png_read_rows=yes
9600 else
9601 $as_echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 ac_cv_lib_png_png_read_rows=no
9605 fi
9606
9607 rm -rf conftest.dSYM
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LIBS=$ac_check_lib_save_LIBS
9611 fi
9612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_read_rows" >&5
9613 $as_echo "$ac_cv_lib_png_png_read_rows" >&6; }
9614 if test "x$ac_cv_lib_png_png_read_rows" = x""yes; then
9615 cat >>confdefs.h <<\_ACEOF
9616 #define HAVE_PNG 1
9617 _ACEOF
9618 PNGLIB=" -lpng"
9619 fi
9620
9621 if test "$PNGLIB" = ""
9622 then
9623 ## second chance
9624 { $as_echo "$as_me:$LINENO: checking for png_read_rows in -lflt_png" >&5
9625 $as_echo_n "checking for png_read_rows in -lflt_png... " >&6; }
9626 if test "${ac_cv_lib_flt_png_png_read_rows+set}" = set; then
9627 $as_echo_n "(cached) " >&6
9628 else
9629 ac_check_lib_save_LIBS=$LIBS
9630 LIBS="-lflt_png ${ZLIB} $LIBS"
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637
9638 /* Override any GCC internal prototype to avoid an error.
9639 Use char because int might match the return type of a GCC
9640 builtin and then its argument prototype would still apply. */
9641 #ifdef __cplusplus
9642 extern "C"
9643 #endif
9644 char png_read_rows ();
9645 int
9646 main ()
9647 {
9648 return png_read_rows ();
9649 ;
9650 return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9655 case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658 esac
9659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9660 $as_echo "$ac_try_echo") >&5
9661 (eval "$ac_link") 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest$ac_exeext && {
9671 test "$cross_compiling" = yes ||
9672 $as_test_x conftest$ac_exeext
9673 }; then
9674 ac_cv_lib_flt_png_png_read_rows=yes
9675 else
9676 $as_echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 ac_cv_lib_flt_png_png_read_rows=no
9680 fi
9681
9682 rm -rf conftest.dSYM
9683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9684 conftest$ac_exeext conftest.$ac_ext
9685 LIBS=$ac_check_lib_save_LIBS
9686 fi
9687 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_flt_png_png_read_rows" >&5
9688 $as_echo "$ac_cv_lib_flt_png_png_read_rows" >&6; }
9689 if test "x$ac_cv_lib_flt_png_png_read_rows" = x""yes; then
9690 cat >>confdefs.h <<\_ACEOF
9691 #define HAVE_PNG 1
9692 _ACEOF
9693 PNGLIB=" -lfltk_png"
9694 fi
9695
9696 fi
9697
9698 fi
9699
9700
9701 ac_ext=cpp
9702 ac_cpp='$CXXCPP $CPPFLAGS'
9703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9706
9707
9708 if test "$with_native_chooser" != "no"
9709 then
9710 if test -d "${srcdirfull}/extensions/Fl_Native_File_Chooser"
9711 then
9712 SAVECPP=$CPPFLAGS
9713 SAVECXX=$CXXFLAGS
9714 CPPFLAGS="$CPPFLAGS -I${srcdirfull}/extensions/Fl_Native_File_Chooser"
9715 CXXFLAGS="$CXXFLAGS -I${srcdirfull}/extensions/Fl_Native_File_Chooser"
9716 { $as_echo "$as_me:$LINENO: checking for FL/Fl_Native_File_Chooser.H" >&5
9717 $as_echo_n "checking for FL/Fl_Native_File_Chooser.H... " >&6; }
9718 if test "${ac_cv_header_FL_Fl_Native_File_Chooser_H+set}" = set; then
9719 $as_echo_n "(cached) " >&6
9720 else
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727
9728 #include <stdio.h>
9729 #include <FL/Fl.H>
9730
9731
9732 #include <FL/Fl_Native_File_Chooser.H>
9733 _ACEOF
9734 rm -f conftest.$ac_objext
9735 if { (ac_try="$ac_compile"
9736 case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739 esac
9740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9741 $as_echo "$ac_try_echo") >&5
9742 (eval "$ac_compile") 2>conftest.er1
9743 ac_status=$?
9744 grep -v '^ *+' conftest.er1 >conftest.err
9745 rm -f conftest.er1
9746 cat conftest.err >&5
9747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && {
9749 test -z "$ac_cxx_werror_flag" ||
9750 test ! -s conftest.err
9751 } && test -s conftest.$ac_objext; then
9752 ac_cv_header_FL_Fl_Native_File_Chooser_H=yes
9753 else
9754 $as_echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_cv_header_FL_Fl_Native_File_Chooser_H=no
9758 fi
9759
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761 fi
9762 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_FL_Fl_Native_File_Chooser_H" >&5
9763 $as_echo "$ac_cv_header_FL_Fl_Native_File_Chooser_H" >&6; }
9764 if test "x$ac_cv_header_FL_Fl_Native_File_Chooser_H" = x""yes; then
9765 cat >>confdefs.h <<\_ACEOF
9766 #define HAVE_NATIVE_CHOOSER 1
9767 _ACEOF
9768
9769 else
9770
9771 with_native_chooser='no'
9772 CXXFLAGS=$SAVECXX
9773 CPPFLAGS=$SAVECPP
9774
9775 fi
9776
9777
9778 else
9779
9780 for ac_header in FL/Fl_Native_File_Chooser.H
9781 do
9782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9783 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9784 $as_echo_n "checking for $ac_header... " >&6; }
9785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9786 $as_echo_n "(cached) " >&6
9787 else
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794
9795 #include <stdio.h>
9796 #include <FL/Fl.H>
9797
9798
9799 #include <$ac_header>
9800 _ACEOF
9801 rm -f conftest.$ac_objext
9802 if { (ac_try="$ac_compile"
9803 case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806 esac
9807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9808 $as_echo "$ac_try_echo") >&5
9809 (eval "$ac_compile") 2>conftest.er1
9810 ac_status=$?
9811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
9814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } && {
9816 test -z "$ac_cxx_werror_flag" ||
9817 test ! -s conftest.err
9818 } && test -s conftest.$ac_objext; then
9819 eval "$as_ac_Header=yes"
9820 else
9821 $as_echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 eval "$as_ac_Header=no"
9825 fi
9826
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828 fi
9829 ac_res=`eval 'as_val=${'$as_ac_Header'}
9830 $as_echo "$as_val"'`
9831 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9832 $as_echo "$ac_res" >&6; }
9833 as_val=`eval 'as_val=${'$as_ac_Header'}
9834 $as_echo "$as_val"'`
9835 if test "x$as_val" = x""yes; then
9836 cat >>confdefs.h <<_ACEOF
9837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9838 _ACEOF
9839 cat >>confdefs.h <<\_ACEOF
9840 #define HAVE_NATIVE_CHOOSER 1
9841 _ACEOF
9842
9843 else
9844
9845 with_native_chooser='no'
9846 CXXFLAGS=$SAVECXX
9847 CPPFLAGS=$SAVECPP
9848
9849 fi
9850
9851 done
9852
9853 fi
9854 fi
9855
9856 # stop using C++
9857 ac_ext=c
9858 ac_cpp='$CPP $CPPFLAGS'
9859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9862
9863
9864 IMLIBS="$IMLIBS $TIFFLIB $JPEGLIB $PNGLIB $ZLIB"
9865
9866
9867
9868 eval PrefPath="${DATA_DIR}/Imview/"
9869
9870 cat >>confdefs.h <<_ACEOF
9871 #define PrefPath "$PrefPath"
9872 _ACEOF
9873
9874
9875 # optional
9876 #dnl Replace `main' with a function in -lefence:
9877 #AC_CHECK_LIB(efence, main)
9878 #AC_CHECK_LIB(gdi32, main)
9879 #AC_CHECK_LIB(gen, main)
9880 #AC_CHECK_LIB(nsl, main)
9881 #AC_CHECK_LIB(pthread32, main)
9882 #AC_CHECK_LIB(socket, main)
9883 #AC_CHECK_LIB(user32, main)
9884 #AC_CHECK_LIB(wsock32, main)
9885
9886
9887 # Add '-p' if prof source profiling support enabled
9888 if test "$with_prof" = 'yes'
9889 then
9890 CFLAGS="-p $CFLAGS"
9891 LDFLAGS="-p $LDFLAGS"
9892 fi
9893
9894 # Add '-pg' if gprof source profiling support enabled
9895 if test "$with_gprof" = 'yes'
9896 then
9897 CFLAGS="-pg $CFLAGS"
9898 LDFLAGS="-pg $LDFLAGS"
9899 fi
9900
9901 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
9902 # This is a gcc-specific feature
9903 if test "$with_gcov" = 'yes'
9904 then
9905 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
9906 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
9907 fi
9908
9909 # use double-buffering?
9910 if test "$with_dblbuf" = 'yes'
9911 then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define IMVIEW_USES_DBLBUF 1
9914 _ACEOF
9915
9916 fi
9917
9918 # use registration panel?
9919 if test "$with_registration" = 'yes'
9920 then
9921 cat >>confdefs.h <<\_ACEOF
9922 #define IMVIEW_USES_REGISTRATION 1
9923 _ACEOF
9924
9925 fi
9926
9927 #dnl For these we go back to using the C language, as c++ 2.95 has become way too picky
9928 #dnl
9929 #AC_LANG_C
9930
9931 #AC_C_INLINE this is creating more problem than it is solving
9932 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9933 $as_echo_n "checking for ANSI C header files... " >&6; }
9934 if test "${ac_cv_header_stdc+set}" = set; then
9935 $as_echo_n "(cached) " >&6
9936 else
9937 cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h. */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9943 #include <stdlib.h>
9944 #include <stdarg.h>
9945 #include <string.h>
9946 #include <float.h>
9947
9948 int
9949 main ()
9950 {
9951
9952 ;
9953 return 0;
9954 }
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (ac_try="$ac_compile"
9958 case "(($ac_try" in
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9961 esac
9962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9963 $as_echo "$ac_try_echo") >&5
9964 (eval "$ac_compile") 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } && {
9971 test -z "$ac_c_werror_flag" ||
9972 test ! -s conftest.err
9973 } && test -s conftest.$ac_objext; then
9974 ac_cv_header_stdc=yes
9975 else
9976 $as_echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9978
9979 ac_cv_header_stdc=no
9980 fi
9981
9982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9983
9984 if test $ac_cv_header_stdc = yes; then
9985 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h. */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 #include <string.h>
9993
9994 _ACEOF
9995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9996 $EGREP "memchr" >/dev/null 2>&1; then
9997 :
9998 else
9999 ac_cv_header_stdc=no
10000 fi
10001 rm -f conftest*
10002
10003 fi
10004
10005 if test $ac_cv_header_stdc = yes; then
10006 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10007 cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <stdlib.h>
10014
10015 _ACEOF
10016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10017 $EGREP "free" >/dev/null 2>&1; then
10018 :
10019 else
10020 ac_cv_header_stdc=no
10021 fi
10022 rm -f conftest*
10023
10024 fi
10025
10026 if test $ac_cv_header_stdc = yes; then
10027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10028 if test "$cross_compiling" = yes; then
10029 :
10030 else
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h. */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 #include <ctype.h>
10038 #include <stdlib.h>
10039 #if ((' ' & 0x0FF) == 0x020)
10040 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10041 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10042 #else
10043 # define ISLOWER(c) \
10044 (('a' <= (c) && (c) <= 'i') \
10045 || ('j' <= (c) && (c) <= 'r') \
10046 || ('s' <= (c) && (c) <= 'z'))
10047 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10048 #endif
10049
10050 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10051 int
10052 main ()
10053 {
10054 int i;
10055 for (i = 0; i < 256; i++)
10056 if (XOR (islower (i), ISLOWER (i))
10057 || toupper (i) != TOUPPER (i))
10058 return 2;
10059 return 0;
10060 }
10061 _ACEOF
10062 rm -f conftest$ac_exeext
10063 if { (ac_try="$ac_link"
10064 case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067 esac
10068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10069 $as_echo "$ac_try_echo") >&5
10070 (eval "$ac_link") 2>&5
10071 ac_status=$?
10072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10077 esac
10078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10079 $as_echo "$ac_try_echo") >&5
10080 (eval "$ac_try") 2>&5
10081 ac_status=$?
10082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 :
10085 else
10086 $as_echo "$as_me: program exited with status $ac_status" >&5
10087 $as_echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090 ( exit $ac_status )
10091 ac_cv_header_stdc=no
10092 fi
10093 rm -rf conftest.dSYM
10094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10095 fi
10096
10097
10098 fi
10099 fi
10100 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10101 $as_echo "$ac_cv_header_stdc" >&6; }
10102 if test $ac_cv_header_stdc = yes; then
10103
10104 cat >>confdefs.h <<\_ACEOF
10105 #define STDC_HEADERS 1
10106 _ACEOF
10107
10108 fi
10109
10110
10111
10112
10113
10114
10115 for ac_header in fcntl.h limits.h malloc.h sys/time.h unistd.h
10116 do
10117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10120 $as_echo_n "checking for $ac_header... " >&6; }
10121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10122 $as_echo_n "(cached) " >&6
10123 fi
10124 ac_res=`eval 'as_val=${'$as_ac_Header'}
10125 $as_echo "$as_val"'`
10126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10127 $as_echo "$ac_res" >&6; }
10128 else
10129 # Is the header compilable?
10130 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10131 $as_echo_n "checking $ac_header usability... " >&6; }
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h. */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 $ac_includes_default
10139 #include <$ac_header>
10140 _ACEOF
10141 rm -f conftest.$ac_objext
10142 if { (ac_try="$ac_compile"
10143 case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146 esac
10147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10148 $as_echo "$ac_try_echo") >&5
10149 (eval "$ac_compile") 2>conftest.er1
10150 ac_status=$?
10151 grep -v '^ *+' conftest.er1 >conftest.err
10152 rm -f conftest.er1
10153 cat conftest.err >&5
10154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } && {
10156 test -z "$ac_c_werror_flag" ||
10157 test ! -s conftest.err
10158 } && test -s conftest.$ac_objext; then
10159 ac_header_compiler=yes
10160 else
10161 $as_echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164 ac_header_compiler=no
10165 fi
10166
10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10169 $as_echo "$ac_header_compiler" >&6; }
10170
10171 # Is the header present?
10172 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10173 $as_echo_n "checking $ac_header presence... " >&6; }
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h. */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 #include <$ac_header>
10181 _ACEOF
10182 if { (ac_try="$ac_cpp conftest.$ac_ext"
10183 case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186 esac
10187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10188 $as_echo "$ac_try_echo") >&5
10189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } >/dev/null && {
10196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10197 test ! -s conftest.err
10198 }; then
10199 ac_header_preproc=yes
10200 else
10201 $as_echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10203
10204 ac_header_preproc=no
10205 fi
10206
10207 rm -f conftest.err conftest.$ac_ext
10208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10209 $as_echo "$ac_header_preproc" >&6; }
10210
10211 # So? What about this header?
10212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10213 yes:no: )
10214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10215 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10218 ac_header_preproc=yes
10219 ;;
10220 no:yes:* )
10221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10222 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10224 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10228 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10232 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10233
10234 ;;
10235 esac
10236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10237 $as_echo_n "checking for $ac_header... " >&6; }
10238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10239 $as_echo_n "(cached) " >&6
10240 else
10241 eval "$as_ac_Header=\$ac_header_preproc"
10242 fi
10243 ac_res=`eval 'as_val=${'$as_ac_Header'}
10244 $as_echo "$as_val"'`
10245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10246 $as_echo "$ac_res" >&6; }
10247
10248 fi
10249 as_val=`eval 'as_val=${'$as_ac_Header'}
10250 $as_echo "$as_val"'`
10251 if test "x$as_val" = x""yes; then
10252 cat >>confdefs.h <<_ACEOF
10253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10254 _ACEOF
10255
10256 fi
10257
10258 done
10259
10260
10261 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10262 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10263 if test "${ac_cv_c_const+set}" = set; then
10264 $as_echo_n "(cached) " >&6
10265 else
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272
10273 int
10274 main ()
10275 {
10276 /* FIXME: Include the comments suggested by Paul. */
10277 #ifndef __cplusplus
10278 /* Ultrix mips cc rejects this. */
10279 typedef int charset[2];
10280 const charset cs;
10281 /* SunOS 4.1.1 cc rejects this. */
10282 char const *const *pcpcc;
10283 char **ppc;
10284 /* NEC SVR4.0.2 mips cc rejects this. */
10285 struct point {int x, y;};
10286 static struct point const zero = {0,0};
10287 /* AIX XL C 1.02.0.0 rejects this.
10288 It does not let you subtract one const X* pointer from another in
10289 an arm of an if-expression whose if-part is not a constant
10290 expression */
10291 const char *g = "string";
10292 pcpcc = &g + (g ? g-g : 0);
10293 /* HPUX 7.0 cc rejects these. */
10294 ++pcpcc;
10295 ppc = (char**) pcpcc;
10296 pcpcc = (char const *const *) ppc;
10297 { /* SCO 3.2v4 cc rejects this. */
10298 char *t;
10299 char const *s = 0 ? (char *) 0 : (char const *) 0;
10300
10301 *t++ = 0;
10302 if (s) return 0;
10303 }
10304 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10305 int x[] = {25, 17};
10306 const int *foo = &x[0];
10307 ++foo;
10308 }
10309 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10310 typedef const int *iptr;
10311 iptr p = 0;
10312 ++p;
10313 }
10314 { /* AIX XL C 1.02.0.0 rejects this saying
10315 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10316 struct s { int j; const int *ap[3]; };
10317 struct s *b; b->j = 5;
10318 }
10319 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10320 const int foo = 10;
10321 if (!foo) return 0;
10322 }
10323 return !cs[0] && !zero.x;
10324 #endif
10325
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext
10331 if { (ac_try="$ac_compile"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335 esac
10336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10337 $as_echo "$ac_try_echo") >&5
10338 (eval "$ac_compile") 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && {
10345 test -z "$ac_c_werror_flag" ||
10346 test ! -s conftest.err
10347 } && test -s conftest.$ac_objext; then
10348 ac_cv_c_const=yes
10349 else
10350 $as_echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10352
10353 ac_cv_c_const=no
10354 fi
10355
10356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357 fi
10358 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10359 $as_echo "$ac_cv_c_const" >&6; }
10360 if test $ac_cv_c_const = no; then
10361
10362 cat >>confdefs.h <<\_ACEOF
10363 #define const /**/
10364 _ACEOF
10365
10366 fi
10367
10368 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
10369 $as_echo_n "checking for size_t... " >&6; }
10370 if test "${ac_cv_type_size_t+set}" = set; then
10371 $as_echo_n "(cached) " >&6
10372 else
10373 ac_cv_type_size_t=no
10374 cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h. */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 $ac_includes_default
10381 int
10382 main ()
10383 {
10384 if (sizeof (size_t))
10385 return 0;
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 rm -f conftest.$ac_objext
10391 if { (ac_try="$ac_compile"
10392 case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10395 esac
10396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10397 $as_echo "$ac_try_echo") >&5
10398 (eval "$ac_compile") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest.$ac_objext; then
10408 cat >conftest.$ac_ext <<_ACEOF
10409 /* confdefs.h. */
10410 _ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10414 $ac_includes_default
10415 int
10416 main ()
10417 {
10418 if (sizeof ((size_t)))
10419 return 0;
10420 ;
10421 return 0;
10422 }
10423 _ACEOF
10424 rm -f conftest.$ac_objext
10425 if { (ac_try="$ac_compile"
10426 case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429 esac
10430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10431 $as_echo "$ac_try_echo") >&5
10432 (eval "$ac_compile") 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } && {
10439 test -z "$ac_c_werror_flag" ||
10440 test ! -s conftest.err
10441 } && test -s conftest.$ac_objext; then
10442 :
10443 else
10444 $as_echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10446
10447 ac_cv_type_size_t=yes
10448 fi
10449
10450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 else
10452 $as_echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455
10456 fi
10457
10458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 fi
10460 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10461 $as_echo "$ac_cv_type_size_t" >&6; }
10462 if test "x$ac_cv_type_size_t" = x""yes; then
10463 :
10464 else
10465
10466 cat >>confdefs.h <<_ACEOF
10467 #define size_t unsigned int
10468 _ACEOF
10469
10470 fi
10471
10472 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10473 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10474 if test "${ac_cv_header_time+set}" = set; then
10475 $as_echo_n "(cached) " >&6
10476 else
10477 cat >conftest.$ac_ext <<_ACEOF
10478 /* confdefs.h. */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 #include <sys/types.h>
10484 #include <sys/time.h>
10485 #include <time.h>
10486
10487 int
10488 main ()
10489 {
10490 if ((struct tm *) 0)
10491 return 0;
10492 ;
10493 return 0;
10494 }
10495 _ACEOF
10496 rm -f conftest.$ac_objext
10497 if { (ac_try="$ac_compile"
10498 case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10501 esac
10502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10503 $as_echo "$ac_try_echo") >&5
10504 (eval "$ac_compile") 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } && {
10511 test -z "$ac_c_werror_flag" ||
10512 test ! -s conftest.err
10513 } && test -s conftest.$ac_objext; then
10514 ac_cv_header_time=yes
10515 else
10516 $as_echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10518
10519 ac_cv_header_time=no
10520 fi
10521
10522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10523 fi
10524 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10525 $as_echo "$ac_cv_header_time" >&6; }
10526 if test $ac_cv_header_time = yes; then
10527
10528 cat >>confdefs.h <<\_ACEOF
10529 #define TIME_WITH_SYS_TIME 1
10530 _ACEOF
10531
10532 fi
10533
10534 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10535 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10536 if test "${ac_cv_struct_tm+set}" = set; then
10537 $as_echo_n "(cached) " >&6
10538 else
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h. */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 #include <sys/types.h>
10546 #include <time.h>
10547
10548 int
10549 main ()
10550 {
10551 struct tm tm;
10552 int *p = &tm.tm_sec;
10553 return !p;
10554 ;
10555 return 0;
10556 }
10557 _ACEOF
10558 rm -f conftest.$ac_objext
10559 if { (ac_try="$ac_compile"
10560 case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10563 esac
10564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10565 $as_echo "$ac_try_echo") >&5
10566 (eval "$ac_compile") 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && {
10573 test -z "$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10575 } && test -s conftest.$ac_objext; then
10576 ac_cv_struct_tm=time.h
10577 else
10578 $as_echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10580
10581 ac_cv_struct_tm=sys/time.h
10582 fi
10583
10584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10585 fi
10586 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10587 $as_echo "$ac_cv_struct_tm" >&6; }
10588 if test $ac_cv_struct_tm = sys/time.h; then
10589
10590 cat >>confdefs.h <<\_ACEOF
10591 #define TM_IN_SYS_TIME 1
10592 _ACEOF
10593
10594 fi
10595
10596
10597 #AC_FUNC_SETVBUF_REVERSED
10598 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10599 $as_echo_n "checking return type of signal handlers... " >&6; }
10600 if test "${ac_cv_type_signal+set}" = set; then
10601 $as_echo_n "(cached) " >&6
10602 else
10603 cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h. */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 #include <sys/types.h>
10610 #include <signal.h>
10611
10612 int
10613 main ()
10614 {
10615 return *(signal (0, 0)) (0) == 1;
10616 ;
10617 return 0;
10618 }
10619 _ACEOF
10620 rm -f conftest.$ac_objext
10621 if { (ac_try="$ac_compile"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625 esac
10626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10627 $as_echo "$ac_try_echo") >&5
10628 (eval "$ac_compile") 2>conftest.er1
10629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } && {
10635 test -z "$ac_c_werror_flag" ||
10636 test ! -s conftest.err
10637 } && test -s conftest.$ac_objext; then
10638 ac_cv_type_signal=int
10639 else
10640 $as_echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10642
10643 ac_cv_type_signal=void
10644 fi
10645
10646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10647 fi
10648 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10649 $as_echo "$ac_cv_type_signal" >&6; }
10650
10651 cat >>confdefs.h <<_ACEOF
10652 #define RETSIGTYPE $ac_cv_type_signal
10653 _ACEOF
10654
10655
10656
10657 for ac_func in vprintf
10658 do
10659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10660 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10661 $as_echo_n "checking for $ac_func... " >&6; }
10662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10663 $as_echo_n "(cached) " >&6
10664 else
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10673 #define $ac_func innocuous_$ac_func
10674
10675 /* System header to define __stub macros and hopefully few prototypes,
10676 which can conflict with char $ac_func (); below.
10677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10678 <limits.h> exists even on freestanding compilers. */
10679
10680 #ifdef __STDC__
10681 # include <limits.h>
10682 #else
10683 # include <assert.h>
10684 #endif
10685
10686 #undef $ac_func
10687
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10691 #ifdef __cplusplus
10692 extern "C"
10693 #endif
10694 char $ac_func ();
10695 /* The GNU C library defines this for functions which it implements
10696 to always fail with ENOSYS. Some functions are actually named
10697 something starting with __ and the normal name is an alias. */
10698 #if defined __stub_$ac_func || defined __stub___$ac_func
10699 choke me
10700 #endif
10701
10702 int
10703 main ()
10704 {
10705 return $ac_func ();
10706 ;
10707 return 0;
10708 }
10709 _ACEOF
10710 rm -f conftest.$ac_objext conftest$ac_exeext
10711 if { (ac_try="$ac_link"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715 esac
10716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10717 $as_echo "$ac_try_echo") >&5
10718 (eval "$ac_link") 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest$ac_exeext && {
10728 test "$cross_compiling" = yes ||
10729 $as_test_x conftest$ac_exeext
10730 }; then
10731 eval "$as_ac_var=yes"
10732 else
10733 $as_echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736 eval "$as_ac_var=no"
10737 fi
10738
10739 rm -rf conftest.dSYM
10740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10741 conftest$ac_exeext conftest.$ac_ext
10742 fi
10743 ac_res=`eval 'as_val=${'$as_ac_var'}
10744 $as_echo "$as_val"'`
10745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10746 $as_echo "$ac_res" >&6; }
10747 as_val=`eval 'as_val=${'$as_ac_var'}
10748 $as_echo "$as_val"'`
10749 if test "x$as_val" = x""yes; then
10750 cat >>confdefs.h <<_ACEOF
10751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10752 _ACEOF
10753
10754 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10755 $as_echo_n "checking for _doprnt... " >&6; }
10756 if test "${ac_cv_func__doprnt+set}" = set; then
10757 $as_echo_n "(cached) " >&6
10758 else
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h. */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10767 #define _doprnt innocuous__doprnt
10768
10769 /* System header to define __stub macros and hopefully few prototypes,
10770 which can conflict with char _doprnt (); below.
10771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10772 <limits.h> exists even on freestanding compilers. */
10773
10774 #ifdef __STDC__
10775 # include <limits.h>
10776 #else
10777 # include <assert.h>
10778 #endif
10779
10780 #undef _doprnt
10781
10782 /* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10785 #ifdef __cplusplus
10786 extern "C"
10787 #endif
10788 char _doprnt ();
10789 /* The GNU C library defines this for functions which it implements
10790 to always fail with ENOSYS. Some functions are actually named
10791 something starting with __ and the normal name is an alias. */
10792 #if defined __stub__doprnt || defined __stub____doprnt
10793 choke me
10794 #endif
10795
10796 int
10797 main ()
10798 {
10799 return _doprnt ();
10800 ;
10801 return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (ac_try="$ac_link"
10806 case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809 esac
10810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10811 $as_echo "$ac_try_echo") >&5
10812 (eval "$ac_link") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest$ac_exeext && {
10822 test "$cross_compiling" = yes ||
10823 $as_test_x conftest$ac_exeext
10824 }; then
10825 ac_cv_func__doprnt=yes
10826 else
10827 $as_echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_cv_func__doprnt=no
10831 fi
10832
10833 rm -rf conftest.dSYM
10834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10835 conftest$ac_exeext conftest.$ac_ext
10836 fi
10837 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10838 $as_echo "$ac_cv_func__doprnt" >&6; }
10839 if test "x$ac_cv_func__doprnt" = x""yes; then
10840
10841 cat >>confdefs.h <<\_ACEOF
10842 #define HAVE_DOPRNT 1
10843 _ACEOF
10844
10845 fi
10846
10847 fi
10848 done
10849
10850
10851
10852
10853 for ac_func in select socket
10854 do
10855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10856 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10857 $as_echo_n "checking for $ac_func... " >&6; }
10858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10859 $as_echo_n "(cached) " >&6
10860 else
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h. */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10869 #define $ac_func innocuous_$ac_func
10870
10871 /* System header to define __stub macros and hopefully few prototypes,
10872 which can conflict with char $ac_func (); below.
10873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10874 <limits.h> exists even on freestanding compilers. */
10875
10876 #ifdef __STDC__
10877 # include <limits.h>
10878 #else
10879 # include <assert.h>
10880 #endif
10881
10882 #undef $ac_func
10883
10884 /* Override any GCC internal prototype to avoid an error.
10885 Use char because int might match the return type of a GCC
10886 builtin and then its argument prototype would still apply. */
10887 #ifdef __cplusplus
10888 extern "C"
10889 #endif
10890 char $ac_func ();
10891 /* The GNU C library defines this for functions which it implements
10892 to always fail with ENOSYS. Some functions are actually named
10893 something starting with __ and the normal name is an alias. */
10894 #if defined __stub_$ac_func || defined __stub___$ac_func
10895 choke me
10896 #endif
10897
10898 int
10899 main ()
10900 {
10901 return $ac_func ();
10902 ;
10903 return 0;
10904 }
10905 _ACEOF
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (ac_try="$ac_link"
10908 case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911 esac
10912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10913 $as_echo "$ac_try_echo") >&5
10914 (eval "$ac_link") 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } && {
10921 test -z "$ac_c_werror_flag" ||
10922 test ! -s conftest.err
10923 } && test -s conftest$ac_exeext && {
10924 test "$cross_compiling" = yes ||
10925 $as_test_x conftest$ac_exeext
10926 }; then
10927 eval "$as_ac_var=yes"
10928 else
10929 $as_echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10931
10932 eval "$as_ac_var=no"
10933 fi
10934
10935 rm -rf conftest.dSYM
10936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10937 conftest$ac_exeext conftest.$ac_ext
10938 fi
10939 ac_res=`eval 'as_val=${'$as_ac_var'}
10940 $as_echo "$as_val"'`
10941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10942 $as_echo "$ac_res" >&6; }
10943 as_val=`eval 'as_val=${'$as_ac_var'}
10944 $as_echo "$as_val"'`
10945 if test "x$as_val" = x""yes; then
10946 cat >>confdefs.h <<_ACEOF
10947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10948 _ACEOF
10949
10950 fi
10951 done
10952
10953
10954
10955
10956
10957
10958
10959 for ac_func in getcwd strdup strerror strstr strtol uname
10960 do
10961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10962 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10963 $as_echo_n "checking for $ac_func... " >&6; }
10964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10965 $as_echo_n "(cached) " >&6
10966 else
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h. */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10975 #define $ac_func innocuous_$ac_func
10976
10977 /* System header to define __stub macros and hopefully few prototypes,
10978 which can conflict with char $ac_func (); below.
10979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10980 <limits.h> exists even on freestanding compilers. */
10981
10982 #ifdef __STDC__
10983 # include <limits.h>
10984 #else
10985 # include <assert.h>
10986 #endif
10987
10988 #undef $ac_func
10989
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char $ac_func ();
10997 /* The GNU C library defines this for functions which it implements
10998 to always fail with ENOSYS. Some functions are actually named
10999 something starting with __ and the normal name is an alias. */
11000 #if defined __stub_$ac_func || defined __stub___$ac_func
11001 choke me
11002 #endif
11003
11004 int
11005 main ()
11006 {
11007 return $ac_func ();
11008 ;
11009 return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (ac_try="$ac_link"
11014 case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017 esac
11018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11019 $as_echo "$ac_try_echo") >&5
11020 (eval "$ac_link") 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && {
11027 test -z "$ac_c_werror_flag" ||
11028 test ! -s conftest.err
11029 } && test -s conftest$ac_exeext && {
11030 test "$cross_compiling" = yes ||
11031 $as_test_x conftest$ac_exeext
11032 }; then
11033 eval "$as_ac_var=yes"
11034 else
11035 $as_echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 eval "$as_ac_var=no"
11039 fi
11040
11041 rm -rf conftest.dSYM
11042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11043 conftest$ac_exeext conftest.$ac_ext
11044 fi
11045 ac_res=`eval 'as_val=${'$as_ac_var'}
11046 $as_echo "$as_val"'`
11047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11048 $as_echo "$ac_res" >&6; }
11049 as_val=`eval 'as_val=${'$as_ac_var'}
11050 $as_echo "$as_val"'`
11051 if test "x$as_val" = x""yes; then
11052 cat >>confdefs.h <<_ACEOF
11053 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11054 _ACEOF
11055
11056 fi
11057 done
11058
11059
11060
11061
11062
11063
11064 ac_config_files="$ac_config_files fluid/Makefile server/Makefile io/Makefile extensions/Makefile Makefile imview.list"
11065
11066 ac_config_commands="$ac_config_commands default"
11067
11068
11069
11070 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11071 # Let make expand exec_prefix.
11072 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11073
11074 DEFS=-DHAVE_CONFIG_H
11075
11076 ac_libobjs=
11077 ac_ltlibobjs=
11078 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11079 # 1. Remove the extension, and $U if already installed.
11080 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11081 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11082 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11083 # will be set to the directory where LIBOBJS objects are built.
11084 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11085 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11086 done
11087 LIBOBJS=$ac_libobjs
11088
11089 LTLIBOBJS=$ac_ltlibobjs
11090
11091
11092
11093 : ${CONFIG_STATUS=./config.status}
11094 ac_write_fail=0
11095 ac_clean_files_save=$ac_clean_files
11096 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11097 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11098 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11099 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11100 #! $SHELL
11101 # Generated by $as_me.
11102 # Run this file to recreate the current configuration.
11103 # Compiler output produced by configure, useful for debugging
11104 # configure, is in config.log if it exists.
11105
11106 debug=false
11107 ac_cs_recheck=false
11108 ac_cs_silent=false
11109 SHELL=\${CONFIG_SHELL-$SHELL}
11110 _ACEOF
11111
11112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11113 ## --------------------- ##
11114 ## M4sh Initialization. ##
11115 ## --------------------- ##
11116
11117 # Be more Bourne compatible
11118 DUALCASE=1; export DUALCASE # for MKS sh
11119 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11120 emulate sh
11121 NULLCMD=:
11122 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11123 # is contrary to our usage. Disable this feature.
11124 alias -g '${1+"$@"}'='"$@"'
11125 setopt NO_GLOB_SUBST
11126 else
11127 case `(set -o) 2>/dev/null` in
11128 *posix*) set -o posix ;;
11129 esac
11130
11131 fi
11132
11133
11134
11135
11136 # PATH needs CR
11137 # Avoid depending upon Character Ranges.
11138 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11139 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11140 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11141 as_cr_digits='0123456789'
11142 as_cr_alnum=$as_cr_Letters$as_cr_digits
11143
11144 as_nl='
11145 '
11146 export as_nl
11147 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11148 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11149 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11150 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11151 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11152 as_echo='printf %s\n'
11153 as_echo_n='printf %s'
11154 else
11155 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11156 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11157 as_echo_n='/usr/ucb/echo -n'
11158 else
11159 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11160 as_echo_n_body='eval
11161 arg=$1;
11162 case $arg in
11163 *"$as_nl"*)
11164 expr "X$arg" : "X\\(.*\\)$as_nl";
11165 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11166 esac;
11167 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11168 '
11169 export as_echo_n_body
11170 as_echo_n='sh -c $as_echo_n_body as_echo'
11171 fi
11172 export as_echo_body
11173 as_echo='sh -c $as_echo_body as_echo'
11174 fi
11175
11176 # The user is always right.
11177 if test "${PATH_SEPARATOR+set}" != set; then
11178 PATH_SEPARATOR=:
11179 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11180 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11181 PATH_SEPARATOR=';'
11182 }
11183 fi
11184
11185 # Support unset when possible.
11186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11187 as_unset=unset
11188 else
11189 as_unset=false
11190 fi
11191
11192
11193 # IFS
11194 # We need space, tab and new line, in precisely that order. Quoting is
11195 # there to prevent editors from complaining about space-tab.
11196 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11197 # splitting by setting IFS to empty value.)
11198 IFS=" "" $as_nl"
11199
11200 # Find who we are. Look in the path if we contain no directory separator.
11201 case $0 in
11202 *[\\/]* ) as_myself=$0 ;;
11203 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11205 do
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
11208 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11209 done
11210 IFS=$as_save_IFS
11211
11212 ;;
11213 esac
11214 # We did not find ourselves, most probably we were run as `sh COMMAND'
11215 # in which case we are not to be found in the path.
11216 if test "x$as_myself" = x; then
11217 as_myself=$0
11218 fi
11219 if test ! -f "$as_myself"; then
11220 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11221 { (exit 1); exit 1; }
11222 fi
11223
11224 # Work around bugs in pre-3.0 UWIN ksh.
11225 for as_var in ENV MAIL MAILPATH
11226 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11227 done
11228 PS1='$ '
11229 PS2='> '
11230 PS4='+ '
11231
11232 # NLS nuisances.
11233 LC_ALL=C
11234 export LC_ALL
11235 LANGUAGE=C
11236 export LANGUAGE
11237
11238 # Required to use basename.
11239 if expr a : '\(a\)' >/dev/null 2>&1 &&
11240 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11241 as_expr=expr
11242 else
11243 as_expr=false
11244 fi
11245
11246 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11247 as_basename=basename
11248 else
11249 as_basename=false
11250 fi
11251
11252
11253 # Name of the executable.
11254 as_me=`$as_basename -- "$0" ||
11255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11256 X"$0" : 'X\(//\)$' \| \
11257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11258 $as_echo X/"$0" |
11259 sed '/^.*\/\([^/][^/]*\)\/*$/{
11260 s//\1/
11261 q
11262 }
11263 /^X\/\(\/\/\)$/{
11264 s//\1/
11265 q
11266 }
11267 /^X\/\(\/\).*/{
11268 s//\1/
11269 q
11270 }
11271 s/.*/./; q'`
11272
11273 # CDPATH.
11274 $as_unset CDPATH
11275
11276
11277
11278 as_lineno_1=$LINENO
11279 as_lineno_2=$LINENO
11280 test "x$as_lineno_1" != "x$as_lineno_2" &&
11281 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11282
11283 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11284 # uniformly replaced by the line number. The first 'sed' inserts a
11285 # line-number line after each line using $LINENO; the second 'sed'
11286 # does the real work. The second script uses 'N' to pair each
11287 # line-number line with the line containing $LINENO, and appends
11288 # trailing '-' during substitution so that $LINENO is not a special
11289 # case at line end.
11290 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11291 # scripts with optimization help from Paolo Bonzini. Blame Lee
11292 # E. McMahon (1931-1989) for sed's syntax. :-)
11293 sed -n '
11294 p
11295 /[$]LINENO/=
11296 ' <$as_myself |
11297 sed '
11298 s/[$]LINENO.*/&-/
11299 t lineno
11300 b
11301 :lineno
11302 N
11303 :loop
11304 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11305 t loop
11306 s/-\n.*//
11307 ' >$as_me.lineno &&
11308 chmod +x "$as_me.lineno" ||
11309 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11310 { (exit 1); exit 1; }; }
11311
11312 # Don't try to exec as it changes $[0], causing all sort of problems
11313 # (the dirname of $[0] is not the place where we might find the
11314 # original and so on. Autoconf is especially sensitive to this).
11315 . "./$as_me.lineno"
11316 # Exit status is that of the last command.
11317 exit
11318 }
11319
11320
11321 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11322 as_dirname=dirname
11323 else
11324 as_dirname=false
11325 fi
11326
11327 ECHO_C= ECHO_N= ECHO_T=
11328 case `echo -n x` in
11329 -n*)
11330 case `echo 'x\c'` in
11331 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11332 *) ECHO_C='\c';;
11333 esac;;
11334 *)
11335 ECHO_N='-n';;
11336 esac
11337 if expr a : '\(a\)' >/dev/null 2>&1 &&
11338 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11339 as_expr=expr
11340 else
11341 as_expr=false
11342 fi
11343
11344 rm -f conf$$ conf$$.exe conf$$.file
11345 if test -d conf$$.dir; then
11346 rm -f conf$$.dir/conf$$.file
11347 else
11348 rm -f conf$$.dir
11349 mkdir conf$$.dir 2>/dev/null
11350 fi
11351 if (echo >conf$$.file) 2>/dev/null; then
11352 if ln -s conf$$.file conf$$ 2>/dev/null; then
11353 as_ln_s='ln -s'
11354 # ... but there are two gotchas:
11355 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11356 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11357 # In both cases, we have to default to `cp -p'.
11358 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11359 as_ln_s='cp -p'
11360 elif ln conf$$.file conf$$ 2>/dev/null; then
11361 as_ln_s=ln
11362 else
11363 as_ln_s='cp -p'
11364 fi
11365 else
11366 as_ln_s='cp -p'
11367 fi
11368 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11369 rmdir conf$$.dir 2>/dev/null
11370
11371 if mkdir -p . 2>/dev/null; then
11372 as_mkdir_p=:
11373 else
11374 test -d ./-p && rmdir ./-p
11375 as_mkdir_p=false
11376 fi
11377
11378 if test -x / >/dev/null 2>&1; then
11379 as_test_x='test -x'
11380 else
11381 if ls -dL / >/dev/null 2>&1; then
11382 as_ls_L_option=L
11383 else
11384 as_ls_L_option=
11385 fi
11386 as_test_x='
11387 eval sh -c '\''
11388 if test -d "$1"; then
11389 test -d "$1/.";
11390 else
11391 case $1 in
11392 -*)set "./$1";;
11393 esac;
11394 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11395 ???[sx]*):;;*)false;;esac;fi
11396 '\'' sh
11397 '
11398 fi
11399 as_executable_p=$as_test_x
11400
11401 # Sed expression to map a string onto a valid CPP name.
11402 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11403
11404 # Sed expression to map a string onto a valid variable name.
11405 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11406
11407
11408 exec 6>&1
11409
11410 # Save the log message, to keep $[0] and so on meaningful, and to
11411 # report actual input values of CONFIG_FILES etc. instead of their
11412 # values after options handling.
11413 ac_log="
11414 This file was extended by $as_me, which was
11415 generated by GNU Autoconf 2.63. Invocation command line was
11416
11417 CONFIG_FILES = $CONFIG_FILES
11418 CONFIG_HEADERS = $CONFIG_HEADERS
11419 CONFIG_LINKS = $CONFIG_LINKS
11420 CONFIG_COMMANDS = $CONFIG_COMMANDS
11421 $ $0 $@
11422
11423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11424 "
11425
11426 _ACEOF
11427
11428 case $ac_config_files in *"
11429 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11430 esac
11431
11432 case $ac_config_headers in *"
11433 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11434 esac
11435
11436
11437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11438 # Files that config.status was made for.
11439 config_files="$ac_config_files"
11440 config_headers="$ac_config_headers"
11441 config_commands="$ac_config_commands"
11442
11443 _ACEOF
11444
11445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11446 ac_cs_usage="\
11447 \`$as_me' instantiates files from templates according to the
11448 current configuration.
11449
11450 Usage: $0 [OPTION]... [FILE]...
11451
11452 -h, --help print this help, then exit
11453 -V, --version print version number and configuration settings, then exit
11454 -q, --quiet, --silent
11455 do not print progress messages
11456 -d, --debug don't remove temporary files
11457 --recheck update $as_me by reconfiguring in the same conditions
11458 --file=FILE[:TEMPLATE]
11459 instantiate the configuration file FILE
11460 --header=FILE[:TEMPLATE]
11461 instantiate the configuration header FILE
11462
11463 Configuration files:
11464 $config_files
11465
11466 Configuration headers:
11467 $config_headers
11468
11469 Configuration commands:
11470 $config_commands
11471
11472 Report bugs to <[email protected]>."
11473
11474 _ACEOF
11475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11476 ac_cs_version="\\
11477 config.status
11478 configured by $0, generated by GNU Autoconf 2.63,
11479 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11480
11481 Copyright (C) 2008 Free Software Foundation, Inc.
11482 This config.status script is free software; the Free Software Foundation
11483 gives unlimited permission to copy, distribute and modify it."
11484
11485 ac_pwd='$ac_pwd'
11486 srcdir='$srcdir'
11487 INSTALL='$INSTALL'
11488 test -n "\$AWK" || AWK=awk
11489 _ACEOF
11490
11491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11492 # The default lists apply if the user does not specify any file.
11493 ac_need_defaults=:
11494 while test $# != 0
11495 do
11496 case $1 in
11497 --*=*)
11498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11499 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11500 ac_shift=:
11501 ;;
11502 *)
11503 ac_option=$1
11504 ac_optarg=$2
11505 ac_shift=shift
11506 ;;
11507 esac
11508
11509 case $ac_option in
11510 # Handling of the options.
11511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11512 ac_cs_recheck=: ;;
11513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11514 $as_echo "$ac_cs_version"; exit ;;
11515 --debug | --debu | --deb | --de | --d | -d )
11516 debug=: ;;
11517 --file | --fil | --fi | --f )
11518 $ac_shift
11519 case $ac_optarg in
11520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11521 esac
11522 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11523 ac_need_defaults=false;;
11524 --header | --heade | --head | --hea )
11525 $ac_shift
11526 case $ac_optarg in
11527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11528 esac
11529 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11530 ac_need_defaults=false;;
11531 --he | --h)
11532 # Conflict between --help and --header
11533 { $as_echo "$as_me: error: ambiguous option: $1
11534 Try \`$0 --help' for more information." >&2
11535 { (exit 1); exit 1; }; };;
11536 --help | --hel | -h )
11537 $as_echo "$ac_cs_usage"; exit ;;
11538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11539 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11540 ac_cs_silent=: ;;
11541
11542 # This is an error.
11543 -*) { $as_echo "$as_me: error: unrecognized option: $1
11544 Try \`$0 --help' for more information." >&2
11545 { (exit 1); exit 1; }; } ;;
11546
11547 *) ac_config_targets="$ac_config_targets $1"
11548 ac_need_defaults=false ;;
11549
11550 esac
11551 shift
11552 done
11553
11554 ac_configure_extra_args=
11555
11556 if $ac_cs_silent; then
11557 exec 6>/dev/null
11558 ac_configure_extra_args="$ac_configure_extra_args --silent"
11559 fi
11560
11561 _ACEOF
11562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11563 if \$ac_cs_recheck; then
11564 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11565 shift
11566 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11567 CONFIG_SHELL='$SHELL'
11568 export CONFIG_SHELL
11569 exec "\$@"
11570 fi
11571
11572 _ACEOF
11573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11574 exec 5>>config.log
11575 {
11576 echo
11577 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11578 ## Running $as_me. ##
11579 _ASBOX
11580 $as_echo "$ac_log"
11581 } >&5
11582
11583 _ACEOF
11584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11585 _ACEOF
11586
11587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11588
11589 # Handling of arguments.
11590 for ac_config_target in $ac_config_targets
11591 do
11592 case $ac_config_target in
11593 "imcfg.h") CONFIG_HEADERS="$CONFIG_HEADERS imcfg.h" ;;
11594 "fluid/Makefile") CONFIG_FILES="$CONFIG_FILES fluid/Makefile" ;;
11595 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
11596 "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
11597 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
11598 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11599 "imview.list") CONFIG_FILES="$CONFIG_FILES imview.list" ;;
11600 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11601
11602 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11603 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11604 { (exit 1); exit 1; }; };;
11605 esac
11606 done
11607
11608
11609 # If the user did not use the arguments to specify the items to instantiate,
11610 # then the envvar interface is used. Set only those that are not.
11611 # We use the long form for the default assignment because of an extremely
11612 # bizarre bug on SunOS 4.1.3.
11613 if $ac_need_defaults; then
11614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11617 fi
11618
11619 # Have a temporary directory for convenience. Make it in the build tree
11620 # simply because there is no reason against having it here, and in addition,
11621 # creating and moving files from /tmp can sometimes cause problems.
11622 # Hook for its removal unless debugging.
11623 # Note that there is a small window in which the directory will not be cleaned:
11624 # after its creation but before its name has been assigned to `$tmp'.
11625 $debug ||
11626 {
11627 tmp=
11628 trap 'exit_status=$?
11629 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11630 ' 0
11631 trap '{ (exit 1); exit 1; }' 1 2 13 15
11632 }
11633 # Create a (secure) tmp directory for tmp files.
11634
11635 {
11636 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11637 test -n "$tmp" && test -d "$tmp"
11638 } ||
11639 {
11640 tmp=./conf$$-$RANDOM
11641 (umask 077 && mkdir "$tmp")
11642 } ||
11643 {
11644 $as_echo "$as_me: cannot create a temporary directory in ." >&2
11645 { (exit 1); exit 1; }
11646 }
11647
11648 # Set up the scripts for CONFIG_FILES section.
11649 # No need to generate them if there are no CONFIG_FILES.
11650 # This happens for instance with `./config.status config.h'.
11651 if test -n "$CONFIG_FILES"; then
11652
11653
11654 ac_cr=' '
11655 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11656 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11657 ac_cs_awk_cr='\\r'
11658 else
11659 ac_cs_awk_cr=$ac_cr
11660 fi
11661
11662 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11663 _ACEOF
11664
11665
11666 {
11667 echo "cat >conf$$subs.awk <<_ACEOF" &&
11668 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11669 echo "_ACEOF"
11670 } >conf$$subs.sh ||
11671 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11672 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11673 { (exit 1); exit 1; }; }
11674 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11675 ac_delim='%!_!# '
11676 for ac_last_try in false false false false false :; do
11677 . ./conf$$subs.sh ||
11678 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11679 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11680 { (exit 1); exit 1; }; }
11681
11682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11683 if test $ac_delim_n = $ac_delim_num; then
11684 break
11685 elif $ac_last_try; then
11686 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11687 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11688 { (exit 1); exit 1; }; }
11689 else
11690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11691 fi
11692 done
11693 rm -f conf$$subs.sh
11694
11695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11696 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11697 _ACEOF
11698 sed -n '
11699 h
11700 s/^/S["/; s/!.*/"]=/
11701 p
11702 g
11703 s/^[^!]*!//
11704 :repl
11705 t repl
11706 s/'"$ac_delim"'$//
11707 t delim
11708 :nl
11709 h
11710 s/\(.\{148\}\).*/\1/
11711 t more1
11712 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11713 p
11714 n
11715 b repl
11716 :more1
11717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11718 p
11719 g
11720 s/.\{148\}//
11721 t nl
11722 :delim
11723 h
11724 s/\(.\{148\}\).*/\1/
11725 t more2
11726 s/["\\]/\\&/g; s/^/"/; s/$/"/
11727 p
11728 b
11729 :more2
11730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11731 p
11732 g
11733 s/.\{148\}//
11734 t delim
11735 ' <conf$$subs.awk | sed '
11736 /^[^""]/{
11737 N
11738 s/\n//
11739 }
11740 ' >>$CONFIG_STATUS || ac_write_fail=1
11741 rm -f conf$$subs.awk
11742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11743 _ACAWK
11744 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11745 for (key in S) S_is_set[key] = 1
11746 FS = ""
11747
11748 }
11749 {
11750 line = $ 0
11751 nfields = split(line, field, "@")
11752 substed = 0
11753 len = length(field[1])
11754 for (i = 2; i < nfields; i++) {
11755 key = field[i]
11756 keylen = length(key)
11757 if (S_is_set[key]) {
11758 value = S[key]
11759 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11760 len += length(value) + length(field[++i])
11761 substed = 1
11762 } else
11763 len += 1 + keylen
11764 }
11765
11766 print line
11767 }
11768
11769 _ACAWK
11770 _ACEOF
11771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11772 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11773 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11774 else
11775 cat
11776 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11777 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11778 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11779 { (exit 1); exit 1; }; }
11780 _ACEOF
11781
11782 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11783 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11784 # trailing colons and then remove the whole line if VPATH becomes empty
11785 # (actually we leave an empty line to preserve line numbers).
11786 if test "x$srcdir" = x.; then
11787 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11788 s/:*\$(srcdir):*/:/
11789 s/:*\${srcdir}:*/:/
11790 s/:*@srcdir@:*/:/
11791 s/^\([^=]*=[ ]*\):*/\1/
11792 s/:*$//
11793 s/^[^=]*=[ ]*$//
11794 }'
11795 fi
11796
11797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11798 fi # test -n "$CONFIG_FILES"
11799
11800 # Set up the scripts for CONFIG_HEADERS section.
11801 # No need to generate them if there are no CONFIG_HEADERS.
11802 # This happens for instance with `./config.status Makefile'.
11803 if test -n "$CONFIG_HEADERS"; then
11804 cat >"$tmp/defines.awk" <<\_ACAWK ||
11805 BEGIN {
11806 _ACEOF
11807
11808 # Transform confdefs.h into an awk script `defines.awk', embedded as
11809 # here-document in config.status, that substitutes the proper values into
11810 # config.h.in to produce config.h.
11811
11812 # Create a delimiter string that does not exist in confdefs.h, to ease
11813 # handling of long lines.
11814 ac_delim='%!_!# '
11815 for ac_last_try in false false :; do
11816 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11817 if test -z "$ac_t"; then
11818 break
11819 elif $ac_last_try; then
11820 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11821 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11822 { (exit 1); exit 1; }; }
11823 else
11824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11825 fi
11826 done
11827
11828 # For the awk script, D is an array of macro values keyed by name,
11829 # likewise P contains macro parameters if any. Preserve backslash
11830 # newline sequences.
11831
11832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11833 sed -n '
11834 s/.\{148\}/&'"$ac_delim"'/g
11835 t rset
11836 :rset
11837 s/^[ ]*#[ ]*define[ ][ ]*/ /
11838 t def
11839 d
11840 :def
11841 s/\\$//
11842 t bsnl
11843 s/["\\]/\\&/g
11844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11845 D["\1"]=" \3"/p
11846 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11847 d
11848 :bsnl
11849 s/["\\]/\\&/g
11850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11851 D["\1"]=" \3\\\\\\n"\\/p
11852 t cont
11853 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11854 t cont
11855 d
11856 :cont
11857 n
11858 s/.\{148\}/&'"$ac_delim"'/g
11859 t clear
11860 :clear
11861 s/\\$//
11862 t bsnlc
11863 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11864 d
11865 :bsnlc
11866 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11867 b cont
11868 ' <confdefs.h | sed '
11869 s/'"$ac_delim"'/"\\\
11870 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11871
11872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11873 for (key in D) D_is_set[key] = 1
11874 FS = ""
11875 }
11876 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11877 line = \$ 0
11878 split(line, arg, " ")
11879 if (arg[1] == "#") {
11880 defundef = arg[2]
11881 mac1 = arg[3]
11882 } else {
11883 defundef = substr(arg[1], 2)
11884 mac1 = arg[2]
11885 }
11886 split(mac1, mac2, "(") #)
11887 macro = mac2[1]
11888 prefix = substr(line, 1, index(line, defundef) - 1)
11889 if (D_is_set[macro]) {
11890 # Preserve the white space surrounding the "#".
11891 print prefix "define", macro P[macro] D[macro]
11892 next
11893 } else {
11894 # Replace #undef with comments. This is necessary, for example,
11895 # in the case of _POSIX_SOURCE, which is predefined and required
11896 # on some systems where configure will not decide to define it.
11897 if (defundef == "undef") {
11898 print "/*", prefix defundef, macro, "*/"
11899 next
11900 }
11901 }
11902 }
11903 { print }
11904 _ACAWK
11905 _ACEOF
11906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11907 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11908 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11909 { (exit 1); exit 1; }; }
11910 fi # test -n "$CONFIG_HEADERS"
11911
11912
11913 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11914 shift
11915 for ac_tag
11916 do
11917 case $ac_tag in
11918 :[FHLC]) ac_mode=$ac_tag; continue;;
11919 esac
11920 case $ac_mode$ac_tag in
11921 :[FHL]*:*);;
11922 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11923 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11924 { (exit 1); exit 1; }; };;
11925 :[FH]-) ac_tag=-:-;;
11926 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11927 esac
11928 ac_save_IFS=$IFS
11929 IFS=:
11930 set x $ac_tag
11931 IFS=$ac_save_IFS
11932 shift
11933 ac_file=$1
11934 shift
11935
11936 case $ac_mode in
11937 :L) ac_source=$1;;
11938 :[FH])
11939 ac_file_inputs=
11940 for ac_f
11941 do
11942 case $ac_f in
11943 -) ac_f="$tmp/stdin";;
11944 *) # Look for the file first in the build tree, then in the source tree
11945 # (if the path is not absolute). The absolute path cannot be DOS-style,
11946 # because $ac_f cannot contain `:'.
11947 test -f "$ac_f" ||
11948 case $ac_f in
11949 [\\/$]*) false;;
11950 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11951 esac ||
11952 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11953 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11954 { (exit 1); exit 1; }; };;
11955 esac
11956 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11957 ac_file_inputs="$ac_file_inputs '$ac_f'"
11958 done
11959
11960 # Let's still pretend it is `configure' which instantiates (i.e., don't
11961 # use $as_me), people would be surprised to read:
11962 # /* config.h. Generated by config.status. */
11963 configure_input='Generated from '`
11964 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11965 `' by configure.'
11966 if test x"$ac_file" != x-; then
11967 configure_input="$ac_file. $configure_input"
11968 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11969 $as_echo "$as_me: creating $ac_file" >&6;}
11970 fi
11971 # Neutralize special characters interpreted by sed in replacement strings.
11972 case $configure_input in #(
11973 *\&* | *\|* | *\\* )
11974 ac_sed_conf_input=`$as_echo "$configure_input" |
11975 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11976 *) ac_sed_conf_input=$configure_input;;
11977 esac
11978
11979 case $ac_tag in
11980 *:-:* | *:-) cat >"$tmp/stdin" \
11981 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11982 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11983 { (exit 1); exit 1; }; } ;;
11984 esac
11985 ;;
11986 esac
11987
11988 ac_dir=`$as_dirname -- "$ac_file" ||
11989 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11990 X"$ac_file" : 'X\(//\)[^/]' \| \
11991 X"$ac_file" : 'X\(//\)$' \| \
11992 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11993 $as_echo X"$ac_file" |
11994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11995 s//\1/
11996 q
11997 }
11998 /^X\(\/\/\)[^/].*/{
11999 s//\1/
12000 q
12001 }
12002 /^X\(\/\/\)$/{
12003 s//\1/
12004 q
12005 }
12006 /^X\(\/\).*/{
12007 s//\1/
12008 q
12009 }
12010 s/.*/./; q'`
12011 { as_dir="$ac_dir"
12012 case $as_dir in #(
12013 -*) as_dir=./$as_dir;;
12014 esac
12015 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12016 as_dirs=
12017 while :; do
12018 case $as_dir in #(
12019 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12020 *) as_qdir=$as_dir;;
12021 esac
12022 as_dirs="'$as_qdir' $as_dirs"
12023 as_dir=`$as_dirname -- "$as_dir" ||
12024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12025 X"$as_dir" : 'X\(//\)[^/]' \| \
12026 X"$as_dir" : 'X\(//\)$' \| \
12027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12028 $as_echo X"$as_dir" |
12029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12030 s//\1/
12031 q
12032 }
12033 /^X\(\/\/\)[^/].*/{
12034 s//\1/
12035 q
12036 }
12037 /^X\(\/\/\)$/{
12038 s//\1/
12039 q
12040 }
12041 /^X\(\/\).*/{
12042 s//\1/
12043 q
12044 }
12045 s/.*/./; q'`
12046 test -d "$as_dir" && break
12047 done
12048 test -z "$as_dirs" || eval "mkdir $as_dirs"
12049 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12050 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12051 { (exit 1); exit 1; }; }; }
12052 ac_builddir=.
12053
12054 case "$ac_dir" in
12055 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12056 *)
12057 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12058 # A ".." for each directory in $ac_dir_suffix.
12059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12060 case $ac_top_builddir_sub in
12061 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12062 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12063 esac ;;
12064 esac
12065 ac_abs_top_builddir=$ac_pwd
12066 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12067 # for backward compatibility:
12068 ac_top_builddir=$ac_top_build_prefix
12069
12070 case $srcdir in
12071 .) # We are building in place.
12072 ac_srcdir=.
12073 ac_top_srcdir=$ac_top_builddir_sub
12074 ac_abs_top_srcdir=$ac_pwd ;;
12075 [\\/]* | ?:[\\/]* ) # Absolute name.
12076 ac_srcdir=$srcdir$ac_dir_suffix;
12077 ac_top_srcdir=$srcdir
12078 ac_abs_top_srcdir=$srcdir ;;
12079 *) # Relative name.
12080 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12081 ac_top_srcdir=$ac_top_build_prefix$srcdir
12082 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12083 esac
12084 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12085
12086
12087 case $ac_mode in
12088 :F)
12089 #
12090 # CONFIG_FILE
12091 #
12092
12093 case $INSTALL in
12094 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12095 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12096 esac
12097 _ACEOF
12098
12099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12100 # If the template does not know about datarootdir, expand it.
12101 # FIXME: This hack should be removed a few years after 2.60.
12102 ac_datarootdir_hack=; ac_datarootdir_seen=
12103
12104 ac_sed_dataroot='
12105 /datarootdir/ {
12106 p
12107 q
12108 }
12109 /@datadir@/p
12110 /@docdir@/p
12111 /@infodir@/p
12112 /@localedir@/p
12113 /@mandir@/p
12114 '
12115 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12116 *datarootdir*) ac_datarootdir_seen=yes;;
12117 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12118 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12119 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12120 _ACEOF
12121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12122 ac_datarootdir_hack='
12123 s&@datadir@&$datadir&g
12124 s&@docdir@&$docdir&g
12125 s&@infodir@&$infodir&g
12126 s&@localedir@&$localedir&g
12127 s&@mandir@&$mandir&g
12128 s&\\\${datarootdir}&$datarootdir&g' ;;
12129 esac
12130 _ACEOF
12131
12132 # Neutralize VPATH when `$srcdir' = `.'.
12133 # Shell code in configure.ac might set extrasub.
12134 # FIXME: do we really want to maintain this feature?
12135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12136 ac_sed_extra="$ac_vpsub
12137 $extrasub
12138 _ACEOF
12139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12140 :t
12141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12142 s|@configure_input@|$ac_sed_conf_input|;t t
12143 s&@top_builddir@&$ac_top_builddir_sub&;t t
12144 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12145 s&@srcdir@&$ac_srcdir&;t t
12146 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12147 s&@top_srcdir@&$ac_top_srcdir&;t t
12148 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12149 s&@builddir@&$ac_builddir&;t t
12150 s&@abs_builddir@&$ac_abs_builddir&;t t
12151 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12152 s&@INSTALL@&$ac_INSTALL&;t t
12153 $ac_datarootdir_hack
12154 "
12155 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12156 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12157 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12158 { (exit 1); exit 1; }; }
12159
12160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12161 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12163 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12164 which seems to be undefined. Please make sure it is defined." >&5
12165 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12166 which seems to be undefined. Please make sure it is defined." >&2;}
12167
12168 rm -f "$tmp/stdin"
12169 case $ac_file in
12170 -) cat "$tmp/out" && rm -f "$tmp/out";;
12171 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12172 esac \
12173 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12174 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12175 { (exit 1); exit 1; }; }
12176 ;;
12177 :H)
12178 #
12179 # CONFIG_HEADER
12180 #
12181 if test x"$ac_file" != x-; then
12182 {
12183 $as_echo "/* $configure_input */" \
12184 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12185 } >"$tmp/config.h" \
12186 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12187 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12188 { (exit 1); exit 1; }; }
12189 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12190 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12191 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12192 else
12193 rm -f "$ac_file"
12194 mv "$tmp/config.h" "$ac_file" \
12195 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12196 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12197 { (exit 1); exit 1; }; }
12198 fi
12199 else
12200 $as_echo "/* $configure_input */" \
12201 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12202 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12203 $as_echo "$as_me: error: could not create -" >&2;}
12204 { (exit 1); exit 1; }; }
12205 fi
12206 ;;
12207
12208 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12209 $as_echo "$as_me: executing $ac_file commands" >&6;}
12210 ;;
12211 esac
12212
12213
12214 case $ac_file$ac_mode in
12215 "default":C) echo timestamp > stamp-h ;;
12216
12217 esac
12218 done # for ac_tag
12219
12220
12221 { (exit 0); exit 0; }
12222 _ACEOF
12223 chmod +x $CONFIG_STATUS
12224 ac_clean_files=$ac_clean_files_save
12225
12226 test $ac_write_fail = 0 ||
12227 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12228 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12229 { (exit 1); exit 1; }; }
12230
12231
12232 # configure is writing to config.log, and then calls config.status.
12233 # config.status does its own redirection, appending to config.log.
12234 # Unfortunately, on DOS this fails, as config.log is still kept open
12235 # by configure, so config.status won't be able to write to it; its
12236 # output is simply discarded. So we exec the FD to /dev/null,
12237 # effectively closing config.log, so it can be properly (re)opened and
12238 # appended to by config.status. When coming back to configure, we
12239 # need to make the FD available again.
12240 if test "$no_create" != yes; then
12241 ac_cs_success=:
12242 ac_config_status_args=
12243 test "$silent" = yes &&
12244 ac_config_status_args="$ac_config_status_args --quiet"
12245 exec 5>/dev/null
12246 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12247 exec 5>>config.log
12248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12249 # would make configure fail if this is the last instruction.
12250 $ac_cs_success || { (exit 1); exit 1; }
12251 fi
12252 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12253 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12254 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12255 fi
12256
12257
12258
12259 echo ""
12260
12261 echo "Imview is configured as follows. Please verify that this"
12262 echo "configuration matches your expectations."
12263 echo ""
12264 echo "Host system type : $host"
12265 echo "Target system : $target"
12266 echo ""
12267 echo "Option Configure option Configured value"
12268 echo "----------------------------------------------------------"
12269 echo "System --with-server=$save_server $with_server"
12270 echo " --with-sysv-ipc=$save_sysv_ipc $with_sysv_ipc"
12271 echo " --with-posix-ipc=$save_posix_ipc $with_posix_ipc"
12272 echo "----------------------------------------------------------"
12273 echo "Compiling options --with-prof=$save_prof $with_prof"
12274 echo " --with-gprof=$save_gprof $with_gprof"
12275 echo " --with-gcov=$save_gcov $with_gcov"
12276 echo " --enable-debug=$save_debug $with_debug"
12277 echo "------------------------------------------------------------"
12278 echo "JPEG --with-jpeg=$save_jpeg $with_jpeg"
12279 echo "TIFF --with-tiff=$save_tiff $with_tiff"
12280 echo "MAGICK --with-magick=$save_magick $with_magick"
12281 echo "PINK --with-pink=$save_pink $with_pink"
12282 echo "Native Chooser --with-native-chooser=$save_native_chooser $with_native_chooser"
12283 echo "Registration --enable-registration=$save_registration $with_registration"
12284
12285 echo ""
12286
12287 if test "$save_server" != "$with_server" ; then
12288 echo "** Warning: Imview cannot be configured with the default server option"
12289 fi
12290
12291 if test "$save_sysv_ipc" != "$with_sysv_ipc" ; then
12292 echo "** Warning: Imview cannot be configured with the default SYSV IPC option"
12293 fi
12294
12295 if test "$save_posix_ipc" != "$with_posix_ipc" ; then
12296 echo "** Warning: Imview cannot be configured with the default POSIX IPC option"
12297 if test "$with_sysv_ipc" = "yes" ; then
12298 echo "** Warning: But you will be fine with the SYSV IPC, no worries."
12299 echo ""
12300 fi
12301 fi
12302
12303 if test "$save_jpeg" != "$with_jpeg" ; then
12304 echo "** Warning: Imview cannot be configured with the desired JPEG option"
12305 fi
12306
12307 if test "$save_tiff" != "$with_tiff" ; then
12308 echo "** Warning: Imview cannot be configured with the desired TIFF option"
12309 fi
12310
12311 if test "$save_magick" != "$with_magick" ; then
12312 echo "** Warning: Imview cannot be configured with the desired Magick option"
12313 fi
12314
12315 if test "$ac_cv_cxx_standard_char_traits" = "no" \
12316 -o "$ac_cv_cxx_default_template_parameters" = "no" \
12317 -o "$ac_cv_cxx_templates_as_template_arguments" = "no" ; then
12318 echo "** Warning: Your C++ compiler is not ISO compliant enough,"
12319 echo "** Warning: this configuration is unsupported."
12320 echo "** Warning: See prerequisites in INSTALL file"
12321 fi
12322
12323 if test "$have_x" = "yes"
12324 then
12325 echo ""
12326 echo "X configuration"
12327 echo " X_CFLAGS = $X_CFLAGS"
12328 echo " X_PRE_LIBS = $X_PRE_LIBS"
12329 echo " X_LIBS = $X_LIBS"
12330 echo " X_EXTRA_LIBS = $X_EXTRA_LIBS"
12331 fi
12332
12333 if test "$have_wingdi" = 'yes'
12334 then
12335 echo ""
12336 echo "GDI configuration"
12337 echo " "
12338 fi
12339
12340 if test "$have_carbon" = 'yes'
12341 then
12342 echo ""
12343 echo "MacOS Carbon configuration"
12344 echo " "
12345 fi
12346
12347 echo ""
12348 echo "Final Compilation Flags:"
12349 echo " CC = $CC"
12350 echo " CXX = $CXX"
12351 echo " CFLAGS = $CFLAGS"
12352 echo " CXXFLAGS = $CXXFLAGS"
12353 echo " CPPFLAGS = $CPPFLAGS"
12354 echo " LDFLAGS = $LDFLAGS"
12355 echo " LIBRARIES = $FLTKLIB $FLTKEXTRA $IMLIBS $XLIBS $X_EXTRA_LIBS $THREADLIB $POSIX_IPC_LIB $MATHLIB"
12356 #echo " LIBS = $LIBS"
12357
12358 if test "$ac_cv_cxx_needs_permissive" = 'yes' ; then
12359 echo ""
12360 echo "**** Warning ***"
12361 echo "** Your X11 headers are not compatible with ANSI C++"
12362 echo "** Imview should still compile, but you are going to see "
12363 echo "** a **LOT** of compilation warnings. The best way to"
12364 echo "** avoid this problem is to upgrade your X11 headers to"
12365 echo "** a more recent version, or to downgrade your compiler"
12366 echo "** to a more lenient one. If your X11 headers are under"
12367 echo "** /usr/include/X11, you can also try to upgrade your gcc"
12368 echo "** to version 2.95.3 or later"
12369 echo "****************"
12370 fi
12371
12372 echo ""
12373
12374