1 --- emacs-21.3.orig/configure
2 +++ emacs-21.3/configure
4 machine=f301 opsys=uxpv
7 + ## AMD x86-64 Linux-based GNU system
8 + x86_64-*-linux-gnu* )
9 + machine=amdx86-64 opsys=gnu-linux
15 --- emacs-21.3.orig/configure.in
16 +++ emacs-21.3/configure.in
17 @@ -1060,6 +1060,11 @@
18 machine=f301 opsys=uxpv
21 + ## AMD x86-64 Linux-based GNU system
22 + x86_64-*-linux-gnu* )
23 + machine=amdx86-64 opsys=gnu-linux
29 --- emacs-21.3.orig/src/m/amdx86-64.h
30 +++ emacs-21.3/src/m/amdx86-64.h
32 +/* machine description file For the alpha chip.
33 + Copyright (C) 1994, 1997, 1999 Free Software Foundation, Inc.
35 +This file is part of GNU Emacs.
37 +GNU Emacs is free software; you can redistribute it and/or modify
38 +it under the terms of the GNU General Public License as published by
39 +the Free Software Foundation; either version 1, or (at your option)
42 +GNU Emacs is distributed in the hope that it will be useful,
43 +but WITHOUT ANY WARRANTY; without even the implied warranty of
44 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45 +GNU General Public License for more details.
47 +You should have received a copy of the GNU General Public License
48 +along with GNU Emacs; see the file COPYING. If not, write to
49 +the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
50 +Boston, MA 02111-1307, USA. */
53 +/* The following line tells the configuration script what sort of
54 + operating system this machine is likely to run.
63 +#define BITS_PER_LONG 64
64 +#define BITS_PER_EMACS_INT 64
66 +/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
67 + is the most significant byte. */
69 +#undef WORDS_BIG_ENDIAN
71 +/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
72 + * group of arguments and treat it as an array of the arguments. */
76 +/* Now define a symbol for the cpu type, if your compiler
77 + does not define it automatically:
78 + Ones defined so far include vax, m68000, ns16000, pyramid,
79 + orion, tahoe, APOLLO and many others */
81 +/* do we need any? */
84 +/* Use type EMACS_INT rather than a union, to represent Lisp_Object */
85 +/* This is desirable for most machines. */
87 +#define NO_UNION_TYPE
89 +/* Define the type to use. */
90 +#define EMACS_INT long
91 +#define EMACS_UINT unsigned long
92 +#define SPECIAL_EMACS_INT
94 +/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
95 + the 24-bit bit field into an int. In other words, if bit fields
96 + are always unsigned.
98 + If you use NO_UNION_TYPE, this flag does not matter. */
100 +#define EXPLICIT_SIGN_EXTEND
102 +/* Data type of load average, as read out of kmem. */
104 +#define LOAD_AVE_TYPE long
106 +/* Convert that into an integer that is 100 for a load average of 1.0 */
108 +#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
110 +/* Define C_ALLOCA if this machine does not support a true alloca
111 + and the one written in C should be used instead.
112 + Define HAVE_ALLOCA to say that the system provides a properly
113 + working alloca function and it should be used.
114 + Define neither one if an assembler-language alloca
115 + in the file alloca.s should be used. */
119 +/* GNU malloc and the relocating allocator do not work together
120 + with X. [Who wrote that?] */
122 +/* May 1995: reportedly [Rainer Schoepf <schoepf@uni-mainz.de>] both the
123 + system and the gnu malloc system work with "alpha-dec-osf3.0" and
124 + "alpha-dec-osf3.2". */
126 +/* May 1995: it seems to me [Morten Welinder <terra@diku.dk>] that both
127 + mallocs work with "alpha-dec-osf2.0", but I daren't break anything
128 + right now. Feel free to play if you want. */
130 +/* #define SYSTEM_MALLOC */
133 +/* With ELF, make sure that all common symbols get allocated to in the
134 + data section. Otherwise, the dump of temacs may miss variables in
135 + the shared library that have been initialized. For example, with
136 + GNU libc, __malloc_initialized would normally be resolved to the
137 + shared library's .bss section, which is fatal. */
139 +# define C_SWITCH_MACHINE -fno-common
141 +# error What gives? Fix me if DEC Unix supports ELF now.
145 +#if defined(__OpenBSD__)
146 +#define ORDINARY_LINK
151 +#define UNEXEC unexelf.o
156 +/* Describe layout of the address space in an executing process. */
158 +#define TEXT_START 0x120000000
159 +#define DATA_START 0x140000000
161 +/* This is necessary for mem-limits.h, so that start_of_data gives
162 + the correct value */
164 +#define DATA_SEG_BITS 0x140000000
166 +/* The program to be used for unexec. */
168 +// #define UNEXEC unexalpha.o
170 +#endif /* notdef __ELF__ */
173 +#define ORDINARY_LINK
175 +/* Some systems seem to have this, others don't. */
177 +#define LIBS_MACHINE -ldnet
179 +#define LIBS_MACHINE -ldnet_stub
183 +#if 0 /* Rainer Schoepf <schoepf@uni-mainz.de> says this loses with X11R6
184 + since it has only shared libraries. */
186 +/* This apparently is for the system ld as opposed to Gnu ld. */
188 +#define LD_SWITCH_MACHINE -non_shared
195 +#define START_FILES pre-crt0.o
198 +#if defined (LINUX) && __GNU_LIBRARY__ - 0 < 6
199 +/* This controls a conditional in main. */
200 +#define LINUX_SBRK_BUG
204 +#define PNTR_COMPARISON_TYPE unsigned long
206 +/* On the 64 bit architecture, we can use 60 bits for addresses */
211 +/* This definition of MARKBIT is necessary because of the comparison of
212 + ARRAY_MARK_FLAG and MARKBIT in an #if in lisp.h, which cpp doesn't like. */
214 +#define MARKBIT 0x8000000000000000L
217 +/* Define XINT and XUINT so that they can take arguments of type int */
219 +#define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
220 +#define XUINT(a) ((long) (a) & VALMASK)
222 +/* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
224 +#define XPNTR(a) XUINT (a)
227 +/* We need these because pointers are larger than the default ints. */
228 +#if !defined(__NetBSD__) && !defined(__OpenBSD__)
232 +#endif /* not NOT_C_CODE */
235 +#define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */
236 +#define PTY_NAME_SPRINTF /* none */
237 +#define PTY_TTY_NAME_SPRINTF /* none */
242 + SIGMASKTYPE mask; \
243 + mask = sigblock (sigmask (SIGCHLD)); \
244 + if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \
246 + sigsetmask (mask); \
247 + emacs_close (dummy); \
252 +/* On the Alpha it's best to avoid including TERMIO since struct
253 + termio and struct termios are mutually incompatible. */
256 +#if defined (LINUX) || defined (__NetBSD__) || defined (__OpenBSD__)
257 +# define TEXT_END ({ extern int _etext; &_etext; })
260 +# define DATA_END ({ extern int _EDATA; &_EDATA; })
261 +# endif /* notdef __ELF__ */
264 +#if (defined (__NetBSD__) || defined (__OpenBSD__)) && defined (__ELF__)
265 +#define HAVE_TEXT_START
268 +/* Many Alpha implementations (e.g. gas 2.8) can't handle DBL_MIN:
269 + they generate code that uses a signaling NaN instead of DBL_MIN.
270 + Define DBL_MIN_REPLACEMENT to be the next value larger than DBL_MIN:
271 + this avoids the assembler bug. */
272 +#define DBL_MIN_REPLACEMENT 2.2250738585072019e-308
273 --- emacs-21.3.orig/debian/copyright.in
274 +++ emacs-21.3/debian/copyright.in
278 +This package was debianized by Rob Browning <rlb@defaultvalue.org> on
279 +Tue, 16 Dec 1997 00:05:45 -0600.
281 +The source is a combination of the following files:
283 + prep.ai.mit.edu:/pub/gnu/emacs/emacs-@NOMINAL_VERSION@.tar.gz
284 + prep.ai.mit.edu:/pub/gnu/emacs/leim-@NOMINAL_VERSION@.tar.gz
288 + GNU Emacs is Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996,
289 + 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
290 + 59 Temple Place, Suite 330 Boston, MA 02111-1307 USA and is covered
291 + under the terms of the GPL. See the file
292 + /usr/share/common-licenses/GPL for more information.
294 + The GNU Emacs Manual is Copyright (C) 1985, 1986, 1987, 1993, 1994,
295 + 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software
296 + Foundation, Inc. 59 Temple Place, Suite 330 Boston, MA 02111-1307
297 + USA. It is covered under the terms of the GNU Free Documentation
298 + License, version 1.1 or later. See node `GNU Free Documentation
299 + License' in the Info manual (emacs) for details.
301 + The GNU Emacs Manual and related manuals in /usr/info/emacs-21 are
302 + Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998,
303 + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 59 Temple
304 + Place, Suite 330 Boston, MA 02111-1307 USA. They are covered under
305 + the terms of the GNU Free Documentation License, version 1.1 or
306 + later. See node `GNU Free Documentation License' in the Info manual
307 + (emacs) for details.
309 +Please see /usr/share/doc/emacs@MAJOR_VERSION@-common/README.Debian.gz for a
310 +description of the Debian specific differences from the upstream
312 --- emacs-21.3.orig/debian/changelog
313 +++ emacs-21.3/debian/changelog
315 +emacs21 (21.3+1-5ubuntu4.2) warty-security; urgency=low
317 + * Fixed CAN-2005-0100.dpatch to work with Warty's dpatch version.
319 + -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 4 Feb 2005 11:53:51 +0000
321 +emacs21 (21.3+1-5ubuntu4.1) warty-security; urgency=low
323 + * SECURITY UPDATE: fix remote privilege escalation to group 'mail'.
324 + * Added patch CAN-2005-0100.dpatch:
325 + - lib-src/movemail.c: Fix format string vulnerability in error message
330 + -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 4 Feb 2005 10:41:30 +0000
332 +emacs21 (21.3+1-5ubuntu4) warty; urgency=low
334 + * Add patch to fix local file creation permissions.
337 + -- Fabio M. Di Nitto <fabbione@fabbione.net> Sun, 10 Oct 2004 07:22:56 +0200
339 +emacs21 (21.3+1-5ubuntu3) warty; urgency=low
341 + * debian/control.in:
342 + - Build-Depends on libtiff4-dev.
344 + -- Sebastien Bacher <seb128@debian.org> Mon, 2 Aug 2004 12:23:36 +0200
346 +emacs21 (21.3+1-5ubuntu2) warty; urgency=low
348 + * Import debian/patches/fix-batch-mode-signal-handling.dpatch
349 + from 21.3+1-6 to fix Warty bug #58
351 + -- Matt Zimmerman <mdz@alcor.net> Mon, 26 Jul 2004 11:06:23 -0700
353 +emacs21 (21.3+1-5ubuntu1) warty; urgency=low
355 + * Apply amd64 patch aggregated from #248796
357 + -- LaMont Jones <lamont@mmjgroup.com> Wed, 14 Jul 2004 01:34:05 +0000
359 +emacs21 (21.3+1-5) unstable; urgency=low
361 + * Apply patch allowing emacsclient to handle ALTERNATE_EDITOR properly
362 + when the command is run without any parameter [Jérôme Marant]
364 + - debian/patches/emacsclient-alternate-editor.dpatch: new file.
366 + * Provide the `editor' virtual package. [Jérôme Marant]
367 + (closes: #66243, #90154, #158807)
368 + - debian/control.in: emacs and emacs-nox now provide the `editor'
370 + - debian/control: synchronized with debian/control.in.
371 + - debian/emacs.postinst: adding an `editor' alternative with a priority
372 + of 0 as discussed in
373 + http://lists.debian.org/debian-policy/2000/debian-policy-200006/msg00122.html
374 + - debian/emacs.prerm: removing the `editor' alternative on package
377 + * Added automatic switching to UTF-8 encoding when editing the debian
378 + changelog file. [Jérôme Marant]
379 + - debian/changelog: added Emacs local variables forcing coding
382 + * Fix handling of menu entry for text version of Emacs [Jérôme Marant]
384 + - debian/menu.in: call the text version of emacs with the `-nw'
387 + * Install the emacsclient manpage [Jérôme Marant] (closes: #222767)
388 + - debian/build-common-pkg: install missing emacsclient manpage.
389 + - debian/emacs-common.postinst: install alternative for emacsclient
392 + * Install .desktop entry in order to make Emacs easy to start in
393 + both GNOME and KDE. Thanks to Adam C Powell IV <hazelsct@debian.org>
394 + [Jérôme Marant] (closes: #233711)
395 + - emacs.desktop: new template file for desktop entries
396 + - debian/rules: generate desktop file from emacs.desktop template
397 + and install it for emacs21.
399 + * test -n "${major_ver}" in a few places so that we don't accidentally
400 + generate bad output files from our .in files. [rlb]
403 + * truncate aclocal.m4 during autofiles-sync so that old bits won't kill new
404 + autoconf run. Also ignore autom4te.cache when generating
405 + autofiles.diff. [rlb]
408 + * fix bug in prepare-release autodiff prompt handling. [rlb]
411 + * update configure.in for newer autoconf versions. [rlb]
412 + - autoconf-updates.dpatch
414 + * add an emacsXY-bin-common package containing all the architecture
415 + specific bits, so that emacsXY-common can be architecture independent.
416 + This should save many megabytes * architectures in the debian pool.
417 + [rlb] (closes: #232888, #233345)
418 + - debian/rules: move some build-* code from debian/ scripts to rules
419 + and adjust to build emacsXY-bin-common.
420 + - debian/emacs-common.postinst debian/emacs-common.prerm: some code
421 + moved to new emacs-bin-common scripts.
422 + - debian/emacs-common.postrm: deleted.
423 + - debian/emacs-bin-common.postinst: new file.
424 + - debian/emacs-bin-common.prerm: new file.
425 + - debian/emacs-bin-common.postrm: new file.
426 + - debian/build-common-pkg: deleted - code now in debian/rules.
427 + - debian/build--pkg: deleted - code now in debian/rules.
428 + - debian/emacs-el.postinst: deleted - was empty.
429 + - debian/control.in: add emacsXY-bin-common and adjust other entries.
430 + - debian/fix-debian-scripts: deleted - no longer used.
431 + - debian/build-binary-pkg: adjusted to handle more of the common code.
433 + * Add support for linux 2.6 to ACPI in lisp/battery.el. Thanks to
434 + Mario Lang <mlang@debian.org> [Jérôme Marant] (closes: #228658)
435 + - debian/patches/battery-acpi-support.dpatch: updated.
437 + * Generate md5sums file for every package [Jérôme Marant] (closes: #22590)
438 + - debian/rules: generate md5sums file just before building packages.
439 + - debian/build-binary-pkg: likewise.
441 + * no point in byte-compiling fns-*.el according to upstream authors
444 + * fix configure args (--build alone doesn't seem to work anymore). [rlb]
447 + * re-enable gif support via libungif. [rlb]
450 + * re-enable toolkit scrollbars, but make it really easy for people to
451 + disable them in debian/rules. Search for
452 + --without-toolkit-scrollbars. [rlb]
456 + * fix problem with upgrades by adding emacs21-common (<< 21.3+1-4) to
457 + Replaces for the common packages. [rlb]
458 + - debian/control.in
461 + -- Rob Browning <rlb@defaultvalue.org> Tue, 6 Apr 2004 18:07:38 -0500
463 +emacs21 (21.3+1-4) unstable; urgency=medium
465 + * debian/changelog: converted to UTF-8 as per Policy. [Jérôme Marant]
466 + * debian/control.in:
467 + - Bumped Standards-Version to 3.6.1. [Jérôme Marant]
468 + - Added versioned build-dependency on dpatch >= 1.23 since this version
469 + no longer requires numerial prefixes to dpatches. [Jérôme Marant]
470 + * debian/patches/*.dpatch: removed numerical prefix since the patch order
471 + is specified in debian/patches/00list. [Jérôme Marant]
472 + * debian/patches/hurd-libio-glibc.dpatch: new patch allowing Emacs
473 + to be built on Hurd systems using a libio-based glibc.
474 + Thanks to Markus Brinkmann <marcus@gnu.org>.
475 + (closes: #143220) [Jérôme Marant]
476 + * debian/patches/battery-acpi-support.dpatch: new patch adding ACPI
477 + support to lisp/battery.el. Thanks to Mario Lang <mlang@debian.org>.
478 + (closes: #208812) [Jérôme Marant]
479 + * debian/patches/scroll-margin.dpatch: new patch preventing emacs
480 + to hang with a non-0 scroll-margin set.
481 + (closes: #175658) [Jérôme Marant]
482 + * debian/patches/save-buffer.dpatch: new patch fixing a bug which
483 + makes a file being removed when the coding system of its buffer
484 + has changed and saving the changes was canceled.
485 + (closes: #194171) [Jérôme Marant]
486 + * debian/patches/00list: updated with respect to new patches.
489 + - Added hints to menu entries. (closes: #144282) [Jérôme Marant]
490 + - Changed titles for both text and X11 entries in order to
491 + differenciate them. (closes: #197527, #188598) [Jérôme Marant]
492 + * debian/patches/browse-url.dpatch:
493 + - Updated patch fixing a wrong call to galeon. Thanks to
494 + Mikael Hedin <micce@debian.org>. (closes: #208206) [Jérôme Marant]
495 + - Updated patch fixing browse-url's invocation of Mozilla.
496 + Thanks to Jeff Sheinberg <jeffsh@erols.com>,
497 + Martin Pool <mbp@sourcefrog.net> and KATO Kazuyoshi <kzys@users.sf.net>.
498 + (closes: #148408, #216067) [Jérôme Marant]
499 + * Use -O1 rather than -O2 on m68k. Fixes a build failure (looks like a
500 + broken byte compiler) with newer versions of gcc. (closes: #207580)
502 + -- Rob Browning <rlb@defaultvalue.org> Fri, 31 Oct 2003 00:00:10 -0600
504 +emacs21 (21.3+1-3) unstable; urgency=low
506 + * create debian/stmap it doesn't exist. (closes: #210802)
508 + -- Rob Browning <rlb@defaultvalue.org> Sat, 13 Sep 2003 14:49:18 -0500
510 +emacs21 (21.3+1-2) unstable; urgency=low
512 + * add back accidentally removed dpatch Build-Depends. (closes: #210627)
514 + -- Rob Browning <rlb@defaultvalue.org> Fri, 12 Sep 2003 10:30:21 -0500
516 +emacs21 (21.3+1-1) unstable; urgency=low
518 + * repackage without .elc files since we regenerate all of them anyway.
519 + This will save space, and will also allow us to use dpatch in a
520 + straightforward way.
521 + * modify debian/rules computation of version numbers to handle
522 + (i.e. ignore) the +1 in 21.3+1.
523 + * rework to use dpatch and to patch/unpatch the debian source in-place
524 + rather than using a debian/build-src copy of the whole source tree.
525 + * incorporated patch (500-detect-coding-iso2022.dpatch) to fix raw-text
526 + coding problem. Thanks to Kenichi Handa <handa@etl.go.jp>.
529 + -- Rob Browning <rlb@defaultvalue.org> Thu, 11 Sep 2003 23:15:44 -0500
531 +emacs21 (21.3-2) unstable; urgency=low
533 + * Compile --without-toolkit-scroll-bars for now (my pref, and to avoid
534 + xaw3d issues for the moment).
535 + * Update copyright to reflect documentation licenses. (closes: #161500)
537 + -- Rob Browning <rlb@defaultvalue.org> Wed, 13 Aug 2003 08:53:35 -0500
539 +emacs21 (21.3-1) unstable; urgency=low
541 + * new upstream version.
543 + -- Rob Browning <rlb@defaultvalue.org> Wed, 23 Apr 2003 13:16:06 -0500
545 +emacs21 (21.2-6) unstable; urgency=low
547 + * changed sort behavior for x-vs-no-x fix in cus-dep.el based on
548 + suggestion from Matt Kraai <kraai@alumni.cmu.edu>. (closes: #166139)
549 + * finish breaking up most of the debian/patch/* files.
550 + * set up automatic generation for autofiles.diff which contains all the
551 + diffs to automatically generated files and is applied after all of the
552 + debian/patch/*.diff files.
553 + * add an apply-patches-upto command so it's easier to create partially
554 + patched trees for editing.
556 + -- Rob Browning <rlb@defaultvalue.org> Thu, 6 Feb 2003 18:12:41 -0600
558 +emacs21 (21.2-5) unstable; urgency=low
560 + * fix bug in rules and binary-pkg generation. (closes: #164770)
561 + * fix problem with config.sub and config.guess updates. (closes: #164763)
562 + * time to stop creating the /usr/doc symlinks...
564 + -- Rob Browning <rlb@defaultvalue.org> Tue, 15 Oct 2002 16:34:52 -0500
566 +emacs21 (21.2-4) unstable; urgency=low
568 + * create debian/patches/ and start migrating to represent
569 + changes as patches against the upstream source. Don't edit the main
571 + * rework tree and packaging to have emacs21-common, emacs21, and
572 + emacs21-nox packages with emacs21-common containing nearly all the
575 + -- Rob Browning <rlb@defaultvalue.org> Sat, 12 Oct 2002 15:09:37 -0500
577 +emacs21 (21.2-3) unstable; urgency=low
579 + * Update emacs21-nox package description.
581 + -- Rob Browning <rlb@defaultvalue.org> Wed, 29 May 2002 14:04:57 -0500
583 +emacs21 (21.2-2) unstable; urgency=low
585 + * fix control file priorities to match overrides.
586 + * fix rules to handle autotools more correctly. See
587 + /usr/share/doc/autotools-dev/README.Debian.gz for details.
589 + * firewall, headless box, and anti-X users everywhere rejoice!
590 + Introducing emacs21-nox package :>
592 + -- Rob Browning <rlb@defaultvalue.org> Tue, 28 May 2002 12:09:48 -0500
594 +emacs21 (21.2-1) unstable; urgency=low
596 + * new upstream release.
597 + * move outline of Debian specific Emacs changes to
598 + /usr/share/doc/*/README.Debian.gz.x
600 + -- Rob Browning <rlb@defaultvalue.org> Fri, 22 Mar 2002 11:41:17 -0600
602 +emacs21 (21.1-9) unstable; urgency=low
604 + * fix control.in to use ${Source-Version}. (closes: #138994)
606 + -- Rob Browning <rlb@defaultvalue.org> Mon, 18 Mar 2002 21:54:47 -0600
608 +emacs21 (21.1-8) unstable; urgency=low
610 + * Fix .texi problems with upstream patch. (closes: #138236)
612 + -- Rob Browning <rlb@defaultvalue.org> Sun, 17 Mar 2002 11:58:59 -0600
614 +emacs21 (21.1-7) unstable; urgency=high
616 + * fix vc-path to be correct for a Debian system. (closes: #107251)
617 + * re-add lost hppa and s390 patches. (closes: #120079)
619 + -- Rob Browning <rlb@defaultvalue.org> Thu, 6 Dec 2001 14:10:45 -0600
621 +emacs21 (21.1-6) unstable; urgency=medium
623 + * modify order in browse-url.el.
624 + * added upstream iso-acc.el patch to fix accent bug. (closes: #119852)
625 + * fix ppc nocombreloc bug with upstream patch. (closes: #117557)
627 + -- Rob Browning <rlb@defaultvalue.org> Tue, 4 Dec 2001 08:43:38 -0600
629 +emacs21 (21.1-5) unstable; urgency=low
631 + * Run autoconf to remove stale ppc code. (closes: #119189)
632 + * Write new browse-url.el code with support for galeon and to default to
633 + searching for a suitable browser, free browsers first. (closes: #116822)
635 + -- Rob Browning <rlb@defaultvalue.org> Tue, 13 Nov 2001 09:51:31 -0600
637 +emacs21 (21.1-4) unstable; urgency=low
639 + * Really fix alternatives problem this time.
641 + -- Rob Browning <rlb@defaultvalue.org> Fri, 9 Nov 2001 10:24:49 -0600
643 +emacs21 (21.1-3) unstable; urgency=low
645 + * Fix but in grep in postinst. (closes: #117251, #117256, #117415, #118792)
646 + * Remove vestigal ppc bits and add upstream patch for ppc nocombreloc
647 + problem. (closes: #117557)
648 + * fix bug in upstream-files.tar handling.
649 + * don't configure gif support until our libungif is new enough. See bug
651 + * Fix manpage to list correct default window size. (closes: #118641)
653 + -- Rob Browning <rlb@defaultvalue.org> Thu, 8 Nov 2001 21:15:20 -0600
655 +emacs21 (21.1-2) unstable; urgency=low
657 + * change to priority optional.
658 + * use xaw3d scrollbars after checking upstream preferences.
659 + (closes: #116831, #116911, #116638)
660 + * added some build-depends. (closes: #116981)
661 + * fixed typo in NEWS. (closes: #116814)
662 + * fixed alternatives bug in postinst/prerm for emacsclient (closes: #116915)
664 + -- Rob Browning <rlb@defaultvalue.org> Thu, 25 Oct 2001 16:02:45 -0500
666 +emacs21 (21.1-1) unstable; urgency=low
668 + * New emacs21 packages. Many changes -- reviewed all Debian files.
670 + -- Rob Browning <rlb@defaultvalue.org> Thu, 18 Oct 2001 17:28:03 -0500
672 +emacs20 (20.7-10) unstable; urgency=medium
674 + * Add arch header for mipsel and fix configure.in and
675 + configure. (closes: #103959)
677 + -- Rob Browning <rlb@defaultvalue.org> Mon, 23 Jul 2001 09:23:06 -0500
679 +emacs20 (20.7-9) unstable; urgency=low
681 + * Added more Build-Depends. (closes: #101832)
682 + * Disable ralloc on Hurd. Thanks to Robert Bihlmeyer
683 + <robbe@orcus.priv.at>. (closes: #101926)
685 + -- Rob Browning <rlb@defaultvalue.org> Tue, 10 Jul 2001 12:48:22 -0500
687 +emacs20 (20.7-8) unstable; urgency=low
689 + * Added ia64 patches from Bdale Garbee <bdale@gag.com> for ia64.h.
691 + * Added Build-Depends on mailx for now (though this is *wrong* for the
692 + long run -- I need to fix my fakemail handling).
693 + (closes: #95903, #96761)
694 + * Fix fakeroot sgid problem (move movemail chmod +s in debian/rules).
695 + * Remove emacs' overzealous dir.gz file.
696 + * Shrink gnu.xpm to 32x32 and make it the menu icon. (closes: #20253, #21310)
697 + * Update manpage to not refer to kitchen sink anymore -- though with
698 + emacs21, we're going to move back to using whatever they choose.
701 + -- Rob Browning <rlb@cs.utexas.edu> Wed, 13 Jun 2001 23:56:16 -0500
703 +emacs20 (20.7-7) unstable; urgency=low
705 + * Fixed reftex-info problem. (closes: #44837).
706 + * Fix install-strip target in Makefile.in. Thanks to
707 + Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>. (closes: #51348)
709 + -- Rob Browning <rlb@cs.utexas.edu> Sat, 5 May 2001 23:50:50 -0500
711 +emacs20 (20.7-6) unstable; urgency=low
713 + * Fix improper usage of dpkg-statoverride and make sure movemail is set
714 + up right. (closes: #95953)
715 + * Fix bad manpage location in postinst update-alternatives call.
716 + * Fix bad .so in ctags manpage (closes: #88231, #45317, #65017, #74570)
718 + -- Rob Browning <rlb@cs.utexas.edu> Sat, 5 May 2001 09:47:40 -0500
720 +emacs20 (20.7-5) unstable; urgency=low
722 + * configure.in: add detection of CONF_MAIL_PROGRAM_NAME.
723 + * lib-src/fakemail.c: use CONF_MAIL_PROGRAM_NAME when appropriate
724 + (closes: #72103) -- need to forward upstream.
725 + * Add "modified by Debian" clause to (emacs-version) at RMS's request.
726 + * Start Debian modifications section in copyright file as per policy.
727 + * Add build fixes for hurd (closes: #78461). Changes suggested by
728 + Marcus.Brinkmann@ruhr-uni-bochum.de. Thanks.
729 + * Switch from Debian sendmail.el hack to Francesco's suggestion of
730 + setting mail-from-style to 'system-default by default at startup
731 + (closes: #35128). This allows the user to override when desired in
732 + the normal way. This should be discussed with the upstream
733 + maintainers. They may be amenable to making this the default on
735 + * add dependency on dpkg (>= 1.9.0) for new install-info.
736 + * info pages should finally work right (or at least closer to right).
737 + They're now installed in /usr/share/info/emacs-20/ under their normal
738 + names, and install-info can add the appropriate (emacs-20/emacs),
739 + etc. entries to /usr/share/info/dir. This hopefully closes a bunch of
741 + (closes: #64994, #64512, #64025, #62155, #59332, #51163, #40443)
742 + * No more files in /usr/doc. (closes: #91454, #63768)
743 + * /usr/man moved to /usr/share/man. (closes: #91149)
744 + * This should be fixed, in addition we've switched to dpkg-statoverride
746 + * /usr/share/info/dir.gz should be gone.
747 + (closes: #75594, #68551, #65012)
749 + -- Rob Browning <rlb@cs.utexas.edu> Sun, 29 Apr 2001 22:03:33 -0500
751 +emacs20 (20.7-4) unstable frozen; urgency=low
753 + * Upload to unstable *and* frozen since this fixes outstanding grave
756 + -- Rob Browning <rlb@cs.utexas.edu> Thu, 27 Jul 2000 16:21:15 -0500
758 +emacs20 (20.7-3) unstable; urgency=low
760 + * Change code to rebuild *all* the install tree .elc files at build
761 + time. This should fix the grave problems with gnus trashing mail at
762 + the expense of more CPU at build time.
764 + -- Rob Browning <rlb@cs.utexas.edu> Wed, 19 Jul 2000 20:27:27 -0500
766 +emacs20 (20.7-2) frozen unstable; urgency=low
768 + * Revert to setting debian-emacs-flavor in startup.el as per recent
769 + flip-flop in debian-emacs-policy :< This was a *tiny* source change,
770 + and definitely has to go into frozen - too much breaks otherwise.
772 + -- Rob Browning <rlb@cs.utexas.edu> Tue, 20 Jun 2000 11:31:29 -0500
774 +emacs20 (20.7-1) frozen unstable; urgency=low
776 + * New upstream bug-fix version. Fixes security bugs, among others.
777 + * Removed some now redundant Debian patches.
779 + -- Rob Browning <rlb@cs.utexas.edu> Sat, 17 Jun 2000 12:59:48 -0500
781 +emacs20 (20.6-3) unstable frozen; urgency=medium
783 + * Temp fix for alpha corruption problem in cm/src.h
784 + src/termcap.c, src/terminfo.c, and src/sysdep.c (forwarded bug 63993).
786 + -- Rob Browning <rlb@cs.utexas.edu> Mon, 12 Jun 2000 18:55:22 -0500
788 +emacs20 (20.6-2) frozen unstable; urgency=low
790 + * Make sure info files get registered after /usr/share migration.
792 + -- Rob Browning <rlb@cs.utexas.edu> Fri, 12 May 2000 15:30:02 -0500
794 +emacs20 (20.6-1) frozen unstable; urgency=low
796 + * Let emacsen-common handle setting debian-emacs-flavor and modify
797 + "Depends:" accordingly.
798 + * Maintainer release of 20.6 - fixes same issues as 20.6-0.1, so it
799 + should go into frozen.
800 + * Move info files to /usr/share/info.
801 + * Make sure .elc files for .el files we've modified are *always* rebuilt.
802 + * Add new unexelf.c from Gerd Moellmann <gerd@gnu.org>. Without this,
803 + emacs20 will *not* build on either frozen or unstable x86 machines.
805 + -- Rob Browning <rlb@cs.utexas.edu> Fri, 12 May 2000 11:00:33 -0500
807 +emacs20 (20.6-0.1) frozen unstable; urgency=low
809 + * Non-maintainer release.
810 + * New upstream bug fix release (closes:#60931).
811 + * ARM support merged upstream.
812 + * Add security patches from RUS-CERT posting on BugTraq.
813 + * postinst: Use 2775 as directory permissions in /usr/local (closes:#59919)
815 + -- Joel Klecker <espy@debian.org> Wed, 26 Apr 2000 11:26:28 -0700
817 +emacs20 (20.5a-2) unstable; urgency=low
819 + * Check in a bogus modification to all the .el files that we modified
820 + before 20.5a so that new .elc files with our changes will be generated
821 + when we build. This must be done every time an upstream change is
824 + -- Rob Browning <rlb@cs.utexas.edu> Tue, 28 Dec 1999 19:51:14 -0600
826 +emacs20 (20.5a-1) unstable; urgency=high
828 + * Upstream version number is just fine (20.5a *is* newer than 20.5).
831 + -- Rob Browning <rlb@cs.utexas.edu> Wed, 22 Dec 1999 11:12:44 -0600
833 +emacs20 (20.4.pre20.5a-1) unstable; urgency=high
835 + * New upstream version, including some Y2K fixes.
836 + * Use weird version to avoid epochs. This is upstream 20.5a.
838 + -- Rob Browning <rlb@cs.utexas.edu> Wed, 22 Dec 1999 00:16:52 -0600
840 +emacs20 (20.4-3) unstable; urgency=low
842 + * Fix mistake in this file. Fix bug number in architecture
843 + dependency "closes" in last revision.
844 + * Powerpc configure.in patch from Susumu OSAWA <susumuo@debian.org>.
845 + (Should close bug 48997, but marked forwarded instead until patch is
846 + resolved upstream.)
847 + * Jargon problems apparently fixed. (closes: #31103 #37030)
848 + * Gnus printing problems apparently fixed (closes: #20760)
849 + * Fix manpage to refer to more accurate Debian file locations.
851 + * cperl-mode problem apparently fixed. (closes: #46739)
852 + * Fix build stripping problem (use INSTALL_STRIP=-s rather than
853 + INSTALL_PROGRAM="install -s").
855 + -- Rob Browning <rlb@cs.utexas.edu> Sat, 4 Dec 1999 19:24:07 -0600
857 +emacs20 (20.4-2) unstable; urgency=low
859 + * Modify mail-spool-directory/movemail patch in preparation for upstream
861 + * Fix architecture dependency. (closes: #48997)
863 + -- Rob Browning <rlb@cs.utexas.edu> Fri, 12 Nov 1999 17:59:01 -0600
865 +emacs20 (20.4-1) unstable; urgency=low
867 + * New upstream version.
868 + * I decided to go ahead and get this out without the major overhaul
869 + that's coming, but I'm going to be working more tightly the core
870 + upstream developers from now on, so there will be some more
871 + substantial changes soon, including getting rid of more Debianisms and
872 + double checking all our current patches.
873 + * Fix movemail liblockfile detection to be non-Debian specific
874 + (currently working out the appropriate upstream patch (see etc/NEWS)).
875 + * Fix emacs to support a --with-mail-spool-directory configure option and to
876 + automagically detect the right answer most of the time without it
877 + (currently working out the appropriate upstream patch (see etc/NEWS)).
878 + * Add the lisp-level variable mail-spool-directory which always contains
879 + the location of the mail spool, and hack movemail, nnmail, rmail, and
880 + friends to use it (currently working out the appropriate upstream
881 + patch (see etc/NEWS)) .
882 + * hexl-mode bug fixed upstream. (closes: #21762)
884 + -- Rob Browning <rlb@cs.utexas.edu> Sat, 30 Oct 1999 13:24:39 -0500
886 +emacs20 (20.3-11) unstable; urgency=low
888 + * Fix liblockfile version skew. (closes: #43803 #45123)
890 + -- Rob Browning <rlb@cs.utexas.edu> Thu, 23 Sep 1999 13:27:00 -0500
892 +emacs20 (20.3-10) unstable; urgency=low
894 + * Restructure debian/rules to build -el in binary-indep
896 + * Add emacsclient.1 manpage submitted ages ago. (closes: #22463)
897 + * Handle duplicate DOC files (closes: #27668)
898 + * Switch to gnu icon from old B&W drippy sink (closes: #33260)
900 + -- Rob Browning <rlb@cs.utexas.edu> Tue, 6 Jul 1999 23:21:44 -0500
902 +emacs20 (20.3-9) unstable; urgency=low
904 + * Added HURD patch from Marcus Brinkmann <brinkmd@debian.org>.
906 + * Backed out (global-set-key [delete] 'delete-char) modification
907 + (Ref: #26366). This is too controversial (think cross-platform)
908 + and needs to be resolved by the Debian Keyboard Czar in concert with
909 + others. For now we revert to the upstream behavior...
910 + * Add /usr/share/info to info search path (closes: #38285).
912 + -- Rob Browning <rlb@cs.utexas.edu> Fri, 11 Jun 1999 00:43:51 -0500
914 +emacs20 (20.3-8) unstable; urgency=low
916 + * Added patch to emacs.c from Wolfram Gloger
917 + <wmglo@dent.med.uni-muenchen.de> to fix exit segfaults.
919 + * Fixed suidregister inconsistency between postinst and postrm
922 + -- Rob Browning <rlb@cs.utexas.edu> Sun, 30 May 1999 14:38:51 -0500
924 +emacs20 (20.3-7) unstable frozen; urgency=low
926 + * Needed to go to frozen too: --print-architecture was an important
927 + bug. Should be OK since other fixes since -5 are minor and
929 + * Add conflict with w3-el (as per Ben Pfaff's <pfaffben@pilot.msu.edu>
930 + request). (closes: #30413).
931 + * Undo broken (and unneeded) "fix" for suidregister call in postrm.
933 + -- Rob Browning <rlb@cs.utexas.edu> Thu, 28 Jan 1999 14:49:27 -0600
935 +emacs20 (20.3-6) unstable; urgency=low
937 + * Use --print-installation-architecture rather than --print-architecture
939 + * Remove "#undef SIGIO" from m/arm.h as indicated by David Welton
940 + <davidw@debian.org> (closes: #31279).
941 + * Fix call to suidunregister (I didn't realize that it can't take
942 + multiple file arguments) (closes: #21243 #26886).
944 + -- Rob Browning <rlb@cs.utexas.edu> Wed, 27 Jan 1999 11:50:14 -0600
946 +emacs20 (20.3-5) frozen unstable; urgency=low
948 + * Added NetWinder patches (closes: #28277). (Thanks to David Welton)
949 + * Rebuilt emacs20-el so the versions coincide. In the future, people
950 + need to be sure to build *both* binary packages when doing a
951 + non-maintainer binary release. (This fix justifies inclusion into
954 + -- Rob Browning <rlb@cs.utexas.edu> Sun, 1 Nov 1998 20:14:36 -0600
956 +emacs20 (20.3-4) unstable; urgency=low
958 + * Fix gnus to default to /var/spool/mail rather than /usr/spool/mail for
959 + mailbox locations (closes: #21364).
961 + -- Rob Browning <rlb@cs.utexas.edu> Sat, 17 Oct 1998 14:28:45 -0500
963 +emacs20 (20.3-3) unstable; urgency=low
965 + * Fixed leim. All the input methods should work now (closes: #27398).
966 + * Made (global-set-key [delete] 'delete-char) the default (closes: #26366).
967 + * Fix ownership on emacs20-el files (closes: #27398).
969 + -- Rob Browning <rlb@cs.utexas.edu> Tue, 13 Oct 1998 16:57:51 -0500
971 +emacs20 (20.3-2) unstable; urgency=low
973 + * Added 20.2 patches for powerpc. I omitted the patches to the
974 + following files because it looks like equivalent fixes have already
975 + made it into 20.3. If anyone who understands that code better knows
976 + differently, please let me know. The rest of the patches applied
983 + I also modified src/m/powerpc.h to fix problems calling the ldscript.
985 + -- Rob Browning <rlb@cs.utexas.edu> Mon, 7 Sep 1998 18:20:41 -0500
987 +emacs20 (20.3-1) unstable; urgency=low
989 + * New upstream version.
990 + * Modify all the debian/* stuff to automatically track version changes.
991 + * Major changes to info page handling. Emacs20 info is now integrated into
992 + the main info page. This was the best way I could think of to handle
993 + cross references, etc. without major source changes.
994 + * Locked emacs20-el and emacs20 package versions together with dependencies.
995 + * Add info direntries for widget, info, and customize.
996 + * Fix handling of /usr/local/share (which was badly broken).
997 + * Turn stripping back on. It appears to work.
999 + -- Rob Browning <rlb@cs.utexas.edu> Tue, 1 Sep 1998 11:44:04 -0500
1001 +emacs20 (20.2-9) unstable; urgency=low
1003 + * Fixes for leim problems (closes: #25536). Thanks to
1004 + Junio Hamano <junio@twinsun.com>
1005 + * update-elc now made executable (closes: #25899). Thanks to
1006 + Junio Hamano <junio@twinsun.com>
1007 + * Fix problem with package including dirs in /usr/local/share
1010 + -- Rob Browning <rlb@cs.utexas.edu> Sat, 22 Aug 1998 11:45:16 -0500
1012 +emacs20 (20.2-8) unstable; urgency=low
1014 + * Regenerate .elc files for .el files we've modified. I didn't realize
1015 + that some of the .elc files were in the upstream tar file. Hope this
1016 + doesn't break anything. We haven't been using our sendmail and
1017 + message modifications until now. (closes: #21079).
1018 + * Fix i386ism in debian scripts use "dpkg --print-architecture"
1019 + instead. (closes: #20548).
1020 + * Fixed reference in README.add-on-package-maintainers
1022 + * Fix some alpha problems (closes: #21834).
1023 + * Had to add Replaces: emacs20 to emacs20-el to fix problem with
1024 + copyright files being in the wrong package (closes: #21531).
1026 + -- Rob Browning <rlb@cs.utexas.edu> Fri, 7 Aug 1998 20:39:59 -0500
1028 +emacs20 (20.2-7) frozen unstable; urgency=low
1030 + * Changed emacs20-el from standard to optional.
1031 + * Fixed broken postrm (release critical) (closes: #24236)
1032 + * Don't strip emacs binary (strip is broken see binutils #23153).
1033 + * Since we can't strip, don't compile or link with "-g".
1035 + -- Rob Browning <rlb@cs.utexas.edu> Thu, 16 Jul 1998 16:58:04 -0500
1037 +emacs20 (20.2-6) frozen unstable; urgency=low
1039 + * Gack. Fix reject due to changed .tar.gz file (./leim added to tar).
1041 + -- Rob Browning <rlb@cs.utexas.edu> Wed, 8 Apr 1998 14:04:54 -0500
1043 +emacs20 (20.2-5) frozen unstable; urgency=low
1045 + * Make sure to preserve timestamps on .el files in emacs20-el
1047 + * Add leim support for alternate input methods. May close several
1050 + -- Rob Browning <rlb@cs.utexas.edu> Sun, 5 Apr 1998 10:38:20 -0500
1052 +emacs20 (20.2-4) frozen unstable; urgency=low
1054 + * Added copright file to emacs20-el package (closes: #19300)
1055 + * suidmanager doesn't understand symbolic perms
1056 + (closes: #18448, #19213)
1058 + -- Rob Browning <rlb@cs.utexas.edu> Fri, 13 Mar 1998 13:01:07 -0600
1060 +emacs20 (20.2-3) unstable; urgency=low
1062 + * Fixed problem with permissions on /usr/share/emacs/20.2/site-lisp/
1065 + -- Rob Browning <rlb@cs.utexas.edu> Mon, 2 Mar 1998 12:02:33 -0600
1067 +emacs20 (20.2-2) unstable; urgency=low
1069 + * fixed bad menu line (closes: #18362).
1071 + -- Rob Browning <rlb@cs.utexas.edu> Thu, 19 Feb 1998 10:52:58 -0600
1073 +emacs20 (20.2-2) unstable; urgency=low
1075 + * Explicit dependency on liblockfile0 until bug is fixed
1077 + * added lisp/site-lisp.el to fix info path problem (closes #18190)
1079 + -- Rob Browning <rlb@cs.utexas.edu> Sat, 14 Feb 1998 19:19:09 -0600
1081 +emacs20 (20.2-1) unstable; urgency=low
1083 + * movemail no longer suid -- not needed.
1084 + * start from scratch with emacs-20.2 source and old emacs-19.34 and
1087 + -- Rob Browning <rlb@cs.utexas.edu> Tue, 16 Dec 1997 01:20:27 -0600
1092 --- emacs-21.3.orig/debian/control.in
1093 +++ emacs-21.3/debian/control.in
1095 +Source: emacs@MAJOR_VERSION@
1098 +Maintainer: Rob Browning <rlb@defaultvalue.org>
1099 +Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libungif4-dev, libtiff4-dev, xaw3dg-dev, libpng3-dev, libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), dpatch (>= 1.23)
1100 +Standards-Version: 3.6.1
1102 +Package: emacs@MAJOR_VERSION@
1106 +Depends: emacs@MAJOR_VERSION@-bin-common (= ${Source-Version}), ${shlibs:Depends}
1107 +Provides: emacsen, editor, info-browser, mail-reader, news-reader, www-browser
1108 +Conflicts: emacs@MAJOR_VERSION@-nox, w3-el
1109 +Replaces: emacs@MAJOR_VERSION@-nox
1110 +Description: The GNU Emacs editor
1111 + GNU Emacs is the extensible self-documenting text editor.
1113 +Package: emacs@MAJOR_VERSION@-nox
1117 +Depends: emacs@MAJOR_VERSION@-bin-common (= ${Source-Version}), ${shlibs:Depends}
1118 +Provides: emacs@MAJOR_VERSION@, editor, emacsen, info-browser, mail-reader, news-reader, www-browser
1119 +Conflicts: emacs@MAJOR_VERSION@, w3-el
1120 +Replaces: emacs@MAJOR_VERSION@
1121 +Description: The GNU Emacs editor (without X support)
1122 + GNU Emacs is the extensible self-documenting text editor.
1123 + This package contains a version of Emacs compiled without support for X.
1125 +Package: emacs@MAJOR_VERSION@-bin-common
1129 +Depends: emacs@MAJOR_VERSION@-common (= ${Source-Version}), ${shlibs:Depends}
1130 +Replaces: emacs21 (<< 21.2-4), emacs21-common (<< 21.3+1-4)
1131 +Description: The GNU Emacs editor's shared, architecture dependent files
1132 + GNU Emacs is the extensible self-documenting text editor.
1133 + This package contains the architecture dependent infrastructure
1134 + that's shared by emacs@MAJOR_VERSION@ and emacs@MAJOR_VERSION@-nox.
1136 +Package: emacs@MAJOR_VERSION@-common
1140 +Depends: emacsen-common (>= 1.4.10), dpkg (>= 1.9.0), ${shlibs:Depends}
1141 +Suggests: emacs@MAJOR_VERSION@-el
1142 +Conflicts: emacs@MAJOR_VERSION@-el (<< ${Source-Version}), w3-el
1143 +Replaces: emacs21 (<< 21.2-4)
1144 +Description: The GNU Emacs editor's shared, architecture independent infrastructure
1145 + GNU Emacs is the extensible self-documenting text editor.
1146 + This package contains the architecture independent infrastructure
1147 + that's shared by emacs@MAJOR_VERSION@ and emacs@MAJOR_VERSION@-nox.
1149 +Package: emacs@MAJOR_VERSION@-el
1153 +Depends: emacs@MAJOR_VERSION@-common (= ${Source-Version})
1154 +Replaces: emacs@MAJOR_VERSION@ (<< 21.2-4)
1155 +Description: GNU Emacs LISP (.el) files
1156 + GNU Emacs is the extensible self-documenting text editor.
1157 + This package contains the elisp sources for the convenience of users,
1158 + saving space in the main package for small systems.
1159 --- emacs-21.3.orig/debian/emacs-common.postinst
1160 +++ emacs-21.3/debian/emacs-common.postinst
1164 +MAJOR=@MAJOR_VERSION@
1165 +MINOR=@MINOR_VERSION@
1166 +FULL=@FULL_VERSION@
1167 +INFOFILES="@INFOFILES@"
1171 +# Fix from Manoj so we don't clean up more than we should.
1172 +if [ -f /usr/share/info/gnus.gz ]; then
1173 + CRUFT_INFOFILES="ccmode cl dired-x ediff emacs forms info mh-e reftex sc \
1176 + CRUFT_INFOFILES="ccmode cl dired-x ediff emacs forms gnus info message \
1177 + mh-e reftex sc vip viper widget"
1180 +# We have to clean these up because the old package didn't. The info
1181 +# files were being removed in the postinst, not the prerm, and so
1182 +# install-info wasn't doing anything because the files weren't there..
1183 +for file in ${CRUFT_INFOFILES}
1185 + install-info --quiet --remove-exactly ${file} || true
1188 +for file in ${INFOFILES}
1190 + install-info --quiet --section Emacs Emacs \
1191 + /usr/share/info/emacs-${MAJOR}/${file}.gz || true
1194 +# Create the site-lisp dir for this flavor if we're allowed
1196 +#### Begin Bug fix hack for old emacs20 package brain damage.
1198 +# We have to handle /usr/local/share and /usr/local/share/emacs here
1199 +# because emacs20 used to contain /usr/local/share :< . Normally
1200 +# these dirs should have been handled exclusively by emacsen-common.
1202 +parentdir=/usr/local
1205 +if [ -d ${parentdir} ]
1207 + if mkdir ${parentdir}/${newdir} 2>/dev/null
1209 + chown root:staff ${parentdir}/${newdir}
1210 + chmod 2775 ${parentdir}/${newdir}
1214 +parentdir=/usr/local/share
1217 +if [ -d ${parentdir} ]
1219 + if mkdir ${parentdir}/${newdir} 2>/dev/null
1221 + chown root:staff ${parentdir}/${newdir}
1222 + chmod 2775 ${parentdir}/${newdir}
1226 +parentdir=/usr/local/share/emacs
1229 +if [ -d ${parentdir} ]
1231 + if mkdir ${parentdir}/${newdir} 2>/dev/null
1233 + chown root:staff ${parentdir}/${newdir}
1234 + chmod 2775 ${parentdir}/${newdir}
1238 +#### End Bug fix hack for old emacs20 package brain damage.
1241 +parentdir=/usr/local/share/emacs
1244 +if [ -d ${parentdir} ]
1246 + if mkdir ${parentdir}/${newdir} 2>/dev/null
1248 + chown root:staff ${parentdir}/${newdir}
1249 + chmod 2775 ${parentdir}/${newdir}
1253 +parentdir=/usr/local/share/emacs/${FULL}
1256 +if [ -d ${parentdir} ]
1258 + if mkdir ${parentdir}/${newdir} 2>/dev/null
1260 + chown root:staff ${parentdir}/${newdir}
1261 + chmod 2775 ${parentdir}/${newdir}
1265 +# emacsen-common/emacs-install used to be here.
1268 --- emacs-21.3.orig/debian/control
1269 +++ emacs-21.3/debian/control
1274 +Maintainer: Rob Browning <rlb@defaultvalue.org>
1275 +Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libungif4-dev, libtiff4-dev, xaw3dg-dev, libpng3-dev, libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), dpatch (>= 1.23)
1276 +Standards-Version: 3.6.1
1282 +Depends: emacs21-bin-common (= ${Source-Version}), ${shlibs:Depends}
1283 +Provides: emacsen, editor, info-browser, mail-reader, news-reader, www-browser
1284 +Conflicts: emacs21-nox, w3-el
1285 +Replaces: emacs21-nox
1286 +Description: The GNU Emacs editor
1287 + GNU Emacs is the extensible self-documenting text editor.
1289 +Package: emacs21-nox
1293 +Depends: emacs21-bin-common (= ${Source-Version}), ${shlibs:Depends}
1294 +Provides: emacs21, editor, emacsen, info-browser, mail-reader, news-reader, www-browser
1295 +Conflicts: emacs21, w3-el
1297 +Description: The GNU Emacs editor (without X support)
1298 + GNU Emacs is the extensible self-documenting text editor.
1299 + This package contains a version of Emacs compiled without support for X.
1301 +Package: emacs21-bin-common
1305 +Depends: emacs21-common (= ${Source-Version}), ${shlibs:Depends}
1306 +Replaces: emacs21 (<< 21.2-4), emacs21-common (<< 21.3+1-4)
1307 +Description: The GNU Emacs editor's shared, architecture dependent files
1308 + GNU Emacs is the extensible self-documenting text editor.
1309 + This package contains the architecture dependent infrastructure
1310 + that's shared by emacs21 and emacs21-nox.
1312 +Package: emacs21-common
1316 +Depends: emacsen-common (>= 1.4.10), dpkg (>= 1.9.0), ${shlibs:Depends}
1317 +Suggests: emacs21-el
1318 +Conflicts: emacs21-el (<< ${Source-Version}), w3-el
1319 +Replaces: emacs21 (<< 21.2-4)
1320 +Description: The GNU Emacs editor's shared, architecture independent infrastructure
1321 + GNU Emacs is the extensible self-documenting text editor.
1322 + This package contains the architecture independent infrastructure
1323 + that's shared by emacs21 and emacs21-nox.
1325 +Package: emacs21-el
1329 +Depends: emacs21-common (= ${Source-Version})
1330 +Replaces: emacs21 (<< 21.2-4)
1331 +Description: GNU Emacs LISP (.el) files
1332 + GNU Emacs is the extensible self-documenting text editor.
1333 + This package contains the elisp sources for the convenience of users,
1334 + saving space in the main package for small systems.
1335 --- emacs-21.3.orig/debian/emacs-bin-common.postinst
1336 +++ emacs-21.3/debian/emacs-bin-common.postinst
1340 +MAJOR=@MAJOR_VERSION@
1341 +MINOR=@MINOR_VERSION@
1342 +FULL=@FULL_VERSION@
1343 +INFOFILES="@INFOFILES@"
1344 +ALTERNATIVES="@ALTERNATIVES@"
1348 +# update-alternatives on things that collide with xemacs, other editors
1349 +for i in ctags etags emacsclient
1351 + update-alternatives \
1352 + --install /usr/bin/$i $i /usr/bin/$i.emacs${MAJOR} ${PRIORITY} \
1353 + --slave /usr/share/man/man1/$i.1.gz $i.1.gz \
1354 + /usr/share/man/man1/$i.1emacs${MAJOR}.gz
1357 +for i in ${ALTERNATIVES}
1359 + test $i = ctags && continue
1360 + test $i = etags && continue
1361 + test $i = emacs && continue
1362 + test $i = emacsclient && continue
1363 + update-alternatives --install /usr/bin/$i $i /usr/bin/$i.emacs${MAJOR} \
1368 --- emacs-21.3.orig/debian/emacs-bin-common.prerm
1369 +++ emacs-21.3/debian/emacs-bin-common.prerm
1375 +MAJOR=@MAJOR_VERSION@
1376 +MINOR=@MINOR_VERSION@
1377 +FULL=@FULL_VERSION@
1378 +INFOFILES="@INFOFILES@"
1379 +ALTERNATIVES="@ALTERNATIVES@"
1381 +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/@PKG_NAME@ ]
1383 + rm -f /usr/doc/@PKG_NAME@
1386 +# update-alternatives on things that collide with xemacs, other editors
1387 +if [ "$1" != "upgrade" ]
1389 + for i in `echo ${ALTERNATIVES} | grep -v emacs`
1391 + update-alternatives --remove $i /usr/bin/$i.emacs${MAJOR}
1396 --- emacs-21.3.orig/debian/emacsclient-plus
1397 +++ emacs-21.3/debian/emacsclient-plus
1401 +# If there is an Emacs server, runs emacsclient.
1402 +# Otherwise, launches Emacs.
1403 +# Only for systems with Berkeley sockets (like Debian GNU/Linux).
1405 +$real_emacsclient = "/usr/bin/emacsclient";
1406 +$socket_prefix = "esrv";
1409 +$socket_dir = "/tmp/";
1410 +$hostname = `hostname`;
1413 +if (-S "$socket_dir$socket_prefix$id-$hostname") {
1414 + exec ("$real_emacsclient " . join (" ", @ARGV));
1415 + die "Cannot run $real_emacsclient: $!";
1418 + if ($ENV{'DISPLAY'}) {
1420 + # Wait the server (Emacs is slow)
1422 + exec ("$real_emacsclient " . join (" ", @ARGV));
1423 + die "Cannot run $real_emacsclient: $!";
1426 + exec ("emacs " . join (" ", @ARGV));
1427 + die "Cannot run emacs: $!";
1430 --- emacs-21.3.orig/debian/patches/00list
1431 +++ emacs-21.3/debian/patches/00list
1439 +bzero-and-have-stdlib
1440 +detect-coding-iso2022
1442 +version-mention-debian
1444 +battery-acpi-support
1447 +emacsclient-alternate-editor
1448 +fix-x-vs-no-x-diffs
1449 +fix-batch-mode-signal-handling
1450 +fix-insecure-permissions-on-restore
1452 --- emacs-21.3.orig/debian/patches/arch-hppa.dpatch
1453 +++ emacs-21.3/debian/patches/arch-hppa.dpatch
1456 +## 500-arch-hppa.dpatch by Rob Browning <rlb@defaultvalue.org>
1458 +## DP: ** Support for the hppa architecture has been added.
1459 +## DP: Status: appears to be incorporated upstream
1461 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1462 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
1464 +if [ $# -ne 1 ]; then
1465 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1469 + -patch) patch $patch_opts -p1 < $0;;
1470 + -unpatch) patch $patch_opts -p1 -R < $0;;
1472 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1478 +--- emacs21-21.2.orig/configure.in
1479 ++++ emacs21-21.2/configure.in
1480 +@@ -552,6 +552,9 @@
1481 + hppa*-*-nextstep* )
1482 + machine=hp800 opsys=nextstep
1484 ++ hppa*-*-linux-gnu* )
1485 ++ machine=hp800 opsys=gnu-linux
1489 + orion-orion-bsd* )
1490 +--- emacs21-21.2.orig/src/m/hp800.h
1491 ++++ emacs21-21.2/src/m/hp800.h
1493 + #define bcmp memcmp
1497 ++#if defined(__hpux) || defined(__linux__)
1498 + /* Now define a symbol for the cpu type, if your compiler
1499 + does not define it automatically:
1500 + Ones defined so far include vax, m68000, ns16000, pyramid,
1502 + # define hp9000s800
1506 ++/* Data type of load average, as read out of kmem. */
1508 ++#define LOAD_AVE_TYPE long
1510 ++/* Convert that into an integer that is 100 for a load average of 1.0 */
1512 ++#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
1514 + /* Data type of load average, as read out of kmem. */
1516 + #define LOAD_AVE_TYPE double
1517 +@@ -101,7 +110,7 @@
1518 + /* Convert that into an integer that is 100 for a load average of 1.0 */
1520 + #define LOAD_AVE_CVT(x) ((int) (x * 100.0))
1524 + /* Define CANNOT_DUMP on machines where unexec does not work.
1525 + Then the function dump-emacs will not be defined
1526 +@@ -116,6 +125,7 @@
1527 + Otherwise Emacs assumes that text space precedes data space,
1531 + #define VIRT_ADDR_VARIES
1533 + /* Define C_ALLOCA if this machine does not support a true alloca
1534 +@@ -134,6 +144,9 @@
1536 + #define DATA_START 0x40000000
1537 + #define TEXT_START 0x00000000
1539 ++#define HAVE_ALLOCA
1542 + #define STACK_DIRECTION 1
1544 +@@ -147,6 +160,7 @@
1545 + /* This machine requires completely different unexec code
1546 + which lives in a separate file. Specify the file name. */
1549 + #define UNEXEC unexhp9k800.o
1551 + #define LIBS_MACHINE
1552 +@@ -179,5 +193,5 @@
1554 + #define index strchr
1555 + #define rindex strrchr
1557 +-#endif /* __hpux */
1560 --- emacs-21.3.orig/debian/patches/CAN-2005-0100.dpatch
1561 +++ emacs-21.3/debian/patches/CAN-2005-0100.dpatch
1564 +## CAN-2005-0100.dpatch by <martin.pitt@ubuntu.com>
1566 +## All lines beginning with `## DP:' are a description of the patch.
1567 +## DP: Fix format string vulnerability in movemal (CAN-2005-0100).
1569 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1570 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
1572 +if [ $# -ne 1 ]; then
1573 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1577 + -patch) patch $patch_opts -p1 < $0;;
1578 + -unpatch) patch $patch_opts -p1 -R < $0;;
1580 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1586 +diff -urNad emacs-21.3/lib-src/movemail.c /tmp/dpep.yMvw2I/emacs-21.3/lib-src/movemail.c
1587 +--- emacs-21.3/lib-src/movemail.c 2005-02-04 10:07:21.636219680 +0000
1588 ++++ /tmp/dpep.yMvw2I/emacs-21.3/lib-src/movemail.c 2005-02-04 10:08:17.325885034 +0000
1589 +@@ -786,7 +786,7 @@
1590 + mbx_delimit_begin (mbf);
1591 + if (pop_retr (server, i, mbf) != OK)
1593 +- error (Errmsg, 0, 0);
1594 ++ error ("%s", Errmsg, 0);
1598 --- emacs-21.3.orig/debian/patches/misc-unseparated.dpatch
1599 +++ emacs-21.3/debian/patches/misc-unseparated.dpatch
1602 +## 400-misc-unseparated.dpatch by Rob Browning <rlb@defaultvalue.org>
1604 +## DP: ** Some documentation references to /usr/local/ have been changed to /usr.
1606 +## DP: ** Emacs runs debian-startup
1607 +## DP: Emacs runs debian-startup during the startup process unless
1608 +## DP: site-run-file is false.
1610 +## DP: ** The default for message-sendmail-f-is-evil has been changed to t.
1611 +## DP: This is correct for Debian systems where we know the MTA should be
1614 +## DP: ** mail-from-style changed from 'angles to 'system-default by default.
1616 +## DP: ** debian-emacs-flavor is a global variable bound to 'emacs21.
1619 +## DP: ** Info-default-directory-list includes /usr/share/info/emacs-MAJOR
1621 +## DP: Info-default-directory-list was modified to reflect the install
1622 +## DP: location of the info files. This location allows multiple emacsen to
1623 +## DP: coexist on the same Debian system.
1625 +## DP: ** The build process was modified to accommodate Debian packaging.
1627 +## DP: Emacs has to be able to install into a directory that will
1628 +## DP: not be the eventual run directory without embedding the install
1629 +## DP: directory in any of the resulting files.
1631 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1632 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
1634 +if [ $# -ne 1 ]; then
1635 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1639 + -patch) patch $patch_opts -p1 < $0;;
1640 + -unpatch) patch $patch_opts -p1 -R < $0;;
1642 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1648 +diff -urNad /home/rlb/deb/emacs21/trunk/Makefile.in trunk/Makefile.in
1649 +--- /home/rlb/deb/emacs21/trunk/Makefile.in 2003-09-11 01:16:07.000000000 -0500
1650 ++++ trunk/Makefile.in 2003-09-11 01:16:53.000000000 -0500
1651 +@@ -474,11 +474,16 @@
1652 + $(srcdir)/mkinstalldirs ${datadir}; \
1653 + chmod a+r ${datadir};\
1655 ++ test "${debepkgdir}"
1656 + $(srcdir)/mkinstalldirs ${COPYDESTS} ${infodir} ${man1dir} \
1657 + ${bindir} ${docdir} ${libexecdir} \
1658 + ${datadir}/emacs/site-lisp \
1659 + ${datadir}/emacs/${version}/site-lisp \
1660 +- `echo ${locallisppath} | sed 's/:/ /g'`
1661 ++ `echo ${debepkgdir}${locallisppath} | sed 's|:| ${debepkgdir}|g'`
1663 ++# debepkgdir (above) is set in debian/rules
1665 ++# `echo debian/tmp-emacs${locallisppath} | sed 's/:/ debian\/tmp-emacs/g'`
1667 + ### Delete all the installed files that the `install' target would
1668 + ### create (but not the noninstalled files such as `make all' would
1669 +diff -urNad /home/rlb/deb/emacs21/trunk/etc/NEWS trunk/etc/NEWS
1670 +--- /home/rlb/deb/emacs21/trunk/etc/NEWS 2003-09-11 01:16:07.000000000 -0500
1671 ++++ trunk/etc/NEWS 2003-09-11 01:16:53.000000000 -0500
1673 + For older news, see the file ONEWS
1676 ++* Debian specific changes to Emacs
1678 ++Please see /usr/share/doc/emacs21/README.Debian.gz.
1681 + * Installation changes in Emacs 21.3
1683 + ** Support for GNU/Linux on little-endian MIPS and on IBM S390 has
1684 +diff -urNad /home/rlb/deb/emacs21/trunk/etc/emacs.1 trunk/etc/emacs.1
1685 +--- /home/rlb/deb/emacs21/trunk/etc/emacs.1 2003-09-11 01:16:07.000000000 -0500
1686 ++++ trunk/etc/emacs.1 2003-09-11 01:16:53.000000000 -0500
1687 +@@ -169,7 +169,7 @@
1688 + window in reverse video.
1691 +-Use the "kitchen sink" bitmap icon when iconifying the
1692 ++Use the Emacs icon when iconifying the
1696 +@@ -221,7 +221,7 @@
1698 + for more information.
1699 + The width and height are specified in characters; the default is 80 by
1705 +@@ -411,29 +411,29 @@
1706 + manual is also included in the Emacs source distribution.
1709 +-/usr/local/info - files for the Info documentation browser
1710 ++/usr/info - files for the Info documentation browser
1711 + (a subsystem of Emacs) to refer to. Currently not much of Unix
1712 + is documented here, but the complete text of the Emacs reference
1713 + manual is included in a convenient tree structured form.
1715 +-/usr/local/share/emacs/$VERSION/src - C source files and object files
1716 ++/usr/share/emacs/$VERSION/src - C source files and object files
1718 +-/usr/local/share/emacs/$VERSION/lisp - Lisp source files and compiled files
1719 ++/usr/share/emacs/$VERSION/lisp - Lisp source files and compiled files
1720 + that define most editing commands. Some are preloaded;
1721 + others are autoloaded from this directory when used.
1723 +-/usr/local/share/emacs/$VERSION/etc - various programs that are used with
1724 ++/usr/share/emacs/$VERSION/etc - various programs that are used with
1725 + GNU Emacs, and some files of information.
1727 +-/usr/local/share/emacs/$VERSION/etc/DOC.* - contains the documentation
1728 ++/usr/share/emacs/$VERSION/etc/DOC.* - contains the documentation
1729 + strings for the Lisp primitives and preloaded Lisp functions
1730 + of GNU Emacs. They are stored here to reduce the size of
1733 +-/usr/local/share/emacs/$VERSION/etc/OTHER.EMACSES discusses GNU Emacs
1734 ++/usr/share/emacs/$VERSION/etc/OTHER.EMACSES discusses GNU Emacs
1735 + vs. other versions of Emacs.
1737 +-/usr/local/share/emacs/$VERSION/etc/SERVICE lists people offering
1738 ++/usr/share/emacs/$VERSION/etc/SERVICE lists people offering
1739 + various services to assist users of GNU Emacs, including education,
1740 + troubleshooting, porting and customization.
1742 +@@ -441,7 +441,7 @@
1743 + programs in the Emacs Lisp extension language, which has not yet been fully
1746 +-/usr/local/com/emacs/lock - holds lock files that are made for all
1747 ++/usr/com/emacs/lock - holds lock files that are made for all
1748 + files being modified in Emacs, to prevent simultaneous modification
1749 + of one file by two users.
1751 +@@ -468,7 +468,7 @@
1752 + Send requests to be added to mailing lists to the special list
1753 + info-gnu-emacs-request@prep.ai.mit.edu (or the corresponding UUCP
1754 + address). For more information about Emacs mailing lists, see the
1755 +-file /usr/local/emacs/etc/MAILINGLISTS. Bugs tend actually to be
1756 ++file /usr/emacs/etc/MAILINGLISTS. Bugs tend actually to be
1757 + fixed if they can be isolated, so it is in your interest to report
1758 + them in such a way that they can be easily reproduced.
1760 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/gnus/message.el trunk/lisp/gnus/message.el
1761 +--- /home/rlb/deb/emacs21/trunk/lisp/gnus/message.el 2003-09-11 01:16:07.000000000 -0500
1762 ++++ trunk/lisp/gnus/message.el 2003-09-11 01:16:53.000000000 -0500
1763 +@@ -402,9 +402,14 @@
1767 +-(defcustom message-sendmail-f-is-evil nil
1768 +- "*Non-nil means don't add \"-f username\" to the sendmail command line.
1769 +-Doing so would be even more evil than leaving it out."
1770 ++;; message-sendmail-f-is-evil is nil here in the upstream source, but
1771 ++;; sendmail works right under Debian Linux, so we want t. [was
1772 ++;; orignally reported for emacs 19 as debian#7051]
1773 ++(defcustom message-sendmail-f-is-evil t
1774 ++ "*Non-nil means don't add \"-f username\" to the sendmail command
1775 ++line, because adding it would be more evil than leaving it out. Under
1776 ++Debian/GNU/Linux, sendmail works right, so it should be safe for this
1777 ++to be set to true."
1778 + :group 'message-sending
1781 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/mail/sendmail.el trunk/lisp/mail/sendmail.el
1782 +--- /home/rlb/deb/emacs21/trunk/lisp/mail/sendmail.el 2003-09-11 01:16:07.000000000 -0500
1783 ++++ trunk/lisp/mail/sendmail.el 2003-09-11 01:16:53.000000000 -0500
1788 +-(defcustom mail-from-style 'angles "\
1789 ++(defcustom mail-from-style 'system-default "\
1790 + *Specifies how \"From:\" fields look.
1792 + If `nil', they contain just the return address like:
1793 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/site-init.el trunk/lisp/site-init.el
1794 +--- /home/rlb/deb/emacs21/trunk/lisp/site-init.el 1969-12-31 18:00:00.000000000 -0600
1795 ++++ trunk/lisp/site-init.el 2003-09-11 01:16:53.000000000 -0500
1797 ++(setq Info-default-directory-list
1798 ++ ;; the command line info doesn't seem to need this, but emacs does.
1799 ++ (append Info-default-directory-list '("/usr/share/info/emacs-21/")))
1800 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/startup.el trunk/lisp/startup.el
1801 +--- /home/rlb/deb/emacs21/trunk/lisp/startup.el 2003-09-11 01:16:07.000000000 -0500
1802 ++++ trunk/lisp/startup.el 2003-09-11 01:16:53.000000000 -0500
1803 +@@ -339,6 +339,10 @@
1805 + (defvar normal-top-level-add-subdirs-inode-list nil)
1807 ++(defconst debian-emacs-flavor 'emacs21
1808 ++ "A symbol representing the particular debian flavor of emacs running.
1809 ++Something like 'emacs20, 'xemacs20, etc.")
1811 + (defun normal-top-level-add-subdirs-to-load-path ()
1812 + "Add all subdirectories of current directory to `load-path'.
1813 + More precisely, this uses only the subdirectories whose names
1814 +@@ -848,8 +852,18 @@
1815 + ;; Run the site-start library if it exists. The point of this file is
1816 + ;; that it is run before .emacs. There is no point in doing this after
1817 + ;; .emacs; that is useless.
1818 +- (if site-run-file
1819 +- (load site-run-file t t))
1820 ++ ;; (if site-run-file
1821 ++ ;; (load site-run-file t t))
1823 ++ ;; Debian version of site-start.
1824 ++ (if site-run-file
1826 ++ ;; Load all the debian package snippets.
1827 ++ ;; It's in here because we want -q to kill it too.
1828 ++ (if (load "debian-startup" t t nil)
1829 ++ (debian-startup debian-emacs-flavor))
1830 ++ ;; Now the normal site file...
1831 ++ (load site-run-file t t nil)))
1833 + ;; Sites should not disable this. Only individuals should disable
1834 + ;; the startup message.
1835 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/vc-hooks.el trunk/lisp/vc-hooks.el
1836 +--- /home/rlb/deb/emacs21/trunk/lisp/vc-hooks.el 2003-09-11 01:16:07.000000000 -0500
1837 ++++ trunk/lisp/vc-hooks.el 2003-09-11 01:16:53.000000000 -0500
1841 + (defcustom vc-path
1842 +- (if (file-directory-p "/usr/sccs")
1844 ++ (if (file-directory-p "/usr/lib/cssc")
1845 ++ '("/usr/lib/cssc")
1847 + "*List of extra directories to search for version control commands."
1848 + :type '(repeat directory)
1849 --- emacs-21.3.orig/debian/patches/fix-insecure-permissions-on-restore.dpatch
1850 +++ emacs-21.3/debian/patches/fix-insecure-permissions-on-restore.dpatch
1853 +## 500-version-mention-debian.dpatch by Rob Browning <rlb@defaultvalue.org>
1855 +## DP: ** (version) has been modified to indicate Debian modifications.
1858 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1859 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
1861 +if [ $# -ne 1 ]; then
1862 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1866 + -patch) patch $patch_opts -p1 < $0;;
1867 + -unpatch) patch $patch_opts -p1 -R < $0;;
1869 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1875 +diff -Narud emacs-21.3.orig/src/fileio.c emacs-21.3/src/fileio.c
1876 +--- emacs-21.3.orig/src/fileio.c 2003-02-04 11:52:40.000000000 +0100
1877 ++++ emacs-21.3/src/fileio.c 2004-10-10 07:14:11.891375352 +0200
1878 +@@ -5438,6 +5438,8 @@
1879 + && stat (XSTRING (current_buffer->filename)->data, &st) >= 0)
1880 + /* But make sure we can overwrite it later! */
1881 + auto_save_mode_bits = st.st_mode | 0600;
1882 ++ else if (! NILP (current_buffer->filename))
1883 ++ auto_save_mode_bits = XINT (Ffile_modes (current_buffer->filename)) | 0600;
1885 + auto_save_mode_bits = 0666;
1887 --- emacs-21.3.orig/debian/patches/fix-batch-mode-signal-handling.dpatch
1888 +++ emacs-21.3/debian/patches/fix-batch-mode-signal-handling.dpatch
1891 +## fix-batch-mode-signal-handling.dpatch by <rlb@defaultvalue.org>
1893 +## DP: ** A problem with emacs non-interactive signal handling has been fixed.
1894 +## DP: An upstream patch from 2003-06-21 was backported to fix Bug#253887.
1895 +## DP: Under certain conditions running "emacs --batch ... < /dev/null" would
1896 +## DP: trigger a process exit via SIGIO or SIGHUP. This has been fixed.
1897 +## DP: Status: patch backported from upstream.
1899 +if [ $# -lt 1 ]; then
1900 + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
1904 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1905 +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
1908 + -patch) patch -p1 ${patch_opts} < $0;;
1909 + -unpatch) patch -R -p1 ${patch_opts} < $0;;
1911 + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
1918 +diff -urNad /home/rlb/deb/emacs/trunk-21/src/keyboard.c trunk-21/src/keyboard.c
1919 +--- /home/rlb/deb/emacs/trunk-21/src/keyboard.c 2003-09-09 17:26:14.000000000 -0500
1920 ++++ trunk-21/src/keyboard.c 2004-07-18 17:10:35.000000000 -0500
1921 +@@ -6186,7 +6186,12 @@
1922 + /* ??? Is it really right to send the signal just to this process
1923 + rather than to the whole process group?
1924 + Perhaps on systems with FIONREAD Emacs is alone in its group. */
1925 +- kill (getpid (), SIGHUP);
1927 ++ if (! noninteractive)
1928 ++ kill (getpid (), SIGHUP);
1932 + if (n_to_read == 0)
1934 + if (n_to_read > sizeof cbuf)
1935 +diff -urNad /home/rlb/deb/emacs/trunk-21/src/process.c trunk-21/src/process.c
1936 +--- /home/rlb/deb/emacs/trunk-21/src/process.c 2003-09-09 17:28:35.000000000 -0500
1937 ++++ trunk-21/src/process.c 2004-07-18 17:11:21.000000000 -0500
1938 +@@ -2734,7 +2734,7 @@
1939 + but select says there is input. */
1941 + if (XINT (read_kbd) && interrupt_input
1942 +- && keyboard_bit_set (&Available))
1943 ++ && keyboard_bit_set (&Available) && ! noninteractive)
1944 + kill (getpid (), SIGIO);
1947 --- emacs-21.3.orig/debian/patches/browse-url.dpatch
1948 +++ emacs-21.3/debian/patches/browse-url.dpatch
1951 +## 500-browse-url.dpatch by Rob Browning <rlb@defaultvalue.org>
1953 +## DP: ** Added new browse-url.el code.
1954 +## DP: Fixes support for mozilla, adds support for galeon, and defaults to
1955 +## DP: free browsers when available, rather than just trying netscape.
1957 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1958 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
1960 +if [ $# -ne 1 ]; then
1961 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1965 + -patch) patch $patch_opts -p1 < $0;;
1966 + -unpatch) patch $patch_opts -p1 -R < $0;;
1968 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1974 +--- emacs21-21.2.orig/lisp/net/browse-url.el
1975 ++++ emacs21-21.2/lisp/net/browse-url.el
1977 + ;; Free Software Foundation, Inc.
1979 + ;; Author: Denis Howe <dbh@doc.ic.ac.uk>
1980 +-;; Maintainer: Dave Love <fx@gnu.org>
1981 ++;; Maintainer: FSF
1982 + ;; Created: 03 Apr 1995
1983 + ;; Keywords: hypertext, hypermedia, mouse
1986 + ;; control but which window DO you want to control and how do you
1987 + ;; discover its id?
1989 +-;; If using XMosaic before version 2.5, check the definition of
1990 +-;; browse-url-usr1-signal below.
1991 +-;; <URL:http://www.ncsa.uiuc.edu/SDG/Software/XMosaic/remote-control.html>
1993 +-;; XMosaic version 2.5 introduced Common Client Interface allowing you
1994 +-;; to control mosaic through Unix sockets.
1995 +-;; <URL:http://www.ncsa.uiuc.edu/SDG/Software/XMosaic/CCI/cci-spec.html>
1997 + ;; William M. Perry's excellent "w3" WWW browser for
1998 + ;; Emacs <URL:ftp://cs.indiana.edu/pub/elisp/w3/>
1999 + ;; has a function w3-follow-url-at-point, but that
2001 + ;; Python see <url:http://www.python.org/>. Grail support in
2002 + ;; browse-url.el written by Barry Warsaw <bwarsaw@python.org>.
2004 +-;; MMM is a semi-free WWW browser implemented in Objective Caml, an
2005 +-;; interesting impure functional programming language. See
2006 +-;; <URL:http://pauillac.inria.fr/%7Erouaix/mmm/>.
2008 + ;; Lynx is now distributed by the FSF. See also
2009 + ;; <URL:http://lynx.browser.org/>.
2011 +@@ -226,8 +214,10 @@
2012 + (eval-when-compile (require 'thingatpt)
2015 ++ (require 'executable)
2016 + (require 'w3-auto nil t))
2019 + (defgroup browse-url nil
2020 + "Use a web browser to look at a URL."
2021 + :prefix "browse-url-"
2022 +@@ -238,7 +228,8 @@
2023 + (defcustom browse-url-browser-function
2024 + (if (memq system-type '(windows-nt ms-dos))
2025 + 'browse-url-default-windows-browser
2026 +- 'browse-url-netscape)
2027 ++ 'browse-url-default-browser)
2029 + "*Function to display the current buffer in a WWW browser.
2030 + This is used by the `browse-url-at-point', `browse-url-at-mouse', and
2031 + `browse-url-of-file' commands.
2032 +@@ -252,6 +243,8 @@
2033 + (function-item :tag "Emacs W3" :value browse-url-w3)
2034 + (function-item :tag "W3 in another Emacs via `gnudoit'"
2035 + :value browse-url-w3-gnudoit)
2036 ++ (function-item :tag "Mozilla" :value browse-url-mozilla)
2037 ++ (function-item :tag "Galeon" :value browse-url-galeon)
2038 + (function-item :tag "Netscape" :value browse-url-netscape)
2039 + (function-item :tag "Mosaic" :value browse-url-mosaic)
2040 + (function-item :tag "Mosaic using CCI" :value browse-url-cci)
2041 +@@ -269,6 +262,8 @@
2042 + :value browse-url-default-windows-browser)
2043 + (function-item :tag "GNOME invoking Mozilla"
2044 + :value browse-url-gnome-moz)
2045 ++ (function-item :tag "Default browser"
2046 ++ :value browse-url-default-browser)
2047 + (function :tag "Your own function")
2048 + (alist :tag "Regexp/function association list"
2049 + :key-type regexp :value-type function))
2050 +@@ -300,6 +295,47 @@
2051 + :group 'browse-url)
2054 ++(defcustom browse-url-browser-display nil
2055 ++ "*The X display for running the browser, if not same as Emacs'."
2056 ++ :type '(choice string (const :tag "Default" nil))
2057 ++ :group 'browse-url)
2059 ++(defcustom browse-url-mozilla-program "mozilla"
2060 ++ "The name by which to invoke Mozilla."
2062 ++ :group 'browse-url)
2064 ++(defcustom browse-url-mozilla-arguments nil
2065 ++ "A list of strings to pass to Mozilla as arguments."
2066 ++ :type '(repeat (string :tag "Argument"))
2067 ++ :group 'browse-url)
2069 ++(defcustom browse-url-mozilla-startup-arguments browse-url-mozilla-arguments
2070 ++ "A list of strings to pass to Mozilla when it starts up.
2071 ++Defaults to the value of `browse-url-mozilla-arguments' at the time
2072 ++`browse-url' is loaded."
2073 ++ :type '(repeat (string :tag "Argument"))
2074 ++ :group 'browse-url)
2077 ++(defcustom browse-url-galeon-program "galeon"
2078 ++ "The name by which to invoke Galeon."
2080 ++ :group 'browse-url)
2082 ++(defcustom browse-url-galeon-arguments nil
2083 ++ "A list of strings to pass to Galeon as arguments."
2084 ++ :type '(repeat (string :tag "Argument"))
2085 ++ :group 'browse-url)
2087 ++(defcustom browse-url-galeon-startup-arguments browse-url-galeon-arguments
2088 ++ "A list of strings to pass to Galeon when it starts up.
2089 ++Defaults to the value of `browse-url-galeon-arguments' at the time
2090 ++`browse-url' is loaded."
2091 ++ :type '(repeat (string :tag "Argument"))
2092 ++ :group 'browse-url)
2095 + (defcustom browse-url-new-window-flag nil
2096 + "*If non-nil, always open a new browser window with appropriate browsers.
2097 + Passing an interactive argument to \\[browse-url], or specific browser
2098 +@@ -308,12 +344,6 @@
2100 + :group 'browse-url)
2103 +-(defcustom browse-url-netscape-display nil
2104 +- "*The X display for running Netscape, if not same as Emacs'."
2105 +- :type '(choice string (const :tag "Default" nil))
2106 +- :group 'browse-url)
2108 + (defcustom browse-url-mosaic-program "xmosaic"
2109 + "The name by which to invoke Mosaic (or mMosaic)."
2111 +@@ -681,11 +711,11 @@
2112 + ;; --- Netscape ---
2114 + (defun browse-url-process-environment ()
2115 +- "Set DISPLAY in the environment to the X display Netscape is running on.
2116 +-This is either the value of variable `browse-url-netscape-display' if
2117 ++ "Set DISPLAY in the environment to the X display the browser will use.
2118 ++This is either the value of variable `browse-url-browser-display' if
2119 + non-nil, or the same display as Emacs if different from the current
2120 + environment, otherwise just use the current environment."
2121 +- (let ((display (or browse-url-netscape-display (browse-url-emacs-display))))
2122 ++ (let ((display (or browse-url-browser-display (browse-url-emacs-display))))
2124 + (cons (concat "DISPLAY=" display) process-environment)
2125 + process-environment)))
2126 +@@ -701,6 +731,35 @@
2130 ++(defun browse-url-default-browser (url &rest args)
2131 ++ "Find a suitable browser and ask it to load URL.
2132 ++Default to the URL around or before point.
2134 ++When called interactively, if variable `browse-url-new-window-flag' is
2135 ++non-nil, load the document in a new window, if possible, otherwise use
2136 ++a random existing one. A non-nil interactive prefix argument reverses
2137 ++the effect of `browse-url-new-window-flag'.
2139 ++When called non-interactively, optional second argument NEW-WINDOW is
2140 ++used instead of `browse-url-new-window-flag'.
2142 ++The order attempted is gnome-moz-remote, Mozilla, Galeon, Netscape,
2143 ++Mosaic, IXI Mosaic, Lynx in an xterm, MMM, Konqueror, and then W3."
2146 ++ ((executable-find "gnome-moz-remote") 'browse-url-gnome-moz)
2147 ++ ((executable-find browse-url-mozilla-program) 'browse-url-mozilla)
2148 ++ ((executable-find browse-url-galeon-program) 'browse-url-galeon)
2149 ++ ((executable-find browse-url-kde-program) 'browse-url-kde)
2150 ++ ((executable-find browse-url-netscape-program) 'browse-url-netscape)
2151 ++ ((executable-find browse-url-mosaic-program) 'browse-url-mosaic)
2152 ++ ((executable-find "tellw3b") 'browse-url-iximosaic)
2153 ++ ((executable-find browse-url-xterm-program) 'browse-url-lynx-xterm)
2154 ++ ((executable-find "mmm") 'browse-url-mmm)
2155 ++ (t 'browse-url-w3))
2159 + (defun browse-url-netscape (url &optional new-window)
2160 + "Ask the Netscape WWW browser to load URL.
2161 + Default to the URL around or before point. The strings in variable
2162 +@@ -767,6 +826,50 @@
2163 + (append browse-url-netscape-arguments
2164 + (list "-remote" command)))))
2167 ++(defun browse-url-mozilla (url &optional new-window)
2168 ++ "Ask the Mozilla WWW browser to load URL.
2169 ++Default to the URL around or before point. The strings in variable
2170 ++`browse-url-mozilla-arguments' are also passed to Mozilla.
2172 ++When called interactively, if variable `browse-url-new-window-flag' is
2173 ++non-nil, load the document in a new Mozilla window, otherwise use a
2174 ++random existing one. A non-nil interactive prefix argument reverses
2175 ++the effect of `browse-url-new-window-flag'.
2177 ++When called non-interactively, optional second argument NEW-WINDOW is
2178 ++used instead of `browse-url-new-window-flag'."
2179 ++ (interactive (browse-url-interactive-arg "URL: "))
2180 ++ ;; URL encode any `confusing' characters in the URL. This needs to
2181 ++ ;; include at least commas; presumably also close parens.
2182 ++ (while (string-match "[,)]" url)
2183 ++ (setq url (replace-match
2184 ++ (format "%%%x" (string-to-char (match-string 0 url))) t t url)))
2185 ++ (let* ((process-environment (browse-url-process-environment))
2186 ++ (process (apply 'start-process
2187 ++ (concat "mozilla " url) nil
2188 ++ browse-url-mozilla-program
2190 ++ browse-url-mozilla-arguments
2192 ++ (concat "openurl("
2194 ++ (if new-window ",new-window" "")
2196 ++ (set-process-sentinel process
2197 ++ `(lambda (process change)
2198 ++ (browse-url-mozilla-sentinel process ,url)))))
2200 ++(defun browse-url-mozilla-sentinel (process url)
2201 ++ "Handle a change to the process communicating with Mozilla."
2202 ++ (or (eq (process-exit-status process) 0)
2203 ++ (let* ((process-environment (browse-url-process-environment)))
2204 ++ ;; Mozilla is not running - start it
2205 ++ (message "Starting Mozilla...")
2206 ++ (apply 'start-process (concat "mozilla " url) nil
2207 ++ browse-url-mozilla-program
2208 ++ (append browse-url-mozilla-startup-arguments (list url))))))
2210 + ;; GNOME means of invoking either Mozilla or Netrape.
2212 + (defcustom browse-url-gnome-moz-arguments '()
2213 +@@ -776,6 +880,48 @@
2214 + :group 'browse-url)
2217 ++(defun browse-url-galeon (url &optional new-window)
2218 ++ "Ask the Galeon WWW browser to load URL.
2219 ++Default to the URL around or before point. The strings in variable
2220 ++`browse-url-galeon-arguments' are also passed to Galeon.
2222 ++When called interactively, if variable `browse-url-new-window-flag' is
2223 ++non-nil, load the document in a new Galeon window, otherwise use a
2224 ++random existing one. A non-nil interactive prefix argument reverses
2225 ++the effect of `browse-url-new-window-flag'.
2227 ++When called non-interactively, optional second argument NEW-WINDOW is
2228 ++used instead of `browse-url-new-window-flag'."
2229 ++ (interactive (browse-url-interactive-arg "URL: "))
2230 ++ ;; URL encode any `confusing' characters in the URL. This needs to
2231 ++ ;; include at least commas; presumably also close parens.
2232 ++ (while (string-match "[,)]" url)
2233 ++ (setq url (replace-match
2234 ++ (format "%%%x" (string-to-char (match-string 0 url))) t t url)))
2235 ++ (let* ((process-environment (browse-url-process-environment))
2236 ++ (process (apply 'start-process
2237 ++ (concat "galeon " url) nil
2238 ++ browse-url-galeon-program
2240 ++ browse-url-galeon-arguments
2241 ++ (if new-window '("-w" "--noraise")
2244 ++ (set-process-sentinel process
2245 ++ `(lambda (process change)
2246 ++ (browse-url-galeon-sentinel process ,url)))))
2248 ++(defun browse-url-galeon-sentinel (process url)
2249 ++ "Handle a change to the process communicating with Galeon."
2250 ++ (or (eq (process-exit-status process) 0)
2251 ++ (let* ((process-environment (browse-url-process-environment)))
2252 ++ ;; Galeon is not running - start it
2253 ++ (message "Starting Galeon...")
2254 ++ (apply 'start-process (concat "galeon " url) nil
2255 ++ browse-url-galeon-program
2256 ++ (append browse-url-galeon-startup-arguments (list url))))))
2259 + (defun browse-url-gnome-moz (url &optional new-window)
2260 + "Ask Mozilla/Netscape to load URL via the GNOME program `gnome-moz-remote'.
2261 + Default to the URL around or before point. The strings in variable
2262 --- emacs-21.3.orig/debian/patches/battery-acpi-support.dpatch
2263 +++ emacs-21.3/debian/patches/battery-acpi-support.dpatch
2266 +## battery-acpi-support.dpatch by Jerome Marant <jerome@debian.org>
2268 +## DP: ** Support for ACPI in battery.el has be added
2269 +## DP: Status: appears to be incorporated upstream
2270 +## DP: Provided by: Mario Lang <mlang@debian.org>
2271 +## DP: Date: Fri, 26 Sep 2003 15:30:43 +0200
2273 +if [ $# -ne 1 ]; then
2274 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2278 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
2279 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
2282 + -patch) patch $patch_opts -p1 < $0;;
2283 + -unpatch) patch $patch_opts -p1 -R < $0;;
2285 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2292 +diff -urNad /home/jerome/pkg/emacs21/svn/emacs/lisp/battery.el emacs/lisp/battery.el
2293 +--- /home/jerome/pkg/emacs21/svn/emacs/lisp/battery.el 2003-09-26 19:57:43.000000000 +0200
2294 ++++ emacs/lisp/battery.el 2003-09-28 17:19:22.000000000 +0200
2296 + (defcustom battery-status-function
2297 + (cond ((and (eq system-type 'gnu/linux)
2298 + (file-readable-p "/proc/apm"))
2299 +- 'battery-linux-proc-apm))
2300 ++ 'battery-linux-proc-apm)
2301 ++ ((and (eq system-type 'gnu/linux)
2302 ++ (file-directory-p "/proc/acpi/battery"))
2303 ++ 'battery-linux-proc-acpi))
2304 + "*Function for getting battery status information.
2305 + The function has to return an alist of conversion definitions.
2306 + Its cons cells are of the form
2309 + (defcustom battery-echo-area-format
2310 + (cond ((eq battery-status-function 'battery-linux-proc-apm)
2311 +- "Power %L, battery %B (%p%% load, remaining time %t)"))
2312 ++ "Power %L, battery %B (%p%% load, remaining time %t)")
2313 ++ ((eq battery-status-function 'battery-linux-proc-acpi)
2314 ++ "Power %L, battery %B at %r (%p%% load, remaining time %t)"))
2315 + "*Control string formatting the string to display in the echo area.
2316 + Ordinary characters in the control string are printed as-is, while
2317 + conversion specifications introduced by a `%' character in the control
2320 + (defcustom battery-mode-line-format
2321 + (cond ((eq battery-status-function 'battery-linux-proc-apm)
2324 ++ ((eq battery-status-function 'battery-linux-proc-acpi)
2325 ++ " [%b%p%%,%d°C]"))
2326 + "*Control string formatting the string to display in the mode line.
2327 + Ordinary characters in the control string are printed as-is, while
2328 + conversion specifications introduced by a `%' character in the control
2329 +@@ -217,6 +224,122 @@
2330 + (cons ?h (or (and hours (number-to-string hours)) "N/A"))
2331 + (cons ?t (or remaining-time "N/A")))))
2334 ++;;; `/proc/acpi/' interface for Linux.
2336 ++(defun battery-linux-proc-acpi ()
2337 ++ "Get ACPI status information from Linux kernel.
2338 ++This function works only with the new `/proc/acpi/' format introduced
2339 ++in Linux version 2.4.20 and 2.6.0.
2341 ++The following %-sequences are provided:
2342 ++%c Current capacity (mAh)
2343 ++%B Battery status (verbose)
2344 ++%b Battery status, empty means high, `-' means low,
2345 ++ `!' means critical, and `+' means charging
2346 ++%d Temperature (in degrees Celsius)
2347 ++%L AC line status (verbose)
2348 ++%p battery load percentage
2349 ++%m Remaining time in minutes
2350 ++%h Remaining time in hours
2351 ++%t Remaining time in the form `h:min'"
2352 ++ (let (capacity design-capacity rate rate-type charging-state warn low
2354 ++ ;; ACPI provides information about each battery present in the system in
2355 ++ ;; a separate subdirectory. We are going to merge the available
2356 ++ ;; information together since displaying for a variable amount of
2357 ++ ;; batteries seems overkill for format-strings.
2360 ++ (with-temp-buffer
2361 ++ (battery-insert-file-contents (expand-file-name "state" dir))
2362 ++ (when (re-search-forward "present: +yes$" nil t)
2363 ++ (and (re-search-forward "charging state: +\\(.*\\)$" nil t)
2364 ++ (or (null charging-state) (string= charging-state
2366 ++ ;; On most multi-battery systems, most of the time only one
2367 ++ ;; battery is "charging"/"discharging", the others are
2369 ++ (setq charging-state (match-string 1)))
2370 ++ (when (re-search-forward "present rate: +\\([0-9]+\\) \\(m[AW]\\)$"
2372 ++ (setq rate (+ (or rate 0) (string-to-int (match-string 1)))
2373 ++ rate-type (or (and rate-type
2374 ++ (if (string= rate-type (match-string 2))
2377 ++ "Inconsistent rate types (%s vs. %s)"
2378 ++ rate-type (match-string 2))))
2379 ++ (match-string 2))))
2380 ++ (when (re-search-forward "remaining capacity: +\\([0-9]+\\) m[AW]h$"
2383 ++ (+ (or capacity 0) (string-to-int (match-string 1))))))
2384 ++ (goto-char (point-max))
2385 ++ (battery-insert-file-contents (expand-file-name "info" dir))
2386 ++ (when (re-search-forward "present: +yes$" nil t)
2387 ++ (when (re-search-forward "design capacity: +\\([0-9]+\\) m[AW]h$"
2389 ++ (setq design-capacity (+ (or design-capacity 0)
2390 ++ (string-to-int (match-string 1)))))
2391 ++ (when (re-search-forward "design capacity warning: +\\([0-9]+\\) m[AW]h$"
2393 ++ (setq warn (+ (or warn 0) (string-to-int (match-string 1)))))
2394 ++ (when (re-search-forward "design capacity low: +\\([0-9]+\\) m[AW]h$"
2396 ++ (setq low (+ (or low 0)
2397 ++ (string-to-int (match-string 1))))))))
2398 ++ (directory-files "/proc/acpi/battery/" t "BAT"))
2399 ++ (and capacity rate
2400 ++ (setq minutes (if (zerop rate) 0
2401 ++ (floor (* (/ (float (if (string= charging-state
2403 ++ (- design-capacity capacity)
2404 ++ capacity)) rate) 60)))
2405 ++ hours (/ minutes 60)))
2406 ++ (list (cons ?c (or (and capacity (number-to-string capacity)) "N/A"))
2407 ++ (cons ?L (or (when (file-exists-p "/proc/acpi/ac_adapter/AC/state")
2408 ++ (with-temp-buffer
2409 ++ (battery-insert-file-contents
2410 ++ "/proc/acpi/ac_adapter/AC/state")
2411 ++ (when (re-search-forward "state: +\\(.*\\)$" nil t)
2412 ++ (match-string 1))))
2414 ++ (cons ?d (or (when (file-exists-p
2415 ++ "/proc/acpi/thermal_zone/THRM/temperature")
2416 ++ (with-temp-buffer
2417 ++ (battery-insert-file-contents
2418 ++ "/proc/acpi/thermal_zone/THRM/temperature")
2419 ++ (when (re-search-forward
2420 ++ "temperature: +\\([0-9]+\\) C$" nil t)
2421 ++ (match-string 1))))
2422 ++ (when (file-exists-p
2423 ++ "/proc/acpi/thermal_zone/THM/temperature")
2424 ++ (with-temp-buffer
2425 ++ (battery-insert-file-contents
2426 ++ "/proc/acpi/thermal_zone/THM/temperature")
2427 ++ (when (re-search-forward
2428 ++ "temperature: +\\([0-9]+\\) C$" nil t)
2429 ++ (match-string 1))))
2431 ++ (cons ?r (or (and rate (concat (number-to-string rate) " "
2432 ++ rate-type)) "N/A"))
2433 ++ (cons ?B (or charging-state "N/A"))
2434 ++ (cons ?b (or (and (string= charging-state "charging") "+")
2435 ++ (and low (< capacity low) "!")
2436 ++ (and warn (< capacity warn) "-")
2438 ++ (cons ?h (or (and hours (number-to-string hours)) "N/A"))
2439 ++ (cons ?m (or (and minutes (number-to-string minutes)) "N/A"))
2440 ++ (cons ?t (or (and minutes
2441 ++ (format "%d:%02d" hours (- minutes (* 60 hours))))
2443 ++ (cons ?p (or (and design-capacity capacity
2444 ++ (number-to-string
2445 ++ (floor (/ capacity
2446 ++ (/ (float design-capacity) 100)))))
2450 + ;;; Private functions.
2452 --- emacs-21.3.orig/debian/patches/arch-mipsel.dpatch
2453 +++ emacs-21.3/debian/patches/arch-mipsel.dpatch
2456 +## 500-arch-mipsel.dpatch by Rob Browning <rlb@defaultvalue.org>
2458 +## DP: ** Support for the mipsel architecture has been added.
2459 +## DP: Status: appears to be incorporated upstream
2461 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
2462 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
2464 +if [ $# -ne 1 ]; then
2465 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2469 + -patch) patch $patch_opts -p1 < $0;;
2470 + -unpatch) patch $patch_opts -p1 -R < $0;;
2472 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2478 +diff -urNad /home/rlb/deb/emacs21/trunk/configure.in trunk/configure.in
2479 +--- /home/rlb/deb/emacs21/trunk/configure.in 2003-09-11 01:12:30.000000000 -0500
2480 ++++ trunk/configure.in 2003-09-11 01:12:32.000000000 -0500
2481 +@@ -1051,6 +1051,11 @@
2482 + machine=mips opsys=gnu-linux
2485 ++ ## Mipsel (little endian) Linux-based GNU system
2486 ++ mipsel-*-linux-gnu* )
2487 ++ machine=mipsel opsys=gnu-linux
2491 + sparc-fujitsu-sysv4* )
2492 + machine=sparc opsys=uxpds
2493 +diff -urNad /home/rlb/deb/emacs21/trunk/src/m/mipsel.h trunk/src/m/mipsel.h
2494 +--- /home/rlb/deb/emacs21/trunk/src/m/mipsel.h 1969-12-31 18:00:00.000000000 -0600
2495 ++++ trunk/src/m/mipsel.h 2003-09-11 01:12:32.000000000 -0500
2497 ++/* machine description file for Mipsel (mips little endian). */
2501 ++/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
2502 ++ is the most significant byte. */
2504 ++#undef WORDS_BIG_ENDIAN
2505 --- emacs-21.3.orig/debian/patches/scroll-margin.dpatch
2506 +++ emacs-21.3/debian/patches/scroll-margin.dpatch
2509 +## scroll-margin.dpatch by Jerome Marant <jerome@debian.org>
2511 +## DP: ** Prevents Emacs to hang when a non-0 scroll-margin
2512 +## DP: has been set.
2513 +## DP: Status: has been incorporated upstream
2514 +## DP: Date: Sat, 18 Oct 2003 14:53:26 +0200
2516 +if [ $# -ne 1 ]; then
2517 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2521 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
2522 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
2525 + -patch) patch $patch_opts -p1 < $0;;
2526 + -unpatch) patch $patch_opts -p1 -R < $0;;
2528 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2535 +diff -urNad /home/jerome/pkg/emacs21/svn/emacs21/src/window.c emacs21/src/window.c
2536 +--- /home/jerome/pkg/emacs21/svn/emacs21/src/window.c 2003-10-01 19:59:18.000000000 +0200
2537 ++++ emacs21/src/window.c 2003-10-18 12:21:17.000000000 +0200
2538 +@@ -4124,7 +4124,12 @@
2539 + in the scroll margin at the top. */
2540 + move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
2541 + while (it.current_y < this_scroll_margin)
2542 +- move_it_by_lines (&it, 1, 1);
2544 ++ int prev = it.current_y;
2545 ++ move_it_by_lines (&it, 1, 1);
2546 ++ if (prev == it.current_y)
2549 + SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it));
2552 --- emacs-21.3.orig/debian/patches/movemail-mailspool.dpatch
2553 +++ emacs-21.3/debian/patches/movemail-mailspool.dpatch
2556 +## 500-movemail-mailspool.dpatch by Rob Browning <rlb@defaultvalue.org>
2558 +## DP: ** The detection of the program "mail" has been enhanced.
2561 +## DP: We have added CONF_MAIL_PROGRAM_NAME to configure.in and use it in
2562 +## DP: fakemail.c. Either via this variable, or via a #define in an arch
2563 +## DP: specific file, we now insist that this var be defined, and abort
2564 +## DP: compilation otherwise. We use #error, which is probably not
2565 +## DP: portable, so we need a better solution long term. This fix
2566 +## DP: repairs a nasty bug where on sparc-linux-gnu at least,
2567 +## DP: MAIL_PROGRAM_NAME pointed to /bin/mail, which didn't exist, and
2568 +## DP: fakemail failed silently, losing mail. In the long run, though,
2569 +## DP: fakemail should be fixed to find the mail program at runtime, and
2570 +## DP: do something smarter if/when detection fails.
2572 +## DP: ** The location of the mail spool has been centralized.
2575 +## DP: [ This modification is currently only available in the Debian source,
2576 +## DP: but the upstream authors and I are in the process of working out the
2577 +## DP: appropriate upstream patch.
2579 +## DP: Please do *NOT* use mail-spool-directory in any public code until
2580 +## DP: and unless this variable makes it into the upstream source. ]
2582 +## DP: Determination of the location of the mail spool has now been
2583 +## DP: centralized. There is a new lisp-level variable mail-spool-directory
2584 +## DP: that should always contain the location of the mail spool (normally a
2585 +## DP: directory like /usr/spool/mail).
2587 +## DP: There is a related configure option --with-mail-spool-directory that
2588 +## DP: allows you to override the default mail spool location detected, if
2589 +## DP: any, at configure time. The proper setting for a particular
2590 +## DP: architecture may also be set in src/s/*.h with
2591 +## DP: SYSTEM_MAIL_SPOOL_DIRECTORY, but note that --with-mail-spool-directory
2592 +## DP: always takes precedence.
2594 +## DP: At the C level, the mail spool directory is available from
2595 +## DP: lib-src/mailspool.h which provides a MAIL_SPOOL_DIRECTORY definition.
2597 +## DP: nnmail, rmail, and movemail have all been modified to respect this new
2598 +## DP: arrangement.
2600 +## DP: ** Mailbox locking improved and brought into line with Debian policy.
2603 +## DP: [ This modification is currently only available in the Debian source,
2604 +## DP: but the upstream authors and I are in the process of working out the
2605 +## DP: appropriate upstream patch. ]
2607 +## DP: Configure now looks for liblockfile before libmail (liblockfile is a
2608 +## DP: free software replacement for libmail). Either library, if found, is
2609 +## DP: propagated to the movemail (lib-src) Makefile through the
2610 +## DP: MOVEMAIL_LOCK_LIBS variable.
2612 +## DP: Also MAIL_USE_FLOCK is disabled since it is wrong for a Debian system.
2614 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
2615 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
2617 +if [ $# -ne 1 ]; then
2618 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2622 + -patch) patch $patch_opts -p1 < $0;;
2623 + -unpatch) patch $patch_opts -p1 -R < $0;;
2625 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2631 +diff -urNad /home/rlb/deb/emacs21/trunk/configure.in trunk/configure.in
2632 +--- /home/rlb/deb/emacs21/trunk/configure.in 2003-09-11 01:15:10.000000000 -0500
2633 ++++ trunk/configure.in 2003-09-11 01:15:14.000000000 -0500
2635 + AC_ARG_WITH(hesiod,
2636 + [ --with-hesiod support Hesiod to get the POP server host],
2637 + [AC_DEFINE(HESIOD)])
2638 ++AC_ARG_WITH(mail-spool-directory,
2639 ++[ --with-mail-spool-directory=DIR system mail spool is DIR],
2640 ++[AC_DEFINE_UNQUOTED(USE_MAIL_SPOOL_DIRECTORY,"${withval}")])
2641 + dnl This should be the last --with option, because --with-x is
2642 + dnl added later on when we find the path of X, and it's best to
2643 + dnl keep them together visually.
2644 +@@ -1963,29 +1966,62 @@
2645 + # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
2646 + AC_CHECK_LIB(m, sqrt)
2648 +-# Check for mail-locking functions in a "mail" library
2649 +-AC_CHECK_LIB(mail, maillock)
2650 +-dnl Debian, at least:
2651 +-dnl AC_CHECK_LIB(lockfile, maillock, [AC_DEFINE(HAVE_LIBMAIL)])
2652 +-AC_CHECK_LIB(lockfile, maillock)
2653 +-# If we have the shared liblockfile, assume we must use it for mail
2654 +-# locking (e.g. Debian). If we couldn't link against liblockfile
2655 +-# (no liblockfile.a installed), ensure that we don't need to.
2656 +-if test "$ac_cv_lib_lockfile_maillock" = no; then
2657 +- dnl This works for files generally, not just executables.
2658 +- dnl Should we look elsewhere for it? Maybe examine /etc/ld.so.conf?
2659 +- AC_CHECK_PROG(liblockfile, liblockfile.so, yes, no,
2660 +- /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH)
2661 +- if test $ac_cv_prog_liblockfile = yes; then
2662 +- AC_MSG_ERROR([Shared liblockfile found but can't link against it.
2663 +-This probably means that movemail could lose mail.
2664 +-There may be a \`development' package to install containing liblockfile.])
2665 +- else AC_DEFINE(LIBMAIL, -llockfile)
2668 ++# Check for mail-locking functions in a "mail" library Check for
2669 ++# lockfile first, a free replacement for -lmail. We use AC_CHECK_LIB
2670 ++# for touchlock because we don't want to have to put the lock libs
2671 ++# into LIBS and AC_CHECK_FUNCS would require that.
2673 ++AC_CHECK_LIB(lockfile, maillock,
2674 ++ [ AC_DEFINE(HAVE_LIBMAIL)
2675 ++ MOVEMAIL_LOCK_LIBS="-llockfile"
2676 ++ AC_CHECK_LIB(lockfile, touchlock, AC_DEFINE(HAVE_TOUCHLOCK))
2677 ++ AC_CHECK_HEADERS(maillock.h)],
2678 ++ [ AC_CHECK_LIB(mail, maillock,
2679 ++ [ AC_DEFINE(HAVE_LIBMAIL)
2680 ++ MOVEMAIL_LOCK_LIBS="-lmail"
2681 ++ AC_CHECK_LIB(mail, touchlock, AC_DEFINE(HAVE_TOUCHLOCK))
2682 ++ AC_CHECK_FUNCS(touchlock)
2683 ++ AC_CHECK_HEADERS(maillock.h)])])
2686 ++# Tests borrowed (and slightly rearranged) from old paths.el
2687 ++# rmail-spool-directory tests. They should be in the order most
2688 ++# likely to get the right answer. You can always override them on the
2689 ++# system level in src/s/* and on a one-shot basis with
2690 ++# --with-mail-spool-directory.
2692 ++AC_MSG_CHECKING(for mail spool location)
2693 ++if test "${with_mail_spool+set}" = set; then
2694 ++ AC_MSG_RESULT(${with_mail_spool})
2695 ++elif test -d /var/mail/; then
2696 ++ AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/var/mail")
2697 ++ AC_MSG_RESULT("/var/mail")
2698 ++elif test -d /var/spool/mail/; then
2699 ++ AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/var/spool/mail")
2700 ++ AC_MSG_RESULT("/var/spool/mail")
2701 ++elif test -d /usr/mail/; then
2702 ++ AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/usr/mail")
2703 ++ AC_MSG_RESULT("/usr/mail")
2704 ++elif test -d /usr/spool/mail/; then
2705 ++ AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/usr/spool/mail")
2706 ++ AC_MSG_RESULT("/usr/spool/mail")
2708 ++ AC_MSG_RESULT(not found)
2711 ++# Find the location of "mail". This is critical for fakemail at
2712 ++# least. before fakemail would silently fail if this was wrong, so
2713 ++# insist on finding it.
2714 ++AC_MSG_CHECKING(for mail binary)
2715 ++if test -x /bin/mail; then
2716 ++ AC_DEFINE_UNQUOTED(CONF_MAIL_PROGRAM_NAME, "/bin/mail")
2717 ++ AC_MSG_RESULT("/bin/mail")
2718 ++elif test -x /usr/bin/mail; then
2719 ++ AC_DEFINE_UNQUOTED(CONF_MAIL_PROGRAM_NAME, "/usr/bin/mail")
2720 ++ AC_MSG_RESULT("/usr/bin/mail")
2722 ++ AC_MSG_ERROR(could not find mail binary)
2724 +-AC_CHECK_FUNCS(touchlock)
2725 +-AC_CHECK_HEADERS(maillock.h)
2727 + AC_CHECK_FUNCS(gethostname getdomainname dup2 \
2728 + rename closedir mkdir rmdir sysinfo \
2729 +@@ -2234,6 +2270,7 @@
2730 + AC_SUBST(machfile)
2731 + AC_SUBST(opsysfile)
2732 + AC_SUBST(GETLOADAVG_LIBS)
2733 ++AC_SUBST(MOVEMAIL_LOCK_LIBS)
2735 + AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}")
2736 + AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${ac_configure_args}")
2737 +diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/Makefile.in trunk/lib-src/Makefile.in
2738 +--- /home/rlb/deb/emacs21/trunk/lib-src/Makefile.in 2003-09-11 01:14:26.000000000 -0500
2739 ++++ trunk/lib-src/Makefile.in 2003-09-11 01:15:13.000000000 -0500
2740 +@@ -222,11 +222,10 @@
2744 +-LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB)
2745 ++MOVEMAIL_LOCK_LIBS=@MOVEMAIL_LOCK_LIBS@
2747 +-#ifdef HAVE_LIBMAIL
2750 ++LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) \
2751 ++ $(HESIODLIB) $(MOVEMAIL_LOCK_LIBS)
2753 + LOADLIBES=LIBS_SYSTEM LIBS_MACHINE LIB_STANDARD_LIBSRC
2755 +diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/fakemail.c trunk/lib-src/fakemail.c
2756 +--- /home/rlb/deb/emacs21/trunk/lib-src/fakemail.c 2003-09-11 01:14:26.000000000 -0500
2757 ++++ trunk/lib-src/fakemail.c 2003-09-11 01:15:13.000000000 -0500
2758 +@@ -126,7 +126,11 @@
2759 + #define INITIAL_LINE_SIZE 200
2761 + #ifndef MAIL_PROGRAM_NAME
2762 +-#define MAIL_PROGRAM_NAME "/bin/mail"
2763 ++#ifdef CONF_MAIL_PROGRAM_NAME
2764 ++#define MAIL_PROGRAM_NAME CONF_MAIL_PROGRAM_NAME
2766 ++#error "MAIL_PROGRAM_NAME must be defined"
2770 + static char *my_name;
2771 +diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/mailspool.h trunk/lib-src/mailspool.h
2772 +--- /home/rlb/deb/emacs21/trunk/lib-src/mailspool.h 1969-12-31 18:00:00.000000000 -0600
2773 ++++ trunk/lib-src/mailspool.h 2003-09-11 01:15:14.000000000 -0500
2775 ++/* mailspool.h -- record the location of the mail spool in MAIL_SPOOL_DIRECTORY
2776 ++ Copyright (C) 1986, 1992, 1993, 1994, 1996 Free Software Foundation, Inc.
2778 ++This file is part of GNU Emacs.
2780 ++GNU Emacs is free software; you can redistribute it and/or modify
2781 ++it under the terms of the GNU General Public License as published by
2782 ++the Free Software Foundation; either version 2, or (at your option)
2783 ++any later version.
2785 ++GNU Emacs is distributed in the hope that it will be useful,
2786 ++but WITHOUT ANY WARRANTY; without even the implied warranty of
2787 ++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2788 ++GNU General Public License for more details.
2790 ++You should have received a copy of the GNU General Public License
2791 ++along with GNU Emacs; see the file COPYING. If not, write to
2792 ++the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
2793 ++Boston, MA 02111-1307, USA. */
2795 ++#ifndef _MAILSPOOL_H
2796 ++#define _MAILSPOOL_H 1
2798 ++#ifdef __cplusplus
2802 ++#define NO_SHORTNAMES /* Tell config not to load remap.h */
2803 ++#include <../src/config.h>
2805 ++/* Final determination of mail spool location. */
2806 ++#ifdef USE_MAIL_SPOOL_DIRECTORY
2807 ++#define MAIL_SPOOL_DIRECTORY USE_MAIL_SPOOL_DIRECTORY
2808 ++#elif defined(SYSTEM_MAIL_SPOOL_DIRECTORY)
2809 ++#define MAIL_SPOOL_DIRECTORY SYSTEM_MAIL_SPOOL_DIRECTORY
2810 ++#elif defined(MAILDIR)
2811 ++#define MAIL_SPOOL_DIRECTORY MAILDIR
2812 ++#elif defined(CONF_MAIL_SPOOL_DIRECTORY)
2813 ++#define MAIL_SPOOL_DIRECTORY CONF_MAIL_SPOOL_DIRECTORY
2816 ++#ifdef __cplusplus
2820 ++#endif /* mailspool.h */
2821 +diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/movemail.c trunk/lib-src/movemail.c
2822 +--- /home/rlb/deb/emacs21/trunk/lib-src/movemail.c 2003-09-11 01:14:26.000000000 -0500
2823 ++++ trunk/lib-src/movemail.c 2003-09-11 01:15:14.000000000 -0500
2828 ++#include "mailspool.h"
2830 + #define NO_SHORTNAMES /* Tell config not to load remap.h */
2831 + #include <config.h>
2832 + #include <sys/types.h>
2833 +@@ -129,15 +131,12 @@
2836 + #if !defined (MAIL_USE_SYSTEM_LOCK) && !defined (MAIL_USE_MMDF) && \
2837 +- defined (HAVE_LIBMAIL) && defined (HAVE_MAILLOCK_H)
2838 ++ defined (HAVE_LIBMAIL) && defined (HAVE_MAILLOCK_H) && \
2839 ++ defined (MAIL_SPOOL_DIRECTORY)
2840 + #include <maillock.h>
2841 +-/* We can't use maillock unless we know what directory system mail
2842 +- files appear in. */
2844 + #define MAIL_USE_MAILLOCK
2845 + static char *mail_spool_name ();
2851 +@@ -575,7 +574,7 @@
2855 +- if (stat (MAILDIR, &stat1) < 0)
2856 ++ if (stat (MAIL_SPOOL_DIRECTORY, &stat1) < 0)
2859 + indir = (char *) xmalloc (fname - inname + 1);
2860 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/paths.el trunk/lisp/paths.el
2861 +--- /home/rlb/deb/emacs21/trunk/lisp/paths.el 2003-09-11 01:14:26.000000000 -0500
2862 ++++ trunk/lisp/paths.el 2003-09-11 01:15:13.000000000 -0500
2863 +@@ -140,24 +140,7 @@
2867 +-(defconst rmail-spool-directory
2868 +- (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration)
2869 +- "/usr/spool/mail/")
2870 +- ;; On The Bull DPX/2 /usr/spool/mail is used although
2871 +- ;; it is usg-unix-v.
2872 +- ((string-match "^m68k-bull-sysv3" system-configuration)
2873 +- "/usr/spool/mail/")
2874 +- ;; SVR4 and recent BSD are said to use this.
2875 +- ;; Rather than trying to know precisely which systems use it,
2876 +- ;; let's assume this dir is never used for anything else.
2877 +- ((file-exists-p "/var/mail")
2879 +- ;; Many GNU/Linux systems use this name.
2880 +- ((file-exists-p "/var/spool/mail")
2881 +- "/var/spool/mail/")
2882 +- ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
2884 +- (t "/usr/spool/mail/"))
2885 ++(defconst rmail-spool-directory mail-spool-directory
2886 + "Name of directory used by system mailer for delivering new mail.
2887 + Its name should end with a slash.")
2889 +diff -urNad /home/rlb/deb/emacs21/trunk/src/callproc.c trunk/src/callproc.c
2890 +--- /home/rlb/deb/emacs21/trunk/src/callproc.c 2003-09-11 01:14:26.000000000 -0500
2891 ++++ trunk/src/callproc.c 2003-09-11 01:15:13.000000000 -0500
2893 + #include <errno.h>
2894 + #include <stdio.h>
2896 ++#include "../lib-src/mailspool.h"
2898 + #ifndef USE_CRT_DLL
2901 +@@ -113,6 +115,8 @@
2903 + Lisp_Object Vprocess_environment;
2905 ++Lisp_Object Vmail_spool_directory;
2908 + Lisp_Object Qbuffer_file_type;
2909 + #endif /* DOS_NT */
2910 +@@ -1630,6 +1634,19 @@
2911 + The environment which Emacs inherits is placed in this variable\n\
2912 + when Emacs starts.");
2914 ++ DEFVAR_LISP ("mail-spool-directory", &Vmail_spool_directory,
2915 ++ "Location of the system mail spool.\n\
2916 ++This is normally a directory like \"usr/spool/mail\". This is\n\
2917 ++currently a Debian extension. Please do NOT use this in public code\n\
2918 ++until/unless it makes it upstream.");
2919 ++#ifdef MAIL_SPOOL_DIRECTORY
2920 ++ Vmail_spool_directory =
2921 ++ Ffile_name_as_directory (build_string (MAIL_SPOOL_DIRECTORY));
2923 ++ Vmail_spool_directory = Qnil;
2928 + defsubr (&Scall_process);
2929 + defsubr (&Sgetenv_internal);
2930 +diff -urNad /home/rlb/deb/emacs21/trunk/src/config.in trunk/src/config.in
2931 +--- /home/rlb/deb/emacs21/trunk/src/config.in 2003-09-11 01:15:10.000000000 -0500
2932 ++++ trunk/src/config.in 2003-09-11 01:15:13.000000000 -0500
2933 +@@ -222,6 +222,13 @@
2934 + #undef HAVE_MAILLOCK_H
2935 + #undef HAVE_TOUCHLOCK
2937 ++/* Mail spool information from the configure process. See lib-src/mailspool.h */
2938 ++#undef USE_MAIL_SPOOL_DIRECTORY
2939 ++#undef CONF_MAIL_SPOOL_DIRECTORY
2941 ++/* Mail spool information from the configure process. See lib-src/fakemail.c */
2942 ++#undef CONF_MAIL_PROGRAM_NAME
2944 + #undef HAVE_ALLOCA_H
2946 + #undef HAVE_DEV_PTMX
2947 +diff -urNad /home/rlb/deb/emacs21/trunk/src/s/gnu-linux.h trunk/src/s/gnu-linux.h
2948 +--- /home/rlb/deb/emacs21/trunk/src/s/gnu-linux.h 2003-09-11 01:14:26.000000000 -0500
2949 ++++ trunk/src/s/gnu-linux.h 2003-09-11 01:15:13.000000000 -0500
2950 +@@ -130,7 +130,14 @@
2951 + programs. I assume that most people are using newer mailers that
2952 + have heard of flock. Change this if you need to. */
2954 +-#define MAIL_USE_FLOCK
2955 ++/* On Debian/GNU/Linux systems, configure gets the right answers, and
2956 ++ that means *NOT* using flock. Using flock is guaranteed to be the
2957 ++ wrong thing. See Debian Policy for details. */
2959 ++# undef MAIL_USE_FLOCK
2961 ++# define MAIL_USE_FLOCK
2964 + /* Define CLASH_DETECTION if you want lock files to be written
2965 + so that Emacs can tell instantly when you try to modify
2966 --- emacs-21.3.orig/debian/patches/emacsclient-alternate-editor.dpatch
2967 +++ emacs-21.3/debian/patches/emacsclient-alternate-editor.dpatch
2970 +## emacsclient-alternate-editor.dpatch by Jerome Marant <jerome@debian.org>
2972 +## DP: ** This patch allows emacsclient to take the ALTERNATE_EDITOR
2973 +## DP: environment variable properly into account when the command
2974 +## DP: is run without any parameter.
2975 +## DP: Status: has been applied upstream
2976 +## DP: Date: Sun, 25 Jan 2004 21:00:29 +0100
2978 +if [ $# -ne 1 ]; then
2979 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2983 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
2984 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
2987 + -patch) patch $patch_opts -p1 < $0;;
2988 + -unpatch) patch $patch_opts -p1 -R < $0;;
2990 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2997 +diff -urNad /home/jerome/pkg/emacs21/svn/emacs21/lib-src/emacsclient.c emacs21/lib-src/emacsclient.c
2998 +--- /home/jerome/pkg/emacs21/svn/emacs21/lib-src/emacsclient.c 2004-01-25 19:45:54.000000000 +0100
2999 ++++ emacs21/lib-src/emacsclient.c 2004-01-25 19:46:31.000000000 +0100
3004 ++ alternate_editor = getenv ("ALTERNATE_EDITOR");
3008 + int opt = getopt_long (argc, argv,
3014 +- alternate_editor = getenv ("ALTERNATE_EDITOR");
3018 --- emacs-21.3.orig/debian/patches/arch-s390.dpatch
3019 +++ emacs-21.3/debian/patches/arch-s390.dpatch
3022 +## 500-arch-s390.dpatch by Rob Browning <rlb@defaultvalue.org>
3024 +## DP: ** Support for the s390 architecture has been added.
3025 +## DP: Status: appears to be incorporated upstream
3026 +## DP: Provided by: Jochen =?iso-8859-1?Q?R=F6hrig?= <jr@debian.s390.org>
3027 +## DP: Date: Tue, 31 Jul 2001 15:18:38 UTC.
3029 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3030 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3032 +if [ $# -ne 1 ]; then
3033 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3037 + -patch) patch $patch_opts -p1 < $0;;
3038 + -unpatch) patch $patch_opts -p1 -R < $0;;
3040 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3046 +diff -urNad /home/rlb/deb/emacs21/trunk/configure.in trunk/configure.in
3047 +--- /home/rlb/deb/emacs21/trunk/configure.in 2003-09-11 01:04:22.000000000 -0500
3048 ++++ trunk/configure.in 2003-09-11 01:04:46.000000000 -0500
3049 +@@ -623,6 +623,10 @@
3050 + machine=ibmrt-aix opsys=usg5-2-2
3053 ++ s390*-*-linux-gnu* )
3054 ++ machine=s390 opsys=gnu-linux
3057 + ## Integrated Solutions `Optimum V'
3058 + m68*-isi-bsd4.2* )
3059 + machine=isi-ov opsys=bsd4-2
3060 +diff -urNad /home/rlb/deb/emacs21/trunk/src/m/s390.h trunk/src/m/s390.h
3061 +--- /home/rlb/deb/emacs21/trunk/src/m/s390.h 1969-12-31 18:00:00.000000000 -0600
3062 ++++ trunk/src/m/s390.h 2003-09-11 01:04:46.000000000 -0500
3064 ++/* machine description file template.
3065 ++ Copyright (C) 1985, 1986 Free Software Foundation, Inc.
3067 ++This file is part of GNU Emacs.
3069 ++GNU Emacs is free software; you can redistribute it and/or modify
3070 ++it under the terms of the GNU General Public License as published by
3071 ++the Free Software Foundation; either version 2, or (at your option)
3072 ++any later version.
3074 ++GNU Emacs is distributed in the hope that it will be useful,
3075 ++but WITHOUT ANY WARRANTY; without even the implied warranty of
3076 ++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3077 ++GNU General Public License for more details.
3079 ++You should have received a copy of the GNU General Public License
3080 ++along with GNU Emacs; see the file COPYING. If not, write to
3081 ++the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3082 ++Boston, MA 02111-1307, USA. */
3084 ++/* The following line tells the configuration script what sort of
3085 ++ operating system this machine is likely to run.
3086 ++ USUAL-OPSYS="<name of system .h file here, without the s- or .h>" */
3088 ++/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
3089 ++ is the most significant byte. */
3091 ++#define WORDS_BIG_ENDIAN
3093 ++/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
3094 ++ * group of arguments and treat it as an array of the arguments. */
3096 ++#define NO_ARG_ARRAY
3098 ++/* Define WORD_MACHINE if addresses and such have
3099 ++ * to be corrected before they can be used as byte counts. */
3101 ++/* #define WORD_MACHINE */
3103 ++/* Now define a symbol for the cpu type, if your compiler
3104 ++ does not define it automatically:
3105 ++ Ones defined so far include vax, m68000, ns16000, pyramid,
3106 ++ orion, tahoe, APOLLO and many others */
3108 ++/* __s390__ defined already */
3110 ++/* Use type int rather than a union, to represent Lisp_Object */
3111 ++/* This is desirable for most machines. */
3113 ++#define NO_UNION_TYPE
3115 ++/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
3116 ++ the 24-bit bit field into an int. In other words, if bit fields
3117 ++ are always unsigned.
3119 ++ If you use NO_UNION_TYPE, this flag does not matter. */
3121 ++#define EXPLICIT_SIGN_EXTEND
3123 ++/* Data type of load average, as read out of kmem. */
3125 ++#define LOAD_AVE_TYPE long
3127 ++/* Convert that into an integer that is 100 for a load average of 1.0 */
3129 ++#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
3131 ++/* Define CANNOT_DUMP on machines where unexec does not work.
3132 ++ Then the function dump-emacs will not be defined
3133 ++ and temacs will do (load "loadup") automatically unless told otherwise. */
3135 ++/* #define CANNOT_DUMP */
3137 ++/* Define VIRT_ADDR_VARIES if the virtual addresses of
3138 ++ pure and impure space as loaded can vary, and even their
3139 ++ relative order cannot be relied on.
3141 ++ Otherwise Emacs assumes that text space precedes data space,
3144 ++#define VIRT_ADDR_VARIES
3146 ++/* Define C_ALLOCA if this machine does not support a true alloca
3147 ++ and the one written in C should be used instead.
3148 ++ Define HAVE_ALLOCA to say that the system provides a properly
3149 ++ working alloca function and it should be used.
3150 ++ Define neither one if an assembler-language alloca
3151 ++ in the file alloca.s should be used. */
3153 ++/* #define C_ALLOCA */
3154 ++#define HAVE_ALLOCA
3156 ++/* Define NO_REMAP if memory segmentation makes it not work well
3157 ++ to change the boundary between the text section and data section
3158 ++ when Emacs is dumped. If you define this, the preloaded Lisp
3159 ++ code will not be sharable; but that's better than failing completely. */
3161 ++/* #define NO_REMAP */
3163 ++/* Some really obscure 4.2-based systems (like Sequent DYNIX)
3164 ++ * do not support asynchronous I/O (using SIGIO) on sockets,
3165 ++ * even though it works fine on tty's. If you have one of
3166 ++ * these systems, define the following, and then use it in
3167 ++ * config.h (or elsewhere) to decide when (not) to use SIGIO.
3169 ++ * You'd think this would go in an operating-system description file,
3170 ++ * but since it only occurs on some, but not all, BSD systems, the
3171 ++ * reasonable place to select for it is in the machine description
3175 ++/* #define NO_SOCK_SIGIO */
3177 ++/* After adding support for a new system, modify the large case
3178 ++ statement in the `configure' script to recognize reasonable
3179 ++ configuration names, and add a description of the system to
3182 ++ If you've just fixed a problem in an existing configuration file,
3183 ++ you should also check `etc/MACHINES' to make sure its descriptions
3184 ++ of known problems in that configuration should be updated. */
3185 --- emacs-21.3.orig/debian/patches/bzero-and-have-stdlib.dpatch
3186 +++ emacs-21.3/debian/patches/bzero-and-have-stdlib.dpatch
3189 +## 500-bzero-and-have-stdlib.dpatch by Rob Browning <rlb@defaultvalue.org>
3191 +## DP: ** Emacs uses memset, memcmp, and mmove rather than deprecated functions.
3192 +## DP: Status: sent-upstream, pending (all but mem* fixes already fixed upstream)
3194 +## DP: #defines have been added to arrange for Emacs to use memset, memcmp,
3195 +## DP: and memmove instead of bzero, bcmp, and bcopy.
3197 +## DP: ** HAVE_STDLIB_H checks have been added in various places.
3199 +## DP: Status: sent-upstream, pending
3201 +## DP: Primarily in lib-src.
3203 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3204 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3206 +if [ $# -ne 1 ]; then
3207 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3211 + -patch) patch $patch_opts -p1 < $0;;
3212 + -unpatch) patch $patch_opts -p1 -R < $0;;
3214 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3220 +--- emacs21-21.2.orig/src/config.in
3221 ++++ emacs21-21.2/src/config.in
3222 +@@ -531,6 +538,10 @@
3224 + #ifdef HAVE_STDLIB_H
3225 + #include <stdlib.h>
3226 ++/* Don't use deprecated functions. */
3227 ++#define bzero(data, size) memset(data, '\0', size)
3228 ++#define bcmp memcmp
3229 ++#define bcopy(a,b,c) memmove(b,a,c)
3233 +--- emacs21-21.2.orig/lib-src/yow.c
3234 ++++ emacs21-21.2/lib-src/yow.c
3236 + * With dynamic memory allocation.
3239 ++#include "config.h"
3240 + #include <stdio.h>
3241 + #include <ctype.h>
3242 + #include <../src/epaths.h> /* For PATH_DATA. */
3247 ++#ifndef HAVE_STDLIB_H /* config.h includes stdlib. */
3248 + char *malloc(), *realloc();
3253 +--- emacs21-21.2.orig/lib-src/cvtmail.c
3254 ++++ emacs21-21.2/lib-src/cvtmail.c
3255 +@@ -33,11 +33,14 @@
3256 + * Author: Larry Kolodney, 1985
3260 ++#include "config.h"
3261 + #include <stdio.h>
3263 ++#ifndef HAVE_STDLIB_H /* config.h includes stdlib. */
3271 --- emacs-21.3.orig/debian/patches/detect-coding-iso2022.dpatch
3272 +++ emacs-21.3/debian/patches/detect-coding-iso2022.dpatch
3275 +## 500-detect-coding-iso2022.dpatch by Kenichi Handa <handa@etl.go.jp>
3277 +## All lines beginning with `## DP:' are a description of the patch.
3279 +## DP: ** An upstream fix has been incorporated for cases where emacs
3280 +## DP: might modify a binary file even when asked to use a raw-text
3281 +## DP: encoding during a save.
3282 +## DP: Author: Kenichi Handa <handa@etl.go.jp>
3283 +## DP: Status: backported from upstream fix of 2002-07-26
3285 +if [ $# -ne 1 ]; then
3286 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3290 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3291 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3294 + -patch) patch $patch_opts -p1 < $0;;
3295 + -unpatch) patch $patch_opts -p1 -R < $0;;
3297 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3304 +diff -urNad /home/rlb/deb/emacs21/trunk/src/coding.c trunk/src/coding.c
3305 +--- /home/rlb/deb/emacs21/trunk/src/coding.c 2003-09-09 17:28:48.000000000 -0500
3306 ++++ trunk/src/coding.c 2003-09-11 22:16:16.000000000 -0500
3307 +@@ -1359,6 +1359,7 @@
3308 + while (mask && src < src_end)
3310 + ONE_MORE_BYTE_CHECK_MULTIBYTE (c, multibytep);
3314 + case ISO_CODE_ESC:
3315 +@@ -1556,6 +1557,8 @@
3316 + && mask & CODING_CATEGORY_MASK_ISO_8_2)
3321 + while (src < src_end)
3323 + ONE_MORE_BYTE_CHECK_MULTIBYTE (c, multibytep);
3324 +@@ -1568,6 +1571,9 @@
3325 + mask &= ~CODING_CATEGORY_MASK_ISO_8_2;
3327 + mask_found |= CODING_CATEGORY_MASK_ISO_8_2;
3329 ++ /* This means that we have read one extra byte. */
3334 --- emacs-21.3.orig/debian/patches/fix-x-vs-no-x-diffs.dpatch
3335 +++ emacs-21.3/debian/patches/fix-x-vs-no-x-diffs.dpatch
3338 +## 501-fix-x-vs-no-x-diffs.dpatch by Rob Browning <rlb@defaultvalue.org>
3340 +## DP: ** Building --with-x=yes and --with-x=no creates very few differences now.
3341 +## DP: Author: rlb in consulatation with emacs-devel.
3343 +## DP: Eliminate as many differences between --with-x=yes and --with-x=no
3344 +## DP: versions of emacs as possible, and accommodate the rest.
3346 +## DP: Make sure that the DOC files generated with and without X,
3347 +## DP: i.e. --with-x=yes and --with-x=no, are the same.
3349 +## DP: Make sure that cus-dep.el generation doesn't fail by fixing some
3350 +## DP: problems with a couple of defcustom forms. Without the fix, the
3351 +## DP: computation of custom-where in cus-dep.el fails because the defcustom
3352 +## DP: eval fails. The gnus-art.el fix does copy/paste the value of
3353 +## DP: gnus-article-compface-xbm from gnus-ems to gnus-art. This doesn't
3354 +## DP: look like it should hurt anything, but it'd be better to fix this
3355 +## DP: "right" in the long term.
3357 +## DP: Sort the custom-group entries in cus-dep before generating
3358 +## DP: custom-loads so the output doesn't differ from run-to-run.
3360 +## DP: Add a tag so that we can insert our own name for the fns-*.el file
3361 +## DP: into help.el at package build time. fns-*.el is the only difference
3362 +## DP: remaining, and we just allow two versions, fns-*-x.el and fns-*-nox.el
3363 +## DP: and arrange for help.el to load the right one.
3365 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3366 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3368 +if [ $# -ne 1 ]; then
3369 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3373 + -patch) patch $patch_opts -p1 < $0;;
3374 + -unpatch) patch $patch_opts -p1 -R < $0;;
3376 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3382 +diff -ru 0/lisp/scroll-bar.el 1/lisp/scroll-bar.el
3383 +--- 0/lisp/scroll-bar.el 2002-09-15 17:14:25.000000000 -0500
3384 ++++ 1/lisp/scroll-bar.el 2002-09-15 17:15:39.000000000 -0500
3389 ++ :initialize 'custom-initialize-default
3390 + :set 'set-scroll-bar-mode-1)
3392 + ;; We just set scroll-bar-mode, but that was the default.
3393 +diff -ru 0/lisp/gnus/gnus-art.el 1/lisp/gnus/gnus-art.el
3394 +--- 0/lisp/gnus/gnus-art.el 2002-03-22 11:03:55.000000000 -0600
3395 ++++ 1/lisp/gnus/gnus-art.el 2002-09-15 16:42:46.000000000 -0500
3396 +@@ -207,7 +207,10 @@
3397 + (if (and (fboundp 'image-type-available-p)
3398 + (image-type-available-p 'xbm))
3399 + 'gnus-article-display-xface
3400 +- (if gnus-article-compface-xbm
3401 ++ (if (or (and (boundp 'gnus-article-compface-xbm)
3402 ++ gnus-article-compface-xbm)
3403 ++ (eq 0 (string-match "#define"
3404 ++ (shell-command-to-string "uncompface -X"))))
3405 + "{ echo '/* Width=48, Height=48 */'; uncompface; } | display -"
3406 + "{ echo '/* Width=48, Height=48 */'; uncompface; } | icontopbm | \
3408 +--- 0/lisp/cus-dep.el 2002-07-30 20:15:40.000000000 -0500
3409 ++++ 1/lisp/cus-dep.el 2002-09-15 18:20:53.000000000 -0500
3411 + "Batch function to extract custom dependencies from .el files.
3412 + Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS"
3413 + (let ((enable-local-eval nil)
3414 +- (all-subdirs command-line-args-left)
3415 ++ (all-subdirs (sort command-line-args-left 'string<))
3416 + (start-directory default-directory))
3417 + (get-buffer-create " cus-dep temp")
3418 + (set-buffer " cus-dep temp")
3420 + (let ((members (get symbol 'custom-group))
3423 ++ ;; So x and no-x builds won't differ.
3425 ++ (sort (copy-sequence members)
3426 ++ (lambda (x y) (string< (car x) (car y)))))
3428 + (setq item (car (car members))
3429 + members (cdr members)
3430 +--- 0/lisp/help.el 2001-10-21 20:26:01.000000000 -0500
3431 ++++ 1/lisp/help.el 2002-09-19 23:29:30.000000000 -0500
3432 +@@ -612,7 +612,10 @@
3433 + ;; fns-XX.YY.ZZ.el does not work on DOS filesystem.
3434 + (if (eq system-type 'ms-dos)
3436 +- (format "fns-%s.el" emacs-version))
3437 ++ ;; Modified for Debian to support x and nox parallel installs.
3438 ++ (format "fns-%s-%s.el"
3440 ++ (or (and (featurep 'x-toolkit) "x") "nox")))
3442 + ;; The file name fns-%s.el already has a .el extension.
3444 --- emacs-21.3.orig/debian/patches/version-mention-debian.dpatch
3445 +++ emacs-21.3/debian/patches/version-mention-debian.dpatch
3448 +## 500-version-mention-debian.dpatch by Rob Browning <rlb@defaultvalue.org>
3450 +## DP: ** (version) has been modified to indicate Debian modifications.
3453 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3454 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3456 +if [ $# -ne 1 ]; then
3457 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3461 + -patch) patch $patch_opts -p1 < $0;;
3462 + -unpatch) patch $patch_opts -p1 -R < $0;;
3464 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3470 +--- emacs21-21.2.orig/lisp/version.el
3471 ++++ emacs21-21.2/lisp/version.el
3474 + (let ((version-string
3475 + (format (if (not (interactive-p))
3476 +- "GNU Emacs %s (%s%s%s)\n of %s on %s"
3477 +- "GNU Emacs %s (%s%s%s) of %s on %s")
3478 ++ "GNU Emacs %s (%s%s%s)\n of %s on %s, modified by Debian"
3479 ++ "GNU Emacs %s (%s%s%s) of %s on %s, modified by Debian")
3481 + system-configuration
3482 + (cond ((featurep 'motif)
3483 --- emacs-21.3.orig/debian/patches/autoconf-updates.dpatch
3484 +++ emacs-21.3/debian/patches/autoconf-updates.dpatch
3487 +## autoconf-updates.dpatch by <rlb@raven.defaultvalue.org>
3490 +## DP: ** Autoconf files have been updated to work with the latest versions.
3493 +if [ $# -lt 1 ]; then
3494 + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
3498 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3499 +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
3502 + -patch) patch -p1 ${patch_opts} < $0;;
3503 + -unpatch) patch -R -p1 ${patch_opts} < $0;;
3505 + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
3512 +diff -urNad /home/rlb/deb/emacs/trunk-21/configure.in trunk-21/configure.in
3513 +--- /home/rlb/deb/emacs/trunk-21/configure.in 2004-02-21 21:05:44.000000000 -0600
3514 ++++ trunk-21/configure.in 2004-02-22 10:01:39.000000000 -0600
3517 + AC_INIT(src/lisp.h)
3518 + AC_CONFIG_HEADER(src/config.h:src/config.in)
3519 ++AC_CONFIG_LIBOBJ_DIR(src)
3521 + lispdir='${datadir}/emacs/${version}/lisp'
3522 + locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3523 +@@ -2037,12 +2038,8 @@
3524 + if test "${with_kerberos5+set}" = set; then
3525 + AC_CHECK_HEADERS(krb5.h)
3527 +- AC_CHECK_HEADERS(des.h,,
3528 +- AC_CHECK_HEADERS(kerberosIV/des.h,,
3529 +- AC_CHECK_HEADERS(kerberos/des.h)))
3530 +- AC_CHECK_HEADERS(krb.h,,
3531 +- AC_CHECK_HEADERS(kerberosIV/krb.h,,
3532 +- AC_CHECK_HEADERS(kerberos/krb.h)))
3533 ++ AC_CHECK_HEADERS([des.h kerberosIV/des.h kerberos/des.h], break)
3534 ++ AC_CHECK_HEADERS([krb.h kerberosIV/krb.h kerberos/krb.h], break)
3536 + AC_CHECK_HEADERS(com_err.h)
3538 +@@ -2326,7 +2323,7 @@
3539 + # the C preprocessor to some helpful value like 1, or maybe the empty
3540 + # string. Needless to say consequent macro substitutions are less
3541 + # than conducive to the makefile finding the correct directory.
3542 +-undefs="`echo $top_srcdir $configuration $canonical |
3543 ++undefs="`echo $ac_top_srcdir $configuration $canonical |
3544 + sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
3545 + -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
3547 +@@ -2350,7 +2347,7 @@
3548 + sed -e '1,/start of cpp stuff/d'\
3549 + -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
3550 + < Makefile.c > junk.c
3551 +- $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
3552 ++ $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
3553 + sed -e 's/^ / /' -e '/^#/d' -e '/^[
\f]*$/d' > junk2.c
3554 + cat junk1.c junk2.c > Makefile.new
3555 + rm -f junk.c junk1.c junk2.c
3556 +@@ -2366,7 +2363,7 @@
3557 + sed -e '1,/start of cpp stuff/d'\
3558 + -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
3559 + < Makefile.c > junk.c
3560 +- $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
3561 ++ $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
3562 + sed -e 's/^ / /' -e '/^#/d' -e '/^[
\f]*$/d' > junk2.c
3563 + cat junk1.c junk2.c > Makefile.new
3564 + rm -f junk.c junk1.c junk2.c
3565 +@@ -2374,9 +2371,9 @@
3566 + mv -f Makefile.new Makefile
3569 +-if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then
3570 ++if test ! -f src/.gdbinit && test -f $ac_top_srcdir/src/.gdbinit; then
3571 + echo creating src/.gdbinit
3572 +- echo source $top_srcdir/src/.gdbinit > src/.gdbinit
3573 ++ echo source $ac_top_srcdir/src/.gdbinit > src/.gdbinit
3576 + # This is how we know whether to re-run configure in certain cases.
3577 --- emacs-21.3.orig/debian/patches/save-buffer.dpatch
3578 +++ emacs-21.3/debian/patches/save-buffer.dpatch
3581 +## save-buffer.dpatch by Jerome Marant <jerome@debian.org>
3583 +## DP: ** Fixes cases where Emacs does not rename a backup file
3584 +## DP: to the original one when the coding system of the buffer
3585 +## DP: has changed and saving has been canceled.
3586 +## DP: Status: has been incorporated upstream
3587 +## DP: Date: Sun, 26 Oct 2003 17:48:46 +0100
3589 +if [ $# -ne 1 ]; then
3590 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3594 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3595 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3598 + -patch) patch $patch_opts -p1 < $0;;
3599 + -unpatch) patch $patch_opts -p1 -R < $0;;
3601 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3608 +diff -urNad /home/jerome/pkg/emacs21/svn/emacs21/lisp/files.el emacs21/lisp/files.el
3609 +--- /home/jerome/pkg/emacs21/svn/emacs21/lisp/files.el 2003-10-01 20:01:28.000000000 +0200
3610 ++++ emacs21/lisp/files.el 2003-10-26 17:45:31.000000000 +0100
3611 +@@ -2207,7 +2207,8 @@
3612 + (copy-file real-file-name backupname t t)))
3613 + ;; rename-file should delete old backup.
3614 + (rename-file real-file-name backupname t)
3615 +- (setq setmodes (file-modes backupname)))
3617 ++ (cons (file-modes backupname) backupname)))
3619 + ;; If trouble writing the backup, write it in ~.
3620 + (setq backupname (expand-file-name
3621 +@@ -2682,7 +2683,7 @@
3622 + (nthcdr 10 (file-attributes buffer-file-name)))
3624 + (condition-case ()
3625 +- (set-file-modes buffer-file-name setmodes)
3626 ++ (set-file-modes buffer-file-name (car setmodes))
3628 + ;; If the auto-save file was recent before this command,
3630 +@@ -2760,7 +2761,8 @@
3631 + ;; Since we have created an entirely new file
3632 + ;; and renamed it, make sure it gets the
3633 + ;; right permission bits set.
3634 +- (setq setmodes (file-modes buffer-file-name))
3635 ++ (setq setmodes (or setmodes (cons (file-modes buffer-file-name)
3636 ++ buffer-file-name)))
3637 + ;; We succeeded in writing the temp file,
3639 + (rename-file tempname buffer-file-name t))
3640 +@@ -2770,10 +2772,18 @@
3641 + ;; (setmodes is set) because that says we're superseding.
3642 + (cond ((and tempsetmodes (not setmodes))
3643 + ;; Change the mode back, after writing.
3644 +- (setq setmodes (file-modes buffer-file-name))
3645 +- (set-file-modes buffer-file-name (logior setmodes 128))))
3646 +- (write-region (point-min) (point-max)
3647 +- buffer-file-name nil t buffer-file-truename)))
3648 ++ (setq setmodes (cons (file-modes buffer-file-name) buffer-file-name))
3649 ++ (set-file-modes buffer-file-name (logior (car setmodes) 128))))
3653 ++ (write-region (point-min) (point-max)
3654 ++ buffer-file-name nil t buffer-file-truename)
3655 ++ (setq success t))
3656 ++ ;; If we get an error writing the new file, and we made
3657 ++ ;; the backup by renaming, undo the backing-up.
3658 ++ (and setmodes (not success)
3659 ++ (rename-file (cdr setmodes) buffer-file-name))))))
3662 + (defun save-some-buffers (&optional arg pred)
3663 --- emacs-21.3.orig/debian/patches/hurd-libio-glibc.dpatch
3664 +++ emacs-21.3/debian/patches/hurd-libio-glibc.dpatch
3667 +## hurd-libio-glibc.dpatch by Jerome Marant <jerome@debian.org>
3669 +## DP: ** Support for libio-based (instead of stdio) glibc
3670 +## DP: on Hurd systems has been added.
3671 +## DP: Status: has been incorporated upstream
3672 +## DP: Author: Marcus Brinkmann <marcus@gnu.org>
3673 +## DP: Date: Tue, 16 Apr 2002 18:55:03 -0400
3675 +if [ $# -ne 1 ]; then
3676 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3680 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3681 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3684 + -patch) patch $patch_opts -p1 < $0;;
3685 + -unpatch) patch $patch_opts -p1 -R < $0;;
3687 + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3694 +diff -urNad /home/jerome/pkg/emacs21/svn/emacs/src/s/gnu.h emacs/src/s/gnu.h
3695 +--- /home/jerome/pkg/emacs21/svn/emacs/src/s/gnu.h 2003-09-26 19:50:09.000000000 +0200
3696 ++++ emacs/src/s/gnu.h 2003-09-27 15:01:16.000000000 +0200
3698 + #define WAIT_USE_INT
3699 + #define HAVE_UNION_WAIT
3702 ++#include <stdio.h> /* Get the definition of _IO_STDIO_H. */
3703 ++#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
3704 ++/* new C libio names */
3705 ++#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
3706 ++ ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
3710 + /* GNU needs its own crt0, and libc defines data_start. */
3711 + #define ORDINARY_LINK
3712 + #define DATA_START ({ extern int data_start; (char *) &data_start; })
3713 --- emacs-21.3.orig/debian/emacs-bin-common.postrm
3714 +++ emacs-21.3/debian/emacs-bin-common.postrm
3720 +MAJOR=@MAJOR_VERSION@
3721 +MINOR=@MINOR_VERSION@
3722 +FULL=@FULL_VERSION@
3723 +MOVEMAIL_BIN=@MOVEMAIL_BIN@
3725 +# Legacy removal...
3726 +if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
3727 + suidunregister -s emacs${MAJOR} ${MOVEMAIL_BIN}
3731 --- emacs-21.3.orig/debian/README.in
3732 +++ emacs-21.3/debian/README.in
3736 + ** The Debian copy of the upstream source contains no .elc files.
3738 + The .elc files have been removed because we always regenerate
3739 + them and because Emacs modifies them in the source tree during
3740 + the build process, even when using a VPATH build. This means
3741 + that a "make clean" can't easily return the tree to the
3742 + upstream state, resulting in a giant Debian binary diff. There
3743 + are other solutions if this turns out to be a problem. If
3744 + nothing else, we can keep the current infrastructure and just
3745 + add the .elc files to protected_files in debian/rules.
3746 + Removing the .elc files doesn't affect whether or not our
3747 + source archive would match the upstream md5sum because we
3748 + have to repackage it anyway to add leim support.
3750 + ** The -i icon is the Emacs GNU.
3752 + ** Those who prefer the old-style scrollbars can edit debian/rules
3754 + If you prefer the old-style, non-toolkit scrollbars, just edit
3755 + debian/rules to uncomment the --without-toolkit-scrollbars line
3758 +@@PATCH_LIST_HERE@@
3762 +outline-regexp: " *\\*+"
3765 --- emacs-21.3.orig/debian/emacs.desktop
3766 +++ emacs-21.3/debian/emacs.desktop
3771 +Name=Emacs @MAJOR_VERSION@ (X11)
3773 +Comment=GNU Emacs @MAJOR_VERSION@ Text Editor
3774 +Exec=/usr/bin/emacs@MAJOR_VERSION@
3775 +TryExec=emacs@MAJOR_VERSION@
3778 +Icon=/usr/share/emacs/@FULL_VERSION@/etc/gnu-32x32.xpm
3779 +Categories=Application;Utility;TextEditor;
3780 --- emacs-21.3.orig/debian/build-binary-pkg
3781 +++ emacs-21.3/debian/build-binary-pkg
3788 +test "${pkgname}" || (echo pkgname unset; false)
3789 +test "${pkgdir}" || (echo pkgdir unset; false)
3790 +test "${tmppkgdir}" || (echo pkgdir unset; false)
3791 +test "${runver}" || (echo runver unset; false)
3792 +test "${majorver}" || (echo majorver unset; false)
3793 +test "${minorver}" || (echo minorver unset; false)
3794 +test "${target}" || (echo target unset; false)
3795 +test "${xsupport}" || (echo xsupport unset; false)
3797 +install -d debian/${pkgdir}
3798 +install -d debian/${pkgdir}/usr/bin/
3799 +mv debian/${tmppkgdir}/usr/bin/emacs-* \
3800 + debian/${pkgdir}/usr/bin/emacs${majorver}-${xsupport}
3801 +(cd debian/${pkgdir}/usr/bin/ \
3802 + && ln -s emacs${majorver}-${xsupport} emacs${majorver})
3804 +install -d debian/${pkgdir}/usr/share/emacs/${runver}/etc/
3806 +mv debian/${tmppkgdir}/usr/share/emacs/${runver}/etc/DOC-${runver}.1 \
3807 + debian/${pkgdir}/usr/share/emacs/${runver}/etc/
3809 +# move files to the build directory
3810 +install -d debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/
3811 +mv debian/${tmppkgdir}/usr/lib/emacs/${runver}/${target}/fns-*.el \
3812 + debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/
3814 +# rename fns-*.el and elc files
3815 +(cd debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/ \
3816 + && test `ls fns-*.el | wc -l` -eq 1 \
3818 + `echo fns-*.el | perl -pe "s/^fns-(.*)\.el\$/fns-\\$1-${xsupport}.el/ or die;"`)
3819 +(cd debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/ \
3820 + && test `ls fns-*.elc | wc -l` -eq 1 \
3822 + `echo fns-*.elc | perl -pe "s/^fns-(.*)\.elc\$/fns-\\$1-${xsupport}.elc/ or die;"`)
3824 +rm -rf debian/${tmppkgdir}
3827 +test -f debian/${pkgdir}/usr/bin/emacs${majorver}-${xsupport}
3829 +if test "${xsupport}" = x
3831 + # install desktop entry
3832 + install -d debian/${pkgdir}/usr/share/applications
3833 + install -m 0644 debian/emacs${major_ver}.desktop \
3834 + debian/${pkgdir}/usr/share/applications
3837 +# Can this just be a symlink to the emacsXY-common's doc dir?
3838 +# /usr/share/doc/emacs${majorver} directory
3839 +install -d debian/${pkgdir}/usr/share/doc/${pkgname}
3840 +cp debian/changelog debian/${pkgdir}/usr/share/doc/${pkgname}/changelog.Debian
3841 +cp debian/README.binpkg debian/${pkgdir}/usr/share/doc/${pkgname}/README.Debian
3842 +find debian/${pkgdir}/usr/share/doc/${pkgname} -type f | xargs gzip -9v
3843 +cp debian/copyright debian/${pkgdir}/usr/share/doc/${pkgname}
3846 +install -d debian/${pkgdir}/usr/lib/menu
3847 +cp debian/menu-${pkgname} debian/${pkgdir}/usr/lib/menu/${pkgname}
3849 +# Mangle permissions to conform.
3850 +chown -R root.root debian/${pkgdir}
3851 +find debian/${pkgdir} -type d | xargs chmod 755
3852 +find debian/${pkgdir} -not -type d -a -not -type l | xargs chmod 644
3853 +chmod 755 debian/${pkgdir}/usr/bin/*
3856 +install -d debian/${pkgdir}/DEBIAN
3857 +install -m 755 debian/emacs.postinst debian/${pkgdir}/DEBIAN/postinst
3858 +install -m 755 debian/emacs.prerm debian/${pkgdir}/DEBIAN/prerm
3859 +install -m 755 debian/emacs.postrm debian/${pkgdir}/DEBIAN/postrm
3864 + -e "s/\@PKG_NAME\@/${pkgname}/go;" \
3865 + -e "s/\@MAJOR_VERSION\@/${majorver}/go;" \
3866 + -e "s/\@X_SUPPORT\@/${xsupport}/go;" \
3867 + -e "s/\@BIN_PRIORITY\@/${BIN_PRIORITY}/go;" \
3869 + debian/${pkgdir}/DEBIAN/postinst \
3870 + debian/${pkgdir}/DEBIAN/prerm \
3871 + debian/${pkgdir}/DEBIAN/postrm
3873 +dpkg-shlibdeps debian/${pkgdir}/usr/bin/*
3875 +# Generate DEBIAN/md5sums file
3876 +test -e DEBIAN/md5sums && exit 1
3877 +(cd debian/${pkgdir} &&
3878 + for dir in `ls | grep -v DEBIAN`
3880 + find "${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums
3882 +chmod 0644 debian/${pkgdir}/DEBIAN/md5sums
3884 +dpkg-gencontrol -isp -p${pkgname} -Pdebian/${pkgdir}
3885 +dpkg --build debian/${pkgdir} ..
3886 --- emacs-21.3.orig/debian/emacs.postinst
3887 +++ emacs-21.3/debian/emacs.postinst
3893 +MAJOR=@MAJOR_VERSION@
3895 +update-alternatives \
3896 + --install /usr/bin/emacs emacs \
3897 + /usr/bin/emacs${MAJOR}-@X_SUPPORT@ @BIN_PRIORITY@ \
3898 + --slave /usr/share/man/man1/emacs.1.gz emacs.1.gz \
3899 + /usr/share/man/man1/emacs.1emacs${MAJOR}.gz
3901 +update-alternatives \
3902 + --install /usr/bin/editor editor \
3903 + /usr/bin/emacs${MAJOR} 0
3905 +if test -x /usr/bin/update-menus; then update-menus; fi
3907 +# emacsen-common registration.
3908 +/usr/lib/emacsen-common/emacs-install emacs${MAJOR}
3911 --- emacs-21.3.orig/debian/README.add-on-package-maintainers
3912 +++ emacs-21.3/debian/README.add-on-package-maintainers
3914 +Please see /usr/share/doc/emacsen-common/debian-emacs-policy.gz for
3915 +information on how to properly structure your emacs add-on packages.
3916 --- emacs-21.3.orig/debian/emacs-el.prerm
3917 +++ emacs-21.3/debian/emacs-el.prerm
3923 +MAJOR=@MAJOR_VERSION@
3924 +MINOR=@MINOR_VERSION@
3925 +FULL=@FULL_VERSION@
3927 +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/emacs${MAJOR}-el ]
3929 + rm -f /usr/doc/emacs${MAJOR}-el
3931 --- emacs-21.3.orig/debian/emacs.postrm
3932 +++ emacs-21.3/debian/emacs.postrm
3938 +if test -x /usr/bin/update-menus; then update-menus; fi
3941 --- emacs-21.3.orig/debian/autofiles.diff
3942 +++ emacs-21.3/debian/autofiles.diff
3944 +diff -ruN -x autom4te.cache autodiff-old/aclocal.m4 autodiff-new/aclocal.m4
3945 +--- autodiff-old/aclocal.m4 2004-02-25 19:14:52.000000000 -0600
3946 ++++ autodiff-new/aclocal.m4 2004-04-06 17:47:06.000000000 -0500
3949 +-% Copyright (C) 2000, 2001 Free Software Foundation, Inc.
3951 +-% This file is part of GNU Emacs.
3953 +-% GNU Emacs is free software; you can redistribute it and/or modify
3954 +-% it under the terms of the GNU General Public License as published by
3955 +-% the Free Software Foundation; either version 2, or (at your option)
3956 +-% any later version.
3958 +-% GNU Emacs is distributed in the hope that it will be useful,
3959 +-% but WITHOUT ANY WARRANTY; without even the implied warranty of
3960 +-% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3961 +-% GNU General Public License for more details.
3963 +-% You should have received a copy of the GNU General Public License
3964 +-% along with GNU Emacs; see the file COPYING. If not, write to the
3965 +-% Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3966 +-% Boston, MA 02111-1307, USA.
3968 +-ifelse(_AC_VERSION_COMPARE(AC_ACVERSION, [2.14]), -1,
3972 +-# If the C compiler in not in ANSI C mode by default, try to add an
3973 +-# option to output variable @code{CC} to make it so. This macro tries
3974 +-# various options that select ANSI C on some system or another. It
3975 +-# considers the compiler to be in ANSI C mode if it handles function
3976 +-# prototypes correctly.
3977 +-AC_DEFUN(AC_PROG_CC_STDC,
3978 +-[AC_REQUIRE([AC_PROG_CC])dnl
3979 +-AC_BEFORE([$0], [AC_C_INLINE])dnl
3980 +-AC_BEFORE([$0], [AC_C_CONST])dnl
3981 +-dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
3982 +-dnl a magic option to avoid problems with ANSI preprocessor commands
3984 +-dnl FIXME: can't do this because then AC_AIX won't work due to a
3985 +-dnl circular dependency.
3986 +-dnl AC_BEFORE([$0], [AC_PROG_CPP])
3987 +-AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
3988 +-AC_CACHE_VAL(ac_cv_prog_cc_stdc,
3989 +-[ac_cv_prog_cc_stdc=no
3991 +-# Don't try gcc -ansi; that turns off useful extensions and
3992 +-# breaks some systems' header files.
3993 +-# AIX -qlanglvl=ansi
3994 +-# Ultrix and OSF/1 -std1
3995 +-# HP-UX 10.20 and later -Ae
3996 +-# HP-UX older versions -Aa -D_HPUX_SOURCE
3997 +-# SVR4 -Xc -D__EXTENSIONS__
3998 +-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4000 +- CC="$ac_save_CC $ac_arg"
4002 +-[#include <stdarg.h>
4003 +-#include <stdio.h>
4004 +-#include <sys/types.h>
4005 +-#include <sys/stat.h>
4006 +-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4007 +-struct buf { int x; };
4008 +-FILE * (*rcsopen) (struct buf *, struct stat *, int);
4009 +-static char *e (p, i)
4015 +-static char *f (char * (*g) (char **, int), char **p, ...)
4020 +- s = g (p, va_arg (v,int));
4024 +-int test (int i, double x);
4025 +-struct s1 {int (*f) (int a);};
4026 +-struct s2 {int (*f) (double a);};
4027 +-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4030 +-[return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];],
4031 +-[ac_cv_prog_cc_stdc="$ac_arg"; break])
4035 +-case "x$ac_cv_prog_cc_stdc" in
4037 +- AC_MSG_RESULT([none needed]) ;;
4039 +- AC_MSG_RESULT($ac_cv_prog_cc_stdc)
4040 +- CC="$CC $ac_cv_prog_cc_stdc" ;;
4042 +-])# AC_PROG_CC_STDC
4046 +-AC_DEFUN(AC_FUNC_MKTIME,
4047 +-[AC_REQUIRE([AC_HEADER_TIME])dnl
4048 +-AC_CHECK_HEADERS(sys/time.h unistd.h)
4049 +-AC_CHECK_FUNCS(alarm)
4050 +-AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime,
4052 +-[/* Test program from Paul Eggert (eggert@twinsun.com)
4053 +- and Tony Leneis (tony@plaza.ds.adp.com). */
4054 +-#if TIME_WITH_SYS_TIME
4055 +-# include <sys/time.h>
4056 +-# include <time.h>
4058 +-# if HAVE_SYS_TIME_H
4059 +-# include <sys/time.h>
4061 +-# include <time.h>
4066 +-# include <unistd.h>
4070 +-# define alarm(X) /* empty */
4073 +-/* Work around redefinition to rpl_putenv by other config tests. */
4076 +-static time_t time_t_max;
4078 +-/* Values we'll use to set the TZ environment variable. */
4079 +-static const char *const tz_strings[] = {
4080 +- (const char *) 0, "TZ=GMT0", "TZ=JST-9",
4081 +- "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
4083 +-#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
4085 +-/* Fail if mktime fails to convert a date in the spring-forward gap.
4086 +- Based on a problem report from Andreas Jaeger. */
4088 +-spring_forward_gap ()
4090 +- /* glibc (up to about 1998-10-07) failed this test) */
4093 +- /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
4094 +- instead of "TZ=America/Vancouver" in order to detect the bug even
4095 +- on systems that don't support the Olson extension, or don't have the
4096 +- full zoneinfo tables installed. */
4097 +- putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
4105 +- tm.tm_isdst = -1;
4106 +- if (mktime (&tm) == (time_t)-1)
4115 +- if ((lt = localtime (&now)) && mktime (lt) != now)
4117 +- now = time_t_max - now;
4118 +- if ((lt = localtime (&now)) && mktime (lt) != now)
4125 +- /* Based on code from Ariel Faigon. */
4133 +- tm.tm_isdst = -1;
4135 +- if (tm.tm_mon != 2 || tm.tm_mday != 31)
4145 +- tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
4146 +- now = mktime (&tm);
4147 +- if (now != (time_t) -1)
4149 +- struct tm *lt = localtime (&now);
4151 +- && lt->tm_year == tm.tm_year
4152 +- && lt->tm_mon == tm.tm_mon
4153 +- && lt->tm_mday == tm.tm_mday
4154 +- && lt->tm_hour == tm.tm_hour
4155 +- && lt->tm_min == tm.tm_min
4156 +- && lt->tm_sec == tm.tm_sec
4157 +- && lt->tm_yday == tm.tm_yday
4158 +- && lt->tm_wday == tm.tm_wday
4159 +- && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
4160 +- == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
4171 +- /* This test makes some buggy mktime implementations loop.
4172 +- Give up after 60 seconds; a mktime slower than that
4173 +- isn't worth using anyway. */
4176 +- for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
4179 +- delta = time_t_max / 997; /* a suitable prime number */
4180 +- for (i = 0; i < N_STRINGS; i++)
4182 +- if (tz_strings[i])
4183 +- putenv (tz_strings[i]);
4185 +- for (t = 0; t <= time_t_max - delta; t += delta)
4187 +- mktime_test ((time_t) 60 * 60);
4188 +- mktime_test ((time_t) 60 * 60 * 24);
4190 +- for (j = 1; 0 < j; j *= 2)
4191 +- bigtime_test (j);
4192 +- bigtime_test (j - 1);
4195 +- spring_forward_gap ();
4198 +-ac_cv_func_working_mktime=yes, ac_cv_func_working_mktime=no,
4199 +-ac_cv_func_working_mktime=no)])
4200 +-if test $ac_cv_func_working_mktime = no; then
4201 +- LIBOBJS="$LIBOBJS mktime.${ac_objext}"
4203 +-AC_SUBST(LIBOBJS)dnl
4204 +-])# AC_FUNC_MKTIME
4208 +-# Note that, unlike const, #defining volatile to be the empty string can
4209 +-# actually turn a correct program into an incorrect one, since removing
4210 +-# uses of volatile actually grants the compiler permission to perform
4211 +-# optimizations that could break the user's code. So, do not #define
4212 +-# volatile away unless it is really necessary to allow the user's code
4213 +-# to compile cleanly. Benign compiler failures should be tolerated.
4214 +-AC_DEFUN(AC_C_VOLATILE,
4215 +-[AC_REQUIRE([AC_PROG_CC_STDC])dnl
4216 +-AC_CACHE_CHECK([for working volatile], ac_cv_c_volatile,
4217 +-[AC_TRY_COMPILE(,[
4219 +-int * volatile y;],
4220 +-ac_cv_c_volatile=yes, ac_cv_c_volatile=no)])
4221 +-if test $ac_cv_c_volatile = no; then
4222 +- AC_DEFINE(volatile,,
4223 +- [Define to empty if the keyword `volatile' does not work.
4224 +- Warning: valid code using `volatile' can become incorrect
4225 +- without. Disable with care.])
4231 +-# Check if the C compiler supports prototypes, included if it needs
4233 +-AC_DEFUN(AC_C_PROTOTYPES,
4234 +-[AC_REQUIRE([AC_PROG_CC_STDC])dnl
4235 +-AC_REQUIRE([AC_PROG_CPP])dnl
4236 +-AC_MSG_CHECKING([for function prototypes])
4237 +-if test "$ac_cv_prog_cc_stdc" != no; then
4238 +- AC_MSG_RESULT(yes)
4239 +- AC_DEFINE(PROTOTYPES, 1,
4240 +- [Define if the compiler supports function prototypes.])
4242 +- AC_MSG_RESULT(no)
4244 +-])# AC_C_PROTOTYPES
4246 +-dnl The following is a bit different from the prerelease autoconf at
4247 +-dnl this time since that requires extra definitions.
4249 +-dnl By default, many hosts won't let programs access large files;
4250 +-dnl one must use special compiler options to get large-file access to work.
4251 +-dnl For more details about this brain damage please see:
4252 +-dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
4254 +-dnl Written by Paul Eggert <eggert@twinsun.com>.
4256 +-dnl Internal subroutine of AC_SYS_LARGEFILE.
4257 +-dnl AC_SYS_LARGEFILE_TEST_INCLUDES
4258 +-AC_DEFUN(AC_SYS_LARGEFILE_TEST_INCLUDES,
4259 +- [[#include <sys/types.h>
4260 +- int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
4263 +-dnl Internal subroutine of AC_SYS_LARGEFILE.
4264 +-dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, CACHE-VAR, COMMENT, INCLUDES, FUNCTION-BODY)
4265 +-AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
4266 +- [AC_CACHE_CHECK([for $1 value needed for large files], $3,
4268 +- AC_TRY_COMPILE([$5],
4271 +- [AC_TRY_COMPILE([#define $1 $2]
4276 +- if test "[$]$3" != no; then
4277 +- AC_DEFINE_UNQUOTED([$1], [$]$3, [$4])
4280 +-AC_DEFUN(AC_SYS_LARGEFILE,
4281 +- [AC_REQUIRE([AC_PROG_CC])
4282 +- AC_ARG_ENABLE(largefile,
4283 +- [ --disable-largefile omit support for large files])
4284 +- if test "$enable_largefile" != no; then
4286 +- AC_CACHE_CHECK([for special C compiler options needed for large files],
4287 +- ac_cv_sys_largefile_CC,
4288 +- [ac_cv_sys_largefile_CC=no
4289 +- if test "$GCC" != yes; then
4290 +- # IRIX 6.2 and later do not support large files by default,
4291 +- # so use the C compiler's -n32 option if that helps.
4292 +- AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, , ,
4293 +- [ac_save_CC="$CC"
4295 +- AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, ,
4296 +- ac_cv_sys_largefile_CC=' -n32')
4297 +- CC="$ac_save_CC"])
4299 +- if test "$ac_cv_sys_largefile_CC" != no; then
4300 +- CC="$CC$ac_cv_sys_largefile_CC"
4303 +- AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64,
4304 +- ac_cv_sys_file_offset_bits,
4305 +- [Number of bits in a file offset, on hosts where this is settable.],
4306 +- AC_SYS_LARGEFILE_TEST_INCLUDES)
4307 +- AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1,
4308 +- ac_cv_sys_large_files,
4309 +- [Define for large files, on AIX-style hosts.]
4310 +- AC_SYS_LARGEFILE_TEST_INCLUDES)
4314 +-AC_DEFUN(AC_FUNC_FSEEKO,
4315 +- [AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1,
4316 +- ac_cv_sys_largefile_source,
4317 +- [Define to make fseeko visible on some hosts (e.g. glibc 2.2).],
4318 +- [#include <stdio.h>], [return !fseeko;])
4319 +- # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4320 +- # in glibc 2.1.3, but that breaks too many other things.
4321 +- # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4323 +- AC_CACHE_CHECK([for fseeko], ac_cv_func_fseeko,
4324 +- [ac_cv_func_fseeko=no
4325 +- AC_TRY_LINK([#include <stdio.h>],
4326 +- [return fseeko && fseeko (stdin, 0, 0);],
4327 +- [ac_cv_func_fseeko=yes])])
4328 +- if test $ac_cv_func_fseeko != no; then
4329 +- AC_DEFINE(HAVE_FSEEKO, 1,
4330 +- [Define if fseeko (and presumably ftello) exists and is declared.])
4333 +-undefine([AC_FUNC_MMAP])dnl
4334 +-dnl The autoconf 2.13 version loses on OSF, at least,
4335 +-dnl by messing up the declaration of malloc.
4336 +-AC_DEFUN([AC_FUNC_MMAP],
4337 +-[AC_CHECK_HEADERS(stdlib.h unistd.h sys/stat.h)
4338 +-AC_CHECK_FUNCS(getpagesize)
4339 +-AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped,
4341 +-[/* Thanks to Mike Haertel and Jim Avera for this test.
4342 +- Here is a matrix of mmap possibilities:
4343 +- mmap private not fixed
4344 +- mmap private fixed at somewhere currently unmapped
4345 +- mmap private fixed at somewhere already mapped
4346 +- mmap shared not fixed
4347 +- mmap shared fixed at somewhere currently unmapped
4348 +- mmap shared fixed at somewhere already mapped
4349 +- For private mappings, we should verify that changes cannot be read()
4350 +- back from the file, nor mmap's back from the file at a different
4351 +- address. (There have been systems where private was not correctly
4352 +- implemented like the infamous i386 svr4.0, and systems where the
4353 +- VM page cache was not coherent with the file system buffer cache
4354 +- like early versions of FreeBSD and possibly contemporary NetBSD.)
4355 +- For shared mappings, we should conversely verify that changes get
4356 +- propogated back to all the places they're supposed to be.
4358 +- Grep wants private fixed already mapped.
4359 +- The main things grep needs to know about mmap are:
4360 +- * does it exist and is it safe to write into the mmap'd area
4361 +- * how to use it (BSD variants) */
4362 +-#include <sys/types.h>
4363 +-#include <fcntl.h>
4364 +-#include <sys/mman.h>
4366 +-#if STDC_HEADERS || HAVE_STDLIB_H
4367 +-# include <stdlib.h>
4372 +-# include <unistd.h>
4374 +-#if HAVE_SYS_STAT_H
4375 +-# include <sys/stat.h>
4378 +-/* This mess was copied from the GNU getpagesize.h. */
4379 +-#if !HAVE_GETPAGESIZE
4380 +-/* Assume that all systems that can run configure have sys/param.h. */
4381 +-# if !HAVE_SYS_PARAM_H
4382 +-# define HAVE_SYS_PARAM_H 1
4385 +-# ifdef _SC_PAGESIZE
4386 +-# define getpagesize() sysconf(_SC_PAGESIZE)
4387 +-# else /* no _SC_PAGESIZE */
4388 +-# if HAVE_SYS_PARAM_H
4389 +-# include <sys/param.h>
4390 +-# ifdef EXEC_PAGESIZE
4391 +-# define getpagesize() EXEC_PAGESIZE
4392 +-# else /* no EXEC_PAGESIZE */
4394 +-# define getpagesize() NBPG * CLSIZE
4397 +-# endif /* no CLSIZE */
4398 +-# else /* no NBPG */
4400 +-# define getpagesize() NBPC
4401 +-# else /* no NBPC */
4403 +-# define getpagesize() PAGESIZE
4404 +-# endif /* PAGESIZE */
4405 +-# endif /* no NBPC */
4406 +-# endif /* no NBPG */
4407 +-# endif /* no EXEC_PAGESIZE */
4408 +-# else /* no HAVE_SYS_PARAM_H */
4409 +-# define getpagesize() 8192 /* punt totally */
4410 +-# endif /* no HAVE_SYS_PARAM_H */
4411 +-# endif /* no _SC_PAGESIZE */
4413 +-#endif /* no HAVE_GETPAGESIZE */
4418 +- char *data, *data2, *data3;
4422 +- pagesize = getpagesize ();
4424 +- /* First, make a file with some known garbage in it. */
4425 +- data = (char *) malloc (pagesize);
4428 +- for (i = 0; i < pagesize; ++i)
4429 +- *(data + i) = rand ();
4431 +- fd = creat ("conftestmmap", 0600);
4434 +- if (write (fd, data, pagesize) != pagesize)
4438 +- /* Next, try to mmap the file at a fixed address which already has
4439 +- something else allocated at it. If we can, also make sure that
4440 +- we see the same garbage. */
4441 +- fd = open ("conftestmmap", O_RDWR);
4444 +- data2 = (char *) malloc (2 * pagesize);
4447 +- data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4448 +- if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4449 +- MAP_PRIVATE | MAP_FIXED, fd, 0L))
4451 +- for (i = 0; i < pagesize; ++i)
4452 +- if (*(data + i) != *(data2 + i))
4455 +- /* Finally, make sure that changes to the mapped area do not
4456 +- percolate back to the file as seen by read(). (This is a bug on
4457 +- some variants of i386 svr4.0.) */
4458 +- for (i = 0; i < pagesize; ++i)
4459 +- *(data2 + i) = *(data2 + i) + 1;
4460 +- data3 = (char *) malloc (pagesize);
4463 +- if (read (fd, data3, pagesize) != pagesize)
4465 +- for (i = 0; i < pagesize; ++i)
4466 +- if (*(data + i) != *(data3 + i))
4469 +- unlink ("conftestmmap");
4471 +-}], ac_cv_func_mmap_fixed_mapped=yes, ac_cv_func_mmap_fixed_mapped=no,
4472 +-ac_cv_func_mmap_fixed_mapped=no)])
4473 +-if test $ac_cv_func_mmap_fixed_mapped = yes; then
4474 +- AC_DEFINE(HAVE_MMAP, 1,
4475 +- [Define if you have a working `mmap' system call.])
4480 +diff -ruN -x autom4te.cache autodiff-old/configure autodiff-new/configure
4481 +--- autodiff-old/configure 2004-02-25 19:14:52.000000000 -0600
4482 ++++ autodiff-new/configure 2004-04-06 17:47:16.000000000 -0500
4486 + # Guess values for system-dependent variables and create Makefiles.
4487 +-# Generated automatically using autoconf version 2.13
4488 +-# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
4489 ++# Generated by GNU Autoconf 2.59.
4491 ++# Copyright (C) 2003 Free Software Foundation, Inc.
4492 + # This configure script is free software; the Free Software Foundation
4493 + # gives unlimited permission to copy, distribute and modify it.
4494 ++## --------------------- ##
4495 ++## M4sh Initialization. ##
4496 ++## --------------------- ##
4498 ++# Be Bourne compatible
4499 ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4502 ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4503 ++ # is contrary to our usage. Disable this feature.
4504 ++ alias -g '${1+"$@"}'='"$@"'
4505 ++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4508 ++DUALCASE=1; export DUALCASE # for MKS sh
4510 ++# Support unset when possible.
4511 ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4518 ++# Work around bugs in pre-3.0 UWIN ksh.
4519 ++$as_unset ENV MAIL MAILPATH
4526 ++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4527 ++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4528 ++ LC_TELEPHONE LC_TIME
4530 ++ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4531 ++ eval $as_var=C; export $as_var
4533 ++ $as_unset $as_var
4537 ++# Required to use basename.
4538 ++if expr a : '\(a\)' >/dev/null 2>&1; then
4544 ++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4545 ++ as_basename=basename
4547 ++ as_basename=false
4551 ++# Name of the executable.
4552 ++as_me=`$as_basename "$0" ||
4553 ++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4554 ++ X"$0" : 'X\(//\)$' \| \
4555 ++ X"$0" : 'X\(/\)$' \| \
4556 ++ . : '\(.\)' 2>/dev/null ||
4558 ++ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4559 ++ /^X\/\(\/\/\)$/{ s//\1/; q; }
4560 ++ /^X\/\(\/\).*/{ s//\1/; q; }
4564 ++# PATH needs CR, and LINENO needs CR and PATH.
4565 ++# Avoid depending upon Character Ranges.
4566 ++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4567 ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4568 ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4569 ++as_cr_digits='0123456789'
4570 ++as_cr_alnum=$as_cr_Letters$as_cr_digits
4572 ++# The user is always right.
4573 ++if test "${PATH_SEPARATOR+set}" != set; then
4574 ++ echo "#! /bin/sh" >conf$$.sh
4575 ++ echo "exit 0" >>conf$$.sh
4576 ++ chmod +x conf$$.sh
4577 ++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4578 ++ PATH_SEPARATOR=';'
4586 ++ as_lineno_1=$LINENO
4587 ++ as_lineno_2=$LINENO
4588 ++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4589 ++ test "x$as_lineno_1" != "x$as_lineno_2" &&
4590 ++ test "x$as_lineno_3" = "x$as_lineno_2" || {
4591 ++ # Find who we are. Look in the path if we contain no path at all
4592 ++ # relative or not.
4594 ++ *[\\/]* ) as_myself=$0 ;;
4595 ++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 ++for as_dir in $PATH
4599 ++ test -z "$as_dir" && as_dir=.
4600 ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4605 ++ # We did not find ourselves, most probably we were run as `sh COMMAND'
4606 ++ # in which case we are not to be found in the path.
4607 ++ if test "x$as_myself" = x; then
4610 ++ if test ! -f "$as_myself"; then
4611 ++ { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
4612 ++ { (exit 1); exit 1; }; }
4614 ++ case $CONFIG_SHELL in
4616 ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 ++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4620 ++ test -z "$as_dir" && as_dir=.
4621 ++ for as_base in sh bash ksh sh5; do
4624 ++ if ("$as_dir/$as_base" -c '
4625 ++ as_lineno_1=$LINENO
4626 ++ as_lineno_2=$LINENO
4627 ++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4628 ++ test "x$as_lineno_1" != "x$as_lineno_2" &&
4629 ++ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4630 ++ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4631 ++ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4632 ++ CONFIG_SHELL=$as_dir/$as_base
4633 ++ export CONFIG_SHELL
4634 ++ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4642 ++ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4643 ++ # uniformly replaced by the line number. The first 'sed' inserts a
4644 ++ # line-number line before each line; the second 'sed' does the real
4645 ++ # work. The second script uses 'N' to pair each line-number line
4646 ++ # with the numbered line, and appends trailing '-' during
4647 ++ # substitution so that $LINENO is not a special case at line end.
4648 ++ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4649 ++ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4650 ++ sed '=' <$as_myself |
4655 ++ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4658 ++ s,^['$as_cr_digits']*\n,,
4659 ++ ' >$as_me.lineno &&
4660 ++ chmod +x $as_me.lineno ||
4661 ++ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4662 ++ { (exit 1); exit 1; }; }
4664 ++ # Don't try to exec as it changes $[0], causing all sort of problems
4665 ++ # (the dirname of $[0] is not the place where we might find the
4666 ++ # original and so on. Autoconf is especially sensible to this).
4667 ++ . ./$as_me.lineno
4668 ++ # Exit status is that of the last command.
4673 ++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4674 ++ *c*,-n*) ECHO_N= ECHO_C='
4676 ++ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4677 ++ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4680 ++if expr a : '\(a\)' >/dev/null 2>&1; then
4686 ++rm -f conf$$ conf$$.exe conf$$.file
4688 ++if ln -s conf$$.file conf$$ 2>/dev/null; then
4689 ++ # We could just check for DJGPP; but this test a) works b) is more generic
4690 ++ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4691 ++ if test -f conf$$.exe; then
4692 ++ # Don't use ln at all; we don't have any links
4697 ++elif ln conf$$.file conf$$ 2>/dev/null; then
4702 ++rm -f conf$$ conf$$.exe conf$$.file
4704 ++if mkdir -p . 2>/dev/null; then
4707 ++ test -d ./-p && rmdir ./-p
4711 ++as_executable_p="test -f"
4713 ++# Sed expression to map a string onto a valid CPP name.
4714 ++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4716 ++# Sed expression to map a string onto a valid variable name.
4717 ++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4723 ++# We need space, tab and new line, in precisely that order.
4732 ++# Name of the host.
4733 ++# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
4734 ++# so uname gets run too.
4735 ++ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
4740 ++# Initializations.
4742 + ac_default_prefix=/usr/local
4743 +-# Any additions from configure.in:
4745 +- --without-gcc don't use GCC to compile Emacs if GCC is found"
4747 +- --without-pop don't support POP mail retrieval with movemail"
4749 +- --with-kerberos support Kerberos-authenticated POP"
4751 +- --with-kerberos5 support Kerberos version 5 authenticated POP"
4753 +- --with-hesiod support Hesiod to get the POP server host"
4755 +- --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)"
4757 +- --with-xpm use -lXpm for displaying XPM images"
4759 +- --with-jpeg use -ljpeg for displaying JPEG images"
4761 +- --with-tiff use -ltiff for displaying TIFF images"
4763 +- --with-gif use -lungif for displaying GIF images"
4765 +- --with-png use -lpng for displaying PNG images"
4767 +- --without-toolkit-scroll-bars
4768 +- don't use Motif or Xaw3d scroll bars"
4770 +- --without-xim don't use X11 XIM"
4772 +- --disable-largefile omit support for large files"
4774 +- --with-x use the X Window System"
4775 ++ac_config_libobj_dir=.
4776 ++cross_compiling=no
4780 ++SHELL=${CONFIG_SHELL-/bin/sh}
4782 ++# Maximum number of lines to put in a shell here document.
4783 ++# This variable seems obsolete. It should probably be removed, and
4784 ++# only ac_max_sed_lines should be used.
4785 ++: ${ac_max_here_lines=38}
4787 ++# Identity of this package.
4792 ++PACKAGE_BUGREPORT=
4794 ++ac_unique_file="src/lisp.h"
4795 ++ac_config_libobj_dir=src
4796 ++# Factoring default headers for most tests.
4797 ++ac_includes_default="\
4798 ++#include <stdio.h>
4799 ++#if HAVE_SYS_TYPES_H
4800 ++# include <sys/types.h>
4802 ++#if HAVE_SYS_STAT_H
4803 ++# include <sys/stat.h>
4806 ++# include <stdlib.h>
4807 ++# include <stddef.h>
4809 ++# if HAVE_STDLIB_H
4810 ++# include <stdlib.h>
4814 ++# if !STDC_HEADERS && HAVE_MEMORY_H
4815 ++# include <memory.h>
4817 ++# include <string.h>
4819 ++#if HAVE_STRINGS_H
4820 ++# include <strings.h>
4822 ++#if HAVE_INTTYPES_H
4823 ++# include <inttypes.h>
4825 ++# if HAVE_STDINT_H
4826 ++# include <stdint.h>
4830 ++# include <unistd.h>
4833 ++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA YACC RANLIB ac_ct_RANLIB EGREP LIBSOUND SET_MAKE ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile MOVEMAIL_LOCK_LIBS LTLIBOBJS'
4836 + # Initialize some variables set by options.
4838 ++ac_init_version=false
4839 + # The variables have the same names as the options, with
4840 + # dashes changed to underlines.
4842 +-cache_file=./config.cache
4843 ++cache_file=/dev/null
4850 + program_prefix=NONE
4851 +@@ -60,10 +329,15 @@
4860 ++# Installation directory options.
4861 ++# These are left unexpanded so users can "make install exec_prefix=/foo"
4862 ++# and all the variables that are supposed to be based on exec_prefix
4863 ++# by default will actually change.
4864 ++# Use braces instead of parens because sh, perl, etc. also accept them.
4865 + bindir='${exec_prefix}/bin'
4866 + sbindir='${exec_prefix}/sbin'
4867 + libexecdir='${exec_prefix}/libexec'
4868 +@@ -77,17 +351,9 @@
4869 + infodir='${prefix}/info'
4870 + mandir='${prefix}/man'
4872 +-# Initialize some other variables.
4874 +-MFLAGS= MAKEFLAGS=
4875 +-SHELL=${CONFIG_SHELL-/bin/sh}
4876 +-# Maximum number of lines to put in a shell here document.
4877 +-ac_max_here_lines=12
4883 + # If the previous option needs an argument, assign it.
4884 + if test -n "$ac_prev"; then
4885 + eval "$ac_prev=\$ac_option"
4886 +@@ -95,59 +361,59 @@
4890 +- case "$ac_option" in
4891 +- -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
4894 ++ ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4896 + # Accept the important Cygnus configure options, so we can diagnose typos.
4898 +- case "$ac_option" in
4899 ++ case $ac_option in
4901 + -bindir | --bindir | --bindi | --bind | --bin | --bi)
4903 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4904 +- bindir="$ac_optarg" ;;
4905 ++ bindir=$ac_optarg ;;
4907 + -build | --build | --buil | --bui | --bu)
4909 ++ ac_prev=build_alias ;;
4910 + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
4911 +- build="$ac_optarg" ;;
4912 ++ build_alias=$ac_optarg ;;
4914 + -cache-file | --cache-file | --cache-fil | --cache-fi \
4915 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4916 + ac_prev=cache_file ;;
4917 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4918 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4919 +- cache_file="$ac_optarg" ;;
4920 ++ cache_file=$ac_optarg ;;
4922 ++ --config-cache | -C)
4923 ++ cache_file=config.cache ;;
4925 + -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4926 + ac_prev=datadir ;;
4927 + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4929 +- datadir="$ac_optarg" ;;
4930 ++ datadir=$ac_optarg ;;
4932 + -disable-* | --disable-*)
4933 +- ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
4934 ++ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
4935 + # Reject names that are not valid shell variable names.
4936 +- if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
4937 +- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
4939 +- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
4940 +- eval "enable_${ac_feature}=no" ;;
4941 ++ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
4942 ++ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
4943 ++ { (exit 1); exit 1; }; }
4944 ++ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
4945 ++ eval "enable_$ac_feature=no" ;;
4947 + -enable-* | --enable-*)
4948 +- ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
4949 ++ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
4950 + # Reject names that are not valid shell variable names.
4951 +- if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
4952 +- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
4954 +- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
4955 +- case "$ac_option" in
4957 ++ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
4958 ++ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
4959 ++ { (exit 1); exit 1; }; }
4960 ++ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
4961 ++ case $ac_option in
4962 ++ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
4963 + *) ac_optarg=yes ;;
4965 +- eval "enable_${ac_feature}='$ac_optarg'" ;;
4966 ++ eval "enable_$ac_feature='$ac_optarg'" ;;
4968 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4969 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4970 +@@ -156,95 +422,47 @@
4971 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4972 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4973 + | --exec=* | --exe=* | --ex=*)
4974 +- exec_prefix="$ac_optarg" ;;
4975 ++ exec_prefix=$ac_optarg ;;
4977 + -gas | --gas | --ga | --g)
4978 + # Obsolete; use --with-gas.
4981 +- -help | --help | --hel | --he)
4982 +- # Omit some internal or obsolete options to make the list less imposing.
4983 +- # This message is too long to be a string in the A/UX 3.1 sh.
4985 +-Usage: configure [options] [host]
4986 +-Options: [defaults in brackets after descriptions]
4988 +- --cache-file=FILE cache test results in FILE
4989 +- --help print this message
4990 +- --no-create do not create output files
4991 +- --quiet, --silent do not print \`checking...' messages
4992 +- --version print the version of autoconf that created configure
4993 +-Directory and file names:
4994 +- --prefix=PREFIX install architecture-independent files in PREFIX
4995 +- [$ac_default_prefix]
4996 +- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
4998 +- --bindir=DIR user executables in DIR [EPREFIX/bin]
4999 +- --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
5000 +- --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
5001 +- --datadir=DIR read-only architecture-independent data in DIR
5003 +- --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
5004 +- --sharedstatedir=DIR modifiable architecture-independent data in DIR
5006 +- --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
5007 +- --libdir=DIR object code libraries in DIR [EPREFIX/lib]
5008 +- --includedir=DIR C header files in DIR [PREFIX/include]
5009 +- --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
5010 +- --infodir=DIR info documentation in DIR [PREFIX/info]
5011 +- --mandir=DIR man documentation in DIR [PREFIX/man]
5012 +- --srcdir=DIR find the sources in DIR [configure dir or ..]
5013 +- --program-prefix=PREFIX prepend PREFIX to installed program names
5014 +- --program-suffix=SUFFIX append SUFFIX to installed program names
5015 +- --program-transform-name=PROGRAM
5016 +- run sed PROGRAM on installed program names
5020 +- --build=BUILD configure for building on BUILD [BUILD=HOST]
5021 +- --host=HOST configure for HOST [guessed]
5022 +- --target=TARGET configure for TARGET [TARGET=HOST]
5023 +-Features and packages:
5024 +- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
5025 +- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5026 +- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
5027 +- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
5028 +- --x-includes=DIR X include files are in DIR
5029 +- --x-libraries=DIR X library files are in DIR
5031 +- if test -n "$ac_help"; then
5032 +- echo "--enable and --with options recognized:$ac_help"
5035 ++ -help | --help | --hel | --he | -h)
5036 ++ ac_init_help=long ;;
5037 ++ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
5038 ++ ac_init_help=recursive ;;
5039 ++ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
5040 ++ ac_init_help=short ;;
5042 + -host | --host | --hos | --ho)
5044 ++ ac_prev=host_alias ;;
5045 + -host=* | --host=* | --hos=* | --ho=*)
5046 +- host="$ac_optarg" ;;
5047 ++ host_alias=$ac_optarg ;;
5049 + -includedir | --includedir | --includedi | --included | --include \
5050 + | --includ | --inclu | --incl | --inc)
5051 + ac_prev=includedir ;;
5052 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
5053 + | --includ=* | --inclu=* | --incl=* | --inc=*)
5054 +- includedir="$ac_optarg" ;;
5055 ++ includedir=$ac_optarg ;;
5057 + -infodir | --infodir | --infodi | --infod | --info | --inf)
5058 + ac_prev=infodir ;;
5059 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5060 +- infodir="$ac_optarg" ;;
5061 ++ infodir=$ac_optarg ;;
5063 + -libdir | --libdir | --libdi | --libd)
5065 + -libdir=* | --libdir=* | --libdi=* | --libd=*)
5066 +- libdir="$ac_optarg" ;;
5067 ++ libdir=$ac_optarg ;;
5069 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
5070 + | --libexe | --libex | --libe)
5071 + ac_prev=libexecdir ;;
5072 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
5073 + | --libexe=* | --libex=* | --libe=*)
5074 +- libexecdir="$ac_optarg" ;;
5075 ++ libexecdir=$ac_optarg ;;
5077 + -localstatedir | --localstatedir | --localstatedi | --localstated \
5078 + | --localstate | --localstat | --localsta | --localst \
5079 +@@ -253,19 +471,19 @@
5080 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5081 + | --localstate=* | --localstat=* | --localsta=* | --localst=* \
5082 + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5083 +- localstatedir="$ac_optarg" ;;
5084 ++ localstatedir=$ac_optarg ;;
5086 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
5088 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5089 +- mandir="$ac_optarg" ;;
5090 ++ mandir=$ac_optarg ;;
5092 + -nfp | --nfp | --nf)
5093 + # Obsolete; use --without-fp.
5096 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5097 +- | --no-cr | --no-c)
5098 ++ | --no-cr | --no-c | -n)
5101 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5102 +@@ -279,26 +497,26 @@
5103 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
5104 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
5105 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5106 +- oldincludedir="$ac_optarg" ;;
5107 ++ oldincludedir=$ac_optarg ;;
5109 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5111 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5112 +- prefix="$ac_optarg" ;;
5113 ++ prefix=$ac_optarg ;;
5115 + -program-prefix | --program-prefix | --program-prefi | --program-pref \
5116 + | --program-pre | --program-pr | --program-p)
5117 + ac_prev=program_prefix ;;
5118 + -program-prefix=* | --program-prefix=* | --program-prefi=* \
5119 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5120 +- program_prefix="$ac_optarg" ;;
5121 ++ program_prefix=$ac_optarg ;;
5123 + -program-suffix | --program-suffix | --program-suffi | --program-suff \
5124 + | --program-suf | --program-su | --program-s)
5125 + ac_prev=program_suffix ;;
5126 + -program-suffix=* | --program-suffix=* | --program-suffi=* \
5127 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5128 +- program_suffix="$ac_optarg" ;;
5129 ++ program_suffix=$ac_optarg ;;
5131 + -program-transform-name | --program-transform-name \
5132 + | --program-transform-nam | --program-transform-na \
5133 +@@ -315,7 +533,7 @@
5134 + | --program-transfo=* | --program-transf=* \
5135 + | --program-trans=* | --program-tran=* \
5136 + | --progr-tra=* | --program-tr=* | --program-t=*)
5137 +- program_transform_name="$ac_optarg" ;;
5138 ++ program_transform_name=$ac_optarg ;;
5140 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5141 + | -silent | --silent | --silen | --sile | --sil)
5142 +@@ -325,7 +543,7 @@
5143 + ac_prev=sbindir ;;
5144 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
5145 + | --sbi=* | --sb=*)
5146 +- sbindir="$ac_optarg" ;;
5147 ++ sbindir=$ac_optarg ;;
5149 + -sharedstatedir | --sharedstatedir | --sharedstatedi \
5150 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
5151 +@@ -336,58 +554,57 @@
5152 + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
5153 + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
5154 + | --sha=* | --sh=*)
5155 +- sharedstatedir="$ac_optarg" ;;
5156 ++ sharedstatedir=$ac_optarg ;;
5158 + -site | --site | --sit)
5160 + -site=* | --site=* | --sit=*)
5161 +- site="$ac_optarg" ;;
5162 ++ site=$ac_optarg ;;
5164 + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5166 + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5167 +- srcdir="$ac_optarg" ;;
5168 ++ srcdir=$ac_optarg ;;
5170 + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
5171 + | --syscon | --sysco | --sysc | --sys | --sy)
5172 + ac_prev=sysconfdir ;;
5173 + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
5174 + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5175 +- sysconfdir="$ac_optarg" ;;
5176 ++ sysconfdir=$ac_optarg ;;
5178 + -target | --target | --targe | --targ | --tar | --ta | --t)
5179 +- ac_prev=target ;;
5180 ++ ac_prev=target_alias ;;
5181 + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5182 +- target="$ac_optarg" ;;
5183 ++ target_alias=$ac_optarg ;;
5185 + -v | -verbose | --verbose | --verbos | --verbo | --verb)
5188 +- -version | --version | --versio | --versi | --vers)
5189 +- echo "configure generated by autoconf version 2.13"
5191 ++ -version | --version | --versio | --versi | --vers | -V)
5192 ++ ac_init_version=: ;;
5194 + -with-* | --with-*)
5195 +- ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
5196 ++ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5197 + # Reject names that are not valid shell variable names.
5198 +- if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
5199 +- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
5201 ++ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
5202 ++ { echo "$as_me: error: invalid package name: $ac_package" >&2
5203 ++ { (exit 1); exit 1; }; }
5204 + ac_package=`echo $ac_package| sed 's/-/_/g'`
5205 +- case "$ac_option" in
5207 ++ case $ac_option in
5208 ++ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
5209 + *) ac_optarg=yes ;;
5211 +- eval "with_${ac_package}='$ac_optarg'" ;;
5212 ++ eval "with_$ac_package='$ac_optarg'" ;;
5214 + -without-* | --without-*)
5215 +- ac_package=`echo $ac_option|sed -e 's/-*without-//'`
5216 ++ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5217 + # Reject names that are not valid shell variable names.
5218 +- if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
5219 +- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
5221 +- ac_package=`echo $ac_package| sed 's/-/_/g'`
5222 +- eval "with_${ac_package}=no" ;;
5223 ++ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
5224 ++ { echo "$as_me: error: invalid package name: $ac_package" >&2
5225 ++ { (exit 1); exit 1; }; }
5226 ++ ac_package=`echo $ac_package | sed 's/-/_/g'`
5227 ++ eval "with_$ac_package=no" ;;
5230 + # Obsolete; use --with-x.
5231 +@@ -398,99 +615,110 @@
5232 + ac_prev=x_includes ;;
5233 + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
5234 + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5235 +- x_includes="$ac_optarg" ;;
5236 ++ x_includes=$ac_optarg ;;
5238 + -x-libraries | --x-libraries | --x-librarie | --x-librari \
5239 + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
5240 + ac_prev=x_libraries ;;
5241 + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
5242 + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5243 +- x_libraries="$ac_optarg" ;;
5244 ++ x_libraries=$ac_optarg ;;
5246 +- -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
5247 ++ -*) { echo "$as_me: error: unrecognized option: $ac_option
5248 ++Try \`$0 --help' for more information." >&2
5249 ++ { (exit 1); exit 1; }; }
5253 ++ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
5254 ++ # Reject names that are not valid shell variable names.
5255 ++ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
5256 ++ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
5257 ++ { (exit 1); exit 1; }; }
5258 ++ ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
5259 ++ eval "$ac_envvar='$ac_optarg'"
5260 ++ export $ac_envvar ;;
5263 +- if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
5264 +- echo "configure: warning: $ac_option: invalid host type" 1>&2
5266 +- if test "x$nonopt" != xNONE; then
5267 +- { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
5269 +- nonopt="$ac_option"
5270 ++ # FIXME: should be removed in autoconf 3.0.
5271 ++ echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5272 ++ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5273 ++ echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5274 ++ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
5280 + if test -n "$ac_prev"; then
5281 +- { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
5282 ++ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5283 ++ { echo "$as_me: error: missing argument to $ac_option" >&2
5284 ++ { (exit 1); exit 1; }; }
5287 +-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5289 +-# File descriptor usage:
5290 +-# 0 standard input
5292 +-# 2 errors and warnings
5293 +-# 3 some systems may open it to /dev/tty
5294 +-# 4 used on the Kubota Titan
5295 +-# 6 checking for... messages and results
5296 +-# 5 compiler messages saved in config.log
5297 +-if test "$silent" = yes; then
5302 +-exec 5>./config.log
5305 +-This file contains any messages produced by compilers while
5306 +-running configure, to aid debugging if configure makes a mistake.
5308 ++# Be sure to have absolute paths.
5309 ++for ac_var in exec_prefix prefix
5311 ++ eval ac_val=$`echo $ac_var`
5313 ++ [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
5314 ++ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
5315 ++ { (exit 1); exit 1; }; };;
5319 +-# Strip out --no-create and --no-recursion so they do not pile up.
5320 +-# Also quote any args containing shell metacharacters.
5321 +-ac_configure_args=
5323 ++# Be sure to have absolute paths.
5324 ++for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
5325 ++ localstatedir libdir includedir oldincludedir infodir mandir
5327 +- case "$ac_arg" in
5328 +- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5329 +- | --no-cr | --no-c) ;;
5330 +- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5331 +- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
5332 +- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
5333 +- ac_configure_args="$ac_configure_args '$ac_arg'" ;;
5334 +- *) ac_configure_args="$ac_configure_args $ac_arg" ;;
5335 ++ eval ac_val=$`echo $ac_var`
5337 ++ [\\/$]* | ?:[\\/]* ) ;;
5338 ++ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
5339 ++ { (exit 1); exit 1; }; };;
5344 +-# Only set these to C if already set. These must not be set unconditionally
5345 +-# because not all systems understand e.g. LANG=C (notably SCO).
5346 +-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
5347 +-# Non-C LC_CTYPE values break the ctype check.
5348 +-if test "${LANG+set}" = set; then LANG=C; export LANG; fi
5349 +-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
5350 +-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
5351 +-if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
5352 ++# There might be people who depend on the old broken behavior: `$host'
5353 ++# used to hold the argument of --host etc.
5354 ++# FIXME: To remove some day.
5355 ++build=$build_alias
5357 ++target=$target_alias
5359 ++# FIXME: To remove some day.
5360 ++if test "x$host_alias" != x; then
5361 ++ if test "x$build_alias" = x; then
5362 ++ cross_compiling=maybe
5363 ++ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
5364 ++ If a cross compiler is detected then cross compile mode will be used." >&2
5365 ++ elif test "x$build_alias" != "x$host_alias"; then
5366 ++ cross_compiling=yes
5370 +-# confdefs.h avoids OS command line length limits that DEFS can exceed.
5371 +-rm -rf conftest* confdefs.h
5372 +-# AIX cpp loses on an empty file, so make sure it contains at least a newline.
5375 ++test -n "$host_alias" && ac_tool_prefix=$host_alias-
5377 ++test "$silent" = yes && exec 6>/dev/null
5379 +-# A filename unique to this package, relative to the directory that
5380 +-# configure is in, which we can look for to find out if srcdir is correct.
5381 +-ac_unique_file=src/lisp.h
5383 + # Find the source files, if location was not specified.
5384 + if test -z "$srcdir"; then
5385 + ac_srcdir_defaulted=yes
5386 + # Try the directory containing this script, then its parent.
5388 +- ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
5389 +- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
5390 ++ ac_confdir=`(dirname "$0") 2>/dev/null ||
5391 ++$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5392 ++ X"$0" : 'X\(//\)[^/]' \| \
5393 ++ X"$0" : 'X\(//\)$' \| \
5394 ++ X"$0" : 'X\(/\)' \| \
5395 ++ . : '\(.\)' 2>/dev/null ||
5397 ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5398 ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5399 ++ /^X\(\/\/\)$/{ s//\1/; q; }
5400 ++ /^X\(\/\).*/{ s//\1/; q; }
5402 + srcdir=$ac_confdir
5403 + if test ! -r $srcdir/$ac_unique_file; then
5405 +@@ -500,13 +728,487 @@
5407 + if test ! -r $srcdir/$ac_unique_file; then
5408 + if test "$ac_srcdir_defaulted" = yes; then
5409 +- { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
5410 ++ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
5411 ++ { (exit 1); exit 1; }; }
5413 +- { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
5414 ++ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
5415 ++ { (exit 1); exit 1; }; }
5418 +-srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
5419 ++(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
5420 ++ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
5421 ++ { (exit 1); exit 1; }; }
5422 ++srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
5423 ++ac_env_build_alias_set=${build_alias+set}
5424 ++ac_env_build_alias_value=$build_alias
5425 ++ac_cv_env_build_alias_set=${build_alias+set}
5426 ++ac_cv_env_build_alias_value=$build_alias
5427 ++ac_env_host_alias_set=${host_alias+set}
5428 ++ac_env_host_alias_value=$host_alias
5429 ++ac_cv_env_host_alias_set=${host_alias+set}
5430 ++ac_cv_env_host_alias_value=$host_alias
5431 ++ac_env_target_alias_set=${target_alias+set}
5432 ++ac_env_target_alias_value=$target_alias
5433 ++ac_cv_env_target_alias_set=${target_alias+set}
5434 ++ac_cv_env_target_alias_value=$target_alias
5435 ++ac_env_CC_set=${CC+set}
5436 ++ac_env_CC_value=$CC
5437 ++ac_cv_env_CC_set=${CC+set}
5438 ++ac_cv_env_CC_value=$CC
5439 ++ac_env_CFLAGS_set=${CFLAGS+set}
5440 ++ac_env_CFLAGS_value=$CFLAGS
5441 ++ac_cv_env_CFLAGS_set=${CFLAGS+set}
5442 ++ac_cv_env_CFLAGS_value=$CFLAGS
5443 ++ac_env_LDFLAGS_set=${LDFLAGS+set}
5444 ++ac_env_LDFLAGS_value=$LDFLAGS
5445 ++ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
5446 ++ac_cv_env_LDFLAGS_value=$LDFLAGS
5447 ++ac_env_CPPFLAGS_set=${CPPFLAGS+set}
5448 ++ac_env_CPPFLAGS_value=$CPPFLAGS
5449 ++ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
5450 ++ac_cv_env_CPPFLAGS_value=$CPPFLAGS
5451 ++ac_env_CPP_set=${CPP+set}
5452 ++ac_env_CPP_value=$CPP
5453 ++ac_cv_env_CPP_set=${CPP+set}
5454 ++ac_cv_env_CPP_value=$CPP
5457 ++# Report the --help message.
5459 ++if test "$ac_init_help" = "long"; then
5460 ++ # Omit some internal or obsolete options to make the list less imposing.
5461 ++ # This message is too long to be a string in the A/UX 3.1 sh.
5463 ++\`configure' configures this package to adapt to many kinds of systems.
5465 ++Usage: $0 [OPTION]... [VAR=VALUE]...
5467 ++To assign environment variables (e.g., CC, CFLAGS...), specify them as
5468 ++VAR=VALUE. See below for descriptions of some of the useful variables.
5470 ++Defaults for the options are specified in brackets.
5473 ++ -h, --help display this help and exit
5474 ++ --help=short display options specific to this package
5475 ++ --help=recursive display the short help of all the included packages
5476 ++ -V, --version display version information and exit
5477 ++ -q, --quiet, --silent do not print \`checking...' messages
5478 ++ --cache-file=FILE cache test results in FILE [disabled]
5479 ++ -C, --config-cache alias for \`--cache-file=config.cache'
5480 ++ -n, --no-create do not create output files
5481 ++ --srcdir=DIR find the sources in DIR [configure dir or \`..']
5486 ++Installation directories:
5487 ++ --prefix=PREFIX install architecture-independent files in PREFIX
5488 ++ [$ac_default_prefix]
5489 ++ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5492 ++By default, \`make install' will install all the files in
5493 ++\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
5494 ++an installation prefix other than \`$ac_default_prefix' using \`--prefix',
5495 ++for instance \`--prefix=\$HOME'.
5497 ++For better control, use the options below.
5499 ++Fine tuning of the installation directories:
5500 ++ --bindir=DIR user executables [EPREFIX/bin]
5501 ++ --sbindir=DIR system admin executables [EPREFIX/sbin]
5502 ++ --libexecdir=DIR program executables [EPREFIX/libexec]
5503 ++ --datadir=DIR read-only architecture-independent data [PREFIX/share]
5504 ++ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
5505 ++ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
5506 ++ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
5507 ++ --libdir=DIR object code libraries [EPREFIX/lib]
5508 ++ --includedir=DIR C header files [PREFIX/include]
5509 ++ --oldincludedir=DIR C header files for non-gcc [/usr/include]
5510 ++ --infodir=DIR info documentation [PREFIX/info]
5511 ++ --mandir=DIR man documentation [PREFIX/man]
5517 ++ --x-includes=DIR X include files are in DIR
5518 ++ --x-libraries=DIR X library files are in DIR
5521 ++ --build=BUILD configure for building on BUILD [guessed]
5522 ++ --host=HOST cross-compile to build programs to run on HOST [BUILD]
5526 ++if test -n "$ac_init_help"; then
5530 ++Optional Features:
5531 ++ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
5532 ++ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5533 ++ --disable-largefile omit support for large files
5535 ++Optional Packages:
5536 ++ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
5537 ++ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
5538 ++ --without-gcc don't use GCC to compile Emacs if GCC is found
5539 ++ --without-pop don't support POP mail retrieval with movemail
5540 ++ --with-kerberos support Kerberos-authenticated POP
5541 ++ --with-kerberos5 support Kerberos version 5 authenticated POP
5542 ++ --with-hesiod support Hesiod to get the POP server host
5543 ++ --with-mail-spool-directory=DIR system mail spool is DIR
5544 ++ --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
5545 ++ --with-xpm use -lXpm for displaying XPM images
5546 ++ --with-jpeg use -ljpeg for displaying JPEG images
5547 ++ --with-tiff use -ltiff for displaying TIFF images
5548 ++ --with-gif use -lungif for displaying GIF images
5549 ++ --with-png use -lpng for displaying PNG images
5550 ++ --without-toolkit-scroll-bars
5551 ++ don't use Motif or Xaw3d scroll bars
5552 ++ --without-xim don't use X11 XIM
5553 ++ --with-x use the X Window System
5555 ++Some influential environment variables:
5556 ++ CC C compiler command
5557 ++ CFLAGS C compiler flags
5558 ++ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
5559 ++ nonstandard directory <lib dir>
5560 ++ CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
5561 ++ headers in a nonstandard directory <include dir>
5562 ++ CPP C preprocessor
5564 ++Use these variables to override the choices made by `configure' or to help
5565 ++it to find libraries and programs with nonstandard names/locations.
5570 ++if test "$ac_init_help" = "recursive"; then
5571 ++ # If there are subdirs, report their specific --help.
5573 ++ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5574 ++ test -d $ac_dir || continue
5577 ++if test "$ac_dir" != .; then
5578 ++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5579 ++ # A "../" for each directory in $ac_dir_suffix.
5580 ++ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5582 ++ ac_dir_suffix= ac_top_builddir=
5586 ++ .) # No --srcdir option. We are building in place.
5588 ++ if test -z "$ac_top_builddir"; then
5591 ++ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5593 ++ [\\/]* | ?:[\\/]* ) # Absolute path.
5594 ++ ac_srcdir=$srcdir$ac_dir_suffix;
5595 ++ ac_top_srcdir=$srcdir ;;
5596 ++ *) # Relative path.
5597 ++ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5598 ++ ac_top_srcdir=$ac_top_builddir$srcdir ;;
5601 ++# Do not use `cd foo && pwd` to compute absolute paths, because
5602 ++# the directories may not exist.
5604 ++.) ac_abs_builddir="$ac_dir";;
5606 ++ case "$ac_dir" in
5607 ++ .) ac_abs_builddir=`pwd`;;
5608 ++ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5609 ++ *) ac_abs_builddir=`pwd`/"$ac_dir";;
5612 ++case $ac_abs_builddir in
5613 ++.) ac_abs_top_builddir=${ac_top_builddir}.;;
5615 ++ case ${ac_top_builddir}. in
5616 ++ .) ac_abs_top_builddir=$ac_abs_builddir;;
5617 ++ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5618 ++ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5621 ++case $ac_abs_builddir in
5622 ++.) ac_abs_srcdir=$ac_srcdir;;
5624 ++ case $ac_srcdir in
5625 ++ .) ac_abs_srcdir=$ac_abs_builddir;;
5626 ++ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5627 ++ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5630 ++case $ac_abs_builddir in
5631 ++.) ac_abs_top_srcdir=$ac_top_srcdir;;
5633 ++ case $ac_top_srcdir in
5634 ++ .) ac_abs_top_srcdir=$ac_abs_builddir;;
5635 ++ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5636 ++ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5641 ++ # Check for guested configure; otherwise get Cygnus style configure.
5642 ++ if test -f $ac_srcdir/configure.gnu; then
5644 ++ $SHELL $ac_srcdir/configure.gnu --help=recursive
5645 ++ elif test -f $ac_srcdir/configure; then
5647 ++ $SHELL $ac_srcdir/configure --help=recursive
5648 ++ elif test -f $ac_srcdir/configure.ac ||
5649 ++ test -f $ac_srcdir/configure.in; then
5651 ++ $ac_configure --help
5653 ++ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5659 ++test -n "$ac_init_help" && exit 0
5660 ++if $ac_init_version; then
5663 ++Copyright (C) 2003 Free Software Foundation, Inc.
5664 ++This configure script is free software; the Free Software Foundation
5665 ++gives unlimited permission to copy, distribute and modify it.
5671 ++This file contains any messages produced by compilers while
5672 ++running configure, to aid debugging if configure makes a mistake.
5674 ++It was created by $as_me, which was
5675 ++generated by GNU Autoconf 2.59. Invocation command line was
5686 ++hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
5687 ++uname -m = `(uname -m) 2>/dev/null || echo unknown`
5688 ++uname -r = `(uname -r) 2>/dev/null || echo unknown`
5689 ++uname -s = `(uname -s) 2>/dev/null || echo unknown`
5690 ++uname -v = `(uname -v) 2>/dev/null || echo unknown`
5692 ++/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
5693 ++/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5695 ++/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
5696 ++/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
5697 ++/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5698 ++hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
5699 ++/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
5700 ++/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
5701 ++/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5705 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 ++for as_dir in $PATH
5709 ++ test -z "$as_dir" && as_dir=.
5710 ++ echo "PATH: $as_dir"
5725 ++# Keep a trace of the command line.
5726 ++# Strip out --no-create and --no-recursion so they do not pile up.
5727 ++# Strip out --silent because we don't want to record it for future runs.
5728 ++# Also quote any args containing shell meta-characters.
5729 ++# Make two passes to allow for proper duplicate-argument suppression.
5730 ++ac_configure_args=
5731 ++ac_configure_args0=
5732 ++ac_configure_args1=
5734 ++ac_must_keep_next=false
5735 ++for ac_pass in 1 2
5740 ++ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
5741 ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5742 ++ | -silent | --silent | --silen | --sile | --sil)
5744 ++ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
5745 ++ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5748 ++ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
5750 ++ ac_configure_args1="$ac_configure_args1 '$ac_arg'"
5751 ++ if test $ac_must_keep_next = true; then
5752 ++ ac_must_keep_next=false # Got value, back to normal.
5755 ++ *=* | --config-cache | -C | -disable-* | --disable-* \
5756 ++ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5757 ++ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5758 ++ | -with-* | --with-* | -without-* | --without-* | --x)
5759 ++ case "$ac_configure_args0 " in
5760 ++ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
5763 ++ -* ) ac_must_keep_next=true ;;
5766 ++ ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
5767 ++ # Get rid of the leading space.
5773 ++$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
5774 ++$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
5776 ++# When interrupted or exit'd, cleanup temporary files, and complete
5777 ++# config.log. We remove comments because anyway the quotes in there
5778 ++# would cause problems or look ugly.
5779 ++# WARNING: Be sure not to use single quotes in there, as some shells,
5780 ++# such as our DU 5.0 friend, will then `close' the trap.
5781 ++trap 'exit_status=$?
5782 ++ # Save into config.log some information that might help in debugging.
5787 ++## ---------------- ##
5788 ++## Cache variables. ##
5789 ++## ---------------- ##
5792 ++ # The following way of writing the cache mishandles newlines in values,
5795 ++ case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
5798 ++ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
5799 ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
5803 ++ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5810 ++## ----------------- ##
5811 ++## Output variables. ##
5812 ++## ----------------- ##
5815 ++ for ac_var in $ac_subst_vars
5817 ++ eval ac_val=$`echo $ac_var`
5818 ++ echo "$ac_var='"'"'$ac_val'"'"'"
5822 ++ if test -n "$ac_subst_files"; then
5824 ++## ------------- ##
5825 ++## Output files. ##
5826 ++## ------------- ##
5829 ++ for ac_var in $ac_subst_files
5831 ++ eval ac_val=$`echo $ac_var`
5832 ++ echo "$ac_var='"'"'$ac_val'"'"'"
5837 ++ if test -s confdefs.h; then
5844 ++ sed "/^$/d" confdefs.h | sort
5847 ++ test "$ac_signal" != 0 &&
5848 ++ echo "$as_me: caught signal $ac_signal"
5849 ++ echo "$as_me: exit $exit_status"
5851 ++ rm -f core *.core &&
5852 ++ rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
5853 ++ exit $exit_status
5855 ++for ac_signal in 1 2 13 15; do
5856 ++ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
5860 ++# confdefs.h avoids OS command line length limits that DEFS can exceed.
5861 ++rm -rf conftest* confdefs.h
5862 ++# AIX cpp loses on an empty file, so make sure it contains at least a newline.
5865 ++# Predefined preprocessor variables.
5867 ++cat >>confdefs.h <<_ACEOF
5868 ++#define PACKAGE_NAME "$PACKAGE_NAME"
5872 ++cat >>confdefs.h <<_ACEOF
5873 ++#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
5877 ++cat >>confdefs.h <<_ACEOF
5878 ++#define PACKAGE_VERSION "$PACKAGE_VERSION"
5882 ++cat >>confdefs.h <<_ACEOF
5883 ++#define PACKAGE_STRING "$PACKAGE_STRING"
5887 ++cat >>confdefs.h <<_ACEOF
5888 ++#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5892 ++# Let the site file select an alternate cache file if it wants to.
5893 + # Prefer explicitly selected file to automatically selected ones.
5894 + if test -z "$CONFIG_SITE"; then
5895 + if test "x$prefix" != xNONE; then
5896 +@@ -517,43 +1219,109 @@
5898 + for ac_site_file in $CONFIG_SITE; do
5899 + if test -r "$ac_site_file"; then
5900 +- echo "loading site script $ac_site_file"
5901 ++ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
5902 ++echo "$as_me: loading site script $ac_site_file" >&6;}
5903 ++ sed 's/^/| /' "$ac_site_file" >&5
5908 + if test -r "$cache_file"; then
5909 +- echo "loading cache $cache_file"
5911 ++ # Some versions of bash will fail to source /dev/null (special
5912 ++ # files actually), so we avoid doing that.
5913 ++ if test -f "$cache_file"; then
5914 ++ { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5915 ++echo "$as_me: loading cache $cache_file" >&6;}
5916 ++ case $cache_file in
5917 ++ [\\/]* | ?:[\\/]* ) . $cache_file;;
5918 ++ *) . ./$cache_file;;
5922 +- echo "creating cache $cache_file"
5924 ++ { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5925 ++echo "$as_me: creating cache $cache_file" >&6;}
5929 ++# Check that the precious variables saved in the cache have kept the same
5931 ++ac_cache_corrupted=false
5932 ++for ac_var in `(set) 2>&1 |
5933 ++ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
5934 ++ eval ac_old_set=\$ac_cv_env_${ac_var}_set
5935 ++ eval ac_new_set=\$ac_env_${ac_var}_set
5936 ++ eval ac_old_val="\$ac_cv_env_${ac_var}_value"
5937 ++ eval ac_new_val="\$ac_env_${ac_var}_value"
5938 ++ case $ac_old_set,$ac_new_set in
5940 ++ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
5941 ++echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
5942 ++ ac_cache_corrupted=: ;;
5944 ++ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
5945 ++echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
5946 ++ ac_cache_corrupted=: ;;
5949 ++ if test "x$ac_old_val" != "x$ac_new_val"; then
5950 ++ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5951 ++echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
5952 ++ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
5953 ++echo "$as_me: former value: $ac_old_val" >&2;}
5954 ++ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
5955 ++echo "$as_me: current value: $ac_new_val" >&2;}
5956 ++ ac_cache_corrupted=:
5959 ++ # Pass precious variables to config.status.
5960 ++ if test "$ac_new_set" = set; then
5961 ++ case $ac_new_val in
5962 ++ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
5963 ++ ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
5964 ++ *) ac_arg=$ac_var=$ac_new_val ;;
5966 ++ case " $ac_configure_args " in
5967 ++ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5968 ++ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
5972 ++if $ac_cache_corrupted; then
5973 ++ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
5974 ++echo "$as_me: error: changes in the environment can compromise the build" >&2;}
5975 ++ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
5976 ++echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
5977 ++ { (exit 1); exit 1; }; }
5981 +-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5982 + ac_cpp='$CPP $CPPFLAGS'
5983 +-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5984 +-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5985 +-cross_compiling=$ac_cv_prog_cc_cross
5989 +-if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
5990 +- # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
5991 +- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
5995 +- ac_n=-n ac_c= ac_t=
5998 +- ac_n= ac_c='\c' ac_t=
6000 ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ++ac_compiler_gnu=$ac_cv_c_compiler_gnu
6022 ++ ac_config_headers="$ac_config_headers src/config.h:src/config.in"
6026 + lispdir='${datadir}/emacs/${version}/lisp'
6027 + locallisppath='${datadir}/emacs/${version}/site-lisp:'\
6028 + '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
6029 +@@ -562,37 +1330,38 @@
6030 + archlibdir='${libexecdir}/emacs/${version}/${configuration}'
6031 + docdir='${datadir}/emacs/${version}/etc'
6034 + # Check whether --with-gcc or --without-gcc was given.
6035 + if test "${with_gcc+set}" = set; then
6036 + withval="$with_gcc"
6042 + # Check whether --with-pop or --without-pop was given.
6043 + if test "${with_pop+set}" = set; then
6044 + withval="$with_pop"
6045 + if test "$withval" = yes; then
6046 +- cat >> confdefs.h <<\EOF
6047 ++ cat >>confdefs.h <<\_ACEOF
6048 + #define MAIL_USE_POP 1
6055 +- cat >> confdefs.h <<\EOF
6056 ++ cat >>confdefs.h <<\_ACEOF
6057 + #define MAIL_USE_POP 1
6064 + # Check whether --with-kerberos or --without-kerberos was given.
6065 + if test "${with_kerberos+set}" = set; then
6066 + withval="$with_kerberos"
6067 +- cat >> confdefs.h <<\EOF
6068 ++ cat >>confdefs.h <<\_ACEOF
6069 + #define KERBEROS 1
6076 + # Check whether --with-kerberos5 or --without-kerberos5 was given.
6077 + if test "${with_kerberos5+set}" = set; then
6078 +@@ -600,26 +1369,35 @@
6079 + if test "${with_kerberos5+set}" = set; then
6080 + if test "${with_kerberos+set}" != set; then
6082 +- cat >> confdefs.h <<\EOF
6083 ++ cat >>confdefs.h <<\_ACEOF
6084 + #define KERBEROS 1
6090 +-cat >> confdefs.h <<\EOF
6091 ++cat >>confdefs.h <<\_ACEOF
6092 + #define KERBEROS5 1
6099 + # Check whether --with-hesiod or --without-hesiod was given.
6100 + if test "${with_hesiod+set}" = set; then
6101 + withval="$with_hesiod"
6102 +- cat >> confdefs.h <<\EOF
6103 ++ cat >>confdefs.h <<\_ACEOF
6111 ++# Check whether --with-mail-spool-directory or --without-mail-spool-directory was given.
6112 ++if test "${with_mail_spool_directory+set}" = set; then
6113 ++ withval="$with_mail_spool_directory"
6114 ++ cat >>confdefs.h <<_ACEOF
6115 ++#define USE_MAIL_SPOOL_DIRECTORY "${withval}"
6120 + # Check whether --with-x-toolkit or --without-x-toolkit was given.
6121 + if test "${with_x_toolkit+set}" = set; then
6122 +@@ -631,57 +1409,60 @@
6123 + a | at | ath | athe | athen | athena ) val=athena ;;
6124 + m | mo | mot | moti | motif ) val=motif ;;
6126 +-{ echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
6127 ++{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
6128 ++this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
6129 ++Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
6130 ++echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
6131 + this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
6132 +-Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
6133 ++Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
6134 ++ { (exit 1); exit 1; }; }
6137 + with_x_toolkit=$val
6142 + # Check whether --with-xpm or --without-xpm was given.
6143 + if test "${with_xpm+set}" = set; then
6144 + withval="$with_xpm"
6150 + # Check whether --with-jpeg or --without-jpeg was given.
6151 + if test "${with_jpeg+set}" = set; then
6152 + withval="$with_jpeg"
6158 + # Check whether --with-tiff or --without-tiff was given.
6159 + if test "${with_tiff+set}" = set; then
6160 + withval="$with_tiff"
6166 + # Check whether --with-gif or --without-gif was given.
6167 + if test "${with_gif+set}" = set; then
6168 + withval="$with_gif"
6174 + # Check whether --with-png or --without-png was given.
6175 + if test "${with_png+set}" = set; then
6176 + withval="$with_png"
6182 + # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
6183 + if test "${with_toolkit_scroll_bars+set}" = set; then
6184 + withval="$with_toolkit_scroll_bars"
6190 + # Check whether --with-xim or --without-xim was given.
6191 + if test "${with_xim+set}" = set; then
6192 + withval="$with_xim"
6198 + #### Make srcdir absolute, if it isn't already. It's important to
6199 + #### avoid running the path through pwd unnecessarily, since pwd can
6200 +@@ -707,12 +1488,18 @@
6201 + #### Check if the source directory already has a configured system in it.
6202 + if test `pwd` != `(cd ${srcdir} && pwd)` \
6203 + && test -f "${srcdir}/src/config.h" ; then
6204 +- echo "configure: warning: The directory tree \`${srcdir}' is being used
6205 ++ { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
6206 ++ as a build directory right now; it has been configured in its own
6207 ++ right. To configure in another directory as well, you MUST
6208 ++ use GNU make. If you do not have GNU make, then you must
6209 ++ now do \`make distclean' in ${srcdir},
6210 ++ and then run $0 again." >&5
6211 ++echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
6212 + as a build directory right now; it has been configured in its own
6213 + right. To configure in another directory as well, you MUST
6214 + use GNU make. If you do not have GNU make, then you must
6215 + now do \`make distclean' in ${srcdir},
6216 +- and then run $0 again." 1>&2
6217 ++ and then run $0 again." >&2;}
6219 + extrasub='/^VPATH[ ]*=/c\
6220 + vpath %.c $(srcdir)\
6221 +@@ -739,41 +1526,74 @@
6222 + ac_aux_dir=$ac_dir
6223 + ac_install_sh="$ac_aux_dir/install.sh -c"
6225 ++ elif test -f $ac_dir/shtool; then
6226 ++ ac_aux_dir=$ac_dir
6227 ++ ac_install_sh="$ac_aux_dir/shtool install -c"
6231 + if test -z "$ac_aux_dir"; then
6232 +- { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
6234 +-ac_config_guess=$ac_aux_dir/config.guess
6235 +-ac_config_sub=$ac_aux_dir/config.sub
6236 +-ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
6238 ++ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6239 ++echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6240 ++ { (exit 1); exit 1; }; }
6242 ++ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6243 ++ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6244 ++ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6246 + # Make sure we can run config.sub.
6247 +-if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
6248 +-else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
6251 +-echo $ac_n "checking host system type""... $ac_c" 1>&6
6252 +-echo "configure:759: checking host system type" >&5
6255 +-case "$host_alias" in
6259 +- if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
6260 +- else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
6262 +- *) host_alias=$nonopt ;;
6265 ++$ac_config_sub sun4 >/dev/null 2>&1 ||
6266 ++ { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6267 ++echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6268 ++ { (exit 1); exit 1; }; }
6270 ++echo "$as_me:$LINENO: checking build system type" >&5
6271 ++echo $ECHO_N "checking build system type... $ECHO_C" >&6
6272 ++if test "${ac_cv_build+set}" = set; then
6273 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
6275 ++ ac_cv_build_alias=$build_alias
6276 ++test -z "$ac_cv_build_alias" &&
6277 ++ ac_cv_build_alias=`$ac_config_guess`
6278 ++test -z "$ac_cv_build_alias" &&
6279 ++ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6280 ++echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6281 ++ { (exit 1); exit 1; }; }
6282 ++ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6283 ++ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6284 ++echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6285 ++ { (exit 1); exit 1; }; }
6288 ++echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6289 ++echo "${ECHO_T}$ac_cv_build" >&6
6290 ++build=$ac_cv_build
6291 ++build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6292 ++build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6293 ++build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6296 ++echo "$as_me:$LINENO: checking host system type" >&5
6297 ++echo $ECHO_N "checking host system type... $ECHO_C" >&6
6298 ++if test "${ac_cv_host+set}" = set; then
6299 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
6301 ++ ac_cv_host_alias=$host_alias
6302 ++test -z "$ac_cv_host_alias" &&
6303 ++ ac_cv_host_alias=$ac_cv_build_alias
6304 ++ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6305 ++ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6306 ++echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6307 ++ { (exit 1); exit 1; }; }
6310 ++echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6311 ++echo "${ECHO_T}$ac_cv_host" >&6
6313 ++host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6314 ++host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6315 ++host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6317 +-host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
6318 +-host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6319 +-host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6320 +-host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6321 +-echo "$ac_t""$host" 1>&6
6324 + configuration=$host_alias
6325 +@@ -1178,6 +1998,9 @@
6326 + hppa*-*-nextstep* )
6327 + machine=hp800 opsys=nextstep
6329 ++ hppa*-*-linux-gnu* )
6330 ++ machine=hp800 opsys=gnu-linux
6334 + orion-orion-bsd* )
6335 +@@ -1246,6 +2069,10 @@
6336 + machine=ibmrt-aix opsys=usg5-2-2
6339 ++ s390*-*-linux-gnu* )
6340 ++ machine=s390 opsys=gnu-linux
6343 + ## Integrated Solutions `Optimum V'
6344 + m68*-isi-bsd4.2* )
6345 + machine=isi-ov opsys=bsd4-2
6346 +@@ -1650,7 +2477,7 @@
6347 + *-xenix* ) opsys=xenix ;;
6348 + *-linux-gnu* ) opsys=gnu-linux ;;
6349 + *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
6350 +- *-sco3.2v5* ) opsys=sco5
6351 ++ *-sco3.2v5* ) opsys=sco5
6352 + NON_GNU_CPP=/lib/cpp
6353 + # Prevent -belf from being passed to $CPP.
6354 + # /lib/cpp does not accept it.
6355 +@@ -1674,6 +2501,11 @@
6356 + machine=mips opsys=gnu-linux
6359 ++ ## Mipsel (little endian) Linux-based GNU system
6360 ++ mipsel-*-linux-gnu* )
6361 ++ machine=mipsel opsys=gnu-linux
6365 + sparc-fujitsu-sysv4* )
6366 + machine=sparc opsys=uxpds
6367 +@@ -1729,8 +2561,11 @@
6370 + if test $unported = yes; then
6371 +- { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
6372 +-Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
6373 ++ { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
6374 ++Check \`etc/MACHINES' for recognized configuration names." >&5
6375 ++echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
6376 ++Check \`etc/MACHINES' for recognized configuration names." >&2;}
6377 ++ { (exit 1); exit 1; }; }
6380 + machfile="m/${machine}.h"
6381 +@@ -1746,214 +2581,657 @@
6382 + case ${with_gcc} in
6383 + "yes" ) CC="gcc" GCC=yes ;;
6384 + "no" ) : ${CC=cc} ;;
6385 +- * ) # Extract the first word of "gcc", so it can be a program name with args.
6387 ++ac_cpp='$CPP $CPPFLAGS'
6388 ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389 ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390 ++ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391 ++if test -n "$ac_tool_prefix"; then
6392 ++ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6393 ++set dummy ${ac_tool_prefix}gcc; ac_word=$2
6394 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6396 ++if test "${ac_cv_prog_CC+set}" = set; then
6397 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
6399 ++ if test -n "$CC"; then
6400 ++ ac_cv_prog_CC="$CC" # Let the user override the test.
6402 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 ++for as_dir in $PATH
6406 ++ test -z "$as_dir" && as_dir=.
6407 ++ for ac_exec_ext in '' $ac_executable_extensions; do
6408 ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ++ ac_cv_prog_CC="${ac_tool_prefix}gcc"
6410 ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 ++if test -n "$CC"; then
6420 ++ echo "$as_me:$LINENO: result: $CC" >&5
6421 ++echo "${ECHO_T}$CC" >&6
6423 ++ echo "$as_me:$LINENO: result: no" >&5
6424 ++echo "${ECHO_T}no" >&6
6428 ++if test -z "$ac_cv_prog_CC"; then
6430 ++ # Extract the first word of "gcc", so it can be a program name with args.
6431 + set dummy gcc; ac_word=$2
6432 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6433 +-echo "configure:1753: checking for $ac_word" >&5
6434 +-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6435 +- echo $ac_n "(cached) $ac_c" 1>&6
6436 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6438 ++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6439 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
6441 ++ if test -n "$ac_ct_CC"; then
6442 ++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6444 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 ++for as_dir in $PATH
6448 ++ test -z "$as_dir" && as_dir=.
6449 ++ for ac_exec_ext in '' $ac_executable_extensions; do
6450 ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6451 ++ ac_cv_prog_ac_ct_CC="gcc"
6452 ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 ++ac_ct_CC=$ac_cv_prog_ac_ct_CC
6461 ++if test -n "$ac_ct_CC"; then
6462 ++ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6463 ++echo "${ECHO_T}$ac_ct_CC" >&6
6465 ++ echo "$as_me:$LINENO: result: no" >&5
6466 ++echo "${ECHO_T}no" >&6
6471 ++ CC="$ac_cv_prog_CC"
6474 ++if test -z "$CC"; then
6475 ++ if test -n "$ac_tool_prefix"; then
6476 ++ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6477 ++set dummy ${ac_tool_prefix}cc; ac_word=$2
6478 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6480 ++if test "${ac_cv_prog_CC+set}" = set; then
6481 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
6483 + if test -n "$CC"; then
6484 + ac_cv_prog_CC="$CC" # Let the user override the test.
6486 +- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6488 +- for ac_dir in $ac_dummy; do
6489 +- test -z "$ac_dir" && ac_dir=.
6490 +- if test -f $ac_dir/$ac_word; then
6491 +- ac_cv_prog_CC="gcc"
6495 +- IFS="$ac_save_ifs"
6496 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 ++for as_dir in $PATH
6500 ++ test -z "$as_dir" && as_dir=.
6501 ++ for ac_exec_ext in '' $ac_executable_extensions; do
6502 ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ++ ac_cv_prog_CC="${ac_tool_prefix}cc"
6504 ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 +-CC="$ac_cv_prog_CC"
6514 + if test -n "$CC"; then
6515 +- echo "$ac_t""$CC" 1>&6
6516 ++ echo "$as_me:$LINENO: result: $CC" >&5
6517 ++echo "${ECHO_T}$CC" >&6
6519 ++ echo "$as_me:$LINENO: result: no" >&5
6520 ++echo "${ECHO_T}no" >&6
6524 ++if test -z "$ac_cv_prog_CC"; then
6526 ++ # Extract the first word of "cc", so it can be a program name with args.
6527 ++set dummy cc; ac_word=$2
6528 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6530 ++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6531 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
6533 ++ if test -n "$ac_ct_CC"; then
6534 ++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6536 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 ++for as_dir in $PATH
6540 ++ test -z "$as_dir" && as_dir=.
6541 ++ for ac_exec_ext in '' $ac_executable_extensions; do
6542 ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543 ++ ac_cv_prog_ac_ct_CC="cc"
6544 ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 ++ac_ct_CC=$ac_cv_prog_ac_ct_CC
6553 ++if test -n "$ac_ct_CC"; then
6554 ++ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6555 ++echo "${ECHO_T}$ac_ct_CC" >&6
6557 ++ echo "$as_me:$LINENO: result: no" >&5
6558 ++echo "${ECHO_T}no" >&6
6563 +- echo "$ac_t""no" 1>&6
6564 ++ CC="$ac_cv_prog_CC"
6568 + if test -z "$CC"; then
6569 + # Extract the first word of "cc", so it can be a program name with args.
6570 + set dummy cc; ac_word=$2
6571 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6572 +-echo "configure:1783: checking for $ac_word" >&5
6573 +-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6574 +- echo $ac_n "(cached) $ac_c" 1>&6
6575 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6577 ++if test "${ac_cv_prog_CC+set}" = set; then
6578 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
6580 + if test -n "$CC"; then
6581 + ac_cv_prog_CC="$CC" # Let the user override the test.
6583 +- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6584 + ac_prog_rejected=no
6586 +- for ac_dir in $ac_dummy; do
6587 +- test -z "$ac_dir" && ac_dir=.
6588 +- if test -f $ac_dir/$ac_word; then
6589 +- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6590 +- ac_prog_rejected=yes
6593 +- ac_cv_prog_CC="cc"
6597 +- IFS="$ac_save_ifs"
6598 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 ++for as_dir in $PATH
6602 ++ test -z "$as_dir" && as_dir=.
6603 ++ for ac_exec_ext in '' $ac_executable_extensions; do
6604 ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605 ++ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6606 ++ ac_prog_rejected=yes
6609 ++ ac_cv_prog_CC="cc"
6610 ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 + if test $ac_prog_rejected = yes; then
6617 + # We found a bogon in the path, so make sure we never use it.
6618 + set dummy $ac_cv_prog_CC
6620 +- if test $# -gt 0; then
6621 ++ if test $# != 0; then
6622 + # We chose a different compiler from the bogus one.
6623 + # However, it has the same basename, so the bogon will be chosen
6624 + # first if we set CC to just the basename; use the full file name.
6626 +- set dummy "$ac_dir/$ac_word" "$@"
6628 +- ac_cv_prog_CC="$@"
6629 ++ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6634 +-CC="$ac_cv_prog_CC"
6636 + if test -n "$CC"; then
6637 +- echo "$ac_t""$CC" 1>&6
6638 ++ echo "$as_me:$LINENO: result: $CC" >&5
6639 ++echo "${ECHO_T}$CC" >&6
6641 +- echo "$ac_t""no" 1>&6
6642 ++ echo "$as_me:$LINENO: result: no" >&5
6643 ++echo "${ECHO_T}no" >&6
6646 +- if test -z "$CC"; then
6647 +- case "`uname -s`" in
6648 +- *win32* | *WIN32*)
6649 +- # Extract the first word of "cl", so it can be a program name with args.
6650 +-set dummy cl; ac_word=$2
6651 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6652 +-echo "configure:1834: checking for $ac_word" >&5
6653 +-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6654 +- echo $ac_n "(cached) $ac_c" 1>&6
6656 ++if test -z "$CC"; then
6657 ++ if test -n "$ac_tool_prefix"; then
6658 ++ for ac_prog in cl
6660 ++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6661 ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6662 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664 ++if test "${ac_cv_prog_CC+set}" = set; then
6665 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
6667 + if test -n "$CC"; then
6668 + ac_cv_prog_CC="$CC" # Let the user override the test.
6670 +- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6672 +- for ac_dir in $ac_dummy; do
6673 +- test -z "$ac_dir" && ac_dir=.
6674 +- if test -f $ac_dir/$ac_word; then
6675 +- ac_cv_prog_CC="cl"
6679 +- IFS="$ac_save_ifs"
6680 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 ++for as_dir in $PATH
6684 ++ test -z "$as_dir" && as_dir=.
6685 ++ for ac_exec_ext in '' $ac_executable_extensions; do
6686 ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ++ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6688 ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 +-CC="$ac_cv_prog_CC"
6698 + if test -n "$CC"; then
6699 +- echo "$ac_t""$CC" 1>&6
6700 ++ echo "$as_me:$LINENO: result: $CC" >&5
6701 ++echo "${ECHO_T}$CC" >&6
6703 +- echo "$ac_t""no" 1>&6
6704 ++ echo "$as_me:$LINENO: result: no" >&5
6705 ++echo "${ECHO_T}no" >&6
6710 ++ test -n "$CC" && break
6713 ++if test -z "$CC"; then
6715 ++ for ac_prog in cl
6717 ++ # Extract the first word of "$ac_prog", so it can be a program name with args.
6718 ++set dummy $ac_prog; ac_word=$2
6719 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6721 ++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6722 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
6724 ++ if test -n "$ac_ct_CC"; then
6725 ++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6727 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 ++for as_dir in $PATH
6731 ++ test -z "$as_dir" && as_dir=.
6732 ++ for ac_exec_ext in '' $ac_executable_extensions; do
6733 ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ++ ac_cv_prog_ac_ct_CC="$ac_prog"
6735 ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 +- test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6744 ++ac_ct_CC=$ac_cv_prog_ac_ct_CC
6745 ++if test -n "$ac_ct_CC"; then
6746 ++ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6747 ++echo "${ECHO_T}$ac_ct_CC" >&6
6749 ++ echo "$as_me:$LINENO: result: no" >&5
6750 ++echo "${ECHO_T}no" >&6
6753 ++ test -n "$ac_ct_CC" && break
6756 +-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6757 +-echo "configure:1866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6764 +-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6765 +-ac_cpp='$CPP $CPPFLAGS'
6766 +-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6767 +-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6768 +-cross_compiling=$ac_cv_prog_cc_cross
6770 +-cat > conftest.$ac_ext << EOF
6771 ++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6772 ++See \`config.log' for more details." >&5
6773 ++echo "$as_me: error: no acceptable C compiler found in \$PATH
6774 ++See \`config.log' for more details." >&2;}
6775 ++ { (exit 1); exit 1; }; }
6777 ++# Provide some information about the compiler.
6778 ++echo "$as_me:$LINENO:" \
6779 ++ "checking for C compiler version" >&5
6780 ++ac_compiler=`set X $ac_compile; echo $2`
6781 ++{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6782 ++ (eval $ac_compiler --version </dev/null >&5) 2>&5
6784 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 ++ (exit $ac_status); }
6786 ++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6787 ++ (eval $ac_compiler -v </dev/null >&5) 2>&5
6789 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 ++ (exit $ac_status); }
6791 ++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6792 ++ (eval $ac_compiler -V </dev/null >&5) 2>&5
6794 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 ++ (exit $ac_status); }
6797 ++cat >conftest.$ac_ext <<_ACEOF
6800 ++cat confdefs.h >>conftest.$ac_ext
6801 ++cat >>conftest.$ac_ext <<_ACEOF
6802 ++/* end confdefs.h. */
6808 +-#line 1877 "configure"
6809 +-#include "confdefs.h"
6814 ++ac_clean_files_save=$ac_clean_files
6815 ++ac_clean_files="$ac_clean_files a.out a.exe b.out"
6816 ++# Try to create an executable without -o first, disregard a.out.
6817 ++# It will help us diagnose broken compilers, and finding out an intuition
6819 ++echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
6820 ++echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
6821 ++ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6822 ++if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
6823 ++ (eval $ac_link_default) 2>&5
6825 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 ++ (exit $ac_status); }; then
6827 ++ # Find the output, starting from the most likely. This scheme is
6828 ++# not robust to junk in `.', hence go to wildcards (a.*) only as a last
6831 ++# Be careful to initialize this variable, since it used to be cached.
6832 ++# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
6834 ++# b.out is created by i960 compilers.
6835 ++for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
6837 ++ test -f "$ac_file" || continue
6839 ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
6841 ++ conftest.$ac_ext )
6842 ++ # This is the source file.
6845 ++ # We found the default executable, but exeext='' is most
6846 ++ # certainly right.
6849 ++ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6850 ++ # FIXME: I believe we export ac_cv_exeext for Libtool,
6851 ++ # but it would be cool to find out if it's true. Does anybody
6852 ++ # maintain Libtool? --akim.
6853 ++ export ac_cv_exeext
6860 ++ echo "$as_me: failed program was:" >&5
6861 ++sed 's/^/| /' conftest.$ac_ext >&5
6863 +-main(){return(0);}
6865 +-if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6866 +- ac_cv_prog_cc_works=yes
6867 +- # If we can't run a trivial program, we are probably using a cross compiler.
6868 +- if (./conftest; exit) 2>/dev/null; then
6869 +- ac_cv_prog_cc_cross=no
6870 ++{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
6871 ++See \`config.log' for more details." >&5
6872 ++echo "$as_me: error: C compiler cannot create executables
6873 ++See \`config.log' for more details." >&2;}
6874 ++ { (exit 77); exit 77; }; }
6877 ++ac_exeext=$ac_cv_exeext
6878 ++echo "$as_me:$LINENO: result: $ac_file" >&5
6879 ++echo "${ECHO_T}$ac_file" >&6
6881 ++# Check the compiler produces executables we can run. If not, either
6882 ++# the compiler is broken, or we cross compile.
6883 ++echo "$as_me:$LINENO: checking whether the C compiler works" >&5
6884 ++echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
6885 ++# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
6886 ++# If not cross compiling, check that we can run a simple program.
6887 ++if test "$cross_compiling" != yes; then
6888 ++ if { ac_try='./$ac_file'
6889 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 ++ (eval $ac_try) 2>&5
6892 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 ++ (exit $ac_status); }; }; then
6894 ++ cross_compiling=no
6896 +- ac_cv_prog_cc_cross=yes
6897 ++ if test "$cross_compiling" = maybe; then
6898 ++ cross_compiling=yes
6900 ++ { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
6901 ++If you meant to cross compile, use \`--host'.
6902 ++See \`config.log' for more details." >&5
6903 ++echo "$as_me: error: cannot run C compiled programs.
6904 ++If you meant to cross compile, use \`--host'.
6905 ++See \`config.log' for more details." >&2;}
6906 ++ { (exit 1); exit 1; }; }
6910 +- echo "configure: failed program was:" >&5
6911 +- cat conftest.$ac_ext >&5
6912 +- ac_cv_prog_cc_works=no
6916 +-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6917 +-ac_cpp='$CPP $CPPFLAGS'
6918 +-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6919 +-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6920 +-cross_compiling=$ac_cv_prog_cc_cross
6922 +-echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6923 +-if test $ac_cv_prog_cc_works = no; then
6924 +- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6926 +-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6927 +-echo "configure:1908: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6928 +-echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6929 +-cross_compiling=$ac_cv_prog_cc_cross
6931 +-echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6932 +-echo "configure:1913: checking whether we are using GNU C" >&5
6933 +-if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6934 +- echo $ac_n "(cached) $ac_c" 1>&6
6936 +- cat > conftest.c <<EOF
6941 +-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6942 +- ac_cv_prog_gcc=yes
6943 ++echo "$as_me:$LINENO: result: yes" >&5
6944 ++echo "${ECHO_T}yes" >&6
6946 ++rm -f a.out a.exe conftest$ac_cv_exeext b.out
6947 ++ac_clean_files=$ac_clean_files_save
6948 ++# Check the compiler produces executables we can run. If not, either
6949 ++# the compiler is broken, or we cross compile.
6950 ++echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
6951 ++echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
6952 ++echo "$as_me:$LINENO: result: $cross_compiling" >&5
6953 ++echo "${ECHO_T}$cross_compiling" >&6
6955 ++echo "$as_me:$LINENO: checking for suffix of executables" >&5
6956 ++echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
6957 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 ++ (eval $ac_link) 2>&5
6960 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 ++ (exit $ac_status); }; then
6962 ++ # If both `conftest.exe' and `conftest' are `present' (well, observable)
6963 ++# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
6964 ++# work properly (i.e., refer to `conftest.exe'), while it won't with
6966 ++for ac_file in conftest.exe conftest conftest.*; do
6967 ++ test -f "$ac_file" || continue
6969 ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
6970 ++ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6971 ++ export ac_cv_exeext
6977 +- ac_cv_prog_gcc=no
6980 ++ { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
6981 ++See \`config.log' for more details." >&5
6982 ++echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
6983 ++See \`config.log' for more details." >&2;}
6984 ++ { (exit 1); exit 1; }; }
6987 ++rm -f conftest$ac_cv_exeext
6988 ++echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
6989 ++echo "${ECHO_T}$ac_cv_exeext" >&6
6991 ++rm -f conftest.$ac_ext
6992 ++EXEEXT=$ac_cv_exeext
6994 ++echo "$as_me:$LINENO: checking for suffix of object files" >&5
6995 ++echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
6996 ++if test "${ac_cv_objext+set}" = set; then
6997 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
6999 ++ cat >conftest.$ac_ext <<_ACEOF
7002 ++cat confdefs.h >>conftest.$ac_ext
7003 ++cat >>conftest.$ac_ext <<_ACEOF
7004 ++/* end confdefs.h. */
7006 +-echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7011 +-if test $ac_cv_prog_gcc = yes; then
7017 ++rm -f conftest.o conftest.obj
7018 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7019 ++ (eval $ac_compile) 2>&5
7021 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 ++ (exit $ac_status); }; then
7023 ++ for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
7025 ++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
7026 ++ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
7033 ++ echo "$as_me: failed program was:" >&5
7034 ++sed 's/^/| /' conftest.$ac_ext >&5
7036 +-ac_test_CFLAGS="${CFLAGS+set}"
7037 +-ac_save_CFLAGS="$CFLAGS"
7039 +-echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7040 +-echo "configure:1941: checking whether ${CC-cc} accepts -g" >&5
7041 +-if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7042 +- echo $ac_n "(cached) $ac_c" 1>&6
7044 +- echo 'void f(){}' > conftest.c
7045 +-if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7046 ++{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
7047 ++See \`config.log' for more details." >&5
7048 ++echo "$as_me: error: cannot compute suffix of object files: cannot compile
7049 ++See \`config.log' for more details." >&2;}
7050 ++ { (exit 1); exit 1; }; }
7053 ++rm -f conftest.$ac_cv_objext conftest.$ac_ext
7055 ++echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
7056 ++echo "${ECHO_T}$ac_cv_objext" >&6
7057 ++OBJEXT=$ac_cv_objext
7059 ++echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7060 ++echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7061 ++if test "${ac_cv_c_compiler_gnu+set}" = set; then
7062 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
7064 ++ cat >conftest.$ac_ext <<_ACEOF
7067 ++cat confdefs.h >>conftest.$ac_ext
7068 ++cat >>conftest.$ac_ext <<_ACEOF
7069 ++/* end confdefs.h. */
7082 ++rm -f conftest.$ac_objext
7083 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7084 ++ (eval $ac_compile) 2>conftest.er1
7086 ++ grep -v '^ *+' conftest.er1 >conftest.err
7087 ++ rm -f conftest.er1
7088 ++ cat conftest.err >&5
7089 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 ++ (exit $ac_status); } &&
7091 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7092 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 ++ (eval $ac_try) 2>&5
7095 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 ++ (exit $ac_status); }; } &&
7097 ++ { ac_try='test -s conftest.$ac_objext'
7098 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 ++ (eval $ac_try) 2>&5
7101 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 ++ (exit $ac_status); }; }; then
7103 ++ ac_compiler_gnu=yes
7105 ++ echo "$as_me: failed program was:" >&5
7106 ++sed 's/^/| /' conftest.$ac_ext >&5
7108 ++ac_compiler_gnu=no
7110 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7111 ++ac_cv_c_compiler_gnu=$ac_compiler_gnu
7114 ++echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7115 ++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7116 ++GCC=`test $ac_compiler_gnu = yes && echo yes`
7117 ++ac_test_CFLAGS=${CFLAGS+set}
7118 ++ac_save_CFLAGS=$CFLAGS
7120 ++echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7121 ++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7122 ++if test "${ac_cv_prog_cc_g+set}" = set; then
7123 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
7125 ++ cat >conftest.$ac_ext <<_ACEOF
7128 ++cat confdefs.h >>conftest.$ac_ext
7129 ++cat >>conftest.$ac_ext <<_ACEOF
7130 ++/* end confdefs.h. */
7140 ++rm -f conftest.$ac_objext
7141 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142 ++ (eval $ac_compile) 2>conftest.er1
7144 ++ grep -v '^ *+' conftest.er1 >conftest.err
7145 ++ rm -f conftest.er1
7146 ++ cat conftest.err >&5
7147 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 ++ (exit $ac_status); } &&
7149 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7150 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 ++ (eval $ac_try) 2>&5
7153 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 ++ (exit $ac_status); }; } &&
7155 ++ { ac_try='test -s conftest.$ac_objext'
7156 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 ++ (eval $ac_try) 2>&5
7159 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 ++ (exit $ac_status); }; }; then
7161 + ac_cv_prog_cc_g=yes
7163 +- ac_cv_prog_cc_g=no
7166 ++ echo "$as_me: failed program was:" >&5
7167 ++sed 's/^/| /' conftest.$ac_ext >&5
7169 ++ac_cv_prog_cc_g=no
7172 +-echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7173 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7175 ++echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7176 ++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7177 + if test "$ac_test_CFLAGS" = set; then
7178 +- CFLAGS="$ac_save_CFLAGS"
7179 ++ CFLAGS=$ac_save_CFLAGS
7180 + elif test $ac_cv_prog_cc_g = yes; then
7181 + if test "$GCC" = yes; then
7183 +@@ -1967,26 +3245,285 @@
7187 ++echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7188 ++echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7189 ++if test "${ac_cv_prog_cc_stdc+set}" = set; then
7190 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
7192 ++ ac_cv_prog_cc_stdc=no
7194 ++cat >conftest.$ac_ext <<_ACEOF
7197 ++cat confdefs.h >>conftest.$ac_ext
7198 ++cat >>conftest.$ac_ext <<_ACEOF
7199 ++/* end confdefs.h. */
7200 ++#include <stdarg.h>
7201 ++#include <stdio.h>
7202 ++#include <sys/types.h>
7203 ++#include <sys/stat.h>
7204 ++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7205 ++struct buf { int x; };
7206 ++FILE * (*rcsopen) (struct buf *, struct stat *, int);
7207 ++static char *e (p, i)
7213 ++static char *f (char * (*g) (char **, int), char **p, ...)
7218 ++ s = g (p, va_arg (v,int));
7224 ++/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7225 ++ function prototypes and stuff, but not '\xHH' hex character constants.
7226 ++ These don't provoke an error unfortunately, instead are silently treated
7227 ++ as 'x'. The following induces an error, until -std1 is added to get
7228 ++ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7229 ++ array size at least. It's necessary to write '\x00'==0 to get something
7230 ++ that's true only with -std1. */
7231 ++int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7233 ++int test (int i, double x);
7234 ++struct s1 {int (*f) (int a);};
7235 ++struct s2 {int (*f) (double a);};
7236 ++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7242 ++return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7247 ++# Don't try gcc -ansi; that turns off useful extensions and
7248 ++# breaks some systems' header files.
7249 ++# AIX -qlanglvl=ansi
7250 ++# Ultrix and OSF/1 -std1
7251 ++# HP-UX 10.20 and later -Ae
7252 ++# HP-UX older versions -Aa -D_HPUX_SOURCE
7253 ++# SVR4 -Xc -D__EXTENSIONS__
7254 ++for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7256 ++ CC="$ac_save_CC $ac_arg"
7257 ++ rm -f conftest.$ac_objext
7258 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 ++ (eval $ac_compile) 2>conftest.er1
7261 ++ grep -v '^ *+' conftest.er1 >conftest.err
7262 ++ rm -f conftest.er1
7263 ++ cat conftest.err >&5
7264 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 ++ (exit $ac_status); } &&
7266 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7267 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 ++ (eval $ac_try) 2>&5
7270 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 ++ (exit $ac_status); }; } &&
7272 ++ { ac_try='test -s conftest.$ac_objext'
7273 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 ++ (eval $ac_try) 2>&5
7276 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 ++ (exit $ac_status); }; }; then
7278 ++ ac_cv_prog_cc_stdc=$ac_arg
7281 ++ echo "$as_me: failed program was:" >&5
7282 ++sed 's/^/| /' conftest.$ac_ext >&5
7284 +-# On Suns, sometimes $CPP names a directory.
7285 +-if test -n "$CPP" && test -d "$CPP"; then
7288 ++rm -f conftest.err conftest.$ac_objext
7290 ++rm -f conftest.$ac_ext conftest.$ac_objext
7293 +-#### Some systems specify a CPP to use unless we are using GCC.
7294 +-#### Now that we know whether we are using GCC, we can decide whether
7295 +-#### to use that one.
7296 +-if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7298 +- CPP="$NON_GNU_CPP"
7301 +-#### Some systems specify a CC to use unless we are using GCC.
7302 +-#### Now that we know whether we are using GCC, we can decide whether
7303 +-#### to use that one.
7304 +-if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7305 ++case "x$ac_cv_prog_cc_stdc" in
7307 ++ echo "$as_me:$LINENO: result: none needed" >&5
7308 ++echo "${ECHO_T}none needed" >&6 ;;
7310 ++ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7311 ++echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7312 ++ CC="$CC $ac_cv_prog_cc_stdc" ;;
7315 ++# Some people use a C++ compiler to compile C. Since we use `exit',
7316 ++# in C++ we need to declare it. In case someone uses the same compiler
7317 ++# for both compiling C and C++ we need to have the C++ compiler decide
7318 ++# the declaration of exit, since it's the most demanding environment.
7319 ++cat >conftest.$ac_ext <<_ACEOF
7320 ++#ifndef __cplusplus
7324 ++rm -f conftest.$ac_objext
7325 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326 ++ (eval $ac_compile) 2>conftest.er1
7328 ++ grep -v '^ *+' conftest.er1 >conftest.err
7329 ++ rm -f conftest.er1
7330 ++ cat conftest.err >&5
7331 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 ++ (exit $ac_status); } &&
7333 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7334 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 ++ (eval $ac_try) 2>&5
7337 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 ++ (exit $ac_status); }; } &&
7339 ++ { ac_try='test -s conftest.$ac_objext'
7340 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 ++ (eval $ac_try) 2>&5
7343 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 ++ (exit $ac_status); }; }; then
7345 ++ for ac_declaration in \
7347 ++ 'extern "C" void std::exit (int) throw (); using std::exit;' \
7348 ++ 'extern "C" void std::exit (int); using std::exit;' \
7349 ++ 'extern "C" void exit (int) throw ();' \
7350 ++ 'extern "C" void exit (int);' \
7351 ++ 'void exit (int);'
7353 ++ cat >conftest.$ac_ext <<_ACEOF
7356 ++cat confdefs.h >>conftest.$ac_ext
7357 ++cat >>conftest.$ac_ext <<_ACEOF
7358 ++/* end confdefs.h. */
7360 ++#include <stdlib.h>
7369 ++rm -f conftest.$ac_objext
7370 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 ++ (eval $ac_compile) 2>conftest.er1
7373 ++ grep -v '^ *+' conftest.er1 >conftest.err
7374 ++ rm -f conftest.er1
7375 ++ cat conftest.err >&5
7376 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 ++ (exit $ac_status); } &&
7378 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7379 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 ++ (eval $ac_try) 2>&5
7382 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 ++ (exit $ac_status); }; } &&
7384 ++ { ac_try='test -s conftest.$ac_objext'
7385 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 ++ (eval $ac_try) 2>&5
7388 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 ++ (exit $ac_status); }; }; then
7392 ++ echo "$as_me: failed program was:" >&5
7393 ++sed 's/^/| /' conftest.$ac_ext >&5
7397 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 ++ cat >conftest.$ac_ext <<_ACEOF
7401 ++cat confdefs.h >>conftest.$ac_ext
7402 ++cat >>conftest.$ac_ext <<_ACEOF
7403 ++/* end confdefs.h. */
7413 ++rm -f conftest.$ac_objext
7414 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 ++ (eval $ac_compile) 2>conftest.er1
7417 ++ grep -v '^ *+' conftest.er1 >conftest.err
7418 ++ rm -f conftest.er1
7419 ++ cat conftest.err >&5
7420 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 ++ (exit $ac_status); } &&
7422 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7423 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 ++ (eval $ac_try) 2>&5
7426 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 ++ (exit $ac_status); }; } &&
7428 ++ { ac_try='test -s conftest.$ac_objext'
7429 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 ++ (eval $ac_try) 2>&5
7432 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 ++ (exit $ac_status); }; }; then
7436 ++ echo "$as_me: failed program was:" >&5
7437 ++sed 's/^/| /' conftest.$ac_ext >&5
7440 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7443 ++if test -n "$ac_declaration"; then
7444 ++ echo '#ifdef __cplusplus' >>confdefs.h
7445 ++ echo $ac_declaration >>confdefs.h
7446 ++ echo '#endif' >>confdefs.h
7450 ++ echo "$as_me: failed program was:" >&5
7451 ++sed 's/^/| /' conftest.$ac_ext >&5
7454 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7456 ++ac_cpp='$CPP $CPPFLAGS'
7457 ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ++ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463 ++# On Suns, sometimes $CPP names a directory.
7464 ++if test -n "$CPP" && test -d "$CPP"; then
7468 ++#### Some systems specify a CPP to use unless we are using GCC.
7469 ++#### Now that we know whether we are using GCC, we can decide whether
7470 ++#### to use that one.
7471 ++if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7473 ++ CPP="$NON_GNU_CPP"
7476 ++#### Some systems specify a CC to use unless we are using GCC.
7477 ++#### Now that we know whether we are using GCC, we can decide whether
7478 ++#### to use that one.
7479 ++if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7480 + test x$cc_specified != xyes
7483 +@@ -2016,106 +3553,250 @@
7484 + #### should make an entry in src/config.h, don't forget to add an
7485 + #### #undef clause to src/config.h.in for autoconf to modify.
7487 +-echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7488 +-echo "configure:2021: checking whether ln -s works" >&5
7489 +-if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7490 +- echo $ac_n "(cached) $ac_c" 1>&6
7492 +- rm -f conftestdata
7493 +-if ln -s X conftestdata 2>/dev/null
7495 +- rm -f conftestdata
7496 +- ac_cv_prog_LN_S="ln -s"
7497 ++echo "$as_me:$LINENO: checking whether ln -s works" >&5
7498 ++echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7500 ++if test "$LN_S" = "ln -s"; then
7501 ++ echo "$as_me:$LINENO: result: yes" >&5
7502 ++echo "${ECHO_T}yes" >&6
7504 +- ac_cv_prog_LN_S=ln
7507 +-LN_S="$ac_cv_prog_LN_S"
7508 +-if test "$ac_cv_prog_LN_S" = "ln -s"; then
7509 +- echo "$ac_t""yes" 1>&6
7511 +- echo "$ac_t""no" 1>&6
7512 ++ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7513 ++echo "${ECHO_T}no, using $LN_S" >&6
7516 +-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7517 +-echo "configure:2042: checking how to run the C preprocessor" >&5
7519 ++ac_cpp='$CPP $CPPFLAGS'
7520 ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521 ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522 ++ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523 ++echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7524 ++echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7525 + # On Suns, sometimes $CPP names a directory.
7526 + if test -n "$CPP" && test -d "$CPP"; then
7529 + if test -z "$CPP"; then
7530 +-if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7531 +- echo $ac_n "(cached) $ac_c" 1>&6
7532 ++ if test "${ac_cv_prog_CPP+set}" = set; then
7533 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
7535 +- # This must be in double quotes, not single quotes, because CPP may get
7536 +- # substituted into the Makefile and "${CC-cc}" will confuse make.
7537 +- CPP="${CC-cc} -E"
7538 ++ # Double quotes because CPP needs to be expanded
7539 ++ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7541 ++ ac_preproc_ok=false
7542 ++for ac_c_preproc_warn_flag in '' yes
7544 ++ # Use a header file that comes with gcc, so configuring glibc
7545 ++ # with a fresh cross-compiler works.
7546 ++ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7547 ++ # <limits.h> exists even on freestanding compilers.
7548 + # On the NeXT, cc -E runs the code through the compiler's parser,
7549 +- # not just through cpp.
7550 +- cat > conftest.$ac_ext <<EOF
7551 +-#line 2057 "configure"
7552 +-#include "confdefs.h"
7553 +-#include <assert.h>
7556 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7557 +-{ (eval echo configure:2063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7558 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7559 +-if test -z "$ac_err"; then
7561 ++ # not just through cpp. "Syntax error" is here to catch this case.
7562 ++ cat >conftest.$ac_ext <<_ACEOF
7565 ++cat confdefs.h >>conftest.$ac_ext
7566 ++cat >>conftest.$ac_ext <<_ACEOF
7567 ++/* end confdefs.h. */
7569 ++# include <limits.h>
7571 ++# include <assert.h>
7575 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7576 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7578 ++ grep -v '^ *+' conftest.er1 >conftest.err
7579 ++ rm -f conftest.er1
7580 ++ cat conftest.err >&5
7581 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 ++ (exit $ac_status); } >/dev/null; then
7583 ++ if test -s conftest.err; then
7584 ++ ac_cpp_err=$ac_c_preproc_warn_flag
7585 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7590 +- echo "$ac_err" >&5
7591 +- echo "configure: failed program was:" >&5
7592 +- cat conftest.$ac_ext >&5
7594 +- CPP="${CC-cc} -E -traditional-cpp"
7595 +- cat > conftest.$ac_ext <<EOF
7596 +-#line 2074 "configure"
7597 +-#include "confdefs.h"
7598 +-#include <assert.h>
7601 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7602 +-{ (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7603 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7604 +-if test -z "$ac_err"; then
7607 ++if test -z "$ac_cpp_err"; then
7610 +- echo "$ac_err" >&5
7611 +- echo "configure: failed program was:" >&5
7612 +- cat conftest.$ac_ext >&5
7614 +- CPP="${CC-cc} -nologo -E"
7615 +- cat > conftest.$ac_ext <<EOF
7616 +-#line 2091 "configure"
7617 +-#include "confdefs.h"
7618 +-#include <assert.h>
7621 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7622 +-{ (eval echo configure:2097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7623 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7624 +-if test -z "$ac_err"; then
7626 ++ echo "$as_me: failed program was:" >&5
7627 ++sed 's/^/| /' conftest.$ac_ext >&5
7629 ++ # Broken: fails on valid input.
7632 ++rm -f conftest.err conftest.$ac_ext
7634 ++ # OK, works on sane cases. Now check whether non-existent headers
7635 ++ # can be detected and how.
7636 ++ cat >conftest.$ac_ext <<_ACEOF
7639 ++cat confdefs.h >>conftest.$ac_ext
7640 ++cat >>conftest.$ac_ext <<_ACEOF
7641 ++/* end confdefs.h. */
7642 ++#include <ac_nonexistent.h>
7644 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7645 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7647 ++ grep -v '^ *+' conftest.er1 >conftest.err
7648 ++ rm -f conftest.er1
7649 ++ cat conftest.err >&5
7650 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 ++ (exit $ac_status); } >/dev/null; then
7652 ++ if test -s conftest.err; then
7653 ++ ac_cpp_err=$ac_c_preproc_warn_flag
7654 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7659 +- echo "$ac_err" >&5
7660 +- echo "configure: failed program was:" >&5
7661 +- cat conftest.$ac_ext >&5
7667 ++if test -z "$ac_cpp_err"; then
7668 ++ # Broken: success on invalid input.
7671 ++ echo "$as_me: failed program was:" >&5
7672 ++sed 's/^/| /' conftest.$ac_ext >&5
7674 ++ # Passes both tests.
7679 ++rm -f conftest.err conftest.$ac_ext
7682 ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7683 ++rm -f conftest.err conftest.$ac_ext
7684 ++if $ac_preproc_ok; then
7688 +- ac_cv_prog_CPP="$CPP"
7691 ++ ac_cv_prog_CPP=$CPP
7694 ++ CPP=$ac_cv_prog_CPP
7696 ++ ac_cv_prog_CPP=$CPP
7698 ++echo "$as_me:$LINENO: result: $CPP" >&5
7699 ++echo "${ECHO_T}$CPP" >&6
7700 ++ac_preproc_ok=false
7701 ++for ac_c_preproc_warn_flag in '' yes
7703 ++ # Use a header file that comes with gcc, so configuring glibc
7704 ++ # with a fresh cross-compiler works.
7705 ++ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706 ++ # <limits.h> exists even on freestanding compilers.
7707 ++ # On the NeXT, cc -E runs the code through the compiler's parser,
7708 ++ # not just through cpp. "Syntax error" is here to catch this case.
7709 ++ cat >conftest.$ac_ext <<_ACEOF
7712 ++cat confdefs.h >>conftest.$ac_ext
7713 ++cat >>conftest.$ac_ext <<_ACEOF
7714 ++/* end confdefs.h. */
7716 ++# include <limits.h>
7718 ++# include <assert.h>
7722 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7723 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7725 ++ grep -v '^ *+' conftest.er1 >conftest.err
7726 ++ rm -f conftest.er1
7727 ++ cat conftest.err >&5
7728 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 ++ (exit $ac_status); } >/dev/null; then
7730 ++ if test -s conftest.err; then
7731 ++ ac_cpp_err=$ac_c_preproc_warn_flag
7732 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7739 ++if test -z "$ac_cpp_err"; then
7742 ++ echo "$as_me: failed program was:" >&5
7743 ++sed 's/^/| /' conftest.$ac_ext >&5
7745 ++ # Broken: fails on valid input.
7748 ++rm -f conftest.err conftest.$ac_ext
7750 ++ # OK, works on sane cases. Now check whether non-existent headers
7751 ++ # can be detected and how.
7752 ++ cat >conftest.$ac_ext <<_ACEOF
7755 ++cat confdefs.h >>conftest.$ac_ext
7756 ++cat >>conftest.$ac_ext <<_ACEOF
7757 ++/* end confdefs.h. */
7758 ++#include <ac_nonexistent.h>
7760 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7761 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7763 ++ grep -v '^ *+' conftest.er1 >conftest.err
7764 ++ rm -f conftest.er1
7765 ++ cat conftest.err >&5
7766 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 ++ (exit $ac_status); } >/dev/null; then
7768 ++ if test -s conftest.err; then
7769 ++ ac_cpp_err=$ac_c_preproc_warn_flag
7770 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7777 +- CPP="$ac_cv_prog_CPP"
7778 ++if test -z "$ac_cpp_err"; then
7779 ++ # Broken: success on invalid input.
7782 +- ac_cv_prog_CPP="$CPP"
7783 ++ echo "$as_me: failed program was:" >&5
7784 ++sed 's/^/| /' conftest.$ac_ext >&5
7786 ++ # Passes both tests.
7790 ++rm -f conftest.err conftest.$ac_ext
7793 ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7794 ++rm -f conftest.err conftest.$ac_ext
7795 ++if $ac_preproc_ok; then
7798 ++ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7799 ++See \`config.log' for more details." >&5
7800 ++echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7801 ++See \`config.log' for more details." >&2;}
7802 ++ { (exit 1); exit 1; }; }
7804 +-echo "$ac_t""$CPP" 1>&6
7807 ++ac_cpp='$CPP $CPPFLAGS'
7808 ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ++ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812 + # Find a good install program. We prefer a C program (faster),
7813 + # so one script is as good as another. But avoid the broken or
7814 +@@ -2124,151 +3805,244 @@
7815 + # SunOS /usr/etc/install
7816 + # IRIX /sbin/install
7817 + # AIX /bin/install
7818 ++# AmigaOS /C/install, which installs bootblocks on floppy discs
7819 + # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7820 + # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7821 + # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7822 ++# OS/2's system install, which has a completely different semantic
7823 + # ./install, which can be erroneously created by make from ./install.sh.
7824 +-echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7825 +-echo "configure:2133: checking for a BSD compatible install" >&5
7826 ++echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7827 ++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7828 + if test -z "$INSTALL"; then
7829 +-if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7830 +- echo $ac_n "(cached) $ac_c" 1>&6
7831 ++if test "${ac_cv_path_install+set}" = set; then
7832 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
7834 +- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
7835 +- for ac_dir in $PATH; do
7836 +- # Account for people who put trailing slashes in PATH elements.
7837 +- case "$ac_dir/" in
7838 +- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7840 +- # OSF1 and SCO ODT 3.0 have their own names for install.
7841 +- # Don't use installbsd from OSF since it installs stuff as root
7843 +- for ac_prog in ginstall scoinst install; do
7844 +- if test -f $ac_dir/$ac_prog; then
7845 ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 ++for as_dir in $PATH
7849 ++ test -z "$as_dir" && as_dir=.
7850 ++ # Account for people who put trailing slashes in PATH elements.
7852 ++ ./ | .// | /cC/* | \
7853 ++ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7854 ++ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7857 ++ # OSF1 and SCO ODT 3.0 have their own names for install.
7858 ++ # Don't use installbsd from OSF since it installs stuff as root
7860 ++ for ac_prog in ginstall scoinst install; do
7861 ++ for ac_exec_ext in '' $ac_executable_extensions; do
7862 ++ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7863 + if test $ac_prog = install &&
7864 +- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7865 ++ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7866 + # AIX install. It has an incompatible calling convention.
7868 ++ elif test $ac_prog = install &&
7869 ++ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7870 ++ # program-specific install script used by HP pwplus--don't use.
7873 +- ac_cv_path_install="$ac_dir/$ac_prog -c"
7875 ++ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7883 +- IFS="$ac_save_IFS"
7891 + if test "${ac_cv_path_install+set}" = set; then
7892 +- INSTALL="$ac_cv_path_install"
7893 ++ INSTALL=$ac_cv_path_install
7895 + # As a last resort, use the slow shell script. We don't cache a
7896 + # path for INSTALL within a source directory, because that will
7897 + # break other packages using the cache if that directory is
7898 + # removed, or if the path is relative.
7899 +- INSTALL="$ac_install_sh"
7900 ++ INSTALL=$ac_install_sh
7903 +-echo "$ac_t""$INSTALL" 1>&6
7904 ++echo "$as_me:$LINENO: result: $INSTALL" >&5
7905 ++echo "${ECHO_T}$INSTALL" >&6
7907 + # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7908 + # It thinks the first close brace ends the variable substitution.
7909 + test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7911 +-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
7912 ++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7914 + test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7916 + for ac_prog in 'bison -y' byacc
7918 +-# Extract the first word of "$ac_prog", so it can be a program name with args.
7919 ++ # Extract the first word of "$ac_prog", so it can be a program name with args.
7920 + set dummy $ac_prog; ac_word=$2
7921 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7922 +-echo "configure:2190: checking for $ac_word" >&5
7923 +-if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
7924 +- echo $ac_n "(cached) $ac_c" 1>&6
7925 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
7926 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7927 ++if test "${ac_cv_prog_YACC+set}" = set; then
7928 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
7930 + if test -n "$YACC"; then
7931 + ac_cv_prog_YACC="$YACC" # Let the user override the test.
7933 +- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7935 +- for ac_dir in $ac_dummy; do
7936 +- test -z "$ac_dir" && ac_dir=.
7937 +- if test -f $ac_dir/$ac_word; then
7938 +- ac_cv_prog_YACC="$ac_prog"
7942 +- IFS="$ac_save_ifs"
7943 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 ++for as_dir in $PATH
7947 ++ test -z "$as_dir" && as_dir=.
7948 ++ for ac_exec_ext in '' $ac_executable_extensions; do
7949 ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ++ ac_cv_prog_YACC="$ac_prog"
7951 ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 +-YACC="$ac_cv_prog_YACC"
7960 ++YACC=$ac_cv_prog_YACC
7961 + if test -n "$YACC"; then
7962 +- echo "$ac_t""$YACC" 1>&6
7963 ++ echo "$as_me:$LINENO: result: $YACC" >&5
7964 ++echo "${ECHO_T}$YACC" >&6
7966 +- echo "$ac_t""no" 1>&6
7967 ++ echo "$as_me:$LINENO: result: no" >&5
7968 ++echo "${ECHO_T}no" >&6
7971 +-test -n "$YACC" && break
7972 ++ test -n "$YACC" && break
7974 + test -n "$YACC" || YACC="yacc"
7976 + if test "x$RANLIB" = x; then
7977 +- # Extract the first word of "ranlib", so it can be a program name with args.
7978 +-set dummy ranlib; ac_word=$2
7979 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7980 +-echo "configure:2224: checking for $ac_word" >&5
7981 +-if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7982 +- echo $ac_n "(cached) $ac_c" 1>&6
7983 ++ if test -n "$ac_tool_prefix"; then
7984 ++ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7985 ++set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7986 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
7987 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7988 ++if test "${ac_cv_prog_RANLIB+set}" = set; then
7989 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
7991 + if test -n "$RANLIB"; then
7992 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7994 +- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7996 +- for ac_dir in $ac_dummy; do
7997 +- test -z "$ac_dir" && ac_dir=.
7998 +- if test -f $ac_dir/$ac_word; then
7999 +- ac_cv_prog_RANLIB="ranlib"
8003 +- IFS="$ac_save_ifs"
8004 +- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8005 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 ++for as_dir in $PATH
8009 ++ test -z "$as_dir" && as_dir=.
8010 ++ for ac_exec_ext in '' $ac_executable_extensions; do
8011 ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012 ++ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8013 ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 +-RANLIB="$ac_cv_prog_RANLIB"
8022 ++RANLIB=$ac_cv_prog_RANLIB
8023 + if test -n "$RANLIB"; then
8024 +- echo "$ac_t""$RANLIB" 1>&6
8025 ++ echo "$as_me:$LINENO: result: $RANLIB" >&5
8026 ++echo "${ECHO_T}$RANLIB" >&6
8028 ++ echo "$as_me:$LINENO: result: no" >&5
8029 ++echo "${ECHO_T}no" >&6
8033 ++if test -z "$ac_cv_prog_RANLIB"; then
8034 ++ ac_ct_RANLIB=$RANLIB
8035 ++ # Extract the first word of "ranlib", so it can be a program name with args.
8036 ++set dummy ranlib; ac_word=$2
8037 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8039 ++if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8040 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
8042 ++ if test -n "$ac_ct_RANLIB"; then
8043 ++ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8045 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 ++for as_dir in $PATH
8049 ++ test -z "$as_dir" && as_dir=.
8050 ++ for ac_exec_ext in '' $ac_executable_extensions; do
8051 ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ++ ac_cv_prog_ac_ct_RANLIB="ranlib"
8053 ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 ++ test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8062 ++ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8063 ++if test -n "$ac_ct_RANLIB"; then
8064 ++ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8065 ++echo "${ECHO_T}$ac_ct_RANLIB" >&6
8067 +- echo "$ac_t""no" 1>&6
8068 ++ echo "$as_me:$LINENO: result: no" >&5
8069 ++echo "${ECHO_T}no" >&6
8072 ++ RANLIB=$ac_ct_RANLIB
8074 ++ RANLIB="$ac_cv_prog_RANLIB"
8081 ++echo "$as_me:$LINENO: checking for egrep" >&5
8082 ++echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8083 ++if test "${ac_cv_prog_egrep+set}" = set; then
8084 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
8086 ++ if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8087 ++ then ac_cv_prog_egrep='grep -E'
8088 ++ else ac_cv_prog_egrep='egrep'
8091 ++echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8092 ++echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8093 ++ EGREP=$ac_cv_prog_egrep
8096 +-echo $ac_n "checking for AIX""... $ac_c" 1>&6
8097 +-echo "configure:2254: checking for AIX" >&5
8098 +-cat > conftest.$ac_ext <<EOF
8099 +-#line 2256 "configure"
8100 +-#include "confdefs.h"
8102 ++echo "$as_me:$LINENO: checking for AIX" >&5
8103 ++echo $ECHO_N "checking for AIX... $ECHO_C" >&6
8104 ++cat >conftest.$ac_ext <<_ACEOF
8107 ++cat confdefs.h >>conftest.$ac_ext
8108 ++cat >>conftest.$ac_ext <<_ACEOF
8109 ++/* end confdefs.h. */
8116 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8117 +- egrep "yes" >/dev/null 2>&1; then
8119 +- echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
8120 ++ $EGREP "yes" >/dev/null 2>&1; then
8121 ++ echo "$as_me:$LINENO: result: yes" >&5
8122 ++echo "${ECHO_T}yes" >&6
8123 ++cat >>confdefs.h <<\_ACEOF
8124 + #define _ALL_SOURCE 1
8130 +- echo "$ac_t""no" 1>&6
8131 ++ echo "$as_me:$LINENO: result: no" >&5
8132 ++echo "${ECHO_T}no" >&6
8136 +@@ -2276,12 +4050,12 @@
8138 + #### Extract some information from the operating system and machine files.
8140 +-echo "checking the machine- and system-dependent files to find out
8141 ++{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
8142 + - which libraries the lib-src programs will want, and
8143 +- - whether the GNU malloc routines are usable" 1>&6
8144 +-echo "configure:2283: checking the machine- and system-dependent files to find out
8145 ++ - whether the GNU malloc routines are usable..." >&5
8146 ++echo "$as_me: checking the machine- and system-dependent files to find out
8147 + - which libraries the lib-src programs will want, and
8148 +- - whether the GNU malloc routines are usable" >&5
8149 ++ - whether the GNU malloc routines are usable..." >&6;}
8151 + ### First figure out CFLAGS (which we use for running the compiler here)
8152 + ### and REAL_CFLAGS (which we use for real compilation).
8153 +@@ -2370,7 +4144,7 @@
8155 + #ifndef LD_SWITCH_X_SITE_AUX
8156 + #define LD_SWITCH_X_SITE_AUX
8160 + configure___ ld_switch_system=LD_SWITCH_SYSTEM
8161 + configure___ ld_switch_machine=LD_SWITCH_MACHINE
8162 +@@ -2419,343 +4193,1060 @@
8163 + CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
8167 +- # Check whether --enable-largefile or --disable-largefile was given.
8168 ++# Check whether --enable-largefile or --disable-largefile was given.
8169 + if test "${enable_largefile+set}" = set; then
8170 + enableval="$enable_largefile"
8174 +- if test "$enable_largefile" != no; then
8176 ++if test "$enable_largefile" != no; then
8178 +- echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
8179 +-echo "configure:2433: checking for special C compiler options needed for large files" >&5
8180 +-if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
8181 +- echo $ac_n "(cached) $ac_c" 1>&6
8182 ++ echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8183 ++echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8184 ++if test "${ac_cv_sys_largefile_CC+set}" = set; then
8185 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
8187 + ac_cv_sys_largefile_CC=no
8188 +- if test "$GCC" != yes; then
8189 +- # IRIX 6.2 and later do not support large files by default,
8190 +- # so use the C compiler's -n32 option if that helps.
8191 +- cat > conftest.$ac_ext <<EOF
8192 +-#line 2442 "configure"
8193 +-#include "confdefs.h"
8194 +-#include <sys/types.h>
8195 +- int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
8201 +-if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8204 +- echo "configure: failed program was:" >&5
8205 +- cat conftest.$ac_ext >&5
8209 +- cat > conftest.$ac_ext <<EOF
8210 +-#line 2460 "configure"
8211 +-#include "confdefs.h"
8212 ++ if test "$GCC" != yes; then
8215 ++ # IRIX 6.2 and later do not support large files by default,
8216 ++ # so use the C compiler's -n32 option if that helps.
8217 ++ cat >conftest.$ac_ext <<_ACEOF
8220 ++cat confdefs.h >>conftest.$ac_ext
8221 ++cat >>conftest.$ac_ext <<_ACEOF
8222 ++/* end confdefs.h. */
8223 + #include <sys/types.h>
8224 +- int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
8230 +-if { (eval echo configure:2469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8232 +- ac_cv_sys_largefile_CC=' -n32'
8233 ++ /* Check that off_t can represent 2**63 - 1 correctly.
8234 ++ We can't simply define LARGE_OFF_T to be 9223372036854775807,
8235 ++ since some C++ compilers masquerading as C compilers
8236 ++ incorrectly reject 9223372036854775807. */
8237 ++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8238 ++ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8239 ++ && LARGE_OFF_T % 2147483647 == 1)
8249 ++ rm -f conftest.$ac_objext
8250 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251 ++ (eval $ac_compile) 2>conftest.er1
8253 ++ grep -v '^ *+' conftest.er1 >conftest.err
8254 ++ rm -f conftest.er1
8255 ++ cat conftest.err >&5
8256 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 ++ (exit $ac_status); } &&
8258 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8259 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 ++ (eval $ac_try) 2>&5
8262 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 ++ (exit $ac_status); }; } &&
8264 ++ { ac_try='test -s conftest.$ac_objext'
8265 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 ++ (eval $ac_try) 2>&5
8268 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 ++ (exit $ac_status); }; }; then
8272 +- echo "configure: failed program was:" >&5
8273 +- cat conftest.$ac_ext >&5
8277 ++ echo "$as_me: failed program was:" >&5
8278 ++sed 's/^/| /' conftest.$ac_ext >&5
8283 ++rm -f conftest.err conftest.$ac_objext
8285 ++ rm -f conftest.$ac_objext
8286 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8287 ++ (eval $ac_compile) 2>conftest.er1
8289 ++ grep -v '^ *+' conftest.er1 >conftest.err
8290 ++ rm -f conftest.er1
8291 ++ cat conftest.err >&5
8292 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 ++ (exit $ac_status); } &&
8294 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 ++ (eval $ac_try) 2>&5
8298 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 ++ (exit $ac_status); }; } &&
8300 ++ { ac_try='test -s conftest.$ac_objext'
8301 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 ++ (eval $ac_try) 2>&5
8304 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 ++ (exit $ac_status); }; }; then
8306 ++ ac_cv_sys_largefile_CC=' -n32'; break
8308 ++ echo "$as_me: failed program was:" >&5
8309 ++sed 's/^/| /' conftest.$ac_ext >&5
8312 ++rm -f conftest.err conftest.$ac_objext
8316 ++ rm -f conftest.$ac_ext
8319 ++echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8320 ++echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8321 ++ if test "$ac_cv_sys_largefile_CC" != no; then
8322 ++ CC=$CC$ac_cv_sys_largefile_CC
8325 +-echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
8326 +- if test "$ac_cv_sys_largefile_CC" != no; then
8327 +- CC="$CC$ac_cv_sys_largefile_CC"
8330 +- echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
8331 +-echo "configure:2489: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8332 +-if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
8333 +- echo $ac_n "(cached) $ac_c" 1>&6
8334 ++ echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8335 ++echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8336 ++if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8337 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
8340 + ac_cv_sys_file_offset_bits=no
8341 +- cat > conftest.$ac_ext <<EOF
8342 +-#line 2495 "configure"
8343 +-#include "confdefs.h"
8344 ++ cat >conftest.$ac_ext <<_ACEOF
8347 ++cat confdefs.h >>conftest.$ac_ext
8348 ++cat >>conftest.$ac_ext <<_ACEOF
8349 ++/* end confdefs.h. */
8350 + #include <sys/types.h>
8351 +- int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
8357 +-if { (eval echo configure:2504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8359 ++ /* Check that off_t can represent 2**63 - 1 correctly.
8360 ++ We can't simply define LARGE_OFF_T to be 9223372036854775807,
8361 ++ since some C++ compilers masquerading as C compilers
8362 ++ incorrectly reject 9223372036854775807. */
8363 ++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8364 ++ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8365 ++ && LARGE_OFF_T % 2147483647 == 1)
8375 ++rm -f conftest.$ac_objext
8376 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 ++ (eval $ac_compile) 2>conftest.er1
8379 ++ grep -v '^ *+' conftest.er1 >conftest.err
8380 ++ rm -f conftest.er1
8381 ++ cat conftest.err >&5
8382 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 ++ (exit $ac_status); } &&
8384 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8385 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 ++ (eval $ac_try) 2>&5
8388 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 ++ (exit $ac_status); }; } &&
8390 ++ { ac_try='test -s conftest.$ac_objext'
8391 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 ++ (eval $ac_try) 2>&5
8394 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 ++ (exit $ac_status); }; }; then
8398 +- echo "configure: failed program was:" >&5
8399 +- cat conftest.$ac_ext >&5
8401 +- cat > conftest.$ac_ext <<EOF
8402 +-#line 2511 "configure"
8403 +-#include "confdefs.h"
8404 ++ echo "$as_me: failed program was:" >&5
8405 ++sed 's/^/| /' conftest.$ac_ext >&5
8408 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8409 ++ cat >conftest.$ac_ext <<_ACEOF
8412 ++cat confdefs.h >>conftest.$ac_ext
8413 ++cat >>conftest.$ac_ext <<_ACEOF
8414 ++/* end confdefs.h. */
8415 + #define _FILE_OFFSET_BITS 64
8416 + #include <sys/types.h>
8417 +- int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
8424 +-if { (eval echo configure:2522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8426 +- ac_cv_sys_file_offset_bits=64
8427 ++ /* Check that off_t can represent 2**63 - 1 correctly.
8428 ++ We can't simply define LARGE_OFF_T to be 9223372036854775807,
8429 ++ since some C++ compilers masquerading as C compilers
8430 ++ incorrectly reject 9223372036854775807. */
8431 ++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8432 ++ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8433 ++ && LARGE_OFF_T % 2147483647 == 1)
8443 ++rm -f conftest.$ac_objext
8444 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8445 ++ (eval $ac_compile) 2>conftest.er1
8447 ++ grep -v '^ *+' conftest.er1 >conftest.err
8448 ++ rm -f conftest.er1
8449 ++ cat conftest.err >&5
8450 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 ++ (exit $ac_status); } &&
8452 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 ++ (eval $ac_try) 2>&5
8456 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 ++ (exit $ac_status); }; } &&
8458 ++ { ac_try='test -s conftest.$ac_objext'
8459 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 ++ (eval $ac_try) 2>&5
8462 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 ++ (exit $ac_status); }; }; then
8464 ++ ac_cv_sys_file_offset_bits=64; break
8466 +- echo "configure: failed program was:" >&5
8467 +- cat conftest.$ac_ext >&5
8470 ++ echo "$as_me: failed program was:" >&5
8471 ++sed 's/^/| /' conftest.$ac_ext >&5
8475 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8479 ++echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8480 ++echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8481 ++if test "$ac_cv_sys_file_offset_bits" != no; then
8483 +-echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
8484 +- if test "$ac_cv_sys_file_offset_bits" != no; then
8485 +- cat >> confdefs.h <<EOF
8486 ++cat >>confdefs.h <<_ACEOF
8487 + #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8492 +- echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
8493 +-echo "configure:2542: checking for _LARGE_FILES value needed for large files" >&5
8494 +-if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
8495 +- echo $ac_n "(cached) $ac_c" 1>&6
8498 ++ echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8499 ++echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8500 ++if test "${ac_cv_sys_large_files+set}" = set; then
8501 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
8504 + ac_cv_sys_large_files=no
8505 +- cat > conftest.$ac_ext <<EOF
8506 +-#line 2548 "configure"
8507 +-#include "confdefs.h"
8513 +-if { (eval echo configure:2555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8515 ++ cat >conftest.$ac_ext <<_ACEOF
8518 ++cat confdefs.h >>conftest.$ac_ext
8519 ++cat >>conftest.$ac_ext <<_ACEOF
8520 ++/* end confdefs.h. */
8521 ++#include <sys/types.h>
8522 ++ /* Check that off_t can represent 2**63 - 1 correctly.
8523 ++ We can't simply define LARGE_OFF_T to be 9223372036854775807,
8524 ++ since some C++ compilers masquerading as C compilers
8525 ++ incorrectly reject 9223372036854775807. */
8526 ++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8527 ++ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8528 ++ && LARGE_OFF_T % 2147483647 == 1)
8538 ++rm -f conftest.$ac_objext
8539 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8540 ++ (eval $ac_compile) 2>conftest.er1
8542 ++ grep -v '^ *+' conftest.er1 >conftest.err
8543 ++ rm -f conftest.er1
8544 ++ cat conftest.err >&5
8545 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 ++ (exit $ac_status); } &&
8547 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8548 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 ++ (eval $ac_try) 2>&5
8551 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 ++ (exit $ac_status); }; } &&
8553 ++ { ac_try='test -s conftest.$ac_objext'
8554 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 ++ (eval $ac_try) 2>&5
8557 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 ++ (exit $ac_status); }; }; then
8561 +- echo "configure: failed program was:" >&5
8562 +- cat conftest.$ac_ext >&5
8564 +- cat > conftest.$ac_ext <<EOF
8565 +-#line 2562 "configure"
8566 +-#include "confdefs.h"
8567 +-#define _LARGE_FILES 1
8568 ++ echo "$as_me: failed program was:" >&5
8569 ++sed 's/^/| /' conftest.$ac_ext >&5
8574 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8575 ++ cat >conftest.$ac_ext <<_ACEOF
8578 ++cat confdefs.h >>conftest.$ac_ext
8579 ++cat >>conftest.$ac_ext <<_ACEOF
8580 ++/* end confdefs.h. */
8581 ++#define _LARGE_FILES 1
8582 ++#include <sys/types.h>
8583 ++ /* Check that off_t can represent 2**63 - 1 correctly.
8584 ++ We can't simply define LARGE_OFF_T to be 9223372036854775807,
8585 ++ since some C++ compilers masquerading as C compilers
8586 ++ incorrectly reject 9223372036854775807. */
8587 ++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8588 ++ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8589 ++ && LARGE_OFF_T % 2147483647 == 1)
8597 +-if { (eval echo configure:2571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8599 +- ac_cv_sys_large_files=1
8604 ++rm -f conftest.$ac_objext
8605 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 ++ (eval $ac_compile) 2>conftest.er1
8608 ++ grep -v '^ *+' conftest.er1 >conftest.err
8609 ++ rm -f conftest.er1
8610 ++ cat conftest.err >&5
8611 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 ++ (exit $ac_status); } &&
8613 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 ++ (eval $ac_try) 2>&5
8617 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 ++ (exit $ac_status); }; } &&
8619 ++ { ac_try='test -s conftest.$ac_objext'
8620 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 ++ (eval $ac_try) 2>&5
8623 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 ++ (exit $ac_status); }; }; then
8625 ++ ac_cv_sys_large_files=1; break
8627 +- echo "configure: failed program was:" >&5
8628 +- cat conftest.$ac_ext >&5
8631 ++ echo "$as_me: failed program was:" >&5
8632 ++sed 's/^/| /' conftest.$ac_ext >&5
8636 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8640 ++echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8641 ++echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8642 ++if test "$ac_cv_sys_large_files" != no; then
8644 +-echo "$ac_t""$ac_cv_sys_large_files" 1>&6
8645 +- if test "$ac_cv_sys_large_files" != no; then
8646 +- cat >> confdefs.h <<EOF
8647 ++cat >>confdefs.h <<_ACEOF
8648 + #define _LARGE_FILES $ac_cv_sys_large_files
8656 +-# Sound support for GNU/Linux and the free BSDs.
8657 +-for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h
8659 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8660 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8661 +-echo "configure:2598: checking for $ac_hdr" >&5
8662 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8663 +- echo $ac_n "(cached) $ac_c" 1>&6
8665 +- cat > conftest.$ac_ext <<EOF
8666 +-#line 2603 "configure"
8667 +-#include "confdefs.h"
8668 +-#include <$ac_hdr>
8670 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8671 +-{ (eval echo configure:2608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8672 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8673 +-if test -z "$ac_err"; then
8675 +- eval "ac_cv_header_$ac_safe=yes"
8677 +- echo "$ac_err" >&5
8678 +- echo "configure: failed program was:" >&5
8679 +- cat conftest.$ac_ext >&5
8681 +- eval "ac_cv_header_$ac_safe=no"
8685 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8686 +- echo "$ac_t""yes" 1>&6
8687 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8688 +- cat >> confdefs.h <<EOF
8689 +-#define $ac_tr_hdr 1
8693 +- echo "$ac_t""no" 1>&6
8697 +-# Emulation library used on NetBSD.
8698 +-echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
8699 +-echo "configure:2636: checking for _oss_ioctl in -lossaudio" >&5
8700 +-ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
8701 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8702 +- echo $ac_n "(cached) $ac_c" 1>&6
8704 +- ac_save_LIBS="$LIBS"
8705 +-LIBS="-lossaudio $LIBS"
8706 +-cat > conftest.$ac_ext <<EOF
8707 +-#line 2644 "configure"
8708 +-#include "confdefs.h"
8709 +-/* Override any gcc2 internal prototype to avoid an error. */
8710 +-/* We use char because int might match the return type of a gcc2
8711 +- builtin and then its argument prototype would still apply. */
8712 +-char _oss_ioctl();
8718 +-if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8720 +- eval "ac_cv_lib_$ac_lib_var=yes"
8722 +- echo "configure: failed program was:" >&5
8723 +- cat conftest.$ac_ext >&5
8725 +- eval "ac_cv_lib_$ac_lib_var=no"
8728 +-LIBS="$ac_save_LIBS"
8731 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8732 +- echo "$ac_t""yes" 1>&6
8733 +- LIBSOUND=-lossaudio
8735 +- echo "$ac_t""no" 1>&6
8739 ++# Sound support for GNU/Linux and the free BSDs.
8740 ++echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8741 ++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8742 ++if test "${ac_cv_header_stdc+set}" = set; then
8743 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
8745 ++ cat >conftest.$ac_ext <<_ACEOF
8748 ++cat confdefs.h >>conftest.$ac_ext
8749 ++cat >>conftest.$ac_ext <<_ACEOF
8750 ++/* end confdefs.h. */
8751 ++#include <stdlib.h>
8752 ++#include <stdarg.h>
8753 ++#include <string.h>
8754 ++#include <float.h>
8760 +-for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
8765 ++rm -f conftest.$ac_objext
8766 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767 ++ (eval $ac_compile) 2>conftest.er1
8769 ++ grep -v '^ *+' conftest.er1 >conftest.err
8770 ++ rm -f conftest.er1
8771 ++ cat conftest.err >&5
8772 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 ++ (exit $ac_status); } &&
8774 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8775 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 ++ (eval $ac_try) 2>&5
8778 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 ++ (exit $ac_status); }; } &&
8780 ++ { ac_try='test -s conftest.$ac_objext'
8781 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 ++ (eval $ac_try) 2>&5
8784 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 ++ (exit $ac_status); }; }; then
8786 ++ ac_cv_header_stdc=yes
8788 ++ echo "$as_me: failed program was:" >&5
8789 ++sed 's/^/| /' conftest.$ac_ext >&5
8791 ++ac_cv_header_stdc=no
8793 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8795 ++if test $ac_cv_header_stdc = yes; then
8796 ++ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8797 ++ cat >conftest.$ac_ext <<_ACEOF
8800 ++cat confdefs.h >>conftest.$ac_ext
8801 ++cat >>conftest.$ac_ext <<_ACEOF
8802 ++/* end confdefs.h. */
8803 ++#include <string.h>
8806 ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8807 ++ $EGREP "memchr" >/dev/null 2>&1; then
8810 ++ ac_cv_header_stdc=no
8816 ++if test $ac_cv_header_stdc = yes; then
8817 ++ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8818 ++ cat >conftest.$ac_ext <<_ACEOF
8821 ++cat confdefs.h >>conftest.$ac_ext
8822 ++cat >>conftest.$ac_ext <<_ACEOF
8823 ++/* end confdefs.h. */
8824 ++#include <stdlib.h>
8827 ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8828 ++ $EGREP "free" >/dev/null 2>&1; then
8831 ++ ac_cv_header_stdc=no
8837 ++if test $ac_cv_header_stdc = yes; then
8838 ++ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8839 ++ if test "$cross_compiling" = yes; then
8842 ++ cat >conftest.$ac_ext <<_ACEOF
8845 ++cat confdefs.h >>conftest.$ac_ext
8846 ++cat >>conftest.$ac_ext <<_ACEOF
8847 ++/* end confdefs.h. */
8848 ++#include <ctype.h>
8849 ++#if ((' ' & 0x0FF) == 0x020)
8850 ++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8851 ++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8853 ++# define ISLOWER(c) \
8854 ++ (('a' <= (c) && (c) <= 'i') \
8855 ++ || ('j' <= (c) && (c) <= 'r') \
8856 ++ || ('s' <= (c) && (c) <= 'z'))
8857 ++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8860 ++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8865 ++ for (i = 0; i < 256; i++)
8866 ++ if (XOR (islower (i), ISLOWER (i))
8867 ++ || toupper (i) != TOUPPER (i))
8872 ++rm -f conftest$ac_exeext
8873 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 ++ (eval $ac_link) 2>&5
8876 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8878 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 ++ (eval $ac_try) 2>&5
8881 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 ++ (exit $ac_status); }; }; then
8885 ++ echo "$as_me: program exited with status $ac_status" >&5
8886 ++echo "$as_me: failed program was:" >&5
8887 ++sed 's/^/| /' conftest.$ac_ext >&5
8889 ++( exit $ac_status )
8890 ++ac_cv_header_stdc=no
8892 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8896 ++echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8897 ++echo "${ECHO_T}$ac_cv_header_stdc" >&6
8898 ++if test $ac_cv_header_stdc = yes; then
8900 ++cat >>confdefs.h <<\_ACEOF
8901 ++#define STDC_HEADERS 1
8906 ++# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8916 ++for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8917 ++ inttypes.h stdint.h unistd.h
8919 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8920 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
8921 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8922 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
8923 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
8925 ++ cat >conftest.$ac_ext <<_ACEOF
8928 ++cat confdefs.h >>conftest.$ac_ext
8929 ++cat >>conftest.$ac_ext <<_ACEOF
8930 ++/* end confdefs.h. */
8931 ++$ac_includes_default
8933 ++#include <$ac_header>
8935 ++rm -f conftest.$ac_objext
8936 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937 ++ (eval $ac_compile) 2>conftest.er1
8939 ++ grep -v '^ *+' conftest.er1 >conftest.err
8940 ++ rm -f conftest.er1
8941 ++ cat conftest.err >&5
8942 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 ++ (exit $ac_status); } &&
8944 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8945 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 ++ (eval $ac_try) 2>&5
8948 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 ++ (exit $ac_status); }; } &&
8950 ++ { ac_try='test -s conftest.$ac_objext'
8951 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 ++ (eval $ac_try) 2>&5
8954 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 ++ (exit $ac_status); }; }; then
8956 ++ eval "$as_ac_Header=yes"
8958 ++ echo "$as_me: failed program was:" >&5
8959 ++sed 's/^/| /' conftest.$ac_ext >&5
8961 ++eval "$as_ac_Header=no"
8963 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8965 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8966 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8967 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
8968 ++ cat >>confdefs.h <<_ACEOF
8969 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8980 ++for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8982 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8983 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
8984 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
8985 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8986 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
8987 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
8989 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8990 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8992 ++ # Is the header compilable?
8993 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
8994 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8995 ++cat >conftest.$ac_ext <<_ACEOF
8998 ++cat confdefs.h >>conftest.$ac_ext
8999 ++cat >>conftest.$ac_ext <<_ACEOF
9000 ++/* end confdefs.h. */
9001 ++$ac_includes_default
9002 ++#include <$ac_header>
9004 ++rm -f conftest.$ac_objext
9005 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9006 ++ (eval $ac_compile) 2>conftest.er1
9008 ++ grep -v '^ *+' conftest.er1 >conftest.err
9009 ++ rm -f conftest.er1
9010 ++ cat conftest.err >&5
9011 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 ++ (exit $ac_status); } &&
9013 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9014 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 ++ (eval $ac_try) 2>&5
9017 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 ++ (exit $ac_status); }; } &&
9019 ++ { ac_try='test -s conftest.$ac_objext'
9020 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 ++ (eval $ac_try) 2>&5
9023 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 ++ (exit $ac_status); }; }; then
9025 ++ ac_header_compiler=yes
9027 ++ echo "$as_me: failed program was:" >&5
9028 ++sed 's/^/| /' conftest.$ac_ext >&5
9030 ++ac_header_compiler=no
9032 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9033 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9034 ++echo "${ECHO_T}$ac_header_compiler" >&6
9036 ++# Is the header present?
9037 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
9038 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9039 ++cat >conftest.$ac_ext <<_ACEOF
9042 ++cat confdefs.h >>conftest.$ac_ext
9043 ++cat >>conftest.$ac_ext <<_ACEOF
9044 ++/* end confdefs.h. */
9045 ++#include <$ac_header>
9047 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9048 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9050 ++ grep -v '^ *+' conftest.er1 >conftest.err
9051 ++ rm -f conftest.er1
9052 ++ cat conftest.err >&5
9053 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 ++ (exit $ac_status); } >/dev/null; then
9055 ++ if test -s conftest.err; then
9056 ++ ac_cpp_err=$ac_c_preproc_warn_flag
9057 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9064 ++if test -z "$ac_cpp_err"; then
9065 ++ ac_header_preproc=yes
9067 ++ echo "$as_me: failed program was:" >&5
9068 ++sed 's/^/| /' conftest.$ac_ext >&5
9070 ++ ac_header_preproc=no
9072 ++rm -f conftest.err conftest.$ac_ext
9073 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9074 ++echo "${ECHO_T}$ac_header_preproc" >&6
9076 ++# So? What about this header?
9077 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9079 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9080 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9081 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9082 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9083 ++ ac_header_preproc=yes
9086 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9087 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9088 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9089 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9090 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9091 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9092 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9093 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9094 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9095 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9096 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9097 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9100 ++## ------------------------------------------ ##
9101 ++## Report this to the AC_PACKAGE_NAME lists. ##
9102 ++## ------------------------------------------ ##
9105 ++ sed "s/^/$as_me: WARNING: /" >&2
9108 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
9109 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9110 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
9111 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
9113 ++ eval "$as_ac_Header=\$ac_header_preproc"
9115 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9116 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9119 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
9120 ++ cat >>confdefs.h <<_ACEOF
9121 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9128 ++# Emulation library used on NetBSD.
9129 ++echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
9130 ++echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
9131 ++if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
9132 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
9134 ++ ac_check_lib_save_LIBS=$LIBS
9135 ++LIBS="-lossaudio $LIBS"
9136 ++cat >conftest.$ac_ext <<_ACEOF
9139 ++cat confdefs.h >>conftest.$ac_ext
9140 ++cat >>conftest.$ac_ext <<_ACEOF
9141 ++/* end confdefs.h. */
9143 ++/* Override any gcc2 internal prototype to avoid an error. */
9144 ++#ifdef __cplusplus
9147 ++/* We use char because int might match the return type of a gcc2
9148 ++ builtin and then its argument prototype would still apply. */
9149 ++char _oss_ioctl ();
9158 ++rm -f conftest.$ac_objext conftest$ac_exeext
9159 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9160 ++ (eval $ac_link) 2>conftest.er1
9162 ++ grep -v '^ *+' conftest.er1 >conftest.err
9163 ++ rm -f conftest.er1
9164 ++ cat conftest.err >&5
9165 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 ++ (exit $ac_status); } &&
9167 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9168 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 ++ (eval $ac_try) 2>&5
9171 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 ++ (exit $ac_status); }; } &&
9173 ++ { ac_try='test -s conftest$ac_exeext'
9174 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 ++ (eval $ac_try) 2>&5
9177 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 ++ (exit $ac_status); }; }; then
9179 ++ ac_cv_lib_ossaudio__oss_ioctl=yes
9181 ++ echo "$as_me: failed program was:" >&5
9182 ++sed 's/^/| /' conftest.$ac_ext >&5
9184 ++ac_cv_lib_ossaudio__oss_ioctl=no
9186 ++rm -f conftest.err conftest.$ac_objext \
9187 ++ conftest$ac_exeext conftest.$ac_ext
9188 ++LIBS=$ac_check_lib_save_LIBS
9190 ++echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9191 ++echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
9192 ++if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
9193 ++ LIBSOUND=-lossaudio
9216 ++for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
9217 + linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
9218 + termcap.h stdio_ext.h fcntl.h term.h strings.h
9220 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9221 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9222 +-echo "configure:2684: checking for $ac_hdr" >&5
9223 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9224 +- echo $ac_n "(cached) $ac_c" 1>&6
9226 +- cat > conftest.$ac_ext <<EOF
9227 +-#line 2689 "configure"
9228 +-#include "confdefs.h"
9229 +-#include <$ac_hdr>
9231 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9232 +-{ (eval echo configure:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9233 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9234 +-if test -z "$ac_err"; then
9236 +- eval "ac_cv_header_$ac_safe=yes"
9238 +- echo "$ac_err" >&5
9239 +- echo "configure: failed program was:" >&5
9240 +- cat conftest.$ac_ext >&5
9242 +- eval "ac_cv_header_$ac_safe=no"
9243 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9244 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
9245 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
9246 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9247 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
9250 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9251 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9253 ++ # Is the header compilable?
9254 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
9255 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9256 ++cat >conftest.$ac_ext <<_ACEOF
9259 ++cat confdefs.h >>conftest.$ac_ext
9260 ++cat >>conftest.$ac_ext <<_ACEOF
9261 ++/* end confdefs.h. */
9262 ++$ac_includes_default
9263 ++#include <$ac_header>
9265 ++rm -f conftest.$ac_objext
9266 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9267 ++ (eval $ac_compile) 2>conftest.er1
9269 ++ grep -v '^ *+' conftest.er1 >conftest.err
9270 ++ rm -f conftest.er1
9271 ++ cat conftest.err >&5
9272 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 ++ (exit $ac_status); } &&
9274 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9275 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 ++ (eval $ac_try) 2>&5
9278 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 ++ (exit $ac_status); }; } &&
9280 ++ { ac_try='test -s conftest.$ac_objext'
9281 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 ++ (eval $ac_try) 2>&5
9284 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 ++ (exit $ac_status); }; }; then
9286 ++ ac_header_compiler=yes
9288 ++ echo "$as_me: failed program was:" >&5
9289 ++sed 's/^/| /' conftest.$ac_ext >&5
9291 ++ac_header_compiler=no
9293 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9294 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9295 ++echo "${ECHO_T}$ac_header_compiler" >&6
9297 ++# Is the header present?
9298 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
9299 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9300 ++cat >conftest.$ac_ext <<_ACEOF
9303 ++cat confdefs.h >>conftest.$ac_ext
9304 ++cat >>conftest.$ac_ext <<_ACEOF
9305 ++/* end confdefs.h. */
9306 ++#include <$ac_header>
9308 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9309 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9311 ++ grep -v '^ *+' conftest.er1 >conftest.err
9312 ++ rm -f conftest.er1
9313 ++ cat conftest.err >&5
9314 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 ++ (exit $ac_status); } >/dev/null; then
9316 ++ if test -s conftest.err; then
9317 ++ ac_cpp_err=$ac_c_preproc_warn_flag
9318 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9326 ++if test -z "$ac_cpp_err"; then
9327 ++ ac_header_preproc=yes
9329 ++ echo "$as_me: failed program was:" >&5
9330 ++sed 's/^/| /' conftest.$ac_ext >&5
9332 ++ ac_header_preproc=no
9334 ++rm -f conftest.err conftest.$ac_ext
9335 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9336 ++echo "${ECHO_T}$ac_header_preproc" >&6
9338 ++# So? What about this header?
9339 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9341 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9342 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9343 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9344 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9345 ++ ac_header_preproc=yes
9348 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9349 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9350 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9351 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9352 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9353 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9354 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9355 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9356 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9357 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9358 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9359 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9362 ++## ------------------------------------------ ##
9363 ++## Report this to the AC_PACKAGE_NAME lists. ##
9364 ++## ------------------------------------------ ##
9367 ++ sed "s/^/$as_me: WARNING: /" >&2
9370 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
9371 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9372 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
9373 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
9375 ++ eval "$as_ac_Header=\$ac_header_preproc"
9377 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9378 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9381 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9382 +- echo "$ac_t""yes" 1>&6
9383 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9384 +- cat >> confdefs.h <<EOF
9385 +-#define $ac_tr_hdr 1
9389 +- echo "$ac_t""no" 1>&6
9390 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
9391 ++ cat >>confdefs.h <<_ACEOF
9392 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9399 +-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9400 +-echo "configure:2721: checking for ANSI C header files" >&5
9401 +-if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9402 +- echo $ac_n "(cached) $ac_c" 1>&6
9404 +- cat > conftest.$ac_ext <<EOF
9405 +-#line 2726 "configure"
9406 +-#include "confdefs.h"
9407 ++echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9408 ++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9409 ++if test "${ac_cv_header_stdc+set}" = set; then
9410 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
9412 ++ cat >conftest.$ac_ext <<_ACEOF
9415 ++cat confdefs.h >>conftest.$ac_ext
9416 ++cat >>conftest.$ac_ext <<_ACEOF
9417 ++/* end confdefs.h. */
9418 + #include <stdlib.h>
9419 + #include <stdarg.h>
9420 + #include <string.h>
9421 + #include <float.h>
9423 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9424 +-{ (eval echo configure:2734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9425 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9426 +-if test -z "$ac_err"; then
9437 ++rm -f conftest.$ac_objext
9438 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9439 ++ (eval $ac_compile) 2>conftest.er1
9441 ++ grep -v '^ *+' conftest.er1 >conftest.err
9442 ++ rm -f conftest.er1
9443 ++ cat conftest.err >&5
9444 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 ++ (exit $ac_status); } &&
9446 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9447 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 ++ (eval $ac_try) 2>&5
9450 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 ++ (exit $ac_status); }; } &&
9452 ++ { ac_try='test -s conftest.$ac_objext'
9453 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 ++ (eval $ac_try) 2>&5
9456 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 ++ (exit $ac_status); }; }; then
9458 + ac_cv_header_stdc=yes
9460 +- echo "$ac_err" >&5
9461 +- echo "configure: failed program was:" >&5
9462 +- cat conftest.$ac_ext >&5
9464 +- ac_cv_header_stdc=no
9465 ++ echo "$as_me: failed program was:" >&5
9466 ++sed 's/^/| /' conftest.$ac_ext >&5
9468 ++ac_cv_header_stdc=no
9471 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9473 + if test $ac_cv_header_stdc = yes; then
9474 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9475 +-cat > conftest.$ac_ext <<EOF
9476 +-#line 2751 "configure"
9477 +-#include "confdefs.h"
9478 ++ cat >conftest.$ac_ext <<_ACEOF
9481 ++cat confdefs.h >>conftest.$ac_ext
9482 ++cat >>conftest.$ac_ext <<_ACEOF
9483 ++/* end confdefs.h. */
9484 + #include <string.h>
9488 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9489 +- egrep "memchr" >/dev/null 2>&1; then
9490 ++ $EGREP "memchr" >/dev/null 2>&1; then
9494 + ac_cv_header_stdc=no
9497 +@@ -2764,16 +5255,19 @@
9499 + if test $ac_cv_header_stdc = yes; then
9500 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9501 +-cat > conftest.$ac_ext <<EOF
9502 +-#line 2769 "configure"
9503 +-#include "confdefs.h"
9504 ++ cat >conftest.$ac_ext <<_ACEOF
9507 ++cat confdefs.h >>conftest.$ac_ext
9508 ++cat >>conftest.$ac_ext <<_ACEOF
9509 ++/* end confdefs.h. */
9510 + #include <stdlib.h>
9514 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9515 +- egrep "free" >/dev/null 2>&1; then
9516 ++ $EGREP "free" >/dev/null 2>&1; then
9520 + ac_cv_header_stdc=no
9523 +@@ -2782,168 +5276,297 @@
9525 + if test $ac_cv_header_stdc = yes; then
9526 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9527 +-if test "$cross_compiling" = yes; then
9528 ++ if test "$cross_compiling" = yes; then
9531 +- cat > conftest.$ac_ext <<EOF
9532 +-#line 2790 "configure"
9533 +-#include "confdefs.h"
9534 ++ cat >conftest.$ac_ext <<_ACEOF
9537 ++cat confdefs.h >>conftest.$ac_ext
9538 ++cat >>conftest.$ac_ext <<_ACEOF
9539 ++/* end confdefs.h. */
9540 + #include <ctype.h>
9541 +-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9542 +-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9543 +-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9544 +-int main () { int i; for (i = 0; i < 256; i++)
9545 +-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9547 ++#if ((' ' & 0x0FF) == 0x020)
9548 ++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9549 ++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9551 ++# define ISLOWER(c) \
9552 ++ (('a' <= (c) && (c) <= 'i') \
9553 ++ || ('j' <= (c) && (c) <= 'r') \
9554 ++ || ('s' <= (c) && (c) <= 'z'))
9555 ++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9559 +-if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9561 ++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9566 ++ for (i = 0; i < 256; i++)
9567 ++ if (XOR (islower (i), ISLOWER (i))
9568 ++ || toupper (i) != TOUPPER (i))
9573 ++rm -f conftest$ac_exeext
9574 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 ++ (eval $ac_link) 2>&5
9577 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9579 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 ++ (eval $ac_try) 2>&5
9582 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 ++ (exit $ac_status); }; }; then
9586 +- echo "configure: failed program was:" >&5
9587 +- cat conftest.$ac_ext >&5
9589 +- ac_cv_header_stdc=no
9590 ++ echo "$as_me: program exited with status $ac_status" >&5
9591 ++echo "$as_me: failed program was:" >&5
9592 ++sed 's/^/| /' conftest.$ac_ext >&5
9594 ++( exit $ac_status )
9595 ++ac_cv_header_stdc=no
9598 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9604 +-echo "$ac_t""$ac_cv_header_stdc" 1>&6
9605 ++echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9606 ++echo "${ECHO_T}$ac_cv_header_stdc" >&6
9607 + if test $ac_cv_header_stdc = yes; then
9608 +- cat >> confdefs.h <<\EOF
9610 ++cat >>confdefs.h <<\_ACEOF
9611 + #define STDC_HEADERS 1
9617 +-echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
9618 +-echo "configure:2825: checking whether time.h and sys/time.h may both be included" >&5
9619 +-if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
9620 +- echo $ac_n "(cached) $ac_c" 1>&6
9621 ++echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9622 ++echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9623 ++if test "${ac_cv_header_time+set}" = set; then
9624 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
9626 +- cat > conftest.$ac_ext <<EOF
9627 +-#line 2830 "configure"
9628 +-#include "confdefs.h"
9629 ++ cat >conftest.$ac_ext <<_ACEOF
9632 ++cat confdefs.h >>conftest.$ac_ext
9633 ++cat >>conftest.$ac_ext <<_ACEOF
9634 ++/* end confdefs.h. */
9635 + #include <sys/types.h>
9636 + #include <sys/time.h>
9642 +-if { (eval echo configure:2839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9648 ++if ((struct tm *) 0)
9654 ++rm -f conftest.$ac_objext
9655 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656 ++ (eval $ac_compile) 2>conftest.er1
9658 ++ grep -v '^ *+' conftest.er1 >conftest.err
9659 ++ rm -f conftest.er1
9660 ++ cat conftest.err >&5
9661 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 ++ (exit $ac_status); } &&
9663 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9664 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 ++ (eval $ac_try) 2>&5
9667 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 ++ (exit $ac_status); }; } &&
9669 ++ { ac_try='test -s conftest.$ac_objext'
9670 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 ++ (eval $ac_try) 2>&5
9673 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 ++ (exit $ac_status); }; }; then
9675 + ac_cv_header_time=yes
9677 +- echo "configure: failed program was:" >&5
9678 +- cat conftest.$ac_ext >&5
9680 +- ac_cv_header_time=no
9681 ++ echo "$as_me: failed program was:" >&5
9682 ++sed 's/^/| /' conftest.$ac_ext >&5
9684 ++ac_cv_header_time=no
9687 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9690 +-echo "$ac_t""$ac_cv_header_time" 1>&6
9691 ++echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9692 ++echo "${ECHO_T}$ac_cv_header_time" >&6
9693 + if test $ac_cv_header_time = yes; then
9694 +- cat >> confdefs.h <<\EOF
9696 ++cat >>confdefs.h <<\_ACEOF
9697 + #define TIME_WITH_SYS_TIME 1
9703 +-echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
9704 +-echo "configure:2860: checking for sys_siglist declaration in signal.h or unistd.h" >&5
9705 +-if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
9706 +- echo $ac_n "(cached) $ac_c" 1>&6
9707 ++echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9708 ++echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9709 ++if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9710 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
9712 +- cat > conftest.$ac_ext <<EOF
9713 +-#line 2865 "configure"
9714 +-#include "confdefs.h"
9715 +-#include <sys/types.h>
9716 ++ cat >conftest.$ac_ext <<_ACEOF
9719 ++cat confdefs.h >>conftest.$ac_ext
9720 ++cat >>conftest.$ac_ext <<_ACEOF
9721 ++/* end confdefs.h. */
9722 + #include <signal.h>
9723 + /* NetBSD declares sys_siglist in unistd.h. */
9724 +-#ifdef HAVE_UNISTD_H
9725 +-#include <unistd.h>
9727 ++# include <unistd.h>
9730 +-char *msg = *(sys_siglist + 1);
9733 +-if { (eval echo configure:2877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9735 +- ac_cv_decl_sys_siglist=yes
9737 +- echo "configure: failed program was:" >&5
9738 +- cat conftest.$ac_ext >&5
9740 +- ac_cv_decl_sys_siglist=no
9745 +-echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
9746 +-if test $ac_cv_decl_sys_siglist = yes; then
9747 +- cat >> confdefs.h <<\EOF
9748 +-#define SYS_SIGLIST_DECLARED 1
9754 ++#ifndef sys_siglist
9755 ++ char *p = (char *) sys_siglist;
9762 ++rm -f conftest.$ac_objext
9763 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9764 ++ (eval $ac_compile) 2>conftest.er1
9766 ++ grep -v '^ *+' conftest.er1 >conftest.err
9767 ++ rm -f conftest.er1
9768 ++ cat conftest.err >&5
9769 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 ++ (exit $ac_status); } &&
9771 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9772 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 ++ (eval $ac_try) 2>&5
9775 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 ++ (exit $ac_status); }; } &&
9777 ++ { ac_try='test -s conftest.$ac_objext'
9778 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 ++ (eval $ac_try) 2>&5
9781 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 ++ (exit $ac_status); }; }; then
9783 ++ ac_cv_have_decl_sys_siglist=yes
9785 ++ echo "$as_me: failed program was:" >&5
9786 ++sed 's/^/| /' conftest.$ac_ext >&5
9788 ++ac_cv_have_decl_sys_siglist=no
9790 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9792 ++echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9793 ++echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9794 ++if test $ac_cv_have_decl_sys_siglist = yes; then
9796 ++cat >>confdefs.h <<_ACEOF
9797 ++#define HAVE_DECL_SYS_SIGLIST 1
9802 ++ cat >>confdefs.h <<_ACEOF
9803 ++#define HAVE_DECL_SYS_SIGLIST 0
9809 +-echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9810 +-echo "configure:2898: checking for sys/wait.h that is POSIX.1 compatible" >&5
9811 +-if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9812 +- echo $ac_n "(cached) $ac_c" 1>&6
9814 +- cat > conftest.$ac_ext <<EOF
9815 +-#line 2903 "configure"
9816 +-#include "confdefs.h"
9819 ++echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9820 ++echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9821 ++if test "${ac_cv_header_sys_wait_h+set}" = set; then
9822 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
9824 ++ cat >conftest.$ac_ext <<_ACEOF
9827 ++cat confdefs.h >>conftest.$ac_ext
9828 ++cat >>conftest.$ac_ext <<_ACEOF
9829 ++/* end confdefs.h. */
9830 + #include <sys/types.h>
9831 + #include <sys/wait.h>
9832 + #ifndef WEXITSTATUS
9833 +-#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9834 ++# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9837 +-#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9838 ++# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9843 +-s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9846 +-if { (eval echo configure:2919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9854 ++ s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9859 ++rm -f conftest.$ac_objext
9860 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 ++ (eval $ac_compile) 2>conftest.er1
9863 ++ grep -v '^ *+' conftest.er1 >conftest.err
9864 ++ rm -f conftest.er1
9865 ++ cat conftest.err >&5
9866 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 ++ (exit $ac_status); } &&
9868 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 ++ (eval $ac_try) 2>&5
9872 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 ++ (exit $ac_status); }; } &&
9874 ++ { ac_try='test -s conftest.$ac_objext'
9875 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 ++ (eval $ac_try) 2>&5
9878 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 ++ (exit $ac_status); }; }; then
9880 + ac_cv_header_sys_wait_h=yes
9882 +- echo "configure: failed program was:" >&5
9883 +- cat conftest.$ac_ext >&5
9885 +- ac_cv_header_sys_wait_h=no
9886 ++ echo "$as_me: failed program was:" >&5
9887 ++sed 's/^/| /' conftest.$ac_ext >&5
9889 ++ac_cv_header_sys_wait_h=no
9892 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9895 +-echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9896 ++echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9897 ++echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9898 + if test $ac_cv_header_sys_wait_h = yes; then
9899 +- cat >> confdefs.h <<\EOF
9901 ++cat >>confdefs.h <<\_ACEOF
9902 + #define HAVE_SYS_WAIT_H 1
9909 +-echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
9910 +-echo "configure:2941: checking for struct utimbuf" >&5
9911 +-if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
9912 +- echo $ac_n "(cached) $ac_c" 1>&6
9913 ++echo "$as_me:$LINENO: checking for struct utimbuf" >&5
9914 ++echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
9915 ++if test "${emacs_cv_struct_utimbuf+set}" = set; then
9916 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
9918 +- cat > conftest.$ac_ext <<EOF
9919 +-#line 2946 "configure"
9920 +-#include "confdefs.h"
9921 ++ cat >conftest.$ac_ext <<_ACEOF
9924 ++cat confdefs.h >>conftest.$ac_ext
9925 ++cat >>conftest.$ac_ext <<_ACEOF
9926 ++/* end confdefs.h. */
9927 + #ifdef TIME_WITH_SYS_TIME
9928 + #include <sys/time.h>
9930 +@@ -2957,42 +5580,68 @@
9931 + #ifdef HAVE_UTIME_H
9932 + #include <utime.h>
9938 + static struct utimbuf x; x.actime = x.modtime;
9941 +-if { (eval echo configure:2965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9947 ++rm -f conftest.$ac_objext
9948 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9949 ++ (eval $ac_compile) 2>conftest.er1
9951 ++ grep -v '^ *+' conftest.er1 >conftest.err
9952 ++ rm -f conftest.er1
9953 ++ cat conftest.err >&5
9954 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 ++ (exit $ac_status); } &&
9956 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9957 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 ++ (eval $ac_try) 2>&5
9960 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 ++ (exit $ac_status); }; } &&
9962 ++ { ac_try='test -s conftest.$ac_objext'
9963 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 ++ (eval $ac_try) 2>&5
9966 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 ++ (exit $ac_status); }; }; then
9968 + emacs_cv_struct_utimbuf=yes
9970 +- echo "configure: failed program was:" >&5
9971 +- cat conftest.$ac_ext >&5
9973 +- emacs_cv_struct_utimbuf=no
9974 ++ echo "$as_me: failed program was:" >&5
9975 ++sed 's/^/| /' conftest.$ac_ext >&5
9977 ++emacs_cv_struct_utimbuf=no
9980 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9983 +-echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
9984 ++echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
9985 ++echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
9986 + if test $emacs_cv_struct_utimbuf = yes; then
9987 +- cat >> confdefs.h <<\EOF
9988 ++ cat >>confdefs.h <<\_ACEOF
9989 + #define HAVE_STRUCT_UTIMBUF 1
9995 +-echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
9996 +-echo "configure:2986: checking return type of signal handlers" >&5
9997 +-if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
9998 +- echo $ac_n "(cached) $ac_c" 1>&6
9999 ++echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10000 ++echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10001 ++if test "${ac_cv_type_signal+set}" = set; then
10002 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
10004 +- cat > conftest.$ac_ext <<EOF
10005 +-#line 2991 "configure"
10006 +-#include "confdefs.h"
10007 ++ cat >conftest.$ac_ext <<_ACEOF
10008 ++/* confdefs.h. */
10010 ++cat confdefs.h >>conftest.$ac_ext
10011 ++cat >>conftest.$ac_ext <<_ACEOF
10012 ++/* end confdefs.h. */
10013 + #include <sys/types.h>
10014 + #include <signal.h>
10019 + #ifdef __cplusplus
10020 + extern "C" void (*signal (int, void (*)(int)))(int);
10021 +@@ -3000,70 +5649,123 @@
10022 + void (*signal ()) ();
10032 +-if { (eval echo configure:3008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10033 +- rm -rf conftest*
10038 ++rm -f conftest.$ac_objext
10039 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10040 ++ (eval $ac_compile) 2>conftest.er1
10042 ++ grep -v '^ *+' conftest.er1 >conftest.err
10043 ++ rm -f conftest.er1
10044 ++ cat conftest.err >&5
10045 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 ++ (exit $ac_status); } &&
10047 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10048 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 ++ (eval $ac_try) 2>&5
10051 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 ++ (exit $ac_status); }; } &&
10053 ++ { ac_try='test -s conftest.$ac_objext'
10054 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 ++ (eval $ac_try) 2>&5
10057 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 ++ (exit $ac_status); }; }; then
10059 + ac_cv_type_signal=void
10061 +- echo "configure: failed program was:" >&5
10062 +- cat conftest.$ac_ext >&5
10063 +- rm -rf conftest*
10064 +- ac_cv_type_signal=int
10065 ++ echo "$as_me: failed program was:" >&5
10066 ++sed 's/^/| /' conftest.$ac_ext >&5
10068 ++ac_cv_type_signal=int
10071 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10073 ++echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10074 ++echo "${ECHO_T}$ac_cv_type_signal" >&6
10076 +-echo "$ac_t""$ac_cv_type_signal" 1>&6
10077 +-cat >> confdefs.h <<EOF
10078 ++cat >>confdefs.h <<_ACEOF
10079 + #define RETSIGTYPE $ac_cv_type_signal
10085 +-echo $ac_n "checking for speed_t""... $ac_c" 1>&6
10086 +-echo "configure:3028: checking for speed_t" >&5
10087 +-if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
10088 +- echo $ac_n "(cached) $ac_c" 1>&6
10089 ++echo "$as_me:$LINENO: checking for speed_t" >&5
10090 ++echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
10091 ++if test "${emacs_cv_speed_t+set}" = set; then
10092 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
10094 +- cat > conftest.$ac_ext <<EOF
10095 +-#line 3033 "configure"
10096 +-#include "confdefs.h"
10097 ++ cat >conftest.$ac_ext <<_ACEOF
10098 ++/* confdefs.h. */
10100 ++cat confdefs.h >>conftest.$ac_ext
10101 ++cat >>conftest.$ac_ext <<_ACEOF
10102 ++/* end confdefs.h. */
10103 + #include <termios.h>
10111 +-if { (eval echo configure:3040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10112 +- rm -rf conftest*
10117 ++rm -f conftest.$ac_objext
10118 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10119 ++ (eval $ac_compile) 2>conftest.er1
10121 ++ grep -v '^ *+' conftest.er1 >conftest.err
10122 ++ rm -f conftest.er1
10123 ++ cat conftest.err >&5
10124 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 ++ (exit $ac_status); } &&
10126 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10127 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 ++ (eval $ac_try) 2>&5
10130 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 ++ (exit $ac_status); }; } &&
10132 ++ { ac_try='test -s conftest.$ac_objext'
10133 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 ++ (eval $ac_try) 2>&5
10136 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 ++ (exit $ac_status); }; }; then
10138 + emacs_cv_speed_t=yes
10140 +- echo "configure: failed program was:" >&5
10141 +- cat conftest.$ac_ext >&5
10142 +- rm -rf conftest*
10143 +- emacs_cv_speed_t=no
10144 ++ echo "$as_me: failed program was:" >&5
10145 ++sed 's/^/| /' conftest.$ac_ext >&5
10147 ++emacs_cv_speed_t=no
10150 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10153 +-echo "$ac_t""$emacs_cv_speed_t" 1>&6
10154 ++echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
10155 ++echo "${ECHO_T}$emacs_cv_speed_t" >&6
10156 + if test $emacs_cv_speed_t = yes; then
10157 +- cat >> confdefs.h <<\EOF
10158 ++ cat >>confdefs.h <<\_ACEOF
10159 + #define HAVE_SPEED_T 1
10165 +-echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
10166 +-echo "configure:3061: checking for struct timeval" >&5
10167 +-if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
10168 +- echo $ac_n "(cached) $ac_c" 1>&6
10169 ++echo "$as_me:$LINENO: checking for struct timeval" >&5
10170 ++echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
10171 ++if test "${emacs_cv_struct_timeval+set}" = set; then
10172 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
10174 +- cat > conftest.$ac_ext <<EOF
10175 +-#line 3066 "configure"
10176 +-#include "confdefs.h"
10177 ++ cat >conftest.$ac_ext <<_ACEOF
10178 ++/* confdefs.h. */
10180 ++cat confdefs.h >>conftest.$ac_ext
10181 ++cat >>conftest.$ac_ext <<_ACEOF
10182 ++/* end confdefs.h. */
10183 + #ifdef TIME_WITH_SYS_TIME
10184 + #include <sys/time.h>
10185 + #include <time.h>
10186 +@@ -3074,468 +5776,710 @@
10187 + #include <time.h>
10194 + static struct timeval x; x.tv_sec = x.tv_usec;
10197 +-if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10198 +- rm -rf conftest*
10203 ++rm -f conftest.$ac_objext
10204 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10205 ++ (eval $ac_compile) 2>conftest.er1
10207 ++ grep -v '^ *+' conftest.er1 >conftest.err
10208 ++ rm -f conftest.er1
10209 ++ cat conftest.err >&5
10210 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 ++ (exit $ac_status); } &&
10212 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 ++ (eval $ac_try) 2>&5
10216 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 ++ (exit $ac_status); }; } &&
10218 ++ { ac_try='test -s conftest.$ac_objext'
10219 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 ++ (eval $ac_try) 2>&5
10222 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 ++ (exit $ac_status); }; }; then
10224 + emacs_cv_struct_timeval=yes
10226 +- echo "configure: failed program was:" >&5
10227 +- cat conftest.$ac_ext >&5
10228 +- rm -rf conftest*
10229 +- emacs_cv_struct_timeval=no
10230 ++ echo "$as_me: failed program was:" >&5
10231 ++sed 's/^/| /' conftest.$ac_ext >&5
10233 ++emacs_cv_struct_timeval=no
10236 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10239 +-echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
10240 ++echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
10241 ++echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
10242 + HAVE_TIMEVAL=$emacs_cv_struct_timeval
10243 + if test $emacs_cv_struct_timeval = yes; then
10244 +- cat >> confdefs.h <<\EOF
10245 ++ cat >>confdefs.h <<\_ACEOF
10246 + #define HAVE_TIMEVAL 1
10252 +-echo $ac_n "checking for struct exception""... $ac_c" 1>&6
10253 +-echo "configure:3104: checking for struct exception" >&5
10254 +-if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
10255 +- echo $ac_n "(cached) $ac_c" 1>&6
10256 ++echo "$as_me:$LINENO: checking for struct exception" >&5
10257 ++echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
10258 ++if test "${emacs_cv_struct_exception+set}" = set; then
10259 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
10261 +- cat > conftest.$ac_ext <<EOF
10262 +-#line 3109 "configure"
10263 +-#include "confdefs.h"
10264 ++ cat >conftest.$ac_ext <<_ACEOF
10265 ++/* confdefs.h. */
10267 ++cat confdefs.h >>conftest.$ac_ext
10268 ++cat >>conftest.$ac_ext <<_ACEOF
10269 ++/* end confdefs.h. */
10270 + #include <math.h>
10275 + static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
10278 +-if { (eval echo configure:3116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10279 +- rm -rf conftest*
10284 ++rm -f conftest.$ac_objext
10285 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286 ++ (eval $ac_compile) 2>conftest.er1
10288 ++ grep -v '^ *+' conftest.er1 >conftest.err
10289 ++ rm -f conftest.er1
10290 ++ cat conftest.err >&5
10291 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 ++ (exit $ac_status); } &&
10293 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10294 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 ++ (eval $ac_try) 2>&5
10297 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 ++ (exit $ac_status); }; } &&
10299 ++ { ac_try='test -s conftest.$ac_objext'
10300 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 ++ (eval $ac_try) 2>&5
10303 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 ++ (exit $ac_status); }; }; then
10305 + emacs_cv_struct_exception=yes
10307 +- echo "configure: failed program was:" >&5
10308 +- cat conftest.$ac_ext >&5
10309 +- rm -rf conftest*
10310 +- emacs_cv_struct_exception=no
10311 ++ echo "$as_me: failed program was:" >&5
10312 ++sed 's/^/| /' conftest.$ac_ext >&5
10314 ++emacs_cv_struct_exception=no
10317 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10320 +-echo "$ac_t""$emacs_cv_struct_exception" 1>&6
10321 ++echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
10322 ++echo "${ECHO_T}$emacs_cv_struct_exception" >&6
10323 + HAVE_EXCEPTION=$emacs_cv_struct_exception
10324 + if test $emacs_cv_struct_exception != yes; then
10325 +- cat >> confdefs.h <<\EOF
10326 ++ cat >>confdefs.h <<\_ACEOF
10327 + #define NO_MATHERR 1
10333 +-echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10334 +-echo "configure:3138: checking whether struct tm is in sys/time.h or time.h" >&5
10335 +-if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10336 +- echo $ac_n "(cached) $ac_c" 1>&6
10337 ++echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10338 ++echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10339 ++if test "${ac_cv_struct_tm+set}" = set; then
10340 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
10342 +- cat > conftest.$ac_ext <<EOF
10343 +-#line 3143 "configure"
10344 +-#include "confdefs.h"
10345 ++ cat >conftest.$ac_ext <<_ACEOF
10346 ++/* confdefs.h. */
10348 ++cat confdefs.h >>conftest.$ac_ext
10349 ++cat >>conftest.$ac_ext <<_ACEOF
10350 ++/* end confdefs.h. */
10351 + #include <sys/types.h>
10352 + #include <time.h>
10358 + struct tm *tp; tp->tm_sec;
10361 +-if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10362 +- rm -rf conftest*
10367 ++rm -f conftest.$ac_objext
10368 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10369 ++ (eval $ac_compile) 2>conftest.er1
10371 ++ grep -v '^ *+' conftest.er1 >conftest.err
10372 ++ rm -f conftest.er1
10373 ++ cat conftest.err >&5
10374 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 ++ (exit $ac_status); } &&
10376 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10377 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 ++ (eval $ac_try) 2>&5
10380 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 ++ (exit $ac_status); }; } &&
10382 ++ { ac_try='test -s conftest.$ac_objext'
10383 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 ++ (eval $ac_try) 2>&5
10386 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 ++ (exit $ac_status); }; }; then
10388 + ac_cv_struct_tm=time.h
10390 +- echo "configure: failed program was:" >&5
10391 +- cat conftest.$ac_ext >&5
10392 +- rm -rf conftest*
10393 +- ac_cv_struct_tm=sys/time.h
10394 ++ echo "$as_me: failed program was:" >&5
10395 ++sed 's/^/| /' conftest.$ac_ext >&5
10397 ++ac_cv_struct_tm=sys/time.h
10400 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10403 +-echo "$ac_t""$ac_cv_struct_tm" 1>&6
10404 ++echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10405 ++echo "${ECHO_T}$ac_cv_struct_tm" >&6
10406 + if test $ac_cv_struct_tm = sys/time.h; then
10407 +- cat >> confdefs.h <<\EOF
10409 ++cat >>confdefs.h <<\_ACEOF
10410 + #define TM_IN_SYS_TIME 1
10416 +-echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
10417 +-echo "configure:3172: checking for tm_zone in struct tm" >&5
10418 +-if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
10419 +- echo $ac_n "(cached) $ac_c" 1>&6
10420 ++echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10421 ++echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10422 ++if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10423 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
10425 +- cat > conftest.$ac_ext <<EOF
10426 +-#line 3177 "configure"
10427 +-#include "confdefs.h"
10428 ++ cat >conftest.$ac_ext <<_ACEOF
10429 ++/* confdefs.h. */
10431 ++cat confdefs.h >>conftest.$ac_ext
10432 ++cat >>conftest.$ac_ext <<_ACEOF
10433 ++/* end confdefs.h. */
10434 + #include <sys/types.h>
10435 + #include <$ac_cv_struct_tm>
10437 +-struct tm tm; tm.tm_zone;
10440 +-if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10441 +- rm -rf conftest*
10442 +- ac_cv_struct_tm_zone=yes
10444 +- echo "configure: failed program was:" >&5
10445 +- cat conftest.$ac_ext >&5
10446 +- rm -rf conftest*
10447 +- ac_cv_struct_tm_zone=no
10455 ++static struct tm ac_aggr;
10456 ++if (ac_aggr.tm_zone)
10462 ++rm -f conftest.$ac_objext
10463 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464 ++ (eval $ac_compile) 2>conftest.er1
10466 ++ grep -v '^ *+' conftest.er1 >conftest.err
10467 ++ rm -f conftest.er1
10468 ++ cat conftest.err >&5
10469 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 ++ (exit $ac_status); } &&
10471 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10472 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 ++ (eval $ac_try) 2>&5
10475 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 ++ (exit $ac_status); }; } &&
10477 ++ { ac_try='test -s conftest.$ac_objext'
10478 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 ++ (eval $ac_try) 2>&5
10481 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 ++ (exit $ac_status); }; }; then
10483 ++ ac_cv_member_struct_tm_tm_zone=yes
10485 ++ echo "$as_me: failed program was:" >&5
10486 ++sed 's/^/| /' conftest.$ac_ext >&5
10488 ++cat >conftest.$ac_ext <<_ACEOF
10489 ++/* confdefs.h. */
10491 ++cat confdefs.h >>conftest.$ac_ext
10492 ++cat >>conftest.$ac_ext <<_ACEOF
10493 ++/* end confdefs.h. */
10494 ++#include <sys/types.h>
10495 ++#include <$ac_cv_struct_tm>
10501 ++static struct tm ac_aggr;
10502 ++if (sizeof ac_aggr.tm_zone)
10508 ++rm -f conftest.$ac_objext
10509 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510 ++ (eval $ac_compile) 2>conftest.er1
10512 ++ grep -v '^ *+' conftest.er1 >conftest.err
10513 ++ rm -f conftest.er1
10514 ++ cat conftest.err >&5
10515 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 ++ (exit $ac_status); } &&
10517 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10518 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 ++ (eval $ac_try) 2>&5
10521 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 ++ (exit $ac_status); }; } &&
10523 ++ { ac_try='test -s conftest.$ac_objext'
10524 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 ++ (eval $ac_try) 2>&5
10527 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 ++ (exit $ac_status); }; }; then
10529 ++ ac_cv_member_struct_tm_tm_zone=yes
10531 ++ echo "$as_me: failed program was:" >&5
10532 ++sed 's/^/| /' conftest.$ac_ext >&5
10534 ++ac_cv_member_struct_tm_tm_zone=no
10536 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10538 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10540 ++echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10541 ++echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10542 ++if test $ac_cv_member_struct_tm_tm_zone = yes; then
10544 ++cat >>confdefs.h <<_ACEOF
10545 ++#define HAVE_STRUCT_TM_TM_ZONE 1
10551 +-echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
10552 +-if test "$ac_cv_struct_tm_zone" = yes; then
10553 +- cat >> confdefs.h <<\EOF
10554 ++if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10556 ++cat >>confdefs.h <<\_ACEOF
10557 + #define HAVE_TM_ZONE 1
10562 +- echo $ac_n "checking for tzname""... $ac_c" 1>&6
10563 +-echo "configure:3205: checking for tzname" >&5
10564 +-if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
10565 +- echo $ac_n "(cached) $ac_c" 1>&6
10567 +- cat > conftest.$ac_ext <<EOF
10568 +-#line 3210 "configure"
10569 +-#include "confdefs.h"
10570 ++ echo "$as_me:$LINENO: checking for tzname" >&5
10571 ++echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10572 ++if test "${ac_cv_var_tzname+set}" = set; then
10573 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
10575 ++ cat >conftest.$ac_ext <<_ACEOF
10576 ++/* confdefs.h. */
10578 ++cat confdefs.h >>conftest.$ac_ext
10579 ++cat >>conftest.$ac_ext <<_ACEOF
10580 ++/* end confdefs.h. */
10581 + #include <time.h>
10582 + #ifndef tzname /* For SGI. */
10583 + extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10593 +-if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10594 +- rm -rf conftest*
10599 ++rm -f conftest.$ac_objext conftest$ac_exeext
10600 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601 ++ (eval $ac_link) 2>conftest.er1
10603 ++ grep -v '^ *+' conftest.er1 >conftest.err
10604 ++ rm -f conftest.er1
10605 ++ cat conftest.err >&5
10606 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 ++ (exit $ac_status); } &&
10608 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10609 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 ++ (eval $ac_try) 2>&5
10612 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 ++ (exit $ac_status); }; } &&
10614 ++ { ac_try='test -s conftest$ac_exeext'
10615 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 ++ (eval $ac_try) 2>&5
10618 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 ++ (exit $ac_status); }; }; then
10620 + ac_cv_var_tzname=yes
10622 +- echo "configure: failed program was:" >&5
10623 +- cat conftest.$ac_ext >&5
10624 +- rm -rf conftest*
10625 +- ac_cv_var_tzname=no
10626 ++ echo "$as_me: failed program was:" >&5
10627 ++sed 's/^/| /' conftest.$ac_ext >&5
10629 ++ac_cv_var_tzname=no
10632 ++rm -f conftest.err conftest.$ac_objext \
10633 ++ conftest$ac_exeext conftest.$ac_ext
10636 +-echo "$ac_t""$ac_cv_var_tzname" 1>&6
10637 ++echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10638 ++echo "${ECHO_T}$ac_cv_var_tzname" >&6
10639 + if test $ac_cv_var_tzname = yes; then
10640 +- cat >> confdefs.h <<\EOF
10642 ++cat >>confdefs.h <<\_ACEOF
10643 + #define HAVE_TZNAME 1
10650 +-echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
10651 +-echo "configure:3242: checking for tm_gmtoff in struct tm" >&5
10652 +-if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
10653 +- echo $ac_n "(cached) $ac_c" 1>&6
10655 +- cat > conftest.$ac_ext <<EOF
10656 +-#line 3247 "configure"
10657 +-#include "confdefs.h"
10658 ++echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
10659 ++echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
10660 ++if test "${emacs_cv_tm_gmtoff+set}" = set; then
10661 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
10663 ++ cat >conftest.$ac_ext <<_ACEOF
10664 ++/* confdefs.h. */
10666 ++cat confdefs.h >>conftest.$ac_ext
10667 ++cat >>conftest.$ac_ext <<_ACEOF
10668 ++/* end confdefs.h. */
10669 + #include <time.h>
10674 + struct tm t; t.tm_gmtoff = 0
10677 +-if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10678 +- rm -rf conftest*
10683 ++rm -f conftest.$ac_objext conftest$ac_exeext
10684 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10685 ++ (eval $ac_link) 2>conftest.er1
10687 ++ grep -v '^ *+' conftest.er1 >conftest.err
10688 ++ rm -f conftest.er1
10689 ++ cat conftest.err >&5
10690 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 ++ (exit $ac_status); } &&
10692 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10693 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 ++ (eval $ac_try) 2>&5
10696 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 ++ (exit $ac_status); }; } &&
10698 ++ { ac_try='test -s conftest$ac_exeext'
10699 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 ++ (eval $ac_try) 2>&5
10702 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 ++ (exit $ac_status); }; }; then
10704 + emacs_cv_tm_gmtoff=yes
10706 +- echo "configure: failed program was:" >&5
10707 +- cat conftest.$ac_ext >&5
10708 +- rm -rf conftest*
10709 +- emacs_cv_tm_gmtoff=no
10710 ++ echo "$as_me: failed program was:" >&5
10711 ++sed 's/^/| /' conftest.$ac_ext >&5
10713 ++emacs_cv_tm_gmtoff=no
10716 ++rm -f conftest.err conftest.$ac_objext \
10717 ++ conftest$ac_exeext conftest.$ac_ext
10720 +-echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
10721 ++echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5
10722 ++echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
10723 + if test $emacs_cv_tm_gmtoff = yes; then
10724 +- cat >> confdefs.h <<\EOF
10725 ++ cat >>confdefs.h <<\_ACEOF
10726 + #define HAVE_TM_GMTOFF 1
10733 +-echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
10734 +-echo "configure:3276: checking for ${CC-cc} option to accept ANSI C" >&5
10735 +-if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
10736 +- echo $ac_n "(cached) $ac_c" 1>&6
10738 +- ac_cv_prog_cc_stdc=no
10740 +-# Don't try gcc -ansi; that turns off useful extensions and
10741 +-# breaks some systems' header files.
10742 +-# AIX -qlanglvl=ansi
10743 +-# Ultrix and OSF/1 -std1
10744 +-# HP-UX 10.20 and later -Ae
10745 +-# HP-UX older versions -Aa -D_HPUX_SOURCE
10746 +-# SVR4 -Xc -D__EXTENSIONS__
10747 +-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10749 +- CC="$ac_save_CC $ac_arg"
10750 +- cat > conftest.$ac_ext <<EOF
10751 +-#line 3293 "configure"
10752 +-#include "confdefs.h"
10753 +-#include <stdarg.h>
10754 +-#include <stdio.h>
10755 +-#include <sys/types.h>
10756 +-#include <sys/stat.h>
10757 +-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10758 +-struct buf { int x; };
10759 +-FILE * (*rcsopen) (struct buf *, struct stat *, int);
10760 +-static char *e (p, i)
10766 +-static char *f (char * (*g) (char **, int), char **p, ...)
10771 +- s = g (p, va_arg (v,int));
10775 +-int test (int i, double x);
10776 +-struct s1 {int (*f) (int a);};
10777 +-struct s2 {int (*f) (double a);};
10778 +-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10782 +-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10785 +-if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10786 +- rm -rf conftest*
10787 +- ac_cv_prog_cc_stdc="$ac_arg"; break
10789 +- echo "configure: failed program was:" >&5
10790 +- cat conftest.$ac_ext >&5
10795 ++echo "$as_me:$LINENO: checking for function prototypes" >&5
10796 ++echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
10797 ++if test "$ac_cv_prog_cc_stdc" != no; then
10798 ++ echo "$as_me:$LINENO: result: yes" >&5
10799 ++echo "${ECHO_T}yes" >&6
10802 ++cat >>confdefs.h <<\_ACEOF
10803 ++#define PROTOTYPES 1
10806 +-case "x$ac_cv_prog_cc_stdc" in
10808 +- echo "$ac_t""none needed" 1>&6 ;;
10810 +- echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
10811 +- CC="$CC $ac_cv_prog_cc_stdc" ;;
10814 +-echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
10815 +-echo "configure:3349: checking for function prototypes" >&5
10816 +-if test "$ac_cv_prog_cc_stdc" != no; then
10817 +- echo "$ac_t""yes" 1>&6
10818 +- cat >> confdefs.h <<\EOF
10819 +-#define PROTOTYPES 1
10821 ++cat >>confdefs.h <<\_ACEOF
10822 ++#define __PROTOTYPES 1
10826 +- echo "$ac_t""no" 1>&6
10827 ++ echo "$as_me:$LINENO: result: no" >&5
10828 ++echo "${ECHO_T}no" >&6
10831 +-echo $ac_n "checking for working volatile""... $ac_c" 1>&6
10832 +-echo "configure:3361: checking for working volatile" >&5
10833 +-if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
10834 +- echo $ac_n "(cached) $ac_c" 1>&6
10835 ++echo "$as_me:$LINENO: checking for working volatile" >&5
10836 ++echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10837 ++if test "${ac_cv_c_volatile+set}" = set; then
10838 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
10840 +- cat > conftest.$ac_ext <<EOF
10841 +-#line 3366 "configure"
10842 +-#include "confdefs.h"
10843 ++ cat >conftest.$ac_ext <<_ACEOF
10844 ++/* confdefs.h. */
10846 ++cat confdefs.h >>conftest.$ac_ext
10847 ++cat >>conftest.$ac_ext <<_ACEOF
10848 ++/* end confdefs.h. */
10856 + int * volatile y;
10859 +-if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10860 +- rm -rf conftest*
10865 ++rm -f conftest.$ac_objext
10866 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10867 ++ (eval $ac_compile) 2>conftest.er1
10869 ++ grep -v '^ *+' conftest.er1 >conftest.err
10870 ++ rm -f conftest.er1
10871 ++ cat conftest.err >&5
10872 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 ++ (exit $ac_status); } &&
10874 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 ++ (eval $ac_try) 2>&5
10878 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 ++ (exit $ac_status); }; } &&
10880 ++ { ac_try='test -s conftest.$ac_objext'
10881 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 ++ (eval $ac_try) 2>&5
10884 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 ++ (exit $ac_status); }; }; then
10886 + ac_cv_c_volatile=yes
10888 +- echo "configure: failed program was:" >&5
10889 +- cat conftest.$ac_ext >&5
10890 +- rm -rf conftest*
10891 +- ac_cv_c_volatile=no
10892 ++ echo "$as_me: failed program was:" >&5
10893 ++sed 's/^/| /' conftest.$ac_ext >&5
10895 ++ac_cv_c_volatile=no
10898 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10901 +-echo "$ac_t""$ac_cv_c_volatile" 1>&6
10902 ++echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10903 ++echo "${ECHO_T}$ac_cv_c_volatile" >&6
10904 + if test $ac_cv_c_volatile = no; then
10905 +- cat >> confdefs.h <<\EOF
10909 ++cat >>confdefs.h <<\_ACEOF
10915 +-echo $ac_n "checking for working const""... $ac_c" 1>&6
10916 +-echo "configure:3396: checking for working const" >&5
10917 +-if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10918 +- echo $ac_n "(cached) $ac_c" 1>&6
10920 +- cat > conftest.$ac_ext <<EOF
10921 +-#line 3401 "configure"
10922 +-#include "confdefs.h"
10926 +-/* Ultrix mips cc rejects this. */
10927 +-typedef int charset[2]; const charset x;
10928 +-/* SunOS 4.1.1 cc rejects this. */
10929 +-char const *const *ccp;
10931 +-/* NEC SVR4.0.2 mips cc rejects this. */
10932 +-struct point {int x, y;};
10933 +-static struct point const zero = {0,0};
10934 +-/* AIX XL C 1.02.0.0 rejects this.
10935 +- It does not let you subtract one const X* pointer from another in an arm
10936 +- of an if-expression whose if-part is not a constant expression */
10937 +-const char *g = "string";
10938 +-ccp = &g + (g ? g-g : 0);
10939 +-/* HPUX 7.0 cc rejects these. */
10941 +-p = (char**) ccp;
10942 +-ccp = (char const *const *) p;
10943 +-{ /* SCO 3.2v4 cc rejects this. */
10945 +- char const *s = 0 ? (char *) 0 : (char const *) 0;
10949 +-{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10950 +- int x[] = {25, 17};
10951 +- const int *foo = &x[0];
10954 +-{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10955 +- typedef const int *iptr;
10959 +-{ /* AIX XL C 1.02.0.0 rejects this saying
10960 +- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10961 +- struct s { int j; const int *ap[3]; };
10962 +- struct s *b; b->j = 5;
10964 +-{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10965 +- const int foo = 10;
10970 +-if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10971 +- rm -rf conftest*
10972 ++echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10973 ++echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10974 ++if test "${ac_cv_c_const+set}" = set; then
10975 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
10977 ++ cat >conftest.$ac_ext <<_ACEOF
10978 ++/* confdefs.h. */
10980 ++cat confdefs.h >>conftest.$ac_ext
10981 ++cat >>conftest.$ac_ext <<_ACEOF
10982 ++/* end confdefs.h. */
10987 ++/* FIXME: Include the comments suggested by Paul. */
10988 ++#ifndef __cplusplus
10989 ++ /* Ultrix mips cc rejects this. */
10990 ++ typedef int charset[2];
10991 ++ const charset x;
10992 ++ /* SunOS 4.1.1 cc rejects this. */
10993 ++ char const *const *ccp;
10995 ++ /* NEC SVR4.0.2 mips cc rejects this. */
10996 ++ struct point {int x, y;};
10997 ++ static struct point const zero = {0,0};
10998 ++ /* AIX XL C 1.02.0.0 rejects this.
10999 ++ It does not let you subtract one const X* pointer from another in
11000 ++ an arm of an if-expression whose if-part is not a constant
11002 ++ const char *g = "string";
11003 ++ ccp = &g + (g ? g-g : 0);
11004 ++ /* HPUX 7.0 cc rejects these. */
11006 ++ p = (char**) ccp;
11007 ++ ccp = (char const *const *) p;
11008 ++ { /* SCO 3.2v4 cc rejects this. */
11010 ++ char const *s = 0 ? (char *) 0 : (char const *) 0;
11014 ++ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11015 ++ int x[] = {25, 17};
11016 ++ const int *foo = &x[0];
11019 ++ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11020 ++ typedef const int *iptr;
11024 ++ { /* AIX XL C 1.02.0.0 rejects this saying
11025 ++ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11026 ++ struct s { int j; const int *ap[3]; };
11027 ++ struct s *b; b->j = 5;
11029 ++ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11030 ++ const int foo = 10;
11038 ++rm -f conftest.$ac_objext
11039 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040 ++ (eval $ac_compile) 2>conftest.er1
11042 ++ grep -v '^ *+' conftest.er1 >conftest.err
11043 ++ rm -f conftest.er1
11044 ++ cat conftest.err >&5
11045 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 ++ (exit $ac_status); } &&
11047 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11048 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 ++ (eval $ac_try) 2>&5
11051 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 ++ (exit $ac_status); }; } &&
11053 ++ { ac_try='test -s conftest.$ac_objext'
11054 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 ++ (eval $ac_try) 2>&5
11057 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 ++ (exit $ac_status); }; }; then
11059 + ac_cv_c_const=yes
11061 +- echo "configure: failed program was:" >&5
11062 +- cat conftest.$ac_ext >&5
11063 +- rm -rf conftest*
11064 +- ac_cv_c_const=no
11065 ++ echo "$as_me: failed program was:" >&5
11066 ++sed 's/^/| /' conftest.$ac_ext >&5
11071 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11074 +-echo "$ac_t""$ac_cv_c_const" 1>&6
11075 ++echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11076 ++echo "${ECHO_T}$ac_cv_c_const" >&6
11077 + if test $ac_cv_c_const = no; then
11078 +- cat >> confdefs.h <<\EOF
11082 ++cat >>confdefs.h <<\_ACEOF
11088 +-echo $ac_n "checking for void * support""... $ac_c" 1>&6
11089 +-echo "configure:3471: checking for void * support" >&5
11090 +-if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
11091 +- echo $ac_n "(cached) $ac_c" 1>&6
11093 +- cat > conftest.$ac_ext <<EOF
11094 +-#line 3476 "configure"
11095 +-#include "confdefs.h"
11096 ++echo "$as_me:$LINENO: checking for void * support" >&5
11097 ++echo $ECHO_N "checking for void * support... $ECHO_C" >&6
11098 ++if test "${emacs_cv_void_star+set}" = set; then
11099 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
11101 ++ cat >conftest.$ac_ext <<_ACEOF
11102 ++/* confdefs.h. */
11104 ++cat confdefs.h >>conftest.$ac_ext
11105 ++cat >>conftest.$ac_ext <<_ACEOF
11106 ++/* end confdefs.h. */
11115 +-if { (eval echo configure:3483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11116 +- rm -rf conftest*
11121 ++rm -f conftest.$ac_objext
11122 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123 ++ (eval $ac_compile) 2>conftest.er1
11125 ++ grep -v '^ *+' conftest.er1 >conftest.err
11126 ++ rm -f conftest.er1
11127 ++ cat conftest.err >&5
11128 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 ++ (exit $ac_status); } &&
11130 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 ++ (eval $ac_try) 2>&5
11134 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 ++ (exit $ac_status); }; } &&
11136 ++ { ac_try='test -s conftest.$ac_objext'
11137 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 ++ (eval $ac_try) 2>&5
11140 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 ++ (exit $ac_status); }; }; then
11142 + emacs_cv_void_star=yes
11144 +- echo "configure: failed program was:" >&5
11145 +- cat conftest.$ac_ext >&5
11146 +- rm -rf conftest*
11147 +- emacs_cv_void_star=no
11148 ++ echo "$as_me: failed program was:" >&5
11149 ++sed 's/^/| /' conftest.$ac_ext >&5
11151 ++emacs_cv_void_star=no
11154 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11157 +-echo "$ac_t""$emacs_cv_void_star" 1>&6
11158 ++echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
11159 ++echo "${ECHO_T}$emacs_cv_void_star" >&6
11160 + if test $emacs_cv_void_star = yes; then
11161 +- cat >> confdefs.h <<\EOF
11162 ++ cat >>confdefs.h <<\_ACEOF
11163 + #define POINTER_TYPE void
11168 +- cat >> confdefs.h <<\EOF
11169 ++ cat >>confdefs.h <<\_ACEOF
11170 + #define POINTER_TYPE char
11176 +-echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
11177 +-echo "configure:3509: checking whether ${MAKE-make} sets \${MAKE}" >&5
11178 +-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
11179 +-if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
11180 +- echo $ac_n "(cached) $ac_c" 1>&6
11181 ++echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11182 ++echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
11183 ++set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
11184 ++if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
11185 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
11187 +- cat > conftestmake <<\EOF
11188 ++ cat >conftest.make <<\_ACEOF
11190 +- @echo 'ac_maketemp="${MAKE}"'
11192 ++ @echo 'ac_maketemp="$(MAKE)"'
11194 + # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11195 +-eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
11196 ++eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
11197 + if test -n "$ac_maketemp"; then
11198 + eval ac_cv_prog_make_${ac_make}_set=yes
11200 + eval ac_cv_prog_make_${ac_make}_set=no
11202 +-rm -f conftestmake
11203 ++rm -f conftest.make
11205 + if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
11206 +- echo "$ac_t""yes" 1>&6
11207 ++ echo "$as_me:$LINENO: result: yes" >&5
11208 ++echo "${ECHO_T}yes" >&6
11211 +- echo "$ac_t""no" 1>&6
11212 ++ echo "$as_me:$LINENO: result: no" >&5
11213 ++echo "${ECHO_T}no" >&6
11214 + SET_MAKE="MAKE=${MAKE-make}"
11218 +-echo $ac_n "checking for long file names""... $ac_c" 1>&6
11219 +-echo "configure:3537: checking for long file names" >&5
11220 +-if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
11221 +- echo $ac_n "(cached) $ac_c" 1>&6
11222 ++echo "$as_me:$LINENO: checking for long file names" >&5
11223 ++echo $ECHO_N "checking for long file names... $ECHO_C" >&6
11224 ++if test "${ac_cv_sys_long_file_names+set}" = set; then
11225 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
11227 + ac_cv_sys_long_file_names=yes
11228 + # Test for long file names in all the places we know might matter:
11229 +@@ -3549,49 +6493,51 @@
11230 + # /var/tmp likewise
11231 + # /usr/tmp likewise
11232 + if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
11233 +- ac_tmpdirs="$TMPDIR"
11234 ++ ac_tmpdirs=$TMPDIR
11236 + ac_tmpdirs='/tmp /var/tmp /usr/tmp'
11238 + for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
11239 + test -d $ac_dir || continue
11240 + test -w $ac_dir || continue # It is less confusing to not echo anything here.
11241 +- (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
11242 +- (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
11243 +- val=`cat $ac_dir/conftest9012345 2>/dev/null`
11244 +- if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
11245 ++ ac_xdir=$ac_dir/cf$$
11246 ++ (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
11247 ++ ac_tf1=$ac_xdir/conftest9012345
11248 ++ ac_tf2=$ac_xdir/conftest9012346
11249 ++ (echo 1 >$ac_tf1) 2>/dev/null
11250 ++ (echo 2 >$ac_tf2) 2>/dev/null
11251 ++ ac_val=`cat $ac_tf1 2>/dev/null`
11252 ++ if test ! -f $ac_tf1 || test "$ac_val" != 1; then
11253 + ac_cv_sys_long_file_names=no
11254 +- rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
11255 ++ rm -rf $ac_xdir 2>/dev/null
11258 +- rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
11259 ++ rm -rf $ac_xdir 2>/dev/null
11263 +-echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
11264 ++echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
11265 ++echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
11266 + if test $ac_cv_sys_long_file_names = yes; then
11267 +- cat >> confdefs.h <<\EOF
11269 ++cat >>confdefs.h <<\_ACEOF
11270 + #define HAVE_LONG_FILE_NAMES 1
11277 + #### Choose a window system.
11279 +-# If we find X, set shell vars x_includes and x_libraries to the
11280 +-# paths, otherwise set no_x=yes.
11281 +-# Uses ac_ vars as temps to allow command line to override cache and checks.
11282 +-# --without-x overrides everything else, but does not touch the cache.
11283 +-echo $ac_n "checking for X""... $ac_c" 1>&6
11284 +-echo "configure:3588: checking for X" >&5
11285 ++echo "$as_me:$LINENO: checking for X" >&5
11286 ++echo $ECHO_N "checking for X... $ECHO_C" >&6
11288 ++ac_path_x_has_been_run=yes
11290 + # Check whether --with-x or --without-x was given.
11291 + if test "${with_x+set}" = set; then
11292 + withval="$with_x"
11297 + # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11298 + if test "x$with_x" = xno; then
11299 + # The user explicitly disabled X.
11300 +@@ -3601,207 +6547,209 @@
11301 + # Both variables are already set.
11304 +-if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11305 +- echo $ac_n "(cached) $ac_c" 1>&6
11306 ++ if test "${ac_cv_have_x+set}" = set; then
11307 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
11309 + # One or both of the vars are not set, and there is no cached value.
11310 +-ac_x_includes=NO ac_x_libraries=NO
11311 +-rm -fr conftestdir
11312 +-if mkdir conftestdir; then
11314 ++ac_x_includes=no ac_x_libraries=no
11315 ++rm -fr conftest.dir
11316 ++if mkdir conftest.dir; then
11318 + # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11319 +- cat > Imakefile <<'EOF'
11320 ++ cat >Imakefile <<'_ACEOF'
11322 + @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11325 + if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11326 + # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11327 + eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11328 + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11329 + for ac_extension in a so sl; do
11330 + if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11331 +- test -f $ac_im_libdir/libX11.$ac_extension; then
11332 +- ac_im_usrlibdir=$ac_im_libdir; break
11333 ++ test -f $ac_im_libdir/libX11.$ac_extension; then
11334 ++ ac_im_usrlibdir=$ac_im_libdir; break
11337 + # Screen out bogus values from the imake configuration. They are
11338 + # bogus both because they are the default anyway, and because
11339 + # using them would break gcc on systems where it needs fixed includes.
11340 +- case "$ac_im_incroot" in
11341 ++ case $ac_im_incroot in
11343 +- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11344 ++ *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11346 +- case "$ac_im_usrlibdir" in
11347 ++ case $ac_im_usrlibdir in
11348 + /usr/lib | /lib) ;;
11349 +- *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11350 ++ *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11354 +- rm -fr conftestdir
11355 ++ rm -fr conftest.dir
11358 +-if test "$ac_x_includes" = NO; then
11359 +- # Guess where to find include files, by looking for this one X11 .h file.
11360 +- test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11361 ++# Standard set of common directories for X headers.
11362 ++# Check X11 before X11Rn because it is often a symlink to the current release.
11363 ++ac_x_header_dirs='
11365 ++/usr/X11R6/include
11366 ++/usr/X11R5/include
11367 ++/usr/X11R4/include
11370 ++/usr/include/X11R6
11371 ++/usr/include/X11R5
11372 ++/usr/include/X11R4
11374 ++/usr/local/X11/include
11375 ++/usr/local/X11R6/include
11376 ++/usr/local/X11R5/include
11377 ++/usr/local/X11R4/include
11379 ++/usr/local/include/X11
11380 ++/usr/local/include/X11R6
11381 ++/usr/local/include/X11R5
11382 ++/usr/local/include/X11R4
11384 ++/usr/X386/include
11385 ++/usr/x386/include
11386 ++/usr/XFree86/include/X11
11389 ++/usr/local/include
11390 ++/usr/unsupported/include
11391 ++/usr/athena/include
11392 ++/usr/local/x11r5/include
11393 ++/usr/lpp/Xamples/include
11395 ++/usr/openwin/include
11396 ++/usr/openwin/share/include'
11398 ++if test "$ac_x_includes" = no; then
11399 ++ # Guess where to find include files, by looking for a specified header file.
11400 + # First, try using that file with no special directory specified.
11401 +-cat > conftest.$ac_ext <<EOF
11402 +-#line 3650 "configure"
11403 +-#include "confdefs.h"
11404 +-#include <$x_direct_test_include>
11406 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11407 +-{ (eval echo configure:3655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11408 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11409 +-if test -z "$ac_err"; then
11410 +- rm -rf conftest*
11411 ++ cat >conftest.$ac_ext <<_ACEOF
11412 ++/* confdefs.h. */
11414 ++cat confdefs.h >>conftest.$ac_ext
11415 ++cat >>conftest.$ac_ext <<_ACEOF
11416 ++/* end confdefs.h. */
11417 ++#include <X11/Intrinsic.h>
11419 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11420 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11422 ++ grep -v '^ *+' conftest.er1 >conftest.err
11423 ++ rm -f conftest.er1
11424 ++ cat conftest.err >&5
11425 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 ++ (exit $ac_status); } >/dev/null; then
11427 ++ if test -s conftest.err; then
11428 ++ ac_cpp_err=$ac_c_preproc_warn_flag
11429 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11436 ++if test -z "$ac_cpp_err"; then
11437 + # We can compile using X headers with no special include directory.
11440 +- echo "$ac_err" >&5
11441 +- echo "configure: failed program was:" >&5
11442 +- cat conftest.$ac_ext >&5
11443 +- rm -rf conftest*
11444 +- # Look for the header file in a standard set of common directories.
11445 +-# Check X11 before X11Rn because it is often a symlink to the current release.
11447 +- /usr/X11/include \
11448 +- /usr/X11R6/include \
11449 +- /usr/X11R5/include \
11450 +- /usr/X11R4/include \
11452 +- /usr/include/X11 \
11453 +- /usr/include/X11R6 \
11454 +- /usr/include/X11R5 \
11455 +- /usr/include/X11R4 \
11457 +- /usr/local/X11/include \
11458 +- /usr/local/X11R6/include \
11459 +- /usr/local/X11R5/include \
11460 +- /usr/local/X11R4/include \
11462 +- /usr/local/include/X11 \
11463 +- /usr/local/include/X11R6 \
11464 +- /usr/local/include/X11R5 \
11465 +- /usr/local/include/X11R4 \
11467 +- /usr/X386/include \
11468 +- /usr/x386/include \
11469 +- /usr/XFree86/include/X11 \
11472 +- /usr/local/include \
11473 +- /usr/unsupported/include \
11474 +- /usr/athena/include \
11475 +- /usr/local/x11r5/include \
11476 +- /usr/lpp/Xamples/include \
11478 +- /usr/openwin/include \
11479 +- /usr/openwin/share/include \
11482 +- if test -r "$ac_dir/$x_direct_test_include"; then
11483 +- ac_x_includes=$ac_dir
11487 ++ echo "$as_me: failed program was:" >&5
11488 ++sed 's/^/| /' conftest.$ac_ext >&5
11490 ++ for ac_dir in $ac_x_header_dirs; do
11491 ++ if test -r "$ac_dir/X11/Intrinsic.h"; then
11492 ++ ac_x_includes=$ac_dir
11498 +-fi # $ac_x_includes = NO
11499 ++rm -f conftest.err conftest.$ac_ext
11500 ++fi # $ac_x_includes = no
11502 +-if test "$ac_x_libraries" = NO; then
11503 ++if test "$ac_x_libraries" = no; then
11504 + # Check for the libraries.
11506 +- test -z "$x_direct_test_library" && x_direct_test_library=Xt
11507 +- test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11509 + # See if we find them without any special options.
11510 + # Don't add to $LIBS permanently.
11511 +- ac_save_LIBS="$LIBS"
11512 +- LIBS="-l$x_direct_test_library $LIBS"
11513 +-cat > conftest.$ac_ext <<EOF
11514 +-#line 3724 "configure"
11515 +-#include "confdefs.h"
11518 +-${x_direct_test_function}()
11521 +-if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11522 +- rm -rf conftest*
11523 +- LIBS="$ac_save_LIBS"
11524 ++ ac_save_LIBS=$LIBS
11525 ++ LIBS="-lXt $LIBS"
11526 ++ cat >conftest.$ac_ext <<_ACEOF
11527 ++/* confdefs.h. */
11529 ++cat confdefs.h >>conftest.$ac_ext
11530 ++cat >>conftest.$ac_ext <<_ACEOF
11531 ++/* end confdefs.h. */
11532 ++#include <X11/Intrinsic.h>
11541 ++rm -f conftest.$ac_objext conftest$ac_exeext
11542 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543 ++ (eval $ac_link) 2>conftest.er1
11545 ++ grep -v '^ *+' conftest.er1 >conftest.err
11546 ++ rm -f conftest.er1
11547 ++ cat conftest.err >&5
11548 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 ++ (exit $ac_status); } &&
11550 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11551 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 ++ (eval $ac_try) 2>&5
11554 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 ++ (exit $ac_status); }; } &&
11556 ++ { ac_try='test -s conftest$ac_exeext'
11557 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 ++ (eval $ac_try) 2>&5
11560 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 ++ (exit $ac_status); }; }; then
11562 ++ LIBS=$ac_save_LIBS
11563 + # We can link X programs with no special library path.
11566 +- echo "configure: failed program was:" >&5
11567 +- cat conftest.$ac_ext >&5
11568 +- rm -rf conftest*
11569 +- LIBS="$ac_save_LIBS"
11570 +-# First see if replacing the include by lib works.
11571 +-# Check X11 before X11Rn because it is often a symlink to the current release.
11572 +-for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11574 +- /usr/X11R6/lib \
11575 +- /usr/X11R5/lib \
11576 +- /usr/X11R4/lib \
11579 +- /usr/lib/X11R6 \
11580 +- /usr/lib/X11R5 \
11581 +- /usr/lib/X11R4 \
11583 +- /usr/local/X11/lib \
11584 +- /usr/local/X11R6/lib \
11585 +- /usr/local/X11R5/lib \
11586 +- /usr/local/X11R4/lib \
11588 +- /usr/local/lib/X11 \
11589 +- /usr/local/lib/X11R6 \
11590 +- /usr/local/lib/X11R5 \
11591 +- /usr/local/lib/X11R4 \
11595 +- /usr/XFree86/lib/X11 \
11598 +- /usr/local/lib \
11599 +- /usr/unsupported/lib \
11600 +- /usr/athena/lib \
11601 +- /usr/local/x11r5/lib \
11602 +- /usr/lpp/Xamples/lib \
11603 +- /lib/usr/lib/X11 \
11605 +- /usr/openwin/lib \
11606 +- /usr/openwin/share/lib \
11608 ++ echo "$as_me: failed program was:" >&5
11609 ++sed 's/^/| /' conftest.$ac_ext >&5
11611 ++LIBS=$ac_save_LIBS
11612 ++for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11614 ++ # Don't even attempt the hair of trying to link an X program!
11615 + for ac_extension in a so sl; do
11616 +- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11617 ++ if test -r $ac_dir/libXt.$ac_extension; then
11618 + ac_x_libraries=$ac_dir
11625 +-fi # $ac_x_libraries = NO
11626 ++rm -f conftest.err conftest.$ac_objext \
11627 ++ conftest$ac_exeext conftest.$ac_ext
11628 ++fi # $ac_x_libraries = no
11630 +-if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11631 ++if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11632 + # Didn't find X anywhere. Cache the known absence of X.
11633 + ac_cv_have_x="have_x=no"
11635 + # Record where we found X for the cache.
11636 + ac_cv_have_x="have_x=yes \
11637 +- ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11638 ++ ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11643 + eval "$ac_cv_have_x"
11644 + fi # $with_x != no
11646 + if test "$have_x" != yes; then
11647 +- echo "$ac_t""$have_x" 1>&6
11648 ++ echo "$as_me:$LINENO: result: $have_x" >&5
11649 ++echo "${ECHO_T}$have_x" >&6
11652 + # If each of the values was on the command line, it overrides each guess.
11653 +@@ -3810,7 +6758,12 @@
11654 + # Update the cache value to reflect the command line values.
11655 + ac_cv_have_x="have_x=yes \
11656 + ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11657 +- echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11658 ++ # It might be that x_includes is empty (headers are found in the
11659 ++ # standard search path. Then output the corresponding message
11660 ++ ac_out_x_includes=$x_includes
11661 ++ test "x$x_includes" = x && ac_out_x_includes="in standard search path"
11662 ++ echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
11663 ++echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
11666 + if test "$no_x" = yes; then
11667 +@@ -3883,7 +6836,7 @@
11668 + case ${HAVE_X11} in
11669 + yes ) HAVE_MENUS=yes ;;
11673 + if test "${opsys}" = "hpux9"; then
11674 + case "${x_libraries}" in
11676 +@@ -3907,130 +6860,249 @@
11677 + # Assume not, until told otherwise.
11679 + doug_lea_malloc=yes
11680 +-echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
11681 +-echo "configure:3912: checking for malloc_get_state" >&5
11682 +-if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
11683 +- echo $ac_n "(cached) $ac_c" 1>&6
11685 +- cat > conftest.$ac_ext <<EOF
11686 +-#line 3917 "configure"
11687 +-#include "confdefs.h"
11688 ++echo "$as_me:$LINENO: checking for malloc_get_state" >&5
11689 ++echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
11690 ++if test "${ac_cv_func_malloc_get_state+set}" = set; then
11691 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
11693 ++ cat >conftest.$ac_ext <<_ACEOF
11694 ++/* confdefs.h. */
11696 ++cat confdefs.h >>conftest.$ac_ext
11697 ++cat >>conftest.$ac_ext <<_ACEOF
11698 ++/* end confdefs.h. */
11699 ++/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
11700 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
11701 ++#define malloc_get_state innocuous_malloc_get_state
11703 + /* System header to define __stub macros and hopefully few prototypes,
11704 +- which can conflict with char malloc_get_state(); below. */
11705 +-#include <assert.h>
11706 +-/* Override any gcc2 internal prototype to avoid an error. */
11707 +-/* We use char because int might match the return type of a gcc2
11708 +- builtin and then its argument prototype would still apply. */
11709 +-char malloc_get_state();
11710 ++ which can conflict with char malloc_get_state (); below.
11711 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712 ++ <limits.h> exists even on freestanding compilers. */
11715 ++# include <limits.h>
11717 ++# include <assert.h>
11721 ++#undef malloc_get_state
11723 ++/* Override any gcc2 internal prototype to avoid an error. */
11724 ++#ifdef __cplusplus
11728 ++/* We use char because int might match the return type of a gcc2
11729 ++ builtin and then its argument prototype would still apply. */
11730 ++char malloc_get_state ();
11731 + /* The GNU C library defines this for functions which it implements
11732 + to always fail with ENOSYS. Some functions are actually named
11733 + something starting with __ and the normal name is an alias. */
11734 + #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
11737 +-malloc_get_state();
11738 ++char (*f) () = malloc_get_state;
11740 ++#ifdef __cplusplus
11746 +-if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11747 +- rm -rf conftest*
11748 +- eval "ac_cv_func_malloc_get_state=yes"
11750 +- echo "configure: failed program was:" >&5
11751 +- cat conftest.$ac_ext >&5
11752 +- rm -rf conftest*
11753 +- eval "ac_cv_func_malloc_get_state=no"
11758 +-if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
11759 +- echo "$ac_t""yes" 1>&6
11763 ++return f != malloc_get_state;
11768 ++rm -f conftest.$ac_objext conftest$ac_exeext
11769 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770 ++ (eval $ac_link) 2>conftest.er1
11772 ++ grep -v '^ *+' conftest.er1 >conftest.err
11773 ++ rm -f conftest.er1
11774 ++ cat conftest.err >&5
11775 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 ++ (exit $ac_status); } &&
11777 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11778 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 ++ (eval $ac_try) 2>&5
11781 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 ++ (exit $ac_status); }; } &&
11783 ++ { ac_try='test -s conftest$ac_exeext'
11784 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 ++ (eval $ac_try) 2>&5
11787 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 ++ (exit $ac_status); }; }; then
11789 ++ ac_cv_func_malloc_get_state=yes
11791 ++ echo "$as_me: failed program was:" >&5
11792 ++sed 's/^/| /' conftest.$ac_ext >&5
11794 ++ac_cv_func_malloc_get_state=no
11796 ++rm -f conftest.err conftest.$ac_objext \
11797 ++ conftest$ac_exeext conftest.$ac_ext
11799 ++echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
11800 ++echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
11801 ++if test $ac_cv_func_malloc_get_state = yes; then
11804 +- echo "$ac_t""no" 1>&6
11805 +-doug_lea_malloc=no
11806 ++ doug_lea_malloc=no
11809 +-echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
11810 +-echo "configure:3961: checking for malloc_set_state" >&5
11811 +-if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
11812 +- echo $ac_n "(cached) $ac_c" 1>&6
11814 +- cat > conftest.$ac_ext <<EOF
11815 +-#line 3966 "configure"
11816 +-#include "confdefs.h"
11817 ++echo "$as_me:$LINENO: checking for malloc_set_state" >&5
11818 ++echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
11819 ++if test "${ac_cv_func_malloc_set_state+set}" = set; then
11820 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
11822 ++ cat >conftest.$ac_ext <<_ACEOF
11823 ++/* confdefs.h. */
11825 ++cat confdefs.h >>conftest.$ac_ext
11826 ++cat >>conftest.$ac_ext <<_ACEOF
11827 ++/* end confdefs.h. */
11828 ++/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
11829 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830 ++#define malloc_set_state innocuous_malloc_set_state
11832 + /* System header to define __stub macros and hopefully few prototypes,
11833 +- which can conflict with char malloc_set_state(); below. */
11834 +-#include <assert.h>
11835 +-/* Override any gcc2 internal prototype to avoid an error. */
11836 +-/* We use char because int might match the return type of a gcc2
11837 +- builtin and then its argument prototype would still apply. */
11838 +-char malloc_set_state();
11839 ++ which can conflict with char malloc_set_state (); below.
11840 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841 ++ <limits.h> exists even on freestanding compilers. */
11844 ++# include <limits.h>
11846 ++# include <assert.h>
11850 ++#undef malloc_set_state
11852 ++/* Override any gcc2 internal prototype to avoid an error. */
11853 ++#ifdef __cplusplus
11857 ++/* We use char because int might match the return type of a gcc2
11858 ++ builtin and then its argument prototype would still apply. */
11859 ++char malloc_set_state ();
11860 + /* The GNU C library defines this for functions which it implements
11861 + to always fail with ENOSYS. Some functions are actually named
11862 + something starting with __ and the normal name is an alias. */
11863 + #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
11866 +-malloc_set_state();
11867 ++char (*f) () = malloc_set_state;
11869 ++#ifdef __cplusplus
11875 +-if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11876 +- rm -rf conftest*
11877 +- eval "ac_cv_func_malloc_set_state=yes"
11879 +- echo "configure: failed program was:" >&5
11880 +- cat conftest.$ac_ext >&5
11881 +- rm -rf conftest*
11882 +- eval "ac_cv_func_malloc_set_state=no"
11887 +-if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
11888 +- echo "$ac_t""yes" 1>&6
11892 ++return f != malloc_set_state;
11897 ++rm -f conftest.$ac_objext conftest$ac_exeext
11898 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11899 ++ (eval $ac_link) 2>conftest.er1
11901 ++ grep -v '^ *+' conftest.er1 >conftest.err
11902 ++ rm -f conftest.er1
11903 ++ cat conftest.err >&5
11904 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 ++ (exit $ac_status); } &&
11906 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11907 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 ++ (eval $ac_try) 2>&5
11910 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 ++ (exit $ac_status); }; } &&
11912 ++ { ac_try='test -s conftest$ac_exeext'
11913 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 ++ (eval $ac_try) 2>&5
11916 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 ++ (exit $ac_status); }; }; then
11918 ++ ac_cv_func_malloc_set_state=yes
11920 ++ echo "$as_me: failed program was:" >&5
11921 ++sed 's/^/| /' conftest.$ac_ext >&5
11923 ++ac_cv_func_malloc_set_state=no
11925 ++rm -f conftest.err conftest.$ac_objext \
11926 ++ conftest$ac_exeext conftest.$ac_ext
11928 ++echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
11929 ++echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
11930 ++if test $ac_cv_func_malloc_set_state = yes; then
11933 +- echo "$ac_t""no" 1>&6
11934 +-doug_lea_malloc=no
11935 ++ doug_lea_malloc=no
11938 +-echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
11939 +-echo "configure:4010: checking whether __after_morecore_hook exists" >&5
11940 +-if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
11941 +- echo $ac_n "(cached) $ac_c" 1>&6
11943 +- cat > conftest.$ac_ext <<EOF
11944 +-#line 4015 "configure"
11945 +-#include "confdefs.h"
11946 ++echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
11947 ++echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
11948 ++if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
11949 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
11951 ++ cat >conftest.$ac_ext <<_ACEOF
11952 ++/* confdefs.h. */
11954 ++cat confdefs.h >>conftest.$ac_ext
11955 ++cat >>conftest.$ac_ext <<_ACEOF
11956 ++/* end confdefs.h. */
11957 + extern void (* __after_morecore_hook)();
11962 + __after_morecore_hook = 0
11965 +-if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11966 +- rm -rf conftest*
11971 ++rm -f conftest.$ac_objext conftest$ac_exeext
11972 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11973 ++ (eval $ac_link) 2>conftest.er1
11975 ++ grep -v '^ *+' conftest.er1 >conftest.err
11976 ++ rm -f conftest.er1
11977 ++ cat conftest.err >&5
11978 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 ++ (exit $ac_status); } &&
11980 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 ++ (eval $ac_try) 2>&5
11984 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 ++ (exit $ac_status); }; } &&
11986 ++ { ac_try='test -s conftest$ac_exeext'
11987 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 ++ (eval $ac_try) 2>&5
11990 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 ++ (exit $ac_status); }; }; then
11992 + emacs_cv_var___after_morecore_hook=yes
11994 +- echo "configure: failed program was:" >&5
11995 +- cat conftest.$ac_ext >&5
11996 +- rm -rf conftest*
11997 +- emacs_cv_var___after_morecore_hook=no
11998 ++ echo "$as_me: failed program was:" >&5
11999 ++sed 's/^/| /' conftest.$ac_ext >&5
12001 ++emacs_cv_var___after_morecore_hook=no
12004 ++rm -f conftest.err conftest.$ac_objext \
12005 ++ conftest$ac_exeext conftest.$ac_ext
12008 +-echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
12009 ++echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
12010 ++echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
12011 + if test $emacs_cv_var___after_morecore_hook = no; then
12012 + doug_lea_malloc=no
12014 +@@ -4044,9 +7116,9 @@
12015 + GNU_MALLOC_reason="
12016 + (Using Doug Lea's new malloc from the GNU C Library.)"
12018 +- cat >> confdefs.h <<\EOF
12019 ++ cat >>confdefs.h <<\_ACEOF
12020 + #define DOUG_LEA_MALLOC 1
12026 +@@ -4055,112 +7127,275 @@
12030 +-for ac_hdr in stdlib.h unistd.h sys/stat.h
12033 ++for ac_header in stdlib.h unistd.h
12035 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12036 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12037 +-echo "configure:4063: checking for $ac_hdr" >&5
12038 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12039 +- echo $ac_n "(cached) $ac_c" 1>&6
12041 +- cat > conftest.$ac_ext <<EOF
12042 +-#line 4068 "configure"
12043 +-#include "confdefs.h"
12044 +-#include <$ac_hdr>
12046 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12047 +-{ (eval echo configure:4073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12048 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12049 +-if test -z "$ac_err"; then
12050 +- rm -rf conftest*
12051 +- eval "ac_cv_header_$ac_safe=yes"
12053 +- echo "$ac_err" >&5
12054 +- echo "configure: failed program was:" >&5
12055 +- cat conftest.$ac_ext >&5
12056 +- rm -rf conftest*
12057 +- eval "ac_cv_header_$ac_safe=no"
12060 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12061 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
12062 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
12063 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12064 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
12065 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
12067 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12068 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12070 ++ # Is the header compilable?
12071 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
12072 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12073 ++cat >conftest.$ac_ext <<_ACEOF
12074 ++/* confdefs.h. */
12076 ++cat confdefs.h >>conftest.$ac_ext
12077 ++cat >>conftest.$ac_ext <<_ACEOF
12078 ++/* end confdefs.h. */
12079 ++$ac_includes_default
12080 ++#include <$ac_header>
12082 ++rm -f conftest.$ac_objext
12083 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084 ++ (eval $ac_compile) 2>conftest.er1
12086 ++ grep -v '^ *+' conftest.er1 >conftest.err
12087 ++ rm -f conftest.er1
12088 ++ cat conftest.err >&5
12089 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 ++ (exit $ac_status); } &&
12091 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12092 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 ++ (eval $ac_try) 2>&5
12095 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 ++ (exit $ac_status); }; } &&
12097 ++ { ac_try='test -s conftest.$ac_objext'
12098 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 ++ (eval $ac_try) 2>&5
12101 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 ++ (exit $ac_status); }; }; then
12103 ++ ac_header_compiler=yes
12105 ++ echo "$as_me: failed program was:" >&5
12106 ++sed 's/^/| /' conftest.$ac_ext >&5
12108 ++ac_header_compiler=no
12110 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12111 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12112 ++echo "${ECHO_T}$ac_header_compiler" >&6
12114 ++# Is the header present?
12115 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
12116 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12117 ++cat >conftest.$ac_ext <<_ACEOF
12118 ++/* confdefs.h. */
12120 ++cat confdefs.h >>conftest.$ac_ext
12121 ++cat >>conftest.$ac_ext <<_ACEOF
12122 ++/* end confdefs.h. */
12123 ++#include <$ac_header>
12125 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12126 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12128 ++ grep -v '^ *+' conftest.er1 >conftest.err
12129 ++ rm -f conftest.er1
12130 ++ cat conftest.err >&5
12131 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 ++ (exit $ac_status); } >/dev/null; then
12133 ++ if test -s conftest.err; then
12134 ++ ac_cpp_err=$ac_c_preproc_warn_flag
12135 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12142 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12143 +- echo "$ac_t""yes" 1>&6
12144 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12145 +- cat >> confdefs.h <<EOF
12146 +-#define $ac_tr_hdr 1
12149 ++if test -z "$ac_cpp_err"; then
12150 ++ ac_header_preproc=yes
12152 +- echo "$ac_t""no" 1>&6
12153 ++ echo "$as_me: failed program was:" >&5
12154 ++sed 's/^/| /' conftest.$ac_ext >&5
12156 ++ ac_header_preproc=no
12158 ++rm -f conftest.err conftest.$ac_ext
12159 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12160 ++echo "${ECHO_T}$ac_header_preproc" >&6
12162 ++# So? What about this header?
12163 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12165 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12166 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12167 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12168 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12169 ++ ac_header_preproc=yes
12172 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12173 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12174 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12175 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12176 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12177 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12178 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12179 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12180 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12181 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12182 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12183 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12186 ++## ------------------------------------------ ##
12187 ++## Report this to the AC_PACKAGE_NAME lists. ##
12188 ++## ------------------------------------------ ##
12191 ++ sed "s/^/$as_me: WARNING: /" >&2
12194 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
12195 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12196 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
12197 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
12199 ++ eval "$as_ac_Header=\$ac_header_preproc"
12201 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12202 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12205 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
12206 ++ cat >>confdefs.h <<_ACEOF
12207 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12215 + for ac_func in getpagesize
12217 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12218 +-echo "configure:4102: checking for $ac_func" >&5
12219 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12220 +- echo $ac_n "(cached) $ac_c" 1>&6
12222 +- cat > conftest.$ac_ext <<EOF
12223 +-#line 4107 "configure"
12224 +-#include "confdefs.h"
12225 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12226 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
12227 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12228 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
12229 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
12231 ++ cat >conftest.$ac_ext <<_ACEOF
12232 ++/* confdefs.h. */
12234 ++cat confdefs.h >>conftest.$ac_ext
12235 ++cat >>conftest.$ac_ext <<_ACEOF
12236 ++/* end confdefs.h. */
12237 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12238 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
12239 ++#define $ac_func innocuous_$ac_func
12241 + /* System header to define __stub macros and hopefully few prototypes,
12242 +- which can conflict with char $ac_func(); below. */
12243 +-#include <assert.h>
12244 +-/* Override any gcc2 internal prototype to avoid an error. */
12245 +-/* We use char because int might match the return type of a gcc2
12246 +- builtin and then its argument prototype would still apply. */
12248 ++ which can conflict with char $ac_func (); below.
12249 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12250 ++ <limits.h> exists even on freestanding compilers. */
12253 ++# include <limits.h>
12255 ++# include <assert.h>
12261 ++/* Override any gcc2 internal prototype to avoid an error. */
12262 ++#ifdef __cplusplus
12266 ++/* We use char because int might match the return type of a gcc2
12267 ++ builtin and then its argument prototype would still apply. */
12268 ++char $ac_func ();
12269 + /* The GNU C library defines this for functions which it implements
12270 + to always fail with ENOSYS. Some functions are actually named
12271 + something starting with __ and the normal name is an alias. */
12272 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12276 ++char (*f) () = $ac_func;
12278 ++#ifdef __cplusplus
12284 +-if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12285 +- rm -rf conftest*
12286 +- eval "ac_cv_func_$ac_func=yes"
12288 +- echo "configure: failed program was:" >&5
12289 +- cat conftest.$ac_ext >&5
12290 +- rm -rf conftest*
12291 +- eval "ac_cv_func_$ac_func=no"
12298 ++return f != $ac_func;
12303 ++rm -f conftest.$ac_objext conftest$ac_exeext
12304 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305 ++ (eval $ac_link) 2>conftest.er1
12307 ++ grep -v '^ *+' conftest.er1 >conftest.err
12308 ++ rm -f conftest.er1
12309 ++ cat conftest.err >&5
12310 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 ++ (exit $ac_status); } &&
12312 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 ++ (eval $ac_try) 2>&5
12316 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 ++ (exit $ac_status); }; } &&
12318 ++ { ac_try='test -s conftest$ac_exeext'
12319 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 ++ (eval $ac_try) 2>&5
12322 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 ++ (exit $ac_status); }; }; then
12324 ++ eval "$as_ac_var=yes"
12326 ++ echo "$as_me: failed program was:" >&5
12327 ++sed 's/^/| /' conftest.$ac_ext >&5
12329 ++eval "$as_ac_var=no"
12331 ++rm -f conftest.err conftest.$ac_objext \
12332 ++ conftest$ac_exeext conftest.$ac_ext
12334 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12335 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12336 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
12337 ++ cat >>confdefs.h <<_ACEOF
12338 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12341 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12342 +- echo "$ac_t""yes" 1>&6
12343 +- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12344 +- cat >> confdefs.h <<EOF
12345 +-#define $ac_tr_func 1
12349 +- echo "$ac_t""no" 1>&6
12353 +-echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12354 +-echo "configure:4155: checking for working mmap" >&5
12355 +-if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
12356 +- echo $ac_n "(cached) $ac_c" 1>&6
12357 ++echo "$as_me:$LINENO: checking for working mmap" >&5
12358 ++echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12359 ++if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12360 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
12362 + if test "$cross_compiling" = yes; then
12363 + ac_cv_func_mmap_fixed_mapped=no
12365 +- cat > conftest.$ac_ext <<EOF
12366 +-#line 4163 "configure"
12367 +-#include "confdefs.h"
12368 ++ cat >conftest.$ac_ext <<_ACEOF
12369 ++/* confdefs.h. */
12371 ++cat confdefs.h >>conftest.$ac_ext
12372 ++cat >>conftest.$ac_ext <<_ACEOF
12373 ++/* end confdefs.h. */
12374 ++$ac_includes_default
12375 ++/* malloc might have been renamed as rpl_malloc. */
12378 + /* Thanks to Mike Haertel and Jim Avera for this test.
12379 + Here is a matrix of mmap possibilities:
12380 + mmap private not fixed
12381 +@@ -4176,27 +7411,19 @@
12382 + VM page cache was not coherent with the file system buffer cache
12383 + like early versions of FreeBSD and possibly contemporary NetBSD.)
12384 + For shared mappings, we should conversely verify that changes get
12385 +- propogated back to all the places they're supposed to be.
12386 ++ propagated back to all the places they're supposed to be.
12388 + Grep wants private fixed already mapped.
12389 + The main things grep needs to know about mmap are:
12390 + * does it exist and is it safe to write into the mmap'd area
12391 + * how to use it (BSD variants) */
12392 +-#include <sys/types.h>
12394 + #include <fcntl.h>
12395 + #include <sys/mman.h>
12397 +-#if STDC_HEADERS || HAVE_STDLIB_H
12398 +-# include <stdlib.h>
12400 ++#if !STDC_HEADERS && !HAVE_STDLIB_H
12403 +-#if HAVE_UNISTD_H
12404 +-# include <unistd.h>
12406 +-#if HAVE_SYS_STAT_H
12407 +-# include <sys/stat.h>
12410 + /* This mess was copied from the GNU getpagesize.h. */
12411 + #if !HAVE_GETPAGESIZE
12412 +@@ -4251,7 +7478,7 @@
12413 + for (i = 0; i < pagesize; ++i)
12414 + *(data + i) = rand ();
12416 +- fd = creat ("conftestmmap", 0600);
12417 ++ fd = creat ("conftest.mmap", 0600);
12420 + if (write (fd, data, pagesize) != pagesize)
12421 +@@ -4261,15 +7488,15 @@
12422 + /* Next, try to mmap the file at a fixed address which already has
12423 + something else allocated at it. If we can, also make sure that
12424 + we see the same garbage. */
12425 +- fd = open ("conftestmmap", O_RDWR);
12426 ++ fd = open ("conftest.mmap", O_RDWR);
12429 + data2 = (char *) malloc (2 * pagesize);
12432 +- data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12433 ++ data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12434 + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12435 +- MAP_PRIVATE | MAP_FIXED, fd, 0L))
12436 ++ MAP_PRIVATE | MAP_FIXED, fd, 0L))
12438 + for (i = 0; i < pagesize; ++i)
12439 + if (*(data + i) != *(data2 + i))
12440 +@@ -4289,31 +7516,42 @@
12441 + if (*(data + i) != *(data3 + i))
12444 +- unlink ("conftestmmap");
12448 +-if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12451 ++rm -f conftest$ac_exeext
12452 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 ++ (eval $ac_link) 2>&5
12455 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12457 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 ++ (eval $ac_try) 2>&5
12460 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 ++ (exit $ac_status); }; }; then
12462 + ac_cv_func_mmap_fixed_mapped=yes
12464 +- echo "configure: failed program was:" >&5
12465 +- cat conftest.$ac_ext >&5
12466 +- rm -fr conftest*
12467 +- ac_cv_func_mmap_fixed_mapped=no
12468 ++ echo "$as_me: program exited with status $ac_status" >&5
12469 ++echo "$as_me: failed program was:" >&5
12470 ++sed 's/^/| /' conftest.$ac_ext >&5
12472 ++( exit $ac_status )
12473 ++ac_cv_func_mmap_fixed_mapped=no
12476 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12481 +-echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
12482 ++echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12483 ++echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12484 + if test $ac_cv_func_mmap_fixed_mapped = yes; then
12485 +- cat >> confdefs.h <<\EOF
12487 ++cat >>confdefs.h <<\_ACEOF
12488 + #define HAVE_MMAP 1
12493 ++rm -f conftest.mmap
12495 + if test $use_mmap_for_buffers = yes; then
12497 +@@ -4321,185 +7559,291 @@
12499 + LIBS="$libsrc_libs $LIBS"
12501 +-echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12502 +-echo "configure:4326: checking for dnet_ntoa in -ldnet" >&5
12503 +-ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12504 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12505 +- echo $ac_n "(cached) $ac_c" 1>&6
12507 ++echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
12508 ++echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
12509 ++if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
12510 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
12512 +- ac_save_LIBS="$LIBS"
12513 ++ ac_check_lib_save_LIBS=$LIBS
12514 + LIBS="-ldnet $LIBS"
12515 +-cat > conftest.$ac_ext <<EOF
12516 +-#line 4334 "configure"
12517 +-#include "confdefs.h"
12518 +-/* Override any gcc2 internal prototype to avoid an error. */
12519 +-/* We use char because int might match the return type of a gcc2
12520 +- builtin and then its argument prototype would still apply. */
12521 +-char dnet_ntoa();
12527 +-if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12528 +- rm -rf conftest*
12529 +- eval "ac_cv_lib_$ac_lib_var=yes"
12531 +- echo "configure: failed program was:" >&5
12532 +- cat conftest.$ac_ext >&5
12533 +- rm -rf conftest*
12534 +- eval "ac_cv_lib_$ac_lib_var=no"
12537 +-LIBS="$ac_save_LIBS"
12538 ++cat >conftest.$ac_ext <<_ACEOF
12539 ++/* confdefs.h. */
12541 ++cat confdefs.h >>conftest.$ac_ext
12542 ++cat >>conftest.$ac_ext <<_ACEOF
12543 ++/* end confdefs.h. */
12546 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12547 +- echo "$ac_t""yes" 1>&6
12548 +- ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12549 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12550 +- cat >> confdefs.h <<EOF
12551 +-#define $ac_tr_lib 1
12553 ++/* Override any gcc2 internal prototype to avoid an error. */
12554 ++#ifdef __cplusplus
12557 ++/* We use char because int might match the return type of a gcc2
12558 ++ builtin and then its argument prototype would still apply. */
12559 ++char dnet_ntoa ();
12568 ++rm -f conftest.$ac_objext conftest$ac_exeext
12569 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12570 ++ (eval $ac_link) 2>conftest.er1
12572 ++ grep -v '^ *+' conftest.er1 >conftest.err
12573 ++ rm -f conftest.er1
12574 ++ cat conftest.err >&5
12575 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 ++ (exit $ac_status); } &&
12577 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12578 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 ++ (eval $ac_try) 2>&5
12581 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 ++ (exit $ac_status); }; } &&
12583 ++ { ac_try='test -s conftest$ac_exeext'
12584 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 ++ (eval $ac_try) 2>&5
12587 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 ++ (exit $ac_status); }; }; then
12589 ++ ac_cv_lib_dnet_dnet_ntoa=yes
12591 ++ echo "$as_me: failed program was:" >&5
12592 ++sed 's/^/| /' conftest.$ac_ext >&5
12594 ++ac_cv_lib_dnet_dnet_ntoa=no
12596 ++rm -f conftest.err conftest.$ac_objext \
12597 ++ conftest$ac_exeext conftest.$ac_ext
12598 ++LIBS=$ac_check_lib_save_LIBS
12600 ++echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12601 ++echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
12602 ++if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
12603 ++ cat >>confdefs.h <<_ACEOF
12604 ++#define HAVE_LIBDNET 1
12607 + LIBS="-ldnet $LIBS"
12610 +- echo "$ac_t""no" 1>&6
12614 +-echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
12615 +-echo "configure:4374: checking for main in -lXbsd" >&5
12616 +-ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
12617 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12618 +- echo $ac_n "(cached) $ac_c" 1>&6
12619 ++echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
12620 ++echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
12621 ++if test "${ac_cv_lib_Xbsd_main+set}" = set; then
12622 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
12624 +- ac_save_LIBS="$LIBS"
12625 ++ ac_check_lib_save_LIBS=$LIBS
12626 + LIBS="-lXbsd $LIBS"
12627 +-cat > conftest.$ac_ext <<EOF
12628 +-#line 4382 "configure"
12629 +-#include "confdefs.h"
12630 ++cat >conftest.$ac_ext <<_ACEOF
12631 ++/* confdefs.h. */
12633 ++cat confdefs.h >>conftest.$ac_ext
12634 ++cat >>conftest.$ac_ext <<_ACEOF
12635 ++/* end confdefs.h. */
12641 +-if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12642 +- rm -rf conftest*
12643 +- eval "ac_cv_lib_$ac_lib_var=yes"
12645 +- echo "configure: failed program was:" >&5
12646 +- cat conftest.$ac_ext >&5
12647 +- rm -rf conftest*
12648 +- eval "ac_cv_lib_$ac_lib_var=no"
12651 +-LIBS="$ac_save_LIBS"
12654 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12655 +- echo "$ac_t""yes" 1>&6
12664 ++rm -f conftest.$ac_objext conftest$ac_exeext
12665 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 ++ (eval $ac_link) 2>conftest.er1
12668 ++ grep -v '^ *+' conftest.er1 >conftest.err
12669 ++ rm -f conftest.er1
12670 ++ cat conftest.err >&5
12671 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 ++ (exit $ac_status); } &&
12673 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12674 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 ++ (eval $ac_try) 2>&5
12677 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 ++ (exit $ac_status); }; } &&
12679 ++ { ac_try='test -s conftest$ac_exeext'
12680 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 ++ (eval $ac_try) 2>&5
12683 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 ++ (exit $ac_status); }; }; then
12685 ++ ac_cv_lib_Xbsd_main=yes
12687 ++ echo "$as_me: failed program was:" >&5
12688 ++sed 's/^/| /' conftest.$ac_ext >&5
12690 ++ac_cv_lib_Xbsd_main=no
12692 ++rm -f conftest.err conftest.$ac_objext \
12693 ++ conftest$ac_exeext conftest.$ac_ext
12694 ++LIBS=$ac_check_lib_save_LIBS
12696 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
12697 ++echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
12698 ++if test $ac_cv_lib_Xbsd_main = yes; then
12699 + LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
12701 +- echo "$ac_t""no" 1>&6
12705 +-echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
12706 +-echo "configure:4411: checking for cma_open in -lpthreads" >&5
12707 +-ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
12708 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12709 +- echo $ac_n "(cached) $ac_c" 1>&6
12711 ++echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
12712 ++echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
12713 ++if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
12714 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
12716 +- ac_save_LIBS="$LIBS"
12717 ++ ac_check_lib_save_LIBS=$LIBS
12718 + LIBS="-lpthreads $LIBS"
12719 +-cat > conftest.$ac_ext <<EOF
12720 +-#line 4419 "configure"
12721 +-#include "confdefs.h"
12722 +-/* Override any gcc2 internal prototype to avoid an error. */
12723 +-/* We use char because int might match the return type of a gcc2
12724 +- builtin and then its argument prototype would still apply. */
12731 +-if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12732 +- rm -rf conftest*
12733 +- eval "ac_cv_lib_$ac_lib_var=yes"
12735 +- echo "configure: failed program was:" >&5
12736 +- cat conftest.$ac_ext >&5
12737 +- rm -rf conftest*
12738 +- eval "ac_cv_lib_$ac_lib_var=no"
12741 +-LIBS="$ac_save_LIBS"
12742 ++cat >conftest.$ac_ext <<_ACEOF
12743 ++/* confdefs.h. */
12745 ++cat confdefs.h >>conftest.$ac_ext
12746 ++cat >>conftest.$ac_ext <<_ACEOF
12747 ++/* end confdefs.h. */
12750 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12751 +- echo "$ac_t""yes" 1>&6
12752 +- ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12753 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12754 +- cat >> confdefs.h <<EOF
12755 +-#define $ac_tr_lib 1
12757 ++/* Override any gcc2 internal prototype to avoid an error. */
12758 ++#ifdef __cplusplus
12761 ++/* We use char because int might match the return type of a gcc2
12762 ++ builtin and then its argument prototype would still apply. */
12763 ++char cma_open ();
12772 ++rm -f conftest.$ac_objext conftest$ac_exeext
12773 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12774 ++ (eval $ac_link) 2>conftest.er1
12776 ++ grep -v '^ *+' conftest.er1 >conftest.err
12777 ++ rm -f conftest.er1
12778 ++ cat conftest.err >&5
12779 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 ++ (exit $ac_status); } &&
12781 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 ++ (eval $ac_try) 2>&5
12785 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 ++ (exit $ac_status); }; } &&
12787 ++ { ac_try='test -s conftest$ac_exeext'
12788 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 ++ (eval $ac_try) 2>&5
12791 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 ++ (exit $ac_status); }; }; then
12793 ++ ac_cv_lib_pthreads_cma_open=yes
12795 ++ echo "$as_me: failed program was:" >&5
12796 ++sed 's/^/| /' conftest.$ac_ext >&5
12798 ++ac_cv_lib_pthreads_cma_open=no
12800 ++rm -f conftest.err conftest.$ac_objext \
12801 ++ conftest$ac_exeext conftest.$ac_ext
12802 ++LIBS=$ac_check_lib_save_LIBS
12804 ++echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
12805 ++echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
12806 ++if test $ac_cv_lib_pthreads_cma_open = yes; then
12807 ++ cat >>confdefs.h <<_ACEOF
12808 ++#define HAVE_LIBPTHREADS 1
12811 + LIBS="-lpthreads $LIBS"
12814 +- echo "$ac_t""no" 1>&6
12818 +-echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
12819 +-echo "configure:4459: checking for XFree86 in /usr/X386" >&5
12820 ++echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
12821 ++echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
12822 + if test -d /usr/X386/include; then
12823 + HAVE_XFREE386=yes
12824 + : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
12828 +-echo "$ac_t""$HAVE_XFREE386" 1>&6
12829 ++echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
12830 ++echo "${ECHO_T}$HAVE_XFREE386" >&6
12833 + case ${host_os} in
12835 +- echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
12836 +-echo "configure:4472: checking for -bbigtoc option" >&5
12837 +-if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
12838 +- echo $ac_n "(cached) $ac_c" 1>&6
12839 ++ echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
12840 ++echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
12841 ++if test "${gdb_cv_bigtoc+set}" = set; then
12842 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
12847 + yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12848 + *) gdb_cv_bigtoc=-bbigtoc ;;
12851 + LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12852 +- cat > conftest.$ac_ext <<EOF
12853 +-#line 4484 "configure"
12854 +-#include "confdefs.h"
12855 ++ cat >conftest.$ac_ext <<_ACEOF
12856 ++/* confdefs.h. */
12858 ++cat confdefs.h >>conftest.$ac_ext
12859 ++cat >>conftest.$ac_ext <<_ACEOF
12860 ++/* end confdefs.h. */
12869 +-if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12874 ++rm -f conftest.$ac_objext conftest$ac_exeext
12875 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 ++ (eval $ac_link) 2>conftest.er1
12878 ++ grep -v '^ *+' conftest.er1 >conftest.err
12879 ++ rm -f conftest.er1
12880 ++ cat conftest.err >&5
12881 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 ++ (exit $ac_status); } &&
12883 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12884 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 ++ (eval $ac_try) 2>&5
12887 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 ++ (exit $ac_status); }; } &&
12889 ++ { ac_try='test -s conftest$ac_exeext'
12890 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 ++ (eval $ac_try) 2>&5
12893 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 ++ (exit $ac_status); }; }; then
12897 +- echo "configure: failed program was:" >&5
12898 +- cat conftest.$ac_ext >&5
12899 +- rm -rf conftest*
12904 ++ echo "$as_me: failed program was:" >&5
12905 ++sed 's/^/| /' conftest.$ac_ext >&5
12909 ++rm -f conftest.err conftest.$ac_objext \
12910 ++ conftest$ac_exeext conftest.$ac_ext
12912 +-echo "$ac_t""$gdb_cv_bigtoc" 1>&6
12914 ++echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
12915 ++echo "${ECHO_T}$gdb_cv_bigtoc" >&6
12919 +@@ -4525,26 +7869,53 @@
12922 + if test "${opsys}" = "gnu-linux"; then
12923 +- echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
12924 +-echo "configure:4530: checking whether X on GNU/Linux needs -b to link" >&5
12925 +- cat > conftest.$ac_ext <<EOF
12926 +-#line 4532 "configure"
12927 +-#include "confdefs.h"
12928 ++ echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
12929 ++echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
12930 ++ cat >conftest.$ac_ext <<_ACEOF
12931 ++/* confdefs.h. */
12933 ++cat confdefs.h >>conftest.$ac_ext
12934 ++cat >>conftest.$ac_ext <<_ACEOF
12935 ++/* end confdefs.h. */
12941 + XOpenDisplay ("foo");
12944 +-if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12945 +- rm -rf conftest*
12950 ++rm -f conftest.$ac_objext conftest$ac_exeext
12951 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952 ++ (eval $ac_link) 2>conftest.er1
12954 ++ grep -v '^ *+' conftest.er1 >conftest.err
12955 ++ rm -f conftest.er1
12956 ++ cat conftest.err >&5
12957 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 ++ (exit $ac_status); } &&
12959 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12960 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 ++ (eval $ac_try) 2>&5
12963 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 ++ (exit $ac_status); }; } &&
12965 ++ { ac_try='test -s conftest$ac_exeext'
12966 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 ++ (eval $ac_try) 2>&5
12969 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 ++ (exit $ac_status); }; }; then
12971 + xlinux_first_failure=no
12973 +- echo "configure: failed program was:" >&5
12974 +- cat conftest.$ac_ext >&5
12975 +- rm -rf conftest*
12976 +- xlinux_first_failure=yes
12977 ++ echo "$as_me: failed program was:" >&5
12978 ++sed 's/^/| /' conftest.$ac_ext >&5
12980 ++xlinux_first_failure=yes
12983 ++rm -f conftest.err conftest.$ac_objext \
12984 ++ conftest$ac_exeext conftest.$ac_ext
12985 + if test "${xlinux_first_failure}" = "yes"; then
12986 + OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
12987 + OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
12988 +@@ -4554,24 +7925,51 @@
12989 + C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
12990 + CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
12991 + LIBS="$LIBS -b i486-linuxaout"
12992 +- cat > conftest.$ac_ext <<EOF
12993 +-#line 4559 "configure"
12994 +-#include "confdefs.h"
12995 ++ cat >conftest.$ac_ext <<_ACEOF
12996 ++/* confdefs.h. */
12998 ++cat confdefs.h >>conftest.$ac_ext
12999 ++cat >>conftest.$ac_ext <<_ACEOF
13000 ++/* end confdefs.h. */
13006 + XOpenDisplay ("foo");
13009 +-if { (eval echo configure:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13010 +- rm -rf conftest*
13015 ++rm -f conftest.$ac_objext conftest$ac_exeext
13016 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 ++ (eval $ac_link) 2>conftest.er1
13019 ++ grep -v '^ *+' conftest.er1 >conftest.err
13020 ++ rm -f conftest.er1
13021 ++ cat conftest.err >&5
13022 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 ++ (exit $ac_status); } &&
13024 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13025 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 ++ (eval $ac_try) 2>&5
13028 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 ++ (exit $ac_status); }; } &&
13030 ++ { ac_try='test -s conftest$ac_exeext'
13031 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 ++ (eval $ac_try) 2>&5
13034 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 ++ (exit $ac_status); }; }; then
13036 + xlinux_second_failure=no
13038 +- echo "configure: failed program was:" >&5
13039 +- cat conftest.$ac_ext >&5
13040 +- rm -rf conftest*
13041 +- xlinux_second_failure=yes
13042 ++ echo "$as_me: failed program was:" >&5
13043 ++sed 's/^/| /' conftest.$ac_ext >&5
13045 ++xlinux_second_failure=yes
13048 ++rm -f conftest.err conftest.$ac_objext \
13049 ++ conftest$ac_exeext conftest.$ac_ext
13050 + if test "${xlinux_second_failure}" = "yes"; then
13051 + # If we get the same failure with -b, there is no use adding -b.
13052 + # So take it out. This plays safe.
13053 +@@ -4579,220 +7977,387 @@
13054 + C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
13055 + CPPFLAGS="$OLD_CPPFLAGS"
13057 +- echo "$ac_t""no" 1>&6
13058 ++ echo "$as_me:$LINENO: result: no" >&5
13059 ++echo "${ECHO_T}no" >&6
13061 +- echo "$ac_t""yes" 1>&6
13062 ++ echo "$as_me:$LINENO: result: yes" >&5
13063 ++echo "${ECHO_T}yes" >&6
13066 +- echo "$ac_t""no" 1>&6
13067 ++ echo "$as_me:$LINENO: result: no" >&5
13068 ++echo "${ECHO_T}no" >&6
13072 + # Reportedly, some broken Solaris systems have XKBlib.h but are missing
13073 + # header files included from there.
13074 +- echo $ac_n "checking for Xkb""... $ac_c" 1>&6
13075 +-echo "configure:4595: checking for Xkb" >&5
13076 +- cat > conftest.$ac_ext <<EOF
13077 +-#line 4597 "configure"
13078 +-#include "confdefs.h"
13079 ++ echo "$as_me:$LINENO: checking for Xkb" >&5
13080 ++echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
13081 ++ cat >conftest.$ac_ext <<_ACEOF
13082 ++/* confdefs.h. */
13084 ++cat confdefs.h >>conftest.$ac_ext
13085 ++cat >>conftest.$ac_ext <<_ACEOF
13086 ++/* end confdefs.h. */
13087 + #include <X11/Xlib.h>
13088 + #include <X11/XKBlib.h>
13093 + XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
13096 +-if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13097 +- rm -rf conftest*
13102 ++rm -f conftest.$ac_objext conftest$ac_exeext
13103 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13104 ++ (eval $ac_link) 2>conftest.er1
13106 ++ grep -v '^ *+' conftest.er1 >conftest.err
13107 ++ rm -f conftest.er1
13108 ++ cat conftest.err >&5
13109 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 ++ (exit $ac_status); } &&
13111 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13112 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 ++ (eval $ac_try) 2>&5
13115 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 ++ (exit $ac_status); }; } &&
13117 ++ { ac_try='test -s conftest$ac_exeext'
13118 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 ++ (eval $ac_try) 2>&5
13121 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 ++ (exit $ac_status); }; }; then
13125 +- echo "configure: failed program was:" >&5
13126 +- cat conftest.$ac_ext >&5
13127 +- rm -rf conftest*
13129 ++ echo "$as_me: failed program was:" >&5
13130 ++sed 's/^/| /' conftest.$ac_ext >&5
13135 +- echo "$ac_t""$emacs_xkb" 1>&6
13136 ++rm -f conftest.err conftest.$ac_objext \
13137 ++ conftest$ac_exeext conftest.$ac_ext
13138 ++ echo "$as_me:$LINENO: result: $emacs_xkb" >&5
13139 ++echo "${ECHO_T}$emacs_xkb" >&6
13140 + if test $emacs_xkb = yes; then
13141 +- cat >> confdefs.h <<\EOF
13142 ++ cat >>confdefs.h <<\_ACEOF
13143 + #define HAVE_XKBGETKEYBOARD 1
13149 +- for ac_func in XrmSetDatabase XScreenResourceString \
13154 ++for ac_func in XrmSetDatabase XScreenResourceString \
13155 + XScreenNumberOfScreen XSetWMProtocols
13157 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13158 +-echo "configure:4627: checking for $ac_func" >&5
13159 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13160 +- echo $ac_n "(cached) $ac_c" 1>&6
13162 +- cat > conftest.$ac_ext <<EOF
13163 +-#line 4632 "configure"
13164 +-#include "confdefs.h"
13165 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13166 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
13167 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13168 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
13169 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
13171 ++ cat >conftest.$ac_ext <<_ACEOF
13172 ++/* confdefs.h. */
13174 ++cat confdefs.h >>conftest.$ac_ext
13175 ++cat >>conftest.$ac_ext <<_ACEOF
13176 ++/* end confdefs.h. */
13177 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13178 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
13179 ++#define $ac_func innocuous_$ac_func
13181 + /* System header to define __stub macros and hopefully few prototypes,
13182 +- which can conflict with char $ac_func(); below. */
13183 +-#include <assert.h>
13184 +-/* Override any gcc2 internal prototype to avoid an error. */
13185 +-/* We use char because int might match the return type of a gcc2
13186 +- builtin and then its argument prototype would still apply. */
13188 ++ which can conflict with char $ac_func (); below.
13189 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13190 ++ <limits.h> exists even on freestanding compilers. */
13193 ++# include <limits.h>
13195 ++# include <assert.h>
13201 ++/* Override any gcc2 internal prototype to avoid an error. */
13202 ++#ifdef __cplusplus
13206 ++/* We use char because int might match the return type of a gcc2
13207 ++ builtin and then its argument prototype would still apply. */
13208 ++char $ac_func ();
13209 + /* The GNU C library defines this for functions which it implements
13210 + to always fail with ENOSYS. Some functions are actually named
13211 + something starting with __ and the normal name is an alias. */
13212 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13216 ++char (*f) () = $ac_func;
13218 ++#ifdef __cplusplus
13224 +-if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13225 +- rm -rf conftest*
13226 +- eval "ac_cv_func_$ac_func=yes"
13228 +- echo "configure: failed program was:" >&5
13229 +- cat conftest.$ac_ext >&5
13230 +- rm -rf conftest*
13231 +- eval "ac_cv_func_$ac_func=no"
13238 ++return f != $ac_func;
13243 ++rm -f conftest.$ac_objext conftest$ac_exeext
13244 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13245 ++ (eval $ac_link) 2>conftest.er1
13247 ++ grep -v '^ *+' conftest.er1 >conftest.err
13248 ++ rm -f conftest.er1
13249 ++ cat conftest.err >&5
13250 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 ++ (exit $ac_status); } &&
13252 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13253 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 ++ (eval $ac_try) 2>&5
13256 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 ++ (exit $ac_status); }; } &&
13258 ++ { ac_try='test -s conftest$ac_exeext'
13259 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 ++ (eval $ac_try) 2>&5
13262 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 ++ (exit $ac_status); }; }; then
13264 ++ eval "$as_ac_var=yes"
13266 ++ echo "$as_me: failed program was:" >&5
13267 ++sed 's/^/| /' conftest.$ac_ext >&5
13269 ++eval "$as_ac_var=no"
13271 ++rm -f conftest.err conftest.$ac_objext \
13272 ++ conftest$ac_exeext conftest.$ac_ext
13274 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13275 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13276 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
13277 ++ cat >>confdefs.h <<_ACEOF
13278 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13281 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13282 +- echo "$ac_t""yes" 1>&6
13283 +- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13284 +- cat >> confdefs.h <<EOF
13285 +-#define $ac_tr_func 1
13289 +- echo "$ac_t""no" 1>&6
13295 + if test "${window_system}" = "x11"; then
13296 +- echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
13297 +-echo "configure:4683: checking X11 version 6" >&5
13298 +- if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
13299 +- echo $ac_n "(cached) $ac_c" 1>&6
13301 +- cat > conftest.$ac_ext <<EOF
13302 +-#line 4688 "configure"
13303 +-#include "confdefs.h"
13304 ++ echo "$as_me:$LINENO: checking X11 version 6" >&5
13305 ++echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
13306 ++ if test "${emacs_cv_x11_version_6+set}" = set; then
13307 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
13309 ++ cat >conftest.$ac_ext <<_ACEOF
13310 ++/* confdefs.h. */
13312 ++cat confdefs.h >>conftest.$ac_ext
13313 ++cat >>conftest.$ac_ext <<_ACEOF
13314 ++/* end confdefs.h. */
13315 + #include <X11/Xlib.h>
13320 + #if XlibSpecificationRelease < 6
13326 +-if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13327 +- rm -rf conftest*
13332 ++rm -f conftest.$ac_objext conftest$ac_exeext
13333 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13334 ++ (eval $ac_link) 2>conftest.er1
13336 ++ grep -v '^ *+' conftest.er1 >conftest.err
13337 ++ rm -f conftest.er1
13338 ++ cat conftest.err >&5
13339 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 ++ (exit $ac_status); } &&
13341 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13342 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343 ++ (eval $ac_try) 2>&5
13345 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 ++ (exit $ac_status); }; } &&
13347 ++ { ac_try='test -s conftest$ac_exeext'
13348 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 ++ (eval $ac_try) 2>&5
13351 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 ++ (exit $ac_status); }; }; then
13353 + emacs_cv_x11_version_6=yes
13355 +- echo "configure: failed program was:" >&5
13356 +- cat conftest.$ac_ext >&5
13357 +- rm -rf conftest*
13358 +- emacs_cv_x11_version_6=no
13359 ++ echo "$as_me: failed program was:" >&5
13360 ++sed 's/^/| /' conftest.$ac_ext >&5
13362 ++emacs_cv_x11_version_6=no
13365 ++rm -f conftest.err conftest.$ac_objext \
13366 ++ conftest$ac_exeext conftest.$ac_ext
13369 + if test $emacs_cv_x11_version_6 = yes; then
13370 +- echo "$ac_t""6 or newer" 1>&6
13371 +- cat >> confdefs.h <<\EOF
13372 ++ echo "$as_me:$LINENO: result: 6 or newer" >&5
13373 ++echo "${ECHO_T}6 or newer" >&6
13374 ++ cat >>confdefs.h <<\_ACEOF
13375 + #define HAVE_X11R6 1
13380 +- echo "$ac_t""before 6" 1>&6
13381 ++ echo "$as_me:$LINENO: result: before 6" >&5
13382 ++echo "${ECHO_T}before 6" >&6
13386 + if test "${window_system}" = "x11"; then
13387 +- echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
13388 +-echo "configure:4723: checking X11 version 5" >&5
13389 +- if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
13390 +- echo $ac_n "(cached) $ac_c" 1>&6
13392 +- cat > conftest.$ac_ext <<EOF
13393 +-#line 4728 "configure"
13394 +-#include "confdefs.h"
13395 ++ echo "$as_me:$LINENO: checking X11 version 5" >&5
13396 ++echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
13397 ++ if test "${emacs_cv_x11_version_5+set}" = set; then
13398 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
13400 ++ cat >conftest.$ac_ext <<_ACEOF
13401 ++/* confdefs.h. */
13403 ++cat confdefs.h >>conftest.$ac_ext
13404 ++cat >>conftest.$ac_ext <<_ACEOF
13405 ++/* end confdefs.h. */
13406 + #include <X11/Xlib.h>
13411 + #if XlibSpecificationRelease < 5
13417 +-if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13418 +- rm -rf conftest*
13423 ++rm -f conftest.$ac_objext conftest$ac_exeext
13424 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425 ++ (eval $ac_link) 2>conftest.er1
13427 ++ grep -v '^ *+' conftest.er1 >conftest.err
13428 ++ rm -f conftest.er1
13429 ++ cat conftest.err >&5
13430 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 ++ (exit $ac_status); } &&
13432 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13433 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 ++ (eval $ac_try) 2>&5
13436 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 ++ (exit $ac_status); }; } &&
13438 ++ { ac_try='test -s conftest$ac_exeext'
13439 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 ++ (eval $ac_try) 2>&5
13442 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 ++ (exit $ac_status); }; }; then
13444 + emacs_cv_x11_version_5=yes
13446 +- echo "configure: failed program was:" >&5
13447 +- cat conftest.$ac_ext >&5
13448 +- rm -rf conftest*
13449 +- emacs_cv_x11_version_5=no
13450 ++ echo "$as_me: failed program was:" >&5
13451 ++sed 's/^/| /' conftest.$ac_ext >&5
13453 ++emacs_cv_x11_version_5=no
13456 ++rm -f conftest.err conftest.$ac_objext \
13457 ++ conftest$ac_exeext conftest.$ac_ext
13460 + if test $emacs_cv_x11_version_5 = yes; then
13461 +- echo "$ac_t""5 or newer" 1>&6
13462 ++ echo "$as_me:$LINENO: result: 5 or newer" >&5
13463 ++echo "${ECHO_T}5 or newer" >&6
13465 +- cat >> confdefs.h <<\EOF
13466 ++ cat >>confdefs.h <<\_ACEOF
13467 + #define HAVE_X11R5 1
13473 +- echo "$ac_t""before 5" 1>&6
13474 ++ echo "$as_me:$LINENO: result: before 5" >&5
13475 ++echo "${ECHO_T}before 5" >&6
13479 + if test x"${USE_X_TOOLKIT}" = xmaybe; then
13480 + if test x"${HAVE_X11R5}" = xyes; then
13481 +- echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
13482 +-echo "configure:4766: checking X11 version 5 with Xaw" >&5
13483 +- if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
13484 +- echo $ac_n "(cached) $ac_c" 1>&6
13486 +- cat > conftest.$ac_ext <<EOF
13487 +-#line 4771 "configure"
13488 +-#include "confdefs.h"
13489 ++ echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
13490 ++echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
13491 ++ if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
13492 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
13494 ++ cat >conftest.$ac_ext <<_ACEOF
13495 ++/* confdefs.h. */
13497 ++cat confdefs.h >>conftest.$ac_ext
13498 ++cat >>conftest.$ac_ext <<_ACEOF
13499 ++/* end confdefs.h. */
13501 + #include <X11/Intrinsic.h>
13502 + #include <X11/Xaw/Simple.h>
13510 +-if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13511 +- rm -rf conftest*
13516 ++rm -f conftest.$ac_objext conftest$ac_exeext
13517 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13518 ++ (eval $ac_link) 2>conftest.er1
13520 ++ grep -v '^ *+' conftest.er1 >conftest.err
13521 ++ rm -f conftest.er1
13522 ++ cat conftest.err >&5
13523 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 ++ (exit $ac_status); } &&
13525 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13526 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 ++ (eval $ac_try) 2>&5
13529 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 ++ (exit $ac_status); }; } &&
13531 ++ { ac_try='test -s conftest$ac_exeext'
13532 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 ++ (eval $ac_try) 2>&5
13535 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 ++ (exit $ac_status); }; }; then
13537 + emacs_cv_x11_version_5_with_xaw=yes
13539 +- echo "configure: failed program was:" >&5
13540 +- cat conftest.$ac_ext >&5
13541 +- rm -rf conftest*
13542 +- emacs_cv_x11_version_5_with_xaw=no
13543 ++ echo "$as_me: failed program was:" >&5
13544 ++sed 's/^/| /' conftest.$ac_ext >&5
13546 ++emacs_cv_x11_version_5_with_xaw=no
13549 ++rm -f conftest.err conftest.$ac_objext \
13550 ++ conftest$ac_exeext conftest.$ac_ext
13553 + if test $emacs_cv_x11_version_5_with_xaw = yes; then
13554 +- echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
13555 ++ echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
13556 ++echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
13557 + USE_X_TOOLKIT=LUCID
13559 +- echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
13560 ++ echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
13561 ++echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
13562 + USE_X_TOOLKIT=none
13565 +@@ -4803,43 +8368,72 @@
13566 + X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13568 + if test "${USE_X_TOOLKIT}" != "none"; then
13569 +- echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
13570 +-echo "configure:4808: checking X11 toolkit version" >&5
13571 +- if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
13572 +- echo $ac_n "(cached) $ac_c" 1>&6
13574 +- cat > conftest.$ac_ext <<EOF
13575 +-#line 4813 "configure"
13576 +-#include "confdefs.h"
13577 ++ echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13578 ++echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
13579 ++ if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13580 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
13582 ++ cat >conftest.$ac_ext <<_ACEOF
13583 ++/* confdefs.h. */
13585 ++cat confdefs.h >>conftest.$ac_ext
13586 ++cat >>conftest.$ac_ext <<_ACEOF
13587 ++/* end confdefs.h. */
13588 + #include <X11/Intrinsic.h>
13593 + #if XtSpecificationRelease < 6
13599 +-if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13600 +- rm -rf conftest*
13605 ++rm -f conftest.$ac_objext conftest$ac_exeext
13606 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13607 ++ (eval $ac_link) 2>conftest.er1
13609 ++ grep -v '^ *+' conftest.er1 >conftest.err
13610 ++ rm -f conftest.er1
13611 ++ cat conftest.err >&5
13612 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 ++ (exit $ac_status); } &&
13614 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13615 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 ++ (eval $ac_try) 2>&5
13618 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 ++ (exit $ac_status); }; } &&
13620 ++ { ac_try='test -s conftest$ac_exeext'
13621 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 ++ (eval $ac_try) 2>&5
13624 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 ++ (exit $ac_status); }; }; then
13626 + emacs_cv_x11_toolkit_version_6=yes
13628 +- echo "configure: failed program was:" >&5
13629 +- cat conftest.$ac_ext >&5
13630 +- rm -rf conftest*
13631 +- emacs_cv_x11_toolkit_version_6=no
13632 ++ echo "$as_me: failed program was:" >&5
13633 ++sed 's/^/| /' conftest.$ac_ext >&5
13635 ++emacs_cv_x11_toolkit_version_6=no
13638 ++rm -f conftest.err conftest.$ac_objext \
13639 ++ conftest$ac_exeext conftest.$ac_ext
13642 + HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13643 + if test $emacs_cv_x11_toolkit_version_6 = yes; then
13644 +- echo "$ac_t""6 or newer" 1>&6
13645 +- cat >> confdefs.h <<\EOF
13646 ++ echo "$as_me:$LINENO: result: 6 or newer" >&5
13647 ++echo "${ECHO_T}6 or newer" >&6
13648 ++ cat >>confdefs.h <<\_ACEOF
13649 + #define HAVE_X11XTR6 1
13654 +- echo "$ac_t""before 6" 1>&6
13655 ++ echo "$as_me:$LINENO: result: before 6" >&5
13656 ++echo "${ECHO_T}before 6" >&6
13660 +@@ -4848,51 +8442,77 @@
13662 + LIBS="-lXt $LIBS"
13664 +- echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
13665 +-echo "configure:4853: checking for XmuConvertStandardSelection in -lXmu" >&5
13666 +-ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
13667 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13668 +- echo $ac_n "(cached) $ac_c" 1>&6
13670 ++echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13671 ++echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
13672 ++if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13673 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
13675 +- ac_save_LIBS="$LIBS"
13676 ++ ac_check_lib_save_LIBS=$LIBS
13677 + LIBS="-lXmu $LIBS"
13678 +-cat > conftest.$ac_ext <<EOF
13679 +-#line 4861 "configure"
13680 +-#include "confdefs.h"
13681 +-/* Override any gcc2 internal prototype to avoid an error. */
13682 +-/* We use char because int might match the return type of a gcc2
13683 +- builtin and then its argument prototype would still apply. */
13684 +-char XmuConvertStandardSelection();
13687 +-XmuConvertStandardSelection()
13690 +-if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13691 +- rm -rf conftest*
13692 +- eval "ac_cv_lib_$ac_lib_var=yes"
13694 +- echo "configure: failed program was:" >&5
13695 +- cat conftest.$ac_ext >&5
13696 +- rm -rf conftest*
13697 +- eval "ac_cv_lib_$ac_lib_var=no"
13700 +-LIBS="$ac_save_LIBS"
13701 ++cat >conftest.$ac_ext <<_ACEOF
13702 ++/* confdefs.h. */
13704 ++cat confdefs.h >>conftest.$ac_ext
13705 ++cat >>conftest.$ac_ext <<_ACEOF
13706 ++/* end confdefs.h. */
13709 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13710 +- echo "$ac_t""yes" 1>&6
13711 +- ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13712 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13713 +- cat >> confdefs.h <<EOF
13714 +-#define $ac_tr_lib 1
13716 ++/* Override any gcc2 internal prototype to avoid an error. */
13717 ++#ifdef __cplusplus
13720 ++/* We use char because int might match the return type of a gcc2
13721 ++ builtin and then its argument prototype would still apply. */
13722 ++char XmuConvertStandardSelection ();
13726 ++XmuConvertStandardSelection ();
13731 ++rm -f conftest.$ac_objext conftest$ac_exeext
13732 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13733 ++ (eval $ac_link) 2>conftest.er1
13735 ++ grep -v '^ *+' conftest.er1 >conftest.err
13736 ++ rm -f conftest.er1
13737 ++ cat conftest.err >&5
13738 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 ++ (exit $ac_status); } &&
13740 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13741 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 ++ (eval $ac_try) 2>&5
13744 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 ++ (exit $ac_status); }; } &&
13746 ++ { ac_try='test -s conftest$ac_exeext'
13747 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 ++ (eval $ac_try) 2>&5
13750 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 ++ (exit $ac_status); }; }; then
13752 ++ ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13754 ++ echo "$as_me: failed program was:" >&5
13755 ++sed 's/^/| /' conftest.$ac_ext >&5
13757 ++ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13759 ++rm -f conftest.err conftest.$ac_objext \
13760 ++ conftest$ac_exeext conftest.$ac_ext
13761 ++LIBS=$ac_check_lib_save_LIBS
13763 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13764 ++echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
13765 ++if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13766 ++ cat >>confdefs.h <<_ACEOF
13767 ++#define HAVE_LIBXMU 1
13770 + LIBS="-lXmu $LIBS"
13773 +- echo "$ac_t""no" 1>&6
13776 + test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13777 +@@ -4901,140 +8521,219 @@
13778 + # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13779 + if test "${HAVE_X11}" = "yes"; then
13780 + if test "${USE_X_TOOLKIT}" != "none"; then
13781 +- echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
13782 +-echo "configure:4906: checking for XShapeQueryExtension in -lXext" >&5
13783 +-ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
13784 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13785 +- echo $ac_n "(cached) $ac_c" 1>&6
13787 ++echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13788 ++echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
13789 ++if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13790 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
13792 +- ac_save_LIBS="$LIBS"
13793 ++ ac_check_lib_save_LIBS=$LIBS
13794 + LIBS="-lXext $LIBS"
13795 +-cat > conftest.$ac_ext <<EOF
13796 +-#line 4914 "configure"
13797 +-#include "confdefs.h"
13798 +-/* Override any gcc2 internal prototype to avoid an error. */
13799 +-/* We use char because int might match the return type of a gcc2
13800 +- builtin and then its argument prototype would still apply. */
13801 +-char XShapeQueryExtension();
13804 +-XShapeQueryExtension()
13807 +-if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13808 +- rm -rf conftest*
13809 +- eval "ac_cv_lib_$ac_lib_var=yes"
13811 +- echo "configure: failed program was:" >&5
13812 +- cat conftest.$ac_ext >&5
13813 +- rm -rf conftest*
13814 +- eval "ac_cv_lib_$ac_lib_var=no"
13817 +-LIBS="$ac_save_LIBS"
13818 ++cat >conftest.$ac_ext <<_ACEOF
13819 ++/* confdefs.h. */
13821 ++cat confdefs.h >>conftest.$ac_ext
13822 ++cat >>conftest.$ac_ext <<_ACEOF
13823 ++/* end confdefs.h. */
13826 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13827 +- echo "$ac_t""yes" 1>&6
13828 +- ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13829 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13830 +- cat >> confdefs.h <<EOF
13831 +-#define $ac_tr_lib 1
13833 ++/* Override any gcc2 internal prototype to avoid an error. */
13834 ++#ifdef __cplusplus
13837 ++/* We use char because int might match the return type of a gcc2
13838 ++ builtin and then its argument prototype would still apply. */
13839 ++char XShapeQueryExtension ();
13843 ++XShapeQueryExtension ();
13848 ++rm -f conftest.$ac_objext conftest$ac_exeext
13849 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13850 ++ (eval $ac_link) 2>conftest.er1
13852 ++ grep -v '^ *+' conftest.er1 >conftest.err
13853 ++ rm -f conftest.er1
13854 ++ cat conftest.err >&5
13855 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 ++ (exit $ac_status); } &&
13857 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13858 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 ++ (eval $ac_try) 2>&5
13861 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 ++ (exit $ac_status); }; } &&
13863 ++ { ac_try='test -s conftest$ac_exeext'
13864 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 ++ (eval $ac_try) 2>&5
13867 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 ++ (exit $ac_status); }; }; then
13869 ++ ac_cv_lib_Xext_XShapeQueryExtension=yes
13871 ++ echo "$as_me: failed program was:" >&5
13872 ++sed 's/^/| /' conftest.$ac_ext >&5
13874 ++ac_cv_lib_Xext_XShapeQueryExtension=no
13876 ++rm -f conftest.err conftest.$ac_objext \
13877 ++ conftest$ac_exeext conftest.$ac_ext
13878 ++LIBS=$ac_check_lib_save_LIBS
13880 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13881 ++echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
13882 ++if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13883 ++ cat >>confdefs.h <<_ACEOF
13884 ++#define HAVE_LIBXEXT 1
13887 + LIBS="-lXext $LIBS"
13890 +- echo "$ac_t""no" 1>&6
13896 + if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13897 +- echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
13898 +-echo "configure:4957: checking for Motif version 2.1" >&5
13899 +-if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
13900 +- echo $ac_n "(cached) $ac_c" 1>&6
13902 +- cat > conftest.$ac_ext <<EOF
13903 +-#line 4962 "configure"
13904 +-#include "confdefs.h"
13905 ++ echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13906 ++echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
13907 ++if test "${emacs_cv_motif_version_2_1+set}" = set; then
13908 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
13910 ++ cat >conftest.$ac_ext <<_ACEOF
13911 ++/* confdefs.h. */
13913 ++cat confdefs.h >>conftest.$ac_ext
13914 ++cat >>conftest.$ac_ext <<_ACEOF
13915 ++/* end confdefs.h. */
13916 + #include <Xm/Xm.h>
13921 + #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13924 + Motif version prior to 2.1.
13928 +-if { (eval echo configure:4973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13929 +- rm -rf conftest*
13934 ++rm -f conftest.$ac_objext
13935 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 ++ (eval $ac_compile) 2>conftest.er1
13938 ++ grep -v '^ *+' conftest.er1 >conftest.err
13939 ++ rm -f conftest.er1
13940 ++ cat conftest.err >&5
13941 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 ++ (exit $ac_status); } &&
13943 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13944 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 ++ (eval $ac_try) 2>&5
13947 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 ++ (exit $ac_status); }; } &&
13949 ++ { ac_try='test -s conftest.$ac_objext'
13950 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 ++ (eval $ac_try) 2>&5
13953 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 ++ (exit $ac_status); }; }; then
13955 + emacs_cv_motif_version_2_1=yes
13957 +- echo "configure: failed program was:" >&5
13958 +- cat conftest.$ac_ext >&5
13959 +- rm -rf conftest*
13960 +- emacs_cv_motif_version_2_1=no
13961 ++ echo "$as_me: failed program was:" >&5
13962 ++sed 's/^/| /' conftest.$ac_ext >&5
13964 ++emacs_cv_motif_version_2_1=no
13967 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13970 +-echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
13971 ++echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13972 ++echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
13973 + HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13974 + if test $emacs_cv_motif_version_2_1 = yes; then
13976 +- cat >> confdefs.h <<\EOF
13977 ++ cat >>confdefs.h <<\_ACEOF
13978 + #define HAVE_MOTIF_2_1 1
13982 +- echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
13983 +-echo "configure:4994: checking for XpCreateContext in -lXp" >&5
13984 +-ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
13985 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13986 +- echo $ac_n "(cached) $ac_c" 1>&6
13987 ++ echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13988 ++echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
13989 ++if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13990 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
13992 +- ac_save_LIBS="$LIBS"
13993 ++ ac_check_lib_save_LIBS=$LIBS
13994 + LIBS="-lXp $LIBS"
13995 +-cat > conftest.$ac_ext <<EOF
13996 +-#line 5002 "configure"
13997 +-#include "confdefs.h"
13998 +-/* Override any gcc2 internal prototype to avoid an error. */
13999 +-/* We use char because int might match the return type of a gcc2
14000 +- builtin and then its argument prototype would still apply. */
14001 +-char XpCreateContext();
14004 +-XpCreateContext()
14007 +-if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14008 +- rm -rf conftest*
14009 +- eval "ac_cv_lib_$ac_lib_var=yes"
14011 +- echo "configure: failed program was:" >&5
14012 +- cat conftest.$ac_ext >&5
14013 +- rm -rf conftest*
14014 +- eval "ac_cv_lib_$ac_lib_var=no"
14017 +-LIBS="$ac_save_LIBS"
14018 ++cat >conftest.$ac_ext <<_ACEOF
14019 ++/* confdefs.h. */
14021 ++cat confdefs.h >>conftest.$ac_ext
14022 ++cat >>conftest.$ac_ext <<_ACEOF
14023 ++/* end confdefs.h. */
14026 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14027 +- echo "$ac_t""yes" 1>&6
14028 ++/* Override any gcc2 internal prototype to avoid an error. */
14029 ++#ifdef __cplusplus
14032 ++/* We use char because int might match the return type of a gcc2
14033 ++ builtin and then its argument prototype would still apply. */
14034 ++char XpCreateContext ();
14038 ++XpCreateContext ();
14043 ++rm -f conftest.$ac_objext conftest$ac_exeext
14044 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14045 ++ (eval $ac_link) 2>conftest.er1
14047 ++ grep -v '^ *+' conftest.er1 >conftest.err
14048 ++ rm -f conftest.er1
14049 ++ cat conftest.err >&5
14050 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 ++ (exit $ac_status); } &&
14052 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14053 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 ++ (eval $ac_try) 2>&5
14056 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 ++ (exit $ac_status); }; } &&
14058 ++ { ac_try='test -s conftest$ac_exeext'
14059 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 ++ (eval $ac_try) 2>&5
14062 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 ++ (exit $ac_status); }; }; then
14064 ++ ac_cv_lib_Xp_XpCreateContext=yes
14066 ++ echo "$as_me: failed program was:" >&5
14067 ++sed 's/^/| /' conftest.$ac_ext >&5
14069 ++ac_cv_lib_Xp_XpCreateContext=no
14071 ++rm -f conftest.err conftest.$ac_objext \
14072 ++ conftest$ac_exeext conftest.$ac_ext
14073 ++LIBS=$ac_check_lib_save_LIBS
14075 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
14076 ++echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
14077 ++if test $ac_cv_lib_Xp_XpCreateContext = yes; then
14080 +- echo "$ac_t""no" 1>&6
14083 + if test ${HAVE_LIBXP} = yes; then
14084 +- cat >> confdefs.h <<\EOF
14085 ++ cat >>confdefs.h <<\_ACEOF
14086 + #define HAVE_LIBXP 1
14095 +@@ -5042,102 +8741,237 @@
14097 + if test "${HAVE_X11}" = "yes"; then
14098 + if test "${USE_X_TOOLKIT}" != "none"; then
14099 +- ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
14100 +-echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
14101 +-echo "configure:5048: checking for X11/Xaw3d/Scrollbar.h" >&5
14102 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14103 +- echo $ac_n "(cached) $ac_c" 1>&6
14105 +- cat > conftest.$ac_ext <<EOF
14106 +-#line 5053 "configure"
14107 +-#include "confdefs.h"
14108 ++ if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
14109 ++ echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
14110 ++echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
14111 ++if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
14112 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
14114 ++echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
14115 ++echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
14117 ++ # Is the header compilable?
14118 ++echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
14119 ++echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
14120 ++cat >conftest.$ac_ext <<_ACEOF
14121 ++/* confdefs.h. */
14123 ++cat confdefs.h >>conftest.$ac_ext
14124 ++cat >>conftest.$ac_ext <<_ACEOF
14125 ++/* end confdefs.h. */
14126 ++$ac_includes_default
14127 + #include <X11/Xaw3d/Scrollbar.h>
14129 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14130 +-{ (eval echo configure:5058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14131 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14132 +-if test -z "$ac_err"; then
14133 +- rm -rf conftest*
14134 +- eval "ac_cv_header_$ac_safe=yes"
14136 +- echo "$ac_err" >&5
14137 +- echo "configure: failed program was:" >&5
14138 +- cat conftest.$ac_ext >&5
14139 +- rm -rf conftest*
14140 +- eval "ac_cv_header_$ac_safe=no"
14144 ++rm -f conftest.$ac_objext
14145 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146 ++ (eval $ac_compile) 2>conftest.er1
14148 ++ grep -v '^ *+' conftest.er1 >conftest.err
14149 ++ rm -f conftest.er1
14150 ++ cat conftest.err >&5
14151 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 ++ (exit $ac_status); } &&
14153 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14154 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 ++ (eval $ac_try) 2>&5
14157 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 ++ (exit $ac_status); }; } &&
14159 ++ { ac_try='test -s conftest.$ac_objext'
14160 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 ++ (eval $ac_try) 2>&5
14163 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 ++ (exit $ac_status); }; }; then
14165 ++ ac_header_compiler=yes
14167 ++ echo "$as_me: failed program was:" >&5
14168 ++sed 's/^/| /' conftest.$ac_ext >&5
14170 ++ac_header_compiler=no
14172 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14173 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14174 ++echo "${ECHO_T}$ac_header_compiler" >&6
14176 ++# Is the header present?
14177 ++echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
14178 ++echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
14179 ++cat >conftest.$ac_ext <<_ACEOF
14180 ++/* confdefs.h. */
14182 ++cat confdefs.h >>conftest.$ac_ext
14183 ++cat >>conftest.$ac_ext <<_ACEOF
14184 ++/* end confdefs.h. */
14185 ++#include <X11/Xaw3d/Scrollbar.h>
14187 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14188 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14190 ++ grep -v '^ *+' conftest.er1 >conftest.err
14191 ++ rm -f conftest.er1
14192 ++ cat conftest.err >&5
14193 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 ++ (exit $ac_status); } >/dev/null; then
14195 ++ if test -s conftest.err; then
14196 ++ ac_cpp_err=$ac_c_preproc_warn_flag
14197 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14204 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14205 +- echo "$ac_t""yes" 1>&6
14206 +- echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
14207 +-echo "configure:5075: checking for XawScrollbarSetThumb in -lXaw3d" >&5
14208 +-ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
14209 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14210 +- echo $ac_n "(cached) $ac_c" 1>&6
14211 ++if test -z "$ac_cpp_err"; then
14212 ++ ac_header_preproc=yes
14214 +- ac_save_LIBS="$LIBS"
14215 +-LIBS="-lXaw3d $LIBS"
14216 +-cat > conftest.$ac_ext <<EOF
14217 +-#line 5083 "configure"
14218 +-#include "confdefs.h"
14219 +-/* Override any gcc2 internal prototype to avoid an error. */
14220 +-/* We use char because int might match the return type of a gcc2
14221 +- builtin and then its argument prototype would still apply. */
14222 +-char XawScrollbarSetThumb();
14225 +-XawScrollbarSetThumb()
14228 +-if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14229 +- rm -rf conftest*
14230 +- eval "ac_cv_lib_$ac_lib_var=yes"
14232 +- echo "configure: failed program was:" >&5
14233 +- cat conftest.$ac_ext >&5
14234 +- rm -rf conftest*
14235 +- eval "ac_cv_lib_$ac_lib_var=no"
14236 ++ echo "$as_me: failed program was:" >&5
14237 ++sed 's/^/| /' conftest.$ac_ext >&5
14239 ++ ac_header_preproc=no
14241 ++rm -f conftest.err conftest.$ac_ext
14242 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14243 ++echo "${ECHO_T}$ac_header_preproc" >&6
14245 ++# So? What about this header?
14246 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14248 ++ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
14249 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14250 ++ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&5
14251 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&2;}
14252 ++ ac_header_preproc=yes
14255 ++ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
14256 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
14257 ++ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
14258 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
14259 ++ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&5
14260 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&2;}
14261 ++ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: section \"Present But Cannot Be Compiled\"" >&5
14262 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: section \"Present But Cannot Be Compiled\"" >&2;}
14263 ++ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
14264 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;}
14265 ++ { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&5
14266 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&2;}
14269 ++## ------------------------------------------ ##
14270 ++## Report this to the AC_PACKAGE_NAME lists. ##
14271 ++## ------------------------------------------ ##
14274 ++ sed "s/^/$as_me: WARNING: /" >&2
14277 ++echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
14278 ++echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
14279 ++if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
14280 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
14282 ++ ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
14285 +-LIBS="$ac_save_LIBS"
14286 ++echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
14287 ++echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
14290 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14291 +- echo "$ac_t""yes" 1>&6
14293 ++if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
14294 ++ echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
14295 ++echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
14296 ++if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
14297 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
14299 +- echo "$ac_t""no" 1>&6
14300 ++ ac_check_lib_save_LIBS=$LIBS
14301 ++LIBS="-lXaw3d $LIBS"
14302 ++cat >conftest.$ac_ext <<_ACEOF
14303 ++/* confdefs.h. */
14305 ++cat confdefs.h >>conftest.$ac_ext
14306 ++cat >>conftest.$ac_ext <<_ACEOF
14307 ++/* end confdefs.h. */
14309 ++/* Override any gcc2 internal prototype to avoid an error. */
14310 ++#ifdef __cplusplus
14313 ++/* We use char because int might match the return type of a gcc2
14314 ++ builtin and then its argument prototype would still apply. */
14315 ++char XawScrollbarSetThumb ();
14319 ++XawScrollbarSetThumb ();
14324 ++rm -f conftest.$ac_objext conftest$ac_exeext
14325 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14326 ++ (eval $ac_link) 2>conftest.er1
14328 ++ grep -v '^ *+' conftest.er1 >conftest.err
14329 ++ rm -f conftest.er1
14330 ++ cat conftest.err >&5
14331 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 ++ (exit $ac_status); } &&
14333 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14334 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 ++ (eval $ac_try) 2>&5
14337 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 ++ (exit $ac_status); }; } &&
14339 ++ { ac_try='test -s conftest$ac_exeext'
14340 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 ++ (eval $ac_try) 2>&5
14343 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 ++ (exit $ac_status); }; }; then
14345 ++ ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
14347 ++ echo "$as_me: failed program was:" >&5
14348 ++sed 's/^/| /' conftest.$ac_ext >&5
14350 ++ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
14352 ++rm -f conftest.err conftest.$ac_objext \
14353 ++ conftest$ac_exeext conftest.$ac_ext
14354 ++LIBS=$ac_check_lib_save_LIBS
14356 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
14357 ++echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
14358 ++if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
14363 +- echo "$ac_t""no" 1>&6
14367 + if test "${HAVE_XAW3D}" = "yes"; then
14368 +- cat >> confdefs.h <<\EOF
14369 ++ cat >>confdefs.h <<\_ACEOF
14370 + #define HAVE_XAW3D 1
14380 + USE_TOOLKIT_SCROLL_BARS=no
14381 + if test "${with_toolkit_scroll_bars}" != "no"; then
14382 + if test "${USE_X_TOOLKIT}" != "none"; then
14383 + if test "${USE_X_TOOLKIT}" = "MOTIF"; then
14384 +- cat >> confdefs.h <<\EOF
14385 ++ cat >>confdefs.h <<\_ACEOF
14386 + #define USE_TOOLKIT_SCROLL_BARS 1
14391 + USE_TOOLKIT_SCROLL_BARS=yes
14392 + elif test "${HAVE_XAW3D}" = "yes"; then
14393 +- cat >> confdefs.h <<\EOF
14394 ++ cat >>confdefs.h <<\_ACEOF
14395 + #define USE_TOOLKIT_SCROLL_BARS 1
14399 + USE_TOOLKIT_SCROLL_BARS=yes
14401 +@@ -5146,9 +8980,9 @@
14404 + if test "${with_xim}" != "no"; then
14405 +- cat >> confdefs.h <<\EOF
14406 ++ cat >>confdefs.h <<\_ACEOF
14407 + #define USE_XIM 1
14413 +@@ -5156,565 +8990,1302 @@
14415 + if test "${HAVE_X11}" = "yes"; then
14416 + if test "${with_xpm}" != "no"; then
14417 +- ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
14418 +-echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
14419 +-echo "configure:5162: checking for X11/xpm.h" >&5
14420 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14421 +- echo $ac_n "(cached) $ac_c" 1>&6
14423 +- cat > conftest.$ac_ext <<EOF
14424 +-#line 5167 "configure"
14425 +-#include "confdefs.h"
14426 ++ if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14427 ++ echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14428 ++echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
14429 ++if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14430 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
14432 ++echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14433 ++echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
14435 ++ # Is the header compilable?
14436 ++echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14437 ++echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
14438 ++cat >conftest.$ac_ext <<_ACEOF
14439 ++/* confdefs.h. */
14441 ++cat confdefs.h >>conftest.$ac_ext
14442 ++cat >>conftest.$ac_ext <<_ACEOF
14443 ++/* end confdefs.h. */
14444 ++$ac_includes_default
14445 + #include <X11/xpm.h>
14447 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14448 +-{ (eval echo configure:5172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14449 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14450 +-if test -z "$ac_err"; then
14451 +- rm -rf conftest*
14452 +- eval "ac_cv_header_$ac_safe=yes"
14454 +- echo "$ac_err" >&5
14455 +- echo "configure: failed program was:" >&5
14456 +- cat conftest.$ac_ext >&5
14457 +- rm -rf conftest*
14458 +- eval "ac_cv_header_$ac_safe=no"
14462 ++rm -f conftest.$ac_objext
14463 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14464 ++ (eval $ac_compile) 2>conftest.er1
14466 ++ grep -v '^ *+' conftest.er1 >conftest.err
14467 ++ rm -f conftest.er1
14468 ++ cat conftest.err >&5
14469 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 ++ (exit $ac_status); } &&
14471 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14472 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 ++ (eval $ac_try) 2>&5
14475 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 ++ (exit $ac_status); }; } &&
14477 ++ { ac_try='test -s conftest.$ac_objext'
14478 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 ++ (eval $ac_try) 2>&5
14481 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 ++ (exit $ac_status); }; }; then
14483 ++ ac_header_compiler=yes
14485 ++ echo "$as_me: failed program was:" >&5
14486 ++sed 's/^/| /' conftest.$ac_ext >&5
14488 ++ac_header_compiler=no
14490 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14491 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14492 ++echo "${ECHO_T}$ac_header_compiler" >&6
14494 ++# Is the header present?
14495 ++echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14496 ++echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
14497 ++cat >conftest.$ac_ext <<_ACEOF
14498 ++/* confdefs.h. */
14500 ++cat confdefs.h >>conftest.$ac_ext
14501 ++cat >>conftest.$ac_ext <<_ACEOF
14502 ++/* end confdefs.h. */
14503 ++#include <X11/xpm.h>
14505 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14506 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14508 ++ grep -v '^ *+' conftest.er1 >conftest.err
14509 ++ rm -f conftest.er1
14510 ++ cat conftest.err >&5
14511 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 ++ (exit $ac_status); } >/dev/null; then
14513 ++ if test -s conftest.err; then
14514 ++ ac_cpp_err=$ac_c_preproc_warn_flag
14515 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14522 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14523 +- echo "$ac_t""yes" 1>&6
14524 +- echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
14525 +-echo "configure:5189: checking for XpmReadFileToPixmap in -lXpm" >&5
14526 +-ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
14527 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14528 +- echo $ac_n "(cached) $ac_c" 1>&6
14529 ++if test -z "$ac_cpp_err"; then
14530 ++ ac_header_preproc=yes
14532 +- ac_save_LIBS="$LIBS"
14533 +-LIBS="-lXpm -lX11 $LIBS"
14534 +-cat > conftest.$ac_ext <<EOF
14535 +-#line 5197 "configure"
14536 +-#include "confdefs.h"
14537 +-/* Override any gcc2 internal prototype to avoid an error. */
14538 +-/* We use char because int might match the return type of a gcc2
14539 +- builtin and then its argument prototype would still apply. */
14540 +-char XpmReadFileToPixmap();
14543 +-XpmReadFileToPixmap()
14546 +-if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14547 +- rm -rf conftest*
14548 +- eval "ac_cv_lib_$ac_lib_var=yes"
14550 +- echo "configure: failed program was:" >&5
14551 +- cat conftest.$ac_ext >&5
14552 +- rm -rf conftest*
14553 +- eval "ac_cv_lib_$ac_lib_var=no"
14554 ++ echo "$as_me: failed program was:" >&5
14555 ++sed 's/^/| /' conftest.$ac_ext >&5
14557 ++ ac_header_preproc=no
14559 ++rm -f conftest.err conftest.$ac_ext
14560 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14561 ++echo "${ECHO_T}$ac_header_preproc" >&6
14563 ++# So? What about this header?
14564 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14566 ++ { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14567 ++echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14568 ++ { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14569 ++echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14570 ++ ac_header_preproc=yes
14573 ++ { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14574 ++echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14575 ++ { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14576 ++echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14577 ++ { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14578 ++echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14579 ++ { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14580 ++echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14581 ++ { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14582 ++echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14583 ++ { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14584 ++echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14587 ++## ------------------------------------------ ##
14588 ++## Report this to the AC_PACKAGE_NAME lists. ##
14589 ++## ------------------------------------------ ##
14592 ++ sed "s/^/$as_me: WARNING: /" >&2
14595 ++echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14596 ++echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
14597 ++if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14598 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
14600 ++ ac_cv_header_X11_xpm_h=$ac_header_preproc
14603 +-LIBS="$ac_save_LIBS"
14604 ++echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14605 ++echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
14608 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14609 +- echo "$ac_t""yes" 1>&6
14611 ++if test $ac_cv_header_X11_xpm_h = yes; then
14612 ++ echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14613 ++echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
14614 ++if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14615 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
14617 +- echo "$ac_t""no" 1>&6
14618 ++ ac_check_lib_save_LIBS=$LIBS
14619 ++LIBS="-lXpm -lX11 $LIBS"
14620 ++cat >conftest.$ac_ext <<_ACEOF
14621 ++/* confdefs.h. */
14623 ++cat confdefs.h >>conftest.$ac_ext
14624 ++cat >>conftest.$ac_ext <<_ACEOF
14625 ++/* end confdefs.h. */
14627 ++/* Override any gcc2 internal prototype to avoid an error. */
14628 ++#ifdef __cplusplus
14631 ++/* We use char because int might match the return type of a gcc2
14632 ++ builtin and then its argument prototype would still apply. */
14633 ++char XpmReadFileToPixmap ();
14637 ++XpmReadFileToPixmap ();
14642 ++rm -f conftest.$ac_objext conftest$ac_exeext
14643 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644 ++ (eval $ac_link) 2>conftest.er1
14646 ++ grep -v '^ *+' conftest.er1 >conftest.err
14647 ++ rm -f conftest.er1
14648 ++ cat conftest.err >&5
14649 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 ++ (exit $ac_status); } &&
14651 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14652 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 ++ (eval $ac_try) 2>&5
14655 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 ++ (exit $ac_status); }; } &&
14657 ++ { ac_try='test -s conftest$ac_exeext'
14658 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 ++ (eval $ac_try) 2>&5
14661 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 ++ (exit $ac_status); }; }; then
14663 ++ ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14665 ++ echo "$as_me: failed program was:" >&5
14666 ++sed 's/^/| /' conftest.$ac_ext >&5
14668 ++ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14670 ++rm -f conftest.err conftest.$ac_objext \
14671 ++ conftest$ac_exeext conftest.$ac_ext
14672 ++LIBS=$ac_check_lib_save_LIBS
14674 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14675 ++echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
14676 ++if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14681 +- echo "$ac_t""no" 1>&6
14685 + if test "${HAVE_XPM}" = "yes"; then
14686 +- echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
14687 +-echo "configure:5234: checking for XpmReturnAllocPixels preprocessor define" >&5
14688 +- cat > conftest.$ac_ext <<EOF
14689 +-#line 5236 "configure"
14690 +-#include "confdefs.h"
14691 ++ echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14692 ++echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
14693 ++ cat >conftest.$ac_ext <<_ACEOF
14694 ++/* confdefs.h. */
14696 ++cat confdefs.h >>conftest.$ac_ext
14697 ++cat >>conftest.$ac_ext <<_ACEOF
14698 ++/* end confdefs.h. */
14699 + #include "X11/xpm.h"
14700 + #ifndef XpmReturnAllocPixels
14701 + no_return_alloc_pixels
14707 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14708 +- egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
14709 +- rm -rf conftest*
14710 ++ $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14713 +- rm -rf conftest*
14719 + if test "${HAVE_XPM}" = "yes"; then
14720 +- echo "$ac_t""yes" 1>&6
14721 ++ echo "$as_me:$LINENO: result: yes" >&5
14722 ++echo "${ECHO_T}yes" >&6
14724 +- echo "$ac_t""no" 1>&6
14725 ++ echo "$as_me:$LINENO: result: no" >&5
14726 ++echo "${ECHO_T}no" >&6
14731 + if test "${HAVE_XPM}" = "yes"; then
14732 +- cat >> confdefs.h <<\EOF
14733 ++ cat >>confdefs.h <<\_ACEOF
14734 + #define HAVE_XPM 1
14742 + ### Use -ljpeg if available, unless `--with-jpeg=no'.
14744 + if test "${HAVE_X11}" = "yes"; then
14745 + if test "${with_jpeg}" != "no"; then
14746 +- ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
14747 +-echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
14748 +-echo "configure:5277: checking for jerror.h" >&5
14749 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14750 +- echo $ac_n "(cached) $ac_c" 1>&6
14752 +- cat > conftest.$ac_ext <<EOF
14753 +-#line 5282 "configure"
14754 +-#include "confdefs.h"
14755 ++ if test "${ac_cv_header_jerror_h+set}" = set; then
14756 ++ echo "$as_me:$LINENO: checking for jerror.h" >&5
14757 ++echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
14758 ++if test "${ac_cv_header_jerror_h+set}" = set; then
14759 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
14761 ++echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14762 ++echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
14764 ++ # Is the header compilable?
14765 ++echo "$as_me:$LINENO: checking jerror.h usability" >&5
14766 ++echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
14767 ++cat >conftest.$ac_ext <<_ACEOF
14768 ++/* confdefs.h. */
14770 ++cat confdefs.h >>conftest.$ac_ext
14771 ++cat >>conftest.$ac_ext <<_ACEOF
14772 ++/* end confdefs.h. */
14773 ++$ac_includes_default
14774 + #include <jerror.h>
14776 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14777 +-{ (eval echo configure:5287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14778 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14779 +-if test -z "$ac_err"; then
14780 +- rm -rf conftest*
14781 +- eval "ac_cv_header_$ac_safe=yes"
14783 +- echo "$ac_err" >&5
14784 +- echo "configure: failed program was:" >&5
14785 +- cat conftest.$ac_ext >&5
14786 +- rm -rf conftest*
14787 +- eval "ac_cv_header_$ac_safe=no"
14791 ++rm -f conftest.$ac_objext
14792 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 ++ (eval $ac_compile) 2>conftest.er1
14795 ++ grep -v '^ *+' conftest.er1 >conftest.err
14796 ++ rm -f conftest.er1
14797 ++ cat conftest.err >&5
14798 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 ++ (exit $ac_status); } &&
14800 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14801 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 ++ (eval $ac_try) 2>&5
14804 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 ++ (exit $ac_status); }; } &&
14806 ++ { ac_try='test -s conftest.$ac_objext'
14807 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 ++ (eval $ac_try) 2>&5
14810 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 ++ (exit $ac_status); }; }; then
14812 ++ ac_header_compiler=yes
14814 ++ echo "$as_me: failed program was:" >&5
14815 ++sed 's/^/| /' conftest.$ac_ext >&5
14817 ++ac_header_compiler=no
14819 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14820 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 ++echo "${ECHO_T}$ac_header_compiler" >&6
14823 ++# Is the header present?
14824 ++echo "$as_me:$LINENO: checking jerror.h presence" >&5
14825 ++echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
14826 ++cat >conftest.$ac_ext <<_ACEOF
14827 ++/* confdefs.h. */
14829 ++cat confdefs.h >>conftest.$ac_ext
14830 ++cat >>conftest.$ac_ext <<_ACEOF
14831 ++/* end confdefs.h. */
14832 ++#include <jerror.h>
14834 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14835 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14837 ++ grep -v '^ *+' conftest.er1 >conftest.err
14838 ++ rm -f conftest.er1
14839 ++ cat conftest.err >&5
14840 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 ++ (exit $ac_status); } >/dev/null; then
14842 ++ if test -s conftest.err; then
14843 ++ ac_cpp_err=$ac_c_preproc_warn_flag
14844 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14851 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14852 +- echo "$ac_t""yes" 1>&6
14853 +- echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
14854 +-echo "configure:5304: checking for jpeg_destroy_compress in -ljpeg" >&5
14855 +-ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
14856 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14857 +- echo $ac_n "(cached) $ac_c" 1>&6
14858 ++if test -z "$ac_cpp_err"; then
14859 ++ ac_header_preproc=yes
14861 +- ac_save_LIBS="$LIBS"
14862 +-LIBS="-ljpeg $LIBS"
14863 +-cat > conftest.$ac_ext <<EOF
14864 +-#line 5312 "configure"
14865 +-#include "confdefs.h"
14866 +-/* Override any gcc2 internal prototype to avoid an error. */
14867 +-/* We use char because int might match the return type of a gcc2
14868 +- builtin and then its argument prototype would still apply. */
14869 +-char jpeg_destroy_compress();
14872 +-jpeg_destroy_compress()
14875 +-if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14876 +- rm -rf conftest*
14877 +- eval "ac_cv_lib_$ac_lib_var=yes"
14879 +- echo "configure: failed program was:" >&5
14880 +- cat conftest.$ac_ext >&5
14881 +- rm -rf conftest*
14882 +- eval "ac_cv_lib_$ac_lib_var=no"
14883 ++ echo "$as_me: failed program was:" >&5
14884 ++sed 's/^/| /' conftest.$ac_ext >&5
14886 ++ ac_header_preproc=no
14888 ++rm -f conftest.err conftest.$ac_ext
14889 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14890 ++echo "${ECHO_T}$ac_header_preproc" >&6
14892 ++# So? What about this header?
14893 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14895 ++ { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14896 ++echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14897 ++ { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14898 ++echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14899 ++ ac_header_preproc=yes
14902 ++ { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14903 ++echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14904 ++ { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14905 ++echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14906 ++ { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14907 ++echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14908 ++ { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14909 ++echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14910 ++ { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14911 ++echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14912 ++ { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14913 ++echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14916 ++## ------------------------------------------ ##
14917 ++## Report this to the AC_PACKAGE_NAME lists. ##
14918 ++## ------------------------------------------ ##
14921 ++ sed "s/^/$as_me: WARNING: /" >&2
14924 ++echo "$as_me:$LINENO: checking for jerror.h" >&5
14925 ++echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
14926 ++if test "${ac_cv_header_jerror_h+set}" = set; then
14927 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
14929 ++ ac_cv_header_jerror_h=$ac_header_preproc
14932 +-LIBS="$ac_save_LIBS"
14933 ++echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14934 ++echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
14937 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14938 +- echo "$ac_t""yes" 1>&6
14940 ++if test $ac_cv_header_jerror_h = yes; then
14941 ++ echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14942 ++echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
14943 ++if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14944 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
14946 +- echo "$ac_t""no" 1>&6
14947 ++ ac_check_lib_save_LIBS=$LIBS
14948 ++LIBS="-ljpeg $LIBS"
14949 ++cat >conftest.$ac_ext <<_ACEOF
14950 ++/* confdefs.h. */
14952 ++cat confdefs.h >>conftest.$ac_ext
14953 ++cat >>conftest.$ac_ext <<_ACEOF
14954 ++/* end confdefs.h. */
14956 ++/* Override any gcc2 internal prototype to avoid an error. */
14957 ++#ifdef __cplusplus
14960 ++/* We use char because int might match the return type of a gcc2
14961 ++ builtin and then its argument prototype would still apply. */
14962 ++char jpeg_destroy_compress ();
14966 ++jpeg_destroy_compress ();
14971 ++rm -f conftest.$ac_objext conftest$ac_exeext
14972 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14973 ++ (eval $ac_link) 2>conftest.er1
14975 ++ grep -v '^ *+' conftest.er1 >conftest.err
14976 ++ rm -f conftest.er1
14977 ++ cat conftest.err >&5
14978 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 ++ (exit $ac_status); } &&
14980 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14981 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 ++ (eval $ac_try) 2>&5
14984 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 ++ (exit $ac_status); }; } &&
14986 ++ { ac_try='test -s conftest$ac_exeext'
14987 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 ++ (eval $ac_try) 2>&5
14990 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 ++ (exit $ac_status); }; }; then
14992 ++ ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14994 ++ echo "$as_me: failed program was:" >&5
14995 ++sed 's/^/| /' conftest.$ac_ext >&5
14997 ++ac_cv_lib_jpeg_jpeg_destroy_compress=no
14999 ++rm -f conftest.err conftest.$ac_objext \
15000 ++ conftest$ac_exeext conftest.$ac_ext
15001 ++LIBS=$ac_check_lib_save_LIBS
15003 ++echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15004 ++echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
15005 ++if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15010 +- echo "$ac_t""no" 1>&6
15016 + if test "${HAVE_JPEG}" = "yes"; then
15017 +- cat >> confdefs.h <<\EOF
15018 ++ cat >>confdefs.h <<\_ACEOF
15019 + #define HAVE_JPEG 1
15023 +- cat > conftest.$ac_ext <<EOF
15024 +-#line 5355 "configure"
15025 +-#include "confdefs.h"
15026 ++ cat >conftest.$ac_ext <<_ACEOF
15027 ++/* confdefs.h. */
15029 ++cat confdefs.h >>conftest.$ac_ext
15030 ++cat >>conftest.$ac_ext <<_ACEOF
15031 ++/* end confdefs.h. */
15032 + #include <jpeglib.h>
15033 + version=JPEG_LIB_VERSION
15037 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15038 +- egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15039 +- rm -rf conftest*
15040 +- cat >> confdefs.h <<\EOF
15041 ++ $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15042 ++ cat >>confdefs.h <<\_ACEOF
15043 + #define HAVE_JPEG 1
15048 +- rm -rf conftest*
15049 +- echo "configure: warning: libjpeg found, but not version 6b or later" 1>&2
15050 ++ { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15051 ++echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15060 + ### Use -lpng if available, unless `--with-png=no'.
15062 + if test "${HAVE_X11}" = "yes"; then
15063 + if test "${with_png}" != "no"; then
15064 +- ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15065 +-echo $ac_n "checking for png.h""... $ac_c" 1>&6
15066 +-echo "configure:5384: checking for png.h" >&5
15067 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15068 +- echo $ac_n "(cached) $ac_c" 1>&6
15070 +- cat > conftest.$ac_ext <<EOF
15071 +-#line 5389 "configure"
15072 +-#include "confdefs.h"
15073 ++ if test "${ac_cv_header_png_h+set}" = set; then
15074 ++ echo "$as_me:$LINENO: checking for png.h" >&5
15075 ++echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15076 ++if test "${ac_cv_header_png_h+set}" = set; then
15077 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
15079 ++echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15080 ++echo "${ECHO_T}$ac_cv_header_png_h" >&6
15082 ++ # Is the header compilable?
15083 ++echo "$as_me:$LINENO: checking png.h usability" >&5
15084 ++echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15085 ++cat >conftest.$ac_ext <<_ACEOF
15086 ++/* confdefs.h. */
15088 ++cat confdefs.h >>conftest.$ac_ext
15089 ++cat >>conftest.$ac_ext <<_ACEOF
15090 ++/* end confdefs.h. */
15091 ++$ac_includes_default
15094 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15095 +-{ (eval echo configure:5394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15096 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15097 +-if test -z "$ac_err"; then
15098 +- rm -rf conftest*
15099 +- eval "ac_cv_header_$ac_safe=yes"
15101 +- echo "$ac_err" >&5
15102 +- echo "configure: failed program was:" >&5
15103 +- cat conftest.$ac_ext >&5
15104 +- rm -rf conftest*
15105 +- eval "ac_cv_header_$ac_safe=no"
15107 ++rm -f conftest.$ac_objext
15108 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15109 ++ (eval $ac_compile) 2>conftest.er1
15111 ++ grep -v '^ *+' conftest.er1 >conftest.err
15112 ++ rm -f conftest.er1
15113 ++ cat conftest.err >&5
15114 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 ++ (exit $ac_status); } &&
15116 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15117 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 ++ (eval $ac_try) 2>&5
15120 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 ++ (exit $ac_status); }; } &&
15122 ++ { ac_try='test -s conftest.$ac_objext'
15123 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 ++ (eval $ac_try) 2>&5
15126 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 ++ (exit $ac_status); }; }; then
15128 ++ ac_header_compiler=yes
15130 ++ echo "$as_me: failed program was:" >&5
15131 ++sed 's/^/| /' conftest.$ac_ext >&5
15133 ++ac_header_compiler=no
15135 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15137 ++echo "${ECHO_T}$ac_header_compiler" >&6
15139 ++# Is the header present?
15140 ++echo "$as_me:$LINENO: checking png.h presence" >&5
15141 ++echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15142 ++cat >conftest.$ac_ext <<_ACEOF
15143 ++/* confdefs.h. */
15145 ++cat confdefs.h >>conftest.$ac_ext
15146 ++cat >>conftest.$ac_ext <<_ACEOF
15147 ++/* end confdefs.h. */
15150 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15151 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15153 ++ grep -v '^ *+' conftest.er1 >conftest.err
15154 ++ rm -f conftest.er1
15155 ++ cat conftest.err >&5
15156 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 ++ (exit $ac_status); } >/dev/null; then
15158 ++ if test -s conftest.err; then
15159 ++ ac_cpp_err=$ac_c_preproc_warn_flag
15160 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15169 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15170 +- echo "$ac_t""yes" 1>&6
15171 +- echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
15172 +-echo "configure:5411: checking for png_get_channels in -lpng" >&5
15173 +-ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
15174 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15175 +- echo $ac_n "(cached) $ac_c" 1>&6
15176 ++if test -z "$ac_cpp_err"; then
15177 ++ ac_header_preproc=yes
15179 +- ac_save_LIBS="$LIBS"
15180 +-LIBS="-lpng -lz -lm $LIBS"
15181 +-cat > conftest.$ac_ext <<EOF
15182 +-#line 5419 "configure"
15183 +-#include "confdefs.h"
15184 +-/* Override any gcc2 internal prototype to avoid an error. */
15185 +-/* We use char because int might match the return type of a gcc2
15186 +- builtin and then its argument prototype would still apply. */
15187 +-char png_get_channels();
15190 +-png_get_channels()
15193 +-if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15194 +- rm -rf conftest*
15195 +- eval "ac_cv_lib_$ac_lib_var=yes"
15197 +- echo "configure: failed program was:" >&5
15198 +- cat conftest.$ac_ext >&5
15199 +- rm -rf conftest*
15200 +- eval "ac_cv_lib_$ac_lib_var=no"
15201 ++ echo "$as_me: failed program was:" >&5
15202 ++sed 's/^/| /' conftest.$ac_ext >&5
15204 ++ ac_header_preproc=no
15206 ++rm -f conftest.err conftest.$ac_ext
15207 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15208 ++echo "${ECHO_T}$ac_header_preproc" >&6
15210 ++# So? What about this header?
15211 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15213 ++ { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
15214 ++echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15215 ++ { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
15216 ++echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
15217 ++ ac_header_preproc=yes
15220 ++ { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
15221 ++echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
15222 ++ { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
15223 ++echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
15224 ++ { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
15225 ++echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
15226 ++ { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
15227 ++echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
15228 ++ { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15229 ++echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
15230 ++ { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
15231 ++echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
15234 ++## ------------------------------------------ ##
15235 ++## Report this to the AC_PACKAGE_NAME lists. ##
15236 ++## ------------------------------------------ ##
15239 ++ sed "s/^/$as_me: WARNING: /" >&2
15242 ++echo "$as_me:$LINENO: checking for png.h" >&5
15243 ++echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15244 ++if test "${ac_cv_header_png_h+set}" = set; then
15245 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
15247 ++ ac_cv_header_png_h=$ac_header_preproc
15250 +-LIBS="$ac_save_LIBS"
15251 ++echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15252 ++echo "${ECHO_T}$ac_cv_header_png_h" >&6
15255 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15256 +- echo "$ac_t""yes" 1>&6
15258 ++if test $ac_cv_header_png_h = yes; then
15259 ++ echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15260 ++echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
15261 ++if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15262 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
15264 +- echo "$ac_t""no" 1>&6
15265 ++ ac_check_lib_save_LIBS=$LIBS
15266 ++LIBS="-lpng -lz -lm $LIBS"
15267 ++cat >conftest.$ac_ext <<_ACEOF
15268 ++/* confdefs.h. */
15270 ++cat confdefs.h >>conftest.$ac_ext
15271 ++cat >>conftest.$ac_ext <<_ACEOF
15272 ++/* end confdefs.h. */
15274 ++/* Override any gcc2 internal prototype to avoid an error. */
15275 ++#ifdef __cplusplus
15278 ++/* We use char because int might match the return type of a gcc2
15279 ++ builtin and then its argument prototype would still apply. */
15280 ++char png_get_channels ();
15284 ++png_get_channels ();
15289 ++rm -f conftest.$ac_objext conftest$ac_exeext
15290 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15291 ++ (eval $ac_link) 2>conftest.er1
15293 ++ grep -v '^ *+' conftest.er1 >conftest.err
15294 ++ rm -f conftest.er1
15295 ++ cat conftest.err >&5
15296 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 ++ (exit $ac_status); } &&
15298 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15299 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 ++ (eval $ac_try) 2>&5
15302 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 ++ (exit $ac_status); }; } &&
15304 ++ { ac_try='test -s conftest$ac_exeext'
15305 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 ++ (eval $ac_try) 2>&5
15308 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 ++ (exit $ac_status); }; }; then
15310 ++ ac_cv_lib_png_png_get_channels=yes
15312 ++ echo "$as_me: failed program was:" >&5
15313 ++sed 's/^/| /' conftest.$ac_ext >&5
15315 ++ac_cv_lib_png_png_get_channels=no
15317 ++rm -f conftest.err conftest.$ac_objext \
15318 ++ conftest$ac_exeext conftest.$ac_ext
15319 ++LIBS=$ac_check_lib_save_LIBS
15321 ++echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15322 ++echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
15323 ++if test $ac_cv_lib_png_png_get_channels = yes; then
15328 +- echo "$ac_t""no" 1>&6
15334 + if test "${HAVE_PNG}" = "yes"; then
15335 +- cat >> confdefs.h <<\EOF
15336 ++ cat >>confdefs.h <<\_ACEOF
15337 + #define HAVE_PNG 1
15345 + ### Use -ltiff if available, unless `--with-tiff=no'.
15347 + if test "${HAVE_X11}" = "yes"; then
15348 + if test "${with_tiff}" != "no"; then
15349 +- ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15350 +-echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15351 +-echo "configure:5470: checking for tiffio.h" >&5
15352 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15353 +- echo $ac_n "(cached) $ac_c" 1>&6
15355 +- cat > conftest.$ac_ext <<EOF
15356 +-#line 5475 "configure"
15357 +-#include "confdefs.h"
15358 ++ if test "${ac_cv_header_tiffio_h+set}" = set; then
15359 ++ echo "$as_me:$LINENO: checking for tiffio.h" >&5
15360 ++echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
15361 ++if test "${ac_cv_header_tiffio_h+set}" = set; then
15362 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
15364 ++echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15365 ++echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
15367 ++ # Is the header compilable?
15368 ++echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15369 ++echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
15370 ++cat >conftest.$ac_ext <<_ACEOF
15371 ++/* confdefs.h. */
15373 ++cat confdefs.h >>conftest.$ac_ext
15374 ++cat >>conftest.$ac_ext <<_ACEOF
15375 ++/* end confdefs.h. */
15376 ++$ac_includes_default
15377 + #include <tiffio.h>
15379 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15380 +-{ (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15381 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15382 +-if test -z "$ac_err"; then
15383 +- rm -rf conftest*
15384 +- eval "ac_cv_header_$ac_safe=yes"
15386 +- echo "$ac_err" >&5
15387 +- echo "configure: failed program was:" >&5
15388 +- cat conftest.$ac_ext >&5
15389 +- rm -rf conftest*
15390 +- eval "ac_cv_header_$ac_safe=no"
15392 ++rm -f conftest.$ac_objext
15393 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 ++ (eval $ac_compile) 2>conftest.er1
15396 ++ grep -v '^ *+' conftest.er1 >conftest.err
15397 ++ rm -f conftest.er1
15398 ++ cat conftest.err >&5
15399 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 ++ (exit $ac_status); } &&
15401 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15402 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 ++ (eval $ac_try) 2>&5
15405 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 ++ (exit $ac_status); }; } &&
15407 ++ { ac_try='test -s conftest.$ac_objext'
15408 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 ++ (eval $ac_try) 2>&5
15411 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 ++ (exit $ac_status); }; }; then
15413 ++ ac_header_compiler=yes
15415 ++ echo "$as_me: failed program was:" >&5
15416 ++sed 's/^/| /' conftest.$ac_ext >&5
15418 ++ac_header_compiler=no
15420 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15421 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15422 ++echo "${ECHO_T}$ac_header_compiler" >&6
15424 ++# Is the header present?
15425 ++echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15426 ++echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
15427 ++cat >conftest.$ac_ext <<_ACEOF
15428 ++/* confdefs.h. */
15430 ++cat confdefs.h >>conftest.$ac_ext
15431 ++cat >>conftest.$ac_ext <<_ACEOF
15432 ++/* end confdefs.h. */
15433 ++#include <tiffio.h>
15435 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15436 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15438 ++ grep -v '^ *+' conftest.er1 >conftest.err
15439 ++ rm -f conftest.er1
15440 ++ cat conftest.err >&5
15441 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 ++ (exit $ac_status); } >/dev/null; then
15443 ++ if test -s conftest.err; then
15444 ++ ac_cpp_err=$ac_c_preproc_warn_flag
15445 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15453 ++if test -z "$ac_cpp_err"; then
15454 ++ ac_header_preproc=yes
15456 ++ echo "$as_me: failed program was:" >&5
15457 ++sed 's/^/| /' conftest.$ac_ext >&5
15459 ++ ac_header_preproc=no
15461 ++rm -f conftest.err conftest.$ac_ext
15462 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 ++echo "${ECHO_T}$ac_header_preproc" >&6
15465 ++# So? What about this header?
15466 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15468 ++ { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15469 ++echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470 ++ { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15471 ++echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15472 ++ ac_header_preproc=yes
15475 ++ { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15476 ++echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15477 ++ { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15478 ++echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15479 ++ { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15480 ++echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15481 ++ { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15482 ++echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15483 ++ { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15484 ++echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15485 ++ { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15486 ++echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15489 ++## ------------------------------------------ ##
15490 ++## Report this to the AC_PACKAGE_NAME lists. ##
15491 ++## ------------------------------------------ ##
15494 ++ sed "s/^/$as_me: WARNING: /" >&2
15497 ++echo "$as_me:$LINENO: checking for tiffio.h" >&5
15498 ++echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
15499 ++if test "${ac_cv_header_tiffio_h+set}" = set; then
15500 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
15502 ++ ac_cv_header_tiffio_h=$ac_header_preproc
15504 ++echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15505 ++echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
15508 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15509 +- echo "$ac_t""yes" 1>&6
15510 ++if test $ac_cv_header_tiffio_h = yes; then
15511 + tifflibs="-lz -lm"
15512 + # At least one tiff package requires the jpeg library.
15513 + if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15514 +- echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
15515 +-echo "configure:5500: checking for TIFFGetVersion in -ltiff" >&5
15516 +-ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
15517 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15518 +- echo $ac_n "(cached) $ac_c" 1>&6
15519 ++ echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15520 ++echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
15521 ++if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15522 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
15524 +- ac_save_LIBS="$LIBS"
15525 ++ ac_check_lib_save_LIBS=$LIBS
15526 + LIBS="-ltiff $tifflibs $LIBS"
15527 +-cat > conftest.$ac_ext <<EOF
15528 +-#line 5508 "configure"
15529 +-#include "confdefs.h"
15530 +-/* Override any gcc2 internal prototype to avoid an error. */
15531 +-/* We use char because int might match the return type of a gcc2
15532 +- builtin and then its argument prototype would still apply. */
15533 +-char TIFFGetVersion();
15539 +-if { (eval echo configure:5519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15540 +- rm -rf conftest*
15541 +- eval "ac_cv_lib_$ac_lib_var=yes"
15543 +- echo "configure: failed program was:" >&5
15544 +- cat conftest.$ac_ext >&5
15545 +- rm -rf conftest*
15546 +- eval "ac_cv_lib_$ac_lib_var=no"
15549 +-LIBS="$ac_save_LIBS"
15550 ++cat >conftest.$ac_ext <<_ACEOF
15551 ++/* confdefs.h. */
15553 ++cat confdefs.h >>conftest.$ac_ext
15554 ++cat >>conftest.$ac_ext <<_ACEOF
15555 ++/* end confdefs.h. */
15558 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15559 +- echo "$ac_t""yes" 1>&6
15560 ++/* Override any gcc2 internal prototype to avoid an error. */
15561 ++#ifdef __cplusplus
15564 ++/* We use char because int might match the return type of a gcc2
15565 ++ builtin and then its argument prototype would still apply. */
15566 ++char TIFFGetVersion ();
15570 ++TIFFGetVersion ();
15575 ++rm -f conftest.$ac_objext conftest$ac_exeext
15576 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15577 ++ (eval $ac_link) 2>conftest.er1
15579 ++ grep -v '^ *+' conftest.er1 >conftest.err
15580 ++ rm -f conftest.er1
15581 ++ cat conftest.err >&5
15582 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 ++ (exit $ac_status); } &&
15584 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15585 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 ++ (eval $ac_try) 2>&5
15588 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 ++ (exit $ac_status); }; } &&
15590 ++ { ac_try='test -s conftest$ac_exeext'
15591 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 ++ (eval $ac_try) 2>&5
15594 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 ++ (exit $ac_status); }; }; then
15596 ++ ac_cv_lib_tiff_TIFFGetVersion=yes
15598 ++ echo "$as_me: failed program was:" >&5
15599 ++sed 's/^/| /' conftest.$ac_ext >&5
15601 ++ac_cv_lib_tiff_TIFFGetVersion=no
15603 ++rm -f conftest.err conftest.$ac_objext \
15604 ++ conftest$ac_exeext conftest.$ac_ext
15605 ++LIBS=$ac_check_lib_save_LIBS
15607 ++echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15608 ++echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
15609 ++if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15612 +- echo "$ac_t""no" 1>&6
15616 +- echo "$ac_t""no" 1>&6
15622 + if test "${HAVE_TIFF}" = "yes"; then
15623 +- cat >> confdefs.h <<\EOF
15624 ++ cat >>confdefs.h <<\_ACEOF
15625 + #define HAVE_TIFF 1
15633 + ### Use -lgif if available, unless `--with-gif=no'.
15635 + if test "${HAVE_X11}" = "yes"; then
15636 + if test "${with_gif}" != "no"; then
15637 +- ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
15638 +-echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
15639 +-echo "configure:5559: checking for gif_lib.h" >&5
15640 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15641 +- echo $ac_n "(cached) $ac_c" 1>&6
15643 +- cat > conftest.$ac_ext <<EOF
15644 +-#line 5564 "configure"
15645 +-#include "confdefs.h"
15646 ++ if test "${ac_cv_header_gif_lib_h+set}" = set; then
15647 ++ echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15648 ++echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
15649 ++if test "${ac_cv_header_gif_lib_h+set}" = set; then
15650 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
15652 ++echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15653 ++echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
15655 ++ # Is the header compilable?
15656 ++echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15657 ++echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
15658 ++cat >conftest.$ac_ext <<_ACEOF
15659 ++/* confdefs.h. */
15661 ++cat confdefs.h >>conftest.$ac_ext
15662 ++cat >>conftest.$ac_ext <<_ACEOF
15663 ++/* end confdefs.h. */
15664 ++$ac_includes_default
15665 + #include <gif_lib.h>
15667 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15668 +-{ (eval echo configure:5569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15669 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15670 +-if test -z "$ac_err"; then
15671 +- rm -rf conftest*
15672 +- eval "ac_cv_header_$ac_safe=yes"
15674 +- echo "$ac_err" >&5
15675 +- echo "configure: failed program was:" >&5
15676 +- cat conftest.$ac_ext >&5
15677 +- rm -rf conftest*
15678 +- eval "ac_cv_header_$ac_safe=no"
15680 ++rm -f conftest.$ac_objext
15681 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15682 ++ (eval $ac_compile) 2>conftest.er1
15684 ++ grep -v '^ *+' conftest.er1 >conftest.err
15685 ++ rm -f conftest.er1
15686 ++ cat conftest.err >&5
15687 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 ++ (exit $ac_status); } &&
15689 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15690 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 ++ (eval $ac_try) 2>&5
15693 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 ++ (exit $ac_status); }; } &&
15695 ++ { ac_try='test -s conftest.$ac_objext'
15696 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 ++ (eval $ac_try) 2>&5
15699 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 ++ (exit $ac_status); }; }; then
15701 ++ ac_header_compiler=yes
15703 ++ echo "$as_me: failed program was:" >&5
15704 ++sed 's/^/| /' conftest.$ac_ext >&5
15706 ++ac_header_compiler=no
15708 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15709 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15710 ++echo "${ECHO_T}$ac_header_compiler" >&6
15712 ++# Is the header present?
15713 ++echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15714 ++echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
15715 ++cat >conftest.$ac_ext <<_ACEOF
15716 ++/* confdefs.h. */
15718 ++cat confdefs.h >>conftest.$ac_ext
15719 ++cat >>conftest.$ac_ext <<_ACEOF
15720 ++/* end confdefs.h. */
15721 ++#include <gif_lib.h>
15723 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15724 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15726 ++ grep -v '^ *+' conftest.er1 >conftest.err
15727 ++ rm -f conftest.er1
15728 ++ cat conftest.err >&5
15729 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 ++ (exit $ac_status); } >/dev/null; then
15731 ++ if test -s conftest.err; then
15732 ++ ac_cpp_err=$ac_c_preproc_warn_flag
15733 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15741 ++if test -z "$ac_cpp_err"; then
15742 ++ ac_header_preproc=yes
15744 ++ echo "$as_me: failed program was:" >&5
15745 ++sed 's/^/| /' conftest.$ac_ext >&5
15747 ++ ac_header_preproc=no
15749 ++rm -f conftest.err conftest.$ac_ext
15750 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15751 ++echo "${ECHO_T}$ac_header_preproc" >&6
15753 ++# So? What about this header?
15754 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15756 ++ { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15757 ++echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15758 ++ { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15759 ++echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15760 ++ ac_header_preproc=yes
15763 ++ { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15764 ++echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15765 ++ { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15766 ++echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15767 ++ { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15768 ++echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15769 ++ { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15770 ++echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15771 ++ { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15772 ++echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15773 ++ { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15774 ++echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15777 ++## ------------------------------------------ ##
15778 ++## Report this to the AC_PACKAGE_NAME lists. ##
15779 ++## ------------------------------------------ ##
15782 ++ sed "s/^/$as_me: WARNING: /" >&2
15785 ++echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15786 ++echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
15787 ++if test "${ac_cv_header_gif_lib_h+set}" = set; then
15788 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
15790 ++ ac_cv_header_gif_lib_h=$ac_header_preproc
15792 ++echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15793 ++echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
15796 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15797 +- echo "$ac_t""yes" 1>&6
15798 ++if test $ac_cv_header_gif_lib_h = yes; then
15799 + # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15800 + # Earlier versions can crash Emacs.
15801 +- echo $ac_n "checking for EGifPutExtensionLast in -lungif""... $ac_c" 1>&6
15802 +-echo "configure:5588: checking for EGifPutExtensionLast in -lungif" >&5
15803 +-ac_lib_var=`echo ungif'_'EGifPutExtensionLast | sed 'y%./+-%__p_%'`
15804 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15805 +- echo $ac_n "(cached) $ac_c" 1>&6
15806 ++ echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15807 ++echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
15808 ++if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15809 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
15811 +- ac_save_LIBS="$LIBS"
15812 ++ ac_check_lib_save_LIBS=$LIBS
15813 + LIBS="-lungif $LIBS"
15814 +-cat > conftest.$ac_ext <<EOF
15815 +-#line 5596 "configure"
15816 +-#include "confdefs.h"
15817 +-/* Override any gcc2 internal prototype to avoid an error. */
15818 +-/* We use char because int might match the return type of a gcc2
15819 +- builtin and then its argument prototype would still apply. */
15820 +-char EGifPutExtensionLast();
15823 +-EGifPutExtensionLast()
15826 +-if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15827 +- rm -rf conftest*
15828 +- eval "ac_cv_lib_$ac_lib_var=yes"
15830 +- echo "configure: failed program was:" >&5
15831 +- cat conftest.$ac_ext >&5
15832 +- rm -rf conftest*
15833 +- eval "ac_cv_lib_$ac_lib_var=no"
15836 +-LIBS="$ac_save_LIBS"
15837 ++cat >conftest.$ac_ext <<_ACEOF
15838 ++/* confdefs.h. */
15840 ++cat confdefs.h >>conftest.$ac_ext
15841 ++cat >>conftest.$ac_ext <<_ACEOF
15842 ++/* end confdefs.h. */
15845 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15846 +- echo "$ac_t""yes" 1>&6
15847 ++/* Override any gcc2 internal prototype to avoid an error. */
15848 ++#ifdef __cplusplus
15851 ++/* We use char because int might match the return type of a gcc2
15852 ++ builtin and then its argument prototype would still apply. */
15853 ++char EGifPutExtensionLast ();
15857 ++EGifPutExtensionLast ();
15862 ++rm -f conftest.$ac_objext conftest$ac_exeext
15863 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15864 ++ (eval $ac_link) 2>conftest.er1
15866 ++ grep -v '^ *+' conftest.er1 >conftest.err
15867 ++ rm -f conftest.er1
15868 ++ cat conftest.err >&5
15869 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 ++ (exit $ac_status); } &&
15871 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15872 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 ++ (eval $ac_try) 2>&5
15875 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 ++ (exit $ac_status); }; } &&
15877 ++ { ac_try='test -s conftest$ac_exeext'
15878 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 ++ (eval $ac_try) 2>&5
15881 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 ++ (exit $ac_status); }; }; then
15883 ++ ac_cv_lib_ungif_EGifPutExtensionLast=yes
15885 ++ echo "$as_me: failed program was:" >&5
15886 ++sed 's/^/| /' conftest.$ac_ext >&5
15888 ++ac_cv_lib_ungif_EGifPutExtensionLast=no
15890 ++rm -f conftest.err conftest.$ac_objext \
15891 ++ conftest$ac_exeext conftest.$ac_ext
15892 ++LIBS=$ac_check_lib_save_LIBS
15894 ++echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15895 ++echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
15896 ++if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15899 +- echo "$ac_t""no" 1>&6
15903 +- echo "$ac_t""no" 1>&6
15909 + if test "${HAVE_GIF}" = "yes"; then
15910 +- cat >> confdefs.h <<\EOF
15911 ++ cat >>confdefs.h <<\_ACEOF
15912 + #define HAVE_GIF 1
15919 + # If netdb.h doesn't declare h_errno, we must declare it by hand.
15920 +-echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
15921 +-echo "configure:5643: checking whether netdb declares h_errno" >&5
15922 +-if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
15923 +- echo $ac_n "(cached) $ac_c" 1>&6
15925 +- cat > conftest.$ac_ext <<EOF
15926 +-#line 5648 "configure"
15927 +-#include "confdefs.h"
15928 ++echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15929 ++echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
15930 ++if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15931 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
15933 ++ cat >conftest.$ac_ext <<_ACEOF
15934 ++/* confdefs.h. */
15936 ++cat confdefs.h >>conftest.$ac_ext
15937 ++cat >>conftest.$ac_ext <<_ACEOF
15938 ++/* end confdefs.h. */
15939 + #include <netdb.h>
15947 +-if { (eval echo configure:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15948 +- rm -rf conftest*
15953 ++rm -f conftest.$ac_objext conftest$ac_exeext
15954 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15955 ++ (eval $ac_link) 2>conftest.er1
15957 ++ grep -v '^ *+' conftest.er1 >conftest.err
15958 ++ rm -f conftest.er1
15959 ++ cat conftest.err >&5
15960 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 ++ (exit $ac_status); } &&
15962 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15963 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 ++ (eval $ac_try) 2>&5
15966 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 ++ (exit $ac_status); }; } &&
15968 ++ { ac_try='test -s conftest$ac_exeext'
15969 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 ++ (eval $ac_try) 2>&5
15972 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 ++ (exit $ac_status); }; }; then
15974 + emacs_cv_netdb_declares_h_errno=yes
15976 +- echo "configure: failed program was:" >&5
15977 +- cat conftest.$ac_ext >&5
15978 +- rm -rf conftest*
15979 +- emacs_cv_netdb_declares_h_errno=no
15980 ++ echo "$as_me: failed program was:" >&5
15981 ++sed 's/^/| /' conftest.$ac_ext >&5
15983 ++emacs_cv_netdb_declares_h_errno=no
15986 ++rm -f conftest.err conftest.$ac_objext \
15987 ++ conftest$ac_exeext conftest.$ac_ext
15990 +-echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
15991 ++echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15992 ++echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
15993 + if test $emacs_cv_netdb_declares_h_errno = yes; then
15994 +- cat >> confdefs.h <<\EOF
15995 ++ cat >>confdefs.h <<\_ACEOF
15996 + #define HAVE_H_ERRNO 1
16002 + # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16003 + # for constant arguments. Useless!
16004 +-echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
16005 +-echo "configure:5678: checking for working alloca.h" >&5
16006 +-if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
16007 +- echo $ac_n "(cached) $ac_c" 1>&6
16009 +- cat > conftest.$ac_ext <<EOF
16010 +-#line 5683 "configure"
16011 +-#include "confdefs.h"
16012 ++echo "$as_me:$LINENO: checking for working alloca.h" >&5
16013 ++echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16014 ++if test "${ac_cv_working_alloca_h+set}" = set; then
16015 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16017 ++ cat >conftest.$ac_ext <<_ACEOF
16018 ++/* confdefs.h. */
16020 ++cat confdefs.h >>conftest.$ac_ext
16021 ++cat >>conftest.$ac_ext <<_ACEOF
16022 ++/* end confdefs.h. */
16023 + #include <alloca.h>
16025 +-char *p = alloca(2 * sizeof(int));
16028 +-if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16029 +- rm -rf conftest*
16030 +- ac_cv_header_alloca_h=yes
16032 +- echo "configure: failed program was:" >&5
16033 +- cat conftest.$ac_ext >&5
16034 +- rm -rf conftest*
16035 +- ac_cv_header_alloca_h=no
16042 ++char *p = (char *) alloca (2 * sizeof (int));
16047 ++rm -f conftest.$ac_objext conftest$ac_exeext
16048 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049 ++ (eval $ac_link) 2>conftest.er1
16051 ++ grep -v '^ *+' conftest.er1 >conftest.err
16052 ++ rm -f conftest.er1
16053 ++ cat conftest.err >&5
16054 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 ++ (exit $ac_status); } &&
16056 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16057 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 ++ (eval $ac_try) 2>&5
16060 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 ++ (exit $ac_status); }; } &&
16062 ++ { ac_try='test -s conftest$ac_exeext'
16063 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 ++ (eval $ac_try) 2>&5
16066 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 ++ (exit $ac_status); }; }; then
16068 ++ ac_cv_working_alloca_h=yes
16070 ++ echo "$as_me: failed program was:" >&5
16071 ++sed 's/^/| /' conftest.$ac_ext >&5
16073 ++ac_cv_working_alloca_h=no
16075 ++rm -f conftest.err conftest.$ac_objext \
16076 ++ conftest$ac_exeext conftest.$ac_ext
16078 ++echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16079 ++echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16080 ++if test $ac_cv_working_alloca_h = yes; then
16082 +-echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
16083 +-if test $ac_cv_header_alloca_h = yes; then
16084 +- cat >> confdefs.h <<\EOF
16085 ++cat >>confdefs.h <<\_ACEOF
16086 + #define HAVE_ALLOCA_H 1
16092 +-echo $ac_n "checking for alloca""... $ac_c" 1>&6
16093 +-echo "configure:5711: checking for alloca" >&5
16094 +-if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
16095 +- echo $ac_n "(cached) $ac_c" 1>&6
16096 ++echo "$as_me:$LINENO: checking for alloca" >&5
16097 ++echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16098 ++if test "${ac_cv_func_alloca_works+set}" = set; then
16099 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16101 +- cat > conftest.$ac_ext <<EOF
16102 +-#line 5716 "configure"
16103 +-#include "confdefs.h"
16105 ++ cat >conftest.$ac_ext <<_ACEOF
16106 ++/* confdefs.h. */
16108 ++cat confdefs.h >>conftest.$ac_ext
16109 ++cat >>conftest.$ac_ext <<_ACEOF
16110 ++/* end confdefs.h. */
16112 + # define alloca __builtin_alloca
16114 +@@ -5736,137 +10307,215 @@
16119 +-char *p = (char *) alloca(1);
16122 +-if { (eval echo configure:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16123 +- rm -rf conftest*
16127 ++char *p = (char *) alloca (1);
16132 ++rm -f conftest.$ac_objext conftest$ac_exeext
16133 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134 ++ (eval $ac_link) 2>conftest.er1
16136 ++ grep -v '^ *+' conftest.er1 >conftest.err
16137 ++ rm -f conftest.er1
16138 ++ cat conftest.err >&5
16139 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 ++ (exit $ac_status); } &&
16141 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16142 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 ++ (eval $ac_try) 2>&5
16145 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 ++ (exit $ac_status); }; } &&
16147 ++ { ac_try='test -s conftest$ac_exeext'
16148 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 ++ (eval $ac_try) 2>&5
16151 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 ++ (exit $ac_status); }; }; then
16153 + ac_cv_func_alloca_works=yes
16155 +- echo "configure: failed program was:" >&5
16156 +- cat conftest.$ac_ext >&5
16157 +- rm -rf conftest*
16158 +- ac_cv_func_alloca_works=no
16159 ++ echo "$as_me: failed program was:" >&5
16160 ++sed 's/^/| /' conftest.$ac_ext >&5
16162 ++ac_cv_func_alloca_works=no
16165 ++rm -f conftest.err conftest.$ac_objext \
16166 ++ conftest$ac_exeext conftest.$ac_ext
16168 ++echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16169 ++echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16171 +-echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
16172 + if test $ac_cv_func_alloca_works = yes; then
16173 +- cat >> confdefs.h <<\EOF
16174 +-#define HAVE_ALLOCA 1
16178 ++cat >>confdefs.h <<\_ACEOF
16179 ++#define HAVE_ALLOCA 1
16182 +-if test $ac_cv_func_alloca_works = no; then
16184 + # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16185 +- # that cause trouble. Some versions do not even contain alloca or
16186 +- # contain a buggy version. If you still want to use their alloca,
16187 +- # use ar to extract alloca.o from them instead of compiling alloca.c.
16188 +- ALLOCA=alloca.${ac_objext}
16189 +- cat >> confdefs.h <<\EOF
16190 ++# that cause trouble. Some versions do not even contain alloca or
16191 ++# contain a buggy version. If you still want to use their alloca,
16192 ++# use ar to extract alloca.o from them instead of compiling alloca.c.
16194 ++ALLOCA=alloca.$ac_objext
16196 ++cat >>confdefs.h <<\_ACEOF
16197 + #define C_ALLOCA 1
16202 +-echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
16203 +-echo "configure:5776: checking whether alloca needs Cray hooks" >&5
16204 +-if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
16205 +- echo $ac_n "(cached) $ac_c" 1>&6
16207 +- cat > conftest.$ac_ext <<EOF
16208 +-#line 5781 "configure"
16209 +-#include "confdefs.h"
16210 ++echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16211 ++echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16212 ++if test "${ac_cv_os_cray+set}" = set; then
16213 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16215 ++ cat >conftest.$ac_ext <<_ACEOF
16216 ++/* confdefs.h. */
16218 ++cat confdefs.h >>conftest.$ac_ext
16219 ++cat >>conftest.$ac_ext <<_ACEOF
16220 ++/* end confdefs.h. */
16221 + #if defined(CRAY) && ! defined(CRAY2)
16229 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16230 +- egrep "webecray" >/dev/null 2>&1; then
16231 +- rm -rf conftest*
16232 ++ $EGREP "webecray" >/dev/null 2>&1; then
16233 + ac_cv_os_cray=yes
16235 +- rm -rf conftest*
16242 +-echo "$ac_t""$ac_cv_os_cray" 1>&6
16243 ++echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16244 ++echo "${ECHO_T}$ac_cv_os_cray" >&6
16245 + if test $ac_cv_os_cray = yes; then
16246 +-for ac_func in _getb67 GETB67 getb67; do
16247 +- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16248 +-echo "configure:5806: checking for $ac_func" >&5
16249 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16250 +- echo $ac_n "(cached) $ac_c" 1>&6
16252 +- cat > conftest.$ac_ext <<EOF
16253 +-#line 5811 "configure"
16254 +-#include "confdefs.h"
16255 ++ for ac_func in _getb67 GETB67 getb67; do
16256 ++ as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16257 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
16258 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16259 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
16260 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16262 ++ cat >conftest.$ac_ext <<_ACEOF
16263 ++/* confdefs.h. */
16265 ++cat confdefs.h >>conftest.$ac_ext
16266 ++cat >>conftest.$ac_ext <<_ACEOF
16267 ++/* end confdefs.h. */
16268 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16269 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
16270 ++#define $ac_func innocuous_$ac_func
16272 + /* System header to define __stub macros and hopefully few prototypes,
16273 +- which can conflict with char $ac_func(); below. */
16274 +-#include <assert.h>
16275 +-/* Override any gcc2 internal prototype to avoid an error. */
16276 +-/* We use char because int might match the return type of a gcc2
16277 +- builtin and then its argument prototype would still apply. */
16279 ++ which can conflict with char $ac_func (); below.
16280 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16281 ++ <limits.h> exists even on freestanding compilers. */
16284 ++# include <limits.h>
16286 ++# include <assert.h>
16292 ++/* Override any gcc2 internal prototype to avoid an error. */
16293 ++#ifdef __cplusplus
16297 ++/* We use char because int might match the return type of a gcc2
16298 ++ builtin and then its argument prototype would still apply. */
16299 ++char $ac_func ();
16300 + /* The GNU C library defines this for functions which it implements
16301 + to always fail with ENOSYS. Some functions are actually named
16302 + something starting with __ and the normal name is an alias. */
16303 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16307 ++char (*f) () = $ac_func;
16309 ++#ifdef __cplusplus
16315 +-if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16316 +- rm -rf conftest*
16317 +- eval "ac_cv_func_$ac_func=yes"
16319 +- echo "configure: failed program was:" >&5
16320 +- cat conftest.$ac_ext >&5
16321 +- rm -rf conftest*
16322 +- eval "ac_cv_func_$ac_func=no"
16329 ++return f != $ac_func;
16334 ++rm -f conftest.$ac_objext conftest$ac_exeext
16335 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16336 ++ (eval $ac_link) 2>conftest.er1
16338 ++ grep -v '^ *+' conftest.er1 >conftest.err
16339 ++ rm -f conftest.er1
16340 ++ cat conftest.err >&5
16341 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 ++ (exit $ac_status); } &&
16343 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16344 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 ++ (eval $ac_try) 2>&5
16347 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 ++ (exit $ac_status); }; } &&
16349 ++ { ac_try='test -s conftest$ac_exeext'
16350 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 ++ (eval $ac_try) 2>&5
16353 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 ++ (exit $ac_status); }; }; then
16355 ++ eval "$as_ac_var=yes"
16357 ++ echo "$as_me: failed program was:" >&5
16358 ++sed 's/^/| /' conftest.$ac_ext >&5
16360 ++eval "$as_ac_var=no"
16362 ++rm -f conftest.err conftest.$ac_objext \
16363 ++ conftest$ac_exeext conftest.$ac_ext
16365 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16366 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16367 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
16369 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16370 +- echo "$ac_t""yes" 1>&6
16371 +- cat >> confdefs.h <<EOF
16372 ++cat >>confdefs.h <<_ACEOF
16373 + #define CRAY_STACKSEG_END $ac_func
16379 +- echo "$ac_t""no" 1>&6
16387 +-echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
16388 +-echo "configure:5861: checking stack direction for C alloca" >&5
16389 +-if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
16390 +- echo $ac_n "(cached) $ac_c" 1>&6
16391 ++echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16392 ++echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16393 ++if test "${ac_cv_c_stack_direction+set}" = set; then
16394 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16396 + if test "$cross_compiling" = yes; then
16397 + ac_cv_c_stack_direction=0
16399 +- cat > conftest.$ac_ext <<EOF
16400 +-#line 5869 "configure"
16401 +-#include "confdefs.h"
16402 ++ cat >conftest.$ac_ext <<_ACEOF
16403 ++/* confdefs.h. */
16405 ++cat confdefs.h >>conftest.$ac_ext
16406 ++cat >>conftest.$ac_ext <<_ACEOF
16407 ++/* end confdefs.h. */
16409 + find_stack_direction ()
16411 + static char *addr = 0;
16412 +@@ -5879,489 +10528,1301 @@
16414 + return (&dummy > addr) ? 1 : -1;
16420 +- exit (find_stack_direction() < 0);
16421 ++ exit (find_stack_direction () < 0);
16424 +-if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16427 ++rm -f conftest$ac_exeext
16428 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16429 ++ (eval $ac_link) 2>&5
16431 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16433 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 ++ (eval $ac_try) 2>&5
16436 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 ++ (exit $ac_status); }; }; then
16438 + ac_cv_c_stack_direction=1
16440 +- echo "configure: failed program was:" >&5
16441 +- cat conftest.$ac_ext >&5
16442 +- rm -fr conftest*
16443 +- ac_cv_c_stack_direction=-1
16444 ++ echo "$as_me: program exited with status $ac_status" >&5
16445 ++echo "$as_me: failed program was:" >&5
16446 ++sed 's/^/| /' conftest.$ac_ext >&5
16448 ++( exit $ac_status )
16449 ++ac_cv_c_stack_direction=-1
16452 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16456 ++echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16457 ++echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16459 +-echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
16460 +-cat >> confdefs.h <<EOF
16461 ++cat >>confdefs.h <<_ACEOF
16462 + #define STACK_DIRECTION $ac_cv_c_stack_direction
16470 + # fmod, logb, and frexp are found in -lm on most systems.
16471 + # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16472 +-echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
16473 +-echo "configure:5913: checking for sqrt in -lm" >&5
16474 +-ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
16475 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16476 +- echo $ac_n "(cached) $ac_c" 1>&6
16478 ++echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16479 ++echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
16480 ++if test "${ac_cv_lib_m_sqrt+set}" = set; then
16481 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16483 +- ac_save_LIBS="$LIBS"
16484 ++ ac_check_lib_save_LIBS=$LIBS
16486 +-cat > conftest.$ac_ext <<EOF
16487 +-#line 5921 "configure"
16488 +-#include "confdefs.h"
16489 +-/* Override any gcc2 internal prototype to avoid an error. */
16490 +-/* We use char because int might match the return type of a gcc2
16491 +- builtin and then its argument prototype would still apply. */
16498 +-if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16499 +- rm -rf conftest*
16500 +- eval "ac_cv_lib_$ac_lib_var=yes"
16502 +- echo "configure: failed program was:" >&5
16503 +- cat conftest.$ac_ext >&5
16504 +- rm -rf conftest*
16505 +- eval "ac_cv_lib_$ac_lib_var=no"
16508 +-LIBS="$ac_save_LIBS"
16509 ++cat >conftest.$ac_ext <<_ACEOF
16510 ++/* confdefs.h. */
16512 ++cat confdefs.h >>conftest.$ac_ext
16513 ++cat >>conftest.$ac_ext <<_ACEOF
16514 ++/* end confdefs.h. */
16517 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16518 +- echo "$ac_t""yes" 1>&6
16519 +- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16520 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16521 +- cat >> confdefs.h <<EOF
16522 +-#define $ac_tr_lib 1
16524 ++/* Override any gcc2 internal prototype to avoid an error. */
16525 ++#ifdef __cplusplus
16528 ++/* We use char because int might match the return type of a gcc2
16529 ++ builtin and then its argument prototype would still apply. */
16539 ++rm -f conftest.$ac_objext conftest$ac_exeext
16540 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541 ++ (eval $ac_link) 2>conftest.er1
16543 ++ grep -v '^ *+' conftest.er1 >conftest.err
16544 ++ rm -f conftest.er1
16545 ++ cat conftest.err >&5
16546 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 ++ (exit $ac_status); } &&
16548 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16549 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 ++ (eval $ac_try) 2>&5
16552 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 ++ (exit $ac_status); }; } &&
16554 ++ { ac_try='test -s conftest$ac_exeext'
16555 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 ++ (eval $ac_try) 2>&5
16558 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 ++ (exit $ac_status); }; }; then
16560 ++ ac_cv_lib_m_sqrt=yes
16562 ++ echo "$as_me: failed program was:" >&5
16563 ++sed 's/^/| /' conftest.$ac_ext >&5
16565 ++ac_cv_lib_m_sqrt=no
16567 ++rm -f conftest.err conftest.$ac_objext \
16568 ++ conftest$ac_exeext conftest.$ac_ext
16569 ++LIBS=$ac_check_lib_save_LIBS
16571 ++echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16572 ++echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
16573 ++if test $ac_cv_lib_m_sqrt = yes; then
16574 ++ cat >>confdefs.h <<_ACEOF
16575 ++#define HAVE_LIBM 1
16581 +- echo "$ac_t""no" 1>&6
16585 +-# Check for mail-locking functions in a "mail" library
16586 +-echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
16587 +-echo "configure:5962: checking for maillock in -lmail" >&5
16588 +-ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
16589 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16590 +- echo $ac_n "(cached) $ac_c" 1>&6
16591 ++# Check for mail-locking functions in a "mail" library Check for
16592 ++# lockfile first, a free replacement for -lmail. We use AC_CHECK_LIB
16593 ++# for touchlock because we don't want to have to put the lock libs
16594 ++# into LIBS and AC_CHECK_FUNCS would require that.
16596 ++echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16597 ++echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
16598 ++if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16599 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16601 +- ac_save_LIBS="$LIBS"
16602 +-LIBS="-lmail $LIBS"
16603 +-cat > conftest.$ac_ext <<EOF
16604 +-#line 5970 "configure"
16605 +-#include "confdefs.h"
16606 +-/* Override any gcc2 internal prototype to avoid an error. */
16607 +-/* We use char because int might match the return type of a gcc2
16608 +- builtin and then its argument prototype would still apply. */
16615 +-if { (eval echo configure:5981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16616 +- rm -rf conftest*
16617 +- eval "ac_cv_lib_$ac_lib_var=yes"
16619 +- echo "configure: failed program was:" >&5
16620 +- cat conftest.$ac_ext >&5
16621 +- rm -rf conftest*
16622 +- eval "ac_cv_lib_$ac_lib_var=no"
16625 +-LIBS="$ac_save_LIBS"
16626 ++ ac_check_lib_save_LIBS=$LIBS
16627 ++LIBS="-llockfile $LIBS"
16628 ++cat >conftest.$ac_ext <<_ACEOF
16629 ++/* confdefs.h. */
16631 ++cat confdefs.h >>conftest.$ac_ext
16632 ++cat >>conftest.$ac_ext <<_ACEOF
16633 ++/* end confdefs.h. */
16635 ++/* Override any gcc2 internal prototype to avoid an error. */
16636 ++#ifdef __cplusplus
16639 ++/* We use char because int might match the return type of a gcc2
16640 ++ builtin and then its argument prototype would still apply. */
16641 ++char maillock ();
16650 ++rm -f conftest.$ac_objext conftest$ac_exeext
16651 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652 ++ (eval $ac_link) 2>conftest.er1
16654 ++ grep -v '^ *+' conftest.er1 >conftest.err
16655 ++ rm -f conftest.er1
16656 ++ cat conftest.err >&5
16657 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 ++ (exit $ac_status); } &&
16659 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 ++ (eval $ac_try) 2>&5
16663 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 ++ (exit $ac_status); }; } &&
16665 ++ { ac_try='test -s conftest$ac_exeext'
16666 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 ++ (eval $ac_try) 2>&5
16669 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 ++ (exit $ac_status); }; }; then
16671 ++ ac_cv_lib_lockfile_maillock=yes
16673 ++ echo "$as_me: failed program was:" >&5
16674 ++sed 's/^/| /' conftest.$ac_ext >&5
16676 ++ac_cv_lib_lockfile_maillock=no
16678 ++rm -f conftest.err conftest.$ac_objext \
16679 ++ conftest$ac_exeext conftest.$ac_ext
16680 ++LIBS=$ac_check_lib_save_LIBS
16682 ++echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16683 ++echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
16684 ++if test $ac_cv_lib_lockfile_maillock = yes; then
16685 ++ cat >>confdefs.h <<\_ACEOF
16686 ++#define HAVE_LIBMAIL 1
16689 ++ MOVEMAIL_LOCK_LIBS="-llockfile"
16690 ++ echo "$as_me:$LINENO: checking for touchlock in -llockfile" >&5
16691 ++echo $ECHO_N "checking for touchlock in -llockfile... $ECHO_C" >&6
16692 ++if test "${ac_cv_lib_lockfile_touchlock+set}" = set; then
16693 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16695 ++ ac_check_lib_save_LIBS=$LIBS
16696 ++LIBS="-llockfile $LIBS"
16697 ++cat >conftest.$ac_ext <<_ACEOF
16698 ++/* confdefs.h. */
16700 ++cat confdefs.h >>conftest.$ac_ext
16701 ++cat >>conftest.$ac_ext <<_ACEOF
16702 ++/* end confdefs.h. */
16704 ++/* Override any gcc2 internal prototype to avoid an error. */
16705 ++#ifdef __cplusplus
16708 ++/* We use char because int might match the return type of a gcc2
16709 ++ builtin and then its argument prototype would still apply. */
16710 ++char touchlock ();
16719 ++rm -f conftest.$ac_objext conftest$ac_exeext
16720 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16721 ++ (eval $ac_link) 2>conftest.er1
16723 ++ grep -v '^ *+' conftest.er1 >conftest.err
16724 ++ rm -f conftest.er1
16725 ++ cat conftest.err >&5
16726 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 ++ (exit $ac_status); } &&
16728 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16729 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 ++ (eval $ac_try) 2>&5
16732 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 ++ (exit $ac_status); }; } &&
16734 ++ { ac_try='test -s conftest$ac_exeext'
16735 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 ++ (eval $ac_try) 2>&5
16738 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 ++ (exit $ac_status); }; }; then
16740 ++ ac_cv_lib_lockfile_touchlock=yes
16742 ++ echo "$as_me: failed program was:" >&5
16743 ++sed 's/^/| /' conftest.$ac_ext >&5
16745 ++ac_cv_lib_lockfile_touchlock=no
16747 ++rm -f conftest.err conftest.$ac_objext \
16748 ++ conftest$ac_exeext conftest.$ac_ext
16749 ++LIBS=$ac_check_lib_save_LIBS
16751 ++echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_touchlock" >&5
16752 ++echo "${ECHO_T}$ac_cv_lib_lockfile_touchlock" >&6
16753 ++if test $ac_cv_lib_lockfile_touchlock = yes; then
16754 ++ cat >>confdefs.h <<\_ACEOF
16755 ++#define HAVE_TOUCHLOCK 1
16759 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16760 +- echo "$ac_t""yes" 1>&6
16761 +- ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16762 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16763 +- cat >> confdefs.h <<EOF
16764 +-#define $ac_tr_lib 1
16767 +- LIBS="-lmail $LIBS"
16769 ++for ac_header in maillock.h
16771 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16772 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
16773 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
16774 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16775 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
16776 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16778 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16779 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16781 ++ # Is the header compilable?
16782 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
16783 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16784 ++cat >conftest.$ac_ext <<_ACEOF
16785 ++/* confdefs.h. */
16787 ++cat confdefs.h >>conftest.$ac_ext
16788 ++cat >>conftest.$ac_ext <<_ACEOF
16789 ++/* end confdefs.h. */
16790 ++$ac_includes_default
16791 ++#include <$ac_header>
16793 ++rm -f conftest.$ac_objext
16794 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16795 ++ (eval $ac_compile) 2>conftest.er1
16797 ++ grep -v '^ *+' conftest.er1 >conftest.err
16798 ++ rm -f conftest.er1
16799 ++ cat conftest.err >&5
16800 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 ++ (exit $ac_status); } &&
16802 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16803 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 ++ (eval $ac_try) 2>&5
16806 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 ++ (exit $ac_status); }; } &&
16808 ++ { ac_try='test -s conftest.$ac_objext'
16809 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 ++ (eval $ac_try) 2>&5
16812 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 ++ (exit $ac_status); }; }; then
16814 ++ ac_header_compiler=yes
16816 ++ echo "$as_me: failed program was:" >&5
16817 ++sed 's/^/| /' conftest.$ac_ext >&5
16819 ++ac_header_compiler=no
16821 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16822 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16823 ++echo "${ECHO_T}$ac_header_compiler" >&6
16825 ++# Is the header present?
16826 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
16827 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16828 ++cat >conftest.$ac_ext <<_ACEOF
16829 ++/* confdefs.h. */
16831 ++cat confdefs.h >>conftest.$ac_ext
16832 ++cat >>conftest.$ac_ext <<_ACEOF
16833 ++/* end confdefs.h. */
16834 ++#include <$ac_header>
16836 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16837 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16839 ++ grep -v '^ *+' conftest.er1 >conftest.err
16840 ++ rm -f conftest.er1
16841 ++ cat conftest.err >&5
16842 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 ++ (exit $ac_status); } >/dev/null; then
16844 ++ if test -s conftest.err; then
16845 ++ ac_cpp_err=$ac_c_preproc_warn_flag
16846 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16851 +- echo "$ac_t""no" 1>&6
16854 ++if test -z "$ac_cpp_err"; then
16855 ++ ac_header_preproc=yes
16857 ++ echo "$as_me: failed program was:" >&5
16858 ++sed 's/^/| /' conftest.$ac_ext >&5
16860 +-echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
16861 +-echo "configure:6009: checking for maillock in -llockfile" >&5
16862 +-ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
16863 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16864 +- echo $ac_n "(cached) $ac_c" 1>&6
16865 ++ ac_header_preproc=no
16867 ++rm -f conftest.err conftest.$ac_ext
16868 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16869 ++echo "${ECHO_T}$ac_header_preproc" >&6
16871 ++# So? What about this header?
16872 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16874 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16875 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16876 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16877 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16878 ++ ac_header_preproc=yes
16881 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16882 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16883 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16884 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16885 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16886 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16887 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16888 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16889 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16890 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16891 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16892 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16895 ++## ------------------------------------------ ##
16896 ++## Report this to the AC_PACKAGE_NAME lists. ##
16897 ++## ------------------------------------------ ##
16900 ++ sed "s/^/$as_me: WARNING: /" >&2
16903 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
16904 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16905 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
16906 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16908 +- ac_save_LIBS="$LIBS"
16909 +-LIBS="-llockfile $LIBS"
16910 +-cat > conftest.$ac_ext <<EOF
16911 +-#line 6017 "configure"
16912 +-#include "confdefs.h"
16913 +-/* Override any gcc2 internal prototype to avoid an error. */
16914 +-/* We use char because int might match the return type of a gcc2
16915 +- builtin and then its argument prototype would still apply. */
16922 +-if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16923 +- rm -rf conftest*
16924 +- eval "ac_cv_lib_$ac_lib_var=yes"
16926 +- echo "configure: failed program was:" >&5
16927 +- cat conftest.$ac_ext >&5
16928 +- rm -rf conftest*
16929 +- eval "ac_cv_lib_$ac_lib_var=no"
16930 ++ eval "$as_ac_Header=\$ac_header_preproc"
16933 +-LIBS="$ac_save_LIBS"
16934 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16935 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16938 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16939 +- echo "$ac_t""yes" 1>&6
16940 +- ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16941 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16942 +- cat >> confdefs.h <<EOF
16943 +-#define $ac_tr_lib 1
16946 +- LIBS="-llockfile $LIBS"
16949 +- echo "$ac_t""no" 1>&6
16952 +-# If we have the shared liblockfile, assume we must use it for mail
16953 +-# locking (e.g. Debian). If we couldn't link against liblockfile
16954 +-# (no liblockfile.a installed), ensure that we don't need to.
16955 +-if test "$ac_cv_lib_lockfile_maillock" = no; then
16956 +- # Extract the first word of "liblockfile.so", so it can be a program name with args.
16957 +-set dummy liblockfile.so; ac_word=$2
16958 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16959 +-echo "configure:6062: checking for $ac_word" >&5
16960 +-if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
16961 +- echo $ac_n "(cached) $ac_c" 1>&6
16963 +- if test -n "$liblockfile"; then
16964 +- ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16966 +- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16967 +- ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16968 +- for ac_dir in $ac_dummy; do
16969 +- test -z "$ac_dir" && ac_dir=.
16970 +- if test -f $ac_dir/$ac_word; then
16971 +- ac_cv_prog_liblockfile="yes"
16975 +- IFS="$ac_save_ifs"
16976 +- test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16978 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
16979 ++ cat >>confdefs.h <<_ACEOF
16980 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16984 +-liblockfile="$ac_cv_prog_liblockfile"
16985 +-if test -n "$liblockfile"; then
16986 +- echo "$ac_t""$liblockfile" 1>&6
16991 +- echo "$ac_t""no" 1>&6
16993 ++ echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16994 ++echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
16995 ++if test "${ac_cv_lib_mail_maillock+set}" = set; then
16996 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
16998 ++ ac_check_lib_save_LIBS=$LIBS
16999 ++LIBS="-lmail $LIBS"
17000 ++cat >conftest.$ac_ext <<_ACEOF
17001 ++/* confdefs.h. */
17003 ++cat confdefs.h >>conftest.$ac_ext
17004 ++cat >>conftest.$ac_ext <<_ACEOF
17005 ++/* end confdefs.h. */
17007 +- if test $ac_cv_prog_liblockfile = yes; then
17008 +- { echo "configure: error: Shared liblockfile found but can't link against it.
17009 +-This probably means that movemail could lose mail.
17010 +-There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
17011 +- else cat >> confdefs.h <<\EOF
17012 +-#define LIBMAIL -llockfile
17014 ++/* Override any gcc2 internal prototype to avoid an error. */
17015 ++#ifdef __cplusplus
17018 ++/* We use char because int might match the return type of a gcc2
17019 ++ builtin and then its argument prototype would still apply. */
17020 ++char maillock ();
17029 ++rm -f conftest.$ac_objext conftest$ac_exeext
17030 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031 ++ (eval $ac_link) 2>conftest.er1
17033 ++ grep -v '^ *+' conftest.er1 >conftest.err
17034 ++ rm -f conftest.er1
17035 ++ cat conftest.err >&5
17036 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 ++ (exit $ac_status); } &&
17038 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17039 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 ++ (eval $ac_try) 2>&5
17042 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 ++ (exit $ac_status); }; } &&
17044 ++ { ac_try='test -s conftest$ac_exeext'
17045 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 ++ (eval $ac_try) 2>&5
17048 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 ++ (exit $ac_status); }; }; then
17050 ++ ac_cv_lib_mail_maillock=yes
17052 ++ echo "$as_me: failed program was:" >&5
17053 ++sed 's/^/| /' conftest.$ac_ext >&5
17055 ++ac_cv_lib_mail_maillock=no
17057 ++rm -f conftest.err conftest.$ac_objext \
17058 ++ conftest$ac_exeext conftest.$ac_ext
17059 ++LIBS=$ac_check_lib_save_LIBS
17061 ++echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17062 ++echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
17063 ++if test $ac_cv_lib_mail_maillock = yes; then
17064 ++ cat >>confdefs.h <<\_ACEOF
17065 ++#define HAVE_LIBMAIL 1
17068 ++ MOVEMAIL_LOCK_LIBS="-lmail"
17069 ++ echo "$as_me:$LINENO: checking for touchlock in -lmail" >&5
17070 ++echo $ECHO_N "checking for touchlock in -lmail... $ECHO_C" >&6
17071 ++if test "${ac_cv_lib_mail_touchlock+set}" = set; then
17072 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
17074 ++ ac_check_lib_save_LIBS=$LIBS
17075 ++LIBS="-lmail $LIBS"
17076 ++cat >conftest.$ac_ext <<_ACEOF
17077 ++/* confdefs.h. */
17079 ++cat confdefs.h >>conftest.$ac_ext
17080 ++cat >>conftest.$ac_ext <<_ACEOF
17081 ++/* end confdefs.h. */
17083 ++/* Override any gcc2 internal prototype to avoid an error. */
17084 ++#ifdef __cplusplus
17087 ++/* We use char because int might match the return type of a gcc2
17088 ++ builtin and then its argument prototype would still apply. */
17089 ++char touchlock ();
17098 ++rm -f conftest.$ac_objext conftest$ac_exeext
17099 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17100 ++ (eval $ac_link) 2>conftest.er1
17102 ++ grep -v '^ *+' conftest.er1 >conftest.err
17103 ++ rm -f conftest.er1
17104 ++ cat conftest.err >&5
17105 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 ++ (exit $ac_status); } &&
17107 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17108 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 ++ (eval $ac_try) 2>&5
17111 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 ++ (exit $ac_status); }; } &&
17113 ++ { ac_try='test -s conftest$ac_exeext'
17114 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 ++ (eval $ac_try) 2>&5
17117 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 ++ (exit $ac_status); }; }; then
17119 ++ ac_cv_lib_mail_touchlock=yes
17121 ++ echo "$as_me: failed program was:" >&5
17122 ++sed 's/^/| /' conftest.$ac_ext >&5
17124 ++ac_cv_lib_mail_touchlock=no
17126 ++rm -f conftest.err conftest.$ac_objext \
17127 ++ conftest$ac_exeext conftest.$ac_ext
17128 ++LIBS=$ac_check_lib_save_LIBS
17130 ++echo "$as_me:$LINENO: result: $ac_cv_lib_mail_touchlock" >&5
17131 ++echo "${ECHO_T}$ac_cv_lib_mail_touchlock" >&6
17132 ++if test $ac_cv_lib_mail_touchlock = yes; then
17133 ++ cat >>confdefs.h <<\_ACEOF
17134 ++#define HAVE_TOUCHLOCK 1
17142 + for ac_func in touchlock
17144 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17145 +-echo "configure:6103: checking for $ac_func" >&5
17146 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17147 +- echo $ac_n "(cached) $ac_c" 1>&6
17149 +- cat > conftest.$ac_ext <<EOF
17150 +-#line 6108 "configure"
17151 +-#include "confdefs.h"
17152 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17153 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
17154 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17155 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
17156 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
17158 ++ cat >conftest.$ac_ext <<_ACEOF
17159 ++/* confdefs.h. */
17161 ++cat confdefs.h >>conftest.$ac_ext
17162 ++cat >>conftest.$ac_ext <<_ACEOF
17163 ++/* end confdefs.h. */
17164 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
17166 ++#define $ac_func innocuous_$ac_func
17168 + /* System header to define __stub macros and hopefully few prototypes,
17169 +- which can conflict with char $ac_func(); below. */
17170 +-#include <assert.h>
17171 +-/* Override any gcc2 internal prototype to avoid an error. */
17172 +-/* We use char because int might match the return type of a gcc2
17173 +- builtin and then its argument prototype would still apply. */
17175 ++ which can conflict with char $ac_func (); below.
17176 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17177 ++ <limits.h> exists even on freestanding compilers. */
17180 ++# include <limits.h>
17182 ++# include <assert.h>
17188 ++/* Override any gcc2 internal prototype to avoid an error. */
17189 ++#ifdef __cplusplus
17193 ++/* We use char because int might match the return type of a gcc2
17194 ++ builtin and then its argument prototype would still apply. */
17195 ++char $ac_func ();
17196 + /* The GNU C library defines this for functions which it implements
17197 + to always fail with ENOSYS. Some functions are actually named
17198 + something starting with __ and the normal name is an alias. */
17199 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17203 ++char (*f) () = $ac_func;
17205 ++#ifdef __cplusplus
17211 +-if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17212 +- rm -rf conftest*
17213 +- eval "ac_cv_func_$ac_func=yes"
17215 +- echo "configure: failed program was:" >&5
17216 +- cat conftest.$ac_ext >&5
17217 +- rm -rf conftest*
17218 +- eval "ac_cv_func_$ac_func=no"
17225 ++return f != $ac_func;
17230 ++rm -f conftest.$ac_objext conftest$ac_exeext
17231 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232 ++ (eval $ac_link) 2>conftest.er1
17234 ++ grep -v '^ *+' conftest.er1 >conftest.err
17235 ++ rm -f conftest.er1
17236 ++ cat conftest.err >&5
17237 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 ++ (exit $ac_status); } &&
17239 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17240 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 ++ (eval $ac_try) 2>&5
17243 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 ++ (exit $ac_status); }; } &&
17245 ++ { ac_try='test -s conftest$ac_exeext'
17246 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 ++ (eval $ac_try) 2>&5
17249 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 ++ (exit $ac_status); }; }; then
17251 ++ eval "$as_ac_var=yes"
17253 ++ echo "$as_me: failed program was:" >&5
17254 ++sed 's/^/| /' conftest.$ac_ext >&5
17256 ++eval "$as_ac_var=no"
17258 ++rm -f conftest.err conftest.$ac_objext \
17259 ++ conftest$ac_exeext conftest.$ac_ext
17261 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17262 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17263 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
17264 ++ cat >>confdefs.h <<_ACEOF
17265 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17268 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17269 +- echo "$ac_t""yes" 1>&6
17270 +- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17271 +- cat >> confdefs.h <<EOF
17272 +-#define $ac_tr_func 1
17276 +- echo "$ac_t""no" 1>&6
17280 +-for ac_hdr in maillock.h
17282 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17283 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17284 +-echo "configure:6159: checking for $ac_hdr" >&5
17285 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17286 +- echo $ac_n "(cached) $ac_c" 1>&6
17288 +- cat > conftest.$ac_ext <<EOF
17289 +-#line 6164 "configure"
17290 +-#include "confdefs.h"
17291 +-#include <$ac_hdr>
17293 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17294 +-{ (eval echo configure:6169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17295 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17296 +-if test -z "$ac_err"; then
17297 +- rm -rf conftest*
17298 +- eval "ac_cv_header_$ac_safe=yes"
17300 +- echo "$ac_err" >&5
17301 +- echo "configure: failed program was:" >&5
17302 +- cat conftest.$ac_ext >&5
17303 +- rm -rf conftest*
17304 +- eval "ac_cv_header_$ac_safe=no"
17308 ++for ac_header in maillock.h
17310 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17311 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17312 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
17313 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17314 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17315 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
17317 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17318 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17320 ++ # Is the header compilable?
17321 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
17322 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17323 ++cat >conftest.$ac_ext <<_ACEOF
17324 ++/* confdefs.h. */
17326 ++cat confdefs.h >>conftest.$ac_ext
17327 ++cat >>conftest.$ac_ext <<_ACEOF
17328 ++/* end confdefs.h. */
17329 ++$ac_includes_default
17330 ++#include <$ac_header>
17332 ++rm -f conftest.$ac_objext
17333 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17334 ++ (eval $ac_compile) 2>conftest.er1
17336 ++ grep -v '^ *+' conftest.er1 >conftest.err
17337 ++ rm -f conftest.er1
17338 ++ cat conftest.err >&5
17339 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 ++ (exit $ac_status); } &&
17341 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17342 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 ++ (eval $ac_try) 2>&5
17345 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 ++ (exit $ac_status); }; } &&
17347 ++ { ac_try='test -s conftest.$ac_objext'
17348 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 ++ (eval $ac_try) 2>&5
17351 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 ++ (exit $ac_status); }; }; then
17353 ++ ac_header_compiler=yes
17355 ++ echo "$as_me: failed program was:" >&5
17356 ++sed 's/^/| /' conftest.$ac_ext >&5
17358 ++ac_header_compiler=no
17360 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17361 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17362 ++echo "${ECHO_T}$ac_header_compiler" >&6
17364 ++# Is the header present?
17365 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
17366 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17367 ++cat >conftest.$ac_ext <<_ACEOF
17368 ++/* confdefs.h. */
17370 ++cat confdefs.h >>conftest.$ac_ext
17371 ++cat >>conftest.$ac_ext <<_ACEOF
17372 ++/* end confdefs.h. */
17373 ++#include <$ac_header>
17375 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17376 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17378 ++ grep -v '^ *+' conftest.er1 >conftest.err
17379 ++ rm -f conftest.er1
17380 ++ cat conftest.err >&5
17381 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 ++ (exit $ac_status); } >/dev/null; then
17383 ++ if test -s conftest.err; then
17384 ++ ac_cpp_err=$ac_c_preproc_warn_flag
17385 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17392 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17393 +- echo "$ac_t""yes" 1>&6
17394 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17395 +- cat >> confdefs.h <<EOF
17396 +-#define $ac_tr_hdr 1
17399 ++if test -z "$ac_cpp_err"; then
17400 ++ ac_header_preproc=yes
17402 ++ echo "$as_me: failed program was:" >&5
17403 ++sed 's/^/| /' conftest.$ac_ext >&5
17405 ++ ac_header_preproc=no
17407 ++rm -f conftest.err conftest.$ac_ext
17408 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17409 ++echo "${ECHO_T}$ac_header_preproc" >&6
17411 ++# So? What about this header?
17412 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17414 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17415 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17416 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17417 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17418 ++ ac_header_preproc=yes
17421 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17422 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17423 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17424 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17425 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17426 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17427 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17428 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17429 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17430 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17431 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17432 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17435 ++## ------------------------------------------ ##
17436 ++## Report this to the AC_PACKAGE_NAME lists. ##
17437 ++## ------------------------------------------ ##
17440 ++ sed "s/^/$as_me: WARNING: /" >&2
17443 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
17444 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17445 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17446 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
17448 +- echo "$ac_t""no" 1>&6
17449 ++ eval "$as_ac_Header=\$ac_header_preproc"
17452 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17453 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17456 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
17457 ++ cat >>confdefs.h <<_ACEOF
17458 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17461 +-for ac_func in gethostname getdomainname dup2 \
17462 +-rename closedir mkdir rmdir sysinfo \
17473 ++# Tests borrowed (and slightly rearranged) from old paths.el
17474 ++# rmail-spool-directory tests. They should be in the order most
17475 ++# likely to get the right answer. You can always override them on the
17476 ++# system level in src/s/* and on a one-shot basis with
17477 ++# --with-mail-spool-directory.
17479 ++echo "$as_me:$LINENO: checking for mail spool location" >&5
17480 ++echo $ECHO_N "checking for mail spool location... $ECHO_C" >&6
17481 ++if test "${with_mail_spool+set}" = set; then
17482 ++ echo "$as_me:$LINENO: result: ${with_mail_spool}" >&5
17483 ++echo "${ECHO_T}${with_mail_spool}" >&6
17484 ++elif test -d /var/mail/; then
17485 ++ cat >>confdefs.h <<_ACEOF
17486 ++#define CONF_MAIL_SPOOL_DIRECTORY "/var/mail"
17489 ++ echo "$as_me:$LINENO: result: \"/var/mail\"" >&5
17490 ++echo "${ECHO_T}\"/var/mail\"" >&6
17491 ++elif test -d /var/spool/mail/; then
17492 ++ cat >>confdefs.h <<_ACEOF
17493 ++#define CONF_MAIL_SPOOL_DIRECTORY "/var/spool/mail"
17496 ++ echo "$as_me:$LINENO: result: \"/var/spool/mail\"" >&5
17497 ++echo "${ECHO_T}\"/var/spool/mail\"" >&6
17498 ++elif test -d /usr/mail/; then
17499 ++ cat >>confdefs.h <<_ACEOF
17500 ++#define CONF_MAIL_SPOOL_DIRECTORY "/usr/mail"
17503 ++ echo "$as_me:$LINENO: result: \"/usr/mail\"" >&5
17504 ++echo "${ECHO_T}\"/usr/mail\"" >&6
17505 ++elif test -d /usr/spool/mail/; then
17506 ++ cat >>confdefs.h <<_ACEOF
17507 ++#define CONF_MAIL_SPOOL_DIRECTORY "/usr/spool/mail"
17510 ++ echo "$as_me:$LINENO: result: \"/usr/spool/mail\"" >&5
17511 ++echo "${ECHO_T}\"/usr/spool/mail\"" >&6
17513 ++ echo "$as_me:$LINENO: result: not found" >&5
17514 ++echo "${ECHO_T}not found" >&6
17517 ++# Find the location of "mail". This is critical for fakemail at
17518 ++# least. before fakemail would silently fail if this was wrong, so
17519 ++# insist on finding it.
17520 ++echo "$as_me:$LINENO: checking for mail binary" >&5
17521 ++echo $ECHO_N "checking for mail binary... $ECHO_C" >&6
17522 ++if test -x /bin/mail; then
17523 ++ cat >>confdefs.h <<_ACEOF
17524 ++#define CONF_MAIL_PROGRAM_NAME "/bin/mail"
17527 ++ echo "$as_me:$LINENO: result: \"/bin/mail\"" >&5
17528 ++echo "${ECHO_T}\"/bin/mail\"" >&6
17529 ++elif test -x /usr/bin/mail; then
17530 ++ cat >>confdefs.h <<_ACEOF
17531 ++#define CONF_MAIL_PROGRAM_NAME "/usr/bin/mail"
17534 ++ echo "$as_me:$LINENO: result: \"/usr/bin/mail\"" >&5
17535 ++echo "${ECHO_T}\"/usr/bin/mail\"" >&6
17537 ++ { { echo "$as_me:$LINENO: error: could not find mail binary" >&5
17538 ++echo "$as_me: error: could not find mail binary" >&2;}
17539 ++ { (exit 1); exit 1; }; }
17588 ++for ac_func in gethostname getdomainname dup2 \
17589 ++rename closedir mkdir rmdir sysinfo \
17590 + random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
17591 + strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17592 + utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
17593 + __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
17594 + gai_strerror mkstemp
17596 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17597 +-echo "configure:6205: checking for $ac_func" >&5
17598 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17599 +- echo $ac_n "(cached) $ac_c" 1>&6
17601 +- cat > conftest.$ac_ext <<EOF
17602 +-#line 6210 "configure"
17603 +-#include "confdefs.h"
17604 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17605 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
17606 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17607 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
17608 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
17610 ++ cat >conftest.$ac_ext <<_ACEOF
17611 ++/* confdefs.h. */
17613 ++cat confdefs.h >>conftest.$ac_ext
17614 ++cat >>conftest.$ac_ext <<_ACEOF
17615 ++/* end confdefs.h. */
17616 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17617 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
17618 ++#define $ac_func innocuous_$ac_func
17620 + /* System header to define __stub macros and hopefully few prototypes,
17621 +- which can conflict with char $ac_func(); below. */
17622 +-#include <assert.h>
17623 +-/* Override any gcc2 internal prototype to avoid an error. */
17624 +-/* We use char because int might match the return type of a gcc2
17625 +- builtin and then its argument prototype would still apply. */
17627 ++ which can conflict with char $ac_func (); below.
17628 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17629 ++ <limits.h> exists even on freestanding compilers. */
17632 ++# include <limits.h>
17634 ++# include <assert.h>
17640 ++/* Override any gcc2 internal prototype to avoid an error. */
17641 ++#ifdef __cplusplus
17645 ++/* We use char because int might match the return type of a gcc2
17646 ++ builtin and then its argument prototype would still apply. */
17647 ++char $ac_func ();
17648 + /* The GNU C library defines this for functions which it implements
17649 + to always fail with ENOSYS. Some functions are actually named
17650 + something starting with __ and the normal name is an alias. */
17651 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17655 ++char (*f) () = $ac_func;
17657 ++#ifdef __cplusplus
17663 +-if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17664 +- rm -rf conftest*
17665 +- eval "ac_cv_func_$ac_func=yes"
17667 +- echo "configure: failed program was:" >&5
17668 +- cat conftest.$ac_ext >&5
17669 +- rm -rf conftest*
17670 +- eval "ac_cv_func_$ac_func=no"
17677 ++return f != $ac_func;
17682 ++rm -f conftest.$ac_objext conftest$ac_exeext
17683 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 ++ (eval $ac_link) 2>conftest.er1
17686 ++ grep -v '^ *+' conftest.er1 >conftest.err
17687 ++ rm -f conftest.er1
17688 ++ cat conftest.err >&5
17689 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 ++ (exit $ac_status); } &&
17691 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17692 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 ++ (eval $ac_try) 2>&5
17695 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 ++ (exit $ac_status); }; } &&
17697 ++ { ac_try='test -s conftest$ac_exeext'
17698 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 ++ (eval $ac_try) 2>&5
17701 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 ++ (exit $ac_status); }; }; then
17703 ++ eval "$as_ac_var=yes"
17705 ++ echo "$as_me: failed program was:" >&5
17706 ++sed 's/^/| /' conftest.$ac_ext >&5
17708 ++eval "$as_ac_var=no"
17710 ++rm -f conftest.err conftest.$ac_objext \
17711 ++ conftest$ac_exeext conftest.$ac_ext
17713 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17714 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17715 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
17716 ++ cat >>confdefs.h <<_ACEOF
17717 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17720 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17721 +- echo "$ac_t""yes" 1>&6
17722 +- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17723 +- cat >> confdefs.h <<EOF
17724 +-#define $ac_tr_func 1
17728 +- echo "$ac_t""no" 1>&6
17733 +-for ac_hdr in sys/time.h unistd.h
17735 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17736 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17737 +-echo "configure:6262: checking for $ac_hdr" >&5
17738 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17739 +- echo $ac_n "(cached) $ac_c" 1>&6
17741 +- cat > conftest.$ac_ext <<EOF
17742 +-#line 6267 "configure"
17743 +-#include "confdefs.h"
17744 +-#include <$ac_hdr>
17746 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17747 +-{ (eval echo configure:6272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17748 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17749 +-if test -z "$ac_err"; then
17750 +- rm -rf conftest*
17751 +- eval "ac_cv_header_$ac_safe=yes"
17753 +- echo "$ac_err" >&5
17754 +- echo "configure: failed program was:" >&5
17755 +- cat conftest.$ac_ext >&5
17756 +- rm -rf conftest*
17757 +- eval "ac_cv_header_$ac_safe=no"
17763 ++for ac_header in stdlib.h sys/time.h unistd.h
17765 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17766 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17767 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17769 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17770 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
17772 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17773 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17775 ++ # Is the header compilable?
17776 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
17777 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17778 ++cat >conftest.$ac_ext <<_ACEOF
17779 ++/* confdefs.h. */
17781 ++cat confdefs.h >>conftest.$ac_ext
17782 ++cat >>conftest.$ac_ext <<_ACEOF
17783 ++/* end confdefs.h. */
17784 ++$ac_includes_default
17785 ++#include <$ac_header>
17787 ++rm -f conftest.$ac_objext
17788 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17789 ++ (eval $ac_compile) 2>conftest.er1
17791 ++ grep -v '^ *+' conftest.er1 >conftest.err
17792 ++ rm -f conftest.er1
17793 ++ cat conftest.err >&5
17794 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 ++ (exit $ac_status); } &&
17796 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17797 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 ++ (eval $ac_try) 2>&5
17800 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 ++ (exit $ac_status); }; } &&
17802 ++ { ac_try='test -s conftest.$ac_objext'
17803 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 ++ (eval $ac_try) 2>&5
17806 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 ++ (exit $ac_status); }; }; then
17808 ++ ac_header_compiler=yes
17810 ++ echo "$as_me: failed program was:" >&5
17811 ++sed 's/^/| /' conftest.$ac_ext >&5
17813 ++ac_header_compiler=no
17815 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17816 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17817 ++echo "${ECHO_T}$ac_header_compiler" >&6
17819 ++# Is the header present?
17820 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
17821 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17822 ++cat >conftest.$ac_ext <<_ACEOF
17823 ++/* confdefs.h. */
17825 ++cat confdefs.h >>conftest.$ac_ext
17826 ++cat >>conftest.$ac_ext <<_ACEOF
17827 ++/* end confdefs.h. */
17828 ++#include <$ac_header>
17830 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17831 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17833 ++ grep -v '^ *+' conftest.er1 >conftest.err
17834 ++ rm -f conftest.er1
17835 ++ cat conftest.err >&5
17836 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 ++ (exit $ac_status); } >/dev/null; then
17838 ++ if test -s conftest.err; then
17839 ++ ac_cpp_err=$ac_c_preproc_warn_flag
17840 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17847 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17848 +- echo "$ac_t""yes" 1>&6
17849 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17850 +- cat >> confdefs.h <<EOF
17851 +-#define $ac_tr_hdr 1
17854 ++if test -z "$ac_cpp_err"; then
17855 ++ ac_header_preproc=yes
17857 ++ echo "$as_me: failed program was:" >&5
17858 ++sed 's/^/| /' conftest.$ac_ext >&5
17860 ++ ac_header_preproc=no
17862 ++rm -f conftest.err conftest.$ac_ext
17863 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17864 ++echo "${ECHO_T}$ac_header_preproc" >&6
17866 ++# So? What about this header?
17867 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17869 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17870 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17871 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17872 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17873 ++ ac_header_preproc=yes
17876 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17877 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17878 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17879 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17880 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17881 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17882 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17883 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17884 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17885 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17886 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17887 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17890 ++## ------------------------------------------ ##
17891 ++## Report this to the AC_PACKAGE_NAME lists. ##
17892 ++## ------------------------------------------ ##
17895 ++ sed "s/^/$as_me: WARNING: /" >&2
17898 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
17899 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17900 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17901 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
17903 +- echo "$ac_t""no" 1>&6
17904 ++ eval "$as_ac_Header=\$ac_header_preproc"
17906 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17907 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17910 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
17911 ++ cat >>confdefs.h <<_ACEOF
17912 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17920 + for ac_func in alarm
17922 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17923 +-echo "configure:6301: checking for $ac_func" >&5
17924 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17925 +- echo $ac_n "(cached) $ac_c" 1>&6
17927 +- cat > conftest.$ac_ext <<EOF
17928 +-#line 6306 "configure"
17929 +-#include "confdefs.h"
17930 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17931 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
17932 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17933 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
17934 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
17936 ++ cat >conftest.$ac_ext <<_ACEOF
17937 ++/* confdefs.h. */
17939 ++cat confdefs.h >>conftest.$ac_ext
17940 ++cat >>conftest.$ac_ext <<_ACEOF
17941 ++/* end confdefs.h. */
17942 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17943 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
17944 ++#define $ac_func innocuous_$ac_func
17946 + /* System header to define __stub macros and hopefully few prototypes,
17947 +- which can conflict with char $ac_func(); below. */
17948 +-#include <assert.h>
17949 +-/* Override any gcc2 internal prototype to avoid an error. */
17950 +-/* We use char because int might match the return type of a gcc2
17951 +- builtin and then its argument prototype would still apply. */
17953 ++ which can conflict with char $ac_func (); below.
17954 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955 ++ <limits.h> exists even on freestanding compilers. */
17959 ++# include <limits.h>
17961 ++# include <assert.h>
17966 ++/* Override any gcc2 internal prototype to avoid an error. */
17967 ++#ifdef __cplusplus
17971 ++/* We use char because int might match the return type of a gcc2
17972 ++ builtin and then its argument prototype would still apply. */
17973 ++char $ac_func ();
17974 + /* The GNU C library defines this for functions which it implements
17975 + to always fail with ENOSYS. Some functions are actually named
17976 + something starting with __ and the normal name is an alias. */
17977 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17981 ++char (*f) () = $ac_func;
17983 ++#ifdef __cplusplus
17989 +-if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17990 +- rm -rf conftest*
17991 +- eval "ac_cv_func_$ac_func=yes"
17993 +- echo "configure: failed program was:" >&5
17994 +- cat conftest.$ac_ext >&5
17995 +- rm -rf conftest*
17996 +- eval "ac_cv_func_$ac_func=no"
18003 ++return f != $ac_func;
18008 ++rm -f conftest.$ac_objext conftest$ac_exeext
18009 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18010 ++ (eval $ac_link) 2>conftest.er1
18012 ++ grep -v '^ *+' conftest.er1 >conftest.err
18013 ++ rm -f conftest.er1
18014 ++ cat conftest.err >&5
18015 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 ++ (exit $ac_status); } &&
18017 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18018 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 ++ (eval $ac_try) 2>&5
18021 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 ++ (exit $ac_status); }; } &&
18023 ++ { ac_try='test -s conftest$ac_exeext'
18024 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 ++ (eval $ac_try) 2>&5
18027 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 ++ (exit $ac_status); }; }; then
18029 ++ eval "$as_ac_var=yes"
18031 ++ echo "$as_me: failed program was:" >&5
18032 ++sed 's/^/| /' conftest.$ac_ext >&5
18034 ++eval "$as_ac_var=no"
18036 ++rm -f conftest.err conftest.$ac_objext \
18037 ++ conftest$ac_exeext conftest.$ac_ext
18039 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18040 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18041 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
18042 ++ cat >>confdefs.h <<_ACEOF
18043 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18046 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18047 +- echo "$ac_t""yes" 1>&6
18048 +- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18049 +- cat >> confdefs.h <<EOF
18050 +-#define $ac_tr_func 1
18054 +- echo "$ac_t""no" 1>&6
18058 +-echo $ac_n "checking for working mktime""... $ac_c" 1>&6
18059 +-echo "configure:6354: checking for working mktime" >&5
18060 +-if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
18061 +- echo $ac_n "(cached) $ac_c" 1>&6
18062 ++echo "$as_me:$LINENO: checking for working mktime" >&5
18063 ++echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
18064 ++if test "${ac_cv_func_working_mktime+set}" = set; then
18065 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
18067 + if test "$cross_compiling" = yes; then
18068 + ac_cv_func_working_mktime=no
18070 +- cat > conftest.$ac_ext <<EOF
18071 +-#line 6362 "configure"
18072 +-#include "confdefs.h"
18073 +-/* Test program from Paul Eggert (eggert@twinsun.com)
18074 +- and Tony Leneis (tony@plaza.ds.adp.com). */
18075 ++ cat >conftest.$ac_ext <<_ACEOF
18076 ++/* confdefs.h. */
18078 ++cat confdefs.h >>conftest.$ac_ext
18079 ++cat >>conftest.$ac_ext <<_ACEOF
18080 ++/* end confdefs.h. */
18081 ++/* Test program from Paul Eggert and Tony Leneis. */
18082 + #if TIME_WITH_SYS_TIME
18083 + # include <sys/time.h>
18084 + # include <time.h>
18085 +@@ -6373,6 +11834,10 @@
18089 ++#if HAVE_STDLIB_H
18090 ++# include <stdlib.h>
18093 + #if HAVE_UNISTD_H
18094 + # include <unistd.h>
18096 +@@ -6385,10 +11850,11 @@
18099 + static time_t time_t_max;
18100 ++static time_t time_t_min;
18102 + /* Values we'll use to set the TZ environment variable. */
18103 +-static const char *const tz_strings[] = {
18104 +- (const char *) 0, "TZ=GMT0", "TZ=JST-9",
18105 ++static char *tz_strings[] = {
18106 ++ (char *) 0, "TZ=GMT0", "TZ=JST-9",
18107 + "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18109 + #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18110 +@@ -6398,7 +11864,7 @@
18112 + spring_forward_gap ()
18114 +- /* glibc (up to about 1998-10-07) failed this test) */
18115 ++ /* glibc (up to about 1998-10-07) failed this test. */
18118 + /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18119 +@@ -6419,15 +11885,21 @@
18123 +-mktime_test (now)
18124 ++mktime_test1 (now)
18128 + if ((lt = localtime (&now)) && mktime (lt) != now)
18130 +- now = time_t_max - now;
18131 +- if ((lt = localtime (&now)) && mktime (lt) != now)
18136 ++mktime_test (now)
18139 ++ mktime_test1 (now);
18140 ++ mktime_test1 ((time_t) (time_t_max - now));
18141 ++ mktime_test1 ((time_t) (time_t_min + now));
18145 +@@ -6487,6 +11959,9 @@
18146 + for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
18149 ++ if ((time_t) -1 < 0)
18150 ++ for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
18152 + delta = time_t_max / 997; /* a suitable prime number */
18153 + for (i = 0; i < N_STRINGS; i++)
18155 +@@ -6495,219 +11970,555 @@
18157 + for (t = 0; t <= time_t_max - delta; t += delta)
18159 +- mktime_test ((time_t) 60 * 60);
18160 +- mktime_test ((time_t) 60 * 60 * 24);
18161 ++ mktime_test ((time_t) 1);
18162 ++ mktime_test ((time_t) (60 * 60));
18163 ++ mktime_test ((time_t) (60 * 60 * 24));
18165 + for (j = 1; 0 < j; j *= 2)
18166 +- bigtime_test (j);
18167 ++ bigtime_test (j);
18168 + bigtime_test (j - 1);
18171 + spring_forward_gap ();
18175 +-if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18178 ++rm -f conftest$ac_exeext
18179 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180 ++ (eval $ac_link) 2>&5
18182 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18184 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 ++ (eval $ac_try) 2>&5
18187 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 ++ (exit $ac_status); }; }; then
18189 + ac_cv_func_working_mktime=yes
18191 +- echo "configure: failed program was:" >&5
18192 +- cat conftest.$ac_ext >&5
18193 +- rm -fr conftest*
18194 +- ac_cv_func_working_mktime=no
18195 ++ echo "$as_me: program exited with status $ac_status" >&5
18196 ++echo "$as_me: failed program was:" >&5
18197 ++sed 's/^/| /' conftest.$ac_ext >&5
18199 ++( exit $ac_status )
18200 ++ac_cv_func_working_mktime=no
18203 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18208 +-echo "$ac_t""$ac_cv_func_working_mktime" 1>&6
18209 ++echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18210 ++echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
18211 + if test $ac_cv_func_working_mktime = no; then
18212 +- LIBOBJS="$LIBOBJS mktime.${ac_objext}"
18213 ++ case $LIBOBJS in
18214 ++ "mktime.$ac_objext" | \
18215 ++ *" mktime.$ac_objext" | \
18216 ++ "mktime.$ac_objext "* | \
18217 ++ *" mktime.$ac_objext "* ) ;;
18218 ++ *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
18223 + if test "$ac_cv_func_working_mktime" = no; then
18224 +- cat >> confdefs.h <<\EOF
18225 ++ cat >>confdefs.h <<\_ACEOF
18226 + #define BROKEN_MKTIME 1
18232 + ac_have_func=no # yes means we've found a way to get the load average.
18234 +-# Some systems have getloadavg without any extra libraries.
18235 +-echo $ac_n "checking for getloadavg""... $ac_c" 1>&6
18236 +-echo "configure:6541: checking for getloadavg" >&5
18237 +-if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then
18238 +- echo $ac_n "(cached) $ac_c" 1>&6
18240 +- cat > conftest.$ac_ext <<EOF
18241 +-#line 6546 "configure"
18242 +-#include "confdefs.h"
18243 ++# Make sure getloadavg.c is where it belongs, at configure-time.
18244 ++test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18245 ++ { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18246 ++echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18247 ++ { (exit 1); exit 1; }; }
18249 ++ac_save_LIBS=$LIBS
18251 ++# Check for getloadavg, but be sure not to touch the cache variable.
18252 ++(echo "$as_me:$LINENO: checking for getloadavg" >&5
18253 ++echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
18254 ++if test "${ac_cv_func_getloadavg+set}" = set; then
18255 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
18257 ++ cat >conftest.$ac_ext <<_ACEOF
18258 ++/* confdefs.h. */
18260 ++cat confdefs.h >>conftest.$ac_ext
18261 ++cat >>conftest.$ac_ext <<_ACEOF
18262 ++/* end confdefs.h. */
18263 ++/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18264 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
18265 ++#define getloadavg innocuous_getloadavg
18267 + /* System header to define __stub macros and hopefully few prototypes,
18268 +- which can conflict with char getloadavg(); below. */
18269 +-#include <assert.h>
18270 +-/* Override any gcc2 internal prototype to avoid an error. */
18271 +-/* We use char because int might match the return type of a gcc2
18272 +- builtin and then its argument prototype would still apply. */
18273 +-char getloadavg();
18274 ++ which can conflict with char getloadavg (); below.
18275 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18276 ++ <limits.h> exists even on freestanding compilers. */
18280 ++# include <limits.h>
18282 ++# include <assert.h>
18285 ++#undef getloadavg
18287 ++/* Override any gcc2 internal prototype to avoid an error. */
18288 ++#ifdef __cplusplus
18292 ++/* We use char because int might match the return type of a gcc2
18293 ++ builtin and then its argument prototype would still apply. */
18294 ++char getloadavg ();
18295 + /* The GNU C library defines this for functions which it implements
18296 + to always fail with ENOSYS. Some functions are actually named
18297 + something starting with __ and the normal name is an alias. */
18298 + #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
18302 ++char (*f) () = getloadavg;
18304 ++#ifdef __cplusplus
18311 ++return f != getloadavg;
18316 ++rm -f conftest.$ac_objext conftest$ac_exeext
18317 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18318 ++ (eval $ac_link) 2>conftest.er1
18320 ++ grep -v '^ *+' conftest.er1 >conftest.err
18321 ++ rm -f conftest.er1
18322 ++ cat conftest.err >&5
18323 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 ++ (exit $ac_status); } &&
18325 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18326 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327 ++ (eval $ac_try) 2>&5
18329 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 ++ (exit $ac_status); }; } &&
18331 ++ { ac_try='test -s conftest$ac_exeext'
18332 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 ++ (eval $ac_try) 2>&5
18335 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 ++ (exit $ac_status); }; }; then
18337 ++ ac_cv_func_getloadavg=yes
18339 ++ echo "$as_me: failed program was:" >&5
18340 ++sed 's/^/| /' conftest.$ac_ext >&5
18344 +-if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18345 +- rm -rf conftest*
18346 +- eval "ac_cv_func_getloadavg=yes"
18348 +- echo "configure: failed program was:" >&5
18349 +- cat conftest.$ac_ext >&5
18350 +- rm -rf conftest*
18351 +- eval "ac_cv_func_getloadavg=no"
18352 ++ac_cv_func_getloadavg=no
18355 ++rm -f conftest.err conftest.$ac_objext \
18356 ++ conftest$ac_exeext conftest.$ac_ext
18359 +-if eval "test \"`echo '$ac_cv_func_'getloadavg`\" = yes"; then
18360 +- echo "$ac_t""yes" 1>&6
18361 +- ac_have_func=yes
18362 ++echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18363 ++echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
18364 ++if test $ac_cv_func_getloadavg = yes; then
18367 +- echo "$ac_t""no" 1>&6
18370 ++) && ac_have_func=yes
18372 ++# On HPUX9, an unprivileged user can get load averages through this function.
18374 ++for ac_func in pstat_getdynamic
18376 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18377 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
18378 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18379 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
18380 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
18382 ++ cat >conftest.$ac_ext <<_ACEOF
18383 ++/* confdefs.h. */
18385 ++cat confdefs.h >>conftest.$ac_ext
18386 ++cat >>conftest.$ac_ext <<_ACEOF
18387 ++/* end confdefs.h. */
18388 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18389 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
18390 ++#define $ac_func innocuous_$ac_func
18392 ++/* System header to define __stub macros and hopefully few prototypes,
18393 ++ which can conflict with char $ac_func (); below.
18394 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395 ++ <limits.h> exists even on freestanding compilers. */
18398 ++# include <limits.h>
18400 ++# include <assert.h>
18405 ++/* Override any gcc2 internal prototype to avoid an error. */
18406 ++#ifdef __cplusplus
18410 ++/* We use char because int might match the return type of a gcc2
18411 ++ builtin and then its argument prototype would still apply. */
18412 ++char $ac_func ();
18413 ++/* The GNU C library defines this for functions which it implements
18414 ++ to always fail with ENOSYS. Some functions are actually named
18415 ++ something starting with __ and the normal name is an alias. */
18416 ++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18419 ++char (*f) () = $ac_func;
18421 ++#ifdef __cplusplus
18428 ++return f != $ac_func;
18433 ++rm -f conftest.$ac_objext conftest$ac_exeext
18434 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18435 ++ (eval $ac_link) 2>conftest.er1
18437 ++ grep -v '^ *+' conftest.er1 >conftest.err
18438 ++ rm -f conftest.er1
18439 ++ cat conftest.err >&5
18440 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 ++ (exit $ac_status); } &&
18442 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18443 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 ++ (eval $ac_try) 2>&5
18446 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 ++ (exit $ac_status); }; } &&
18448 ++ { ac_try='test -s conftest$ac_exeext'
18449 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450 ++ (eval $ac_try) 2>&5
18452 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 ++ (exit $ac_status); }; }; then
18454 ++ eval "$as_ac_var=yes"
18456 ++ echo "$as_me: failed program was:" >&5
18457 ++sed 's/^/| /' conftest.$ac_ext >&5
18459 ++eval "$as_ac_var=no"
18461 ++rm -f conftest.err conftest.$ac_objext \
18462 ++ conftest$ac_exeext conftest.$ac_ext
18464 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18465 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18466 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
18467 ++ cat >>confdefs.h <<_ACEOF
18468 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18475 ++# Solaris has libkstat which does not require root.
18477 ++echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18478 ++echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
18479 ++if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18480 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
18482 ++ ac_check_lib_save_LIBS=$LIBS
18483 ++LIBS="-lkstat $LIBS"
18484 ++cat >conftest.$ac_ext <<_ACEOF
18485 ++/* confdefs.h. */
18487 ++cat confdefs.h >>conftest.$ac_ext
18488 ++cat >>conftest.$ac_ext <<_ACEOF
18489 ++/* end confdefs.h. */
18491 ++/* Override any gcc2 internal prototype to avoid an error. */
18492 ++#ifdef __cplusplus
18495 ++/* We use char because int might match the return type of a gcc2
18496 ++ builtin and then its argument prototype would still apply. */
18497 ++char kstat_open ();
18506 ++rm -f conftest.$ac_objext conftest$ac_exeext
18507 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508 ++ (eval $ac_link) 2>conftest.er1
18510 ++ grep -v '^ *+' conftest.er1 >conftest.err
18511 ++ rm -f conftest.er1
18512 ++ cat conftest.err >&5
18513 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 ++ (exit $ac_status); } &&
18515 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18516 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517 ++ (eval $ac_try) 2>&5
18519 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 ++ (exit $ac_status); }; } &&
18521 ++ { ac_try='test -s conftest$ac_exeext'
18522 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 ++ (eval $ac_try) 2>&5
18525 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 ++ (exit $ac_status); }; }; then
18527 ++ ac_cv_lib_kstat_kstat_open=yes
18529 ++ echo "$as_me: failed program was:" >&5
18530 ++sed 's/^/| /' conftest.$ac_ext >&5
18532 ++ac_cv_lib_kstat_kstat_open=no
18534 ++rm -f conftest.err conftest.$ac_objext \
18535 ++ conftest$ac_exeext conftest.$ac_ext
18536 ++LIBS=$ac_check_lib_save_LIBS
18538 ++echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18539 ++echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
18540 ++if test $ac_cv_lib_kstat_kstat_open = yes; then
18541 ++ cat >>confdefs.h <<_ACEOF
18542 ++#define HAVE_LIBKSTAT 1
18545 ++ LIBS="-lkstat $LIBS"
18549 ++test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18551 ++# Some systems with -lutil have (and need) -lkvm as well, some do not.
18552 ++# On Solaris, -lkvm requires nlist from -lelf, so check that first
18553 ++# to get the right answer into the cache.
18554 ++# For kstat on solaris, we need libelf to force the definition of SVR4 below.
18555 + if test $ac_have_func = no; then
18556 +- # Some systems with -lutil have (and need) -lkvm as well, some do not.
18557 +- # On Solaris, -lkvm requires nlist from -lelf, so check that first
18558 +- # to get the right answer into the cache.
18559 +- echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
18560 +-echo "configure:6594: checking for elf_begin in -lelf" >&5
18561 +-ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
18562 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18563 +- echo $ac_n "(cached) $ac_c" 1>&6
18564 ++ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18565 ++echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18566 ++if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18567 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
18569 +- ac_save_LIBS="$LIBS"
18570 ++ ac_check_lib_save_LIBS=$LIBS
18571 + LIBS="-lelf $LIBS"
18572 +-cat > conftest.$ac_ext <<EOF
18573 +-#line 6602 "configure"
18574 +-#include "confdefs.h"
18575 +-/* Override any gcc2 internal prototype to avoid an error. */
18576 +-/* We use char because int might match the return type of a gcc2
18577 +- builtin and then its argument prototype would still apply. */
18578 +-char elf_begin();
18584 +-if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18585 +- rm -rf conftest*
18586 +- eval "ac_cv_lib_$ac_lib_var=yes"
18588 +- echo "configure: failed program was:" >&5
18589 +- cat conftest.$ac_ext >&5
18590 +- rm -rf conftest*
18591 +- eval "ac_cv_lib_$ac_lib_var=no"
18594 +-LIBS="$ac_save_LIBS"
18595 ++cat >conftest.$ac_ext <<_ACEOF
18596 ++/* confdefs.h. */
18598 ++cat confdefs.h >>conftest.$ac_ext
18599 ++cat >>conftest.$ac_ext <<_ACEOF
18600 ++/* end confdefs.h. */
18603 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18604 +- echo "$ac_t""yes" 1>&6
18605 ++/* Override any gcc2 internal prototype to avoid an error. */
18606 ++#ifdef __cplusplus
18609 ++/* We use char because int might match the return type of a gcc2
18610 ++ builtin and then its argument prototype would still apply. */
18611 ++char elf_begin ();
18620 ++rm -f conftest.$ac_objext conftest$ac_exeext
18621 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18622 ++ (eval $ac_link) 2>conftest.er1
18624 ++ grep -v '^ *+' conftest.er1 >conftest.err
18625 ++ rm -f conftest.er1
18626 ++ cat conftest.err >&5
18627 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 ++ (exit $ac_status); } &&
18629 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18630 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 ++ (eval $ac_try) 2>&5
18633 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 ++ (exit $ac_status); }; } &&
18635 ++ { ac_try='test -s conftest$ac_exeext'
18636 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 ++ (eval $ac_try) 2>&5
18639 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 ++ (exit $ac_status); }; }; then
18641 ++ ac_cv_lib_elf_elf_begin=yes
18643 ++ echo "$as_me: failed program was:" >&5
18644 ++sed 's/^/| /' conftest.$ac_ext >&5
18646 ++ac_cv_lib_elf_elf_begin=no
18648 ++rm -f conftest.err conftest.$ac_objext \
18649 ++ conftest$ac_exeext conftest.$ac_ext
18650 ++LIBS=$ac_check_lib_save_LIBS
18652 ++echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18653 ++echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18654 ++if test $ac_cv_lib_elf_elf_begin = yes; then
18655 + LIBS="-lelf $LIBS"
18657 +- echo "$ac_t""no" 1>&6
18660 +- echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
18661 +-echo "configure:6634: checking for kvm_open in -lkvm" >&5
18662 +-ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
18663 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18664 +- echo $ac_n "(cached) $ac_c" 1>&6
18666 ++if test $ac_have_func = no; then
18667 ++ echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18668 ++echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
18669 ++if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18670 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
18672 +- ac_save_LIBS="$LIBS"
18673 ++ ac_check_lib_save_LIBS=$LIBS
18674 + LIBS="-lkvm $LIBS"
18675 +-cat > conftest.$ac_ext <<EOF
18676 +-#line 6642 "configure"
18677 +-#include "confdefs.h"
18678 +-/* Override any gcc2 internal prototype to avoid an error. */
18679 +-/* We use char because int might match the return type of a gcc2
18680 +- builtin and then its argument prototype would still apply. */
18687 +-if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18688 +- rm -rf conftest*
18689 +- eval "ac_cv_lib_$ac_lib_var=yes"
18691 +- echo "configure: failed program was:" >&5
18692 +- cat conftest.$ac_ext >&5
18693 +- rm -rf conftest*
18694 +- eval "ac_cv_lib_$ac_lib_var=no"
18697 +-LIBS="$ac_save_LIBS"
18698 ++cat >conftest.$ac_ext <<_ACEOF
18699 ++/* confdefs.h. */
18701 ++cat confdefs.h >>conftest.$ac_ext
18702 ++cat >>conftest.$ac_ext <<_ACEOF
18703 ++/* end confdefs.h. */
18706 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18707 +- echo "$ac_t""yes" 1>&6
18708 ++/* Override any gcc2 internal prototype to avoid an error. */
18709 ++#ifdef __cplusplus
18712 ++/* We use char because int might match the return type of a gcc2
18713 ++ builtin and then its argument prototype would still apply. */
18714 ++char kvm_open ();
18723 ++rm -f conftest.$ac_objext conftest$ac_exeext
18724 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 ++ (eval $ac_link) 2>conftest.er1
18727 ++ grep -v '^ *+' conftest.er1 >conftest.err
18728 ++ rm -f conftest.er1
18729 ++ cat conftest.err >&5
18730 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 ++ (exit $ac_status); } &&
18732 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18733 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 ++ (eval $ac_try) 2>&5
18736 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 ++ (exit $ac_status); }; } &&
18738 ++ { ac_try='test -s conftest$ac_exeext'
18739 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 ++ (eval $ac_try) 2>&5
18742 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 ++ (exit $ac_status); }; }; then
18744 ++ ac_cv_lib_kvm_kvm_open=yes
18746 ++ echo "$as_me: failed program was:" >&5
18747 ++sed 's/^/| /' conftest.$ac_ext >&5
18749 ++ac_cv_lib_kvm_kvm_open=no
18751 ++rm -f conftest.err conftest.$ac_objext \
18752 ++ conftest$ac_exeext conftest.$ac_ext
18753 ++LIBS=$ac_check_lib_save_LIBS
18755 ++echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18756 ++echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
18757 ++if test $ac_cv_lib_kvm_kvm_open = yes; then
18758 + LIBS="-lkvm $LIBS"
18760 +- echo "$ac_t""no" 1>&6
18763 + # Check for the 4.4BSD definition of getloadavg.
18764 +- echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
18765 +-echo "configure:6675: checking for getloadavg in -lutil" >&5
18766 +-ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
18767 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18768 +- echo $ac_n "(cached) $ac_c" 1>&6
18769 ++ echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18770 ++echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
18771 ++if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18772 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
18774 +- ac_save_LIBS="$LIBS"
18775 ++ ac_check_lib_save_LIBS=$LIBS
18776 + LIBS="-lutil $LIBS"
18777 +-cat > conftest.$ac_ext <<EOF
18778 +-#line 6683 "configure"
18779 +-#include "confdefs.h"
18780 +-/* Override any gcc2 internal prototype to avoid an error. */
18781 +-/* We use char because int might match the return type of a gcc2
18782 +- builtin and then its argument prototype would still apply. */
18783 +-char getloadavg();
18789 +-if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18790 +- rm -rf conftest*
18791 +- eval "ac_cv_lib_$ac_lib_var=yes"
18793 +- echo "configure: failed program was:" >&5
18794 +- cat conftest.$ac_ext >&5
18795 +- rm -rf conftest*
18796 +- eval "ac_cv_lib_$ac_lib_var=no"
18799 +-LIBS="$ac_save_LIBS"
18800 ++cat >conftest.$ac_ext <<_ACEOF
18801 ++/* confdefs.h. */
18803 ++cat confdefs.h >>conftest.$ac_ext
18804 ++cat >>conftest.$ac_ext <<_ACEOF
18805 ++/* end confdefs.h. */
18808 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18809 +- echo "$ac_t""yes" 1>&6
18810 ++/* Override any gcc2 internal prototype to avoid an error. */
18811 ++#ifdef __cplusplus
18814 ++/* We use char because int might match the return type of a gcc2
18815 ++ builtin and then its argument prototype would still apply. */
18816 ++char getloadavg ();
18825 ++rm -f conftest.$ac_objext conftest$ac_exeext
18826 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18827 ++ (eval $ac_link) 2>conftest.er1
18829 ++ grep -v '^ *+' conftest.er1 >conftest.err
18830 ++ rm -f conftest.er1
18831 ++ cat conftest.err >&5
18832 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 ++ (exit $ac_status); } &&
18834 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18835 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 ++ (eval $ac_try) 2>&5
18838 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 ++ (exit $ac_status); }; } &&
18840 ++ { ac_try='test -s conftest$ac_exeext'
18841 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 ++ (eval $ac_try) 2>&5
18844 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 ++ (exit $ac_status); }; }; then
18846 ++ ac_cv_lib_util_getloadavg=yes
18848 ++ echo "$as_me: failed program was:" >&5
18849 ++sed 's/^/| /' conftest.$ac_ext >&5
18851 ++ac_cv_lib_util_getloadavg=no
18853 ++rm -f conftest.err conftest.$ac_objext \
18854 ++ conftest$ac_exeext conftest.$ac_ext
18855 ++LIBS=$ac_check_lib_save_LIBS
18857 ++echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18858 ++echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
18859 ++if test $ac_cv_lib_util_getloadavg = yes; then
18860 + LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18862 +- echo "$ac_t""no" 1>&6
18866 +@@ -6715,660 +12526,1830 @@
18867 + if test $ac_have_func = no; then
18868 + # There is a commonly available library for RS/6000 AIX.
18869 + # Since it is not a standard part of AIX, it might be installed locally.
18870 +- ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
18871 +- echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
18872 +-echo "configure:6721: checking for getloadavg in -lgetloadavg" >&5
18873 +-ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
18874 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18875 +- echo $ac_n "(cached) $ac_c" 1>&6
18876 ++ ac_getloadavg_LIBS=$LIBS
18877 ++ LIBS="-L/usr/local/lib $LIBS"
18878 ++ echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18879 ++echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
18880 ++if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18881 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
18883 +- ac_save_LIBS="$LIBS"
18884 ++ ac_check_lib_save_LIBS=$LIBS
18885 + LIBS="-lgetloadavg $LIBS"
18886 +-cat > conftest.$ac_ext <<EOF
18887 +-#line 6729 "configure"
18888 +-#include "confdefs.h"
18889 +-/* Override any gcc2 internal prototype to avoid an error. */
18890 +-/* We use char because int might match the return type of a gcc2
18891 +- builtin and then its argument prototype would still apply. */
18892 +-char getloadavg();
18898 +-if { (eval echo configure:6740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18899 +- rm -rf conftest*
18900 +- eval "ac_cv_lib_$ac_lib_var=yes"
18902 +- echo "configure: failed program was:" >&5
18903 +- cat conftest.$ac_ext >&5
18904 +- rm -rf conftest*
18905 +- eval "ac_cv_lib_$ac_lib_var=no"
18908 +-LIBS="$ac_save_LIBS"
18911 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18912 +- echo "$ac_t""yes" 1>&6
18913 +- LIBS="-lgetloadavg $LIBS"
18915 +- echo "$ac_t""no" 1>&6
18916 +-LIBS="$ac_getloadavg_LIBS"
18918 ++cat >conftest.$ac_ext <<_ACEOF
18919 ++/* confdefs.h. */
18921 ++cat confdefs.h >>conftest.$ac_ext
18922 ++cat >>conftest.$ac_ext <<_ACEOF
18923 ++/* end confdefs.h. */
18926 ++/* Override any gcc2 internal prototype to avoid an error. */
18927 ++#ifdef __cplusplus
18930 ++/* We use char because int might match the return type of a gcc2
18931 ++ builtin and then its argument prototype would still apply. */
18932 ++char getloadavg ();
18941 ++rm -f conftest.$ac_objext conftest$ac_exeext
18942 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18943 ++ (eval $ac_link) 2>conftest.er1
18945 ++ grep -v '^ *+' conftest.er1 >conftest.err
18946 ++ rm -f conftest.er1
18947 ++ cat conftest.err >&5
18948 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 ++ (exit $ac_status); } &&
18950 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18951 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 ++ (eval $ac_try) 2>&5
18954 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 ++ (exit $ac_status); }; } &&
18956 ++ { ac_try='test -s conftest$ac_exeext'
18957 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 ++ (eval $ac_try) 2>&5
18960 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 ++ (exit $ac_status); }; }; then
18962 ++ ac_cv_lib_getloadavg_getloadavg=yes
18964 ++ echo "$as_me: failed program was:" >&5
18965 ++sed 's/^/| /' conftest.$ac_ext >&5
18967 ++ac_cv_lib_getloadavg_getloadavg=no
18969 ++rm -f conftest.err conftest.$ac_objext \
18970 ++ conftest$ac_exeext conftest.$ac_ext
18971 ++LIBS=$ac_check_lib_save_LIBS
18973 ++echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18974 ++echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
18975 ++if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18976 ++ LIBS="-lgetloadavg $LIBS"
18978 ++ LIBS=$ac_getloadavg_LIBS
18983 ++# Make sure it is really in the library, if we think we found it,
18984 ++# otherwise set up the replacement function.
18986 +-# Make sure it is really in the library, if we think we found it.
18987 + for ac_func in getloadavg
18989 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18990 +-echo "configure:6767: checking for $ac_func" >&5
18991 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18992 +- echo $ac_n "(cached) $ac_c" 1>&6
18994 +- cat > conftest.$ac_ext <<EOF
18995 +-#line 6772 "configure"
18996 +-#include "confdefs.h"
18997 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18998 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
18999 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19000 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
19001 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
19003 ++ cat >conftest.$ac_ext <<_ACEOF
19004 ++/* confdefs.h. */
19006 ++cat confdefs.h >>conftest.$ac_ext
19007 ++cat >>conftest.$ac_ext <<_ACEOF
19008 ++/* end confdefs.h. */
19009 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19010 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
19011 ++#define $ac_func innocuous_$ac_func
19013 + /* System header to define __stub macros and hopefully few prototypes,
19014 +- which can conflict with char $ac_func(); below. */
19015 +-#include <assert.h>
19016 +-/* Override any gcc2 internal prototype to avoid an error. */
19017 +-/* We use char because int might match the return type of a gcc2
19018 +- builtin and then its argument prototype would still apply. */
19020 ++ which can conflict with char $ac_func (); below.
19021 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19022 ++ <limits.h> exists even on freestanding compilers. */
19025 ++# include <limits.h>
19027 ++# include <assert.h>
19033 ++/* Override any gcc2 internal prototype to avoid an error. */
19034 ++#ifdef __cplusplus
19038 ++/* We use char because int might match the return type of a gcc2
19039 ++ builtin and then its argument prototype would still apply. */
19040 ++char $ac_func ();
19041 + /* The GNU C library defines this for functions which it implements
19042 + to always fail with ENOSYS. Some functions are actually named
19043 + something starting with __ and the normal name is an alias. */
19044 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19048 ++char (*f) () = $ac_func;
19050 ++#ifdef __cplusplus
19056 +-if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19057 +- rm -rf conftest*
19058 +- eval "ac_cv_func_$ac_func=yes"
19060 +- echo "configure: failed program was:" >&5
19061 +- cat conftest.$ac_ext >&5
19062 +- rm -rf conftest*
19063 +- eval "ac_cv_func_$ac_func=no"
19070 ++return f != $ac_func;
19075 ++rm -f conftest.$ac_objext conftest$ac_exeext
19076 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077 ++ (eval $ac_link) 2>conftest.er1
19079 ++ grep -v '^ *+' conftest.er1 >conftest.err
19080 ++ rm -f conftest.er1
19081 ++ cat conftest.err >&5
19082 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 ++ (exit $ac_status); } &&
19084 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19085 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 ++ (eval $ac_try) 2>&5
19088 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 ++ (exit $ac_status); }; } &&
19090 ++ { ac_try='test -s conftest$ac_exeext'
19091 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 ++ (eval $ac_try) 2>&5
19094 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 ++ (exit $ac_status); }; }; then
19096 ++ eval "$as_ac_var=yes"
19098 ++ echo "$as_me: failed program was:" >&5
19099 ++sed 's/^/| /' conftest.$ac_ext >&5
19101 ++eval "$as_ac_var=no"
19103 ++rm -f conftest.err conftest.$ac_objext \
19104 ++ conftest$ac_exeext conftest.$ac_ext
19106 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19107 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19108 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
19109 ++ cat >>confdefs.h <<_ACEOF
19110 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19114 ++ case $LIBOBJS in
19115 ++ "getloadavg.$ac_objext" | \
19116 ++ *" getloadavg.$ac_objext" | \
19117 ++ "getloadavg.$ac_objext "* | \
19118 ++ *" getloadavg.$ac_objext "* ) ;;
19119 ++ *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
19122 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19123 +- echo "$ac_t""yes" 1>&6
19124 +- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19125 +- cat >> confdefs.h <<EOF
19126 +-#define $ac_tr_func 1
19130 ++cat >>confdefs.h <<\_ACEOF
19131 ++#define C_GETLOADAVG 1
19134 ++# Figure out what our getloadavg.c needs.
19136 ++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19137 ++ echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19138 ++echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
19139 ++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19140 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
19142 ++echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19143 ++echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
19145 ++ # Is the header compilable?
19146 ++echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19147 ++echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
19148 ++cat >conftest.$ac_ext <<_ACEOF
19149 ++/* confdefs.h. */
19151 ++cat confdefs.h >>conftest.$ac_ext
19152 ++cat >>conftest.$ac_ext <<_ACEOF
19153 ++/* end confdefs.h. */
19154 ++$ac_includes_default
19155 ++#include <sys/dg_sys_info.h>
19157 ++rm -f conftest.$ac_objext
19158 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 ++ (eval $ac_compile) 2>conftest.er1
19161 ++ grep -v '^ *+' conftest.er1 >conftest.err
19162 ++ rm -f conftest.er1
19163 ++ cat conftest.err >&5
19164 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 ++ (exit $ac_status); } &&
19166 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19167 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 ++ (eval $ac_try) 2>&5
19170 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 ++ (exit $ac_status); }; } &&
19172 ++ { ac_try='test -s conftest.$ac_objext'
19173 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 ++ (eval $ac_try) 2>&5
19176 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 ++ (exit $ac_status); }; }; then
19178 ++ ac_header_compiler=yes
19180 ++ echo "$as_me: failed program was:" >&5
19181 ++sed 's/^/| /' conftest.$ac_ext >&5
19183 ++ac_header_compiler=no
19185 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19186 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19187 ++echo "${ECHO_T}$ac_header_compiler" >&6
19189 ++# Is the header present?
19190 ++echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19191 ++echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
19192 ++cat >conftest.$ac_ext <<_ACEOF
19193 ++/* confdefs.h. */
19195 ++cat confdefs.h >>conftest.$ac_ext
19196 ++cat >>conftest.$ac_ext <<_ACEOF
19197 ++/* end confdefs.h. */
19198 ++#include <sys/dg_sys_info.h>
19200 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19201 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19203 ++ grep -v '^ *+' conftest.er1 >conftest.err
19204 ++ rm -f conftest.er1
19205 ++ cat conftest.err >&5
19206 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 ++ (exit $ac_status); } >/dev/null; then
19208 ++ if test -s conftest.err; then
19209 ++ ac_cpp_err=$ac_c_preproc_warn_flag
19210 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19215 +- echo "$ac_t""no" 1>&6
19216 +-LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
19223 +-if test $ac_cv_func_getloadavg = yes; then
19224 +- cat >> confdefs.h <<\EOF
19225 +-#define HAVE_GETLOADAVG 1
19227 ++if test -z "$ac_cpp_err"; then
19228 ++ ac_header_preproc=yes
19230 ++ echo "$as_me: failed program was:" >&5
19231 ++sed 's/^/| /' conftest.$ac_ext >&5
19233 +- ac_have_func=yes
19234 ++ ac_header_preproc=no
19236 ++rm -f conftest.err conftest.$ac_ext
19237 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19238 ++echo "${ECHO_T}$ac_header_preproc" >&6
19240 ++# So? What about this header?
19241 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19243 ++ { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19244 ++echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19245 ++ { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19246 ++echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19247 ++ ac_header_preproc=yes
19250 ++ { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19251 ++echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19252 ++ { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19253 ++echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19254 ++ { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19255 ++echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19256 ++ { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19257 ++echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19258 ++ { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19259 ++echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19260 ++ { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19261 ++echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19264 ++## ------------------------------------------ ##
19265 ++## Report this to the AC_PACKAGE_NAME lists. ##
19266 ++## ------------------------------------------ ##
19269 ++ sed "s/^/$as_me: WARNING: /" >&2
19272 ++echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19273 ++echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
19274 ++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19275 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
19277 +- # Figure out what our getloadavg.c needs.
19279 +- ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
19280 +-echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
19281 +-echo "configure:6833: checking for sys/dg_sys_info.h" >&5
19282 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19283 +- echo $ac_n "(cached) $ac_c" 1>&6
19285 +- cat > conftest.$ac_ext <<EOF
19286 +-#line 6838 "configure"
19287 +-#include "confdefs.h"
19288 +-#include <sys/dg_sys_info.h>
19290 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19291 +-{ (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19292 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19293 +-if test -z "$ac_err"; then
19294 +- rm -rf conftest*
19295 +- eval "ac_cv_header_$ac_safe=yes"
19297 +- echo "$ac_err" >&5
19298 +- echo "configure: failed program was:" >&5
19299 +- cat conftest.$ac_ext >&5
19300 +- rm -rf conftest*
19301 +- eval "ac_cv_header_$ac_safe=no"
19302 ++ ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19305 ++echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19306 ++echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
19309 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19310 +- echo "$ac_t""yes" 1>&6
19311 +- ac_have_func=yes; cat >> confdefs.h <<\EOF
19312 ++if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19313 ++ ac_have_func=yes
19315 ++cat >>confdefs.h <<\_ACEOF
19320 +- echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
19321 +-echo "configure:6864: checking for dg_sys_info in -ldgc" >&5
19322 +-ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
19323 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19324 +- echo $ac_n "(cached) $ac_c" 1>&6
19326 ++echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19327 ++echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
19328 ++if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19329 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
19331 +- ac_save_LIBS="$LIBS"
19332 ++ ac_check_lib_save_LIBS=$LIBS
19333 + LIBS="-ldgc $LIBS"
19334 +-cat > conftest.$ac_ext <<EOF
19335 +-#line 6872 "configure"
19336 +-#include "confdefs.h"
19337 +-/* Override any gcc2 internal prototype to avoid an error. */
19338 +-/* We use char because int might match the return type of a gcc2
19339 +- builtin and then its argument prototype would still apply. */
19340 +-char dg_sys_info();
19346 +-if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19347 +- rm -rf conftest*
19348 +- eval "ac_cv_lib_$ac_lib_var=yes"
19350 +- echo "configure: failed program was:" >&5
19351 +- cat conftest.$ac_ext >&5
19352 +- rm -rf conftest*
19353 +- eval "ac_cv_lib_$ac_lib_var=no"
19354 ++cat >conftest.$ac_ext <<_ACEOF
19355 ++/* confdefs.h. */
19357 ++cat confdefs.h >>conftest.$ac_ext
19358 ++cat >>conftest.$ac_ext <<_ACEOF
19359 ++/* end confdefs.h. */
19361 ++/* Override any gcc2 internal prototype to avoid an error. */
19362 ++#ifdef __cplusplus
19365 ++/* We use char because int might match the return type of a gcc2
19366 ++ builtin and then its argument prototype would still apply. */
19367 ++char dg_sys_info ();
19376 ++rm -f conftest.$ac_objext conftest$ac_exeext
19377 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19378 ++ (eval $ac_link) 2>conftest.er1
19380 ++ grep -v '^ *+' conftest.er1 >conftest.err
19381 ++ rm -f conftest.er1
19382 ++ cat conftest.err >&5
19383 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 ++ (exit $ac_status); } &&
19385 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19386 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 ++ (eval $ac_try) 2>&5
19389 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 ++ (exit $ac_status); }; } &&
19391 ++ { ac_try='test -s conftest$ac_exeext'
19392 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 ++ (eval $ac_try) 2>&5
19395 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 ++ (exit $ac_status); }; }; then
19397 ++ ac_cv_lib_dgc_dg_sys_info=yes
19399 ++ echo "$as_me: failed program was:" >&5
19400 ++sed 's/^/| /' conftest.$ac_ext >&5
19402 ++ac_cv_lib_dgc_dg_sys_info=no
19404 ++rm -f conftest.err conftest.$ac_objext \
19405 ++ conftest$ac_exeext conftest.$ac_ext
19406 ++LIBS=$ac_check_lib_save_LIBS
19408 ++echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19409 ++echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
19410 ++if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19411 ++ cat >>confdefs.h <<_ACEOF
19412 ++#define HAVE_LIBDGC 1
19415 ++ LIBS="-ldgc $LIBS"
19419 +-LIBS="$ac_save_LIBS"
19422 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19423 +- echo "$ac_t""yes" 1>&6
19424 +- ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19425 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19426 +- cat >> confdefs.h <<EOF
19427 +-#define $ac_tr_lib 1
19430 +- LIBS="-ldgc $LIBS"
19433 ++if test "${ac_cv_header_locale_h+set}" = set; then
19434 ++ echo "$as_me:$LINENO: checking for locale.h" >&5
19435 ++echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
19436 ++if test "${ac_cv_header_locale_h+set}" = set; then
19437 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
19439 ++echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19440 ++echo "${ECHO_T}$ac_cv_header_locale_h" >&6
19442 ++ # Is the header compilable?
19443 ++echo "$as_me:$LINENO: checking locale.h usability" >&5
19444 ++echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
19445 ++cat >conftest.$ac_ext <<_ACEOF
19446 ++/* confdefs.h. */
19448 ++cat confdefs.h >>conftest.$ac_ext
19449 ++cat >>conftest.$ac_ext <<_ACEOF
19450 ++/* end confdefs.h. */
19451 ++$ac_includes_default
19452 ++#include <locale.h>
19454 ++rm -f conftest.$ac_objext
19455 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19456 ++ (eval $ac_compile) 2>conftest.er1
19458 ++ grep -v '^ *+' conftest.er1 >conftest.err
19459 ++ rm -f conftest.er1
19460 ++ cat conftest.err >&5
19461 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 ++ (exit $ac_status); } &&
19463 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19464 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 ++ (eval $ac_try) 2>&5
19467 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 ++ (exit $ac_status); }; } &&
19469 ++ { ac_try='test -s conftest.$ac_objext'
19470 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 ++ (eval $ac_try) 2>&5
19473 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 ++ (exit $ac_status); }; }; then
19475 ++ ac_header_compiler=yes
19477 ++ echo "$as_me: failed program was:" >&5
19478 ++sed 's/^/| /' conftest.$ac_ext >&5
19480 ++ac_header_compiler=no
19482 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19483 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19484 ++echo "${ECHO_T}$ac_header_compiler" >&6
19486 ++# Is the header present?
19487 ++echo "$as_me:$LINENO: checking locale.h presence" >&5
19488 ++echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
19489 ++cat >conftest.$ac_ext <<_ACEOF
19490 ++/* confdefs.h. */
19492 ++cat confdefs.h >>conftest.$ac_ext
19493 ++cat >>conftest.$ac_ext <<_ACEOF
19494 ++/* end confdefs.h. */
19495 ++#include <locale.h>
19497 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19498 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19500 ++ grep -v '^ *+' conftest.er1 >conftest.err
19501 ++ rm -f conftest.er1
19502 ++ cat conftest.err >&5
19503 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 ++ (exit $ac_status); } >/dev/null; then
19505 ++ if test -s conftest.err; then
19506 ++ ac_cpp_err=$ac_c_preproc_warn_flag
19507 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19512 +- echo "$ac_t""no" 1>&6
19515 ++if test -z "$ac_cpp_err"; then
19516 ++ ac_header_preproc=yes
19518 ++ echo "$as_me: failed program was:" >&5
19519 ++sed 's/^/| /' conftest.$ac_ext >&5
19521 ++ ac_header_preproc=no
19523 ++rm -f conftest.err conftest.$ac_ext
19524 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19525 ++echo "${ECHO_T}$ac_header_preproc" >&6
19527 ++# So? What about this header?
19528 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19530 ++ { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19531 ++echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19532 ++ { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19533 ++echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19534 ++ ac_header_preproc=yes
19537 ++ { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19538 ++echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19539 ++ { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19540 ++echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19541 ++ { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19542 ++echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19543 ++ { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19544 ++echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19545 ++ { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19546 ++echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19547 ++ { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19548 ++echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19551 ++## ------------------------------------------ ##
19552 ++## Report this to the AC_PACKAGE_NAME lists. ##
19553 ++## ------------------------------------------ ##
19556 ++ sed "s/^/$as_me: WARNING: /" >&2
19559 ++echo "$as_me:$LINENO: checking for locale.h" >&5
19560 ++echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
19561 ++if test "${ac_cv_header_locale_h+set}" = set; then
19562 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
19564 +- echo "$ac_t""no" 1>&6
19565 ++ ac_cv_header_locale_h=$ac_header_preproc
19567 ++echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19568 ++echo "${ECHO_T}$ac_cv_header_locale_h" >&6
19574 ++for ac_func in setlocale
19576 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19577 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
19578 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19579 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
19580 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
19582 ++ cat >conftest.$ac_ext <<_ACEOF
19583 ++/* confdefs.h. */
19585 ++cat confdefs.h >>conftest.$ac_ext
19586 ++cat >>conftest.$ac_ext <<_ACEOF
19587 ++/* end confdefs.h. */
19588 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19589 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
19590 ++#define $ac_func innocuous_$ac_func
19592 ++/* System header to define __stub macros and hopefully few prototypes,
19593 ++ which can conflict with char $ac_func (); below.
19594 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19595 ++ <limits.h> exists even on freestanding compilers. */
19598 ++# include <limits.h>
19600 ++# include <assert.h>
19605 ++/* Override any gcc2 internal prototype to avoid an error. */
19606 ++#ifdef __cplusplus
19610 ++/* We use char because int might match the return type of a gcc2
19611 ++ builtin and then its argument prototype would still apply. */
19612 ++char $ac_func ();
19613 ++/* The GNU C library defines this for functions which it implements
19614 ++ to always fail with ENOSYS. Some functions are actually named
19615 ++ something starting with __ and the normal name is an alias. */
19616 ++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19619 ++char (*f) () = $ac_func;
19621 ++#ifdef __cplusplus
19628 ++return f != $ac_func;
19633 ++rm -f conftest.$ac_objext conftest$ac_exeext
19634 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635 ++ (eval $ac_link) 2>conftest.er1
19637 ++ grep -v '^ *+' conftest.er1 >conftest.err
19638 ++ rm -f conftest.er1
19639 ++ cat conftest.err >&5
19640 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 ++ (exit $ac_status); } &&
19642 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19643 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 ++ (eval $ac_try) 2>&5
19646 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 ++ (exit $ac_status); }; } &&
19648 ++ { ac_try='test -s conftest$ac_exeext'
19649 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 ++ (eval $ac_try) 2>&5
19652 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 ++ (exit $ac_status); }; }; then
19654 ++ eval "$as_ac_var=yes"
19656 ++ echo "$as_me: failed program was:" >&5
19657 ++sed 's/^/| /' conftest.$ac_ext >&5
19659 ++eval "$as_ac_var=no"
19661 ++rm -f conftest.err conftest.$ac_objext \
19662 ++ conftest$ac_exeext conftest.$ac_ext
19664 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19665 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19666 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
19667 ++ cat >>confdefs.h <<_ACEOF
19668 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19675 +- # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19676 +- # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19677 +- # Irix 4.0.5F has the header but not the library.
19678 +- if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then
19679 +- ac_have_func=yes; cat >> confdefs.h <<\EOF
19680 ++# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19681 ++# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19682 ++# Irix 4.0.5F has the header but not the library.
19683 ++if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19684 ++ ac_have_func=yes
19686 ++cat >>confdefs.h <<\_ACEOF
19693 ++if test $ac_have_func = no; then
19694 ++ if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19695 ++ echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19696 ++echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
19697 ++if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19698 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
19700 ++echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19701 ++echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
19703 ++ # Is the header compilable?
19704 ++echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19705 ++echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
19706 ++cat >conftest.$ac_ext <<_ACEOF
19707 ++/* confdefs.h. */
19709 ++cat confdefs.h >>conftest.$ac_ext
19710 ++cat >>conftest.$ac_ext <<_ACEOF
19711 ++/* end confdefs.h. */
19712 ++$ac_includes_default
19713 ++#include <inq_stats/cpustats.h>
19715 ++rm -f conftest.$ac_objext
19716 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 ++ (eval $ac_compile) 2>conftest.er1
19719 ++ grep -v '^ *+' conftest.er1 >conftest.err
19720 ++ rm -f conftest.er1
19721 ++ cat conftest.err >&5
19722 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 ++ (exit $ac_status); } &&
19724 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 ++ (eval $ac_try) 2>&5
19728 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 ++ (exit $ac_status); }; } &&
19730 ++ { ac_try='test -s conftest.$ac_objext'
19731 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 ++ (eval $ac_try) 2>&5
19734 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 ++ (exit $ac_status); }; }; then
19736 ++ ac_header_compiler=yes
19738 ++ echo "$as_me: failed program was:" >&5
19739 ++sed 's/^/| /' conftest.$ac_ext >&5
19741 ++ac_header_compiler=no
19743 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19744 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19745 ++echo "${ECHO_T}$ac_header_compiler" >&6
19747 ++# Is the header present?
19748 ++echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19749 ++echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
19750 ++cat >conftest.$ac_ext <<_ACEOF
19751 ++/* confdefs.h. */
19753 ++cat confdefs.h >>conftest.$ac_ext
19754 ++cat >>conftest.$ac_ext <<_ACEOF
19755 ++/* end confdefs.h. */
19756 ++#include <inq_stats/cpustats.h>
19758 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19759 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19761 ++ grep -v '^ *+' conftest.er1 >conftest.err
19762 ++ rm -f conftest.er1
19763 ++ cat conftest.err >&5
19764 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 ++ (exit $ac_status); } >/dev/null; then
19766 ++ if test -s conftest.err; then
19767 ++ ac_cpp_err=$ac_c_preproc_warn_flag
19768 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19775 ++if test -z "$ac_cpp_err"; then
19776 ++ ac_header_preproc=yes
19778 ++ echo "$as_me: failed program was:" >&5
19779 ++sed 's/^/| /' conftest.$ac_ext >&5
19781 +- if test $ac_have_func = no; then
19782 +- ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
19783 +-echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
19784 +-echo "configure:6928: checking for inq_stats/cpustats.h" >&5
19785 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19786 +- echo $ac_n "(cached) $ac_c" 1>&6
19787 ++ ac_header_preproc=no
19789 ++rm -f conftest.err conftest.$ac_ext
19790 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19791 ++echo "${ECHO_T}$ac_header_preproc" >&6
19793 ++# So? What about this header?
19794 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19796 ++ { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19797 ++echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19798 ++ { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19799 ++echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19800 ++ ac_header_preproc=yes
19803 ++ { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19804 ++echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19805 ++ { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19806 ++echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19807 ++ { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19808 ++echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19809 ++ { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19810 ++echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19811 ++ { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19812 ++echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19813 ++ { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19814 ++echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19817 ++## ------------------------------------------ ##
19818 ++## Report this to the AC_PACKAGE_NAME lists. ##
19819 ++## ------------------------------------------ ##
19822 ++ sed "s/^/$as_me: WARNING: /" >&2
19825 ++echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19826 ++echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
19827 ++if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19828 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
19830 +- cat > conftest.$ac_ext <<EOF
19831 +-#line 6933 "configure"
19832 +-#include "confdefs.h"
19833 +-#include <inq_stats/cpustats.h>
19835 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19836 +-{ (eval echo configure:6938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19837 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19838 +-if test -z "$ac_err"; then
19839 +- rm -rf conftest*
19840 +- eval "ac_cv_header_$ac_safe=yes"
19842 +- echo "$ac_err" >&5
19843 +- echo "configure: failed program was:" >&5
19844 +- cat conftest.$ac_ext >&5
19845 +- rm -rf conftest*
19846 +- eval "ac_cv_header_$ac_safe=no"
19847 ++ ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19850 ++echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19851 ++echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
19854 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19855 +- echo "$ac_t""yes" 1>&6
19856 +- ac_have_func=yes; cat >> confdefs.h <<\EOF
19857 ++if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19858 ++ ac_have_func=yes
19860 ++cat >>confdefs.h <<\_ACEOF
19865 +- cat >> confdefs.h <<\EOF
19867 ++cat >>confdefs.h <<\_ACEOF
19868 + #define UMAX4_3 1
19876 +- echo "$ac_t""no" 1>&6
19879 ++if test $ac_have_func = no; then
19880 ++ if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19881 ++ echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19882 ++echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
19883 ++if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19884 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
19886 ++echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19887 ++echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
19889 ++ # Is the header compilable?
19890 ++echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19891 ++echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
19892 ++cat >conftest.$ac_ext <<_ACEOF
19893 ++/* confdefs.h. */
19895 ++cat confdefs.h >>conftest.$ac_ext
19896 ++cat >>conftest.$ac_ext <<_ACEOF
19897 ++/* end confdefs.h. */
19898 ++$ac_includes_default
19899 ++#include <sys/cpustats.h>
19901 ++rm -f conftest.$ac_objext
19902 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903 ++ (eval $ac_compile) 2>conftest.er1
19905 ++ grep -v '^ *+' conftest.er1 >conftest.err
19906 ++ rm -f conftest.er1
19907 ++ cat conftest.err >&5
19908 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 ++ (exit $ac_status); } &&
19910 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19911 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 ++ (eval $ac_try) 2>&5
19914 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 ++ (exit $ac_status); }; } &&
19916 ++ { ac_try='test -s conftest.$ac_objext'
19917 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 ++ (eval $ac_try) 2>&5
19920 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 ++ (exit $ac_status); }; }; then
19922 ++ ac_header_compiler=yes
19924 ++ echo "$as_me: failed program was:" >&5
19925 ++sed 's/^/| /' conftest.$ac_ext >&5
19927 ++ac_header_compiler=no
19929 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19930 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19931 ++echo "${ECHO_T}$ac_header_compiler" >&6
19933 ++# Is the header present?
19934 ++echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19935 ++echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
19936 ++cat >conftest.$ac_ext <<_ACEOF
19937 ++/* confdefs.h. */
19939 ++cat confdefs.h >>conftest.$ac_ext
19940 ++cat >>conftest.$ac_ext <<_ACEOF
19941 ++/* end confdefs.h. */
19942 ++#include <sys/cpustats.h>
19944 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19945 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19947 ++ grep -v '^ *+' conftest.er1 >conftest.err
19948 ++ rm -f conftest.er1
19949 ++ cat conftest.err >&5
19950 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 ++ (exit $ac_status); } >/dev/null; then
19952 ++ if test -s conftest.err; then
19953 ++ ac_cpp_err=$ac_c_preproc_warn_flag
19954 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19961 ++if test -z "$ac_cpp_err"; then
19962 ++ ac_header_preproc=yes
19964 ++ echo "$as_me: failed program was:" >&5
19965 ++sed 's/^/| /' conftest.$ac_ext >&5
19967 +- if test $ac_have_func = no; then
19968 +- ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
19969 +-echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
19970 +-echo "configure:6971: checking for sys/cpustats.h" >&5
19971 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19972 +- echo $ac_n "(cached) $ac_c" 1>&6
19973 ++ ac_header_preproc=no
19975 ++rm -f conftest.err conftest.$ac_ext
19976 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19977 ++echo "${ECHO_T}$ac_header_preproc" >&6
19979 ++# So? What about this header?
19980 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19982 ++ { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19983 ++echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19984 ++ { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19985 ++echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19986 ++ ac_header_preproc=yes
19989 ++ { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19990 ++echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19991 ++ { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19992 ++echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19993 ++ { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19994 ++echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19995 ++ { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19996 ++echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19997 ++ { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19998 ++echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19999 ++ { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
20000 ++echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
20003 ++## ------------------------------------------ ##
20004 ++## Report this to the AC_PACKAGE_NAME lists. ##
20005 ++## ------------------------------------------ ##
20008 ++ sed "s/^/$as_me: WARNING: /" >&2
20011 ++echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
20012 ++echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
20013 ++if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
20014 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20016 +- cat > conftest.$ac_ext <<EOF
20017 +-#line 6976 "configure"
20018 +-#include "confdefs.h"
20019 +-#include <sys/cpustats.h>
20021 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20022 +-{ (eval echo configure:6981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20023 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20024 +-if test -z "$ac_err"; then
20025 +- rm -rf conftest*
20026 +- eval "ac_cv_header_$ac_safe=yes"
20028 +- echo "$ac_err" >&5
20029 +- echo "configure: failed program was:" >&5
20030 +- cat conftest.$ac_ext >&5
20031 +- rm -rf conftest*
20032 +- eval "ac_cv_header_$ac_safe=no"
20033 ++ ac_cv_header_sys_cpustats_h=$ac_header_preproc
20036 ++echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
20037 ++echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
20040 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20041 +- echo "$ac_t""yes" 1>&6
20042 +- ac_have_func=yes; cat >> confdefs.h <<\EOF
20043 ++if test $ac_cv_header_sys_cpustats_h = yes; then
20044 ++ ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
20050 +- echo "$ac_t""no" 1>&6
20055 +- if test $ac_have_func = no; then
20056 +- for ac_hdr in mach/mach.h
20059 ++if test $ac_have_func = no; then
20061 ++for ac_header in mach/mach.h
20063 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20064 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20065 +-echo "configure:7012: checking for $ac_hdr" >&5
20066 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20067 +- echo $ac_n "(cached) $ac_c" 1>&6
20068 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20069 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20070 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
20071 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20072 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20073 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20075 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20076 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20078 ++ # Is the header compilable?
20079 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
20080 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20081 ++cat >conftest.$ac_ext <<_ACEOF
20082 ++/* confdefs.h. */
20084 ++cat confdefs.h >>conftest.$ac_ext
20085 ++cat >>conftest.$ac_ext <<_ACEOF
20086 ++/* end confdefs.h. */
20087 ++$ac_includes_default
20088 ++#include <$ac_header>
20090 ++rm -f conftest.$ac_objext
20091 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20092 ++ (eval $ac_compile) 2>conftest.er1
20094 ++ grep -v '^ *+' conftest.er1 >conftest.err
20095 ++ rm -f conftest.er1
20096 ++ cat conftest.err >&5
20097 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 ++ (exit $ac_status); } &&
20099 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20100 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 ++ (eval $ac_try) 2>&5
20103 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 ++ (exit $ac_status); }; } &&
20105 ++ { ac_try='test -s conftest.$ac_objext'
20106 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 ++ (eval $ac_try) 2>&5
20109 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 ++ (exit $ac_status); }; }; then
20111 ++ ac_header_compiler=yes
20113 ++ echo "$as_me: failed program was:" >&5
20114 ++sed 's/^/| /' conftest.$ac_ext >&5
20116 ++ac_header_compiler=no
20118 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20119 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20120 ++echo "${ECHO_T}$ac_header_compiler" >&6
20122 ++# Is the header present?
20123 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
20124 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20125 ++cat >conftest.$ac_ext <<_ACEOF
20126 ++/* confdefs.h. */
20128 ++cat confdefs.h >>conftest.$ac_ext
20129 ++cat >>conftest.$ac_ext <<_ACEOF
20130 ++/* end confdefs.h. */
20131 ++#include <$ac_header>
20133 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20134 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20136 ++ grep -v '^ *+' conftest.er1 >conftest.err
20137 ++ rm -f conftest.er1
20138 ++ cat conftest.err >&5
20139 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 ++ (exit $ac_status); } >/dev/null; then
20141 ++ if test -s conftest.err; then
20142 ++ ac_cpp_err=$ac_c_preproc_warn_flag
20143 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20150 ++if test -z "$ac_cpp_err"; then
20151 ++ ac_header_preproc=yes
20153 +- cat > conftest.$ac_ext <<EOF
20154 +-#line 7017 "configure"
20155 +-#include "confdefs.h"
20156 +-#include <$ac_hdr>
20158 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20159 +-{ (eval echo configure:7022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20160 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20161 +-if test -z "$ac_err"; then
20162 +- rm -rf conftest*
20163 +- eval "ac_cv_header_$ac_safe=yes"
20164 ++ echo "$as_me: failed program was:" >&5
20165 ++sed 's/^/| /' conftest.$ac_ext >&5
20167 ++ ac_header_preproc=no
20169 ++rm -f conftest.err conftest.$ac_ext
20170 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20171 ++echo "${ECHO_T}$ac_header_preproc" >&6
20173 ++# So? What about this header?
20174 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20176 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20177 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20178 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20179 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20180 ++ ac_header_preproc=yes
20183 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20184 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20185 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20186 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20187 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20188 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20189 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20190 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20191 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20192 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20193 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20194 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20197 ++## ------------------------------------------ ##
20198 ++## Report this to the AC_PACKAGE_NAME lists. ##
20199 ++## ------------------------------------------ ##
20202 ++ sed "s/^/$as_me: WARNING: /" >&2
20205 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
20206 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20207 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20208 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20210 +- echo "$ac_err" >&5
20211 +- echo "configure: failed program was:" >&5
20212 +- cat conftest.$ac_ext >&5
20213 +- rm -rf conftest*
20214 +- eval "ac_cv_header_$ac_safe=no"
20215 ++ eval "$as_ac_Header=\$ac_header_preproc"
20218 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20219 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20222 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20223 +- echo "$ac_t""yes" 1>&6
20224 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20225 +- cat >> confdefs.h <<EOF
20226 +-#define $ac_tr_hdr 1
20230 +- echo "$ac_t""no" 1>&6
20231 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
20232 ++ cat >>confdefs.h <<_ACEOF
20233 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20243 +- ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
20244 +-echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
20245 +-echo "configure:7052: checking for nlist.h" >&5
20246 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20247 +- echo $ac_n "(cached) $ac_c" 1>&6
20249 ++for ac_header in nlist.h
20251 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20252 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20253 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
20254 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20255 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20256 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20258 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20259 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20261 ++ # Is the header compilable?
20262 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
20263 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20264 ++cat >conftest.$ac_ext <<_ACEOF
20265 ++/* confdefs.h. */
20267 ++cat confdefs.h >>conftest.$ac_ext
20268 ++cat >>conftest.$ac_ext <<_ACEOF
20269 ++/* end confdefs.h. */
20270 ++$ac_includes_default
20271 ++#include <$ac_header>
20273 ++rm -f conftest.$ac_objext
20274 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20275 ++ (eval $ac_compile) 2>conftest.er1
20277 ++ grep -v '^ *+' conftest.er1 >conftest.err
20278 ++ rm -f conftest.er1
20279 ++ cat conftest.err >&5
20280 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 ++ (exit $ac_status); } &&
20282 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20283 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 ++ (eval $ac_try) 2>&5
20286 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 ++ (exit $ac_status); }; } &&
20288 ++ { ac_try='test -s conftest.$ac_objext'
20289 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 ++ (eval $ac_try) 2>&5
20292 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 ++ (exit $ac_status); }; }; then
20294 ++ ac_header_compiler=yes
20296 ++ echo "$as_me: failed program was:" >&5
20297 ++sed 's/^/| /' conftest.$ac_ext >&5
20299 ++ac_header_compiler=no
20301 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20302 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20303 ++echo "${ECHO_T}$ac_header_compiler" >&6
20305 ++# Is the header present?
20306 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
20307 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20308 ++cat >conftest.$ac_ext <<_ACEOF
20309 ++/* confdefs.h. */
20311 ++cat confdefs.h >>conftest.$ac_ext
20312 ++cat >>conftest.$ac_ext <<_ACEOF
20313 ++/* end confdefs.h. */
20314 ++#include <$ac_header>
20316 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20317 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20319 ++ grep -v '^ *+' conftest.er1 >conftest.err
20320 ++ rm -f conftest.er1
20321 ++ cat conftest.err >&5
20322 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 ++ (exit $ac_status); } >/dev/null; then
20324 ++ if test -s conftest.err; then
20325 ++ ac_cpp_err=$ac_c_preproc_warn_flag
20326 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20331 +- cat > conftest.$ac_ext <<EOF
20332 +-#line 7057 "configure"
20333 +-#include "confdefs.h"
20334 +-#include <nlist.h>
20336 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20337 +-{ (eval echo configure:7062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20338 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20339 +-if test -z "$ac_err"; then
20340 +- rm -rf conftest*
20341 +- eval "ac_cv_header_$ac_safe=yes"
20343 +- echo "$ac_err" >&5
20344 +- echo "configure: failed program was:" >&5
20345 +- cat conftest.$ac_ext >&5
20346 +- rm -rf conftest*
20347 +- eval "ac_cv_header_$ac_safe=no"
20352 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20353 +- echo "$ac_t""yes" 1>&6
20354 +- cat >> confdefs.h <<\EOF
20355 +-#define NLIST_STRUCT 1
20358 +- echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
20359 +-echo "configure:7083: checking for n_un in struct nlist" >&5
20360 +-if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
20361 +- echo $ac_n "(cached) $ac_c" 1>&6
20363 +- cat > conftest.$ac_ext <<EOF
20364 +-#line 7088 "configure"
20365 +-#include "confdefs.h"
20366 ++if test -z "$ac_cpp_err"; then
20367 ++ ac_header_preproc=yes
20369 ++ echo "$as_me: failed program was:" >&5
20370 ++sed 's/^/| /' conftest.$ac_ext >&5
20372 ++ ac_header_preproc=no
20374 ++rm -f conftest.err conftest.$ac_ext
20375 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20376 ++echo "${ECHO_T}$ac_header_preproc" >&6
20378 ++# So? What about this header?
20379 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20381 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20382 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20383 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20384 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20385 ++ ac_header_preproc=yes
20388 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20389 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20390 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20391 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20392 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20393 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20394 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20395 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20396 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20397 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20398 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20399 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20402 ++## ------------------------------------------ ##
20403 ++## Report this to the AC_PACKAGE_NAME lists. ##
20404 ++## ------------------------------------------ ##
20407 ++ sed "s/^/$as_me: WARNING: /" >&2
20410 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
20411 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20412 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20413 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20415 ++ eval "$as_ac_Header=\$ac_header_preproc"
20417 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20418 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20421 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
20422 ++ cat >>confdefs.h <<_ACEOF
20423 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20425 ++ echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20426 ++echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
20427 ++if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20428 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20430 ++ cat >conftest.$ac_ext <<_ACEOF
20431 ++/* confdefs.h. */
20433 ++cat confdefs.h >>conftest.$ac_ext
20434 ++cat >>conftest.$ac_ext <<_ACEOF
20435 ++/* end confdefs.h. */
20436 ++#include <nlist.h>
20441 ++static struct nlist ac_aggr;
20442 ++if (ac_aggr.n_un.n_name)
20448 ++rm -f conftest.$ac_objext
20449 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20450 ++ (eval $ac_compile) 2>conftest.er1
20452 ++ grep -v '^ *+' conftest.er1 >conftest.err
20453 ++ rm -f conftest.er1
20454 ++ cat conftest.err >&5
20455 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 ++ (exit $ac_status); } &&
20457 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20458 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 ++ (eval $ac_try) 2>&5
20461 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 ++ (exit $ac_status); }; } &&
20463 ++ { ac_try='test -s conftest.$ac_objext'
20464 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 ++ (eval $ac_try) 2>&5
20467 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 ++ (exit $ac_status); }; }; then
20469 ++ ac_cv_member_struct_nlist_n_un_n_name=yes
20471 ++ echo "$as_me: failed program was:" >&5
20472 ++sed 's/^/| /' conftest.$ac_ext >&5
20474 ++cat >conftest.$ac_ext <<_ACEOF
20475 ++/* confdefs.h. */
20477 ++cat confdefs.h >>conftest.$ac_ext
20478 ++cat >>conftest.$ac_ext <<_ACEOF
20479 ++/* end confdefs.h. */
20480 + #include <nlist.h>
20482 +-struct nlist n; n.n_un.n_name = 0;
20485 +-if { (eval echo configure:7095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20486 +- rm -rf conftest*
20487 +- ac_cv_struct_nlist_n_un=yes
20489 +- echo "configure: failed program was:" >&5
20490 +- cat conftest.$ac_ext >&5
20491 +- rm -rf conftest*
20492 +- ac_cv_struct_nlist_n_un=no
20497 ++static struct nlist ac_aggr;
20498 ++if (sizeof ac_aggr.n_un.n_name)
20504 ++rm -f conftest.$ac_objext
20505 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20506 ++ (eval $ac_compile) 2>conftest.er1
20508 ++ grep -v '^ *+' conftest.er1 >conftest.err
20509 ++ rm -f conftest.er1
20510 ++ cat conftest.err >&5
20511 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 ++ (exit $ac_status); } &&
20513 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20514 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 ++ (eval $ac_try) 2>&5
20517 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 ++ (exit $ac_status); }; } &&
20519 ++ { ac_try='test -s conftest.$ac_objext'
20520 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 ++ (eval $ac_try) 2>&5
20523 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 ++ (exit $ac_status); }; }; then
20525 ++ ac_cv_member_struct_nlist_n_un_n_name=yes
20527 ++ echo "$as_me: failed program was:" >&5
20528 ++sed 's/^/| /' conftest.$ac_ext >&5
20530 ++ac_cv_member_struct_nlist_n_un_n_name=no
20532 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20534 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20536 ++echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20537 ++echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
20538 ++if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20540 ++cat >>confdefs.h <<_ACEOF
20541 ++#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20545 ++cat >>confdefs.h <<\_ACEOF
20546 ++#define NLIST_NAME_UNION 1
20555 +-echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
20556 +- if test $ac_cv_struct_nlist_n_un = yes; then
20557 +- cat >> confdefs.h <<\EOF
20558 +-#define NLIST_NAME_UNION 1
20565 +- echo "$ac_t""no" 1>&6
20567 +-fi # Do not have getloadavg in system libraries.
20571 + # Some definitions of getloadavg require that the program be installed setgid.
20572 +-echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
20573 +-echo "configure:7122: checking whether getloadavg requires setgid" >&5
20574 +-if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
20575 +- echo $ac_n "(cached) $ac_c" 1>&6
20577 +- cat > conftest.$ac_ext <<EOF
20578 +-#line 7127 "configure"
20579 +-#include "confdefs.h"
20580 +-#include "$srcdir/getloadavg.c"
20581 ++echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20582 ++echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
20583 ++if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20584 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20586 ++ cat >conftest.$ac_ext <<_ACEOF
20587 ++/* confdefs.h. */
20589 ++cat confdefs.h >>conftest.$ac_ext
20590 ++cat >>conftest.$ac_ext <<_ACEOF
20591 ++/* end confdefs.h. */
20592 ++#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20593 + #ifdef LDAV_PRIVILEGED
20594 + Yowza Am I SETGID yet
20598 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20599 +- egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20600 +- rm -rf conftest*
20601 ++ $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20602 + ac_cv_func_getloadavg_setgid=yes
20604 +- rm -rf conftest*
20605 + ac_cv_func_getloadavg_setgid=no
20611 +-echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6
20612 ++echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20613 ++echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
20614 + if test $ac_cv_func_getloadavg_setgid = yes; then
20615 +- NEED_SETGID=true; cat >> confdefs.h <<\EOF
20616 ++ NEED_SETGID=true
20618 ++cat >>confdefs.h <<\_ACEOF
20619 + #define GETLOADAVG_PRIVILEGED 1
20624 + NEED_SETGID=false
20627 + if test $ac_cv_func_getloadavg_setgid = yes; then
20628 +- echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
20629 +-echo "configure:7158: checking group of /dev/kmem" >&5
20630 +-if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
20631 +- echo $ac_n "(cached) $ac_c" 1>&6
20632 ++ echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20633 ++echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
20634 ++if test "${ac_cv_group_kmem+set}" = set; then
20635 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20637 +- # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20638 ++ # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20639 + ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20640 + # If we got an error (system does not support symlinks), try without -L.
20641 + test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20642 + ac_cv_group_kmem=`echo $ac_ls_output \
20643 +- | sed -ne 's/[ ][ ]*/ /g;
20644 ++ | sed -ne 's/[ ][ ]*/ /g;
20645 + s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20650 +-echo "$ac_t""$ac_cv_group_kmem" 1>&6
20651 ++echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20652 ++echo "${ECHO_T}$ac_cv_group_kmem" >&6
20653 + KMEM_GROUP=$ac_cv_group_kmem
20655 ++if test "x$ac_save_LIBS" = x; then
20656 ++ GETLOADAVG_LIBS=$LIBS
20658 ++ GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
20660 ++LIBS=$ac_save_LIBS
20663 +-echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
20664 +-echo "configure:7179: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20665 +-if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
20666 +- echo $ac_n "(cached) $ac_c" 1>&6
20668 ++echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20669 ++echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20670 ++if test "${ac_cv_sys_largefile_source+set}" = set; then
20671 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20674 + ac_cv_sys_largefile_source=no
20675 +- cat > conftest.$ac_ext <<EOF
20676 +-#line 7185 "configure"
20677 +-#include "confdefs.h"
20678 ++ cat >conftest.$ac_ext <<_ACEOF
20679 ++/* confdefs.h. */
20681 ++cat confdefs.h >>conftest.$ac_ext
20682 ++cat >>conftest.$ac_ext <<_ACEOF
20683 ++/* end confdefs.h. */
20684 + #include <stdio.h>
20692 +-if { (eval echo configure:7192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20698 ++rm -f conftest.$ac_objext
20699 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700 ++ (eval $ac_compile) 2>conftest.er1
20702 ++ grep -v '^ *+' conftest.er1 >conftest.err
20703 ++ rm -f conftest.er1
20704 ++ cat conftest.err >&5
20705 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 ++ (exit $ac_status); } &&
20707 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20708 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 ++ (eval $ac_try) 2>&5
20711 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 ++ (exit $ac_status); }; } &&
20713 ++ { ac_try='test -s conftest.$ac_objext'
20714 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 ++ (eval $ac_try) 2>&5
20717 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 ++ (exit $ac_status); }; }; then
20721 +- echo "configure: failed program was:" >&5
20722 +- cat conftest.$ac_ext >&5
20723 +- rm -rf conftest*
20724 +- cat > conftest.$ac_ext <<EOF
20725 +-#line 7199 "configure"
20726 +-#include "confdefs.h"
20727 ++ echo "$as_me: failed program was:" >&5
20728 ++sed 's/^/| /' conftest.$ac_ext >&5
20731 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20732 ++ cat >conftest.$ac_ext <<_ACEOF
20733 ++/* confdefs.h. */
20735 ++cat confdefs.h >>conftest.$ac_ext
20736 ++cat >>conftest.$ac_ext <<_ACEOF
20737 ++/* end confdefs.h. */
20738 + #define _LARGEFILE_SOURCE 1
20739 + #include <stdio.h>
20748 +-if { (eval echo configure:7208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20749 +- rm -rf conftest*
20750 +- ac_cv_sys_largefile_source=1
20755 ++rm -f conftest.$ac_objext
20756 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20757 ++ (eval $ac_compile) 2>conftest.er1
20759 ++ grep -v '^ *+' conftest.er1 >conftest.err
20760 ++ rm -f conftest.er1
20761 ++ cat conftest.err >&5
20762 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 ++ (exit $ac_status); } &&
20764 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20765 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 ++ (eval $ac_try) 2>&5
20768 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 ++ (exit $ac_status); }; } &&
20770 ++ { ac_try='test -s conftest.$ac_objext'
20771 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 ++ (eval $ac_try) 2>&5
20774 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 ++ (exit $ac_status); }; }; then
20776 ++ ac_cv_sys_largefile_source=1; break
20778 +- echo "configure: failed program was:" >&5
20779 +- cat conftest.$ac_ext >&5
20782 ++ echo "$as_me: failed program was:" >&5
20783 ++sed 's/^/| /' conftest.$ac_ext >&5
20787 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20791 ++echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20792 ++echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20793 ++if test "$ac_cv_sys_largefile_source" != no; then
20795 +-echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
20796 +- if test "$ac_cv_sys_largefile_source" != no; then
20797 +- cat >> confdefs.h <<EOF
20798 ++cat >>confdefs.h <<_ACEOF
20799 + #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20804 +- # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20805 +- # in glibc 2.1.3, but that breaks too many other things.
20806 +- # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20808 +- echo $ac_n "checking for fseeko""... $ac_c" 1>&6
20809 +-echo "configure:7232: checking for fseeko" >&5
20810 +-if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
20811 +- echo $ac_n "(cached) $ac_c" 1>&6
20813 +- ac_cv_func_fseeko=no
20814 +- cat > conftest.$ac_ext <<EOF
20815 +-#line 7238 "configure"
20816 +-#include "confdefs.h"
20820 ++# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20821 ++# in glibc 2.1.3, but that breaks too many other things.
20822 ++# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20823 ++echo "$as_me:$LINENO: checking for fseeko" >&5
20824 ++echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20825 ++if test "${ac_cv_func_fseeko+set}" = set; then
20826 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20828 ++ cat >conftest.$ac_ext <<_ACEOF
20829 ++/* confdefs.h. */
20831 ++cat confdefs.h >>conftest.$ac_ext
20832 ++cat >>conftest.$ac_ext <<_ACEOF
20833 ++/* end confdefs.h. */
20834 + #include <stdio.h>
20839 + return fseeko && fseeko (stdin, 0, 0);
20842 +-if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20843 +- rm -rf conftest*
20848 ++rm -f conftest.$ac_objext conftest$ac_exeext
20849 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20850 ++ (eval $ac_link) 2>conftest.er1
20852 ++ grep -v '^ *+' conftest.er1 >conftest.err
20853 ++ rm -f conftest.er1
20854 ++ cat conftest.err >&5
20855 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 ++ (exit $ac_status); } &&
20857 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20858 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 ++ (eval $ac_try) 2>&5
20861 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 ++ (exit $ac_status); }; } &&
20863 ++ { ac_try='test -s conftest$ac_exeext'
20864 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 ++ (eval $ac_try) 2>&5
20867 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 ++ (exit $ac_status); }; }; then
20869 + ac_cv_func_fseeko=yes
20871 +- echo "configure: failed program was:" >&5
20872 +- cat conftest.$ac_ext >&5
20873 ++ echo "$as_me: failed program was:" >&5
20874 ++sed 's/^/| /' conftest.$ac_ext >&5
20876 ++ac_cv_func_fseeko=no
20879 ++rm -f conftest.err conftest.$ac_objext \
20880 ++ conftest$ac_exeext conftest.$ac_ext
20882 ++echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20883 ++echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20884 ++if test $ac_cv_func_fseeko = yes; then
20886 +-echo "$ac_t""$ac_cv_func_fseeko" 1>&6
20887 +- if test $ac_cv_func_fseeko != no; then
20888 +- cat >> confdefs.h <<\EOF
20889 ++cat >>confdefs.h <<\_ACEOF
20890 + #define HAVE_FSEEKO 1
20900 + for ac_func in grantpt
20902 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20903 +-echo "configure:7267: checking for $ac_func" >&5
20904 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20905 +- echo $ac_n "(cached) $ac_c" 1>&6
20907 +- cat > conftest.$ac_ext <<EOF
20908 +-#line 7272 "configure"
20909 +-#include "confdefs.h"
20910 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20911 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
20912 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20913 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
20914 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
20916 ++ cat >conftest.$ac_ext <<_ACEOF
20917 ++/* confdefs.h. */
20919 ++cat confdefs.h >>conftest.$ac_ext
20920 ++cat >>conftest.$ac_ext <<_ACEOF
20921 ++/* end confdefs.h. */
20922 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20923 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
20924 ++#define $ac_func innocuous_$ac_func
20926 + /* System header to define __stub macros and hopefully few prototypes,
20927 +- which can conflict with char $ac_func(); below. */
20928 +-#include <assert.h>
20929 +-/* Override any gcc2 internal prototype to avoid an error. */
20930 +-/* We use char because int might match the return type of a gcc2
20931 +- builtin and then its argument prototype would still apply. */
20933 ++ which can conflict with char $ac_func (); below.
20934 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20935 ++ <limits.h> exists even on freestanding compilers. */
20939 ++# include <limits.h>
20941 ++# include <assert.h>
20946 ++/* Override any gcc2 internal prototype to avoid an error. */
20947 ++#ifdef __cplusplus
20951 ++/* We use char because int might match the return type of a gcc2
20952 ++ builtin and then its argument prototype would still apply. */
20953 ++char $ac_func ();
20954 + /* The GNU C library defines this for functions which it implements
20955 + to always fail with ENOSYS. Some functions are actually named
20956 + something starting with __ and the normal name is an alias. */
20957 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20961 ++char (*f) () = $ac_func;
20963 ++#ifdef __cplusplus
20969 +-if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20970 +- rm -rf conftest*
20971 +- eval "ac_cv_func_$ac_func=yes"
20973 +- echo "configure: failed program was:" >&5
20974 +- cat conftest.$ac_ext >&5
20975 +- rm -rf conftest*
20976 +- eval "ac_cv_func_$ac_func=no"
20983 ++return f != $ac_func;
20988 ++rm -f conftest.$ac_objext conftest$ac_exeext
20989 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20990 ++ (eval $ac_link) 2>conftest.er1
20992 ++ grep -v '^ *+' conftest.er1 >conftest.err
20993 ++ rm -f conftest.er1
20994 ++ cat conftest.err >&5
20995 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 ++ (exit $ac_status); } &&
20997 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20998 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 ++ (eval $ac_try) 2>&5
21001 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 ++ (exit $ac_status); }; } &&
21003 ++ { ac_try='test -s conftest$ac_exeext'
21004 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 ++ (eval $ac_try) 2>&5
21007 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 ++ (exit $ac_status); }; }; then
21009 ++ eval "$as_ac_var=yes"
21011 ++ echo "$as_me: failed program was:" >&5
21012 ++sed 's/^/| /' conftest.$ac_ext >&5
21014 ++eval "$as_ac_var=no"
21016 ++rm -f conftest.err conftest.$ac_objext \
21017 ++ conftest$ac_exeext conftest.$ac_ext
21019 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21020 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21021 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
21022 ++ cat >>confdefs.h <<_ACEOF
21023 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21026 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21027 +- echo "$ac_t""yes" 1>&6
21028 +- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21029 +- cat >> confdefs.h <<EOF
21030 +-#define $ac_tr_func 1
21034 +- echo "$ac_t""no" 1>&6
21039 + # PTY-related GNU extensions.
21041 + for ac_func in getpt
21043 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21044 +-echo "configure:7324: checking for $ac_func" >&5
21045 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21046 +- echo $ac_n "(cached) $ac_c" 1>&6
21048 +- cat > conftest.$ac_ext <<EOF
21049 +-#line 7329 "configure"
21050 +-#include "confdefs.h"
21051 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21052 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
21053 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21054 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
21055 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
21057 ++ cat >conftest.$ac_ext <<_ACEOF
21058 ++/* confdefs.h. */
21060 ++cat confdefs.h >>conftest.$ac_ext
21061 ++cat >>conftest.$ac_ext <<_ACEOF
21062 ++/* end confdefs.h. */
21063 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21064 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
21065 ++#define $ac_func innocuous_$ac_func
21067 + /* System header to define __stub macros and hopefully few prototypes,
21068 +- which can conflict with char $ac_func(); below. */
21069 +-#include <assert.h>
21070 +-/* Override any gcc2 internal prototype to avoid an error. */
21071 +-/* We use char because int might match the return type of a gcc2
21072 +- builtin and then its argument prototype would still apply. */
21074 ++ which can conflict with char $ac_func (); below.
21075 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21076 ++ <limits.h> exists even on freestanding compilers. */
21080 ++# include <limits.h>
21082 ++# include <assert.h>
21087 ++/* Override any gcc2 internal prototype to avoid an error. */
21088 ++#ifdef __cplusplus
21092 ++/* We use char because int might match the return type of a gcc2
21093 ++ builtin and then its argument prototype would still apply. */
21094 ++char $ac_func ();
21095 + /* The GNU C library defines this for functions which it implements
21096 + to always fail with ENOSYS. Some functions are actually named
21097 + something starting with __ and the normal name is an alias. */
21098 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21102 ++char (*f) () = $ac_func;
21104 ++#ifdef __cplusplus
21110 +-if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21111 +- rm -rf conftest*
21112 +- eval "ac_cv_func_$ac_func=yes"
21114 +- echo "configure: failed program was:" >&5
21115 +- cat conftest.$ac_ext >&5
21116 +- rm -rf conftest*
21117 +- eval "ac_cv_func_$ac_func=no"
21124 ++return f != $ac_func;
21129 ++rm -f conftest.$ac_objext conftest$ac_exeext
21130 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21131 ++ (eval $ac_link) 2>conftest.er1
21133 ++ grep -v '^ *+' conftest.er1 >conftest.err
21134 ++ rm -f conftest.er1
21135 ++ cat conftest.err >&5
21136 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 ++ (exit $ac_status); } &&
21138 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21139 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 ++ (eval $ac_try) 2>&5
21142 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 ++ (exit $ac_status); }; } &&
21144 ++ { ac_try='test -s conftest$ac_exeext'
21145 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 ++ (eval $ac_try) 2>&5
21148 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 ++ (exit $ac_status); }; }; then
21150 ++ eval "$as_ac_var=yes"
21152 ++ echo "$as_me: failed program was:" >&5
21153 ++sed 's/^/| /' conftest.$ac_ext >&5
21155 ++eval "$as_ac_var=no"
21157 ++rm -f conftest.err conftest.$ac_objext \
21158 ++ conftest$ac_exeext conftest.$ac_ext
21160 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21161 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21162 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
21163 ++ cat >>confdefs.h <<_ACEOF
21164 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21167 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21168 +- echo "$ac_t""yes" 1>&6
21169 +- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21170 +- cat >> confdefs.h <<EOF
21171 +-#define $ac_tr_func 1
21175 +- echo "$ac_t""no" 1>&6
21179 +@@ -7377,51 +14358,77 @@
21180 + # That is because we have not set up to link ncurses in lib-src.
21181 + # It's better to believe a function is not available
21182 + # than to expect to find it in ncurses.
21183 +-echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
21184 +-echo "configure:7382: checking for tparm in -lncurses" >&5
21185 +-ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
21186 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21187 +- echo $ac_n "(cached) $ac_c" 1>&6
21189 ++echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
21190 ++echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
21191 ++if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
21192 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
21194 +- ac_save_LIBS="$LIBS"
21195 ++ ac_check_lib_save_LIBS=$LIBS
21196 + LIBS="-lncurses $LIBS"
21197 +-cat > conftest.$ac_ext <<EOF
21198 +-#line 7390 "configure"
21199 +-#include "confdefs.h"
21200 +-/* Override any gcc2 internal prototype to avoid an error. */
21201 +-/* We use char because int might match the return type of a gcc2
21202 +- builtin and then its argument prototype would still apply. */
21209 +-if { (eval echo configure:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21210 +- rm -rf conftest*
21211 +- eval "ac_cv_lib_$ac_lib_var=yes"
21213 +- echo "configure: failed program was:" >&5
21214 +- cat conftest.$ac_ext >&5
21215 +- rm -rf conftest*
21216 +- eval "ac_cv_lib_$ac_lib_var=no"
21219 +-LIBS="$ac_save_LIBS"
21220 ++cat >conftest.$ac_ext <<_ACEOF
21221 ++/* confdefs.h. */
21223 ++cat confdefs.h >>conftest.$ac_ext
21224 ++cat >>conftest.$ac_ext <<_ACEOF
21225 ++/* end confdefs.h. */
21228 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21229 +- echo "$ac_t""yes" 1>&6
21230 +- ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21231 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21232 +- cat >> confdefs.h <<EOF
21233 +-#define $ac_tr_lib 1
21235 ++/* Override any gcc2 internal prototype to avoid an error. */
21236 ++#ifdef __cplusplus
21239 ++/* We use char because int might match the return type of a gcc2
21240 ++ builtin and then its argument prototype would still apply. */
21250 ++rm -f conftest.$ac_objext conftest$ac_exeext
21251 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21252 ++ (eval $ac_link) 2>conftest.er1
21254 ++ grep -v '^ *+' conftest.er1 >conftest.err
21255 ++ rm -f conftest.er1
21256 ++ cat conftest.err >&5
21257 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 ++ (exit $ac_status); } &&
21259 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21260 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 ++ (eval $ac_try) 2>&5
21263 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 ++ (exit $ac_status); }; } &&
21265 ++ { ac_try='test -s conftest$ac_exeext'
21266 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 ++ (eval $ac_try) 2>&5
21269 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 ++ (exit $ac_status); }; }; then
21271 ++ ac_cv_lib_ncurses_tparm=yes
21273 ++ echo "$as_me: failed program was:" >&5
21274 ++sed 's/^/| /' conftest.$ac_ext >&5
21276 ++ac_cv_lib_ncurses_tparm=no
21278 ++rm -f conftest.err conftest.$ac_objext \
21279 ++ conftest$ac_exeext conftest.$ac_ext
21280 ++LIBS=$ac_check_lib_save_LIBS
21282 ++echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
21283 ++echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
21284 ++if test $ac_cv_lib_ncurses_tparm = yes; then
21285 ++ cat >>confdefs.h <<_ACEOF
21286 ++#define HAVE_LIBNCURSES 1
21289 + LIBS="-lncurses $LIBS"
21292 +- echo "$ac_t""no" 1>&6
21296 +@@ -7429,174 +14436,321 @@
21297 + if test "$with_hesiod" = yes ; then
21298 + # Don't set $LIBS here -- see comments above.
21300 +- echo $ac_n "checking for res_send""... $ac_c" 1>&6
21301 +-echo "configure:7434: checking for res_send" >&5
21302 +-if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
21303 +- echo $ac_n "(cached) $ac_c" 1>&6
21305 +- cat > conftest.$ac_ext <<EOF
21306 +-#line 7439 "configure"
21307 +-#include "confdefs.h"
21308 ++ echo "$as_me:$LINENO: checking for res_send" >&5
21309 ++echo $ECHO_N "checking for res_send... $ECHO_C" >&6
21310 ++if test "${ac_cv_func_res_send+set}" = set; then
21311 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
21313 ++ cat >conftest.$ac_ext <<_ACEOF
21314 ++/* confdefs.h. */
21316 ++cat confdefs.h >>conftest.$ac_ext
21317 ++cat >>conftest.$ac_ext <<_ACEOF
21318 ++/* end confdefs.h. */
21319 ++/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21320 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
21321 ++#define res_send innocuous_res_send
21323 + /* System header to define __stub macros and hopefully few prototypes,
21324 +- which can conflict with char res_send(); below. */
21325 +-#include <assert.h>
21326 +-/* Override any gcc2 internal prototype to avoid an error. */
21327 +-/* We use char because int might match the return type of a gcc2
21328 +- builtin and then its argument prototype would still apply. */
21330 ++ which can conflict with char res_send (); below.
21331 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21332 ++ <limits.h> exists even on freestanding compilers. */
21336 ++# include <limits.h>
21338 ++# include <assert.h>
21343 ++/* Override any gcc2 internal prototype to avoid an error. */
21344 ++#ifdef __cplusplus
21348 ++/* We use char because int might match the return type of a gcc2
21349 ++ builtin and then its argument prototype would still apply. */
21350 ++char res_send ();
21351 + /* The GNU C library defines this for functions which it implements
21352 + to always fail with ENOSYS. Some functions are actually named
21353 + something starting with __ and the normal name is an alias. */
21354 + #if defined (__stub_res_send) || defined (__stub___res_send)
21358 ++char (*f) () = res_send;
21360 ++#ifdef __cplusplus
21366 +-if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21367 +- rm -rf conftest*
21368 +- eval "ac_cv_func_res_send=yes"
21370 +- echo "configure: failed program was:" >&5
21371 +- cat conftest.$ac_ext >&5
21372 +- rm -rf conftest*
21373 +- eval "ac_cv_func_res_send=no"
21378 +-if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
21379 +- echo "$ac_t""yes" 1>&6
21383 ++return f != res_send;
21388 ++rm -f conftest.$ac_objext conftest$ac_exeext
21389 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21390 ++ (eval $ac_link) 2>conftest.er1
21392 ++ grep -v '^ *+' conftest.er1 >conftest.err
21393 ++ rm -f conftest.er1
21394 ++ cat conftest.err >&5
21395 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 ++ (exit $ac_status); } &&
21397 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21398 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 ++ (eval $ac_try) 2>&5
21401 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 ++ (exit $ac_status); }; } &&
21403 ++ { ac_try='test -s conftest$ac_exeext'
21404 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 ++ (eval $ac_try) 2>&5
21407 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 ++ (exit $ac_status); }; }; then
21409 ++ ac_cv_func_res_send=yes
21411 ++ echo "$as_me: failed program was:" >&5
21412 ++sed 's/^/| /' conftest.$ac_ext >&5
21414 ++ac_cv_func_res_send=no
21416 ++rm -f conftest.err conftest.$ac_objext \
21417 ++ conftest$ac_exeext conftest.$ac_ext
21419 ++echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21420 ++echo "${ECHO_T}$ac_cv_func_res_send" >&6
21421 ++if test $ac_cv_func_res_send = yes; then
21424 +- echo "$ac_t""no" 1>&6
21425 +-echo $ac_n "checking for __res_send""... $ac_c" 1>&6
21426 +-echo "configure:7480: checking for __res_send" >&5
21427 +-if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then
21428 +- echo $ac_n "(cached) $ac_c" 1>&6
21430 +- cat > conftest.$ac_ext <<EOF
21431 +-#line 7485 "configure"
21432 +-#include "confdefs.h"
21433 ++ echo "$as_me:$LINENO: checking for __res_send" >&5
21434 ++echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
21435 ++if test "${ac_cv_func___res_send+set}" = set; then
21436 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
21438 ++ cat >conftest.$ac_ext <<_ACEOF
21439 ++/* confdefs.h. */
21441 ++cat confdefs.h >>conftest.$ac_ext
21442 ++cat >>conftest.$ac_ext <<_ACEOF
21443 ++/* end confdefs.h. */
21444 ++/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21445 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
21446 ++#define __res_send innocuous___res_send
21448 + /* System header to define __stub macros and hopefully few prototypes,
21449 +- which can conflict with char __res_send(); below. */
21450 +-#include <assert.h>
21451 +-/* Override any gcc2 internal prototype to avoid an error. */
21452 +-/* We use char because int might match the return type of a gcc2
21453 +- builtin and then its argument prototype would still apply. */
21454 +-char __res_send();
21455 ++ which can conflict with char __res_send (); below.
21456 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21457 ++ <limits.h> exists even on freestanding compilers. */
21460 ++# include <limits.h>
21462 ++# include <assert.h>
21466 ++#undef __res_send
21468 ++/* Override any gcc2 internal prototype to avoid an error. */
21469 ++#ifdef __cplusplus
21473 ++/* We use char because int might match the return type of a gcc2
21474 ++ builtin and then its argument prototype would still apply. */
21475 ++char __res_send ();
21476 + /* The GNU C library defines this for functions which it implements
21477 + to always fail with ENOSYS. Some functions are actually named
21478 + something starting with __ and the normal name is an alias. */
21479 + #if defined (__stub___res_send) || defined (__stub_____res_send)
21483 ++char (*f) () = __res_send;
21485 ++#ifdef __cplusplus
21491 +-if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21492 +- rm -rf conftest*
21493 +- eval "ac_cv_func___res_send=yes"
21495 +- echo "configure: failed program was:" >&5
21496 +- cat conftest.$ac_ext >&5
21497 +- rm -rf conftest*
21498 +- eval "ac_cv_func___res_send=no"
21503 +-if eval "test \"`echo '$ac_cv_func_'__res_send`\" = yes"; then
21504 +- echo "$ac_t""yes" 1>&6
21508 ++return f != __res_send;
21513 ++rm -f conftest.$ac_objext conftest$ac_exeext
21514 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21515 ++ (eval $ac_link) 2>conftest.er1
21517 ++ grep -v '^ *+' conftest.er1 >conftest.err
21518 ++ rm -f conftest.er1
21519 ++ cat conftest.err >&5
21520 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 ++ (exit $ac_status); } &&
21522 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21523 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21524 ++ (eval $ac_try) 2>&5
21526 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 ++ (exit $ac_status); }; } &&
21528 ++ { ac_try='test -s conftest$ac_exeext'
21529 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530 ++ (eval $ac_try) 2>&5
21532 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 ++ (exit $ac_status); }; }; then
21534 ++ ac_cv_func___res_send=yes
21536 ++ echo "$as_me: failed program was:" >&5
21537 ++sed 's/^/| /' conftest.$ac_ext >&5
21539 ++ac_cv_func___res_send=no
21541 ++rm -f conftest.err conftest.$ac_objext \
21542 ++ conftest$ac_exeext conftest.$ac_ext
21544 ++echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21545 ++echo "${ECHO_T}$ac_cv_func___res_send" >&6
21546 ++if test $ac_cv_func___res_send = yes; then
21549 +- echo "$ac_t""no" 1>&6
21550 +-echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
21551 +-echo "configure:7526: checking for res_send in -lresolv" >&5
21552 +-ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
21553 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21554 +- echo $ac_n "(cached) $ac_c" 1>&6
21555 ++ echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21556 ++echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
21557 ++if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21558 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
21560 +- ac_save_LIBS="$LIBS"
21561 ++ ac_check_lib_save_LIBS=$LIBS
21562 + LIBS="-lresolv $LIBS"
21563 +-cat > conftest.$ac_ext <<EOF
21564 +-#line 7534 "configure"
21565 +-#include "confdefs.h"
21566 +-/* Override any gcc2 internal prototype to avoid an error. */
21567 +-/* We use char because int might match the return type of a gcc2
21568 +- builtin and then its argument prototype would still apply. */
21575 +-if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21576 +- rm -rf conftest*
21577 +- eval "ac_cv_lib_$ac_lib_var=yes"
21579 +- echo "configure: failed program was:" >&5
21580 +- cat conftest.$ac_ext >&5
21581 +- rm -rf conftest*
21582 +- eval "ac_cv_lib_$ac_lib_var=no"
21585 +-LIBS="$ac_save_LIBS"
21586 ++cat >conftest.$ac_ext <<_ACEOF
21587 ++/* confdefs.h. */
21589 ++cat confdefs.h >>conftest.$ac_ext
21590 ++cat >>conftest.$ac_ext <<_ACEOF
21591 ++/* end confdefs.h. */
21594 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21595 +- echo "$ac_t""yes" 1>&6
21596 ++/* Override any gcc2 internal prototype to avoid an error. */
21597 ++#ifdef __cplusplus
21600 ++/* We use char because int might match the return type of a gcc2
21601 ++ builtin and then its argument prototype would still apply. */
21602 ++char res_send ();
21611 ++rm -f conftest.$ac_objext conftest$ac_exeext
21612 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613 ++ (eval $ac_link) 2>conftest.er1
21615 ++ grep -v '^ *+' conftest.er1 >conftest.err
21616 ++ rm -f conftest.er1
21617 ++ cat conftest.err >&5
21618 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 ++ (exit $ac_status); } &&
21620 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21621 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622 ++ (eval $ac_try) 2>&5
21624 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 ++ (exit $ac_status); }; } &&
21626 ++ { ac_try='test -s conftest$ac_exeext'
21627 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 ++ (eval $ac_try) 2>&5
21630 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 ++ (exit $ac_status); }; }; then
21632 ++ ac_cv_lib_resolv_res_send=yes
21634 ++ echo "$as_me: failed program was:" >&5
21635 ++sed 's/^/| /' conftest.$ac_ext >&5
21637 ++ac_cv_lib_resolv_res_send=no
21639 ++rm -f conftest.err conftest.$ac_objext \
21640 ++ conftest$ac_exeext conftest.$ac_ext
21641 ++LIBS=$ac_check_lib_save_LIBS
21643 ++echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21644 ++echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
21645 ++if test $ac_cv_lib_resolv_res_send = yes; then
21648 +- echo "$ac_t""no" 1>&6
21649 +-echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
21650 +-echo "configure:7564: checking for __res_send in -lresolv" >&5
21651 +-ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
21652 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21653 +- echo $ac_n "(cached) $ac_c" 1>&6
21654 ++ echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21655 ++echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
21656 ++if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21657 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
21659 +- ac_save_LIBS="$LIBS"
21660 ++ ac_check_lib_save_LIBS=$LIBS
21661 + LIBS="-lresolv $LIBS"
21662 +-cat > conftest.$ac_ext <<EOF
21663 +-#line 7572 "configure"
21664 +-#include "confdefs.h"
21665 +-/* Override any gcc2 internal prototype to avoid an error. */
21666 +-/* We use char because int might match the return type of a gcc2
21667 +- builtin and then its argument prototype would still apply. */
21668 +-char __res_send();
21674 +-if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21675 +- rm -rf conftest*
21676 +- eval "ac_cv_lib_$ac_lib_var=yes"
21678 +- echo "configure: failed program was:" >&5
21679 +- cat conftest.$ac_ext >&5
21680 +- rm -rf conftest*
21681 +- eval "ac_cv_lib_$ac_lib_var=no"
21684 +-LIBS="$ac_save_LIBS"
21685 ++cat >conftest.$ac_ext <<_ACEOF
21686 ++/* confdefs.h. */
21688 ++cat confdefs.h >>conftest.$ac_ext
21689 ++cat >>conftest.$ac_ext <<_ACEOF
21690 ++/* end confdefs.h. */
21693 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21694 +- echo "$ac_t""yes" 1>&6
21695 ++/* Override any gcc2 internal prototype to avoid an error. */
21696 ++#ifdef __cplusplus
21699 ++/* We use char because int might match the return type of a gcc2
21700 ++ builtin and then its argument prototype would still apply. */
21701 ++char __res_send ();
21710 ++rm -f conftest.$ac_objext conftest$ac_exeext
21711 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21712 ++ (eval $ac_link) 2>conftest.er1
21714 ++ grep -v '^ *+' conftest.er1 >conftest.err
21715 ++ rm -f conftest.er1
21716 ++ cat conftest.err >&5
21717 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 ++ (exit $ac_status); } &&
21719 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21720 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 ++ (eval $ac_try) 2>&5
21723 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 ++ (exit $ac_status); }; } &&
21725 ++ { ac_try='test -s conftest$ac_exeext'
21726 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 ++ (eval $ac_try) 2>&5
21729 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 ++ (exit $ac_status); }; }; then
21731 ++ ac_cv_lib_resolv___res_send=yes
21733 ++ echo "$as_me: failed program was:" >&5
21734 ++sed 's/^/| /' conftest.$ac_ext >&5
21736 ++ac_cv_lib_resolv___res_send=no
21738 ++rm -f conftest.err conftest.$ac_objext \
21739 ++ conftest$ac_exeext conftest.$ac_ext
21740 ++LIBS=$ac_check_lib_save_LIBS
21742 ++echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21743 ++echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
21744 ++if test $ac_cv_lib_resolv___res_send = yes; then
21747 +- echo "$ac_t""no" 1>&6
21751 +@@ -7607,101 +14761,175 @@
21753 + if test "$resolv" = yes ; then
21754 + RESOLVLIB=-lresolv
21755 +- cat >> confdefs.h <<\EOF
21756 ++ cat >>confdefs.h <<\_ACEOF
21757 + #define HAVE_LIBRESOLV 1
21764 +- echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6
21765 +-echo "configure:7619: checking for hes_getmailhost" >&5
21766 +-if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then
21767 +- echo $ac_n "(cached) $ac_c" 1>&6
21769 +- cat > conftest.$ac_ext <<EOF
21770 +-#line 7624 "configure"
21771 +-#include "confdefs.h"
21772 ++ echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21773 ++echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
21774 ++if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21775 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
21777 ++ cat >conftest.$ac_ext <<_ACEOF
21778 ++/* confdefs.h. */
21780 ++cat confdefs.h >>conftest.$ac_ext
21781 ++cat >>conftest.$ac_ext <<_ACEOF
21782 ++/* end confdefs.h. */
21783 ++/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21784 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
21785 ++#define hes_getmailhost innocuous_hes_getmailhost
21787 + /* System header to define __stub macros and hopefully few prototypes,
21788 +- which can conflict with char hes_getmailhost(); below. */
21789 +-#include <assert.h>
21790 +-/* Override any gcc2 internal prototype to avoid an error. */
21791 +-/* We use char because int might match the return type of a gcc2
21792 +- builtin and then its argument prototype would still apply. */
21793 +-char hes_getmailhost();
21794 ++ which can conflict with char hes_getmailhost (); below.
21795 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21796 ++ <limits.h> exists even on freestanding compilers. */
21800 ++# include <limits.h>
21802 ++# include <assert.h>
21805 ++#undef hes_getmailhost
21807 ++/* Override any gcc2 internal prototype to avoid an error. */
21808 ++#ifdef __cplusplus
21812 ++/* We use char because int might match the return type of a gcc2
21813 ++ builtin and then its argument prototype would still apply. */
21814 ++char hes_getmailhost ();
21815 + /* The GNU C library defines this for functions which it implements
21816 + to always fail with ENOSYS. Some functions are actually named
21817 + something starting with __ and the normal name is an alias. */
21818 + #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
21821 +-hes_getmailhost();
21822 ++char (*f) () = hes_getmailhost;
21824 ++#ifdef __cplusplus
21830 +-if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21831 +- rm -rf conftest*
21832 +- eval "ac_cv_func_hes_getmailhost=yes"
21834 +- echo "configure: failed program was:" >&5
21835 +- cat conftest.$ac_ext >&5
21836 +- rm -rf conftest*
21837 +- eval "ac_cv_func_hes_getmailhost=no"
21842 +-if eval "test \"`echo '$ac_cv_func_'hes_getmailhost`\" = yes"; then
21843 +- echo "$ac_t""yes" 1>&6
21847 ++return f != hes_getmailhost;
21852 ++rm -f conftest.$ac_objext conftest$ac_exeext
21853 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21854 ++ (eval $ac_link) 2>conftest.er1
21856 ++ grep -v '^ *+' conftest.er1 >conftest.err
21857 ++ rm -f conftest.er1
21858 ++ cat conftest.err >&5
21859 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 ++ (exit $ac_status); } &&
21861 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21862 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 ++ (eval $ac_try) 2>&5
21865 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 ++ (exit $ac_status); }; } &&
21867 ++ { ac_try='test -s conftest$ac_exeext'
21868 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 ++ (eval $ac_try) 2>&5
21871 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 ++ (exit $ac_status); }; }; then
21873 ++ ac_cv_func_hes_getmailhost=yes
21875 ++ echo "$as_me: failed program was:" >&5
21876 ++sed 's/^/| /' conftest.$ac_ext >&5
21878 ++ac_cv_func_hes_getmailhost=no
21880 ++rm -f conftest.err conftest.$ac_objext \
21881 ++ conftest$ac_exeext conftest.$ac_ext
21883 ++echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21884 ++echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
21885 ++if test $ac_cv_func_hes_getmailhost = yes; then
21888 +- echo "$ac_t""no" 1>&6
21889 +-echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6
21890 +-echo "configure:7665: checking for hes_getmailhost in -lhesiod" >&5
21891 +-ac_lib_var=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`
21892 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21893 +- echo $ac_n "(cached) $ac_c" 1>&6
21894 ++ echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21895 ++echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
21896 ++if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21897 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
21899 +- ac_save_LIBS="$LIBS"
21900 ++ ac_check_lib_save_LIBS=$LIBS
21901 + LIBS="-lhesiod $RESOLVLIB $LIBS"
21902 +-cat > conftest.$ac_ext <<EOF
21903 +-#line 7673 "configure"
21904 +-#include "confdefs.h"
21905 +-/* Override any gcc2 internal prototype to avoid an error. */
21906 +-/* We use char because int might match the return type of a gcc2
21907 +- builtin and then its argument prototype would still apply. */
21908 +-char hes_getmailhost();
21911 +-hes_getmailhost()
21914 +-if { (eval echo configure:7684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21915 +- rm -rf conftest*
21916 +- eval "ac_cv_lib_$ac_lib_var=yes"
21918 +- echo "configure: failed program was:" >&5
21919 +- cat conftest.$ac_ext >&5
21920 +- rm -rf conftest*
21921 +- eval "ac_cv_lib_$ac_lib_var=no"
21924 +-LIBS="$ac_save_LIBS"
21925 ++cat >conftest.$ac_ext <<_ACEOF
21926 ++/* confdefs.h. */
21928 ++cat confdefs.h >>conftest.$ac_ext
21929 ++cat >>conftest.$ac_ext <<_ACEOF
21930 ++/* end confdefs.h. */
21933 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21934 +- echo "$ac_t""yes" 1>&6
21935 +- cat >> confdefs.h <<\EOF
21936 ++/* Override any gcc2 internal prototype to avoid an error. */
21937 ++#ifdef __cplusplus
21940 ++/* We use char because int might match the return type of a gcc2
21941 ++ builtin and then its argument prototype would still apply. */
21942 ++char hes_getmailhost ();
21946 ++hes_getmailhost ();
21951 ++rm -f conftest.$ac_objext conftest$ac_exeext
21952 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21953 ++ (eval $ac_link) 2>conftest.er1
21955 ++ grep -v '^ *+' conftest.er1 >conftest.err
21956 ++ rm -f conftest.er1
21957 ++ cat conftest.err >&5
21958 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 ++ (exit $ac_status); } &&
21960 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21961 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 ++ (eval $ac_try) 2>&5
21964 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 ++ (exit $ac_status); }; } &&
21966 ++ { ac_try='test -s conftest$ac_exeext'
21967 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 ++ (eval $ac_try) 2>&5
21970 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 ++ (exit $ac_status); }; }; then
21972 ++ ac_cv_lib_hesiod_hes_getmailhost=yes
21974 ++ echo "$as_me: failed program was:" >&5
21975 ++sed 's/^/| /' conftest.$ac_ext >&5
21977 ++ac_cv_lib_hesiod_hes_getmailhost=no
21979 ++rm -f conftest.err conftest.$ac_objext \
21980 ++ conftest$ac_exeext conftest.$ac_ext
21981 ++LIBS=$ac_check_lib_save_LIBS
21983 ++echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21984 ++echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
21985 ++if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21986 ++ cat >>confdefs.h <<\_ACEOF
21987 + #define HAVE_LIBHESIOD 1
21992 +- echo "$ac_t""no" 1>&6
21998 +@@ -7710,379 +14938,589 @@
22000 + # These tell us which Kerberos-related libraries to use.
22001 + if test "${with_kerberos+set}" = set; then
22002 +- echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
22003 +-echo "configure:7715: checking for com_err in -lcom_err" >&5
22004 +-ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
22005 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22006 +- echo $ac_n "(cached) $ac_c" 1>&6
22008 ++echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22009 ++echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
22010 ++if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22011 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
22013 +- ac_save_LIBS="$LIBS"
22014 ++ ac_check_lib_save_LIBS=$LIBS
22015 + LIBS="-lcom_err $LIBS"
22016 +-cat > conftest.$ac_ext <<EOF
22017 +-#line 7723 "configure"
22018 +-#include "confdefs.h"
22019 +-/* Override any gcc2 internal prototype to avoid an error. */
22020 +-/* We use char because int might match the return type of a gcc2
22021 +- builtin and then its argument prototype would still apply. */
22028 +-if { (eval echo configure:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22029 +- rm -rf conftest*
22030 +- eval "ac_cv_lib_$ac_lib_var=yes"
22032 +- echo "configure: failed program was:" >&5
22033 +- cat conftest.$ac_ext >&5
22034 +- rm -rf conftest*
22035 +- eval "ac_cv_lib_$ac_lib_var=no"
22038 +-LIBS="$ac_save_LIBS"
22039 ++cat >conftest.$ac_ext <<_ACEOF
22040 ++/* confdefs.h. */
22042 ++cat confdefs.h >>conftest.$ac_ext
22043 ++cat >>conftest.$ac_ext <<_ACEOF
22044 ++/* end confdefs.h. */
22047 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22048 +- echo "$ac_t""yes" 1>&6
22049 +- ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22050 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22051 +- cat >> confdefs.h <<EOF
22052 +-#define $ac_tr_lib 1
22054 ++/* Override any gcc2 internal prototype to avoid an error. */
22055 ++#ifdef __cplusplus
22058 ++/* We use char because int might match the return type of a gcc2
22059 ++ builtin and then its argument prototype would still apply. */
22069 ++rm -f conftest.$ac_objext conftest$ac_exeext
22070 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22071 ++ (eval $ac_link) 2>conftest.er1
22073 ++ grep -v '^ *+' conftest.er1 >conftest.err
22074 ++ rm -f conftest.er1
22075 ++ cat conftest.err >&5
22076 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 ++ (exit $ac_status); } &&
22078 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22079 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 ++ (eval $ac_try) 2>&5
22082 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 ++ (exit $ac_status); }; } &&
22084 ++ { ac_try='test -s conftest$ac_exeext'
22085 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 ++ (eval $ac_try) 2>&5
22088 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 ++ (exit $ac_status); }; }; then
22090 ++ ac_cv_lib_com_err_com_err=yes
22092 ++ echo "$as_me: failed program was:" >&5
22093 ++sed 's/^/| /' conftest.$ac_ext >&5
22095 ++ac_cv_lib_com_err_com_err=no
22097 ++rm -f conftest.err conftest.$ac_objext \
22098 ++ conftest$ac_exeext conftest.$ac_ext
22099 ++LIBS=$ac_check_lib_save_LIBS
22101 ++echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22102 ++echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
22103 ++if test $ac_cv_lib_com_err_com_err = yes; then
22104 ++ cat >>confdefs.h <<_ACEOF
22105 ++#define HAVE_LIBCOM_ERR 1
22108 + LIBS="-lcom_err $LIBS"
22111 +- echo "$ac_t""no" 1>&6
22114 +- echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
22115 +-echo "configure:7762: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22116 +-ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
22117 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22118 +- echo $ac_n "(cached) $ac_c" 1>&6
22120 ++echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22121 ++echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
22122 ++if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22123 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
22125 +- ac_save_LIBS="$LIBS"
22126 ++ ac_check_lib_save_LIBS=$LIBS
22127 + LIBS="-lk5crypto $LIBS"
22128 +-cat > conftest.$ac_ext <<EOF
22129 +-#line 7770 "configure"
22130 +-#include "confdefs.h"
22131 +-/* Override any gcc2 internal prototype to avoid an error. */
22132 +-/* We use char because int might match the return type of a gcc2
22133 +- builtin and then its argument prototype would still apply. */
22134 +-char mit_des_cbc_encrypt();
22137 +-mit_des_cbc_encrypt()
22140 +-if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22141 +- rm -rf conftest*
22142 +- eval "ac_cv_lib_$ac_lib_var=yes"
22144 +- echo "configure: failed program was:" >&5
22145 +- cat conftest.$ac_ext >&5
22146 +- rm -rf conftest*
22147 +- eval "ac_cv_lib_$ac_lib_var=no"
22150 +-LIBS="$ac_save_LIBS"
22151 ++cat >conftest.$ac_ext <<_ACEOF
22152 ++/* confdefs.h. */
22154 ++cat confdefs.h >>conftest.$ac_ext
22155 ++cat >>conftest.$ac_ext <<_ACEOF
22156 ++/* end confdefs.h. */
22159 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22160 +- echo "$ac_t""yes" 1>&6
22161 +- ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22162 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22163 +- cat >> confdefs.h <<EOF
22164 +-#define $ac_tr_lib 1
22166 ++/* Override any gcc2 internal prototype to avoid an error. */
22167 ++#ifdef __cplusplus
22170 ++/* We use char because int might match the return type of a gcc2
22171 ++ builtin and then its argument prototype would still apply. */
22172 ++char mit_des_cbc_encrypt ();
22176 ++mit_des_cbc_encrypt ();
22181 ++rm -f conftest.$ac_objext conftest$ac_exeext
22182 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22183 ++ (eval $ac_link) 2>conftest.er1
22185 ++ grep -v '^ *+' conftest.er1 >conftest.err
22186 ++ rm -f conftest.er1
22187 ++ cat conftest.err >&5
22188 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 ++ (exit $ac_status); } &&
22190 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22191 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192 ++ (eval $ac_try) 2>&5
22194 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 ++ (exit $ac_status); }; } &&
22196 ++ { ac_try='test -s conftest$ac_exeext'
22197 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 ++ (eval $ac_try) 2>&5
22200 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 ++ (exit $ac_status); }; }; then
22202 ++ ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22204 ++ echo "$as_me: failed program was:" >&5
22205 ++sed 's/^/| /' conftest.$ac_ext >&5
22207 ++ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22209 ++rm -f conftest.err conftest.$ac_objext \
22210 ++ conftest$ac_exeext conftest.$ac_ext
22211 ++LIBS=$ac_check_lib_save_LIBS
22213 ++echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22214 ++echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
22215 ++if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22216 ++ cat >>confdefs.h <<_ACEOF
22217 ++#define HAVE_LIBK5CRYPTO 1
22220 + LIBS="-lk5crypto $LIBS"
22223 +- echo "$ac_t""no" 1>&6
22226 +- echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
22227 +-echo "configure:7809: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22228 +-ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
22229 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22230 +- echo $ac_n "(cached) $ac_c" 1>&6
22232 ++echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22233 ++echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
22234 ++if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22235 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
22237 +- ac_save_LIBS="$LIBS"
22238 ++ ac_check_lib_save_LIBS=$LIBS
22239 + LIBS="-lcrypto $LIBS"
22240 +-cat > conftest.$ac_ext <<EOF
22241 +-#line 7817 "configure"
22242 +-#include "confdefs.h"
22243 +-/* Override any gcc2 internal prototype to avoid an error. */
22244 +-/* We use char because int might match the return type of a gcc2
22245 +- builtin and then its argument prototype would still apply. */
22246 +-char mit_des_cbc_encrypt();
22249 +-mit_des_cbc_encrypt()
22252 +-if { (eval echo configure:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22253 +- rm -rf conftest*
22254 +- eval "ac_cv_lib_$ac_lib_var=yes"
22256 +- echo "configure: failed program was:" >&5
22257 +- cat conftest.$ac_ext >&5
22258 +- rm -rf conftest*
22259 +- eval "ac_cv_lib_$ac_lib_var=no"
22262 +-LIBS="$ac_save_LIBS"
22263 ++cat >conftest.$ac_ext <<_ACEOF
22264 ++/* confdefs.h. */
22266 ++cat confdefs.h >>conftest.$ac_ext
22267 ++cat >>conftest.$ac_ext <<_ACEOF
22268 ++/* end confdefs.h. */
22271 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22272 +- echo "$ac_t""yes" 1>&6
22273 +- ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22274 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22275 +- cat >> confdefs.h <<EOF
22276 +-#define $ac_tr_lib 1
22278 ++/* Override any gcc2 internal prototype to avoid an error. */
22279 ++#ifdef __cplusplus
22282 ++/* We use char because int might match the return type of a gcc2
22283 ++ builtin and then its argument prototype would still apply. */
22284 ++char mit_des_cbc_encrypt ();
22288 ++mit_des_cbc_encrypt ();
22293 ++rm -f conftest.$ac_objext conftest$ac_exeext
22294 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22295 ++ (eval $ac_link) 2>conftest.er1
22297 ++ grep -v '^ *+' conftest.er1 >conftest.err
22298 ++ rm -f conftest.er1
22299 ++ cat conftest.err >&5
22300 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 ++ (exit $ac_status); } &&
22302 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22303 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 ++ (eval $ac_try) 2>&5
22306 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 ++ (exit $ac_status); }; } &&
22308 ++ { ac_try='test -s conftest$ac_exeext'
22309 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 ++ (eval $ac_try) 2>&5
22312 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 ++ (exit $ac_status); }; }; then
22314 ++ ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22316 ++ echo "$as_me: failed program was:" >&5
22317 ++sed 's/^/| /' conftest.$ac_ext >&5
22319 ++ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22321 ++rm -f conftest.err conftest.$ac_objext \
22322 ++ conftest$ac_exeext conftest.$ac_ext
22323 ++LIBS=$ac_check_lib_save_LIBS
22325 ++echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22326 ++echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
22327 ++if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22328 ++ cat >>confdefs.h <<_ACEOF
22329 ++#define HAVE_LIBCRYPTO 1
22332 + LIBS="-lcrypto $LIBS"
22335 +- echo "$ac_t""no" 1>&6
22338 +- echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
22339 +-echo "configure:7856: checking for krb5_init_context in -lkrb5" >&5
22340 +-ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
22341 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22342 +- echo $ac_n "(cached) $ac_c" 1>&6
22344 ++echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22345 ++echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
22346 ++if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22347 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
22349 +- ac_save_LIBS="$LIBS"
22350 ++ ac_check_lib_save_LIBS=$LIBS
22351 + LIBS="-lkrb5 $LIBS"
22352 +-cat > conftest.$ac_ext <<EOF
22353 +-#line 7864 "configure"
22354 +-#include "confdefs.h"
22355 +-/* Override any gcc2 internal prototype to avoid an error. */
22356 +-/* We use char because int might match the return type of a gcc2
22357 +- builtin and then its argument prototype would still apply. */
22358 +-char krb5_init_context();
22361 +-krb5_init_context()
22364 +-if { (eval echo configure:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22365 +- rm -rf conftest*
22366 +- eval "ac_cv_lib_$ac_lib_var=yes"
22368 +- echo "configure: failed program was:" >&5
22369 +- cat conftest.$ac_ext >&5
22370 +- rm -rf conftest*
22371 +- eval "ac_cv_lib_$ac_lib_var=no"
22374 +-LIBS="$ac_save_LIBS"
22375 ++cat >conftest.$ac_ext <<_ACEOF
22376 ++/* confdefs.h. */
22378 ++cat confdefs.h >>conftest.$ac_ext
22379 ++cat >>conftest.$ac_ext <<_ACEOF
22380 ++/* end confdefs.h. */
22383 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22384 +- echo "$ac_t""yes" 1>&6
22385 +- ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22386 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22387 +- cat >> confdefs.h <<EOF
22388 +-#define $ac_tr_lib 1
22390 ++/* Override any gcc2 internal prototype to avoid an error. */
22391 ++#ifdef __cplusplus
22394 ++/* We use char because int might match the return type of a gcc2
22395 ++ builtin and then its argument prototype would still apply. */
22396 ++char krb5_init_context ();
22400 ++krb5_init_context ();
22405 ++rm -f conftest.$ac_objext conftest$ac_exeext
22406 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22407 ++ (eval $ac_link) 2>conftest.er1
22409 ++ grep -v '^ *+' conftest.er1 >conftest.err
22410 ++ rm -f conftest.er1
22411 ++ cat conftest.err >&5
22412 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 ++ (exit $ac_status); } &&
22414 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22415 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416 ++ (eval $ac_try) 2>&5
22418 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 ++ (exit $ac_status); }; } &&
22420 ++ { ac_try='test -s conftest$ac_exeext'
22421 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422 ++ (eval $ac_try) 2>&5
22424 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 ++ (exit $ac_status); }; }; then
22426 ++ ac_cv_lib_krb5_krb5_init_context=yes
22428 ++ echo "$as_me: failed program was:" >&5
22429 ++sed 's/^/| /' conftest.$ac_ext >&5
22431 ++ac_cv_lib_krb5_krb5_init_context=no
22433 ++rm -f conftest.err conftest.$ac_objext \
22434 ++ conftest$ac_exeext conftest.$ac_ext
22435 ++LIBS=$ac_check_lib_save_LIBS
22437 ++echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22438 ++echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
22439 ++if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22440 ++ cat >>confdefs.h <<_ACEOF
22441 ++#define HAVE_LIBKRB5 1
22444 + LIBS="-lkrb5 $LIBS"
22447 +- echo "$ac_t""no" 1>&6
22450 + if test "${with_kerberos5+set}" != set; then
22451 +- echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
22452 +-echo "configure:7904: checking for des_cbc_encrypt in -ldes425" >&5
22453 +-ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
22454 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22455 +- echo $ac_n "(cached) $ac_c" 1>&6
22457 ++echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22458 ++echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
22459 ++if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22460 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
22462 +- ac_save_LIBS="$LIBS"
22463 ++ ac_check_lib_save_LIBS=$LIBS
22464 + LIBS="-ldes425 $LIBS"
22465 +-cat > conftest.$ac_ext <<EOF
22466 +-#line 7912 "configure"
22467 +-#include "confdefs.h"
22468 +-/* Override any gcc2 internal prototype to avoid an error. */
22469 +-/* We use char because int might match the return type of a gcc2
22470 +- builtin and then its argument prototype would still apply. */
22471 +-char des_cbc_encrypt();
22474 +-des_cbc_encrypt()
22477 +-if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22478 +- rm -rf conftest*
22479 +- eval "ac_cv_lib_$ac_lib_var=yes"
22481 +- echo "configure: failed program was:" >&5
22482 +- cat conftest.$ac_ext >&5
22483 +- rm -rf conftest*
22484 +- eval "ac_cv_lib_$ac_lib_var=no"
22487 +-LIBS="$ac_save_LIBS"
22488 ++cat >conftest.$ac_ext <<_ACEOF
22489 ++/* confdefs.h. */
22491 ++cat confdefs.h >>conftest.$ac_ext
22492 ++cat >>conftest.$ac_ext <<_ACEOF
22493 ++/* end confdefs.h. */
22496 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22497 +- echo "$ac_t""yes" 1>&6
22498 +- ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22499 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22500 +- cat >> confdefs.h <<EOF
22501 +-#define $ac_tr_lib 1
22503 ++/* Override any gcc2 internal prototype to avoid an error. */
22504 ++#ifdef __cplusplus
22507 ++/* We use char because int might match the return type of a gcc2
22508 ++ builtin and then its argument prototype would still apply. */
22509 ++char des_cbc_encrypt ();
22513 ++des_cbc_encrypt ();
22518 ++rm -f conftest.$ac_objext conftest$ac_exeext
22519 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22520 ++ (eval $ac_link) 2>conftest.er1
22522 ++ grep -v '^ *+' conftest.er1 >conftest.err
22523 ++ rm -f conftest.er1
22524 ++ cat conftest.err >&5
22525 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 ++ (exit $ac_status); } &&
22527 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22528 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 ++ (eval $ac_try) 2>&5
22531 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 ++ (exit $ac_status); }; } &&
22533 ++ { ac_try='test -s conftest$ac_exeext'
22534 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 ++ (eval $ac_try) 2>&5
22537 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 ++ (exit $ac_status); }; }; then
22539 ++ ac_cv_lib_des425_des_cbc_encrypt=yes
22541 ++ echo "$as_me: failed program was:" >&5
22542 ++sed 's/^/| /' conftest.$ac_ext >&5
22544 ++ac_cv_lib_des425_des_cbc_encrypt=no
22546 ++rm -f conftest.err conftest.$ac_objext \
22547 ++ conftest$ac_exeext conftest.$ac_ext
22548 ++LIBS=$ac_check_lib_save_LIBS
22550 ++echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22551 ++echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
22552 ++if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22553 ++ cat >>confdefs.h <<_ACEOF
22554 ++#define HAVE_LIBDES425 1
22557 + LIBS="-ldes425 $LIBS"
22560 +- echo "$ac_t""no" 1>&6
22561 +-echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
22562 +-echo "configure:7949: checking for des_cbc_encrypt in -ldes" >&5
22563 +-ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
22564 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22565 +- echo $ac_n "(cached) $ac_c" 1>&6
22567 ++echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22568 ++echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
22569 ++if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22570 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
22572 +- ac_save_LIBS="$LIBS"
22573 ++ ac_check_lib_save_LIBS=$LIBS
22574 + LIBS="-ldes $LIBS"
22575 +-cat > conftest.$ac_ext <<EOF
22576 +-#line 7957 "configure"
22577 +-#include "confdefs.h"
22578 +-/* Override any gcc2 internal prototype to avoid an error. */
22579 +-/* We use char because int might match the return type of a gcc2
22580 +- builtin and then its argument prototype would still apply. */
22581 +-char des_cbc_encrypt();
22584 +-des_cbc_encrypt()
22587 +-if { (eval echo configure:7968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22588 +- rm -rf conftest*
22589 +- eval "ac_cv_lib_$ac_lib_var=yes"
22591 +- echo "configure: failed program was:" >&5
22592 +- cat conftest.$ac_ext >&5
22593 +- rm -rf conftest*
22594 +- eval "ac_cv_lib_$ac_lib_var=no"
22597 +-LIBS="$ac_save_LIBS"
22598 ++cat >conftest.$ac_ext <<_ACEOF
22599 ++/* confdefs.h. */
22601 ++cat confdefs.h >>conftest.$ac_ext
22602 ++cat >>conftest.$ac_ext <<_ACEOF
22603 ++/* end confdefs.h. */
22606 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22607 +- echo "$ac_t""yes" 1>&6
22608 +- ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
22609 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22610 +- cat >> confdefs.h <<EOF
22611 +-#define $ac_tr_lib 1
22613 ++/* Override any gcc2 internal prototype to avoid an error. */
22614 ++#ifdef __cplusplus
22617 ++/* We use char because int might match the return type of a gcc2
22618 ++ builtin and then its argument prototype would still apply. */
22619 ++char des_cbc_encrypt ();
22623 ++des_cbc_encrypt ();
22628 ++rm -f conftest.$ac_objext conftest$ac_exeext
22629 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22630 ++ (eval $ac_link) 2>conftest.er1
22632 ++ grep -v '^ *+' conftest.er1 >conftest.err
22633 ++ rm -f conftest.er1
22634 ++ cat conftest.err >&5
22635 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 ++ (exit $ac_status); } &&
22637 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22638 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 ++ (eval $ac_try) 2>&5
22641 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 ++ (exit $ac_status); }; } &&
22643 ++ { ac_try='test -s conftest$ac_exeext'
22644 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645 ++ (eval $ac_try) 2>&5
22647 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 ++ (exit $ac_status); }; }; then
22649 ++ ac_cv_lib_des_des_cbc_encrypt=yes
22651 ++ echo "$as_me: failed program was:" >&5
22652 ++sed 's/^/| /' conftest.$ac_ext >&5
22654 ++ac_cv_lib_des_des_cbc_encrypt=no
22656 ++rm -f conftest.err conftest.$ac_objext \
22657 ++ conftest$ac_exeext conftest.$ac_ext
22658 ++LIBS=$ac_check_lib_save_LIBS
22660 ++echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22661 ++echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
22662 ++if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22663 ++ cat >>confdefs.h <<_ACEOF
22664 ++#define HAVE_LIBDES 1
22667 + LIBS="-ldes $LIBS"
22670 +- echo "$ac_t""no" 1>&6
22675 +- echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
22676 +-echo "configure:7998: checking for krb_get_cred in -lkrb4" >&5
22677 +-ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
22678 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22679 +- echo $ac_n "(cached) $ac_c" 1>&6
22681 ++echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22682 ++echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
22683 ++if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22684 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
22686 +- ac_save_LIBS="$LIBS"
22687 ++ ac_check_lib_save_LIBS=$LIBS
22688 + LIBS="-lkrb4 $LIBS"
22689 +-cat > conftest.$ac_ext <<EOF
22690 +-#line 8006 "configure"
22691 +-#include "confdefs.h"
22692 +-/* Override any gcc2 internal prototype to avoid an error. */
22693 +-/* We use char because int might match the return type of a gcc2
22694 +- builtin and then its argument prototype would still apply. */
22695 +-char krb_get_cred();
22701 +-if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22702 +- rm -rf conftest*
22703 +- eval "ac_cv_lib_$ac_lib_var=yes"
22705 +- echo "configure: failed program was:" >&5
22706 +- cat conftest.$ac_ext >&5
22707 +- rm -rf conftest*
22708 +- eval "ac_cv_lib_$ac_lib_var=no"
22711 +-LIBS="$ac_save_LIBS"
22712 ++cat >conftest.$ac_ext <<_ACEOF
22713 ++/* confdefs.h. */
22715 ++cat confdefs.h >>conftest.$ac_ext
22716 ++cat >>conftest.$ac_ext <<_ACEOF
22717 ++/* end confdefs.h. */
22720 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22721 +- echo "$ac_t""yes" 1>&6
22722 +- ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22723 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22724 +- cat >> confdefs.h <<EOF
22725 +-#define $ac_tr_lib 1
22727 ++/* Override any gcc2 internal prototype to avoid an error. */
22728 ++#ifdef __cplusplus
22731 ++/* We use char because int might match the return type of a gcc2
22732 ++ builtin and then its argument prototype would still apply. */
22733 ++char krb_get_cred ();
22742 ++rm -f conftest.$ac_objext conftest$ac_exeext
22743 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22744 ++ (eval $ac_link) 2>conftest.er1
22746 ++ grep -v '^ *+' conftest.er1 >conftest.err
22747 ++ rm -f conftest.er1
22748 ++ cat conftest.err >&5
22749 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 ++ (exit $ac_status); } &&
22751 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22752 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 ++ (eval $ac_try) 2>&5
22755 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 ++ (exit $ac_status); }; } &&
22757 ++ { ac_try='test -s conftest$ac_exeext'
22758 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 ++ (eval $ac_try) 2>&5
22761 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 ++ (exit $ac_status); }; }; then
22763 ++ ac_cv_lib_krb4_krb_get_cred=yes
22765 ++ echo "$as_me: failed program was:" >&5
22766 ++sed 's/^/| /' conftest.$ac_ext >&5
22768 ++ac_cv_lib_krb4_krb_get_cred=no
22770 ++rm -f conftest.err conftest.$ac_objext \
22771 ++ conftest$ac_exeext conftest.$ac_ext
22772 ++LIBS=$ac_check_lib_save_LIBS
22774 ++echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22775 ++echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
22776 ++if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22777 ++ cat >>confdefs.h <<_ACEOF
22778 ++#define HAVE_LIBKRB4 1
22781 + LIBS="-lkrb4 $LIBS"
22784 +- echo "$ac_t""no" 1>&6
22785 +-echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
22786 +-echo "configure:8043: checking for krb_get_cred in -lkrb" >&5
22787 +-ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
22788 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22789 +- echo $ac_n "(cached) $ac_c" 1>&6
22791 ++echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22792 ++echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
22793 ++if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22794 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
22796 +- ac_save_LIBS="$LIBS"
22797 +-LIBS="-lkrb $LIBS"
22798 +-cat > conftest.$ac_ext <<EOF
22799 +-#line 8051 "configure"
22800 +-#include "confdefs.h"
22801 +-/* Override any gcc2 internal prototype to avoid an error. */
22802 +-/* We use char because int might match the return type of a gcc2
22803 +- builtin and then its argument prototype would still apply. */
22804 +-char krb_get_cred();
22810 +-if { (eval echo configure:8062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22811 +- rm -rf conftest*
22812 +- eval "ac_cv_lib_$ac_lib_var=yes"
22814 +- echo "configure: failed program was:" >&5
22815 +- cat conftest.$ac_ext >&5
22816 +- rm -rf conftest*
22817 +- eval "ac_cv_lib_$ac_lib_var=no"
22820 +-LIBS="$ac_save_LIBS"
22821 ++ ac_check_lib_save_LIBS=$LIBS
22822 ++LIBS="-lkrb $LIBS"
22823 ++cat >conftest.$ac_ext <<_ACEOF
22824 ++/* confdefs.h. */
22826 ++cat confdefs.h >>conftest.$ac_ext
22827 ++cat >>conftest.$ac_ext <<_ACEOF
22828 ++/* end confdefs.h. */
22831 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22832 +- echo "$ac_t""yes" 1>&6
22833 +- ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
22834 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22835 +- cat >> confdefs.h <<EOF
22836 +-#define $ac_tr_lib 1
22838 ++/* Override any gcc2 internal prototype to avoid an error. */
22839 ++#ifdef __cplusplus
22842 ++/* We use char because int might match the return type of a gcc2
22843 ++ builtin and then its argument prototype would still apply. */
22844 ++char krb_get_cred ();
22853 ++rm -f conftest.$ac_objext conftest$ac_exeext
22854 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22855 ++ (eval $ac_link) 2>conftest.er1
22857 ++ grep -v '^ *+' conftest.er1 >conftest.err
22858 ++ rm -f conftest.er1
22859 ++ cat conftest.err >&5
22860 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 ++ (exit $ac_status); } &&
22862 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22863 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864 ++ (eval $ac_try) 2>&5
22866 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 ++ (exit $ac_status); }; } &&
22868 ++ { ac_try='test -s conftest$ac_exeext'
22869 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 ++ (eval $ac_try) 2>&5
22872 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 ++ (exit $ac_status); }; }; then
22874 ++ ac_cv_lib_krb_krb_get_cred=yes
22876 ++ echo "$as_me: failed program was:" >&5
22877 ++sed 's/^/| /' conftest.$ac_ext >&5
22879 ++ac_cv_lib_krb_krb_get_cred=no
22881 ++rm -f conftest.err conftest.$ac_objext \
22882 ++ conftest$ac_exeext conftest.$ac_ext
22883 ++LIBS=$ac_check_lib_save_LIBS
22885 ++echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22886 ++echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
22887 ++if test $ac_cv_lib_krb_krb_get_cred = yes; then
22888 ++ cat >>confdefs.h <<_ACEOF
22889 ++#define HAVE_LIBKRB 1
22892 + LIBS="-lkrb $LIBS"
22895 +- echo "$ac_t""no" 1>&6
22899 +@@ -8090,393 +15528,702 @@
22902 + if test "${with_kerberos5+set}" = set; then
22903 +- for ac_hdr in krb5.h
22905 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22906 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22907 +-echo "configure:8098: checking for $ac_hdr" >&5
22908 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22909 +- echo $ac_n "(cached) $ac_c" 1>&6
22911 +- cat > conftest.$ac_ext <<EOF
22912 +-#line 8103 "configure"
22913 +-#include "confdefs.h"
22914 +-#include <$ac_hdr>
22916 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22917 +-{ (eval echo configure:8108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22918 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22919 +-if test -z "$ac_err"; then
22920 +- rm -rf conftest*
22921 +- eval "ac_cv_header_$ac_safe=yes"
22923 +- echo "$ac_err" >&5
22924 +- echo "configure: failed program was:" >&5
22925 +- cat conftest.$ac_ext >&5
22926 +- rm -rf conftest*
22927 +- eval "ac_cv_header_$ac_safe=no"
22931 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22932 +- echo "$ac_t""yes" 1>&6
22933 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22934 +- cat >> confdefs.h <<EOF
22935 +-#define $ac_tr_hdr 1
22939 +- echo "$ac_t""no" 1>&6
22943 ++for ac_header in krb5.h
22945 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22946 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
22947 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
22948 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22949 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
22950 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
22952 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22953 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22955 ++ # Is the header compilable?
22956 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
22957 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22958 ++cat >conftest.$ac_ext <<_ACEOF
22959 ++/* confdefs.h. */
22961 ++cat confdefs.h >>conftest.$ac_ext
22962 ++cat >>conftest.$ac_ext <<_ACEOF
22963 ++/* end confdefs.h. */
22964 ++$ac_includes_default
22965 ++#include <$ac_header>
22967 ++rm -f conftest.$ac_objext
22968 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22969 ++ (eval $ac_compile) 2>conftest.er1
22971 ++ grep -v '^ *+' conftest.er1 >conftest.err
22972 ++ rm -f conftest.er1
22973 ++ cat conftest.err >&5
22974 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 ++ (exit $ac_status); } &&
22976 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22977 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978 ++ (eval $ac_try) 2>&5
22980 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 ++ (exit $ac_status); }; } &&
22982 ++ { ac_try='test -s conftest.$ac_objext'
22983 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984 ++ (eval $ac_try) 2>&5
22986 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 ++ (exit $ac_status); }; }; then
22988 ++ ac_header_compiler=yes
22990 ++ echo "$as_me: failed program was:" >&5
22991 ++sed 's/^/| /' conftest.$ac_ext >&5
22993 ++ac_header_compiler=no
22995 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22996 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22997 ++echo "${ECHO_T}$ac_header_compiler" >&6
22999 ++# Is the header present?
23000 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
23001 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23002 ++cat >conftest.$ac_ext <<_ACEOF
23003 ++/* confdefs.h. */
23005 ++cat confdefs.h >>conftest.$ac_ext
23006 ++cat >>conftest.$ac_ext <<_ACEOF
23007 ++/* end confdefs.h. */
23008 ++#include <$ac_header>
23010 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23011 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23013 ++ grep -v '^ *+' conftest.er1 >conftest.err
23014 ++ rm -f conftest.er1
23015 ++ cat conftest.err >&5
23016 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 ++ (exit $ac_status); } >/dev/null; then
23018 ++ if test -s conftest.err; then
23019 ++ ac_cpp_err=$ac_c_preproc_warn_flag
23020 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23022 +- for ac_hdr in des.h
23024 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23025 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23026 +-echo "configure:8139: checking for $ac_hdr" >&5
23027 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23028 +- echo $ac_n "(cached) $ac_c" 1>&6
23030 +- cat > conftest.$ac_ext <<EOF
23031 +-#line 8144 "configure"
23032 +-#include "confdefs.h"
23033 +-#include <$ac_hdr>
23035 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23036 +-{ (eval echo configure:8149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23037 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23038 +-if test -z "$ac_err"; then
23039 +- rm -rf conftest*
23040 +- eval "ac_cv_header_$ac_safe=yes"
23042 +- echo "$ac_err" >&5
23043 +- echo "configure: failed program was:" >&5
23044 +- cat conftest.$ac_ext >&5
23045 +- rm -rf conftest*
23046 +- eval "ac_cv_header_$ac_safe=no"
23050 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23051 +- echo "$ac_t""yes" 1>&6
23052 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23053 +- cat >> confdefs.h <<EOF
23054 +-#define $ac_tr_hdr 1
23058 +- echo "$ac_t""no" 1>&6
23059 +-for ac_hdr in kerberosIV/des.h
23061 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23062 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23063 +-echo "configure:8176: checking for $ac_hdr" >&5
23064 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23065 +- echo $ac_n "(cached) $ac_c" 1>&6
23067 +- cat > conftest.$ac_ext <<EOF
23068 +-#line 8181 "configure"
23069 +-#include "confdefs.h"
23070 +-#include <$ac_hdr>
23072 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23073 +-{ (eval echo configure:8186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23074 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23075 +-if test -z "$ac_err"; then
23076 +- rm -rf conftest*
23077 +- eval "ac_cv_header_$ac_safe=yes"
23079 +- echo "$ac_err" >&5
23080 +- echo "configure: failed program was:" >&5
23081 +- cat conftest.$ac_ext >&5
23082 +- rm -rf conftest*
23083 +- eval "ac_cv_header_$ac_safe=no"
23087 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23088 +- echo "$ac_t""yes" 1>&6
23089 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23090 +- cat >> confdefs.h <<EOF
23091 +-#define $ac_tr_hdr 1
23095 +- echo "$ac_t""no" 1>&6
23096 +-for ac_hdr in kerberos/des.h
23098 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23099 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23100 +-echo "configure:8213: checking for $ac_hdr" >&5
23101 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23102 +- echo $ac_n "(cached) $ac_c" 1>&6
23104 +- cat > conftest.$ac_ext <<EOF
23105 +-#line 8218 "configure"
23106 +-#include "confdefs.h"
23107 +-#include <$ac_hdr>
23109 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23110 +-{ (eval echo configure:8223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23111 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23112 +-if test -z "$ac_err"; then
23113 +- rm -rf conftest*
23114 +- eval "ac_cv_header_$ac_safe=yes"
23116 +- echo "$ac_err" >&5
23117 +- echo "configure: failed program was:" >&5
23118 +- cat conftest.$ac_ext >&5
23119 +- rm -rf conftest*
23120 +- eval "ac_cv_header_$ac_safe=no"
23128 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23129 +- echo "$ac_t""yes" 1>&6
23130 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23131 +- cat >> confdefs.h <<EOF
23132 +-#define $ac_tr_hdr 1
23135 ++if test -z "$ac_cpp_err"; then
23136 ++ ac_header_preproc=yes
23138 ++ echo "$as_me: failed program was:" >&5
23139 ++sed 's/^/| /' conftest.$ac_ext >&5
23141 ++ ac_header_preproc=no
23143 ++rm -f conftest.err conftest.$ac_ext
23144 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23145 ++echo "${ECHO_T}$ac_header_preproc" >&6
23147 ++# So? What about this header?
23148 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23150 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23151 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23152 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23153 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23154 ++ ac_header_preproc=yes
23157 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23158 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23159 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23160 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23161 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23162 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23163 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23164 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23165 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23166 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23167 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23168 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23171 ++## ------------------------------------------ ##
23172 ++## Report this to the AC_PACKAGE_NAME lists. ##
23173 ++## ------------------------------------------ ##
23176 ++ sed "s/^/$as_me: WARNING: /" >&2
23179 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
23180 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23181 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23182 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
23184 +- echo "$ac_t""no" 1>&6
23185 ++ eval "$as_ac_Header=\$ac_header_preproc"
23188 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23189 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23193 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
23194 ++ cat >>confdefs.h <<_ACEOF
23195 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23202 +- for ac_hdr in krb.h
23207 ++for ac_header in des.h kerberosIV/des.h kerberos/des.h
23209 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23210 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23211 +-echo "configure:8259: checking for $ac_hdr" >&5
23212 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23213 +- echo $ac_n "(cached) $ac_c" 1>&6
23215 +- cat > conftest.$ac_ext <<EOF
23216 +-#line 8264 "configure"
23217 +-#include "confdefs.h"
23218 +-#include <$ac_hdr>
23220 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23221 +-{ (eval echo configure:8269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23222 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23223 +-if test -z "$ac_err"; then
23224 +- rm -rf conftest*
23225 +- eval "ac_cv_header_$ac_safe=yes"
23226 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23227 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23228 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
23229 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23230 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23231 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
23233 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23234 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23236 ++ # Is the header compilable?
23237 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
23238 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23239 ++cat >conftest.$ac_ext <<_ACEOF
23240 ++/* confdefs.h. */
23242 ++cat confdefs.h >>conftest.$ac_ext
23243 ++cat >>conftest.$ac_ext <<_ACEOF
23244 ++/* end confdefs.h. */
23245 ++$ac_includes_default
23246 ++#include <$ac_header>
23248 ++rm -f conftest.$ac_objext
23249 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23250 ++ (eval $ac_compile) 2>conftest.er1
23252 ++ grep -v '^ *+' conftest.er1 >conftest.err
23253 ++ rm -f conftest.er1
23254 ++ cat conftest.err >&5
23255 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 ++ (exit $ac_status); } &&
23257 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23258 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259 ++ (eval $ac_try) 2>&5
23261 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 ++ (exit $ac_status); }; } &&
23263 ++ { ac_try='test -s conftest.$ac_objext'
23264 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265 ++ (eval $ac_try) 2>&5
23267 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 ++ (exit $ac_status); }; }; then
23269 ++ ac_header_compiler=yes
23271 ++ echo "$as_me: failed program was:" >&5
23272 ++sed 's/^/| /' conftest.$ac_ext >&5
23274 ++ac_header_compiler=no
23276 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23277 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23278 ++echo "${ECHO_T}$ac_header_compiler" >&6
23280 ++# Is the header present?
23281 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
23282 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23283 ++cat >conftest.$ac_ext <<_ACEOF
23284 ++/* confdefs.h. */
23286 ++cat confdefs.h >>conftest.$ac_ext
23287 ++cat >>conftest.$ac_ext <<_ACEOF
23288 ++/* end confdefs.h. */
23289 ++#include <$ac_header>
23291 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23292 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23294 ++ grep -v '^ *+' conftest.er1 >conftest.err
23295 ++ rm -f conftest.er1
23296 ++ cat conftest.err >&5
23297 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 ++ (exit $ac_status); } >/dev/null; then
23299 ++ if test -s conftest.err; then
23300 ++ ac_cpp_err=$ac_c_preproc_warn_flag
23301 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23306 +- echo "$ac_err" >&5
23307 +- echo "configure: failed program was:" >&5
23308 +- cat conftest.$ac_ext >&5
23309 +- rm -rf conftest*
23310 +- eval "ac_cv_header_$ac_safe=no"
23314 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23315 +- echo "$ac_t""yes" 1>&6
23316 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23317 +- cat >> confdefs.h <<EOF
23318 +-#define $ac_tr_hdr 1
23322 +- echo "$ac_t""no" 1>&6
23323 +-for ac_hdr in kerberosIV/krb.h
23325 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23326 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23327 +-echo "configure:8296: checking for $ac_hdr" >&5
23328 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23329 +- echo $ac_n "(cached) $ac_c" 1>&6
23331 +- cat > conftest.$ac_ext <<EOF
23332 +-#line 8301 "configure"
23333 +-#include "confdefs.h"
23334 +-#include <$ac_hdr>
23336 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23337 +-{ (eval echo configure:8306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23338 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23339 +-if test -z "$ac_err"; then
23340 +- rm -rf conftest*
23341 +- eval "ac_cv_header_$ac_safe=yes"
23343 +- echo "$ac_err" >&5
23344 +- echo "configure: failed program was:" >&5
23345 +- cat conftest.$ac_ext >&5
23346 +- rm -rf conftest*
23347 +- eval "ac_cv_header_$ac_safe=no"
23352 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23353 +- echo "$ac_t""yes" 1>&6
23354 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23355 +- cat >> confdefs.h <<EOF
23356 +-#define $ac_tr_hdr 1
23360 +- echo "$ac_t""no" 1>&6
23361 +-for ac_hdr in kerberos/krb.h
23363 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23364 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23365 +-echo "configure:8333: checking for $ac_hdr" >&5
23366 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23367 +- echo $ac_n "(cached) $ac_c" 1>&6
23369 +- cat > conftest.$ac_ext <<EOF
23370 +-#line 8338 "configure"
23371 +-#include "confdefs.h"
23372 +-#include <$ac_hdr>
23374 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23375 +-{ (eval echo configure:8343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23376 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23377 +-if test -z "$ac_err"; then
23378 +- rm -rf conftest*
23379 +- eval "ac_cv_header_$ac_safe=yes"
23381 +- echo "$ac_err" >&5
23382 +- echo "configure: failed program was:" >&5
23383 +- cat conftest.$ac_ext >&5
23384 +- rm -rf conftest*
23385 +- eval "ac_cv_header_$ac_safe=no"
23389 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23390 +- echo "$ac_t""yes" 1>&6
23391 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23392 +- cat >> confdefs.h <<EOF
23393 +-#define $ac_tr_hdr 1
23396 ++if test -z "$ac_cpp_err"; then
23397 ++ ac_header_preproc=yes
23399 +- echo "$ac_t""no" 1>&6
23400 ++ echo "$as_me: failed program was:" >&5
23401 ++sed 's/^/| /' conftest.$ac_ext >&5
23403 ++ ac_header_preproc=no
23405 ++rm -f conftest.err conftest.$ac_ext
23406 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23407 ++echo "${ECHO_T}$ac_header_preproc" >&6
23409 ++# So? What about this header?
23410 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23412 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23413 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23414 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23415 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23416 ++ ac_header_preproc=yes
23419 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23420 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23421 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23422 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23423 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23424 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23425 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23426 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23427 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23428 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23429 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23430 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23433 ++## ------------------------------------------ ##
23434 ++## Report this to the AC_PACKAGE_NAME lists. ##
23435 ++## ------------------------------------------ ##
23438 ++ sed "s/^/$as_me: WARNING: /" >&2
23441 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
23442 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23443 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23444 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
23446 ++ eval "$as_ac_Header=\$ac_header_preproc"
23448 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23449 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23452 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
23453 ++ cat >>confdefs.h <<_ACEOF
23454 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23464 ++for ac_header in krb.h kerberosIV/krb.h kerberos/krb.h
23466 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23467 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23468 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
23469 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23470 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23471 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
23473 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23474 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23476 ++ # Is the header compilable?
23477 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
23478 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23479 ++cat >conftest.$ac_ext <<_ACEOF
23480 ++/* confdefs.h. */
23482 ++cat confdefs.h >>conftest.$ac_ext
23483 ++cat >>conftest.$ac_ext <<_ACEOF
23484 ++/* end confdefs.h. */
23485 ++$ac_includes_default
23486 ++#include <$ac_header>
23488 ++rm -f conftest.$ac_objext
23489 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23490 ++ (eval $ac_compile) 2>conftest.er1
23492 ++ grep -v '^ *+' conftest.er1 >conftest.err
23493 ++ rm -f conftest.er1
23494 ++ cat conftest.err >&5
23495 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 ++ (exit $ac_status); } &&
23497 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23498 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499 ++ (eval $ac_try) 2>&5
23501 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 ++ (exit $ac_status); }; } &&
23503 ++ { ac_try='test -s conftest.$ac_objext'
23504 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505 ++ (eval $ac_try) 2>&5
23507 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 ++ (exit $ac_status); }; }; then
23509 ++ ac_header_compiler=yes
23511 ++ echo "$as_me: failed program was:" >&5
23512 ++sed 's/^/| /' conftest.$ac_ext >&5
23514 ++ac_header_compiler=no
23516 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23517 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23518 ++echo "${ECHO_T}$ac_header_compiler" >&6
23520 ++# Is the header present?
23521 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
23522 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23523 ++cat >conftest.$ac_ext <<_ACEOF
23524 ++/* confdefs.h. */
23526 ++cat confdefs.h >>conftest.$ac_ext
23527 ++cat >>conftest.$ac_ext <<_ACEOF
23528 ++/* end confdefs.h. */
23529 ++#include <$ac_header>
23531 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23532 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23534 ++ grep -v '^ *+' conftest.er1 >conftest.err
23535 ++ rm -f conftest.er1
23536 ++ cat conftest.err >&5
23537 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 ++ (exit $ac_status); } >/dev/null; then
23539 ++ if test -s conftest.err; then
23540 ++ ac_cpp_err=$ac_c_preproc_warn_flag
23541 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23549 ++if test -z "$ac_cpp_err"; then
23550 ++ ac_header_preproc=yes
23552 ++ echo "$as_me: failed program was:" >&5
23553 ++sed 's/^/| /' conftest.$ac_ext >&5
23555 ++ ac_header_preproc=no
23557 ++rm -f conftest.err conftest.$ac_ext
23558 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23559 ++echo "${ECHO_T}$ac_header_preproc" >&6
23561 ++# So? What about this header?
23562 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23564 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23565 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23566 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23567 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23568 ++ ac_header_preproc=yes
23571 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23572 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23573 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23574 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23575 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23576 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23577 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23578 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23579 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23580 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23581 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23582 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23585 ++## ------------------------------------------ ##
23586 ++## Report this to the AC_PACKAGE_NAME lists. ##
23587 ++## ------------------------------------------ ##
23590 ++ sed "s/^/$as_me: WARNING: /" >&2
23593 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
23594 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23595 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23596 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
23598 ++ eval "$as_ac_Header=\$ac_header_preproc"
23600 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23601 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23604 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
23605 ++ cat >>confdefs.h <<_ACEOF
23606 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23614 +- for ac_hdr in com_err.h
23616 ++for ac_header in com_err.h
23618 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23619 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23620 +-echo "configure:8380: checking for $ac_hdr" >&5
23621 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23622 +- echo $ac_n "(cached) $ac_c" 1>&6
23623 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23624 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23625 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
23626 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23627 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23628 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
23630 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23631 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23633 ++ # Is the header compilable?
23634 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
23635 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23636 ++cat >conftest.$ac_ext <<_ACEOF
23637 ++/* confdefs.h. */
23639 ++cat confdefs.h >>conftest.$ac_ext
23640 ++cat >>conftest.$ac_ext <<_ACEOF
23641 ++/* end confdefs.h. */
23642 ++$ac_includes_default
23643 ++#include <$ac_header>
23645 ++rm -f conftest.$ac_objext
23646 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23647 ++ (eval $ac_compile) 2>conftest.er1
23649 ++ grep -v '^ *+' conftest.er1 >conftest.err
23650 ++ rm -f conftest.er1
23651 ++ cat conftest.err >&5
23652 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 ++ (exit $ac_status); } &&
23654 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23655 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 ++ (eval $ac_try) 2>&5
23658 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 ++ (exit $ac_status); }; } &&
23660 ++ { ac_try='test -s conftest.$ac_objext'
23661 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662 ++ (eval $ac_try) 2>&5
23664 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 ++ (exit $ac_status); }; }; then
23666 ++ ac_header_compiler=yes
23668 ++ echo "$as_me: failed program was:" >&5
23669 ++sed 's/^/| /' conftest.$ac_ext >&5
23671 ++ac_header_compiler=no
23673 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23674 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23675 ++echo "${ECHO_T}$ac_header_compiler" >&6
23677 ++# Is the header present?
23678 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
23679 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23680 ++cat >conftest.$ac_ext <<_ACEOF
23681 ++/* confdefs.h. */
23683 ++cat confdefs.h >>conftest.$ac_ext
23684 ++cat >>conftest.$ac_ext <<_ACEOF
23685 ++/* end confdefs.h. */
23686 ++#include <$ac_header>
23688 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23689 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23691 ++ grep -v '^ *+' conftest.er1 >conftest.err
23692 ++ rm -f conftest.er1
23693 ++ cat conftest.err >&5
23694 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 ++ (exit $ac_status); } >/dev/null; then
23696 ++ if test -s conftest.err; then
23697 ++ ac_cpp_err=$ac_c_preproc_warn_flag
23698 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23703 +- cat > conftest.$ac_ext <<EOF
23704 +-#line 8385 "configure"
23705 +-#include "confdefs.h"
23706 +-#include <$ac_hdr>
23708 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23709 +-{ (eval echo configure:8390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23710 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23711 +-if test -z "$ac_err"; then
23712 +- rm -rf conftest*
23713 +- eval "ac_cv_header_$ac_safe=yes"
23716 ++if test -z "$ac_cpp_err"; then
23717 ++ ac_header_preproc=yes
23719 ++ echo "$as_me: failed program was:" >&5
23720 ++sed 's/^/| /' conftest.$ac_ext >&5
23722 ++ ac_header_preproc=no
23724 ++rm -f conftest.err conftest.$ac_ext
23725 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23726 ++echo "${ECHO_T}$ac_header_preproc" >&6
23728 ++# So? What about this header?
23729 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23731 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23732 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23733 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23734 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23735 ++ ac_header_preproc=yes
23738 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23739 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23740 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23741 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23742 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23743 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23744 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23745 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23746 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23747 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23748 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23749 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23752 ++## ------------------------------------------ ##
23753 ++## Report this to the AC_PACKAGE_NAME lists. ##
23754 ++## ------------------------------------------ ##
23757 ++ sed "s/^/$as_me: WARNING: /" >&2
23760 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
23761 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23762 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23763 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
23765 +- echo "$ac_err" >&5
23766 +- echo "configure: failed program was:" >&5
23767 +- cat conftest.$ac_ext >&5
23768 +- rm -rf conftest*
23769 +- eval "ac_cv_header_$ac_safe=no"
23770 ++ eval "$as_ac_Header=\$ac_header_preproc"
23773 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23774 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23777 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23778 +- echo "$ac_t""yes" 1>&6
23779 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23780 +- cat >> confdefs.h <<EOF
23781 +-#define $ac_tr_hdr 1
23785 +- echo "$ac_t""no" 1>&6
23786 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
23787 ++ cat >>confdefs.h <<_ACEOF
23788 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23797 + # Solaris requires -lintl if you want strerror (which calls dgettext)
23798 + # to return localized messages.
23799 +-echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
23800 +-echo "configure:8421: checking for dgettext in -lintl" >&5
23801 +-ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
23802 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
23803 +- echo $ac_n "(cached) $ac_c" 1>&6
23805 ++echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23806 ++echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
23807 ++if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23808 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
23810 +- ac_save_LIBS="$LIBS"
23811 ++ ac_check_lib_save_LIBS=$LIBS
23812 + LIBS="-lintl $LIBS"
23813 +-cat > conftest.$ac_ext <<EOF
23814 +-#line 8429 "configure"
23815 +-#include "confdefs.h"
23816 +-/* Override any gcc2 internal prototype to avoid an error. */
23817 +-/* We use char because int might match the return type of a gcc2
23818 +- builtin and then its argument prototype would still apply. */
23825 +-if { (eval echo configure:8440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23826 +- rm -rf conftest*
23827 +- eval "ac_cv_lib_$ac_lib_var=yes"
23829 +- echo "configure: failed program was:" >&5
23830 +- cat conftest.$ac_ext >&5
23831 +- rm -rf conftest*
23832 +- eval "ac_cv_lib_$ac_lib_var=no"
23835 +-LIBS="$ac_save_LIBS"
23836 ++cat >conftest.$ac_ext <<_ACEOF
23837 ++/* confdefs.h. */
23839 ++cat confdefs.h >>conftest.$ac_ext
23840 ++cat >>conftest.$ac_ext <<_ACEOF
23841 ++/* end confdefs.h. */
23844 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23845 +- echo "$ac_t""yes" 1>&6
23846 +- ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
23847 +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
23848 +- cat >> confdefs.h <<EOF
23849 +-#define $ac_tr_lib 1
23851 ++/* Override any gcc2 internal prototype to avoid an error. */
23852 ++#ifdef __cplusplus
23855 ++/* We use char because int might match the return type of a gcc2
23856 ++ builtin and then its argument prototype would still apply. */
23857 ++char dgettext ();
23866 ++rm -f conftest.$ac_objext conftest$ac_exeext
23867 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23868 ++ (eval $ac_link) 2>conftest.er1
23870 ++ grep -v '^ *+' conftest.er1 >conftest.err
23871 ++ rm -f conftest.er1
23872 ++ cat conftest.err >&5
23873 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 ++ (exit $ac_status); } &&
23875 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23876 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 ++ (eval $ac_try) 2>&5
23879 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 ++ (exit $ac_status); }; } &&
23881 ++ { ac_try='test -s conftest$ac_exeext'
23882 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23883 ++ (eval $ac_try) 2>&5
23885 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 ++ (exit $ac_status); }; }; then
23887 ++ ac_cv_lib_intl_dgettext=yes
23889 ++ echo "$as_me: failed program was:" >&5
23890 ++sed 's/^/| /' conftest.$ac_ext >&5
23892 ++ac_cv_lib_intl_dgettext=no
23894 ++rm -f conftest.err conftest.$ac_objext \
23895 ++ conftest$ac_exeext conftest.$ac_ext
23896 ++LIBS=$ac_check_lib_save_LIBS
23898 ++echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23899 ++echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
23900 ++if test $ac_cv_lib_intl_dgettext = yes; then
23901 ++ cat >>confdefs.h <<_ACEOF
23902 ++#define HAVE_LIBINTL 1
23905 + LIBS="-lintl $LIBS"
23908 +- echo "$ac_t""no" 1>&6
23912 +-echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
23913 +-echo "configure:8469: checking whether localtime caches TZ" >&5
23914 +-if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
23915 +- echo $ac_n "(cached) $ac_c" 1>&6
23916 ++echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23917 ++echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
23918 ++if test "${emacs_cv_localtime_cache+set}" = set; then
23919 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
23921 + if test x$ac_cv_func_tzset = xyes; then
23922 + if test "$cross_compiling" = yes; then
23923 + # If we have tzset, assume the worst when cross-compiling.
23924 + emacs_cv_localtime_cache=yes
23926 +- cat > conftest.$ac_ext <<EOF
23927 +-#line 8479 "configure"
23928 +-#include "confdefs.h"
23929 ++ cat >conftest.$ac_ext <<_ACEOF
23930 ++/* confdefs.h. */
23932 ++cat confdefs.h >>conftest.$ac_ext
23933 ++cat >>conftest.$ac_ext <<_ACEOF
23934 ++/* end confdefs.h. */
23935 + #include <time.h>
23936 + extern char **environ;
23938 +@@ -8506,97 +16253,157 @@
23943 +-if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23946 ++rm -f conftest$ac_exeext
23947 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23948 ++ (eval $ac_link) 2>&5
23950 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23952 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 ++ (eval $ac_try) 2>&5
23955 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 ++ (exit $ac_status); }; }; then
23957 + emacs_cv_localtime_cache=no
23959 +- echo "configure: failed program was:" >&5
23960 +- cat conftest.$ac_ext >&5
23961 +- rm -fr conftest*
23962 +- emacs_cv_localtime_cache=yes
23963 ++ echo "$as_me: program exited with status $ac_status" >&5
23964 ++echo "$as_me: failed program was:" >&5
23965 ++sed 's/^/| /' conftest.$ac_ext >&5
23967 ++( exit $ac_status )
23968 ++emacs_cv_localtime_cache=yes
23971 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23975 + # If we lack tzset, report that localtime does not cache TZ,
23976 + # since we can't invalidate the cache if we don't have tzset.
23977 + emacs_cv_localtime_cache=no
23980 +-echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
23981 ++echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23982 ++echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
23983 + if test $emacs_cv_localtime_cache = yes; then
23984 +- cat >> confdefs.h <<\EOF
23985 ++ cat >>confdefs.h <<\_ACEOF
23986 + #define LOCALTIME_CACHE 1
23992 + if test "x$HAVE_TIMEVAL" = xyes; then
23993 +- for ac_func in gettimeofday
23995 ++for ac_func in gettimeofday
23997 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23998 +-echo "configure:8541: checking for $ac_func" >&5
23999 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
24000 +- echo $ac_n "(cached) $ac_c" 1>&6
24002 +- cat > conftest.$ac_ext <<EOF
24003 +-#line 8546 "configure"
24004 +-#include "confdefs.h"
24005 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24006 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
24007 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24008 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
24009 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
24011 ++ cat >conftest.$ac_ext <<_ACEOF
24012 ++/* confdefs.h. */
24014 ++cat confdefs.h >>conftest.$ac_ext
24015 ++cat >>conftest.$ac_ext <<_ACEOF
24016 ++/* end confdefs.h. */
24017 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24018 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
24019 ++#define $ac_func innocuous_$ac_func
24021 + /* System header to define __stub macros and hopefully few prototypes,
24022 +- which can conflict with char $ac_func(); below. */
24023 +-#include <assert.h>
24024 +-/* Override any gcc2 internal prototype to avoid an error. */
24025 +-/* We use char because int might match the return type of a gcc2
24026 +- builtin and then its argument prototype would still apply. */
24028 ++ which can conflict with char $ac_func (); below.
24029 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24030 ++ <limits.h> exists even on freestanding compilers. */
24034 ++# include <limits.h>
24036 ++# include <assert.h>
24041 ++/* Override any gcc2 internal prototype to avoid an error. */
24042 ++#ifdef __cplusplus
24046 ++/* We use char because int might match the return type of a gcc2
24047 ++ builtin and then its argument prototype would still apply. */
24048 ++char $ac_func ();
24049 + /* The GNU C library defines this for functions which it implements
24050 + to always fail with ENOSYS. Some functions are actually named
24051 + something starting with __ and the normal name is an alias. */
24052 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24056 ++char (*f) () = $ac_func;
24058 ++#ifdef __cplusplus
24064 +-if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24065 +- rm -rf conftest*
24066 +- eval "ac_cv_func_$ac_func=yes"
24068 +- echo "configure: failed program was:" >&5
24069 +- cat conftest.$ac_ext >&5
24070 +- rm -rf conftest*
24071 +- eval "ac_cv_func_$ac_func=no"
24078 ++return f != $ac_func;
24083 ++rm -f conftest.$ac_objext conftest$ac_exeext
24084 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24085 ++ (eval $ac_link) 2>conftest.er1
24087 ++ grep -v '^ *+' conftest.er1 >conftest.err
24088 ++ rm -f conftest.er1
24089 ++ cat conftest.err >&5
24090 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 ++ (exit $ac_status); } &&
24092 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24093 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094 ++ (eval $ac_try) 2>&5
24096 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 ++ (exit $ac_status); }; } &&
24098 ++ { ac_try='test -s conftest$ac_exeext'
24099 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100 ++ (eval $ac_try) 2>&5
24102 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 ++ (exit $ac_status); }; }; then
24104 ++ eval "$as_ac_var=yes"
24106 ++ echo "$as_me: failed program was:" >&5
24107 ++sed 's/^/| /' conftest.$ac_ext >&5
24109 ++eval "$as_ac_var=no"
24111 ++rm -f conftest.err conftest.$ac_objext \
24112 ++ conftest$ac_exeext conftest.$ac_ext
24114 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24115 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24116 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
24117 ++ cat >>confdefs.h <<_ACEOF
24118 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24121 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24122 +- echo "$ac_t""yes" 1>&6
24123 +- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24124 +- cat >> confdefs.h <<EOF
24125 +-#define $ac_tr_func 1
24129 +- echo "$ac_t""no" 1>&6
24133 +- echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
24134 +-echo "configure:8594: checking whether gettimeofday can accept two arguments" >&5
24135 +-if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
24136 +- echo $ac_n "(cached) $ac_c" 1>&6
24138 +- cat > conftest.$ac_ext <<EOF
24139 +-#line 8599 "configure"
24140 +-#include "confdefs.h"
24141 ++ echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24142 ++echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
24143 ++if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24144 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
24146 ++ cat >conftest.$ac_ext <<_ACEOF
24147 ++/* confdefs.h. */
24149 ++cat confdefs.h >>conftest.$ac_ext
24150 ++cat >>conftest.$ac_ext <<_ACEOF
24151 ++/* end confdefs.h. */
24153 + #ifdef TIME_WITH_SYS_TIME
24154 + #include <sys/time.h>
24155 +@@ -8608,54 +16415,106 @@
24156 + #include <time.h>
24163 + struct timeval time;
24164 + gettimeofday (&time, 0);
24167 +-if { (eval echo configure:8617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24168 +- rm -rf conftest*
24173 ++rm -f conftest.$ac_objext
24174 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24175 ++ (eval $ac_compile) 2>conftest.er1
24177 ++ grep -v '^ *+' conftest.er1 >conftest.err
24178 ++ rm -f conftest.er1
24179 ++ cat conftest.err >&5
24180 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 ++ (exit $ac_status); } &&
24182 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24183 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 ++ (eval $ac_try) 2>&5
24186 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 ++ (exit $ac_status); }; } &&
24188 ++ { ac_try='test -s conftest.$ac_objext'
24189 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24190 ++ (eval $ac_try) 2>&5
24192 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 ++ (exit $ac_status); }; }; then
24194 + emacs_cv_gettimeofday_two_arguments=yes
24196 +- echo "configure: failed program was:" >&5
24197 +- cat conftest.$ac_ext >&5
24198 +- rm -rf conftest*
24199 +- emacs_cv_gettimeofday_two_arguments=no
24200 ++ echo "$as_me: failed program was:" >&5
24201 ++sed 's/^/| /' conftest.$ac_ext >&5
24203 ++emacs_cv_gettimeofday_two_arguments=no
24206 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24209 +-echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
24210 ++echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24211 ++echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
24212 + if test $emacs_cv_gettimeofday_two_arguments = no; then
24213 +- cat >> confdefs.h <<\EOF
24214 ++ cat >>confdefs.h <<\_ACEOF
24215 + #define GETTIMEOFDAY_ONE_ARGUMENT 1
24222 + if test "$ac_cv_func_gettimeofday" = yes; then
24223 +- echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
24224 +-echo "configure:8640: checking for struct timezone" >&5
24225 +-if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
24226 +- echo $ac_n "(cached) $ac_c" 1>&6
24228 +- cat > conftest.$ac_ext <<EOF
24229 +-#line 8645 "configure"
24230 +-#include "confdefs.h"
24231 ++ echo "$as_me:$LINENO: checking for struct timezone" >&5
24232 ++echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
24233 ++if test "${emacs_cv_struct_timezone+set}" = set; then
24234 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
24236 ++ cat >conftest.$ac_ext <<_ACEOF
24237 ++/* confdefs.h. */
24239 ++cat confdefs.h >>conftest.$ac_ext
24240 ++cat >>conftest.$ac_ext <<_ACEOF
24241 ++/* end confdefs.h. */
24242 + #include <sys/time.h>
24247 + struct timezone tz;
24250 +-if { (eval echo configure:8652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24251 +- rm -rf conftest*
24256 ++rm -f conftest.$ac_objext
24257 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24258 ++ (eval $ac_compile) 2>conftest.er1
24260 ++ grep -v '^ *+' conftest.er1 >conftest.err
24261 ++ rm -f conftest.er1
24262 ++ cat conftest.err >&5
24263 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 ++ (exit $ac_status); } &&
24265 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24266 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24267 ++ (eval $ac_try) 2>&5
24269 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 ++ (exit $ac_status); }; } &&
24271 ++ { ac_try='test -s conftest.$ac_objext'
24272 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273 ++ (eval $ac_try) 2>&5
24275 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 ++ (exit $ac_status); }; }; then
24277 + if test "$cross_compiling" = yes; then
24278 + emacs_cv_struct_timezone=yes
24280 +- cat > conftest.$ac_ext <<EOF
24281 +-#line 8658 "configure"
24282 +-#include "confdefs.h"
24283 ++ cat >conftest.$ac_ext <<_ACEOF
24284 ++/* confdefs.h. */
24286 ++cat confdefs.h >>conftest.$ac_ext
24287 ++cat >>conftest.$ac_ext <<_ACEOF
24288 ++/* end confdefs.h. */
24290 + #ifdef TIME_WITH_SYS_TIME
24291 + #include <sys/time.h>
24292 +@@ -8672,327 +16531,875 @@
24293 + struct timezone dummy;
24294 + exit (gettimeofday (&time, &dummy));
24297 +-if { (eval echo configure:8677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
24300 ++rm -f conftest$ac_exeext
24301 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24302 ++ (eval $ac_link) 2>&5
24304 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24306 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307 ++ (eval $ac_try) 2>&5
24309 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 ++ (exit $ac_status); }; }; then
24311 + emacs_cv_struct_timezone=yes
24313 +- echo "configure: failed program was:" >&5
24314 +- cat conftest.$ac_ext >&5
24315 +- rm -fr conftest*
24316 +- emacs_cv_struct_timezone=no
24317 ++ echo "$as_me: program exited with status $ac_status" >&5
24318 ++echo "$as_me: failed program was:" >&5
24319 ++sed 's/^/| /' conftest.$ac_ext >&5
24321 ++( exit $ac_status )
24322 ++emacs_cv_struct_timezone=no
24325 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24329 +- echo "configure: failed program was:" >&5
24330 +- cat conftest.$ac_ext >&5
24331 +- rm -rf conftest*
24332 +- emacs_cv_struct_timezone=no
24333 ++ echo "$as_me: failed program was:" >&5
24334 ++sed 's/^/| /' conftest.$ac_ext >&5
24336 ++emacs_cv_struct_timezone=no
24339 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24342 +-echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
24343 ++echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
24344 ++echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
24348 +-echo $ac_n "checking for socket""... $ac_c" 1>&6
24349 +-echo "configure:8703: checking for socket" >&5
24350 +-if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
24351 +- echo $ac_n "(cached) $ac_c" 1>&6
24353 +- cat > conftest.$ac_ext <<EOF
24354 +-#line 8708 "configure"
24355 +-#include "confdefs.h"
24356 ++echo "$as_me:$LINENO: checking for socket" >&5
24357 ++echo $ECHO_N "checking for socket... $ECHO_C" >&6
24358 ++if test "${ac_cv_func_socket+set}" = set; then
24359 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
24361 ++ cat >conftest.$ac_ext <<_ACEOF
24362 ++/* confdefs.h. */
24364 ++cat confdefs.h >>conftest.$ac_ext
24365 ++cat >>conftest.$ac_ext <<_ACEOF
24366 ++/* end confdefs.h. */
24367 ++/* Define socket to an innocuous variant, in case <limits.h> declares socket.
24368 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
24369 ++#define socket innocuous_socket
24371 + /* System header to define __stub macros and hopefully few prototypes,
24372 +- which can conflict with char socket(); below. */
24373 +-#include <assert.h>
24374 +-/* Override any gcc2 internal prototype to avoid an error. */
24375 +-/* We use char because int might match the return type of a gcc2
24376 +- builtin and then its argument prototype would still apply. */
24378 ++ which can conflict with char socket (); below.
24379 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24380 ++ <limits.h> exists even on freestanding compilers. */
24383 ++# include <limits.h>
24385 ++# include <assert.h>
24391 ++/* Override any gcc2 internal prototype to avoid an error. */
24392 ++#ifdef __cplusplus
24396 ++/* We use char because int might match the return type of a gcc2
24397 ++ builtin and then its argument prototype would still apply. */
24399 + /* The GNU C library defines this for functions which it implements
24400 + to always fail with ENOSYS. Some functions are actually named
24401 + something starting with __ and the normal name is an alias. */
24402 + #if defined (__stub_socket) || defined (__stub___socket)
24406 ++char (*f) () = socket;
24408 ++#ifdef __cplusplus
24414 +-if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24415 +- rm -rf conftest*
24416 +- eval "ac_cv_func_socket=yes"
24418 +- echo "configure: failed program was:" >&5
24419 +- cat conftest.$ac_ext >&5
24420 +- rm -rf conftest*
24421 +- eval "ac_cv_func_socket=no"
24426 +-if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
24427 +- echo "$ac_t""yes" 1>&6
24431 ++return f != socket;
24436 ++rm -f conftest.$ac_objext conftest$ac_exeext
24437 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24438 ++ (eval $ac_link) 2>conftest.er1
24440 ++ grep -v '^ *+' conftest.er1 >conftest.err
24441 ++ rm -f conftest.er1
24442 ++ cat conftest.err >&5
24443 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 ++ (exit $ac_status); } &&
24445 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24446 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24447 ++ (eval $ac_try) 2>&5
24449 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 ++ (exit $ac_status); }; } &&
24451 ++ { ac_try='test -s conftest$ac_exeext'
24452 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453 ++ (eval $ac_try) 2>&5
24455 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 ++ (exit $ac_status); }; }; then
24457 ++ ac_cv_func_socket=yes
24459 ++ echo "$as_me: failed program was:" >&5
24460 ++sed 's/^/| /' conftest.$ac_ext >&5
24462 ++ac_cv_func_socket=no
24464 ++rm -f conftest.err conftest.$ac_objext \
24465 ++ conftest$ac_exeext conftest.$ac_ext
24467 ++echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24468 ++echo "${ECHO_T}$ac_cv_func_socket" >&6
24469 ++if test $ac_cv_func_socket = yes; then
24472 +- echo "$ac_t""no" 1>&6
24477 + if test $ok_so_far = yes; then
24478 +- ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
24479 +-echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
24480 +-echo "configure:8754: checking for netinet/in.h" >&5
24481 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
24482 +- echo $ac_n "(cached) $ac_c" 1>&6
24484 +- cat > conftest.$ac_ext <<EOF
24485 +-#line 8759 "configure"
24486 +-#include "confdefs.h"
24487 ++ if test "${ac_cv_header_netinet_in_h+set}" = set; then
24488 ++ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24489 ++echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
24490 ++if test "${ac_cv_header_netinet_in_h+set}" = set; then
24491 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
24493 ++echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24494 ++echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
24496 ++ # Is the header compilable?
24497 ++echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24498 ++echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
24499 ++cat >conftest.$ac_ext <<_ACEOF
24500 ++/* confdefs.h. */
24502 ++cat confdefs.h >>conftest.$ac_ext
24503 ++cat >>conftest.$ac_ext <<_ACEOF
24504 ++/* end confdefs.h. */
24505 ++$ac_includes_default
24506 ++#include <netinet/in.h>
24508 ++rm -f conftest.$ac_objext
24509 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24510 ++ (eval $ac_compile) 2>conftest.er1
24512 ++ grep -v '^ *+' conftest.er1 >conftest.err
24513 ++ rm -f conftest.er1
24514 ++ cat conftest.err >&5
24515 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 ++ (exit $ac_status); } &&
24517 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24518 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519 ++ (eval $ac_try) 2>&5
24521 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 ++ (exit $ac_status); }; } &&
24523 ++ { ac_try='test -s conftest.$ac_objext'
24524 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 ++ (eval $ac_try) 2>&5
24527 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 ++ (exit $ac_status); }; }; then
24529 ++ ac_header_compiler=yes
24531 ++ echo "$as_me: failed program was:" >&5
24532 ++sed 's/^/| /' conftest.$ac_ext >&5
24534 ++ac_header_compiler=no
24536 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24537 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24538 ++echo "${ECHO_T}$ac_header_compiler" >&6
24540 ++# Is the header present?
24541 ++echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24542 ++echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
24543 ++cat >conftest.$ac_ext <<_ACEOF
24544 ++/* confdefs.h. */
24546 ++cat confdefs.h >>conftest.$ac_ext
24547 ++cat >>conftest.$ac_ext <<_ACEOF
24548 ++/* end confdefs.h. */
24549 + #include <netinet/in.h>
24551 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24552 +-{ (eval echo configure:8764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24553 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24554 +-if test -z "$ac_err"; then
24555 +- rm -rf conftest*
24556 +- eval "ac_cv_header_$ac_safe=yes"
24558 +- echo "$ac_err" >&5
24559 +- echo "configure: failed program was:" >&5
24560 +- cat conftest.$ac_ext >&5
24561 +- rm -rf conftest*
24562 +- eval "ac_cv_header_$ac_safe=no"
24564 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24565 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24567 ++ grep -v '^ *+' conftest.er1 >conftest.err
24568 ++ rm -f conftest.er1
24569 ++ cat conftest.err >&5
24570 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 ++ (exit $ac_status); } >/dev/null; then
24572 ++ if test -s conftest.err; then
24573 ++ ac_cpp_err=$ac_c_preproc_warn_flag
24574 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24582 ++if test -z "$ac_cpp_err"; then
24583 ++ ac_header_preproc=yes
24585 ++ echo "$as_me: failed program was:" >&5
24586 ++sed 's/^/| /' conftest.$ac_ext >&5
24588 ++ ac_header_preproc=no
24590 ++rm -f conftest.err conftest.$ac_ext
24591 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24592 ++echo "${ECHO_T}$ac_header_preproc" >&6
24594 ++# So? What about this header?
24595 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24597 ++ { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24598 ++echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24599 ++ { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24600 ++echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24601 ++ ac_header_preproc=yes
24604 ++ { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24605 ++echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24606 ++ { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24607 ++echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24608 ++ { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24609 ++echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24610 ++ { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24611 ++echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24612 ++ { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24613 ++echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24614 ++ { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24615 ++echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24618 ++## ------------------------------------------ ##
24619 ++## Report this to the AC_PACKAGE_NAME lists. ##
24620 ++## ------------------------------------------ ##
24623 ++ sed "s/^/$as_me: WARNING: /" >&2
24626 ++echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24627 ++echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
24628 ++if test "${ac_cv_header_netinet_in_h+set}" = set; then
24629 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
24631 ++ ac_cv_header_netinet_in_h=$ac_header_preproc
24633 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24634 +- echo "$ac_t""yes" 1>&6
24635 ++echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24636 ++echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
24639 ++if test $ac_cv_header_netinet_in_h = yes; then
24642 +- echo "$ac_t""no" 1>&6
24649 + if test $ok_so_far = yes; then
24650 +- ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
24651 +-echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
24652 +-echo "configure:8790: checking for arpa/inet.h" >&5
24653 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
24654 +- echo $ac_n "(cached) $ac_c" 1>&6
24656 +- cat > conftest.$ac_ext <<EOF
24657 +-#line 8795 "configure"
24658 +-#include "confdefs.h"
24659 ++ if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24660 ++ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24661 ++echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
24662 ++if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24663 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
24665 ++echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24666 ++echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
24668 ++ # Is the header compilable?
24669 ++echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24670 ++echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
24671 ++cat >conftest.$ac_ext <<_ACEOF
24672 ++/* confdefs.h. */
24674 ++cat confdefs.h >>conftest.$ac_ext
24675 ++cat >>conftest.$ac_ext <<_ACEOF
24676 ++/* end confdefs.h. */
24677 ++$ac_includes_default
24678 ++#include <arpa/inet.h>
24680 ++rm -f conftest.$ac_objext
24681 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24682 ++ (eval $ac_compile) 2>conftest.er1
24684 ++ grep -v '^ *+' conftest.er1 >conftest.err
24685 ++ rm -f conftest.er1
24686 ++ cat conftest.err >&5
24687 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 ++ (exit $ac_status); } &&
24689 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24690 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24691 ++ (eval $ac_try) 2>&5
24693 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 ++ (exit $ac_status); }; } &&
24695 ++ { ac_try='test -s conftest.$ac_objext'
24696 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24697 ++ (eval $ac_try) 2>&5
24699 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700 ++ (exit $ac_status); }; }; then
24701 ++ ac_header_compiler=yes
24703 ++ echo "$as_me: failed program was:" >&5
24704 ++sed 's/^/| /' conftest.$ac_ext >&5
24706 ++ac_header_compiler=no
24708 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24709 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24710 ++echo "${ECHO_T}$ac_header_compiler" >&6
24712 ++# Is the header present?
24713 ++echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24714 ++echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
24715 ++cat >conftest.$ac_ext <<_ACEOF
24716 ++/* confdefs.h. */
24718 ++cat confdefs.h >>conftest.$ac_ext
24719 ++cat >>conftest.$ac_ext <<_ACEOF
24720 ++/* end confdefs.h. */
24721 + #include <arpa/inet.h>
24723 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24724 +-{ (eval echo configure:8800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24725 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24726 +-if test -z "$ac_err"; then
24727 +- rm -rf conftest*
24728 +- eval "ac_cv_header_$ac_safe=yes"
24730 +- echo "$ac_err" >&5
24731 +- echo "configure: failed program was:" >&5
24732 +- cat conftest.$ac_ext >&5
24733 +- rm -rf conftest*
24734 +- eval "ac_cv_header_$ac_safe=no"
24736 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24737 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24739 ++ grep -v '^ *+' conftest.er1 >conftest.err
24740 ++ rm -f conftest.er1
24741 ++ cat conftest.err >&5
24742 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 ++ (exit $ac_status); } >/dev/null; then
24744 ++ if test -s conftest.err; then
24745 ++ ac_cpp_err=$ac_c_preproc_warn_flag
24746 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24754 ++if test -z "$ac_cpp_err"; then
24755 ++ ac_header_preproc=yes
24757 ++ echo "$as_me: failed program was:" >&5
24758 ++sed 's/^/| /' conftest.$ac_ext >&5
24760 ++ ac_header_preproc=no
24762 ++rm -f conftest.err conftest.$ac_ext
24763 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24764 ++echo "${ECHO_T}$ac_header_preproc" >&6
24766 ++# So? What about this header?
24767 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24769 ++ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24770 ++echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24771 ++ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24772 ++echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24773 ++ ac_header_preproc=yes
24776 ++ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24777 ++echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24778 ++ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24779 ++echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24780 ++ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24781 ++echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24782 ++ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24783 ++echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24784 ++ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24785 ++echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24786 ++ { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24787 ++echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24790 ++## ------------------------------------------ ##
24791 ++## Report this to the AC_PACKAGE_NAME lists. ##
24792 ++## ------------------------------------------ ##
24795 ++ sed "s/^/$as_me: WARNING: /" >&2
24798 ++echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24799 ++echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
24800 ++if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24801 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
24803 ++ ac_cv_header_arpa_inet_h=$ac_header_preproc
24805 ++echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24806 ++echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
24809 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24810 +- echo "$ac_t""yes" 1>&6
24811 ++if test $ac_cv_header_arpa_inet_h = yes; then
24814 +- echo "$ac_t""no" 1>&6
24821 + if test $ok_so_far = yes; then
24822 +- cat >> confdefs.h <<\EOF
24823 ++ cat >>confdefs.h <<\_ACEOF
24824 + #define HAVE_INET_SOCKETS 1
24830 + if test -f /usr/lpp/X11/bin/smt.exp; then
24831 +- cat >> confdefs.h <<\EOF
24832 ++ cat >>confdefs.h <<\_ACEOF
24833 + #define HAVE_AIX_SMT_EXP 1
24839 +-echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
24840 +-echo "configure:8838: checking whether system supports dynamic ptys" >&5
24841 ++echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24842 ++echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
24843 + if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24844 +- echo "$ac_t""yes" 1>&6
24845 +- cat >> confdefs.h <<\EOF
24846 ++ echo "$as_me:$LINENO: result: yes" >&5
24847 ++echo "${ECHO_T}yes" >&6
24848 ++ cat >>confdefs.h <<\_ACEOF
24849 + #define HAVE_DEV_PTMX 1
24854 +- echo "$ac_t""no" 1>&6
24855 ++ echo "$as_me:$LINENO: result: no" >&5
24856 ++echo "${ECHO_T}no" >&6
24859 +-echo $ac_n "checking for pid_t""... $ac_c" 1>&6
24860 +-echo "configure:8850: checking for pid_t" >&5
24861 +-if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
24862 +- echo $ac_n "(cached) $ac_c" 1>&6
24863 ++echo "$as_me:$LINENO: checking for pid_t" >&5
24864 ++echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
24865 ++if test "${ac_cv_type_pid_t+set}" = set; then
24866 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
24868 +- cat > conftest.$ac_ext <<EOF
24869 +-#line 8855 "configure"
24870 +-#include "confdefs.h"
24871 +-#include <sys/types.h>
24873 +-#include <stdlib.h>
24874 +-#include <stddef.h>
24877 +-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24878 +- egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
24879 +- rm -rf conftest*
24880 ++ cat >conftest.$ac_ext <<_ACEOF
24881 ++/* confdefs.h. */
24883 ++cat confdefs.h >>conftest.$ac_ext
24884 ++cat >>conftest.$ac_ext <<_ACEOF
24885 ++/* end confdefs.h. */
24886 ++$ac_includes_default
24892 ++if (sizeof (pid_t))
24898 ++rm -f conftest.$ac_objext
24899 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24900 ++ (eval $ac_compile) 2>conftest.er1
24902 ++ grep -v '^ *+' conftest.er1 >conftest.err
24903 ++ rm -f conftest.er1
24904 ++ cat conftest.err >&5
24905 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 ++ (exit $ac_status); } &&
24907 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24908 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24909 ++ (eval $ac_try) 2>&5
24911 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 ++ (exit $ac_status); }; } &&
24913 ++ { ac_try='test -s conftest.$ac_objext'
24914 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915 ++ (eval $ac_try) 2>&5
24917 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 ++ (exit $ac_status); }; }; then
24919 + ac_cv_type_pid_t=yes
24921 +- rm -rf conftest*
24922 +- ac_cv_type_pid_t=no
24925 ++ echo "$as_me: failed program was:" >&5
24926 ++sed 's/^/| /' conftest.$ac_ext >&5
24928 ++ac_cv_type_pid_t=no
24930 +-echo "$ac_t""$ac_cv_type_pid_t" 1>&6
24931 +-if test $ac_cv_type_pid_t = no; then
24932 +- cat >> confdefs.h <<\EOF
24933 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24935 ++echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24936 ++echo "${ECHO_T}$ac_cv_type_pid_t" >&6
24937 ++if test $ac_cv_type_pid_t = yes; then
24941 ++cat >>confdefs.h <<_ACEOF
24942 + #define pid_t int
24948 +-ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
24949 +-echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
24950 +-echo "configure:8884: checking for vfork.h" >&5
24951 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
24952 +- echo $ac_n "(cached) $ac_c" 1>&6
24954 +- cat > conftest.$ac_ext <<EOF
24955 +-#line 8889 "configure"
24956 +-#include "confdefs.h"
24957 +-#include <vfork.h>
24959 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24960 +-{ (eval echo configure:8894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24961 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24962 +-if test -z "$ac_err"; then
24963 +- rm -rf conftest*
24964 +- eval "ac_cv_header_$ac_safe=yes"
24966 +- echo "$ac_err" >&5
24967 +- echo "configure: failed program was:" >&5
24968 +- cat conftest.$ac_ext >&5
24969 +- rm -rf conftest*
24970 +- eval "ac_cv_header_$ac_safe=no"
24974 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24975 +- echo "$ac_t""yes" 1>&6
24976 +- cat >> confdefs.h <<\EOF
24977 +-#define HAVE_VFORK_H 1
24981 ++for ac_header in unistd.h vfork.h
24983 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24984 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
24985 ++ echo "$as_me:$LINENO: checking for $ac_header" >&5
24986 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24987 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
24988 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
24990 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24991 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24993 ++ # Is the header compilable?
24994 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
24995 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24996 ++cat >conftest.$ac_ext <<_ACEOF
24997 ++/* confdefs.h. */
24999 ++cat confdefs.h >>conftest.$ac_ext
25000 ++cat >>conftest.$ac_ext <<_ACEOF
25001 ++/* end confdefs.h. */
25002 ++$ac_includes_default
25003 ++#include <$ac_header>
25005 ++rm -f conftest.$ac_objext
25006 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25007 ++ (eval $ac_compile) 2>conftest.er1
25009 ++ grep -v '^ *+' conftest.er1 >conftest.err
25010 ++ rm -f conftest.er1
25011 ++ cat conftest.err >&5
25012 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 ++ (exit $ac_status); } &&
25014 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25015 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 ++ (eval $ac_try) 2>&5
25018 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 ++ (exit $ac_status); }; } &&
25020 ++ { ac_try='test -s conftest.$ac_objext'
25021 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022 ++ (eval $ac_try) 2>&5
25024 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 ++ (exit $ac_status); }; }; then
25026 ++ ac_header_compiler=yes
25028 ++ echo "$as_me: failed program was:" >&5
25029 ++sed 's/^/| /' conftest.$ac_ext >&5
25031 ++ac_header_compiler=no
25033 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25034 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25035 ++echo "${ECHO_T}$ac_header_compiler" >&6
25037 ++# Is the header present?
25038 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
25039 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25040 ++cat >conftest.$ac_ext <<_ACEOF
25041 ++/* confdefs.h. */
25043 ++cat confdefs.h >>conftest.$ac_ext
25044 ++cat >>conftest.$ac_ext <<_ACEOF
25045 ++/* end confdefs.h. */
25046 ++#include <$ac_header>
25048 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25049 ++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25051 ++ grep -v '^ *+' conftest.er1 >conftest.err
25052 ++ rm -f conftest.er1
25053 ++ cat conftest.err >&5
25054 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 ++ (exit $ac_status); } >/dev/null; then
25056 ++ if test -s conftest.err; then
25057 ++ ac_cpp_err=$ac_c_preproc_warn_flag
25058 ++ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25063 +- echo "$ac_t""no" 1>&6
25066 ++if test -z "$ac_cpp_err"; then
25067 ++ ac_header_preproc=yes
25069 ++ echo "$as_me: failed program was:" >&5
25070 ++sed 's/^/| /' conftest.$ac_ext >&5
25072 +-echo $ac_n "checking for working vfork""... $ac_c" 1>&6
25073 +-echo "configure:8919: checking for working vfork" >&5
25074 +-if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
25075 +- echo $ac_n "(cached) $ac_c" 1>&6
25076 ++ ac_header_preproc=no
25078 ++rm -f conftest.err conftest.$ac_ext
25079 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25080 ++echo "${ECHO_T}$ac_header_preproc" >&6
25082 ++# So? What about this header?
25083 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25085 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25086 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25087 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25088 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25089 ++ ac_header_preproc=yes
25092 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25093 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25094 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25095 ++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25096 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25097 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25098 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25099 ++echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25100 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25101 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25102 ++ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25103 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25106 ++## ------------------------------------------ ##
25107 ++## Report this to the AC_PACKAGE_NAME lists. ##
25108 ++## ------------------------------------------ ##
25111 ++ sed "s/^/$as_me: WARNING: /" >&2
25114 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
25115 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25116 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
25117 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
25119 +- if test "$cross_compiling" = yes; then
25120 +- echo $ac_n "checking for vfork""... $ac_c" 1>&6
25121 +-echo "configure:8925: checking for vfork" >&5
25122 +-if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
25123 +- echo $ac_n "(cached) $ac_c" 1>&6
25125 +- cat > conftest.$ac_ext <<EOF
25126 +-#line 8930 "configure"
25127 +-#include "confdefs.h"
25128 ++ eval "$as_ac_Header=\$ac_header_preproc"
25130 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25131 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25134 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
25135 ++ cat >>confdefs.h <<_ACEOF
25136 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25145 ++for ac_func in fork vfork
25147 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25148 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
25149 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25150 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
25151 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
25153 ++ cat >conftest.$ac_ext <<_ACEOF
25154 ++/* confdefs.h. */
25156 ++cat confdefs.h >>conftest.$ac_ext
25157 ++cat >>conftest.$ac_ext <<_ACEOF
25158 ++/* end confdefs.h. */
25159 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25160 ++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
25161 ++#define $ac_func innocuous_$ac_func
25163 + /* System header to define __stub macros and hopefully few prototypes,
25164 +- which can conflict with char vfork(); below. */
25165 +-#include <assert.h>
25166 +-/* Override any gcc2 internal prototype to avoid an error. */
25167 +-/* We use char because int might match the return type of a gcc2
25168 +- builtin and then its argument prototype would still apply. */
25170 ++ which can conflict with char $ac_func (); below.
25171 ++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25172 ++ <limits.h> exists even on freestanding compilers. */
25175 ++# include <limits.h>
25177 ++# include <assert.h>
25183 ++/* Override any gcc2 internal prototype to avoid an error. */
25184 ++#ifdef __cplusplus
25188 ++/* We use char because int might match the return type of a gcc2
25189 ++ builtin and then its argument prototype would still apply. */
25190 ++char $ac_func ();
25191 + /* The GNU C library defines this for functions which it implements
25192 + to always fail with ENOSYS. Some functions are actually named
25193 + something starting with __ and the normal name is an alias. */
25194 +-#if defined (__stub_vfork) || defined (__stub___vfork)
25195 ++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25199 ++char (*f) () = $ac_func;
25201 ++#ifdef __cplusplus
25207 +-if { (eval echo configure:8953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
25208 +- rm -rf conftest*
25209 +- eval "ac_cv_func_vfork=yes"
25211 +- echo "configure: failed program was:" >&5
25212 +- cat conftest.$ac_ext >&5
25213 +- rm -rf conftest*
25214 +- eval "ac_cv_func_vfork=no"
25220 ++return f != $ac_func;
25225 ++rm -f conftest.$ac_objext conftest$ac_exeext
25226 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25227 ++ (eval $ac_link) 2>conftest.er1
25229 ++ grep -v '^ *+' conftest.er1 >conftest.err
25230 ++ rm -f conftest.er1
25231 ++ cat conftest.err >&5
25232 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 ++ (exit $ac_status); } &&
25234 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25235 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 ++ (eval $ac_try) 2>&5
25238 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 ++ (exit $ac_status); }; } &&
25240 ++ { ac_try='test -s conftest$ac_exeext'
25241 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242 ++ (eval $ac_try) 2>&5
25244 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 ++ (exit $ac_status); }; }; then
25246 ++ eval "$as_ac_var=yes"
25248 ++ echo "$as_me: failed program was:" >&5
25249 ++sed 's/^/| /' conftest.$ac_ext >&5
25251 ++eval "$as_ac_var=no"
25253 ++rm -f conftest.err conftest.$ac_objext \
25254 ++ conftest$ac_exeext conftest.$ac_ext
25256 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25257 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25258 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
25259 ++ cat >>confdefs.h <<_ACEOF
25260 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25266 +-if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
25267 +- echo "$ac_t""yes" 1>&6
25269 ++if test "x$ac_cv_func_fork" = xyes; then
25270 ++ echo "$as_me:$LINENO: checking for working fork" >&5
25271 ++echo $ECHO_N "checking for working fork... $ECHO_C" >&6
25272 ++if test "${ac_cv_func_fork_works+set}" = set; then
25273 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
25275 ++ if test "$cross_compiling" = yes; then
25276 ++ ac_cv_func_fork_works=cross
25278 +- echo "$ac_t""no" 1>&6
25279 ++ cat >conftest.$ac_ext <<_ACEOF
25280 ++/* By Ruediger Kuhlmann. */
25281 ++ #include <sys/types.h>
25282 ++ #if HAVE_UNISTD_H
25283 ++ # include <unistd.h>
25285 ++ /* Some systems only have a dummy stub for fork() */
25293 ++rm -f conftest$ac_exeext
25294 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25295 ++ (eval $ac_link) 2>&5
25297 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25299 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25300 ++ (eval $ac_try) 2>&5
25302 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 ++ (exit $ac_status); }; }; then
25304 ++ ac_cv_func_fork_works=yes
25306 ++ echo "$as_me: program exited with status $ac_status" >&5
25307 ++echo "$as_me: failed program was:" >&5
25308 ++sed 's/^/| /' conftest.$ac_ext >&5
25310 ++( exit $ac_status )
25311 ++ac_cv_func_fork_works=no
25313 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25316 ++echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25317 ++echo "${ECHO_T}$ac_cv_func_fork_works" >&6
25320 ++ ac_cv_func_fork_works=$ac_cv_func_fork
25322 ++if test "x$ac_cv_func_fork_works" = xcross; then
25324 ++ *-*-amigaos* | *-*-msdosdjgpp*)
25325 ++ # Override, as these systems have only a dummy fork() stub
25326 ++ ac_cv_func_fork_works=no
25329 ++ ac_cv_func_fork_works=yes
25332 ++ { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25333 ++echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25336 + ac_cv_func_vfork_works=$ac_cv_func_vfork
25337 ++if test "x$ac_cv_func_vfork" = xyes; then
25338 ++ echo "$as_me:$LINENO: checking for working vfork" >&5
25339 ++echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
25340 ++if test "${ac_cv_func_vfork_works+set}" = set; then
25341 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
25343 ++ if test "$cross_compiling" = yes; then
25344 ++ ac_cv_func_vfork_works=cross
25346 +- cat > conftest.$ac_ext <<EOF
25347 +-#line 8975 "configure"
25348 +-#include "confdefs.h"
25349 ++ cat >conftest.$ac_ext <<_ACEOF
25350 ++/* confdefs.h. */
25352 ++cat confdefs.h >>conftest.$ac_ext
25353 ++cat >>conftest.$ac_ext <<_ACEOF
25354 ++/* end confdefs.h. */
25355 + /* Thanks to Paul Eggert for this test. */
25356 + #include <stdio.h>
25357 ++#include <stdlib.h>
25358 + #include <sys/types.h>
25359 + #include <sys/stat.h>
25360 +-#ifdef HAVE_UNISTD_H
25361 +-#include <unistd.h>
25362 ++#include <sys/wait.h>
25363 ++#if HAVE_UNISTD_H
25364 ++# include <unistd.h>
25366 +-#ifdef HAVE_VFORK_H
25367 +-#include <vfork.h>
25369 ++# include <vfork.h>
25371 + /* On some sparc systems, changes by the child to local and incoming
25372 +- argument registers are propagated back to the parent.
25373 +- The compiler is told about this with #include <vfork.h>,
25374 +- but some compilers (e.g. gcc -O) don't grok <vfork.h>.
25375 +- Test for this by using a static variable whose address
25376 +- is put into a register that is clobbered by the vfork. */
25378 ++ argument registers are propagated back to the parent. The compiler
25379 ++ is told about this with #include <vfork.h>, but some compilers
25380 ++ (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25381 ++ static variable whose address is put into a register that is
25382 ++ clobbered by the vfork. */
25384 + #ifdef __cplusplus
25385 + sparc_address_test (int arg)
25388 + sparc_address_test (arg) int arg;
25391 +@@ -9010,25 +17417,27 @@
25400 + pid_t parent = getpid ();
25403 +- sparc_address_test ();
25404 ++ sparc_address_test (0);
25406 + child = vfork ();
25408 + if (child == 0) {
25409 +- /* Here is another test for sparc vfork register problems.
25410 +- This test uses lots of local variables, at least
25411 +- as many local variables as main has allocated so far
25412 +- including compiler temporaries. 4 locals are enough for
25413 +- gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
25414 +- A buggy compiler should reuse the register of parent
25415 +- for one of the local variables, since it will think that
25416 +- parent can't possibly be used any more in this routine.
25417 +- Assigning to the local variable will thus munge parent
25418 +- in the parent process. */
25419 ++ /* Here is another test for sparc vfork register problems. This
25420 ++ test uses lots of local variables, at least as many local
25421 ++ variables as main has allocated so far including compiler
25422 ++ temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25423 ++ 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25424 ++ reuse the register of parent for one of the local variables,
25425 ++ since it will think that parent can't possibly be used any more
25426 ++ in this routine. Assigning to the local variable will thus
25427 ++ munge parent in the parent process. */
25429 + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25430 + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25431 +@@ -9038,11 +17447,10 @@
25432 + || p != p5 || p != p6 || p != p7)
25435 +- /* On some systems (e.g. IRIX 3.3),
25436 +- vfork doesn't separate parent from child file descriptors.
25437 +- If the child closes a descriptor before it execs or exits,
25438 +- this munges the parent's descriptor as well.
25439 +- Test for this by closing stdout in the child. */
25440 ++ /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25441 ++ from child file descriptors. If the child closes a descriptor
25442 ++ before it execs or exits, this munges the parent's descriptor
25443 ++ as well. Test for this by closing stdout in the child. */
25444 + _exit(close(fileno(stdout)) != 0);
25447 +@@ -9065,61 +17473,125 @@
25452 +-if { (eval echo configure:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
25455 ++rm -f conftest$ac_exeext
25456 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25457 ++ (eval $ac_link) 2>&5
25459 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 ++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25461 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25462 ++ (eval $ac_try) 2>&5
25464 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 ++ (exit $ac_status); }; }; then
25466 + ac_cv_func_vfork_works=yes
25468 +- echo "configure: failed program was:" >&5
25469 +- cat conftest.$ac_ext >&5
25470 +- rm -fr conftest*
25471 +- ac_cv_func_vfork_works=no
25472 ++ echo "$as_me: program exited with status $ac_status" >&5
25473 ++echo "$as_me: failed program was:" >&5
25474 ++sed 's/^/| /' conftest.$ac_ext >&5
25476 ++( exit $ac_status )
25477 ++ac_cv_func_vfork_works=no
25479 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25483 ++echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25484 ++echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
25487 ++if test "x$ac_cv_func_fork_works" = xcross; then
25488 ++ ac_cv_func_vfork_works=$ac_cv_func_vfork
25489 ++ { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25490 ++echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25493 +-echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
25494 +-if test $ac_cv_func_vfork_works = no; then
25495 +- cat >> confdefs.h <<\EOF
25496 ++if test "x$ac_cv_func_vfork_works" = xyes; then
25498 ++cat >>confdefs.h <<\_ACEOF
25499 ++#define HAVE_WORKING_VFORK 1
25504 ++cat >>confdefs.h <<\_ACEOF
25505 + #define vfork fork
25510 ++if test "x$ac_cv_func_fork_works" = xyes; then
25512 ++cat >>confdefs.h <<\_ACEOF
25513 ++#define HAVE_WORKING_FORK 1
25519 + # Fixme: This should be replaced when we have autoconf 2.14.
25520 +-echo $ac_n "checking for size_t""... $ac_c" 1>&6
25521 +-echo "configure:9095: checking for size_t" >&5
25522 +-if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
25523 +- echo $ac_n "(cached) $ac_c" 1>&6
25525 +- cat > conftest.$ac_ext <<EOF
25526 +-#line 9100 "configure"
25527 +-#include "confdefs.h"
25528 +-#include <sys/types.h>
25530 +-#include <stdlib.h>
25531 +-#include <stddef.h>
25534 +-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25535 +- egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
25536 +- rm -rf conftest*
25537 ++echo "$as_me:$LINENO: checking for size_t" >&5
25538 ++echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25539 ++if test "${ac_cv_type_size_t+set}" = set; then
25540 ++ echo $ECHO_N "(cached) $ECHO_C" >&6
25542 ++ cat >conftest.$ac_ext <<_ACEOF
25543 ++/* confdefs.h. */
25545 ++cat confdefs.h >>conftest.$ac_ext
25546 ++cat >>conftest.$ac_ext <<_ACEOF
25547 ++/* end confdefs.h. */
25548 ++$ac_includes_default
25552 ++if ((size_t *) 0)
25554 ++if (sizeof (size_t))
25560 ++rm -f conftest.$ac_objext
25561 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25562 ++ (eval $ac_compile) 2>conftest.er1
25564 ++ grep -v '^ *+' conftest.er1 >conftest.err
25565 ++ rm -f conftest.er1
25566 ++ cat conftest.err >&5
25567 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 ++ (exit $ac_status); } &&
25569 ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25570 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571 ++ (eval $ac_try) 2>&5
25573 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 ++ (exit $ac_status); }; } &&
25575 ++ { ac_try='test -s conftest.$ac_objext'
25576 ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577 ++ (eval $ac_try) 2>&5
25579 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 ++ (exit $ac_status); }; }; then
25581 + ac_cv_type_size_t=yes
25583 +- rm -rf conftest*
25584 +- ac_cv_type_size_t=no
25587 ++ echo "$as_me: failed program was:" >&5
25588 ++sed 's/^/| /' conftest.$ac_ext >&5
25590 ++ac_cv_type_size_t=no
25592 +-echo "$ac_t""$ac_cv_type_size_t" 1>&6
25593 +-if test $ac_cv_type_size_t = no; then
25594 +- cat >> confdefs.h <<\EOF
25595 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25597 ++echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25598 ++echo "${ECHO_T}$ac_cv_type_size_t" >&6
25599 ++if test $ac_cv_type_size_t = yes; then
25603 ++cat >>confdefs.h <<_ACEOF
25604 + #define size_t unsigned
25610 +@@ -9132,7 +17604,9 @@
25611 + version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25612 + | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25613 + if test x"${version}" = x; then
25614 +- { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
25615 ++ { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25616 ++echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25617 ++ { (exit 1); exit 1; }; }
25620 + ### Specify what sort of things we'll be editing into Makefile and config.h.
25621 +@@ -9168,79 +17642,80 @@
25625 +-cat >> confdefs.h <<EOF
25627 ++cat >>confdefs.h <<_ACEOF
25628 + #define EMACS_CONFIGURATION "${canonical}"
25632 +-cat >> confdefs.h <<EOF
25633 ++cat >>confdefs.h <<_ACEOF
25634 + #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25638 +-cat >> confdefs.h <<EOF
25639 ++cat >>confdefs.h <<_ACEOF
25640 + #define config_machfile "${machfile}"
25644 +-cat >> confdefs.h <<EOF
25645 ++cat >>confdefs.h <<_ACEOF
25646 + #define config_opsysfile "${opsysfile}"
25650 +-cat >> confdefs.h <<EOF
25651 ++cat >>confdefs.h <<_ACEOF
25652 + #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25656 +-cat >> confdefs.h <<EOF
25657 ++cat >>confdefs.h <<_ACEOF
25658 + #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25662 +-cat >> confdefs.h <<EOF
25663 ++cat >>confdefs.h <<_ACEOF
25664 + #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25668 +-cat >> confdefs.h <<EOF
25669 ++cat >>confdefs.h <<_ACEOF
25670 + #define UNEXEC_SRC ${UNEXEC_SRC}
25675 + if test "${HAVE_X_WINDOWS}" = "yes" ; then
25676 +- cat >> confdefs.h <<\EOF
25677 ++ cat >>confdefs.h <<\_ACEOF
25678 + #define HAVE_X_WINDOWS 1
25683 + if test "${USE_X_TOOLKIT}" != "none" ; then
25684 +- cat >> confdefs.h <<\EOF
25685 ++ cat >>confdefs.h <<\_ACEOF
25686 + #define USE_X_TOOLKIT 1
25691 + if test "${HAVE_X11}" = "yes" ; then
25692 +- cat >> confdefs.h <<\EOF
25693 ++ cat >>confdefs.h <<\_ACEOF
25694 + #define HAVE_X11 1
25699 + if test "${HAVE_XFREE386}" = "yes" ; then
25700 +- cat >> confdefs.h <<\EOF
25701 ++ cat >>confdefs.h <<\_ACEOF
25702 + #define HAVE_XFREE386 1
25707 + if test "${HAVE_MENUS}" = "yes" ; then
25708 +- cat >> confdefs.h <<\EOF
25709 ++ cat >>confdefs.h <<\_ACEOF
25710 + #define HAVE_MENUS 1
25715 + if test "${GNU_MALLOC}" = "yes" ; then
25716 +- cat >> confdefs.h <<\EOF
25717 ++ cat >>confdefs.h <<\_ACEOF
25718 + #define GNU_MALLOC 1
25723 + if test "${REL_ALLOC}" = "yes" ; then
25724 +- cat >> confdefs.h <<\EOF
25725 ++ cat >>confdefs.h <<\_ACEOF
25726 + #define REL_ALLOC 1
25732 +@@ -9289,414 +17764,1286 @@
25733 + ## from Makefile.c can correctly provide the arg `-traditional' to the
25734 + ## C preprocessor.
25736 +-cat > conftest.$ac_ext <<EOF
25737 +-#line 9294 "configure"
25738 +-#include "confdefs.h"
25739 ++cat >conftest.$ac_ext <<_ACEOF
25740 ++/* confdefs.h. */
25742 ++cat confdefs.h >>conftest.$ac_ext
25743 ++cat >>conftest.$ac_ext <<_ACEOF
25744 ++/* end confdefs.h. */
25748 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25749 +- egrep "yes..yes" >/dev/null 2>&1; then
25750 +- rm -rf conftest*
25751 ++ $EGREP "yes..yes" >/dev/null 2>&1; then
25752 + CPP_NEED_TRADITIONAL=no
25754 +- rm -rf conftest*
25755 + CPP_NEED_TRADITIONAL=yes
25761 +-cat > confcache <<\EOF
25762 ++ ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile leim/Makefile"
25763 ++ ac_config_commands="$ac_config_commands default"
25764 ++cat >confcache <<\_ACEOF
25765 + # This file is a shell script that caches the results of configure
25766 + # tests run on this system so they can be shared between configure
25767 +-# scripts and configure runs. It is not useful on other systems.
25768 +-# If it contains results you don't want to keep, you may remove or edit it.
25769 ++# scripts and configure runs, see configure's option --config-cache.
25770 ++# It is not useful on other systems. If it contains results you don't
25771 ++# want to keep, you may remove or edit it.
25773 +-# By default, configure uses ./config.cache as the cache file,
25774 +-# creating it if it does not exist already. You can give configure
25775 +-# the --cache-file=FILE option to use a different cache file; that is
25776 +-# what configure does when it calls configure scripts in
25777 +-# subdirectories, so they share the cache.
25778 +-# Giving --cache-file=/dev/null disables caching, for debugging configure.
25779 +-# config.status only pays attention to the cache file if you give it the
25780 +-# --recheck option to rerun configure.
25781 ++# config.status only pays attention to the cache file if you give it
25782 ++# the --recheck option to rerun configure.
25785 ++# `ac_cv_env_foo' variables (set or unset) will be overridden when
25786 ++# loading this file, other *unset* `ac_cv_foo' will be assigned the
25787 ++# following values.
25791 + # The following way of writing the cache mishandles newlines in values,
25792 + # but we know of no workaround that is simple, portable, and efficient.
25793 + # So, don't put newlines in cache variables' values.
25794 + # Ultrix sh set writes to stderr and can't be redirected directly,
25795 + # and sets the high bit in the cache file unless we assign to the vars.
25797 +- case `(ac_space=' '; set | grep ac_space) 2>&1` in
25799 +- # `set' does not quote correctly, so add quotes (double-quote substitution
25800 +- # turns \\\\ into \\, and sed turns \\ into \).
25802 +- -e "s/'/'\\\\''/g" \
25803 +- -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
25806 +- # `set' quotes correctly as required by POSIX, so do not add quotes.
25807 +- sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
25809 +- esac >> confcache
25810 +-if cmp -s $cache_file confcache; then
25815 ++ case `(ac_space=' '; set | grep ac_space) 2>&1` in
25817 ++ # `set' does not quote correctly, so add quotes (double-quote
25818 ++ # substitution turns \\\\ into \\, and sed turns \\ into \).
25821 ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25824 ++ # `set' quotes correctly as required by POSIX, so do not add quotes.
25826 ++ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25833 ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25835 ++ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25836 ++ : end' >>confcache
25837 ++if diff $cache_file confcache >/dev/null 2>&1; then :; else
25838 + if test -w $cache_file; then
25839 +- echo "updating cache $cache_file"
25840 +- cat confcache > $cache_file
25841 ++ test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25842 ++ cat confcache >$cache_file
25844 + echo "not updating unwritable cache $cache_file"
25849 +-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
25851 + test "x$prefix" = xNONE && prefix=$ac_default_prefix
25852 + # Let make expand exec_prefix.
25853 + test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25855 +-# Any assignment to VPATH causes Sun make to only execute
25856 +-# the first set of double-colon rules, so remove it if not needed.
25857 +-# If there is a colon in the path, we need to keep it.
25858 ++# VPATH may cause trouble with some makes, so we remove $(srcdir),
25859 ++# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25860 ++# trailing colons and then remove the whole line if VPATH becomes empty
25861 ++# (actually we leave an empty line to preserve line numbers).
25862 + if test "x$srcdir" = x.; then
25863 +- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
25864 ++ ac_vpsub='/^[ ]*VPATH[ ]*=/{
25865 ++s/:*\$(srcdir):*/:/;
25866 ++s/:*\${srcdir}:*/:/;
25867 ++s/:*@srcdir@:*/:/;
25868 ++s/^\([^=]*=[ ]*\):*/\1/;
25870 ++s/^[^=]*=[ ]*$//;
25874 +-trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
25876 + DEFS=-DHAVE_CONFIG_H
25878 +-# Without the "./", some shells look in PATH for config.status.
25879 +-: ${CONFIG_STATUS=./config.status}
25882 ++for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25883 ++ # 1. Remove the extension, and $U if already installed.
25884 ++ ac_i=`echo "$ac_i" |
25885 ++ sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25887 ++ ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25888 ++ ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25890 ++LIBOBJS=$ac_libobjs
25892 +-echo creating $CONFIG_STATUS
25893 +-rm -f $CONFIG_STATUS
25894 +-cat > $CONFIG_STATUS <<EOF
25896 +-# Generated automatically by configure.
25897 ++LTLIBOBJS=$ac_ltlibobjs
25901 ++: ${CONFIG_STATUS=./config.status}
25902 ++ac_clean_files_save=$ac_clean_files
25903 ++ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25904 ++{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25905 ++echo "$as_me: creating $CONFIG_STATUS" >&6;}
25906 ++cat >$CONFIG_STATUS <<_ACEOF
25908 ++# Generated by $as_me.
25909 + # Run this file to recreate the current configuration.
25910 +-# This directory was configured as follows,
25911 +-# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25913 +-# $0 $ac_configure_args
25915 + # Compiler output produced by configure, useful for debugging
25916 +-# configure, is in ./config.log if it exists.
25917 ++# configure, is in config.log if it exists.
25919 +-ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
25922 ++ac_cs_recheck=false
25923 ++ac_cs_silent=false
25924 ++SHELL=\${CONFIG_SHELL-$SHELL}
25927 ++cat >>$CONFIG_STATUS <<\_ACEOF
25928 ++## --------------------- ##
25929 ++## M4sh Initialization. ##
25930 ++## --------------------- ##
25932 ++# Be Bourne compatible
25933 ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25936 ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25937 ++ # is contrary to our usage. Disable this feature.
25938 ++ alias -g '${1+"$@"}'='"$@"'
25939 ++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25942 ++DUALCASE=1; export DUALCASE # for MKS sh
25944 ++# Support unset when possible.
25945 ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25952 ++# Work around bugs in pre-3.0 UWIN ksh.
25953 ++$as_unset ENV MAIL MAILPATH
25960 ++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25961 ++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25962 ++ LC_TELEPHONE LC_TIME
25964 +- case "\$ac_option" in
25965 +- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25966 +- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
25967 +- exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
25968 +- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
25969 +- echo "$CONFIG_STATUS generated by autoconf version 2.13"
25971 +- -help | --help | --hel | --he | --h)
25972 +- echo "\$ac_cs_usage"; exit 0 ;;
25973 +- *) echo "\$ac_cs_usage"; exit 1 ;;
25974 ++ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25975 ++ eval $as_var=C; export $as_var
25977 ++ $as_unset $as_var
25981 ++# Required to use basename.
25982 ++if expr a : '\(a\)' >/dev/null 2>&1; then
25988 ++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25989 ++ as_basename=basename
25991 ++ as_basename=false
25995 ++# Name of the executable.
25996 ++as_me=`$as_basename "$0" ||
25997 ++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25998 ++ X"$0" : 'X\(//\)$' \| \
25999 ++ X"$0" : 'X\(/\)$' \| \
26000 ++ . : '\(.\)' 2>/dev/null ||
26002 ++ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26003 ++ /^X\/\(\/\/\)$/{ s//\1/; q; }
26004 ++ /^X\/\(\/\).*/{ s//\1/; q; }
26008 ++# PATH needs CR, and LINENO needs CR and PATH.
26009 ++# Avoid depending upon Character Ranges.
26010 ++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26011 ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26012 ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26013 ++as_cr_digits='0123456789'
26014 ++as_cr_alnum=$as_cr_Letters$as_cr_digits
26016 ++# The user is always right.
26017 ++if test "${PATH_SEPARATOR+set}" != set; then
26018 ++ echo "#! /bin/sh" >conf$$.sh
26019 ++ echo "exit 0" >>conf$$.sh
26020 ++ chmod +x conf$$.sh
26021 ++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26022 ++ PATH_SEPARATOR=';'
26024 ++ PATH_SEPARATOR=:
26030 ++ as_lineno_1=$LINENO
26031 ++ as_lineno_2=$LINENO
26032 ++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26033 ++ test "x$as_lineno_1" != "x$as_lineno_2" &&
26034 ++ test "x$as_lineno_3" = "x$as_lineno_2" || {
26035 ++ # Find who we are. Look in the path if we contain no path at all
26036 ++ # relative or not.
26038 ++ *[\\/]* ) as_myself=$0 ;;
26039 ++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26040 ++for as_dir in $PATH
26042 ++ IFS=$as_save_IFS
26043 ++ test -z "$as_dir" && as_dir=.
26044 ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26049 ++ # We did not find ourselves, most probably we were run as `sh COMMAND'
26050 ++ # in which case we are not to be found in the path.
26051 ++ if test "x$as_myself" = x; then
26054 ++ if test ! -f "$as_myself"; then
26055 ++ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26056 ++echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26057 ++ { (exit 1); exit 1; }; }
26059 ++ case $CONFIG_SHELL in
26061 ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26062 ++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26064 ++ IFS=$as_save_IFS
26065 ++ test -z "$as_dir" && as_dir=.
26066 ++ for as_base in sh bash ksh sh5; do
26069 ++ if ("$as_dir/$as_base" -c '
26070 ++ as_lineno_1=$LINENO
26071 ++ as_lineno_2=$LINENO
26072 ++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26073 ++ test "x$as_lineno_1" != "x$as_lineno_2" &&
26074 ++ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26075 ++ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26076 ++ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26077 ++ CONFIG_SHELL=$as_dir/$as_base
26078 ++ export CONFIG_SHELL
26079 ++ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26087 +-ac_given_srcdir=$srcdir
26088 +-ac_given_INSTALL="$INSTALL"
26089 ++ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26090 ++ # uniformly replaced by the line number. The first 'sed' inserts a
26091 ++ # line-number line before each line; the second 'sed' does the real
26092 ++ # work. The second script uses 'N' to pair each line-number line
26093 ++ # with the numbered line, and appends trailing '-' during
26094 ++ # substitution so that $LINENO is not a special case at line end.
26095 ++ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26096 ++ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26097 ++ sed '=' <$as_myself |
26102 ++ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26105 ++ s,^['$as_cr_digits']*\n,,
26106 ++ ' >$as_me.lineno &&
26107 ++ chmod +x $as_me.lineno ||
26108 ++ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26109 ++echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26110 ++ { (exit 1); exit 1; }; }
26112 ++ # Don't try to exec as it changes $[0], causing all sort of problems
26113 ++ # (the dirname of $[0] is not the place where we might find the
26114 ++ # original and so on. Autoconf is especially sensible to this).
26115 ++ . ./$as_me.lineno
26116 ++ # Exit status is that of the last command.
26120 +-trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
26121 +- man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
26122 +- lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
26124 +-cat >> $CONFIG_STATUS <<EOF
26126 +-# Protect against being on the right side of a sed subst in config.status.
26127 +-sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
26128 +- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
26131 +-s%@SHELL@%$SHELL%g
26132 +-s%@CFLAGS@%$CFLAGS%g
26133 +-s%@CPPFLAGS@%$CPPFLAGS%g
26134 +-s%@CXXFLAGS@%$CXXFLAGS%g
26135 +-s%@FFLAGS@%$FFLAGS%g
26137 +-s%@LDFLAGS@%$LDFLAGS%g
26139 +-s%@exec_prefix@%$exec_prefix%g
26140 +-s%@prefix@%$prefix%g
26141 +-s%@program_transform_name@%$program_transform_name%g
26142 +-s%@bindir@%$bindir%g
26143 +-s%@sbindir@%$sbindir%g
26144 +-s%@libexecdir@%$libexecdir%g
26145 +-s%@datadir@%$datadir%g
26146 +-s%@sysconfdir@%$sysconfdir%g
26147 +-s%@sharedstatedir@%$sharedstatedir%g
26148 +-s%@localstatedir@%$localstatedir%g
26149 +-s%@libdir@%$libdir%g
26150 +-s%@includedir@%$includedir%g
26151 +-s%@oldincludedir@%$oldincludedir%g
26152 +-s%@infodir@%$infodir%g
26153 +-s%@mandir@%$mandir%g
26155 +-s%@host_alias@%$host_alias%g
26156 +-s%@host_cpu@%$host_cpu%g
26157 +-s%@host_vendor@%$host_vendor%g
26158 +-s%@host_os@%$host_os%g
26162 +-s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
26163 +-s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
26164 +-s%@INSTALL_DATA@%$INSTALL_DATA%g
26166 +-s%@RANLIB@%$RANLIB%g
26167 +-s%@LIBSOUND@%$LIBSOUND%g
26168 +-s%@SET_MAKE@%$SET_MAKE%g
26169 +-s%@ALLOCA@%$ALLOCA%g
26170 +-s%@liblockfile@%$liblockfile%g
26171 +-s%@LIBOBJS@%$LIBOBJS%g
26172 +-s%@NEED_SETGID@%$NEED_SETGID%g
26173 +-s%@KMEM_GROUP@%$KMEM_GROUP%g
26174 +-s%@version@%$version%g
26175 +-s%@configuration@%$configuration%g
26176 +-s%@canonical@%$canonical%g
26177 +-s%@srcdir@%$srcdir%g
26178 +-s%@lispdir@%$lispdir%g
26179 +-s%@locallisppath@%$locallisppath%g
26180 +-s%@lisppath@%$lisppath%g
26181 +-s%@x_default_search_path@%$x_default_search_path%g
26182 +-s%@etcdir@%$etcdir%g
26183 +-s%@archlibdir@%$archlibdir%g
26184 +-s%@docdir@%$docdir%g
26185 +-s%@bitmapdir@%$bitmapdir%g
26186 +-s%@c_switch_system@%$c_switch_system%g
26187 +-s%@c_switch_machine@%$c_switch_machine%g
26188 +-s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
26189 +-s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
26190 +-s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
26191 +-s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
26192 +-s%@machfile@%$machfile%g
26193 +-s%@opsysfile@%$opsysfile%g
26194 +-s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g
26198 ++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26199 ++ *c*,-n*) ECHO_N= ECHO_C='
26201 ++ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26202 ++ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26205 +-cat >> $CONFIG_STATUS <<\EOF
26206 ++if expr a : '\(a\)' >/dev/null 2>&1; then
26212 +-# Split the substitutions into bite-sized pieces for seds with
26213 +-# small command number limits, like on Digital OSF/1 and HP-UX.
26214 +-ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
26215 +-ac_file=1 # Number of current file.
26216 +-ac_beg=1 # First line for current file.
26217 +-ac_end=$ac_max_sed_cmds # Line after last line for current file.
26220 +-while $ac_more_lines; do
26221 +- if test $ac_beg -gt 1; then
26222 +- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
26224 +- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
26226 +- if test ! -s conftest.s$ac_file; then
26227 +- ac_more_lines=false
26228 +- rm -f conftest.s$ac_file
26229 ++rm -f conf$$ conf$$.exe conf$$.file
26230 ++echo >conf$$.file
26231 ++if ln -s conf$$.file conf$$ 2>/dev/null; then
26232 ++ # We could just check for DJGPP; but this test a) works b) is more generic
26233 ++ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26234 ++ if test -f conf$$.exe; then
26235 ++ # Don't use ln at all; we don't have any links
26238 +- if test -z "$ac_sed_cmds"; then
26239 +- ac_sed_cmds="sed -f conftest.s$ac_file"
26241 +- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
26243 +- ac_file=`expr $ac_file + 1`
26245 +- ac_end=`expr $ac_end + $ac_max_sed_cmds`
26249 +-if test -z "$ac_sed_cmds"; then
26251 ++elif ln conf$$.file conf$$ 2>/dev/null; then
26256 ++rm -f conf$$ conf$$.exe conf$$.file
26258 ++if mkdir -p . 2>/dev/null; then
26261 ++ test -d ./-p && rmdir ./-p
26262 ++ as_mkdir_p=false
26266 +-cat >> $CONFIG_STATUS <<EOF
26267 ++as_executable_p="test -f"
26269 +-CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
26270 +- man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
26271 +- lisp/Makefile leim/Makefile"}
26273 +-cat >> $CONFIG_STATUS <<\EOF
26274 +-for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
26275 +- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26276 +- case "$ac_file" in
26277 +- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
26278 +- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
26279 +- *) ac_file_in="${ac_file}.in" ;;
26280 ++# Sed expression to map a string onto a valid CPP name.
26281 ++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26283 ++# Sed expression to map a string onto a valid variable name.
26284 ++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26288 ++# We need space, tab and new line, in precisely that order.
26298 ++# Open the log real soon, to keep \$[0] and so on meaningful, and to
26299 ++# report actual input values of CONFIG_FILES etc. instead of their
26300 ++# values after options handling. Logging --version etc. is OK.
26301 ++exec 5>>config.log
26304 ++ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26305 ++## Running $as_me. ##
26310 ++This file was extended by $as_me, which was
26311 ++generated by GNU Autoconf 2.59. Invocation command line was
26313 ++ CONFIG_FILES = $CONFIG_FILES
26314 ++ CONFIG_HEADERS = $CONFIG_HEADERS
26315 ++ CONFIG_LINKS = $CONFIG_LINKS
26316 ++ CONFIG_COMMANDS = $CONFIG_COMMANDS
26320 ++echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26324 ++# Files that config.status was made for.
26325 ++if test -n "$ac_config_files"; then
26326 ++ echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26329 ++if test -n "$ac_config_headers"; then
26330 ++ echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26333 ++if test -n "$ac_config_links"; then
26334 ++ echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26337 ++if test -n "$ac_config_commands"; then
26338 ++ echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26341 ++cat >>$CONFIG_STATUS <<\_ACEOF
26344 ++\`$as_me' instantiates files from templates according to the
26345 ++current configuration.
26347 ++Usage: $0 [OPTIONS] [FILE]...
26349 ++ -h, --help print this help, then exit
26350 ++ -V, --version print version number, then exit
26351 ++ -q, --quiet do not print progress messages
26352 ++ -d, --debug don't remove temporary files
26353 ++ --recheck update $as_me by reconfiguring in the same conditions
26354 ++ --file=FILE[:TEMPLATE]
26355 ++ instantiate the configuration file FILE
26356 ++ --header=FILE[:TEMPLATE]
26357 ++ instantiate the configuration header FILE
26359 ++Configuration files:
26362 ++Configuration headers:
26365 ++Configuration commands:
26368 ++Report bugs to <bug-autoconf@gnu.org>."
26371 ++cat >>$CONFIG_STATUS <<_ACEOF
26372 ++ac_cs_version="\\
26374 ++configured by $0, generated by GNU Autoconf 2.59,
26375 ++ with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26377 ++Copyright (C) 2003 Free Software Foundation, Inc.
26378 ++This config.status script is free software; the Free Software Foundation
26379 ++gives unlimited permission to copy, distribute and modify it."
26381 ++INSTALL="$INSTALL"
26384 ++cat >>$CONFIG_STATUS <<\_ACEOF
26385 ++# If no file are specified by the user, then we need to provide default
26386 ++# value. By we need to know if files were specified by the user.
26387 ++ac_need_defaults=:
26388 ++while test $# != 0
26392 ++ ac_option=`expr "x$1" : 'x\([^=]*\)='`
26393 ++ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26401 ++ *) # This is not an option, so the user has probably given explicit
26404 ++ ac_need_defaults=false;;
26407 +- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
26408 ++ case $ac_option in
26409 ++ # Handling of the options.
26411 ++cat >>$CONFIG_STATUS <<\_ACEOF
26412 ++ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26413 ++ ac_cs_recheck=: ;;
26414 ++ --version | --vers* | -V )
26415 ++ echo "$ac_cs_version"; exit 0 ;;
26417 ++ # Conflict between --help and --header
26418 ++ { { echo "$as_me:$LINENO: error: ambiguous option: $1
26419 ++Try \`$0 --help' for more information." >&5
26420 ++echo "$as_me: error: ambiguous option: $1
26421 ++Try \`$0 --help' for more information." >&2;}
26422 ++ { (exit 1); exit 1; }; };;
26423 ++ --help | --hel | -h )
26424 ++ echo "$ac_cs_usage"; exit 0 ;;
26425 ++ --debug | --d* | -d )
26427 ++ --file | --fil | --fi | --f )
26429 ++ CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26430 ++ ac_need_defaults=false;;
26431 ++ --header | --heade | --head | --hea )
26433 ++ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26434 ++ ac_need_defaults=false;;
26435 ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26436 ++ | -silent | --silent | --silen | --sile | --sil | --si | --s)
26437 ++ ac_cs_silent=: ;;
26439 ++ # This is an error.
26440 ++ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26441 ++Try \`$0 --help' for more information." >&5
26442 ++echo "$as_me: error: unrecognized option: $1
26443 ++Try \`$0 --help' for more information." >&2;}
26444 ++ { (exit 1); exit 1; }; } ;;
26446 +- # Remove last slash and all that follows it. Not all systems have dirname.
26447 +- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
26448 +- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
26449 +- # The file is in a subdirectory.
26450 +- test ! -d "$ac_dir" && mkdir "$ac_dir"
26451 +- ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
26452 +- # A "../" for each directory in $ac_dir_suffix.
26453 +- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
26455 +- ac_dir_suffix= ac_dots=
26458 +- case "$ac_given_srcdir" in
26460 +- if test -z "$ac_dots"; then top_srcdir=.
26461 +- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
26462 +- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
26463 +- *) # Relative path.
26464 +- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
26465 +- top_srcdir="$ac_dots$ac_given_srcdir" ;;
26466 ++ *) ac_config_targets="$ac_config_targets $1" ;;
26472 ++ac_configure_extra_args=
26474 ++if $ac_cs_silent; then
26475 ++ exec 6>/dev/null
26476 ++ ac_configure_extra_args="$ac_configure_extra_args --silent"
26480 ++cat >>$CONFIG_STATUS <<_ACEOF
26481 ++if \$ac_cs_recheck; then
26482 ++ echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26483 ++ exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26488 ++cat >>$CONFIG_STATUS <<_ACEOF
26490 ++# INIT-COMMANDS section.
26493 ++GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
26499 ++cat >>$CONFIG_STATUS <<\_ACEOF
26500 ++for ac_config_target in $ac_config_targets
26502 ++ case "$ac_config_target" in
26503 ++ # Handling of arguments.
26504 ++ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26505 ++ "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26506 ++ "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26507 ++ "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26508 ++ "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26509 ++ "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26510 ++ "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26511 ++ "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26512 ++ "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26513 ++ "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26514 ++ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26515 ++echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26516 ++ { (exit 1); exit 1; }; };;
26520 ++# If the user did not use the arguments to specify the items to instantiate,
26521 ++# then the envvar interface is used. Set only those that are not.
26522 ++# We use the long form for the default assignment because of an extremely
26523 ++# bizarre bug on SunOS 4.1.3.
26524 ++if $ac_need_defaults; then
26525 ++ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26526 ++ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26527 ++ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26530 ++# Have a temporary directory for convenience. Make it in the build tree
26531 ++# simply because there is no reason to put it here, and in addition,
26532 ++# creating and moving files from /tmp can sometimes cause problems.
26533 ++# Create a temporary directory, and hook for its removal unless debugging.
26536 ++ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26537 ++ trap '{ (exit 1); exit 1; }' 1 2 13 15
26540 ++# Create a (secure) tmp directory for tmp files.
26543 ++ tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26544 ++ test -n "$tmp" && test -d "$tmp"
26547 ++ tmp=./confstat$$-$RANDOM
26548 ++ (umask 077 && mkdir $tmp)
26551 ++ echo "$me: cannot create a temporary directory in ." >&2
26552 ++ { (exit 1); exit 1; }
26557 ++cat >>$CONFIG_STATUS <<_ACEOF
26560 ++# CONFIG_FILES section.
26563 ++# No need to generate the scripts if there are no CONFIG_FILES.
26564 ++# This happens for instance when ./config.status config.h
26565 ++if test -n "\$CONFIG_FILES"; then
26566 ++ # Protect against being on the right side of a sed subst in config.status.
26567 ++ sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26568 ++ s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26569 ++s,@SHELL@,$SHELL,;t t
26570 ++s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26571 ++s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26572 ++s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26573 ++s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26574 ++s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26575 ++s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26576 ++s,@exec_prefix@,$exec_prefix,;t t
26577 ++s,@prefix@,$prefix,;t t
26578 ++s,@program_transform_name@,$program_transform_name,;t t
26579 ++s,@bindir@,$bindir,;t t
26580 ++s,@sbindir@,$sbindir,;t t
26581 ++s,@libexecdir@,$libexecdir,;t t
26582 ++s,@datadir@,$datadir,;t t
26583 ++s,@sysconfdir@,$sysconfdir,;t t
26584 ++s,@sharedstatedir@,$sharedstatedir,;t t
26585 ++s,@localstatedir@,$localstatedir,;t t
26586 ++s,@libdir@,$libdir,;t t
26587 ++s,@includedir@,$includedir,;t t
26588 ++s,@oldincludedir@,$oldincludedir,;t t
26589 ++s,@infodir@,$infodir,;t t
26590 ++s,@mandir@,$mandir,;t t
26591 ++s,@build_alias@,$build_alias,;t t
26592 ++s,@host_alias@,$host_alias,;t t
26593 ++s,@target_alias@,$target_alias,;t t
26594 ++s,@DEFS@,$DEFS,;t t
26595 ++s,@ECHO_C@,$ECHO_C,;t t
26596 ++s,@ECHO_N@,$ECHO_N,;t t
26597 ++s,@ECHO_T@,$ECHO_T,;t t
26598 ++s,@LIBS@,$LIBS,;t t
26599 ++s,@build@,$build,;t t
26600 ++s,@build_cpu@,$build_cpu,;t t
26601 ++s,@build_vendor@,$build_vendor,;t t
26602 ++s,@build_os@,$build_os,;t t
26603 ++s,@host@,$host,;t t
26604 ++s,@host_cpu@,$host_cpu,;t t
26605 ++s,@host_vendor@,$host_vendor,;t t
26606 ++s,@host_os@,$host_os,;t t
26608 ++s,@CFLAGS@,$CFLAGS,;t t
26609 ++s,@LDFLAGS@,$LDFLAGS,;t t
26610 ++s,@CPPFLAGS@,$CPPFLAGS,;t t
26611 ++s,@ac_ct_CC@,$ac_ct_CC,;t t
26612 ++s,@EXEEXT@,$EXEEXT,;t t
26613 ++s,@OBJEXT@,$OBJEXT,;t t
26614 ++s,@LN_S@,$LN_S,;t t
26615 ++s,@CPP@,$CPP,;t t
26616 ++s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26617 ++s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26618 ++s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26619 ++s,@YACC@,$YACC,;t t
26620 ++s,@RANLIB@,$RANLIB,;t t
26621 ++s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26622 ++s,@EGREP@,$EGREP,;t t
26623 ++s,@LIBSOUND@,$LIBSOUND,;t t
26624 ++s,@SET_MAKE@,$SET_MAKE,;t t
26625 ++s,@ALLOCA@,$ALLOCA,;t t
26626 ++s,@LIBOBJS@,$LIBOBJS,;t t
26627 ++s,@NEED_SETGID@,$NEED_SETGID,;t t
26628 ++s,@KMEM_GROUP@,$KMEM_GROUP,;t t
26629 ++s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
26630 ++s,@version@,$version,;t t
26631 ++s,@configuration@,$configuration,;t t
26632 ++s,@canonical@,$canonical,;t t
26633 ++s,@srcdir@,$srcdir,;t t
26634 ++s,@lispdir@,$lispdir,;t t
26635 ++s,@locallisppath@,$locallisppath,;t t
26636 ++s,@lisppath@,$lisppath,;t t
26637 ++s,@x_default_search_path@,$x_default_search_path,;t t
26638 ++s,@etcdir@,$etcdir,;t t
26639 ++s,@archlibdir@,$archlibdir,;t t
26640 ++s,@docdir@,$docdir,;t t
26641 ++s,@bitmapdir@,$bitmapdir,;t t
26642 ++s,@c_switch_system@,$c_switch_system,;t t
26643 ++s,@c_switch_machine@,$c_switch_machine,;t t
26644 ++s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
26645 ++s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
26646 ++s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
26647 ++s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
26648 ++s,@machfile@,$machfile,;t t
26649 ++s,@opsysfile@,$opsysfile,;t t
26650 ++s,@MOVEMAIL_LOCK_LIBS@,$MOVEMAIL_LOCK_LIBS,;t t
26651 ++s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26656 ++ cat >>$CONFIG_STATUS <<\_ACEOF
26657 ++ # Split the substitutions into bite-sized pieces for seds with
26658 ++ # small command number limits, like on Digital OSF/1 and HP-UX.
26659 ++ ac_max_sed_lines=48
26660 ++ ac_sed_frag=1 # Number of current file.
26661 ++ ac_beg=1 # First line for current file.
26662 ++ ac_end=$ac_max_sed_lines # Line after last line for current file.
26665 ++ while $ac_more_lines; do
26666 ++ if test $ac_beg -gt 1; then
26667 ++ sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26669 ++ sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26671 ++ if test ! -s $tmp/subs.frag; then
26672 ++ ac_more_lines=false
26674 ++ # The purpose of the label and of the branching condition is to
26675 ++ # speed up the sed processing (if there are no `@' at all, there
26676 ++ # is no need to browse any of the substitutions).
26677 ++ # These are the two extra sed commands mentioned above.
26679 ++ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26680 ++ if test -z "$ac_sed_cmds"; then
26681 ++ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26683 ++ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26685 ++ ac_sed_frag=`expr $ac_sed_frag + 1`
26687 ++ ac_end=`expr $ac_end + $ac_max_sed_lines`
26690 ++ if test -z "$ac_sed_cmds"; then
26693 ++fi # test -n "$CONFIG_FILES"
26695 +- case "$ac_given_INSTALL" in
26696 +- [/$]*) INSTALL="$ac_given_INSTALL" ;;
26697 +- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
26699 ++cat >>$CONFIG_STATUS <<\_ACEOF
26700 ++for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26701 ++ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26702 ++ case $ac_file in
26703 ++ - | *:- | *:-:* ) # input from stdin
26705 ++ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26706 ++ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26707 ++ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26708 ++ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26709 ++ * ) ac_file_in=$ac_file.in ;;
26712 +- echo creating "$ac_file"
26713 +- rm -f "$ac_file"
26714 +- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
26715 +- case "$ac_file" in
26716 +- *Makefile*) ac_comsub="1i\\
26717 +-# $configure_input" ;;
26718 +- *) ac_comsub= ;;
26719 ++ # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26720 ++ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26721 ++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26722 ++ X"$ac_file" : 'X\(//\)[^/]' \| \
26723 ++ X"$ac_file" : 'X\(//\)$' \| \
26724 ++ X"$ac_file" : 'X\(/\)' \| \
26725 ++ . : '\(.\)' 2>/dev/null ||
26726 ++echo X"$ac_file" |
26727 ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26728 ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26729 ++ /^X\(\/\/\)$/{ s//\1/; q; }
26730 ++ /^X\(\/\).*/{ s//\1/; q; }
26732 ++ { if $as_mkdir_p; then
26733 ++ mkdir -p "$ac_dir"
26735 ++ as_dir="$ac_dir"
26737 ++ while test ! -d "$as_dir"; do
26738 ++ as_dirs="$as_dir $as_dirs"
26739 ++ as_dir=`(dirname "$as_dir") 2>/dev/null ||
26740 ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26741 ++ X"$as_dir" : 'X\(//\)[^/]' \| \
26742 ++ X"$as_dir" : 'X\(//\)$' \| \
26743 ++ X"$as_dir" : 'X\(/\)' \| \
26744 ++ . : '\(.\)' 2>/dev/null ||
26745 ++echo X"$as_dir" |
26746 ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26747 ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26748 ++ /^X\(\/\/\)$/{ s//\1/; q; }
26749 ++ /^X\(\/\).*/{ s//\1/; q; }
26752 ++ test ! -n "$as_dirs" || mkdir $as_dirs
26753 ++ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26754 ++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26755 ++ { (exit 1); exit 1; }; }; }
26759 ++if test "$ac_dir" != .; then
26760 ++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26761 ++ # A "../" for each directory in $ac_dir_suffix.
26762 ++ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26764 ++ ac_dir_suffix= ac_top_builddir=
26768 ++ .) # No --srcdir option. We are building in place.
26770 ++ if test -z "$ac_top_builddir"; then
26773 ++ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26775 ++ [\\/]* | ?:[\\/]* ) # Absolute path.
26776 ++ ac_srcdir=$srcdir$ac_dir_suffix;
26777 ++ ac_top_srcdir=$srcdir ;;
26778 ++ *) # Relative path.
26779 ++ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26780 ++ ac_top_srcdir=$ac_top_builddir$srcdir ;;
26783 ++# Do not use `cd foo && pwd` to compute absolute paths, because
26784 ++# the directories may not exist.
26786 ++.) ac_abs_builddir="$ac_dir";;
26788 ++ case "$ac_dir" in
26789 ++ .) ac_abs_builddir=`pwd`;;
26790 ++ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26791 ++ *) ac_abs_builddir=`pwd`/"$ac_dir";;
26794 ++case $ac_abs_builddir in
26795 ++.) ac_abs_top_builddir=${ac_top_builddir}.;;
26797 ++ case ${ac_top_builddir}. in
26798 ++ .) ac_abs_top_builddir=$ac_abs_builddir;;
26799 ++ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26800 ++ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26803 ++case $ac_abs_builddir in
26804 ++.) ac_abs_srcdir=$ac_srcdir;;
26806 ++ case $ac_srcdir in
26807 ++ .) ac_abs_srcdir=$ac_abs_builddir;;
26808 ++ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26809 ++ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26812 ++case $ac_abs_builddir in
26813 ++.) ac_abs_top_srcdir=$ac_top_srcdir;;
26815 ++ case $ac_top_srcdir in
26816 ++ .) ac_abs_top_srcdir=$ac_abs_builddir;;
26817 ++ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26818 ++ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26823 ++ case $INSTALL in
26824 ++ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26825 ++ *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26828 +- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
26829 +- sed -e "$ac_comsub
26830 +-s%@configure_input@%$configure_input%g
26831 +-s%@srcdir@%$srcdir%g
26832 +-s%@top_srcdir@%$top_srcdir%g
26833 +-s%@INSTALL@%$INSTALL%g
26834 +-" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
26836 +-rm -f conftest.s*
26837 ++ # Let's still pretend it is `configure' which instantiates (i.e., don't
26838 ++ # use $as_me), people would be surprised to read:
26839 ++ # /* config.h. Generated by config.status. */
26840 ++ if test x"$ac_file" = x-; then
26841 ++ configure_input=
26843 ++ configure_input="$ac_file. "
26845 ++ configure_input=$configure_input"Generated from `echo $ac_file_in |
26846 ++ sed 's,.*/,,'` by configure."
26848 ++ # First look for the input files in the build tree, otherwise in the
26850 ++ ac_file_inputs=`IFS=:
26851 ++ for f in $ac_file_in; do
26853 ++ -) echo $tmp/stdin ;;
26855 ++ # Absolute (can't be DOS-style, as IFS=:)
26856 ++ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26857 ++echo "$as_me: error: cannot find input file: $f" >&2;}
26858 ++ { (exit 1); exit 1; }; }
26861 ++ if test -f "$f"; then
26864 ++ elif test -f "$srcdir/$f"; then
26866 ++ echo "$srcdir/$f"
26868 ++ # /dev/null tree
26869 ++ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26870 ++echo "$as_me: error: cannot find input file: $f" >&2;}
26871 ++ { (exit 1); exit 1; }; }
26874 ++ done` || { (exit 1); exit 1; }
26876 ++ if test x"$ac_file" != x-; then
26877 ++ { echo "$as_me:$LINENO: creating $ac_file" >&5
26878 ++echo "$as_me: creating $ac_file" >&6;}
26879 ++ rm -f "$ac_file"
26882 ++cat >>$CONFIG_STATUS <<_ACEOF
26886 ++cat >>$CONFIG_STATUS <<\_ACEOF
26888 ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26889 ++s,@configure_input@,$configure_input,;t t
26890 ++s,@srcdir@,$ac_srcdir,;t t
26891 ++s,@abs_srcdir@,$ac_abs_srcdir,;t t
26892 ++s,@top_srcdir@,$ac_top_srcdir,;t t
26893 ++s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26894 ++s,@builddir@,$ac_builddir,;t t
26895 ++s,@abs_builddir@,$ac_abs_builddir,;t t
26896 ++s,@top_builddir@,$ac_top_builddir,;t t
26897 ++s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26898 ++s,@INSTALL@,$ac_INSTALL,;t t
26899 ++" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26900 ++ rm -f $tmp/stdin
26901 ++ if test x"$ac_file" != x-; then
26902 ++ mv $tmp/out $ac_file
26910 ++cat >>$CONFIG_STATUS <<\_ACEOF
26913 ++# CONFIG_HEADER section.
26916 + # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26917 + # NAME is the cpp macro being defined and VALUE is the value it is being given.
26919 + # ac_d sets the value in "#define NAME VALUE" lines.
26920 +-ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26921 +-ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
26924 +-# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
26925 +-ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26926 +-ac_uB='\([ ]\)%\1#\2define\3'
26927 ++ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26928 ++ac_dB='[ ].*$,\1#\2'
26931 ++# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26932 ++ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26933 ++ac_uB='$,\1#\2define\3'
26936 +-# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26937 +-ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26938 +-ac_eB='$%\1#\2define\3'
26942 +-if test "${CONFIG_HEADERS+set}" != set; then
26944 +-cat >> $CONFIG_STATUS <<EOF
26945 +- CONFIG_HEADERS="src/config.h:src/config.in"
26947 +-cat >> $CONFIG_STATUS <<\EOF
26949 +-for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
26952 ++for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26953 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26954 +- case "$ac_file" in
26955 +- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
26956 +- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
26957 +- *) ac_file_in="${ac_file}.in" ;;
26958 ++ case $ac_file in
26959 ++ - | *:- | *:-:* ) # input from stdin
26961 ++ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26962 ++ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26963 ++ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26964 ++ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26965 ++ * ) ac_file_in=$ac_file.in ;;
26968 +- echo creating $ac_file
26969 ++ test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26970 ++echo "$as_me: creating $ac_file" >&6;}
26972 +- rm -f conftest.frag conftest.in conftest.out
26973 +- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
26974 +- cat $ac_file_inputs > conftest.in
26978 +-# Transform confdefs.h into a sed script conftest.vals that substitutes
26979 +-# the proper values into config.h.in to produce config.h. And first:
26980 +-# Protect against being on the right side of a sed subst in config.status.
26981 +-# Protect against being in an unquoted here document in config.status.
26982 +-rm -f conftest.vals
26983 +-cat > conftest.hdr <<\EOF
26986 +-s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
26990 +-sed -n -f conftest.hdr confdefs.h > conftest.vals
26991 +-rm -f conftest.hdr
26992 ++ # First look for the input files in the build tree, otherwise in the
26994 ++ ac_file_inputs=`IFS=:
26995 ++ for f in $ac_file_in; do
26997 ++ -) echo $tmp/stdin ;;
26999 ++ # Absolute (can't be DOS-style, as IFS=:)
27000 ++ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27001 ++echo "$as_me: error: cannot find input file: $f" >&2;}
27002 ++ { (exit 1); exit 1; }; }
27003 ++ # Do quote $f, to prevent DOS paths from being IFS'd.
27006 ++ if test -f "$f"; then
27009 ++ elif test -f "$srcdir/$f"; then
27011 ++ echo "$srcdir/$f"
27013 ++ # /dev/null tree
27014 ++ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27015 ++echo "$as_me: error: cannot find input file: $f" >&2;}
27016 ++ { (exit 1); exit 1; }; }
27019 ++ done` || { (exit 1); exit 1; }
27020 ++ # Remove the trailing spaces.
27021 ++ sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27025 ++# Transform confdefs.h into two sed scripts, `conftest.defines' and
27026 ++# `conftest.undefs', that substitutes the proper values into
27027 ++# config.h.in to produce config.h. The first handles `#define'
27028 ++# templates, and the second `#undef' templates.
27029 ++# And first: Protect against being on the right side of a sed subst in
27030 ++# config.status. Protect against being in an unquoted here document
27031 ++# in config.status.
27032 ++rm -f conftest.defines conftest.undefs
27033 ++# Using a here document instead of a string reduces the quoting nightmare.
27034 ++# Putting comments in sed scripts is not portable.
27036 ++# `end' is used to avoid that the second main sed command (meant for
27037 ++# 0-ary CPP macros) applies to n-ary macro definitions.
27038 ++# See the Autoconf documentation for `clear'.
27039 ++cat >confdef2sed.sed <<\_ACEOF
27044 ++s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27046 ++s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27049 ++# If some macros were called several times there might be several times
27050 ++# the same #defines, which is useless. Nevertheless, we may not want to
27051 ++# sort them, since we want the *last* AC-DEFINE to be honored.
27052 ++uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27053 ++sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27054 ++rm -f confdef2sed.sed
27056 + # This sed command replaces #undef with comments. This is necessary, for
27057 + # example, in the case of _POSIX_SOURCE, which is predefined and required
27058 + # on some systems where configure will not decide to define it.
27059 +-cat >> conftest.vals <<\EOF
27060 +-s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
27063 +-# Break up conftest.vals because some shells have a limit on
27064 +-# the size of here documents, and old seds have small limits too.
27066 ++cat >>conftest.undefs <<\_ACEOF
27067 ++s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27070 ++# Break up conftest.defines because some shells have a limit on the size
27071 ++# of here documents, and old seds have small limits too (100 cmds).
27072 ++echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27073 ++echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27074 ++echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27075 ++echo ' :' >>$CONFIG_STATUS
27076 ++rm -f conftest.tail
27077 ++while grep . conftest.defines >/dev/null
27079 ++ # Write a limited-size here document to $tmp/defines.sed.
27080 ++ echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27081 ++ # Speed up: don't consider the non `#define' lines.
27082 ++ echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27083 ++ # Work around the forget-to-reset-the-flag bug.
27084 ++ echo 't clr' >>$CONFIG_STATUS
27085 ++ echo ': clr' >>$CONFIG_STATUS
27086 ++ sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27088 ++ sed -f $tmp/defines.sed $tmp/in >$tmp/out
27090 ++ mv $tmp/out $tmp/in
27091 ++' >>$CONFIG_STATUS
27092 ++ sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27093 ++ rm -f conftest.defines
27094 ++ mv conftest.tail conftest.defines
27096 ++rm -f conftest.defines
27097 ++echo ' fi # grep' >>$CONFIG_STATUS
27098 ++echo >>$CONFIG_STATUS
27100 ++# Break up conftest.undefs because some shells have a limit on the size
27101 ++# of here documents, and old seds have small limits too (100 cmds).
27102 ++echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27103 + rm -f conftest.tail
27105 ++while grep . conftest.undefs >/dev/null
27107 +- ac_lines=`grep -c . conftest.vals`
27108 +- # grep -c gives empty output for an empty file on some AIX systems.
27109 +- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
27110 +- # Write a limited-size here document to conftest.frag.
27111 +- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
27112 +- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
27113 ++ # Write a limited-size here document to $tmp/undefs.sed.
27114 ++ echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27115 ++ # Speed up: don't consider the non `#undef'
27116 ++ echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27117 ++ # Work around the forget-to-reset-the-flag bug.
27118 ++ echo 't clr' >>$CONFIG_STATUS
27119 ++ echo ': clr' >>$CONFIG_STATUS
27120 ++ sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27122 +- sed -f conftest.frag conftest.in > conftest.out
27123 +- rm -f conftest.in
27124 +- mv conftest.out conftest.in
27125 +-' >> $CONFIG_STATUS
27126 +- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
27127 +- rm -f conftest.vals
27128 +- mv conftest.tail conftest.vals
27130 +-rm -f conftest.vals
27132 +-cat >> $CONFIG_STATUS <<\EOF
27133 +- rm -f conftest.frag conftest.h
27134 +- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
27135 +- cat conftest.in >> conftest.h
27136 +- rm -f conftest.in
27137 +- if cmp -s $ac_file conftest.h 2>/dev/null; then
27138 +- echo "$ac_file is unchanged"
27139 +- rm -f conftest.h
27141 +- # Remove last slash and all that follows it. Not all systems have dirname.
27142 +- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
27143 +- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
27144 +- # The file is in a subdirectory.
27145 +- test ! -d "$ac_dir" && mkdir "$ac_dir"
27146 ++ sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27148 ++ mv $tmp/out $tmp/in
27149 ++' >>$CONFIG_STATUS
27150 ++ sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27151 ++ rm -f conftest.undefs
27152 ++ mv conftest.tail conftest.undefs
27154 ++rm -f conftest.undefs
27156 ++cat >>$CONFIG_STATUS <<\_ACEOF
27157 ++ # Let's still pretend it is `configure' which instantiates (i.e., don't
27158 ++ # use $as_me), people would be surprised to read:
27159 ++ # /* config.h. Generated by config.status. */
27160 ++ if test x"$ac_file" = x-; then
27161 ++ echo "/* Generated by configure. */" >$tmp/config.h
27163 ++ echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27165 ++ cat $tmp/in >>$tmp/config.h
27167 ++ if test x"$ac_file" != x-; then
27168 ++ if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27169 ++ { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27170 ++echo "$as_me: $ac_file is unchanged" >&6;}
27172 ++ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27173 ++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27174 ++ X"$ac_file" : 'X\(//\)[^/]' \| \
27175 ++ X"$ac_file" : 'X\(//\)$' \| \
27176 ++ X"$ac_file" : 'X\(/\)' \| \
27177 ++ . : '\(.\)' 2>/dev/null ||
27178 ++echo X"$ac_file" |
27179 ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27180 ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27181 ++ /^X\(\/\/\)$/{ s//\1/; q; }
27182 ++ /^X\(\/\).*/{ s//\1/; q; }
27184 ++ { if $as_mkdir_p; then
27185 ++ mkdir -p "$ac_dir"
27187 ++ as_dir="$ac_dir"
27189 ++ while test ! -d "$as_dir"; do
27190 ++ as_dirs="$as_dir $as_dirs"
27191 ++ as_dir=`(dirname "$as_dir") 2>/dev/null ||
27192 ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27193 ++ X"$as_dir" : 'X\(//\)[^/]' \| \
27194 ++ X"$as_dir" : 'X\(//\)$' \| \
27195 ++ X"$as_dir" : 'X\(/\)' \| \
27196 ++ . : '\(.\)' 2>/dev/null ||
27197 ++echo X"$as_dir" |
27198 ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27199 ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27200 ++ /^X\(\/\/\)$/{ s//\1/; q; }
27201 ++ /^X\(\/\).*/{ s//\1/; q; }
27204 ++ test ! -n "$as_dirs" || mkdir $as_dirs
27205 ++ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27206 ++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27207 ++ { (exit 1); exit 1; }; }; }
27210 ++ mv $tmp/config.h $ac_file
27213 +- mv conftest.h $ac_file
27215 ++ cat $tmp/config.h
27216 ++ rm -f $tmp/config.h
27221 ++cat >>$CONFIG_STATUS <<\_ACEOF
27224 +-cat >> $CONFIG_STATUS <<EOF
27225 +-GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
27227 +-cat >> $CONFIG_STATUS <<\EOF
27229 ++# CONFIG_COMMANDS section.
27231 ++for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27232 ++ ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27233 ++ ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27234 ++ ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27235 ++$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27236 ++ X"$ac_dest" : 'X\(//\)[^/]' \| \
27237 ++ X"$ac_dest" : 'X\(//\)$' \| \
27238 ++ X"$ac_dest" : 'X\(/\)' \| \
27239 ++ . : '\(.\)' 2>/dev/null ||
27240 ++echo X"$ac_dest" |
27241 ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27242 ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27243 ++ /^X\(\/\/\)$/{ s//\1/; q; }
27244 ++ /^X\(\/\).*/{ s//\1/; q; }
27246 ++ { if $as_mkdir_p; then
27247 ++ mkdir -p "$ac_dir"
27249 ++ as_dir="$ac_dir"
27251 ++ while test ! -d "$as_dir"; do
27252 ++ as_dirs="$as_dir $as_dirs"
27253 ++ as_dir=`(dirname "$as_dir") 2>/dev/null ||
27254 ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27255 ++ X"$as_dir" : 'X\(//\)[^/]' \| \
27256 ++ X"$as_dir" : 'X\(//\)$' \| \
27257 ++ X"$as_dir" : 'X\(/\)' \| \
27258 ++ . : '\(.\)' 2>/dev/null ||
27259 ++echo X"$as_dir" |
27260 ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27261 ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27262 ++ /^X\(\/\/\)$/{ s//\1/; q; }
27263 ++ /^X\(\/\).*/{ s//\1/; q; }
27266 ++ test ! -n "$as_dirs" || mkdir $as_dirs
27267 ++ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27268 ++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27269 ++ { (exit 1); exit 1; }; }; }
27273 ++if test "$ac_dir" != .; then
27274 ++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27275 ++ # A "../" for each directory in $ac_dir_suffix.
27276 ++ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27278 ++ ac_dir_suffix= ac_top_builddir=
27282 ++ .) # No --srcdir option. We are building in place.
27284 ++ if test -z "$ac_top_builddir"; then
27287 ++ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27289 ++ [\\/]* | ?:[\\/]* ) # Absolute path.
27290 ++ ac_srcdir=$srcdir$ac_dir_suffix;
27291 ++ ac_top_srcdir=$srcdir ;;
27292 ++ *) # Relative path.
27293 ++ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27294 ++ ac_top_srcdir=$ac_top_builddir$srcdir ;;
27297 ++# Do not use `cd foo && pwd` to compute absolute paths, because
27298 ++# the directories may not exist.
27300 ++.) ac_abs_builddir="$ac_dir";;
27302 ++ case "$ac_dir" in
27303 ++ .) ac_abs_builddir=`pwd`;;
27304 ++ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27305 ++ *) ac_abs_builddir=`pwd`/"$ac_dir";;
27308 ++case $ac_abs_builddir in
27309 ++.) ac_abs_top_builddir=${ac_top_builddir}.;;
27311 ++ case ${ac_top_builddir}. in
27312 ++ .) ac_abs_top_builddir=$ac_abs_builddir;;
27313 ++ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27314 ++ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27317 ++case $ac_abs_builddir in
27318 ++.) ac_abs_srcdir=$ac_srcdir;;
27320 ++ case $ac_srcdir in
27321 ++ .) ac_abs_srcdir=$ac_abs_builddir;;
27322 ++ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27323 ++ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27326 ++case $ac_abs_builddir in
27327 ++.) ac_abs_top_srcdir=$ac_top_srcdir;;
27329 ++ case $ac_top_srcdir in
27330 ++ .) ac_abs_top_srcdir=$ac_abs_builddir;;
27331 ++ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27332 ++ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27337 ++ { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27338 ++echo "$as_me: executing $ac_dest commands" >&6;}
27339 ++ case $ac_dest in
27342 + ### Make the necessary directories, if they don't exist.
27343 + for dir in etc lisp ; do
27344 + test -d ${dir} || mkdir ${dir}
27345 +@@ -9712,7 +19059,7 @@
27346 + # the C preprocessor to some helpful value like 1, or maybe the empty
27347 + # string. Needless to say consequent macro substitutions are less
27348 + # than conducive to the makefile finding the correct directory.
27349 +-undefs="`echo $top_srcdir $configuration $canonical |
27350 ++undefs="`echo $ac_top_srcdir $configuration $canonical |
27351 + sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
27352 + -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
27354 +@@ -9735,7 +19082,7 @@
27355 + sed -e '1,/start of cpp stuff/d'\
27356 + -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27357 + < Makefile.c > junk.c
27358 +- $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
27359 ++ $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
27360 + sed -e 's/^ / /' -e '/^#/d' -e '/^[
\f]*$/d' > junk2.c
27361 + cat junk1.c junk2.c > Makefile.new
27362 + rm -f junk.c junk1.c junk2.c
27363 +@@ -9751,7 +19098,7 @@
27364 + sed -e '1,/start of cpp stuff/d'\
27365 + -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27366 + < Makefile.c > junk.c
27367 +- $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
27368 ++ $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
27369 + sed -e 's/^ / /' -e '/^#/d' -e '/^[
\f]*$/d' > junk2.c
27370 + cat junk1.c junk2.c > Makefile.new
27371 + rm -f junk.c junk1.c junk2.c
27372 +@@ -9759,19 +19106,46 @@
27373 + mv -f Makefile.new Makefile
27376 +-if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then
27377 ++if test ! -f src/.gdbinit && test -f $ac_top_srcdir/src/.gdbinit; then
27378 + echo creating src/.gdbinit
27379 +- echo source $top_srcdir/src/.gdbinit > src/.gdbinit
27380 ++ echo source $ac_top_srcdir/src/.gdbinit > src/.gdbinit
27383 + # This is how we know whether to re-run configure in certain cases.
27384 + touch src/config.stamp
27391 ++cat >>$CONFIG_STATUS <<\_ACEOF
27395 ++{ (exit 0); exit 0; }
27397 + chmod +x $CONFIG_STATUS
27398 +-rm -fr confdefs* $ac_clean_files
27399 +-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
27400 ++ac_clean_files=$ac_clean_files_save
27403 ++# configure is writing to config.log, and then calls config.status.
27404 ++# config.status does its own redirection, appending to config.log.
27405 ++# Unfortunately, on DOS this fails, as config.log is still kept open
27406 ++# by configure, so config.status won't be able to write to it; its
27407 ++# output is simply discarded. So we exec the FD to /dev/null,
27408 ++# effectively closing config.log, so it can be properly (re)opened and
27409 ++# appended to by config.status. When coming back to configure, we
27410 ++# need to make the FD available again.
27411 ++if test "$no_create" != yes; then
27413 ++ ac_config_status_args=
27414 ++ test "$silent" = yes &&
27415 ++ ac_config_status_args="$ac_config_status_args --quiet"
27416 ++ exec 5>/dev/null
27417 ++ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27418 ++ exec 5>>config.log
27419 ++ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27420 ++ # would make configure fail if this is the last instruction.
27421 ++ $ac_cs_success || { (exit 1); exit 1; }
27425 --- emacs-21.3.orig/debian/TODO
27426 +++ emacs-21.3/debian/TODO
27430 +* add a "latest emacs" meta-package? (bug 82687)
27432 +* add "check" and check-installed infrastructure to debian/rules
27434 +* check on tmp-alt-list -- do we still need it -- is it working?
27436 +* Decide what to do with emacsclient-plus.
27438 +* See about breaking movemail out as a separate program.
27440 +* the x and -nox versions should be able to use the same DOC file.
27442 +* check with upstream about x-vs-nox "sort/copy-sequence" fix.
27443 --- emacs-21.3.orig/debian/bin/info/install-info
27444 +++ emacs-21.3/debian/bin/info/install-info
27448 +# Dummy script to fool emacs install into thinking it did something useful.
27451 --- emacs-21.3.orig/debian/gnu-32x32.xpm
27452 +++ emacs-21.3/debian/gnu-32x32.xpm
27455 +static char * gnu_32x32_xpm[] = {
27487 +" __ ___________ __ ",
27488 +" __ _____________ ___ ",
27489 +" ___ _______________ ____ ",
27490 +" ___ ______+(/+(~/~(+/&_&_ ",
27491 +" ___ _____+++@==@((@{@@@~~ ",
27492 +" _________++*=={{@@++*@*{==( ",
27493 +" ________(+(~+*@@*@@+~ ~+ ",
27494 +" _______(@+(~{=*+*@@@+/ ",
27495 +" ___~{{/*/*##*(+@@@(/ ",
27496 +" _@==(+{+*#/@/+@@@*/ ",
27497 +" +=@~/~=+@===*{@@@@*~ ",
27498 +" +*//~+***=*++{@@@@@~/ ",
27499 +" /++(**~@=({{{@@@@(/ ",
27500 +" ~*~((((*@{===@@@@@( ",
27501 +" /+@(/~{(*=*{==={@@(~ ",
27502 +" /~@@+(*@+(*+*/~~*(/_/ ",
27503 +" /+@@~*~((*(+*___//_// ",
27504 +" /(@++((*~(+/&_____// ",
27505 +" /+@@++~+@/*//____&/ ",
27506 +" /*@(~++(+///&___&/ ",
27507 +" /+@@@+*~~*(//___// ",
27508 +" /+*@@(*/@+///_&/ ",
27509 +" //(@@@+~/ /// ",
27513 --- emacs-21.3.orig/debian/mangle-info
27514 +++ emacs-21.3/debian/mangle-info
27516 +#!/usr/bin/perl -w -i
27523 +my $prefix = $ENV{"DEBIAN_INFO_PREFIX"};
27526 +if(!($x =~ m/^(\s*START-INFO-DIR-ENTRY\s+\*\s*[^:]+:\s*)\(([^\)]+)\)/mo)) {
27527 + die "Couldn't find START-INFO-DIR-ENTRY.";
27530 +print ${PREMATCH};
27531 +print "$1($prefix/$2)";
27532 +print ${POSTMATCH};
27533 --- emacs-21.3.orig/debian/emacs.prerm
27534 +++ emacs-21.3/debian/emacs.prerm
27540 +MAJOR=@MAJOR_VERSION@
27542 +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/@PKG_NAME@ ]
27544 + rm -f /usr/doc/@PKG_NAME@
27547 +# update-alternatives on things that collide with xemacs, other editors
27548 +if [ "$1" != "upgrade" ]
27550 + update-alternatives --remove emacs /usr/bin/emacs${MAJOR}-@X_SUPPORT@
27551 + update-alternatives --remove editor /usr/bin/emacs${MAJOR}
27554 +# emacsen-common registration.
27555 +/usr/lib/emacsen-common/emacs-remove emacs${MAJOR}
27558 --- emacs-21.3.orig/debian/emacs-common.prerm
27559 +++ emacs-21.3/debian/emacs-common.prerm
27565 +MAJOR=@MAJOR_VERSION@
27566 +MINOR=@MINOR_VERSION@
27567 +FULL=@FULL_VERSION@
27568 +INFOFILES="@INFOFILES@"
27570 +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/@PKG_NAME@ ]
27572 + rm -f /usr/doc/@PKG_NAME@
27575 +for file in ${INFOFILES}
27577 + install-info --quiet --remove-exactly emacs-${MAJOR}/${file} || true
27580 +# emacsen-common/emacs-remove used to be here.
27582 +(rmdir /usr/local/share/emacs/${FULL}/site-lisp 2>/dev/null && \
27583 + rmdir /usr/local/share/emacs/${FULL} 2>/dev/null) || true
27586 --- emacs-21.3.orig/debian/README.binpkg.in
27587 +++ emacs-21.3/debian/README.binpkg.in
27590 +Please see /usr/share/doc/emacs@MAJOR_VERSION@-common/ as the primary
27591 +documentation directory.
27592 --- emacs-21.3.orig/debian/emacs.preinst
27593 +++ emacs-21.3/debian/emacs.preinst
27597 +MAJOR=@MAJOR_VERSION@
27598 +MINOR=@MINOR_VERSION@
27599 +FULL=@FULL_VERSION@
27602 --- emacs-21.3.orig/debian/copyright
27603 +++ emacs-21.3/debian/copyright
27607 +This package was debianized by Rob Browning <rlb@defaultvalue.org> on
27608 +Tue, 16 Dec 1997 00:05:45 -0600.
27610 +The source is a combination of the following files:
27612 + prep.ai.mit.edu:/pub/gnu/emacs/emacs-21.3.tar.gz
27613 + prep.ai.mit.edu:/pub/gnu/emacs/leim-21.3.tar.gz
27617 + GNU Emacs is Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996,
27618 + 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
27619 + 59 Temple Place, Suite 330 Boston, MA 02111-1307 USA and is covered
27620 + under the terms of the GPL. See the file
27621 + /usr/share/common-licenses/GPL for more information.
27623 + The GNU Emacs Manual is Copyright (C) 1985, 1986, 1987, 1993, 1994,
27624 + 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software
27625 + Foundation, Inc. 59 Temple Place, Suite 330 Boston, MA 02111-1307
27626 + USA. It is covered under the terms of the GNU Free Documentation
27627 + License, version 1.1 or later. See node `GNU Free Documentation
27628 + License' in the Info manual (emacs) for details.
27630 + The GNU Emacs Manual and related manuals in /usr/info/emacs-21 are
27631 + Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998,
27632 + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 59 Temple
27633 + Place, Suite 330 Boston, MA 02111-1307 USA. They are covered under
27634 + the terms of the GNU Free Documentation License, version 1.1 or
27635 + later. See node `GNU Free Documentation License' in the Info manual
27636 + (emacs) for details.
27638 +Please see /usr/share/doc/emacs21-common/README.Debian.gz for a
27639 +description of the Debian specific differences from the upstream
27641 --- emacs-21.3.orig/debian/rules
27642 +++ emacs-21.3/debian/rules
27644 +#!/usr/bin/make -f
27646 +# This file is licensed under the terms of the Gnu Public License.
27647 +# With the one additional provision that Ian Jackson's name may not be
27648 +# removed from the file.
27650 +# Copyright 1994,1995 by Ian Jackson.
27651 +# Copyright 1998-2001 Rob Browning <rlb@defaultvalue.org>.
27653 +# Originally copied from the GNU Hello Debian rules file (1.3).
27654 +# modified for emacs by Mark Eichin <eichin@kitten.gen.ma.us>
27655 +# modified for emacs20 by Rob Browning <rlb@defaultvalue.org>
27656 +# modified for emacs21 by Rob Browning <rlb@defaultvalue.org>
27658 +include /usr/share/dpatch/dpatch.make
27659 +PACKAGE := emacs21
27661 +SHELL := /bin/bash
27662 +pwd := $(shell pwd)
27666 +# For now we assume that emacs' versioning scheme is always
27667 +# MAJOR.MINORtinyrev where MAJOR and MINOR are integers and tinyrev is
27668 +# an optional lowercase letter (or letters). We also assume that
27669 +# upstream uses a numbering scheme that sorts in a "Debian friendly"
27670 +# way. So far that's always been true. If it becomes false, some of
27671 +# the values below will have to be set manually.
27673 +# At the moment, we try to make it so that a "debian/rules clean" will
27674 +# get you back to the same state you were in before "debian/rules
27675 +# build". With the original upstream source that's somewhat tricky
27676 +# because they ship the .elc files, but we need to re-build them when
27677 +# we patch the corresponding .el files. This is further complicated
27678 +# by the fact that any of these .el files may have macros, and if
27679 +# those are changed, then any other .el files that use those macros
27680 +# must also be recompiled. Over time (over the years), we've tried
27681 +# various ways to handle this problem, originally by trying to keep
27682 +# track of which files need to be recompiled and only recompiling
27683 +# those, then later by just re-building all the .elc files with "make
27684 +# bootstrap". In either case, if you don't want to have diff bloat,
27685 +# you have to do something to keep track of the original .elc files so
27686 +# you can restore them during make clean.
27688 +# All of this was a lot of work, and was using quite a bit of
27689 +# unnecessary storage both in the .orig.tar.gz and during the package
27690 +# build. So in order to avoid this, and to dramatically simplify
27691 +# things, we now just remove the .elc files from the upstream
27692 +# distribution whenever we create the debian .orig.tar.gz file for a
27693 +# given upstream release. Since were always clobbering all of the
27694 +# .elc files during the package build anyway, this shouldn't be any
27695 +# great loss, and it also means that "debian/rules clean" is now a
27696 +# simple matter of little more than a "make distclean" followed by a
27697 +# purge of all the remaining .elc files.
27699 +# NOTE -- emacs doesn't respect .elc files in VPATH build. They're
27700 +# modified in srcdir, not builddir. We don't worry about this because
27701 +# it shouldn't affect our builds ATM, but if we ever have more than
27702 +# one emacs configuration which could produce differing .elc files,
27703 +# we'll need to be careful -- probably have to build completely
27704 +# separate packages from completely separate source trees.
27706 +# For now we handle the autofiles.diff file separately from the other
27707 +# dpatch patches. This is so that we don't have to worry about
27708 +# possible problems with unpatch after a failed automatic diff
27709 +# generation, and so we don't have to try to apply all the patches
27710 +# *except* the autofiles.dpatch during the automatic generation.
27712 +# working directly on the source tree, rather than copying to
27713 +# debian/build-src to create the build-src has some drawbacks. In
27714 +# particular, it makes it a lot easier to get wedged if you don't put
27715 +# the source tree into the right state before starting to edit. If
27716 +# you make it so that you can't unpatch cleanly then you can get the
27717 +# tree into a can't go forward, can't go back state.
27719 +######################################################################
27720 +# Important top-level targets:
27722 +# check-vars - displays how the version number has been parsed.
27723 +# prepare-release - prepare and check debs for upload.
27724 +# autodiff-sync - force a new debian/autofiles.diff to be generated.
27726 +######################################################################
27728 +# The version from the changelog (i.e. 20.5-1)
27729 +debian_ver := $(shell dpkg-parsechangelog | egrep '^Version:')
27730 +debian_ver := $(shell echo ${debian_ver} | perl -pe 's/Version:\s+//o')
27731 +# The Debian revision (i.e. the 1 from 20.5-1)
27732 +# Always everything after the last '-'
27733 +debian_rev := $(shell echo ${debian_ver} | perl -pe 's/.*-//o')
27735 +# This is the official upstream version (the one in the tarfile names).
27736 +nominal_ver := $(shell echo ${debian_ver} | perl -pe 's/[-+].*?$$//o')
27738 +# This must be the version that's actually used at runtime for things
27739 +# like load-path. It may not be the same as the upstream version
27740 +# (i.e. when you have upstream 20.5a, the functional version may still
27741 +# be 20.5), so we do this by hand.
27742 +runtime_ver := $(shell echo ${nominal_ver} | perl -pe 's/[a-z]+$$//o')
27744 +major_ver := $(shell echo ${runtime_ver} | perl -pe 's/\..*$$//o')
27745 +minor_ver := $(shell echo ${runtime_ver} | perl -pe 's/^[^.]*\.//o')
27747 +# version for the debian source, i.e. if the upstream is 21.3, this
27748 +# might be 21.3, or it might be 21.3+1 if we've had to have more than
27749 +# one re-release of the upstream source. Rare, but it happens...
27750 +# Always everything before the last '-'
27751 +debsrc_ver := $(shell echo ${debian_ver} | perl -pe 's/-[^-]+$$//o')
27753 +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
27754 +DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
27756 +DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
27757 +DEB_BUILD_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
27759 +ifndef DEB_HOST_GNU_TYPE
27760 + ifeq ($(DEB_HOST_GNU_SYSTEM), linux)
27761 + DEB_HOST_GNU_TYPE := \
27762 + $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)-gnu
27764 + DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
27766 + export DEB_HOST_GNU_TYPE
27769 +ifndef DEB_BUILD_GNU_TYPE
27770 + ifeq ($(DEB_BUILD_GNU_SYSTEM), linux)
27771 + DEB_BUILD_GNU_TYPE := \
27772 + $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)-gnu
27774 + DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
27776 + export DEB_BUILD_GNU_TYPE
27779 +confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
27781 +# Uncomment if strip is broken
27782 +# CFLAGS := -DDEBIAN -O2
27785 +CFLAGS := -DDEBIAN -g
27787 +# fix problem with newer versions of gcc on m68k
27788 +# -O2 causes a build failure (broken byte compiler)
27789 +ifeq (m68k,${DEB_HOST_ARCH})
27797 +# These files must always exist, i.e. can't ever be cleaned.
27798 +PERSISTENT_AUTOGEN_FILES := debian/control debian/copyright
27800 +NONPERSISTENT_AUTOGEN_FILES := \
27802 + debian/README.binpkg \
27803 + debian/menu-emacs${major_ver} \
27804 + debian/menu-emacs${major_ver}-nox \
27805 + debian/emacs${major_ver}.desktop
27807 +DEBPKGFILES := ${PERSISTENT_AUTOGEN_FILES} ${NONPERSISTENT_AUTOGEN_FILES}
27809 +# These files may be modified in the *source* tree during the build.
27810 +# Wonder if we could patch emacs to copy/use these files to/from the
27812 +protected_files := config.sub config.guess lisp/loaddefs.el
27814 +local_lpath := /etc/emacs${major_ver}:/etc/emacs
27815 +local_lpath := ${local_lpath}:/usr/local/share/emacs/${runtime_ver}/site-lisp
27816 +local_lpath := ${local_lpath}:/usr/local/share/emacs/site-lisp
27817 +local_lpath := ${local_lpath}:/usr/share/emacs/${runtime_ver}/site-lisp
27818 +local_lpath := ${local_lpath}:/usr/share/emacs/site-lisp
27820 +# This shouldn't be needed as of 20.3
27821 +local_lpath := ${local_lpath}:/usr/share/emacs/${runtime_ver}/leim
27823 +target := ${DEB_BUILD_GNU_TYPE}
27824 +movemail_bin := usr/lib/emacs/${runtime_ver}/${target}/movemail
27826 +# Info files that are going to show up in the main dir.
27827 +main_dir_info_files := \
27857 + test -f debian/emacs.postinst
27861 + ${MAKE} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
27863 + sharedstatedir=/var/lib \
27864 + libexecdir=/usr/lib \
27865 + infodir=/usr/share/info \
27866 + manext=.1emacs${major_ver} \
27867 + locallisppath=${local_lpath}
27870 +emacs_inst = (cd debian/${1} && \
27871 + PATH=${pwd}/debian/bin/info:${PATH} ${MAKE} install \
27872 + INSTALL_STRIP="-s" \
27873 + debepkgdir=${pwd}/debian/${2} \
27874 + prefix=${pwd}/debian/${2}/usr \
27875 + sharedstatedir=${pwd}/debian/${2}/var/lib \
27876 + libexecdir=${pwd}/debian/${2}/usr/lib \
27877 + infodir=${pwd}/debian/${2}/usr/share/info/emacs-${major_ver} \
27878 + mandir=${pwd}/debian/${2}/usr/share/man \
27879 + manext=.1emacs${major_ver} \
27880 + locallisppath=${local_lpath})
27882 +define cleanup_all
27883 + -${MAKE} distclean
27884 + find -name "*.elc" | xargs --no-run-if-empty rm
27885 + if [ -e debian/autofiles.diff -a -e debian/stamp/autofiles.patched ]; \
27886 + then patch -p1 -R -s < debian/autofiles.diff; \
27888 + ${MAKE} -f debian/rules unpatch
27889 + if [ -e debian/protected-files.tgz ]; then \
27890 + tar xzpf debian/protected-files.tgz; \
27892 + rm -f debian/protected-files.tgz
27893 + find -name '*~' | xargs --no-run-if-empty rm -f
27894 + rm -rf debian/stamp
27895 + rm -f debian/substvars
27896 + rm -f ${NONPERSISTENT_AUTOGEN_FILES}
27898 + debian/autodiff-old \
27899 + debian/autodiff-new \
27901 + debian/build-nox \
27904 + debian/pkg-bin-common \
27905 + debian/pkg-common \
27907 + debian/pkg-el-all \
27908 + debian/tmp-alt-list \
27910 + rm -rf ${DEB_TRASH}
27913 +define update_debian_autofiles_diff
27915 + rm -rf debian/autodiff-old debian/autodiff-new
27916 + ${MAKE} -f debian/rules patch
27917 + mkdir debian/autodiff-old
27918 + cp -a `ls | grep -v debian` debian/autodiff-old
27919 + cp -a debian/autodiff-old debian/autodiff-new
27920 + # rm aclocal.m4 so it doesn't confuse newer autoconfs, but touch it
27921 + # so ./Makefile won't be upset if it's not recreated (b/c not needed).
27922 + cd debian/autodiff-new && rm -f aclocal.m4 && touch aclocal.m4
27923 + cd debian/autodiff-new && aclocal
27924 + cd debian/autodiff-new && autoconf
27925 + cd debian && diff -ruN -x autom4te.cache autodiff-old autodiff-new \
27926 + > autofiles.diff.tmp; test $$? -eq 0 -o $$? -eq 1
27927 + mv debian/autofiles.diff.tmp debian/autofiles.diff
27929 +DEB_TRASH += debian/autofiles.diff.tmp
27931 +define expand_file_subst_vars
27932 + test -n "${major_ver}" && \
27934 + -e "s/\@PKGNAME\@/${pkg_name}/go;" \
27935 + -e "s/\@MAJOR_VERSION\@/${major_ver}/go;" \
27936 + -e "s/\@MINOR_VERSION\@/${minor_ver}/go;" \
27937 + -e "s/\@FULL_VERSION\@/${runtime_ver}/go;" \
27938 + -e "s/\@PACKAGE_VERSION\@/${debian_ver}/go;" \
27939 + -e "s/\@DEBIAN_REV\@/${deb_rev}/go;" \
27940 + -e "s/\@NOMINAL_VERSION\@/${nominal_ver}/go;" \
27945 + @echo "pwd: ${pwd}"
27946 + @echo "debian_ver: ${debian_ver}"
27947 + @echo "debsrc_ver: ${debsrc_ver}"
27948 + @echo "debian_rev: ${debian_rev}"
27949 + @echo "nominal_ver: ${nominal_ver}"
27950 + @echo "runtime_ver: ${runtime_ver}"
27951 + @echo "major_ver: ${major_ver}"
27952 + @echo "minor_ver: ${minor_ver}"
27953 +.PHONY: check-vars
27957 + dpkg-parsechangelog > /dev/null
27958 + # don't want to be root -- using fakeroot below.
27959 + # also, stacking fakeroots seems to cause trouble generating diff.
27960 + test "`whoami`" != root
27961 + # TODO: make sure we actually installed the binary.
27962 + # TODO: run tests (use a check target?)
27963 + @read -p "Regenerate autofiles.diff? [y/n] "; \
27964 + if test "$${REPLY}" == y; \
27966 + ${MAKE} -f debian/rules autodiff-sync; \
27970 + ${MAKE} -f debian/rules clean
27971 + rm -rf ../deb-tmp
27973 + svn export . ../deb-tmp/emacs${major_ver}-${debsrc_ver}
27975 + && ln -s ../dist/emacs${major_ver}_${debsrc_ver}.orig.tar.gz .
27976 + cd ../deb-tmp/emacs${major_ver}-${debsrc_ver} \
27977 + && dpkg-buildpackage -rfakeroot -D
27978 + @if [ $$(zgrep '^---' \
27979 + ../deb-tmp/emacs${major_ver}_${debian_ver}.diff.gz \
27980 + | grep -v /debian/ | wc -c) -ne 0 ]; \
27982 + echo "Diffs outside debian/ found, please fix and retry."; \
27983 + echo "This probably means either something wasn't cleaned"; \
27984 + echo "properly, or you need to do some work in debian/patches."; \
27987 + echo "Everything looks OK. Ready for release."; \
27989 +.PHONY: prepare-release
27991 +# we don't sync this automatically on clean because it's expensive and
27992 +# should only be done by a maintainer with time to deal with any mess
27993 +# it might create.
27995 + ${update_debian_autofiles_diff}
27996 +.PHONY: autodiff-sync
27998 +debian/autofiles.diff: debian/patches/*.dpatch
27999 + ${update_debian_autofiles_diff}
28001 +debian-sync: ${PERSISTENT_AUTOGEN_FILES}
28003 +# we use PHONY because deleting patches won't cause rebuild otherwise.
28004 +debian/README: debian/README.in debian/patches/*.dpatch
28005 + cd debian && csplit -s -f README. README.in '/@@PATCH_LIST_HERE@@/'
28006 + cp debian/README.00 debian/README.tmp
28007 + dpatch-list-patch >> debian/README.tmp
28008 + tail +1 < debian/README.01 >> debian/README.tmp
28009 + mv debian/README.tmp debian/README
28010 +.PHONY: debian/README
28011 +DEB_TRASH += debian/README.tmp debian/README.00 debian/README.01
28013 +debian/menu-emacs${major_ver}: pkg_name := emacs${major_ver}
28014 +debian/menu-emacs${major_ver}: debian/menu.in
28015 + ${expand_file_subst_vars}
28017 +debian/menu-emacs${major_ver}-nox: pkg_name := emacs${major_ver}-nox
28018 +debian/menu-emacs${major_ver}-nox: debian/menu.in
28019 + ${expand_file_subst_vars}
28021 +debian/emacs${major_ver}.desktop: debian/emacs.desktop
28022 + ${expand_file_subst_vars}
28024 +debian/%: debian/%.in debian/changelog
28025 + ${expand_file_subst_vars}
28027 +debian/protected-files.tgz:
28028 + tar czpSf debian/protected-files.tgz.tmp ${protected_files}
28029 + mv debian/protected-files.tgz.tmp $@
28031 +patch-stamp: debian/protected-files.tgz
28033 +debian/stamp/autofiles.patched: debian/autofiles.diff patch-stamp
28034 + if test -e debian/autofiles.diff; \
28035 + then patch -p1 -s < debian/autofiles.diff; \
28037 + cp /usr/share/misc/config.sub .
28038 + cp /usr/share/misc/config.guess .
28039 + mkdir -p debian/stamp && touch $@
28041 +debian/stamp/setup: debian/stamp/autofiles.patched
28042 + find debian/bin -type f | xargs chmod 775
28043 + mkdir -p debian/stamp && touch $@
28045 +confflags += --prefix=/usr
28046 +confflags += --sharedstatedir=/var/lib
28047 +confflags += --libexecdir=/usr/lib
28048 +confflags += --localstatedir=/var/lib
28049 +confflags += --infodir=/usr/share/info
28050 +confflags += --mandir=/usr/share/man
28051 +confflags += --with-pop=yes
28053 +configure: debian/stamp/configure
28056 +debian/stamp/configure: debian/stamp/configure-x debian/stamp/configure-nox
28057 + mkdir -p debian/stamp && touch $@
28059 +debian/stamp/configure-x: confflags += --with-x=yes
28060 +debian/stamp/configure-x: confflags += --with-x-toolkit=athena
28061 +debian/stamp/configure-x: BUILDDIR := debian/build-x
28063 +# For those who prefer the old-style non-toolkit scrollbars, just
28064 +# uncomment this line, and re-build. The resulting emacsXY package
28065 +# will have the old scrollbars.
28067 +#debian/stamp/configure-x: confflags += --without-toolkit-scroll-bars
28069 +debian/stamp/configure-nox: confflags += --with-x=no
28070 +debian/stamp/configure-nox: BUILDDIR := debian/build-nox
28072 +debian/stamp/configure-%: debian/stamp/setup
28074 + rm -rf ${BUILDDIR}
28075 + mkdir ${BUILDDIR}
28076 + cd ${BUILDDIR} && CFLAGS="${CFLAGS}" ../../configure ${confflags}
28077 + # Because paths-force is called in configure, but configure
28078 + # doesn't support --locallisppath (do we still need this?)
28079 + (cd ${BUILDDIR} && ${build_cmd} epaths-force)
28080 + mkdir -p debian/stamp && touch $@
28082 +build: debian/stamp/build
28085 +debian/stamp/build: debian/stamp/configure
28087 + @if test -d .svn; \
28089 + echo "The Emacs source can't build from a subversion working"; \
28090 + echo "directory right now. Please try something like this:"; \
28091 + echo " rm -r ../deb-tmp && svn export . ../deb-tmp"; \
28092 + echo " (cd ../deb-tmp && fakeroot debian/rules WHATEVER)"; \
28094 + cd debian/build-x && ${build_cmd}
28095 + cd debian/build-nox && ${build_cmd}
28096 +# # rebuild the info pages (in case we've changed the .texi files)
28097 +# cd debian/build-nox/info && \
28098 +# rm -f `ls | grep -v COPYING | grep -v dir | grep -v CVS`
28099 +# cd debian/build-nox/man && make
28100 + mkdir -p debian/stamp && touch $@
28102 +binary-indep: checkroot debian/stamp/build ${DEBPKGFILES}
28104 + dpkg-parsechangelog > /dev/null
28105 + rm -rf debian/pkg-el debian/pkg-el-all
28106 + $(call emacs_inst,build-x,pkg-el-all)
28108 + # emacs${major_ver}-el files (move all the .el files that have
28109 + # a corresponding .elc file to the emacs${major_ver}-el package)
28110 + install -d debian/pkg-el
28111 + (cd debian/pkg-el-all && \
28112 + find -name "*.elc" | perl -pe 's/\.elc$$/\.el/o' | \
28113 + tar cpf - --files-from -) | \
28114 + (cd debian/pkg-el && tar xpf -)
28116 + rm -rf debian/pkg-el-all
28117 + install -d debian/pkg-el/usr/share/doc/emacs${major_ver}-el
28119 + cp debian/changelog \
28120 + debian/pkg-el/usr/share/doc/emacs${major_ver}-el/changelog.Debian
28122 + # Now compress before adding copyright.
28123 + find debian/pkg-el/usr/share/doc/emacs${major_ver}-el -type f | \
28126 + cp debian/copyright debian/pkg-el/usr/share/doc/emacs${major_ver}-el
28128 + # Mangle permissions to conform.
28129 + chown -R root.root debian/pkg-el
28130 + find debian/pkg-el -type d | xargs chmod 755
28131 + find debian/pkg-el -not -type d -a -not -type l | xargs chmod 644
28133 + install -d --mode 755 debian/pkg-el/DEBIAN
28134 + # control scripts
28135 + install -m 755 debian/emacs-el.prerm debian/pkg-el/DEBIAN/prerm
28138 + -e "s/\@MAJOR_VERSION\@/${major_ver}/go;" \
28139 + -e "s/\@MINOR_VERSION\@/${minor_ver}/go;" \
28140 + -e "s/\@FULL_VERSION\@/${runtime_ver}/go;" \
28142 + debian/pkg-el/DEBIAN/prerm
28144 + # Generate DEBIAN/md5sums file
28145 + cd debian/pkg-el && \
28146 + for dir in `ls | grep -v DEBIAN` ; do \
28147 + find "$${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums ; \
28149 + chmod 644 debian/pkg-el/DEBIAN/md5sums
28151 + dpkg-gencontrol -isp -pemacs${major_ver}-el -Pdebian/pkg-el
28152 + dpkg --build debian/pkg-el ..
28154 + ##################################################
28156 + rm -rf debian/pkg-common
28157 + install -d debian/pkg-common
28158 + $(call emacs_inst,build-x,pkg-common)
28160 + # remove stuff that should only be in the binary packages
28161 + rm debian/pkg-common/usr/share/emacs/${runtime_ver}/etc/DOC-${runtime_ver}.1
28162 + rm -r debian/pkg-common/usr/bin
28163 + rm -r debian/pkg-common/usr/lib
28165 + # make sure /usr/local dir doesn't exist in pkg.
28166 + rmdir debian/pkg-common/usr/local/share/emacs/site-lisp
28167 + rmdir debian/pkg-common/usr/local/share/emacs/${runtime_ver}/site-lisp
28168 + rmdir debian/pkg-common/usr/local/share/emacs/${runtime_ver}
28169 + rmdir debian/pkg-common/usr/local/share/emacs
28170 + rmdir debian/pkg-common/usr/local/share
28171 + rmdir debian/pkg-common/usr/local
28173 + # So any test pkgs I build from CVS will be OK -- emacs' build system
28174 + # accidentally installs CVS dirs in a few places.
28175 + rm -rf debian/pkg-common/usr/share/emacs/${runtime_ver}/leim/ja-dic/CVS
28176 + rm -rf debian/pkg-common/usr/share/emacs/${runtime_ver}/leim/quail/CVS
28179 + install -m 0644 etc/emacsclient.1 \
28180 + debian/pkg-common/usr/share/man/man1/emacsclient.1emacs${major_ver}
28182 + perl -pi -e "s|man1/etags\\.1|man1/etags\\.1emacs${major_ver}|" \
28183 + debian/pkg-common/usr/share/man/man1/ctags.1emacs${major_ver}
28184 + find debian/pkg-common/usr/share/man -type f | xargs gzip -9v
28186 + # lisp path directories
28187 + install -d debian/pkg-common/etc/emacs${major_ver}/site-start.d
28188 + install -d debian/pkg-common/usr/share/emacs${major_ver}/
28190 + # The version-specific site-lisp dir, say emacs/21.1/site-lisp, needs
28191 + # to be in share/emacs21 so that as we upgrade from 21.1 to 21.2, etc.,
28192 + # add-on package bits don't get left behind.
28193 + mv debian/pkg-common/usr/share/emacs/${runtime_ver}/site-lisp \
28194 + debian/pkg-common/usr/share/emacs${major_ver}
28195 + cd debian/pkg-common/usr/share/emacs/${runtime_ver} && \
28196 + ln -sf ../../emacs${major_ver}/site-lisp .
28198 + cd debian/pkg-common && \
28199 + find -name "*.elc" | perl -pe 's/\.elc$$/\.el/o' | xargs rm
28201 + # This is a duplicate of the file in emacs21/site-lisp
28202 + rm debian/pkg-common/usr/share/emacs/site-lisp/subdirs.el
28204 + # /usr/share/doc/emacs${major_ver} directory
28205 + install -d debian/pkg-common/usr/share/doc/emacs${major_ver}-common
28206 + cp README BUGS debian/pkg-common/usr/share/doc/emacs${major_ver}-common
28208 + debian/pkg-common/usr/share/doc/emacs${major_ver}-common/changelog
28209 + cp debian/changelog \
28210 + debian/pkg-common/usr/share/doc/emacs${major_ver}-common/changelog.Debian
28211 + cp debian/README \
28212 + debian/pkg-common/usr/share/doc/emacs${major_ver}-common/README.Debian
28213 + cp debian/README.add-on-package-maintainers \
28214 + debian/pkg-common/usr/share/doc/emacs${major_ver}-common
28215 + find debian/pkg-common/usr/share/doc/emacs${major_ver}-common -type f \
28217 + cp debian/copyright \
28218 + debian/pkg-common/usr/share/doc/emacs${major_ver}-common
28220 + cd debian/pkg-common/usr/share/doc/emacs${major_ver}-common \
28221 + && ln -s ../../../share/emacs/${runtime_ver}/etc .
28224 + # Mangle menu entries for subdir.
28225 + chmod 755 debian/mangle-info
28226 + for f in ${main_dir_info_files}; \
28228 + DEBIAN_INFO_PREFIX=emacs-${major_ver} \
28229 + debian/mangle-info \
28230 + debian/pkg-common/usr/share/info/emacs-${major_ver}/$$f; \
28233 + # Get rid of unwanted dir file.
28234 + rm debian/pkg-common/usr/share/info/emacs-${major_ver}/dir
28237 + find debian/pkg-common/usr/share/info -type f | xargs gzip -9v
28239 + cp debian/gnu-32x32.xpm \
28240 + debian/pkg-common/usr/share/emacs/${runtime_ver}/etc/gnu-32x32.xpm
28242 + # Mangle permissions to conform.
28243 + chown -R root.root debian/pkg-common
28244 + find debian/pkg-common -type d | xargs chmod 755
28245 + find debian/pkg-common -not -type d -a -not -type l | xargs chmod 644
28247 + # control scripts
28248 + install -d debian/pkg-common/DEBIAN
28249 + install -m 755 debian/emacs-common.postinst \
28250 + debian/pkg-common/DEBIAN/postinst
28251 + install -m 755 debian/emacs-common.prerm debian/pkg-common/DEBIAN/prerm
28254 + -e "s/\@PKG_NAME\@/emacs${major_ver}-common/go;" \
28255 + -e "s/\@MAJOR_VERSION\@/${major_ver}/go;" \
28256 + -e "s/\@MINOR_VERSION\@/${minor_ver}/go;" \
28257 + -e "s/\@FULL_VERSION\@/${runtime_ver}/go;" \
28258 + -e "s/\@INFOFILES\@/${main_dir_info_files}/go;" \
28260 + debian/pkg-common/DEBIAN/postinst \
28261 + debian/pkg-common/DEBIAN/prerm
28263 + # Generate DEBIAN/md5sums file
28264 + cd debian/pkg-common && \
28265 + for dir in `ls | grep -v DEBIAN` ; do \
28266 + find "$${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums ; \
28268 + chmod 644 debian/pkg-common/DEBIAN/md5sums
28270 + dpkg-gencontrol -isp -pemacs${major_ver}-common -Pdebian/pkg-common
28271 + dpkg --build debian/pkg-common ..
28274 +binary-arch: checkroot debian/stamp/build ${DEBPKGFILES}
28276 + dpkg-parsechangelog > /dev/null
28277 + rm -rf debian/pkg-x
28278 + rm -rf debian/pkg-x.tmp
28279 + rm -rf debian/pkg-nox
28280 + rm -rf debian/pkg-nox.tmp
28281 + rm -rf debian/pkg-bin-common
28282 + rm -rf debian/pkg-bin-common.tmp
28284 + ##################################################
28286 + # We install, grab the bits we need, and then delete the tree
28287 + # to save diskspace. (Do we actually need to run install -- can we
28288 + # grab the files from the build tree instead?)
28290 + $(call emacs_inst,build-nox,pkg-nox.tmp)
28291 + chmod a+x debian/build-binary-pkg
28293 + pkgname=emacs${major_ver}-nox \
28295 + tmppkgdir=pkg-nox.tmp \
28296 + runver="${runtime_ver}" \
28297 + majorver="${major_ver}" \
28298 + minorver="${minor_ver}" \
28299 + target="${target}" \
28301 + debian/build-binary-pkg
28303 + ##################################################
28305 + # We install, grab the bits we need, and then delete the tree
28306 + # to save diskspace. (Do we actually need to run install -- can we
28307 + # grab the files from the build tree instead?)
28309 + $(call emacs_inst,build-x,pkg-x.tmp)
28310 + chmod a+x debian/build-binary-pkg
28311 + pkgname=emacs${major_ver} \
28313 + tmppkgdir=pkg-x.tmp \
28314 + runver="${runtime_ver}" \
28315 + majorver="${major_ver}" \
28316 + minorver="${minor_ver}" \
28317 + target="${target}" \
28319 + debian/build-binary-pkg
28321 + ##################################################
28322 + # emacsXY-bin-common
28323 + rm -rf debian/pkg-bin-common
28324 + rm -rf debian/pkg-bin-common.tmp
28326 + $(call emacs_inst,build-x,pkg-bin-common.tmp)
28327 + install -d debian/pkg-bin-common
28328 + install -d debian/pkg-bin-common/usr
28329 + mv debian/pkg-bin-common.tmp/usr/bin debian/pkg-bin-common/usr/
28330 + mv debian/pkg-bin-common.tmp/usr/lib debian/pkg-bin-common/usr/
28331 + rm -rf debian/pkg-bin-common.tmp
28333 + # remove stuff that should only be in the binary packages
28334 + # make sure it's only one file
28335 + test -f debian/pkg-bin-common/usr/bin/emacs-*
28336 + rm debian/pkg-bin-common/usr/bin/emacs-*
28337 + rm debian/pkg-bin-common/usr/bin/emacs
28338 + cd debian/pkg-bin-common/usr/lib/emacs/${runtime_ver}/${target}/ \
28339 + && test `ls fns-*.el | wc -l` -eq 1 \
28342 + cd debian/pkg-bin-common/usr/bin && ls > ../../../tmp-alt-list
28344 + for file in `cat debian/tmp-alt-list | grep -v 'emacs$$'`; \
28346 + mv debian/pkg-bin-common/usr/bin/$${file} \
28347 + debian/pkg-bin-common/usr/bin/$${file}.emacs${major_ver}; \
28350 + # /usr/share/doc/emacs${major_ver} directory
28351 + install -d debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common/
28352 + cp debian/changelog \
28353 + debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common/changelog.Debian
28354 + cp debian/README.binpkg \
28355 + debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common/README.Debian
28356 + find debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common \
28357 + -type f | xargs gzip -9v
28358 + cp debian/copyright \
28359 + debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common
28361 + # Mangle permissions to conform.
28362 + chown -R root.root debian/pkg-bin-common
28363 + find debian/pkg-bin-common -type d | xargs chmod 755
28364 + find debian/pkg-bin-common -not -type d -a -not -type l \
28365 + | xargs chmod 644
28366 + find debian/pkg-bin-common/usr/lib/emacs/${runtime_ver}/${target}/ \
28367 + -type f -not -name "*.el" | xargs chmod 755
28368 + chmod 755 debian/pkg-bin-common/usr/bin/*
28370 + # control scripts
28371 + install -d debian/pkg-bin-common/DEBIAN
28372 + install -m 755 debian/emacs-bin-common.postinst \
28373 + debian/pkg-bin-common/DEBIAN/postinst
28374 + install -m 755 debian/emacs-bin-common.prerm \
28375 + debian/pkg-bin-common/DEBIAN/prerm
28376 + install -m 755 debian/emacs-bin-common.postrm \
28377 + debian/pkg-bin-common/DEBIAN/postrm
28379 + perl -pi -e 's/\n/ /gmo;' debian/tmp-alt-list
28382 + -e "s|\@PKG_NAME\@|emacs${major_ver}-bin-common|go;" \
28383 + -e "s|\@MAJOR_VERSION\@|${major_ver}|go;" \
28384 + -e "s|\@MINOR_VERSION\@|${minor_ver}|go;" \
28385 + -e "s|\@FULL_VERSION\@|${runtime_ver}|go;" \
28386 + -e "s|\@INFOFILES\@|${main_dir_info_files}|go;" \
28387 + -e "s|\@ALTERNATIVES\@|`cat debian/tmp-alt-list`|go;" \
28388 + -e "s|\@MOVEMAIL_BIN\@|${movemail_bin}|go;" \
28390 + debian/pkg-bin-common/DEBIAN/postinst \
28391 + debian/pkg-bin-common/DEBIAN/prerm \
28392 + debian/pkg-bin-common/DEBIAN/postrm
28394 + dpkg-shlibdeps debian/pkg-bin-common/usr/bin/* \
28395 + `find debian/pkg-bin-common/usr/lib/emacs/${runtime_ver}/${target}/ \
28396 + -type f -perm +u=x`
28398 + # Set up movemail (after dpkg-shlibdeps to avoid fakeroot sgid problem)
28399 + chown root debian/pkg-bin-common/${movemail_bin}
28400 + chgrp mail debian/pkg-bin-common/${movemail_bin}
28401 + chmod g+s debian/pkg-bin-common/${movemail_bin}
28403 + # Generate DEBIAN/md5sums file
28404 + cd debian/pkg-bin-common && \
28405 + for dir in `ls | grep -v DEBIAN` ; do \
28406 + find "$${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums ; \
28408 + chmod 644 debian/pkg-bin-common/DEBIAN/md5sums
28410 + dpkg-gencontrol -isp \
28411 + -pemacs${major_ver}-bin-common -Pdebian/pkg-bin-common
28412 + dpkg --build debian/pkg-bin-common ..
28415 +clean: debian-sync
28419 +# Below here is fairly generic really
28421 +binary: binary-indep binary-arch
28424 + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
28428 + test root = "`whoami`"
28430 +.PHONY: binary binary-arch binary-indep clean checkroot
28432 +# Local variables:
28435 --- emacs-21.3.orig/debian/menu.in
28436 +++ emacs-21.3/debian/menu.in
28438 +?package(@PKGNAME@):\
28440 + section="Apps/Editors"\
28441 + title="Emacs @MAJOR_VERSION@ (X11)"\
28442 + command="/usr/bin/emacs@MAJOR_VERSION@"\
28443 + icon="/usr/share/emacs/@FULL_VERSION@/etc/gnu-32x32.xpm"\
28446 +?package(@PKGNAME@):\
28448 + section="Apps/Editors"\
28449 + title="Emacs @MAJOR_VERSION@ (text)"\
28450 + command="/usr/bin/emacs@MAJOR_VERSION@ -nw"\
28451 + icon="/usr/share/emacs/@FULL_VERSION@/etc/gnu-32x32.xpm"\
28453 --- emacs-21.3.orig/configure.orig
28454 +++ emacs-21.3/configure.orig
28455 @@ -0,0 +1,19156 @@
28457 +# Guess values for system-dependent variables and create Makefiles.
28458 +# Generated by GNU Autoconf 2.59.
28460 +# Copyright (C) 2003 Free Software Foundation, Inc.
28461 +# This configure script is free software; the Free Software Foundation
28462 +# gives unlimited permission to copy, distribute and modify it.
28463 +## --------------------- ##
28464 +## M4sh Initialization. ##
28465 +## --------------------- ##
28467 +# Be Bourne compatible
28468 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28471 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28472 + # is contrary to our usage. Disable this feature.
28473 + alias -g '${1+"$@"}'='"$@"'
28474 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28477 +DUALCASE=1; export DUALCASE # for MKS sh
28479 +# Support unset when possible.
28480 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28487 +# Work around bugs in pre-3.0 UWIN ksh.
28488 +$as_unset ENV MAIL MAILPATH
28495 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28496 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28497 + LC_TELEPHONE LC_TIME
28499 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28500 + eval $as_var=C; export $as_var
28502 + $as_unset $as_var
28506 +# Required to use basename.
28507 +if expr a : '\(a\)' >/dev/null 2>&1; then
28513 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28514 + as_basename=basename
28516 + as_basename=false
28520 +# Name of the executable.
28521 +as_me=`$as_basename "$0" ||
28522 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28523 + X"$0" : 'X\(//\)$' \| \
28524 + X"$0" : 'X\(/\)$' \| \
28525 + . : '\(.\)' 2>/dev/null ||
28527 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28528 + /^X\/\(\/\/\)$/{ s//\1/; q; }
28529 + /^X\/\(\/\).*/{ s//\1/; q; }
28533 +# PATH needs CR, and LINENO needs CR and PATH.
28534 +# Avoid depending upon Character Ranges.
28535 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28536 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28537 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28538 +as_cr_digits='0123456789'
28539 +as_cr_alnum=$as_cr_Letters$as_cr_digits
28541 +# The user is always right.
28542 +if test "${PATH_SEPARATOR+set}" != set; then
28543 + echo "#! /bin/sh" >conf$$.sh
28544 + echo "exit 0" >>conf$$.sh
28545 + chmod +x conf$$.sh
28546 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28547 + PATH_SEPARATOR=';'
28555 + as_lineno_1=$LINENO
28556 + as_lineno_2=$LINENO
28557 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28558 + test "x$as_lineno_1" != "x$as_lineno_2" &&
28559 + test "x$as_lineno_3" = "x$as_lineno_2" || {
28560 + # Find who we are. Look in the path if we contain no path at all
28561 + # relative or not.
28563 + *[\\/]* ) as_myself=$0 ;;
28564 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28565 +for as_dir in $PATH
28568 + test -z "$as_dir" && as_dir=.
28569 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28574 + # We did not find ourselves, most probably we were run as `sh COMMAND'
28575 + # in which case we are not to be found in the path.
28576 + if test "x$as_myself" = x; then
28579 + if test ! -f "$as_myself"; then
28580 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
28581 + { (exit 1); exit 1; }; }
28583 + case $CONFIG_SHELL in
28585 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28586 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28589 + test -z "$as_dir" && as_dir=.
28590 + for as_base in sh bash ksh sh5; do
28593 + if ("$as_dir/$as_base" -c '
28594 + as_lineno_1=$LINENO
28595 + as_lineno_2=$LINENO
28596 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28597 + test "x$as_lineno_1" != "x$as_lineno_2" &&
28598 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28599 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28600 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28601 + CONFIG_SHELL=$as_dir/$as_base
28602 + export CONFIG_SHELL
28603 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28611 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28612 + # uniformly replaced by the line number. The first 'sed' inserts a
28613 + # line-number line before each line; the second 'sed' does the real
28614 + # work. The second script uses 'N' to pair each line-number line
28615 + # with the numbered line, and appends trailing '-' during
28616 + # substitution so that $LINENO is not a special case at line end.
28617 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28618 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28619 + sed '=' <$as_myself |
28624 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28627 + s,^['$as_cr_digits']*\n,,
28628 + ' >$as_me.lineno &&
28629 + chmod +x $as_me.lineno ||
28630 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28631 + { (exit 1); exit 1; }; }
28633 + # Don't try to exec as it changes $[0], causing all sort of problems
28634 + # (the dirname of $[0] is not the place where we might find the
28635 + # original and so on. Autoconf is especially sensible to this).
28636 + . ./$as_me.lineno
28637 + # Exit status is that of the last command.
28642 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28643 + *c*,-n*) ECHO_N= ECHO_C='
28645 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28646 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28649 +if expr a : '\(a\)' >/dev/null 2>&1; then
28655 +rm -f conf$$ conf$$.exe conf$$.file
28657 +if ln -s conf$$.file conf$$ 2>/dev/null; then
28658 + # We could just check for DJGPP; but this test a) works b) is more generic
28659 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28660 + if test -f conf$$.exe; then
28661 + # Don't use ln at all; we don't have any links
28666 +elif ln conf$$.file conf$$ 2>/dev/null; then
28671 +rm -f conf$$ conf$$.exe conf$$.file
28673 +if mkdir -p . 2>/dev/null; then
28676 + test -d ./-p && rmdir ./-p
28680 +as_executable_p="test -f"
28682 +# Sed expression to map a string onto a valid CPP name.
28683 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28685 +# Sed expression to map a string onto a valid variable name.
28686 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28690 +# We need space, tab and new line, in precisely that order.
28699 +# Name of the host.
28700 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
28701 +# so uname gets run too.
28702 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
28707 +# Initializations.
28709 +ac_default_prefix=/usr/local
28710 +ac_config_libobj_dir=.
28711 +cross_compiling=no
28715 +SHELL=${CONFIG_SHELL-/bin/sh}
28717 +# Maximum number of lines to put in a shell here document.
28718 +# This variable seems obsolete. It should probably be removed, and
28719 +# only ac_max_sed_lines should be used.
28720 +: ${ac_max_here_lines=38}
28722 +# Identity of this package.
28727 +PACKAGE_BUGREPORT=
28729 +ac_unique_file="src/lisp.h"
28730 +ac_config_libobj_dir=src
28731 +# Factoring default headers for most tests.
28732 +ac_includes_default="\
28733 +#include <stdio.h>
28734 +#if HAVE_SYS_TYPES_H
28735 +# include <sys/types.h>
28737 +#if HAVE_SYS_STAT_H
28738 +# include <sys/stat.h>
28741 +# include <stdlib.h>
28742 +# include <stddef.h>
28744 +# if HAVE_STDLIB_H
28745 +# include <stdlib.h>
28749 +# if !STDC_HEADERS && HAVE_MEMORY_H
28750 +# include <memory.h>
28752 +# include <string.h>
28754 +#if HAVE_STRINGS_H
28755 +# include <strings.h>
28757 +#if HAVE_INTTYPES_H
28758 +# include <inttypes.h>
28760 +# if HAVE_STDINT_H
28761 +# include <stdint.h>
28765 +# include <unistd.h>
28768 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA YACC RANLIB ac_ct_RANLIB EGREP LIBSOUND SET_MAKE ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile MOVEMAIL_LOCK_LIBS LTLIBOBJS'
28771 +# Initialize some variables set by options.
28773 +ac_init_version=false
28774 +# The variables have the same names as the options, with
28775 +# dashes changed to underlines.
28776 +cache_file=/dev/null
28781 +program_prefix=NONE
28782 +program_suffix=NONE
28783 +program_transform_name=s,x,x,
28791 +# Installation directory options.
28792 +# These are left unexpanded so users can "make install exec_prefix=/foo"
28793 +# and all the variables that are supposed to be based on exec_prefix
28794 +# by default will actually change.
28795 +# Use braces instead of parens because sh, perl, etc. also accept them.
28796 +bindir='${exec_prefix}/bin'
28797 +sbindir='${exec_prefix}/sbin'
28798 +libexecdir='${exec_prefix}/libexec'
28799 +datadir='${prefix}/share'
28800 +sysconfdir='${prefix}/etc'
28801 +sharedstatedir='${prefix}/com'
28802 +localstatedir='${prefix}/var'
28803 +libdir='${exec_prefix}/lib'
28804 +includedir='${prefix}/include'
28805 +oldincludedir='/usr/include'
28806 +infodir='${prefix}/info'
28807 +mandir='${prefix}/man'
28812 + # If the previous option needs an argument, assign it.
28813 + if test -n "$ac_prev"; then
28814 + eval "$ac_prev=\$ac_option"
28819 + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
28821 + # Accept the important Cygnus configure options, so we can diagnose typos.
28823 + case $ac_option in
28825 + -bindir | --bindir | --bindi | --bind | --bin | --bi)
28826 + ac_prev=bindir ;;
28827 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
28828 + bindir=$ac_optarg ;;
28830 + -build | --build | --buil | --bui | --bu)
28831 + ac_prev=build_alias ;;
28832 + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
28833 + build_alias=$ac_optarg ;;
28835 + -cache-file | --cache-file | --cache-fil | --cache-fi \
28836 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28837 + ac_prev=cache_file ;;
28838 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28839 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
28840 + cache_file=$ac_optarg ;;
28842 + --config-cache | -C)
28843 + cache_file=config.cache ;;
28845 + -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
28846 + ac_prev=datadir ;;
28847 + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
28849 + datadir=$ac_optarg ;;
28851 + -disable-* | --disable-*)
28852 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
28853 + # Reject names that are not valid shell variable names.
28854 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
28855 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
28856 + { (exit 1); exit 1; }; }
28857 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
28858 + eval "enable_$ac_feature=no" ;;
28860 + -enable-* | --enable-*)
28861 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
28862 + # Reject names that are not valid shell variable names.
28863 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
28864 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
28865 + { (exit 1); exit 1; }; }
28866 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
28867 + case $ac_option in
28868 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
28869 + *) ac_optarg=yes ;;
28871 + eval "enable_$ac_feature='$ac_optarg'" ;;
28873 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
28874 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
28875 + | --exec | --exe | --ex)
28876 + ac_prev=exec_prefix ;;
28877 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
28878 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
28879 + | --exec=* | --exe=* | --ex=*)
28880 + exec_prefix=$ac_optarg ;;
28882 + -gas | --gas | --ga | --g)
28883 + # Obsolete; use --with-gas.
28886 + -help | --help | --hel | --he | -h)
28887 + ac_init_help=long ;;
28888 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
28889 + ac_init_help=recursive ;;
28890 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
28891 + ac_init_help=short ;;
28893 + -host | --host | --hos | --ho)
28894 + ac_prev=host_alias ;;
28895 + -host=* | --host=* | --hos=* | --ho=*)
28896 + host_alias=$ac_optarg ;;
28898 + -includedir | --includedir | --includedi | --included | --include \
28899 + | --includ | --inclu | --incl | --inc)
28900 + ac_prev=includedir ;;
28901 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
28902 + | --includ=* | --inclu=* | --incl=* | --inc=*)
28903 + includedir=$ac_optarg ;;
28905 + -infodir | --infodir | --infodi | --infod | --info | --inf)
28906 + ac_prev=infodir ;;
28907 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
28908 + infodir=$ac_optarg ;;
28910 + -libdir | --libdir | --libdi | --libd)
28911 + ac_prev=libdir ;;
28912 + -libdir=* | --libdir=* | --libdi=* | --libd=*)
28913 + libdir=$ac_optarg ;;
28915 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
28916 + | --libexe | --libex | --libe)
28917 + ac_prev=libexecdir ;;
28918 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
28919 + | --libexe=* | --libex=* | --libe=*)
28920 + libexecdir=$ac_optarg ;;
28922 + -localstatedir | --localstatedir | --localstatedi | --localstated \
28923 + | --localstate | --localstat | --localsta | --localst \
28924 + | --locals | --local | --loca | --loc | --lo)
28925 + ac_prev=localstatedir ;;
28926 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
28927 + | --localstate=* | --localstat=* | --localsta=* | --localst=* \
28928 + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
28929 + localstatedir=$ac_optarg ;;
28931 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
28932 + ac_prev=mandir ;;
28933 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
28934 + mandir=$ac_optarg ;;
28936 + -nfp | --nfp | --nf)
28937 + # Obsolete; use --without-fp.
28940 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
28941 + | --no-cr | --no-c | -n)
28944 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
28945 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
28946 + no_recursion=yes ;;
28948 + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
28949 + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
28950 + | --oldin | --oldi | --old | --ol | --o)
28951 + ac_prev=oldincludedir ;;
28952 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
28953 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
28954 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
28955 + oldincludedir=$ac_optarg ;;
28957 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28958 + ac_prev=prefix ;;
28959 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28960 + prefix=$ac_optarg ;;
28962 + -program-prefix | --program-prefix | --program-prefi | --program-pref \
28963 + | --program-pre | --program-pr | --program-p)
28964 + ac_prev=program_prefix ;;
28965 + -program-prefix=* | --program-prefix=* | --program-prefi=* \
28966 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
28967 + program_prefix=$ac_optarg ;;
28969 + -program-suffix | --program-suffix | --program-suffi | --program-suff \
28970 + | --program-suf | --program-su | --program-s)
28971 + ac_prev=program_suffix ;;
28972 + -program-suffix=* | --program-suffix=* | --program-suffi=* \
28973 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
28974 + program_suffix=$ac_optarg ;;
28976 + -program-transform-name | --program-transform-name \
28977 + | --program-transform-nam | --program-transform-na \
28978 + | --program-transform-n | --program-transform- \
28979 + | --program-transform | --program-transfor \
28980 + | --program-transfo | --program-transf \
28981 + | --program-trans | --program-tran \
28982 + | --progr-tra | --program-tr | --program-t)
28983 + ac_prev=program_transform_name ;;
28984 + -program-transform-name=* | --program-transform-name=* \
28985 + | --program-transform-nam=* | --program-transform-na=* \
28986 + | --program-transform-n=* | --program-transform-=* \
28987 + | --program-transform=* | --program-transfor=* \
28988 + | --program-transfo=* | --program-transf=* \
28989 + | --program-trans=* | --program-tran=* \
28990 + | --progr-tra=* | --program-tr=* | --program-t=*)
28991 + program_transform_name=$ac_optarg ;;
28993 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28994 + | -silent | --silent | --silen | --sile | --sil)
28997 + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
28998 + ac_prev=sbindir ;;
28999 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
29000 + | --sbi=* | --sb=*)
29001 + sbindir=$ac_optarg ;;
29003 + -sharedstatedir | --sharedstatedir | --sharedstatedi \
29004 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
29005 + | --sharedst | --shareds | --shared | --share | --shar \
29007 + ac_prev=sharedstatedir ;;
29008 + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
29009 + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
29010 + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
29011 + | --sha=* | --sh=*)
29012 + sharedstatedir=$ac_optarg ;;
29014 + -site | --site | --sit)
29016 + -site=* | --site=* | --sit=*)
29017 + site=$ac_optarg ;;
29019 + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
29020 + ac_prev=srcdir ;;
29021 + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
29022 + srcdir=$ac_optarg ;;
29024 + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
29025 + | --syscon | --sysco | --sysc | --sys | --sy)
29026 + ac_prev=sysconfdir ;;
29027 + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
29028 + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
29029 + sysconfdir=$ac_optarg ;;
29031 + -target | --target | --targe | --targ | --tar | --ta | --t)
29032 + ac_prev=target_alias ;;
29033 + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
29034 + target_alias=$ac_optarg ;;
29036 + -v | -verbose | --verbose | --verbos | --verbo | --verb)
29039 + -version | --version | --versio | --versi | --vers | -V)
29040 + ac_init_version=: ;;
29042 + -with-* | --with-*)
29043 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
29044 + # Reject names that are not valid shell variable names.
29045 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
29046 + { echo "$as_me: error: invalid package name: $ac_package" >&2
29047 + { (exit 1); exit 1; }; }
29048 + ac_package=`echo $ac_package| sed 's/-/_/g'`
29049 + case $ac_option in
29050 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
29051 + *) ac_optarg=yes ;;
29053 + eval "with_$ac_package='$ac_optarg'" ;;
29055 + -without-* | --without-*)
29056 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
29057 + # Reject names that are not valid shell variable names.
29058 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
29059 + { echo "$as_me: error: invalid package name: $ac_package" >&2
29060 + { (exit 1); exit 1; }; }
29061 + ac_package=`echo $ac_package | sed 's/-/_/g'`
29062 + eval "with_$ac_package=no" ;;
29065 + # Obsolete; use --with-x.
29068 + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
29069 + | --x-incl | --x-inc | --x-in | --x-i)
29070 + ac_prev=x_includes ;;
29071 + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
29072 + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
29073 + x_includes=$ac_optarg ;;
29075 + -x-libraries | --x-libraries | --x-librarie | --x-librari \
29076 + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
29077 + ac_prev=x_libraries ;;
29078 + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
29079 + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
29080 + x_libraries=$ac_optarg ;;
29082 + -*) { echo "$as_me: error: unrecognized option: $ac_option
29083 +Try \`$0 --help' for more information." >&2
29084 + { (exit 1); exit 1; }; }
29088 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
29089 + # Reject names that are not valid shell variable names.
29090 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
29091 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
29092 + { (exit 1); exit 1; }; }
29093 + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
29094 + eval "$ac_envvar='$ac_optarg'"
29095 + export $ac_envvar ;;
29098 + # FIXME: should be removed in autoconf 3.0.
29099 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
29100 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
29101 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
29102 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
29108 +if test -n "$ac_prev"; then
29109 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
29110 + { echo "$as_me: error: missing argument to $ac_option" >&2
29111 + { (exit 1); exit 1; }; }
29114 +# Be sure to have absolute paths.
29115 +for ac_var in exec_prefix prefix
29117 + eval ac_val=$`echo $ac_var`
29119 + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
29120 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
29121 + { (exit 1); exit 1; }; };;
29125 +# Be sure to have absolute paths.
29126 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
29127 + localstatedir libdir includedir oldincludedir infodir mandir
29129 + eval ac_val=$`echo $ac_var`
29131 + [\\/$]* | ?:[\\/]* ) ;;
29132 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
29133 + { (exit 1); exit 1; }; };;
29137 +# There might be people who depend on the old broken behavior: `$host'
29138 +# used to hold the argument of --host etc.
29139 +# FIXME: To remove some day.
29140 +build=$build_alias
29142 +target=$target_alias
29144 +# FIXME: To remove some day.
29145 +if test "x$host_alias" != x; then
29146 + if test "x$build_alias" = x; then
29147 + cross_compiling=maybe
29148 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
29149 + If a cross compiler is detected then cross compile mode will be used." >&2
29150 + elif test "x$build_alias" != "x$host_alias"; then
29151 + cross_compiling=yes
29156 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
29158 +test "$silent" = yes && exec 6>/dev/null
29161 +# Find the source files, if location was not specified.
29162 +if test -z "$srcdir"; then
29163 + ac_srcdir_defaulted=yes
29164 + # Try the directory containing this script, then its parent.
29165 + ac_confdir=`(dirname "$0") 2>/dev/null ||
29166 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29167 + X"$0" : 'X\(//\)[^/]' \| \
29168 + X"$0" : 'X\(//\)$' \| \
29169 + X"$0" : 'X\(/\)' \| \
29170 + . : '\(.\)' 2>/dev/null ||
29172 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29173 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29174 + /^X\(\/\/\)$/{ s//\1/; q; }
29175 + /^X\(\/\).*/{ s//\1/; q; }
29177 + srcdir=$ac_confdir
29178 + if test ! -r $srcdir/$ac_unique_file; then
29182 + ac_srcdir_defaulted=no
29184 +if test ! -r $srcdir/$ac_unique_file; then
29185 + if test "$ac_srcdir_defaulted" = yes; then
29186 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
29187 + { (exit 1); exit 1; }; }
29189 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
29190 + { (exit 1); exit 1; }; }
29193 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
29194 + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
29195 + { (exit 1); exit 1; }; }
29196 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
29197 +ac_env_build_alias_set=${build_alias+set}
29198 +ac_env_build_alias_value=$build_alias
29199 +ac_cv_env_build_alias_set=${build_alias+set}
29200 +ac_cv_env_build_alias_value=$build_alias
29201 +ac_env_host_alias_set=${host_alias+set}
29202 +ac_env_host_alias_value=$host_alias
29203 +ac_cv_env_host_alias_set=${host_alias+set}
29204 +ac_cv_env_host_alias_value=$host_alias
29205 +ac_env_target_alias_set=${target_alias+set}
29206 +ac_env_target_alias_value=$target_alias
29207 +ac_cv_env_target_alias_set=${target_alias+set}
29208 +ac_cv_env_target_alias_value=$target_alias
29209 +ac_env_CC_set=${CC+set}
29210 +ac_env_CC_value=$CC
29211 +ac_cv_env_CC_set=${CC+set}
29212 +ac_cv_env_CC_value=$CC
29213 +ac_env_CFLAGS_set=${CFLAGS+set}
29214 +ac_env_CFLAGS_value=$CFLAGS
29215 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
29216 +ac_cv_env_CFLAGS_value=$CFLAGS
29217 +ac_env_LDFLAGS_set=${LDFLAGS+set}
29218 +ac_env_LDFLAGS_value=$LDFLAGS
29219 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
29220 +ac_cv_env_LDFLAGS_value=$LDFLAGS
29221 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
29222 +ac_env_CPPFLAGS_value=$CPPFLAGS
29223 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
29224 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
29225 +ac_env_CPP_set=${CPP+set}
29226 +ac_env_CPP_value=$CPP
29227 +ac_cv_env_CPP_set=${CPP+set}
29228 +ac_cv_env_CPP_value=$CPP
29231 +# Report the --help message.
29233 +if test "$ac_init_help" = "long"; then
29234 + # Omit some internal or obsolete options to make the list less imposing.
29235 + # This message is too long to be a string in the A/UX 3.1 sh.
29237 +\`configure' configures this package to adapt to many kinds of systems.
29239 +Usage: $0 [OPTION]... [VAR=VALUE]...
29241 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
29242 +VAR=VALUE. See below for descriptions of some of the useful variables.
29244 +Defaults for the options are specified in brackets.
29247 + -h, --help display this help and exit
29248 + --help=short display options specific to this package
29249 + --help=recursive display the short help of all the included packages
29250 + -V, --version display version information and exit
29251 + -q, --quiet, --silent do not print \`checking...' messages
29252 + --cache-file=FILE cache test results in FILE [disabled]
29253 + -C, --config-cache alias for \`--cache-file=config.cache'
29254 + -n, --no-create do not create output files
29255 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
29260 +Installation directories:
29261 + --prefix=PREFIX install architecture-independent files in PREFIX
29262 + [$ac_default_prefix]
29263 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
29266 +By default, \`make install' will install all the files in
29267 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
29268 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
29269 +for instance \`--prefix=\$HOME'.
29271 +For better control, use the options below.
29273 +Fine tuning of the installation directories:
29274 + --bindir=DIR user executables [EPREFIX/bin]
29275 + --sbindir=DIR system admin executables [EPREFIX/sbin]
29276 + --libexecdir=DIR program executables [EPREFIX/libexec]
29277 + --datadir=DIR read-only architecture-independent data [PREFIX/share]
29278 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
29279 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
29280 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
29281 + --libdir=DIR object code libraries [EPREFIX/lib]
29282 + --includedir=DIR C header files [PREFIX/include]
29283 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
29284 + --infodir=DIR info documentation [PREFIX/info]
29285 + --mandir=DIR man documentation [PREFIX/man]
29291 + --x-includes=DIR X include files are in DIR
29292 + --x-libraries=DIR X library files are in DIR
29295 + --build=BUILD configure for building on BUILD [guessed]
29296 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
29300 +if test -n "$ac_init_help"; then
29304 +Optional Features:
29305 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
29306 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
29307 + --disable-largefile omit support for large files
29309 +Optional Packages:
29310 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
29311 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
29312 + --without-gcc don't use GCC to compile Emacs if GCC is found
29313 + --without-pop don't support POP mail retrieval with movemail
29314 + --with-kerberos support Kerberos-authenticated POP
29315 + --with-kerberos5 support Kerberos version 5 authenticated POP
29316 + --with-hesiod support Hesiod to get the POP server host
29317 + --with-mail-spool-directory=DIR system mail spool is DIR
29318 + --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
29319 + --with-xpm use -lXpm for displaying XPM images
29320 + --with-jpeg use -ljpeg for displaying JPEG images
29321 + --with-tiff use -ltiff for displaying TIFF images
29322 + --with-gif use -lungif for displaying GIF images
29323 + --with-png use -lpng for displaying PNG images
29324 + --without-toolkit-scroll-bars
29325 + don't use Motif or Xaw3d scroll bars
29326 + --without-xim don't use X11 XIM
29327 + --with-x use the X Window System
29329 +Some influential environment variables:
29330 + CC C compiler command
29331 + CFLAGS C compiler flags
29332 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
29333 + nonstandard directory <lib dir>
29334 + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
29335 + headers in a nonstandard directory <include dir>
29336 + CPP C preprocessor
29338 +Use these variables to override the choices made by `configure' or to help
29339 +it to find libraries and programs with nonstandard names/locations.
29344 +if test "$ac_init_help" = "recursive"; then
29345 + # If there are subdirs, report their specific --help.
29347 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
29348 + test -d $ac_dir || continue
29351 +if test "$ac_dir" != .; then
29352 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29353 + # A "../" for each directory in $ac_dir_suffix.
29354 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29356 + ac_dir_suffix= ac_top_builddir=
29360 + .) # No --srcdir option. We are building in place.
29362 + if test -z "$ac_top_builddir"; then
29365 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29367 + [\\/]* | ?:[\\/]* ) # Absolute path.
29368 + ac_srcdir=$srcdir$ac_dir_suffix;
29369 + ac_top_srcdir=$srcdir ;;
29370 + *) # Relative path.
29371 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29372 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
29375 +# Do not use `cd foo && pwd` to compute absolute paths, because
29376 +# the directories may not exist.
29378 +.) ac_abs_builddir="$ac_dir";;
29380 + case "$ac_dir" in
29381 + .) ac_abs_builddir=`pwd`;;
29382 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29383 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
29386 +case $ac_abs_builddir in
29387 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
29389 + case ${ac_top_builddir}. in
29390 + .) ac_abs_top_builddir=$ac_abs_builddir;;
29391 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29392 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29395 +case $ac_abs_builddir in
29396 +.) ac_abs_srcdir=$ac_srcdir;;
29398 + case $ac_srcdir in
29399 + .) ac_abs_srcdir=$ac_abs_builddir;;
29400 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29401 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29404 +case $ac_abs_builddir in
29405 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
29407 + case $ac_top_srcdir in
29408 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
29409 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29410 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29415 + # Check for guested configure; otherwise get Cygnus style configure.
29416 + if test -f $ac_srcdir/configure.gnu; then
29418 + $SHELL $ac_srcdir/configure.gnu --help=recursive
29419 + elif test -f $ac_srcdir/configure; then
29421 + $SHELL $ac_srcdir/configure --help=recursive
29422 + elif test -f $ac_srcdir/configure.ac ||
29423 + test -f $ac_srcdir/configure.in; then
29425 + $ac_configure --help
29427 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
29433 +test -n "$ac_init_help" && exit 0
29434 +if $ac_init_version; then
29437 +Copyright (C) 2003 Free Software Foundation, Inc.
29438 +This configure script is free software; the Free Software Foundation
29439 +gives unlimited permission to copy, distribute and modify it.
29445 +This file contains any messages produced by compilers while
29446 +running configure, to aid debugging if configure makes a mistake.
29448 +It was created by $as_me, which was
29449 +generated by GNU Autoconf 2.59. Invocation command line was
29460 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
29461 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
29462 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
29463 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
29464 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
29466 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
29467 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
29469 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
29470 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
29471 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
29472 +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
29473 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
29474 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
29475 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
29479 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29480 +for as_dir in $PATH
29483 + test -z "$as_dir" && as_dir=.
29484 + echo "PATH: $as_dir"
29499 +# Keep a trace of the command line.
29500 +# Strip out --no-create and --no-recursion so they do not pile up.
29501 +# Strip out --silent because we don't want to record it for future runs.
29502 +# Also quote any args containing shell meta-characters.
29503 +# Make two passes to allow for proper duplicate-argument suppression.
29504 +ac_configure_args=
29505 +ac_configure_args0=
29506 +ac_configure_args1=
29508 +ac_must_keep_next=false
29509 +for ac_pass in 1 2
29514 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
29515 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29516 + | -silent | --silent | --silen | --sile | --sil)
29518 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
29519 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29522 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
29524 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
29525 + if test $ac_must_keep_next = true; then
29526 + ac_must_keep_next=false # Got value, back to normal.
29529 + *=* | --config-cache | -C | -disable-* | --disable-* \
29530 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
29531 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
29532 + | -with-* | --with-* | -without-* | --without-* | --x)
29533 + case "$ac_configure_args0 " in
29534 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
29537 + -* ) ac_must_keep_next=true ;;
29540 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
29541 + # Get rid of the leading space.
29547 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
29548 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
29550 +# When interrupted or exit'd, cleanup temporary files, and complete
29551 +# config.log. We remove comments because anyway the quotes in there
29552 +# would cause problems or look ugly.
29553 +# WARNING: Be sure not to use single quotes in there, as some shells,
29554 +# such as our DU 5.0 friend, will then `close' the trap.
29555 +trap 'exit_status=$?
29556 + # Save into config.log some information that might help in debugging.
29561 +## ---------------- ##
29562 +## Cache variables. ##
29563 +## ---------------- ##
29566 + # The following way of writing the cache mishandles newlines in values,
29569 + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
29572 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
29573 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
29577 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29584 +## ----------------- ##
29585 +## Output variables. ##
29586 +## ----------------- ##
29589 + for ac_var in $ac_subst_vars
29591 + eval ac_val=$`echo $ac_var`
29592 + echo "$ac_var='"'"'$ac_val'"'"'"
29596 + if test -n "$ac_subst_files"; then
29598 +## ------------- ##
29599 +## Output files. ##
29600 +## ------------- ##
29603 + for ac_var in $ac_subst_files
29605 + eval ac_val=$`echo $ac_var`
29606 + echo "$ac_var='"'"'$ac_val'"'"'"
29611 + if test -s confdefs.h; then
29618 + sed "/^$/d" confdefs.h | sort
29621 + test "$ac_signal" != 0 &&
29622 + echo "$as_me: caught signal $ac_signal"
29623 + echo "$as_me: exit $exit_status"
29625 + rm -f core *.core &&
29626 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
29627 + exit $exit_status
29629 +for ac_signal in 1 2 13 15; do
29630 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
29634 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
29635 +rm -rf conftest* confdefs.h
29636 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
29639 +# Predefined preprocessor variables.
29641 +cat >>confdefs.h <<_ACEOF
29642 +#define PACKAGE_NAME "$PACKAGE_NAME"
29646 +cat >>confdefs.h <<_ACEOF
29647 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
29651 +cat >>confdefs.h <<_ACEOF
29652 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
29656 +cat >>confdefs.h <<_ACEOF
29657 +#define PACKAGE_STRING "$PACKAGE_STRING"
29661 +cat >>confdefs.h <<_ACEOF
29662 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
29666 +# Let the site file select an alternate cache file if it wants to.
29667 +# Prefer explicitly selected file to automatically selected ones.
29668 +if test -z "$CONFIG_SITE"; then
29669 + if test "x$prefix" != xNONE; then
29670 + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
29672 + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
29675 +for ac_site_file in $CONFIG_SITE; do
29676 + if test -r "$ac_site_file"; then
29677 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
29678 +echo "$as_me: loading site script $ac_site_file" >&6;}
29679 + sed 's/^/| /' "$ac_site_file" >&5
29680 + . "$ac_site_file"
29684 +if test -r "$cache_file"; then
29685 + # Some versions of bash will fail to source /dev/null (special
29686 + # files actually), so we avoid doing that.
29687 + if test -f "$cache_file"; then
29688 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
29689 +echo "$as_me: loading cache $cache_file" >&6;}
29690 + case $cache_file in
29691 + [\\/]* | ?:[\\/]* ) . $cache_file;;
29692 + *) . ./$cache_file;;
29696 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
29697 +echo "$as_me: creating cache $cache_file" >&6;}
29701 +# Check that the precious variables saved in the cache have kept the same
29703 +ac_cache_corrupted=false
29704 +for ac_var in `(set) 2>&1 |
29705 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
29706 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
29707 + eval ac_new_set=\$ac_env_${ac_var}_set
29708 + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
29709 + eval ac_new_val="\$ac_env_${ac_var}_value"
29710 + case $ac_old_set,$ac_new_set in
29712 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
29713 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
29714 + ac_cache_corrupted=: ;;
29716 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
29717 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
29718 + ac_cache_corrupted=: ;;
29721 + if test "x$ac_old_val" != "x$ac_new_val"; then
29722 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
29723 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
29724 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
29725 +echo "$as_me: former value: $ac_old_val" >&2;}
29726 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
29727 +echo "$as_me: current value: $ac_new_val" >&2;}
29728 + ac_cache_corrupted=:
29731 + # Pass precious variables to config.status.
29732 + if test "$ac_new_set" = set; then
29733 + case $ac_new_val in
29734 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
29735 + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
29736 + *) ac_arg=$ac_var=$ac_new_val ;;
29738 + case " $ac_configure_args " in
29739 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
29740 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
29744 +if $ac_cache_corrupted; then
29745 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
29746 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
29747 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
29748 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
29749 + { (exit 1); exit 1; }; }
29753 +ac_cpp='$CPP $CPPFLAGS'
29754 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29755 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29756 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
29776 + ac_config_headers="$ac_config_headers src/config.h:src/config.in"
29780 +lispdir='${datadir}/emacs/${version}/lisp'
29781 +locallisppath='${datadir}/emacs/${version}/site-lisp:'\
29782 +'${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
29783 +lisppath='${locallisppath}:${lispdir}'
29784 +etcdir='${datadir}/emacs/${version}/etc'
29785 +archlibdir='${libexecdir}/emacs/${version}/${configuration}'
29786 +docdir='${datadir}/emacs/${version}/etc'
29789 +# Check whether --with-gcc or --without-gcc was given.
29790 +if test "${with_gcc+set}" = set; then
29791 + withval="$with_gcc"
29795 +# Check whether --with-pop or --without-pop was given.
29796 +if test "${with_pop+set}" = set; then
29797 + withval="$with_pop"
29798 + if test "$withval" = yes; then
29799 + cat >>confdefs.h <<\_ACEOF
29800 +#define MAIL_USE_POP 1
29806 + cat >>confdefs.h <<\_ACEOF
29807 +#define MAIL_USE_POP 1
29812 +# Check whether --with-kerberos or --without-kerberos was given.
29813 +if test "${with_kerberos+set}" = set; then
29814 + withval="$with_kerberos"
29815 + cat >>confdefs.h <<\_ACEOF
29816 +#define KERBEROS 1
29821 +# Check whether --with-kerberos5 or --without-kerberos5 was given.
29822 +if test "${with_kerberos5+set}" = set; then
29823 + withval="$with_kerberos5"
29824 + if test "${with_kerberos5+set}" = set; then
29825 + if test "${with_kerberos+set}" != set; then
29826 + with_kerberos=yes
29827 + cat >>confdefs.h <<\_ACEOF
29828 +#define KERBEROS 1
29833 +cat >>confdefs.h <<\_ACEOF
29834 +#define KERBEROS5 1
29839 +# Check whether --with-hesiod or --without-hesiod was given.
29840 +if test "${with_hesiod+set}" = set; then
29841 + withval="$with_hesiod"
29842 + cat >>confdefs.h <<\_ACEOF
29848 +# Check whether --with-mail-spool-directory or --without-mail-spool-directory was given.
29849 +if test "${with_mail_spool_directory+set}" = set; then
29850 + withval="$with_mail_spool_directory"
29851 + cat >>confdefs.h <<_ACEOF
29852 +#define USE_MAIL_SPOOL_DIRECTORY "${withval}"
29857 +# Check whether --with-x-toolkit or --without-x-toolkit was given.
29858 +if test "${with_x_toolkit+set}" = set; then
29859 + withval="$with_x_toolkit"
29860 + case "${withval}" in
29861 + y | ye | yes ) val=athena ;;
29862 + n | no ) val=no ;;
29863 + l | lu | luc | luci | lucid ) val=lucid ;;
29864 + a | at | ath | athe | athen | athena ) val=athena ;;
29865 + m | mo | mot | moti | motif ) val=motif ;;
29867 +{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
29868 +this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
29869 +Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
29870 +echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
29871 +this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
29872 +Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
29873 + { (exit 1); exit 1; }; }
29876 + with_x_toolkit=$val
29880 +# Check whether --with-xpm or --without-xpm was given.
29881 +if test "${with_xpm+set}" = set; then
29882 + withval="$with_xpm"
29886 +# Check whether --with-jpeg or --without-jpeg was given.
29887 +if test "${with_jpeg+set}" = set; then
29888 + withval="$with_jpeg"
29892 +# Check whether --with-tiff or --without-tiff was given.
29893 +if test "${with_tiff+set}" = set; then
29894 + withval="$with_tiff"
29898 +# Check whether --with-gif or --without-gif was given.
29899 +if test "${with_gif+set}" = set; then
29900 + withval="$with_gif"
29904 +# Check whether --with-png or --without-png was given.
29905 +if test "${with_png+set}" = set; then
29906 + withval="$with_png"
29910 +# Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
29911 +if test "${with_toolkit_scroll_bars+set}" = set; then
29912 + withval="$with_toolkit_scroll_bars"
29916 +# Check whether --with-xim or --without-xim was given.
29917 +if test "${with_xim+set}" = set; then
29918 + withval="$with_xim"
29922 +#### Make srcdir absolute, if it isn't already. It's important to
29923 +#### avoid running the path through pwd unnecessarily, since pwd can
29924 +#### give you automounter prefixes, which can go away. We do all this
29925 +#### so Emacs can find its files when run uninstalled.
29926 +## Make sure CDPATH doesn't affect cd (in case PWD is relative).
29928 +case "${srcdir}" in
29931 + ## We may be able to use the $PWD environment variable to make this
29932 + ## absolute. But sometimes PWD is inaccurate.
29933 + if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
29937 + srcdir="`(cd ${srcdir}; pwd)`"
29940 + * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
29943 +#### Check if the source directory already has a configured system in it.
29944 +if test `pwd` != `(cd ${srcdir} && pwd)` \
29945 + && test -f "${srcdir}/src/config.h" ; then
29946 + { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
29947 + as a build directory right now; it has been configured in its own
29948 + right. To configure in another directory as well, you MUST
29949 + use GNU make. If you do not have GNU make, then you must
29950 + now do \`make distclean' in ${srcdir},
29951 + and then run $0 again." >&5
29952 +echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
29953 + as a build directory right now; it has been configured in its own
29954 + right. To configure in another directory as well, you MUST
29955 + use GNU make. If you do not have GNU make, then you must
29956 + now do \`make distclean' in ${srcdir},
29957 + and then run $0 again." >&2;}
29959 + extrasub='/^VPATH[ ]*=/c\
29960 +vpath %.c $(srcdir)\
29961 +vpath %.h $(srcdir)\
29962 +vpath %.y $(srcdir)\
29963 +vpath %.l $(srcdir)\
29964 +vpath %.s $(srcdir)\
29965 +vpath %.in $(srcdir)\
29966 +vpath %.texi $(srcdir)'
29969 +#### Given the configuration name, set machfile and opsysfile to the
29970 +#### names of the m/*.h and s/*.h files we should use.
29972 +### Canonicalize the configuration name.
29975 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
29976 + if test -f $ac_dir/install-sh; then
29977 + ac_aux_dir=$ac_dir
29978 + ac_install_sh="$ac_aux_dir/install-sh -c"
29980 + elif test -f $ac_dir/install.sh; then
29981 + ac_aux_dir=$ac_dir
29982 + ac_install_sh="$ac_aux_dir/install.sh -c"
29984 + elif test -f $ac_dir/shtool; then
29985 + ac_aux_dir=$ac_dir
29986 + ac_install_sh="$ac_aux_dir/shtool install -c"
29990 +if test -z "$ac_aux_dir"; then
29991 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
29992 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
29993 + { (exit 1); exit 1; }; }
29995 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
29996 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
29997 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
29999 +# Make sure we can run config.sub.
30000 +$ac_config_sub sun4 >/dev/null 2>&1 ||
30001 + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
30002 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
30003 + { (exit 1); exit 1; }; }
30005 +echo "$as_me:$LINENO: checking build system type" >&5
30006 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
30007 +if test "${ac_cv_build+set}" = set; then
30008 + echo $ECHO_N "(cached) $ECHO_C" >&6
30010 + ac_cv_build_alias=$build_alias
30011 +test -z "$ac_cv_build_alias" &&
30012 + ac_cv_build_alias=`$ac_config_guess`
30013 +test -z "$ac_cv_build_alias" &&
30014 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
30015 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
30016 + { (exit 1); exit 1; }; }
30017 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
30018 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
30019 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
30020 + { (exit 1); exit 1; }; }
30023 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
30024 +echo "${ECHO_T}$ac_cv_build" >&6
30025 +build=$ac_cv_build
30026 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
30027 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
30028 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
30031 +echo "$as_me:$LINENO: checking host system type" >&5
30032 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
30033 +if test "${ac_cv_host+set}" = set; then
30034 + echo $ECHO_N "(cached) $ECHO_C" >&6
30036 + ac_cv_host_alias=$host_alias
30037 +test -z "$ac_cv_host_alias" &&
30038 + ac_cv_host_alias=$ac_cv_build_alias
30039 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
30040 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
30041 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
30042 + { (exit 1); exit 1; }; }
30045 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
30046 +echo "${ECHO_T}$ac_cv_host" >&6
30048 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
30049 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
30050 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
30054 +configuration=$host_alias
30057 +### If you add support for a new configuration, add code to this
30058 +### switch statement to recognize your configuration name and select
30059 +### the appropriate operating system and machine description files.
30061 +### You would hope that you could choose an m/*.h file pretty much
30062 +### based on the machine portion of the configuration name, and an s-
30063 +### file based on the operating system portion. However, it turns out
30064 +### that each m/*.h file is pretty manufacturer-specific - for
30065 +### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
30066 +### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
30067 +### machines. So we basically have to have a special case for each
30068 +### configuration name.
30070 +### As far as handling version numbers on operating systems is
30071 +### concerned, make sure things will fail in a fixable way. If
30072 +### /etc/MACHINES doesn't say anything about version numbers, be
30073 +### prepared to handle anything reasonably. If version numbers
30074 +### matter, be sure /etc/MACHINES says something about it.
30076 +### Eric Raymond says we should accept strings like "sysvr4" to mean
30077 +### "System V Release 4"; he writes, "The old convention encouraged
30078 +### confusion between `system' and `release' levels'."
30080 +machine='' opsys='' unported=no
30081 +case "${canonical}" in
30086 + case "${canonical}" in
30087 + alpha*-*-netbsd*) machine=alpha ;;
30088 + i[3456]86-*-netbsd*) machine=intel386 ;;
30090 + # This is somewhat bogus.
30091 + machine=hp9000s300 ;;
30092 + powerpc-apple-netbsd*) machine=macppc ;;
30093 + mips-*-netbsd*) machine=pmax ;;
30094 + mipsel-*-netbsd*) machine=pmax ;;
30095 + ns32k-*-netbsd*) machine=ns32000 ;;
30096 + powerpc-*-netbsd*) machine=macppc ;;
30097 + sparc*-*-netbsd*) machine=sparc ;;
30098 + vax-*-netbsd*) machine=vax ;;
30099 + arm-*-netbsd*) machine=arm ;;
30106 + case "${canonical}" in
30107 + alpha*-*-openbsd*) machine=alpha ;;
30108 + i386-*-openbsd*) machine=intel386 ;;
30109 + m68k-*-openbsd*) machine=hp9000s300 ;;
30110 + mipsel-*-openbsd*) machine=pmax ;;
30111 + ns32k-*-openbsd*) machine=ns32000 ;;
30112 + sparc-*-openbsd*) machine=sparc ;;
30113 + vax-*-openbsd*) machine=vax ;;
30118 + arm-acorn-riscix1.1* )
30119 + machine=acorn opsys=riscix1-1
30121 + arm-acorn-riscix1.2* | arm-acorn-riscix )
30122 + ## This name is riscix12 instead of riscix1.2
30123 + ## to avoid a file name conflict on MSDOS.
30124 + machine=acorn opsys=riscix12
30130 + case "${canonical}" in
30131 + i[345]86-*-bsdi*) machine=intel386 ;;
30132 + sparc-*-bsdi*) machine=sparc ;;
30133 + powerpc-*-bsdi*) machine=macppc ;;
30135 + case "${canonical}" in
30136 + *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
30137 + *-*-bsdi2.0* ) opsys=bsdos2 ;;
30138 + *-*-bsdi2* ) opsys=bsdos2-1 ;;
30139 + *-*-bsdi3* ) opsys=bsdos3 ;;
30140 + *-*-bsdi[45]* ) opsys=bsdos4 ;;
30144 + ## Alliant machines
30145 + ## Strictly speaking, we need the version of the alliant operating
30146 + ## system to choose the right machine file, but currently the
30147 + ## configuration name doesn't tell us enough to choose the right
30148 + ## one; we need to give alliants their own operating system name to
30149 + ## do this right. When someone cares, they can help us.
30151 + machine=alliant4 opsys=bsd4-2
30154 + machine=alliant-2800 opsys=bsd4-3
30157 + ## Alpha (DEC) machines.
30158 + alpha*-dec-osf* )
30159 + machine=alpha opsys=osf1
30160 + # This is needed to find X11R6.1 libraries for certain tests.
30161 + NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
30162 + GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
30163 + # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
30164 + # due to non-traditional preprocessing with the current compiler
30165 + # defaults. OSF 4 can also have that compiler version, and there
30166 + # seems always to have been a usable /usr/bin/cpp.
30167 + NON_GNU_CPP=/usr/bin/cpp
30168 + case "${canonical}" in
30169 + alpha*-dec-osf[5-9]*)
30174 + alpha*-*-linux-gnu* )
30175 + machine=alpha opsys=gnu-linux
30178 + arm*-*-linux-gnu* )
30179 + machine=arm opsys=gnu-linux
30183 + powerpc-*-linux* )
30184 + machine=macppc opsys=gnu-linux
30188 + m68*-altos-sysv* )
30189 + machine=altos opsys=usg5-2
30193 + 580-amdahl-sysv* )
30194 + machine=amdahl opsys=usg5-2-2
30197 + ## Apollo, Domain/OS
30199 + machine=apollo opsys=bsd4-3
30202 + ## AT&T 3b2, 3b5, 3b15, 3b20
30203 + we32k-att-sysv* )
30204 + machine=att3b opsys=usg5-2-2
30207 + ## AT&T 3b1 - The Mighty Unix PC!
30209 + machine=7300 opsys=usg5-2-2
30213 + rs6000-bull-bosx* )
30214 + machine=ibmrs6000 opsys=aix3-2
30218 + m68*-bull-sysv3* )
30219 + machine=dpx2 opsys=usg5-3
30223 + m68*-bull-sysv2* )
30224 + machine=sps7 opsys=usg5-2
30227 + ## CCI 5/32, 6/32 -- see "Tahoe".
30230 + ## I don't know what configuration name to use for this; config.sub
30231 + ## doesn't seem to know anything about it. Hey, Celerity users, get
30232 + ## in touch with us!
30233 + celerity-celerity-bsd* )
30234 + machine=celerity opsys=bsd4-2
30238 + ## What operating systems does this chip run that Emacs has been
30242 + ## We'll use the catch-all code at the bottom to guess the
30243 + ## operating system.
30247 + *-convex-bsd* | *-convex-convexos* )
30248 + machine=convex opsys=bsd4-3
30249 + ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
30250 + NON_GNU_CPP="cc -E -P"
30254 + i[3456]86-cubix-sysv* )
30255 + machine=intel386 opsys=usg5-3
30259 + cydra*-cydrome-sysv* )
30260 + machine=cydra5 opsys=usg5-3
30263 + ## Data General AViiON Machines
30264 + ## DG changed naming conventions with the release of 5.4.4.10, they
30265 + ## dropped the initial 5.4 but left the intervening R. Because of the
30266 + ## R this shouldn't conflict with older versions of the OS (which I
30267 + ## think were named like dgux4.*). In addition, DG new AViiONs series
30268 + ## uses either Motorola M88k or Intel Pentium CPUs.
30269 + m88k-dg-dguxR4.* | m88k-dg-dgux4* )
30270 + machine=aviion opsys=dgux4
30272 + m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
30273 + ## This name is dgux5-4-3 instead of dgux5-4r3
30274 + ## to avoid a file name conflict on MSDOS.
30275 + machine=aviion opsys=dgux5-4-3
30277 + m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
30278 + machine=aviion opsys=dgux5-4r2
30281 + machine=aviion opsys=dgux
30284 + ## Data General AViiON Intel (x86) Machines
30285 + ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
30286 + ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
30287 + i[345]86-dg-dguxR4* )
30288 + machine=aviion-intel opsys=dgux4
30292 + mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
30293 + machine=pmax opsys=bsd4-2
30295 + mips-dec-ultrix4.[12]* | mips-dec-bsd* )
30296 + machine=pmax opsys=bsd4-3
30298 + mips-dec-ultrix* )
30299 + machine=pmax opsys=ultrix4-3
30302 + machine=pmax opsys=osf1
30304 + mips-dec-mach_bsd4.3* )
30305 + machine=pmax opsys=mach-bsd4-3
30308 + ## Motorola Delta machines
30309 + m68k-motorola-sysv* | m68000-motorola-sysv* )
30310 + machine=delta opsys=usg5-3
30311 + if test -z "`type gnucc | grep 'not found'`"
30313 + if test -s /etc/167config
30314 + then CC="gnucc -m68040"
30315 + else CC="gnucc -m68881"
30318 + if test -z "`type gcc | grep 'not found'`"
30324 + m88k-motorola-sysv4* )
30325 + # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
30326 + # needs POSIX_SIGNALS and therefore needs usg5-4-2.
30327 + # I hope there are not other 4.0 versions for this machine
30328 + # which really need usg5-4 instead.
30329 + machine=delta88k opsys=usg5-4-2
30331 + m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
30332 + machine=delta88k opsys=usg5-3
30336 + m68*-dual-sysv* )
30337 + machine=dual opsys=usg5-2
30339 + m68*-dual-uniplus* )
30340 + machine=dual opsys=unipl5-2
30344 + elxsi-elxsi-sysv* )
30345 + machine=elxsi opsys=usg5-2
30348 + ## Encore machines
30349 + ns16k-encore-bsd* )
30350 + machine=ns16000 opsys=umax
30353 + ## The GEC 63 - apparently, this port isn't really finished yet.
30354 + # I'm sure we finished off the last of the machines, though. -- fx
30356 + ## Gould Power Node and NP1
30357 + pn-gould-bsd4.2* )
30358 + machine=gould opsys=bsd4-2
30360 + pn-gould-bsd4.3* )
30361 + machine=gould opsys=bsd4-3
30364 + machine=gould-np1 opsys=bsd4-3
30367 + ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
30368 + ## as far as Emacs is concerned).
30369 + m88k-harris-cxux* )
30370 + # Build needs to be different on 7.0 and later releases
30371 + case "`uname -r`" in
30372 + [56].[0-9] ) machine=nh4000 opsys=cxux ;;
30373 + [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
30375 + NON_GNU_CPP="/lib/cpp"
30377 + ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
30378 + m68k-harris-cxux* )
30379 + machine=nh3000 opsys=cxux
30381 + ## Harris power pc NightHawk running Power UNIX (Series 6000)
30382 + powerpc-harris-powerunix )
30383 + machine=nh6000 opsys=powerunix
30384 + NON_GNU_CPP="cc -Xo -E -P"
30386 + ## SR2001/SR2201 running HI-UX/MPP
30387 + hppa1.1-hitachi-hiuxmpp* )
30388 + machine=sr2k opsys=hiuxmpp
30390 + hppa1.1-hitachi-hiuxwe2* )
30391 + machine=sr2k opsys=hiuxwe2
30393 + ## Honeywell XPS100
30394 + xps*-honeywell-sysv* )
30395 + machine=xps100 opsys=usg5-2
30398 + ## HP 9000 series 200 or 300
30400 + machine=hp9000s300 opsys=bsd4-3
30402 + ## HP/UX 7, 8, 9, and 10 are supported on these machines.
30404 + case "`uname -r`" in
30405 + ## Someone's system reports A.B8.05 for this.
30406 + ## I wonder what other possibilities there are.
30407 + *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
30408 + *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
30409 + *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
30410 + *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
30411 + *) machine=hp9000s300 opsys=hpux ;;
30415 + ## HP 9000 series 700 and 800, running HP/UX
30416 + hppa*-hp-hpux7* )
30417 + machine=hp800 opsys=hpux
30419 + hppa*-hp-hpux8* )
30420 + machine=hp800 opsys=hpux8
30422 + hppa*-hp-hpux9shr* )
30423 + machine=hp800 opsys=hpux9shr
30425 + hppa*-hp-hpux9* )
30426 + machine=hp800 opsys=hpux9
30429 + hppa*-hp-hpux10.2* )
30430 + machine=hp800 opsys=hpux10-20
30433 + hppa*-hp-hpux10* )
30434 + machine=hp800 opsys=hpux10
30437 + hppa*-hp-hpux1[1-9]* )
30438 + machine=hp800 opsys=hpux11
30441 + ## HP 9000 series 700 and 800, running HP/UX
30443 + ## Cross-compilation? Nah!
30444 + case "`uname -r`" in
30445 + ## Someone's system reports A.B8.05 for this.
30446 + ## I wonder what other possibilities there are.
30447 + *.B8.* ) machine=hp800 opsys=hpux8 ;;
30448 + *.08.* ) machine=hp800 opsys=hpux8 ;;
30449 + *.09.* ) machine=hp800 opsys=hpux9 ;;
30450 + *) machine=hp800 opsys=hpux10 ;;
30453 + hppa*-*-nextstep* )
30454 + machine=hp800 opsys=nextstep
30456 + hppa*-*-linux-gnu* )
30457 + machine=hp800 opsys=gnu-linux
30460 + ## Orion machines
30461 + orion-orion-bsd* )
30462 + machine=orion opsys=bsd4-2
30464 + clipper-orion-bsd* )
30465 + machine=orion105 opsys=bsd4-2
30469 + i[3456]86-ibm-aix1.1* )
30470 + machine=ibmps2-aix opsys=usg5-2-2
30472 + i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
30473 + machine=ibmps2-aix opsys=usg5-3
30476 + machine=ibm370aix opsys=usg5-3
30478 + s390-*-linux-gnu)
30479 + machine=ibms390 opsys=gnu-linux
30481 + rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
30482 + machine=ibmrs6000 opsys=aix3-1
30484 + rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
30485 + machine=ibmrs6000 opsys=aix3-2-5
30487 + rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
30488 + machine=ibmrs6000 opsys=aix4-1
30490 + rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
30491 + machine=ibmrs6000 opsys=aix4-2
30493 + rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
30494 + machine=ibmrs6000 opsys=aix4-2
30496 + rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
30497 + machine=ibmrs6000 opsys=aix4
30499 + rs6000-ibm-aix4* | powerpc-ibm-aix4* )
30500 + machine=ibmrs6000 opsys=aix4-1
30502 + rs6000-ibm-aix* | powerpc-ibm-aix* )
30503 + machine=ibmrs6000 opsys=aix3-2
30505 + romp-ibm-bsd4.3* )
30506 + machine=ibmrt opsys=bsd4-3
30508 + romp-ibm-bsd4.2* )
30509 + machine=ibmrt opsys=bsd4-2
30511 + romp-ibm-aos4.3* )
30512 + machine=ibmrt opsys=bsd4-3
30514 + romp-ibm-aos4.2* )
30515 + machine=ibmrt opsys=bsd4-2
30518 + machine=ibmrt opsys=bsd4-3
30521 + machine=ibmrt opsys=bsd4-3
30524 + machine=ibmrt-aix opsys=usg5-2-2
30527 + s390*-*-linux-gnu* )
30528 + machine=s390 opsys=gnu-linux
30531 + ## Integrated Solutions `Optimum V'
30532 + m68*-isi-bsd4.2* )
30533 + machine=isi-ov opsys=bsd4-2
30535 + m68*-isi-bsd4.3* )
30536 + machine=isi-ov opsys=bsd4-3
30539 + ## Intel 386 machines where we do care about the manufacturer
30540 + i[3456]86-intsys-sysv* )
30541 + machine=is386 opsys=usg5-2-2
30545 + i[3456]86-prime-sysv* )
30546 + machine=i386 opsys=usg5-3
30549 + ## Sequent Symmetry running Dynix
30550 + i[3456]86-sequent-bsd* )
30551 + machine=symmetry opsys=bsd4-3
30554 + ## Sequent Symmetry running ptx 4, which is a modified SVR4.
30555 + i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
30556 + machine=sequent-ptx opsys=ptx4
30557 + NON_GNU_CPP=/lib/cpp
30560 + ## Sequent Symmetry running DYNIX/ptx
30561 + ## Use the old cpp rather than the newer ANSI one.
30562 + i[3456]86-sequent-ptx* )
30563 + machine=sequent-ptx opsys=ptx
30564 + NON_GNU_CPP="/lib/cpp"
30567 + ## ncr machine running svr4.3.
30568 + i[3456]86-ncr-sysv4.3 )
30569 + machine=ncr386 opsys=usg5-4-3
30572 + ## Unspecified sysv on an ncr machine defaults to svr4.2.
30573 + ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
30574 + i[3456]86-ncr-sysv* )
30575 + machine=ncr386 opsys=usg5-4-2
30578 + ## Intel Paragon OSF/1
30579 + i860-intel-osf1* )
30580 + machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
30585 + machine=i860 opsys=usg5-4
30586 + NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
30587 + NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
30590 + ## Macintosh PowerPC
30591 + powerpc*-*-linux-gnu* )
30592 + machine=macppc opsys=gnu-linux
30595 + ## Masscomp machines
30596 + m68*-masscomp-rtu* )
30597 + machine=masscomp opsys=rtu
30600 + ## Megatest machines
30601 + m68*-megatest-bsd* )
30602 + machine=mega68 opsys=bsd4-2
30605 + ## Workstations sold by MIPS
30606 + ## This is not necessarily all workstations using the MIPS processor -
30607 + ## Irises are produced by SGI, and DECstations by DEC.
30609 + ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
30610 + ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
30611 + ## it gives for choosing between the alternatives seems to be "Use
30612 + ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
30613 + ## the BSD world." I'll assume that these are instructions for
30614 + ## handling two odd situations, and that every other situation
30615 + ## should use mips.h and usg5-2-2, they being listed first.
30618 + ## Fall through to the general code at the bottom to decide on the OS.
30620 + mips-mips-riscos4* )
30621 + machine=mips4 opsys=bsd4-3
30622 + NON_GNU_CC="cc -systype bsd43"
30623 + NON_GNU_CPP="cc -systype bsd43 -E"
30625 + mips-mips-riscos5* )
30626 + machine=mips4 opsys=riscos5
30627 + NON_GNU_CC="cc -systype bsd43"
30628 + NON_GNU_CPP="cc -systype bsd43 -E"
30631 + machine=mips opsys=bsd4-3
30634 + machine=mips opsys=usg5-2-2
30638 + m68*-next-* | m68k-*-nextstep* )
30639 + machine=m68k opsys=nextstep
30642 + ## The complete machine from National Semiconductor
30643 + ns32k-ns-genix* )
30644 + machine=ns32000 opsys=usg5-2
30648 + m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
30649 + machine=tower32 opsys=usg5-2-2
30651 + m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
30652 + machine=tower32v3 opsys=usg5-3
30657 + machine=ews4800 opsys=ux4800
30660 + ## Nixdorf Targon 31
30661 + m68*-nixdorf-sysv* )
30662 + machine=targon31 opsys=usg5-2-2
30665 + ## Nu (TI or LMI)
30667 + machine=nu opsys=usg5-2
30671 + m68*-plexus-sysv* )
30672 + machine=plexus opsys=usg5-2
30675 + ## PowerPC reference platform
30676 + powerpcle-*-solaris2* )
30681 + ## Pyramid machines
30682 + ## I don't really have any idea what sort of processor the Pyramid has,
30683 + ## so I'm assuming it is its own architecture.
30684 + pyramid-pyramid-bsd* )
30685 + machine=pyramid opsys=bsd4-2
30688 + ## Sequent Balance
30689 + ns32k-sequent-bsd4.2* )
30690 + machine=sequent opsys=bsd4-2
30692 + ns32k-sequent-bsd4.3* )
30693 + machine=sequent opsys=bsd4-3
30696 + ## Siemens Nixdorf
30697 + mips-siemens-sysv* | mips-sni-sysv*)
30698 + machine=mips-siemens opsys=usg5-4
30699 + NON_GNU_CC=/usr/ccs/bin/cc
30700 + NON_GNU_CPP=/usr/ccs/lib/cpp
30703 + ## Silicon Graphics machines
30704 + ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
30705 + m68*-sgi-iris3.5* )
30706 + machine=irist opsys=iris3-5
30708 + m68*-sgi-iris3.6* | m68*-sgi-iris*)
30709 + machine=irist opsys=iris3-6
30712 + mips-sgi-irix3* )
30713 + machine=iris4d opsys=irix3-3
30715 + mips-sgi-irix4* )
30716 + machine=iris4d opsys=irix4-0
30718 + mips-sgi-irix6.5 )
30719 + machine=iris4d opsys=irix6-5
30720 + # Without defining _LANGUAGE_C, things get masked out in the headers
30721 + # so that, for instance, grepping for `free' in stdlib.h fails and
30722 + # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
30723 + NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
30724 + NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
30726 + mips-sgi-irix6* )
30727 + machine=iris4d opsys=irix6-0
30728 + # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
30729 + # but presumably it does no harm.
30730 + NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
30731 + # -32 probably isn't necessary in later v.6s -- anyone know which?
30732 + NON_GCC_TEST_OPTIONS=-32
30734 + mips-sgi-irix5.[01]* )
30735 + machine=iris4d opsys=irix5-0
30737 + mips-sgi-irix5* | mips-sgi-irix* )
30738 + machine=iris4d opsys=irix5-2
30742 + m68*-sony-bsd4.2* )
30743 + machine=news opsys=bsd4-2
30745 + m68*-sony-bsd4.3* )
30746 + machine=news opsys=bsd4-3
30748 + m68*-sony-newsos3* | m68*-sony-news3*)
30749 + machine=news opsys=bsd4-3
30751 + mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
30752 + machine=news-risc opsys=bsd4-3
30754 + mips-sony-newsos6* )
30755 + machine=news-r6 opsys=newsos6
30757 + mips-sony-news* )
30758 + machine=news-risc opsys=newsos5
30762 + m68*-stride-sysv* )
30763 + machine=stride opsys=usg5-2
30767 + sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
30768 + machine=sparc opsys=gnu-linux
30771 + *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
30772 + | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
30773 + | rs6000-*-solaris2*)
30774 + case "${canonical}" in
30775 + m68*-sunos1* ) machine=sun1 ;;
30776 + m68*-sunos2* ) machine=sun2 ;;
30777 + m68* ) machine=sun3 ;;
30778 + i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
30779 + i[3456]86-*-* ) machine=intel386 ;;
30780 + powerpcle* ) machine=powerpcle ;;
30781 + powerpc* | rs6000* ) machine=ibmrs6000 ;;
30782 + sparc* ) machine=sparc ;;
30783 + * ) unported=yes ;;
30785 + case "${canonical}" in
30786 + ## The Sun386 didn't get past 4.0.
30787 + i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
30788 + *-sunos4.0* ) opsys=sunos4-0 ;;
30789 + *-sunos4.1.[3-9]*noshare )
30790 + ## This name is sunos413 instead of sunos4-1-3
30791 + ## to avoid a file name conflict on MSDOS.
30793 + NON_GNU_CPP=/usr/lib/cpp
30794 + NON_GCC_TEST_OPTIONS=-Bstatic
30795 + GCC_TEST_OPTIONS=-static
30797 + *-sunos4.1.[3-9]* | *-sunos4shr*)
30799 + NON_GNU_CPP=/usr/lib/cpp
30801 + *-sunos4* | *-sunos )
30803 + NON_GCC_TEST_OPTIONS=-Bstatic
30804 + GCC_TEST_OPTIONS=-static
30806 + *-sunos5.3* | *-solaris2.3* )
30808 + NON_GNU_CPP=/usr/ccs/lib/cpp
30810 + *-sunos5.4* | *-solaris2.4* )
30812 + NON_GNU_CPP=/usr/ccs/lib/cpp
30815 + *-sunos5.5* | *-solaris2.5* )
30817 + NON_GNU_CPP=/usr/ccs/lib/cpp
30820 + *-sunos5* | *-solaris* )
30822 + NON_GNU_CPP=/usr/ccs/lib/cpp
30824 + * ) opsys=bsd4-2 ;;
30826 + ## Watch out for a compiler that we know will not work.
30827 + case "${canonical}" in
30828 + *-solaris* | *-sunos5* )
30829 + if [ "x$CC" = x/usr/ucb/cc ]; then
30830 + ## /usr/ucb/cc doesn't work;
30831 + ## we should find some other compiler that does work.
30838 + sparc-*-nextstep* )
30839 + machine=sparc opsys=nextstep
30843 + m68*-tadpole-sysv* )
30844 + machine=tad68k opsys=usg5-3
30847 + ## Tahoe machines
30848 + tahoe-tahoe-bsd4.2* )
30849 + machine=tahoe opsys=bsd4-2
30851 + tahoe-tahoe-bsd4.3* )
30852 + machine=tahoe opsys=bsd4-3
30855 + ## Tandem Integrity S2
30856 + mips-tandem-sysv* )
30857 + machine=tandem-s2 opsys=usg5-3
30860 + ## Tektronix XD88
30861 + m88k-tektronix-sysv3* )
30862 + machine=tekxd88 opsys=usg5-3
30865 + ## Tektronix 16000 box (6130?)
30866 + ns16k-tektronix-bsd* )
30867 + machine=ns16000 opsys=bsd4-2
30869 + ## Tektronix 4300
30870 + ## src/m/tek4300.h hints that this is a m68k machine.
30871 + m68*-tektronix-bsd* )
30872 + machine=tek4300 opsys=bsd4-3
30875 + ## Titan P2 or P3
30876 + ## We seem to have lost the machine-description file titan.h!
30877 + titan-titan-sysv* )
30878 + machine=titan opsys=usg5-3
30881 + ## Ustation E30 (SS5E)
30882 + m68*-unisys-uniplus* )
30883 + machine=ustation opsystem=unipl5-2
30889 + case "${canonical}" in
30890 + *-bsd4.1* ) opsys=bsd4-1 ;;
30891 + *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
30892 + *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
30893 + *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
30894 + *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
30895 + *-vms* ) opsys=vms ;;
30900 + ## Whitechapel MG1
30901 + ns16k-whitechapel-* )
30903 + ## We don't know what sort of OS runs on these; we'll let the
30904 + ## operating system guessing code below try.
30908 + m68*-wicat-sysv* )
30909 + machine=wicat opsys=usg5-2
30914 + machine=ia64 opsys=gnu-linux
30917 + ## Intel 386 machines where we don't care about the manufacturer
30920 + case "${canonical}" in
30921 + *-lynxos* ) opsys=lynxos ;;
30922 + *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
30923 + *-isc2.2* ) opsys=isc2-2 ;;
30924 + *-isc4.0* ) opsys=isc4-0 ;;
30925 + *-isc4.* ) opsys=isc4-1
30926 + GCC_TEST_OPTIONS=-posix
30927 + NON_GCC_TEST_OPTIONS=-Xp
30929 + *-isc* ) opsys=isc3-0 ;;
30930 + *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
30931 + *-esix* ) opsys=esix ;;
30932 + *-xenix* ) opsys=xenix ;;
30933 + *-linux-gnu* ) opsys=gnu-linux ;;
30934 + *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
30935 + *-sco3.2v5* ) opsys=sco5
30936 + NON_GNU_CPP=/lib/cpp
30937 + # Prevent -belf from being passed to $CPP.
30938 + # /lib/cpp does not accept it.
30939 + OVERRIDE_CPPFLAGS=" "
30941 + *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
30942 + *-386bsd* ) opsys=386bsd ;;
30943 + *-freebsd* ) opsys=freebsd ;;
30944 + *-nextstep* ) opsys=nextstep ;;
30945 + ## Otherwise, we'll fall through to the generic opsys code at the bottom.
30949 + ## m68k Linux-based GNU system
30950 + m68k-*-linux-gnu* )
30951 + machine=m68k opsys=gnu-linux
30954 + ## Mips Linux-based GNU system
30955 + mips-*-linux-gnu* | mipsel-*-linux-gnu* )
30956 + machine=mips opsys=gnu-linux
30959 + ## Mipsel (little endian) Linux-based GNU system
30960 + mipsel-*-linux-gnu* )
30961 + machine=mipsel opsys=gnu-linux
30965 + sparc-fujitsu-sysv4* )
30966 + machine=sparc opsys=uxpds
30967 + NON_GNU_CPP=/usr/ccs/lib/cpp
30972 + f301-fujitsu-uxpv4.1)
30973 + machine=f301 opsys=uxpv
30976 + ## AMD x86-64 Linux-based GNU system
30977 + x86_64-*-linux-gnu* )
30978 + machine=amdx86-64 opsys=gnu-linux
30986 +### If the code above didn't choose an operating system, just choose
30987 +### an operating system based on the configuration name. You really
30988 +### only want to use this when you have no idea what the right
30989 +### operating system is; if you know what operating systems a machine
30990 +### runs, it's cleaner to make it explicit in the case statement
30992 +if test x"${opsys}" = x; then
30993 + case "${canonical}" in
30994 + *-gnu* ) opsys=gnu ;;
30995 + *-bsd4.[01] ) opsys=bsd4-1 ;;
30996 + *-bsd4.2 ) opsys=bsd4-2 ;;
30997 + *-bsd4.3 ) opsys=bsd4-3 ;;
30998 + *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
30999 + *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
31000 + *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
31001 + *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
31002 + *-sysv4.2uw* ) opsys=unixware ;;
31003 + *-sysv4.1* | *-sysvr4.1* )
31004 + NON_GNU_CPP=/usr/lib/cpp
31006 + *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
31007 + if [ x$NON_GNU_CPP = x ]; then
31008 + if [ -f /usr/ccs/lib/cpp ]; then
31009 + NON_GNU_CPP=/usr/ccs/lib/cpp
31011 + NON_GNU_CPP=/lib/cpp
31014 + opsys=usg5-4-2 ;;
31015 + *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
31023 +if test $unported = yes; then
31024 + { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
31025 +Check \`etc/MACHINES' for recognized configuration names." >&5
31026 +echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
31027 +Check \`etc/MACHINES' for recognized configuration names." >&2;}
31028 + { (exit 1); exit 1; }; }
31031 +machfile="m/${machine}.h"
31032 +opsysfile="s/${opsys}.h"
31035 +#### Choose a compiler.
31036 +test -n "$CC" && cc_specified=yes
31038 +# Save the value of CFLAGS that the user specified.
31039 +SPECIFIED_CFLAGS="$CFLAGS"
31041 +case ${with_gcc} in
31042 + "yes" ) CC="gcc" GCC=yes ;;
31043 + "no" ) : ${CC=cc} ;;
31045 +ac_cpp='$CPP $CPPFLAGS'
31046 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31047 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31048 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
31049 +if test -n "$ac_tool_prefix"; then
31050 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
31051 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
31052 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31053 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31054 +if test "${ac_cv_prog_CC+set}" = set; then
31055 + echo $ECHO_N "(cached) $ECHO_C" >&6
31057 + if test -n "$CC"; then
31058 + ac_cv_prog_CC="$CC" # Let the user override the test.
31060 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31061 +for as_dir in $PATH
31064 + test -z "$as_dir" && as_dir=.
31065 + for ac_exec_ext in '' $ac_executable_extensions; do
31066 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31067 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
31068 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31077 +if test -n "$CC"; then
31078 + echo "$as_me:$LINENO: result: $CC" >&5
31079 +echo "${ECHO_T}$CC" >&6
31081 + echo "$as_me:$LINENO: result: no" >&5
31082 +echo "${ECHO_T}no" >&6
31086 +if test -z "$ac_cv_prog_CC"; then
31088 + # Extract the first word of "gcc", so it can be a program name with args.
31089 +set dummy gcc; ac_word=$2
31090 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31091 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31092 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
31093 + echo $ECHO_N "(cached) $ECHO_C" >&6
31095 + if test -n "$ac_ct_CC"; then
31096 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31098 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31099 +for as_dir in $PATH
31102 + test -z "$as_dir" && as_dir=.
31103 + for ac_exec_ext in '' $ac_executable_extensions; do
31104 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31105 + ac_cv_prog_ac_ct_CC="gcc"
31106 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31114 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
31115 +if test -n "$ac_ct_CC"; then
31116 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
31117 +echo "${ECHO_T}$ac_ct_CC" >&6
31119 + echo "$as_me:$LINENO: result: no" >&5
31120 +echo "${ECHO_T}no" >&6
31125 + CC="$ac_cv_prog_CC"
31128 +if test -z "$CC"; then
31129 + if test -n "$ac_tool_prefix"; then
31130 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
31131 +set dummy ${ac_tool_prefix}cc; ac_word=$2
31132 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31133 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31134 +if test "${ac_cv_prog_CC+set}" = set; then
31135 + echo $ECHO_N "(cached) $ECHO_C" >&6
31137 + if test -n "$CC"; then
31138 + ac_cv_prog_CC="$CC" # Let the user override the test.
31140 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31141 +for as_dir in $PATH
31144 + test -z "$as_dir" && as_dir=.
31145 + for ac_exec_ext in '' $ac_executable_extensions; do
31146 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31147 + ac_cv_prog_CC="${ac_tool_prefix}cc"
31148 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31157 +if test -n "$CC"; then
31158 + echo "$as_me:$LINENO: result: $CC" >&5
31159 +echo "${ECHO_T}$CC" >&6
31161 + echo "$as_me:$LINENO: result: no" >&5
31162 +echo "${ECHO_T}no" >&6
31166 +if test -z "$ac_cv_prog_CC"; then
31168 + # Extract the first word of "cc", so it can be a program name with args.
31169 +set dummy cc; ac_word=$2
31170 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31171 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31172 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
31173 + echo $ECHO_N "(cached) $ECHO_C" >&6
31175 + if test -n "$ac_ct_CC"; then
31176 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31178 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31179 +for as_dir in $PATH
31182 + test -z "$as_dir" && as_dir=.
31183 + for ac_exec_ext in '' $ac_executable_extensions; do
31184 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31185 + ac_cv_prog_ac_ct_CC="cc"
31186 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31194 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
31195 +if test -n "$ac_ct_CC"; then
31196 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
31197 +echo "${ECHO_T}$ac_ct_CC" >&6
31199 + echo "$as_me:$LINENO: result: no" >&5
31200 +echo "${ECHO_T}no" >&6
31205 + CC="$ac_cv_prog_CC"
31209 +if test -z "$CC"; then
31210 + # Extract the first word of "cc", so it can be a program name with args.
31211 +set dummy cc; ac_word=$2
31212 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31213 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31214 +if test "${ac_cv_prog_CC+set}" = set; then
31215 + echo $ECHO_N "(cached) $ECHO_C" >&6
31217 + if test -n "$CC"; then
31218 + ac_cv_prog_CC="$CC" # Let the user override the test.
31220 + ac_prog_rejected=no
31221 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31222 +for as_dir in $PATH
31225 + test -z "$as_dir" && as_dir=.
31226 + for ac_exec_ext in '' $ac_executable_extensions; do
31227 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31228 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
31229 + ac_prog_rejected=yes
31232 + ac_cv_prog_CC="cc"
31233 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31239 +if test $ac_prog_rejected = yes; then
31240 + # We found a bogon in the path, so make sure we never use it.
31241 + set dummy $ac_cv_prog_CC
31243 + if test $# != 0; then
31244 + # We chose a different compiler from the bogus one.
31245 + # However, it has the same basename, so the bogon will be chosen
31246 + # first if we set CC to just the basename; use the full file name.
31248 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
31254 +if test -n "$CC"; then
31255 + echo "$as_me:$LINENO: result: $CC" >&5
31256 +echo "${ECHO_T}$CC" >&6
31258 + echo "$as_me:$LINENO: result: no" >&5
31259 +echo "${ECHO_T}no" >&6
31263 +if test -z "$CC"; then
31264 + if test -n "$ac_tool_prefix"; then
31265 + for ac_prog in cl
31267 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31268 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31269 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31270 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31271 +if test "${ac_cv_prog_CC+set}" = set; then
31272 + echo $ECHO_N "(cached) $ECHO_C" >&6
31274 + if test -n "$CC"; then
31275 + ac_cv_prog_CC="$CC" # Let the user override the test.
31277 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31278 +for as_dir in $PATH
31281 + test -z "$as_dir" && as_dir=.
31282 + for ac_exec_ext in '' $ac_executable_extensions; do
31283 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31284 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
31285 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31294 +if test -n "$CC"; then
31295 + echo "$as_me:$LINENO: result: $CC" >&5
31296 +echo "${ECHO_T}$CC" >&6
31298 + echo "$as_me:$LINENO: result: no" >&5
31299 +echo "${ECHO_T}no" >&6
31302 + test -n "$CC" && break
31305 +if test -z "$CC"; then
31307 + for ac_prog in cl
31309 + # Extract the first word of "$ac_prog", so it can be a program name with args.
31310 +set dummy $ac_prog; ac_word=$2
31311 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31312 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31313 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
31314 + echo $ECHO_N "(cached) $ECHO_C" >&6
31316 + if test -n "$ac_ct_CC"; then
31317 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31319 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31320 +for as_dir in $PATH
31323 + test -z "$as_dir" && as_dir=.
31324 + for ac_exec_ext in '' $ac_executable_extensions; do
31325 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31326 + ac_cv_prog_ac_ct_CC="$ac_prog"
31327 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31335 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
31336 +if test -n "$ac_ct_CC"; then
31337 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
31338 +echo "${ECHO_T}$ac_ct_CC" >&6
31340 + echo "$as_me:$LINENO: result: no" >&5
31341 +echo "${ECHO_T}no" >&6
31344 + test -n "$ac_ct_CC" && break
31353 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
31354 +See \`config.log' for more details." >&5
31355 +echo "$as_me: error: no acceptable C compiler found in \$PATH
31356 +See \`config.log' for more details." >&2;}
31357 + { (exit 1); exit 1; }; }
31359 +# Provide some information about the compiler.
31360 +echo "$as_me:$LINENO:" \
31361 + "checking for C compiler version" >&5
31362 +ac_compiler=`set X $ac_compile; echo $2`
31363 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
31364 + (eval $ac_compiler --version </dev/null >&5) 2>&5
31366 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 + (exit $ac_status); }
31368 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
31369 + (eval $ac_compiler -v </dev/null >&5) 2>&5
31371 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 + (exit $ac_status); }
31373 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
31374 + (eval $ac_compiler -V </dev/null >&5) 2>&5
31376 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 + (exit $ac_status); }
31379 +cat >conftest.$ac_ext <<_ACEOF
31382 +cat confdefs.h >>conftest.$ac_ext
31383 +cat >>conftest.$ac_ext <<_ACEOF
31384 +/* end confdefs.h. */
31394 +ac_clean_files_save=$ac_clean_files
31395 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
31396 +# Try to create an executable without -o first, disregard a.out.
31397 +# It will help us diagnose broken compilers, and finding out an intuition
31399 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
31400 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
31401 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
31402 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
31403 + (eval $ac_link_default) 2>&5
31405 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 + (exit $ac_status); }; then
31407 + # Find the output, starting from the most likely. This scheme is
31408 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
31411 +# Be careful to initialize this variable, since it used to be cached.
31412 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
31414 +# b.out is created by i960 compilers.
31415 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
31417 + test -f "$ac_file" || continue
31419 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
31421 + conftest.$ac_ext )
31422 + # This is the source file.
31425 + # We found the default executable, but exeext='' is most
31426 + # certainly right.
31429 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31430 + # FIXME: I believe we export ac_cv_exeext for Libtool,
31431 + # but it would be cool to find out if it's true. Does anybody
31432 + # maintain Libtool? --akim.
31433 + export ac_cv_exeext
31440 + echo "$as_me: failed program was:" >&5
31441 +sed 's/^/| /' conftest.$ac_ext >&5
31443 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
31444 +See \`config.log' for more details." >&5
31445 +echo "$as_me: error: C compiler cannot create executables
31446 +See \`config.log' for more details." >&2;}
31447 + { (exit 77); exit 77; }; }
31450 +ac_exeext=$ac_cv_exeext
31451 +echo "$as_me:$LINENO: result: $ac_file" >&5
31452 +echo "${ECHO_T}$ac_file" >&6
31454 +# Check the compiler produces executables we can run. If not, either
31455 +# the compiler is broken, or we cross compile.
31456 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
31457 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
31458 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
31459 +# If not cross compiling, check that we can run a simple program.
31460 +if test "$cross_compiling" != yes; then
31461 + if { ac_try='./$ac_file'
31462 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31463 + (eval $ac_try) 2>&5
31465 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 + (exit $ac_status); }; }; then
31467 + cross_compiling=no
31469 + if test "$cross_compiling" = maybe; then
31470 + cross_compiling=yes
31472 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
31473 +If you meant to cross compile, use \`--host'.
31474 +See \`config.log' for more details." >&5
31475 +echo "$as_me: error: cannot run C compiled programs.
31476 +If you meant to cross compile, use \`--host'.
31477 +See \`config.log' for more details." >&2;}
31478 + { (exit 1); exit 1; }; }
31482 +echo "$as_me:$LINENO: result: yes" >&5
31483 +echo "${ECHO_T}yes" >&6
31485 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
31486 +ac_clean_files=$ac_clean_files_save
31487 +# Check the compiler produces executables we can run. If not, either
31488 +# the compiler is broken, or we cross compile.
31489 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
31490 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
31491 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
31492 +echo "${ECHO_T}$cross_compiling" >&6
31494 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
31495 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
31496 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31497 + (eval $ac_link) 2>&5
31499 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 + (exit $ac_status); }; then
31501 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
31502 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
31503 +# work properly (i.e., refer to `conftest.exe'), while it won't with
31505 +for ac_file in conftest.exe conftest conftest.*; do
31506 + test -f "$ac_file" || continue
31508 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
31509 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31510 + export ac_cv_exeext
31516 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
31517 +See \`config.log' for more details." >&5
31518 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
31519 +See \`config.log' for more details." >&2;}
31520 + { (exit 1); exit 1; }; }
31523 +rm -f conftest$ac_cv_exeext
31524 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
31525 +echo "${ECHO_T}$ac_cv_exeext" >&6
31527 +rm -f conftest.$ac_ext
31528 +EXEEXT=$ac_cv_exeext
31530 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
31531 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
31532 +if test "${ac_cv_objext+set}" = set; then
31533 + echo $ECHO_N "(cached) $ECHO_C" >&6
31535 + cat >conftest.$ac_ext <<_ACEOF
31538 +cat confdefs.h >>conftest.$ac_ext
31539 +cat >>conftest.$ac_ext <<_ACEOF
31540 +/* end confdefs.h. */
31550 +rm -f conftest.o conftest.obj
31551 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31552 + (eval $ac_compile) 2>&5
31554 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 + (exit $ac_status); }; then
31556 + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
31558 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
31559 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
31564 + echo "$as_me: failed program was:" >&5
31565 +sed 's/^/| /' conftest.$ac_ext >&5
31567 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
31568 +See \`config.log' for more details." >&5
31569 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
31570 +See \`config.log' for more details." >&2;}
31571 + { (exit 1); exit 1; }; }
31574 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
31576 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
31577 +echo "${ECHO_T}$ac_cv_objext" >&6
31578 +OBJEXT=$ac_cv_objext
31580 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
31581 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
31582 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
31583 + echo $ECHO_N "(cached) $ECHO_C" >&6
31585 + cat >conftest.$ac_ext <<_ACEOF
31588 +cat confdefs.h >>conftest.$ac_ext
31589 +cat >>conftest.$ac_ext <<_ACEOF
31590 +/* end confdefs.h. */
31603 +rm -f conftest.$ac_objext
31604 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31605 + (eval $ac_compile) 2>conftest.er1
31607 + grep -v '^ *+' conftest.er1 >conftest.err
31608 + rm -f conftest.er1
31609 + cat conftest.err >&5
31610 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 + (exit $ac_status); } &&
31612 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31613 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31614 + (eval $ac_try) 2>&5
31616 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617 + (exit $ac_status); }; } &&
31618 + { ac_try='test -s conftest.$ac_objext'
31619 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31620 + (eval $ac_try) 2>&5
31622 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 + (exit $ac_status); }; }; then
31624 + ac_compiler_gnu=yes
31626 + echo "$as_me: failed program was:" >&5
31627 +sed 's/^/| /' conftest.$ac_ext >&5
31629 +ac_compiler_gnu=no
31631 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31632 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
31635 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
31636 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
31637 +GCC=`test $ac_compiler_gnu = yes && echo yes`
31638 +ac_test_CFLAGS=${CFLAGS+set}
31639 +ac_save_CFLAGS=$CFLAGS
31641 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
31642 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
31643 +if test "${ac_cv_prog_cc_g+set}" = set; then
31644 + echo $ECHO_N "(cached) $ECHO_C" >&6
31646 + cat >conftest.$ac_ext <<_ACEOF
31649 +cat confdefs.h >>conftest.$ac_ext
31650 +cat >>conftest.$ac_ext <<_ACEOF
31651 +/* end confdefs.h. */
31661 +rm -f conftest.$ac_objext
31662 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31663 + (eval $ac_compile) 2>conftest.er1
31665 + grep -v '^ *+' conftest.er1 >conftest.err
31666 + rm -f conftest.er1
31667 + cat conftest.err >&5
31668 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 + (exit $ac_status); } &&
31670 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31671 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31672 + (eval $ac_try) 2>&5
31674 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 + (exit $ac_status); }; } &&
31676 + { ac_try='test -s conftest.$ac_objext'
31677 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31678 + (eval $ac_try) 2>&5
31680 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 + (exit $ac_status); }; }; then
31682 + ac_cv_prog_cc_g=yes
31684 + echo "$as_me: failed program was:" >&5
31685 +sed 's/^/| /' conftest.$ac_ext >&5
31687 +ac_cv_prog_cc_g=no
31689 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31691 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
31692 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
31693 +if test "$ac_test_CFLAGS" = set; then
31694 + CFLAGS=$ac_save_CFLAGS
31695 +elif test $ac_cv_prog_cc_g = yes; then
31696 + if test "$GCC" = yes; then
31702 + if test "$GCC" = yes; then
31708 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
31709 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
31710 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
31711 + echo $ECHO_N "(cached) $ECHO_C" >&6
31713 + ac_cv_prog_cc_stdc=no
31715 +cat >conftest.$ac_ext <<_ACEOF
31718 +cat confdefs.h >>conftest.$ac_ext
31719 +cat >>conftest.$ac_ext <<_ACEOF
31720 +/* end confdefs.h. */
31721 +#include <stdarg.h>
31722 +#include <stdio.h>
31723 +#include <sys/types.h>
31724 +#include <sys/stat.h>
31725 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
31726 +struct buf { int x; };
31727 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
31728 +static char *e (p, i)
31734 +static char *f (char * (*g) (char **, int), char **p, ...)
31739 + s = g (p, va_arg (v,int));
31744 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
31745 + function prototypes and stuff, but not '\xHH' hex character constants.
31746 + These don't provoke an error unfortunately, instead are silently treated
31747 + as 'x'. The following induces an error, until -std1 is added to get
31748 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
31749 + array size at least. It's necessary to write '\x00'==0 to get something
31750 + that's true only with -std1. */
31751 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
31753 +int test (int i, double x);
31754 +struct s1 {int (*f) (int a);};
31755 +struct s2 {int (*f) (double a);};
31756 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
31762 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
31767 +# Don't try gcc -ansi; that turns off useful extensions and
31768 +# breaks some systems' header files.
31769 +# AIX -qlanglvl=ansi
31770 +# Ultrix and OSF/1 -std1
31771 +# HP-UX 10.20 and later -Ae
31772 +# HP-UX older versions -Aa -D_HPUX_SOURCE
31773 +# SVR4 -Xc -D__EXTENSIONS__
31774 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
31776 + CC="$ac_save_CC $ac_arg"
31777 + rm -f conftest.$ac_objext
31778 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31779 + (eval $ac_compile) 2>conftest.er1
31781 + grep -v '^ *+' conftest.er1 >conftest.err
31782 + rm -f conftest.er1
31783 + cat conftest.err >&5
31784 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 + (exit $ac_status); } &&
31786 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31787 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31788 + (eval $ac_try) 2>&5
31790 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 + (exit $ac_status); }; } &&
31792 + { ac_try='test -s conftest.$ac_objext'
31793 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31794 + (eval $ac_try) 2>&5
31796 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 + (exit $ac_status); }; }; then
31798 + ac_cv_prog_cc_stdc=$ac_arg
31801 + echo "$as_me: failed program was:" >&5
31802 +sed 's/^/| /' conftest.$ac_ext >&5
31805 +rm -f conftest.err conftest.$ac_objext
31807 +rm -f conftest.$ac_ext conftest.$ac_objext
31812 +case "x$ac_cv_prog_cc_stdc" in
31814 + echo "$as_me:$LINENO: result: none needed" >&5
31815 +echo "${ECHO_T}none needed" >&6 ;;
31817 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
31818 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
31819 + CC="$CC $ac_cv_prog_cc_stdc" ;;
31822 +# Some people use a C++ compiler to compile C. Since we use `exit',
31823 +# in C++ we need to declare it. In case someone uses the same compiler
31824 +# for both compiling C and C++ we need to have the C++ compiler decide
31825 +# the declaration of exit, since it's the most demanding environment.
31826 +cat >conftest.$ac_ext <<_ACEOF
31827 +#ifndef __cplusplus
31831 +rm -f conftest.$ac_objext
31832 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31833 + (eval $ac_compile) 2>conftest.er1
31835 + grep -v '^ *+' conftest.er1 >conftest.err
31836 + rm -f conftest.er1
31837 + cat conftest.err >&5
31838 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 + (exit $ac_status); } &&
31840 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31841 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842 + (eval $ac_try) 2>&5
31844 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 + (exit $ac_status); }; } &&
31846 + { ac_try='test -s conftest.$ac_objext'
31847 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31848 + (eval $ac_try) 2>&5
31850 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 + (exit $ac_status); }; }; then
31852 + for ac_declaration in \
31854 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
31855 + 'extern "C" void std::exit (int); using std::exit;' \
31856 + 'extern "C" void exit (int) throw ();' \
31857 + 'extern "C" void exit (int);' \
31858 + 'void exit (int);'
31860 + cat >conftest.$ac_ext <<_ACEOF
31863 +cat confdefs.h >>conftest.$ac_ext
31864 +cat >>conftest.$ac_ext <<_ACEOF
31865 +/* end confdefs.h. */
31867 +#include <stdlib.h>
31876 +rm -f conftest.$ac_objext
31877 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31878 + (eval $ac_compile) 2>conftest.er1
31880 + grep -v '^ *+' conftest.er1 >conftest.err
31881 + rm -f conftest.er1
31882 + cat conftest.err >&5
31883 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 + (exit $ac_status); } &&
31885 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31886 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31887 + (eval $ac_try) 2>&5
31889 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 + (exit $ac_status); }; } &&
31891 + { ac_try='test -s conftest.$ac_objext'
31892 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31893 + (eval $ac_try) 2>&5
31895 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896 + (exit $ac_status); }; }; then
31899 + echo "$as_me: failed program was:" >&5
31900 +sed 's/^/| /' conftest.$ac_ext >&5
31904 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31905 + cat >conftest.$ac_ext <<_ACEOF
31908 +cat confdefs.h >>conftest.$ac_ext
31909 +cat >>conftest.$ac_ext <<_ACEOF
31910 +/* end confdefs.h. */
31920 +rm -f conftest.$ac_objext
31921 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31922 + (eval $ac_compile) 2>conftest.er1
31924 + grep -v '^ *+' conftest.er1 >conftest.err
31925 + rm -f conftest.er1
31926 + cat conftest.err >&5
31927 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 + (exit $ac_status); } &&
31929 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31930 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31931 + (eval $ac_try) 2>&5
31933 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 + (exit $ac_status); }; } &&
31935 + { ac_try='test -s conftest.$ac_objext'
31936 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31937 + (eval $ac_try) 2>&5
31939 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 + (exit $ac_status); }; }; then
31943 + echo "$as_me: failed program was:" >&5
31944 +sed 's/^/| /' conftest.$ac_ext >&5
31947 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31950 +if test -n "$ac_declaration"; then
31951 + echo '#ifdef __cplusplus' >>confdefs.h
31952 + echo $ac_declaration >>confdefs.h
31953 + echo '#endif' >>confdefs.h
31957 + echo "$as_me: failed program was:" >&5
31958 +sed 's/^/| /' conftest.$ac_ext >&5
31961 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31963 +ac_cpp='$CPP $CPPFLAGS'
31964 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31965 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31966 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
31970 +# On Suns, sometimes $CPP names a directory.
31971 +if test -n "$CPP" && test -d "$CPP"; then
31975 +#### Some systems specify a CPP to use unless we are using GCC.
31976 +#### Now that we know whether we are using GCC, we can decide whether
31977 +#### to use that one.
31978 +if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
31980 + CPP="$NON_GNU_CPP"
31983 +#### Some systems specify a CC to use unless we are using GCC.
31984 +#### Now that we know whether we are using GCC, we can decide whether
31985 +#### to use that one.
31986 +if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
31987 + test x$cc_specified != xyes
31992 +if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
31994 + CC="$CC $GCC_TEST_OPTIONS"
31997 +if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
31999 + CC="$CC $NON_GCC_TEST_OPTIONS"
32002 +if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
32004 + ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
32007 +if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
32009 + ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
32012 +#### Some other nice autoconf tests. If you add a test here which
32013 +#### should make an entry in src/config.h, don't forget to add an
32014 +#### #undef clause to src/config.h.in for autoconf to modify.
32016 +echo "$as_me:$LINENO: checking whether ln -s works" >&5
32017 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
32019 +if test "$LN_S" = "ln -s"; then
32020 + echo "$as_me:$LINENO: result: yes" >&5
32021 +echo "${ECHO_T}yes" >&6
32023 + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
32024 +echo "${ECHO_T}no, using $LN_S" >&6
32028 +ac_cpp='$CPP $CPPFLAGS'
32029 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32030 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32031 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
32032 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
32033 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
32034 +# On Suns, sometimes $CPP names a directory.
32035 +if test -n "$CPP" && test -d "$CPP"; then
32038 +if test -z "$CPP"; then
32039 + if test "${ac_cv_prog_CPP+set}" = set; then
32040 + echo $ECHO_N "(cached) $ECHO_C" >&6
32042 + # Double quotes because CPP needs to be expanded
32043 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
32045 + ac_preproc_ok=false
32046 +for ac_c_preproc_warn_flag in '' yes
32048 + # Use a header file that comes with gcc, so configuring glibc
32049 + # with a fresh cross-compiler works.
32050 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32051 + # <limits.h> exists even on freestanding compilers.
32052 + # On the NeXT, cc -E runs the code through the compiler's parser,
32053 + # not just through cpp. "Syntax error" is here to catch this case.
32054 + cat >conftest.$ac_ext <<_ACEOF
32057 +cat confdefs.h >>conftest.$ac_ext
32058 +cat >>conftest.$ac_ext <<_ACEOF
32059 +/* end confdefs.h. */
32061 +# include <limits.h>
32063 +# include <assert.h>
32067 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32068 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32070 + grep -v '^ *+' conftest.er1 >conftest.err
32071 + rm -f conftest.er1
32072 + cat conftest.err >&5
32073 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 + (exit $ac_status); } >/dev/null; then
32075 + if test -s conftest.err; then
32076 + ac_cpp_err=$ac_c_preproc_warn_flag
32077 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32084 +if test -z "$ac_cpp_err"; then
32087 + echo "$as_me: failed program was:" >&5
32088 +sed 's/^/| /' conftest.$ac_ext >&5
32090 + # Broken: fails on valid input.
32093 +rm -f conftest.err conftest.$ac_ext
32095 + # OK, works on sane cases. Now check whether non-existent headers
32096 + # can be detected and how.
32097 + cat >conftest.$ac_ext <<_ACEOF
32100 +cat confdefs.h >>conftest.$ac_ext
32101 +cat >>conftest.$ac_ext <<_ACEOF
32102 +/* end confdefs.h. */
32103 +#include <ac_nonexistent.h>
32105 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32106 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32108 + grep -v '^ *+' conftest.er1 >conftest.err
32109 + rm -f conftest.er1
32110 + cat conftest.err >&5
32111 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 + (exit $ac_status); } >/dev/null; then
32113 + if test -s conftest.err; then
32114 + ac_cpp_err=$ac_c_preproc_warn_flag
32115 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32122 +if test -z "$ac_cpp_err"; then
32123 + # Broken: success on invalid input.
32126 + echo "$as_me: failed program was:" >&5
32127 +sed 's/^/| /' conftest.$ac_ext >&5
32129 + # Passes both tests.
32133 +rm -f conftest.err conftest.$ac_ext
32136 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
32137 +rm -f conftest.err conftest.$ac_ext
32138 +if $ac_preproc_ok; then
32143 + ac_cv_prog_CPP=$CPP
32146 + CPP=$ac_cv_prog_CPP
32148 + ac_cv_prog_CPP=$CPP
32150 +echo "$as_me:$LINENO: result: $CPP" >&5
32151 +echo "${ECHO_T}$CPP" >&6
32152 +ac_preproc_ok=false
32153 +for ac_c_preproc_warn_flag in '' yes
32155 + # Use a header file that comes with gcc, so configuring glibc
32156 + # with a fresh cross-compiler works.
32157 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32158 + # <limits.h> exists even on freestanding compilers.
32159 + # On the NeXT, cc -E runs the code through the compiler's parser,
32160 + # not just through cpp. "Syntax error" is here to catch this case.
32161 + cat >conftest.$ac_ext <<_ACEOF
32164 +cat confdefs.h >>conftest.$ac_ext
32165 +cat >>conftest.$ac_ext <<_ACEOF
32166 +/* end confdefs.h. */
32168 +# include <limits.h>
32170 +# include <assert.h>
32174 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32175 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32177 + grep -v '^ *+' conftest.er1 >conftest.err
32178 + rm -f conftest.er1
32179 + cat conftest.err >&5
32180 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 + (exit $ac_status); } >/dev/null; then
32182 + if test -s conftest.err; then
32183 + ac_cpp_err=$ac_c_preproc_warn_flag
32184 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32191 +if test -z "$ac_cpp_err"; then
32194 + echo "$as_me: failed program was:" >&5
32195 +sed 's/^/| /' conftest.$ac_ext >&5
32197 + # Broken: fails on valid input.
32200 +rm -f conftest.err conftest.$ac_ext
32202 + # OK, works on sane cases. Now check whether non-existent headers
32203 + # can be detected and how.
32204 + cat >conftest.$ac_ext <<_ACEOF
32207 +cat confdefs.h >>conftest.$ac_ext
32208 +cat >>conftest.$ac_ext <<_ACEOF
32209 +/* end confdefs.h. */
32210 +#include <ac_nonexistent.h>
32212 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32213 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32215 + grep -v '^ *+' conftest.er1 >conftest.err
32216 + rm -f conftest.er1
32217 + cat conftest.err >&5
32218 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 + (exit $ac_status); } >/dev/null; then
32220 + if test -s conftest.err; then
32221 + ac_cpp_err=$ac_c_preproc_warn_flag
32222 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32229 +if test -z "$ac_cpp_err"; then
32230 + # Broken: success on invalid input.
32233 + echo "$as_me: failed program was:" >&5
32234 +sed 's/^/| /' conftest.$ac_ext >&5
32236 + # Passes both tests.
32240 +rm -f conftest.err conftest.$ac_ext
32243 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
32244 +rm -f conftest.err conftest.$ac_ext
32245 +if $ac_preproc_ok; then
32248 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
32249 +See \`config.log' for more details." >&5
32250 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
32251 +See \`config.log' for more details." >&2;}
32252 + { (exit 1); exit 1; }; }
32256 +ac_cpp='$CPP $CPPFLAGS'
32257 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32258 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32259 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
32261 +# Find a good install program. We prefer a C program (faster),
32262 +# so one script is as good as another. But avoid the broken or
32263 +# incompatible versions:
32264 +# SysV /etc/install, /usr/sbin/install
32265 +# SunOS /usr/etc/install
32266 +# IRIX /sbin/install
32267 +# AIX /bin/install
32268 +# AmigaOS /C/install, which installs bootblocks on floppy discs
32269 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
32270 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
32271 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
32272 +# OS/2's system install, which has a completely different semantic
32273 +# ./install, which can be erroneously created by make from ./install.sh.
32274 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
32275 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
32276 +if test -z "$INSTALL"; then
32277 +if test "${ac_cv_path_install+set}" = set; then
32278 + echo $ECHO_N "(cached) $ECHO_C" >&6
32280 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32281 +for as_dir in $PATH
32284 + test -z "$as_dir" && as_dir=.
32285 + # Account for people who put trailing slashes in PATH elements.
32287 + ./ | .// | /cC/* | \
32288 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
32289 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
32292 + # OSF1 and SCO ODT 3.0 have their own names for install.
32293 + # Don't use installbsd from OSF since it installs stuff as root
32295 + for ac_prog in ginstall scoinst install; do
32296 + for ac_exec_ext in '' $ac_executable_extensions; do
32297 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
32298 + if test $ac_prog = install &&
32299 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
32300 + # AIX install. It has an incompatible calling convention.
32302 + elif test $ac_prog = install &&
32303 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
32304 + # program-specific install script used by HP pwplus--don't use.
32307 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
32319 + if test "${ac_cv_path_install+set}" = set; then
32320 + INSTALL=$ac_cv_path_install
32322 + # As a last resort, use the slow shell script. We don't cache a
32323 + # path for INSTALL within a source directory, because that will
32324 + # break other packages using the cache if that directory is
32325 + # removed, or if the path is relative.
32326 + INSTALL=$ac_install_sh
32329 +echo "$as_me:$LINENO: result: $INSTALL" >&5
32330 +echo "${ECHO_T}$INSTALL" >&6
32332 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
32333 +# It thinks the first close brace ends the variable substitution.
32334 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
32336 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
32338 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
32340 +for ac_prog in 'bison -y' byacc
32342 + # Extract the first word of "$ac_prog", so it can be a program name with args.
32343 +set dummy $ac_prog; ac_word=$2
32344 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32345 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32346 +if test "${ac_cv_prog_YACC+set}" = set; then
32347 + echo $ECHO_N "(cached) $ECHO_C" >&6
32349 + if test -n "$YACC"; then
32350 + ac_cv_prog_YACC="$YACC" # Let the user override the test.
32352 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32353 +for as_dir in $PATH
32356 + test -z "$as_dir" && as_dir=.
32357 + for ac_exec_ext in '' $ac_executable_extensions; do
32358 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32359 + ac_cv_prog_YACC="$ac_prog"
32360 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32368 +YACC=$ac_cv_prog_YACC
32369 +if test -n "$YACC"; then
32370 + echo "$as_me:$LINENO: result: $YACC" >&5
32371 +echo "${ECHO_T}$YACC" >&6
32373 + echo "$as_me:$LINENO: result: no" >&5
32374 +echo "${ECHO_T}no" >&6
32377 + test -n "$YACC" && break
32379 +test -n "$YACC" || YACC="yacc"
32381 +if test "x$RANLIB" = x; then
32382 + if test -n "$ac_tool_prefix"; then
32383 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
32384 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
32385 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32386 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32387 +if test "${ac_cv_prog_RANLIB+set}" = set; then
32388 + echo $ECHO_N "(cached) $ECHO_C" >&6
32390 + if test -n "$RANLIB"; then
32391 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
32393 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32394 +for as_dir in $PATH
32397 + test -z "$as_dir" && as_dir=.
32398 + for ac_exec_ext in '' $ac_executable_extensions; do
32399 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32400 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
32401 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32409 +RANLIB=$ac_cv_prog_RANLIB
32410 +if test -n "$RANLIB"; then
32411 + echo "$as_me:$LINENO: result: $RANLIB" >&5
32412 +echo "${ECHO_T}$RANLIB" >&6
32414 + echo "$as_me:$LINENO: result: no" >&5
32415 +echo "${ECHO_T}no" >&6
32419 +if test -z "$ac_cv_prog_RANLIB"; then
32420 + ac_ct_RANLIB=$RANLIB
32421 + # Extract the first word of "ranlib", so it can be a program name with args.
32422 +set dummy ranlib; ac_word=$2
32423 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32424 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32425 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
32426 + echo $ECHO_N "(cached) $ECHO_C" >&6
32428 + if test -n "$ac_ct_RANLIB"; then
32429 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
32431 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32432 +for as_dir in $PATH
32435 + test -z "$as_dir" && as_dir=.
32436 + for ac_exec_ext in '' $ac_executable_extensions; do
32437 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32438 + ac_cv_prog_ac_ct_RANLIB="ranlib"
32439 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32445 + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
32448 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
32449 +if test -n "$ac_ct_RANLIB"; then
32450 + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
32451 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
32453 + echo "$as_me:$LINENO: result: no" >&5
32454 +echo "${ECHO_T}no" >&6
32457 + RANLIB=$ac_ct_RANLIB
32459 + RANLIB="$ac_cv_prog_RANLIB"
32466 +echo "$as_me:$LINENO: checking for egrep" >&5
32467 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
32468 +if test "${ac_cv_prog_egrep+set}" = set; then
32469 + echo $ECHO_N "(cached) $ECHO_C" >&6
32471 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
32472 + then ac_cv_prog_egrep='grep -E'
32473 + else ac_cv_prog_egrep='egrep'
32476 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
32477 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
32478 + EGREP=$ac_cv_prog_egrep
32482 +echo "$as_me:$LINENO: checking for AIX" >&5
32483 +echo $ECHO_N "checking for AIX... $ECHO_C" >&6
32484 +cat >conftest.$ac_ext <<_ACEOF
32487 +cat confdefs.h >>conftest.$ac_ext
32488 +cat >>conftest.$ac_ext <<_ACEOF
32489 +/* end confdefs.h. */
32495 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32496 + $EGREP "yes" >/dev/null 2>&1; then
32497 + echo "$as_me:$LINENO: result: yes" >&5
32498 +echo "${ECHO_T}yes" >&6
32499 +cat >>confdefs.h <<\_ACEOF
32500 +#define _ALL_SOURCE 1
32504 + echo "$as_me:$LINENO: result: no" >&5
32505 +echo "${ECHO_T}no" >&6
32511 +#### Extract some information from the operating system and machine files.
32513 +{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
32514 + - which libraries the lib-src programs will want, and
32515 + - whether the GNU malloc routines are usable..." >&5
32516 +echo "$as_me: checking the machine- and system-dependent files to find out
32517 + - which libraries the lib-src programs will want, and
32518 + - whether the GNU malloc routines are usable..." >&6;}
32520 +### First figure out CFLAGS (which we use for running the compiler here)
32521 +### and REAL_CFLAGS (which we use for real compilation).
32522 +### The two are the same except on a few systems, where they are made
32523 +### different to work around various lossages. For example,
32524 +### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
32525 +### as implying static linking.
32527 +### If the CFLAGS env var is specified, we use that value
32528 +### instead of the default.
32530 +### It's not important that this name contain the PID; you can't run
32531 +### two configures in the same directory and have anything work
32533 +tempcname="conftest.c"
32536 +#include "'${srcdir}'/src/'${opsysfile}'"
32537 +#include "'${srcdir}'/src/'${machfile}'"
32538 +#ifndef LIBS_MACHINE
32539 +#define LIBS_MACHINE
32541 +#ifndef LIBS_SYSTEM
32542 +#define LIBS_SYSTEM
32544 +#ifndef C_SWITCH_SYSTEM
32545 +#define C_SWITCH_SYSTEM
32547 +#ifndef C_SWITCH_MACHINE
32548 +#define C_SWITCH_MACHINE
32550 +configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
32551 +configure___ c_switch_system=C_SWITCH_SYSTEM
32552 +configure___ c_switch_machine=C_SWITCH_MACHINE
32554 +#ifndef LIB_X11_LIB
32555 +#define LIB_X11_LIB -lX11
32558 +#ifndef LIBX11_MACHINE
32559 +#define LIBX11_MACHINE
32562 +#ifndef LIBX11_SYSTEM
32563 +#define LIBX11_SYSTEM
32565 +configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
32568 +configure___ unexec=UNEXEC
32570 +configure___ unexec=unexec.o
32573 +#ifdef SYSTEM_MALLOC
32574 +configure___ system_malloc=yes
32576 +configure___ system_malloc=no
32579 +#ifdef USE_MMAP_FOR_BUFFERS
32580 +configure___ use_mmap_for_buffers=yes
32582 +configure___ use_mmap_for_buffers=no
32585 +#ifndef C_DEBUG_SWITCH
32586 +#define C_DEBUG_SWITCH -g
32589 +#ifndef C_OPTIMIZE_SWITCH
32591 +#define C_OPTIMIZE_SWITCH -O2
32593 +#define C_OPTIMIZE_SWITCH -O
32597 +#ifndef LD_SWITCH_MACHINE
32598 +#define LD_SWITCH_MACHINE
32601 +#ifndef LD_SWITCH_SYSTEM
32602 +#define LD_SWITCH_SYSTEM
32605 +#ifndef LD_SWITCH_X_SITE_AUX
32606 +#define LD_SWITCH_X_SITE_AUX
32609 +configure___ ld_switch_system=LD_SWITCH_SYSTEM
32610 +configure___ ld_switch_machine=LD_SWITCH_MACHINE
32612 +#ifdef THIS_IS_CONFIGURE
32614 +/* Get the CFLAGS for tests in configure. */
32616 +configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
32618 +configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
32621 +#else /* not THIS_IS_CONFIGURE */
32623 +/* Get the CFLAGS for real compilation. */
32625 +configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
32627 +configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
32630 +#endif /* not THIS_IS_CONFIGURE */
32633 +# The value of CPP is a quoted variable reference, so we need to do this
32634 +# to get its actual value...
32635 +CPP=`eval "echo $CPP"`
32636 +eval `${CPP} -Isrc ${tempcname} \
32637 + | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
32638 +if test "x$SPECIFIED_CFLAGS" = x; then
32639 + eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
32640 + | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
32642 + REAL_CFLAGS="$CFLAGS"
32646 +ac_link="$ac_link $ld_switch_machine $ld_switch_system"
32648 +### Make sure subsequent tests use flags consistent with the build flags.
32650 +if test x"${OVERRIDE_CPPFLAGS}" != x; then
32651 + CPPFLAGS="${OVERRIDE_CPPFLAGS}"
32653 + CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
32656 +# Check whether --enable-largefile or --disable-largefile was given.
32657 +if test "${enable_largefile+set}" = set; then
32658 + enableval="$enable_largefile"
32661 +if test "$enable_largefile" != no; then
32663 + echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
32664 +echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
32665 +if test "${ac_cv_sys_largefile_CC+set}" = set; then
32666 + echo $ECHO_N "(cached) $ECHO_C" >&6
32668 + ac_cv_sys_largefile_CC=no
32669 + if test "$GCC" != yes; then
32672 + # IRIX 6.2 and later do not support large files by default,
32673 + # so use the C compiler's -n32 option if that helps.
32674 + cat >conftest.$ac_ext <<_ACEOF
32677 +cat confdefs.h >>conftest.$ac_ext
32678 +cat >>conftest.$ac_ext <<_ACEOF
32679 +/* end confdefs.h. */
32680 +#include <sys/types.h>
32681 + /* Check that off_t can represent 2**63 - 1 correctly.
32682 + We can't simply define LARGE_OFF_T to be 9223372036854775807,
32683 + since some C++ compilers masquerading as C compilers
32684 + incorrectly reject 9223372036854775807. */
32685 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
32686 + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
32687 + && LARGE_OFF_T % 2147483647 == 1)
32697 + rm -f conftest.$ac_objext
32698 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32699 + (eval $ac_compile) 2>conftest.er1
32701 + grep -v '^ *+' conftest.er1 >conftest.err
32702 + rm -f conftest.er1
32703 + cat conftest.err >&5
32704 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 + (exit $ac_status); } &&
32706 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32707 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32708 + (eval $ac_try) 2>&5
32710 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 + (exit $ac_status); }; } &&
32712 + { ac_try='test -s conftest.$ac_objext'
32713 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714 + (eval $ac_try) 2>&5
32716 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 + (exit $ac_status); }; }; then
32720 + echo "$as_me: failed program was:" >&5
32721 +sed 's/^/| /' conftest.$ac_ext >&5
32724 +rm -f conftest.err conftest.$ac_objext
32726 + rm -f conftest.$ac_objext
32727 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32728 + (eval $ac_compile) 2>conftest.er1
32730 + grep -v '^ *+' conftest.er1 >conftest.err
32731 + rm -f conftest.er1
32732 + cat conftest.err >&5
32733 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 + (exit $ac_status); } &&
32735 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32736 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737 + (eval $ac_try) 2>&5
32739 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 + (exit $ac_status); }; } &&
32741 + { ac_try='test -s conftest.$ac_objext'
32742 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32743 + (eval $ac_try) 2>&5
32745 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 + (exit $ac_status); }; }; then
32747 + ac_cv_sys_largefile_CC=' -n32'; break
32749 + echo "$as_me: failed program was:" >&5
32750 +sed 's/^/| /' conftest.$ac_ext >&5
32753 +rm -f conftest.err conftest.$ac_objext
32757 + rm -f conftest.$ac_ext
32760 +echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
32761 +echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
32762 + if test "$ac_cv_sys_largefile_CC" != no; then
32763 + CC=$CC$ac_cv_sys_largefile_CC
32766 + echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
32767 +echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
32768 +if test "${ac_cv_sys_file_offset_bits+set}" = set; then
32769 + echo $ECHO_N "(cached) $ECHO_C" >&6
32772 + ac_cv_sys_file_offset_bits=no
32773 + cat >conftest.$ac_ext <<_ACEOF
32776 +cat confdefs.h >>conftest.$ac_ext
32777 +cat >>conftest.$ac_ext <<_ACEOF
32778 +/* end confdefs.h. */
32779 +#include <sys/types.h>
32780 + /* Check that off_t can represent 2**63 - 1 correctly.
32781 + We can't simply define LARGE_OFF_T to be 9223372036854775807,
32782 + since some C++ compilers masquerading as C compilers
32783 + incorrectly reject 9223372036854775807. */
32784 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
32785 + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
32786 + && LARGE_OFF_T % 2147483647 == 1)
32796 +rm -f conftest.$ac_objext
32797 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32798 + (eval $ac_compile) 2>conftest.er1
32800 + grep -v '^ *+' conftest.er1 >conftest.err
32801 + rm -f conftest.er1
32802 + cat conftest.err >&5
32803 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 + (exit $ac_status); } &&
32805 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32806 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32807 + (eval $ac_try) 2>&5
32809 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 + (exit $ac_status); }; } &&
32811 + { ac_try='test -s conftest.$ac_objext'
32812 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32813 + (eval $ac_try) 2>&5
32815 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 + (exit $ac_status); }; }; then
32819 + echo "$as_me: failed program was:" >&5
32820 +sed 's/^/| /' conftest.$ac_ext >&5
32823 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32824 + cat >conftest.$ac_ext <<_ACEOF
32827 +cat confdefs.h >>conftest.$ac_ext
32828 +cat >>conftest.$ac_ext <<_ACEOF
32829 +/* end confdefs.h. */
32830 +#define _FILE_OFFSET_BITS 64
32831 +#include <sys/types.h>
32832 + /* Check that off_t can represent 2**63 - 1 correctly.
32833 + We can't simply define LARGE_OFF_T to be 9223372036854775807,
32834 + since some C++ compilers masquerading as C compilers
32835 + incorrectly reject 9223372036854775807. */
32836 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
32837 + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
32838 + && LARGE_OFF_T % 2147483647 == 1)
32848 +rm -f conftest.$ac_objext
32849 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32850 + (eval $ac_compile) 2>conftest.er1
32852 + grep -v '^ *+' conftest.er1 >conftest.err
32853 + rm -f conftest.er1
32854 + cat conftest.err >&5
32855 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 + (exit $ac_status); } &&
32857 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32858 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32859 + (eval $ac_try) 2>&5
32861 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 + (exit $ac_status); }; } &&
32863 + { ac_try='test -s conftest.$ac_objext'
32864 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32865 + (eval $ac_try) 2>&5
32867 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 + (exit $ac_status); }; }; then
32869 + ac_cv_sys_file_offset_bits=64; break
32871 + echo "$as_me: failed program was:" >&5
32872 +sed 's/^/| /' conftest.$ac_ext >&5
32875 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32879 +echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
32880 +echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
32881 +if test "$ac_cv_sys_file_offset_bits" != no; then
32883 +cat >>confdefs.h <<_ACEOF
32884 +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
32889 + echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
32890 +echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
32891 +if test "${ac_cv_sys_large_files+set}" = set; then
32892 + echo $ECHO_N "(cached) $ECHO_C" >&6
32895 + ac_cv_sys_large_files=no
32896 + cat >conftest.$ac_ext <<_ACEOF
32899 +cat confdefs.h >>conftest.$ac_ext
32900 +cat >>conftest.$ac_ext <<_ACEOF
32901 +/* end confdefs.h. */
32902 +#include <sys/types.h>
32903 + /* Check that off_t can represent 2**63 - 1 correctly.
32904 + We can't simply define LARGE_OFF_T to be 9223372036854775807,
32905 + since some C++ compilers masquerading as C compilers
32906 + incorrectly reject 9223372036854775807. */
32907 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
32908 + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
32909 + && LARGE_OFF_T % 2147483647 == 1)
32919 +rm -f conftest.$ac_objext
32920 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32921 + (eval $ac_compile) 2>conftest.er1
32923 + grep -v '^ *+' conftest.er1 >conftest.err
32924 + rm -f conftest.er1
32925 + cat conftest.err >&5
32926 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927 + (exit $ac_status); } &&
32928 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32929 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32930 + (eval $ac_try) 2>&5
32932 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 + (exit $ac_status); }; } &&
32934 + { ac_try='test -s conftest.$ac_objext'
32935 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936 + (eval $ac_try) 2>&5
32938 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 + (exit $ac_status); }; }; then
32942 + echo "$as_me: failed program was:" >&5
32943 +sed 's/^/| /' conftest.$ac_ext >&5
32946 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32947 + cat >conftest.$ac_ext <<_ACEOF
32950 +cat confdefs.h >>conftest.$ac_ext
32951 +cat >>conftest.$ac_ext <<_ACEOF
32952 +/* end confdefs.h. */
32953 +#define _LARGE_FILES 1
32954 +#include <sys/types.h>
32955 + /* Check that off_t can represent 2**63 - 1 correctly.
32956 + We can't simply define LARGE_OFF_T to be 9223372036854775807,
32957 + since some C++ compilers masquerading as C compilers
32958 + incorrectly reject 9223372036854775807. */
32959 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
32960 + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
32961 + && LARGE_OFF_T % 2147483647 == 1)
32971 +rm -f conftest.$ac_objext
32972 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32973 + (eval $ac_compile) 2>conftest.er1
32975 + grep -v '^ *+' conftest.er1 >conftest.err
32976 + rm -f conftest.er1
32977 + cat conftest.err >&5
32978 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979 + (exit $ac_status); } &&
32980 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32981 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982 + (eval $ac_try) 2>&5
32984 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 + (exit $ac_status); }; } &&
32986 + { ac_try='test -s conftest.$ac_objext'
32987 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988 + (eval $ac_try) 2>&5
32990 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 + (exit $ac_status); }; }; then
32992 + ac_cv_sys_large_files=1; break
32994 + echo "$as_me: failed program was:" >&5
32995 +sed 's/^/| /' conftest.$ac_ext >&5
32998 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33002 +echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
33003 +echo "${ECHO_T}$ac_cv_sys_large_files" >&6
33004 +if test "$ac_cv_sys_large_files" != no; then
33006 +cat >>confdefs.h <<_ACEOF
33007 +#define _LARGE_FILES $ac_cv_sys_large_files
33015 +# Sound support for GNU/Linux and the free BSDs.
33016 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
33017 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
33018 +if test "${ac_cv_header_stdc+set}" = set; then
33019 + echo $ECHO_N "(cached) $ECHO_C" >&6
33021 + cat >conftest.$ac_ext <<_ACEOF
33024 +cat confdefs.h >>conftest.$ac_ext
33025 +cat >>conftest.$ac_ext <<_ACEOF
33026 +/* end confdefs.h. */
33027 +#include <stdlib.h>
33028 +#include <stdarg.h>
33029 +#include <string.h>
33030 +#include <float.h>
33040 +rm -f conftest.$ac_objext
33041 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33042 + (eval $ac_compile) 2>conftest.er1
33044 + grep -v '^ *+' conftest.er1 >conftest.err
33045 + rm -f conftest.er1
33046 + cat conftest.err >&5
33047 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 + (exit $ac_status); } &&
33049 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33050 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051 + (eval $ac_try) 2>&5
33053 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 + (exit $ac_status); }; } &&
33055 + { ac_try='test -s conftest.$ac_objext'
33056 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 + (eval $ac_try) 2>&5
33059 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 + (exit $ac_status); }; }; then
33061 + ac_cv_header_stdc=yes
33063 + echo "$as_me: failed program was:" >&5
33064 +sed 's/^/| /' conftest.$ac_ext >&5
33066 +ac_cv_header_stdc=no
33068 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33070 +if test $ac_cv_header_stdc = yes; then
33071 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
33072 + cat >conftest.$ac_ext <<_ACEOF
33075 +cat confdefs.h >>conftest.$ac_ext
33076 +cat >>conftest.$ac_ext <<_ACEOF
33077 +/* end confdefs.h. */
33078 +#include <string.h>
33081 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33082 + $EGREP "memchr" >/dev/null 2>&1; then
33085 + ac_cv_header_stdc=no
33091 +if test $ac_cv_header_stdc = yes; then
33092 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
33093 + cat >conftest.$ac_ext <<_ACEOF
33096 +cat confdefs.h >>conftest.$ac_ext
33097 +cat >>conftest.$ac_ext <<_ACEOF
33098 +/* end confdefs.h. */
33099 +#include <stdlib.h>
33102 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33103 + $EGREP "free" >/dev/null 2>&1; then
33106 + ac_cv_header_stdc=no
33112 +if test $ac_cv_header_stdc = yes; then
33113 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
33114 + if test "$cross_compiling" = yes; then
33117 + cat >conftest.$ac_ext <<_ACEOF
33120 +cat confdefs.h >>conftest.$ac_ext
33121 +cat >>conftest.$ac_ext <<_ACEOF
33122 +/* end confdefs.h. */
33123 +#include <ctype.h>
33124 +#if ((' ' & 0x0FF) == 0x020)
33125 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
33126 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
33128 +# define ISLOWER(c) \
33129 + (('a' <= (c) && (c) <= 'i') \
33130 + || ('j' <= (c) && (c) <= 'r') \
33131 + || ('s' <= (c) && (c) <= 'z'))
33132 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
33135 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
33140 + for (i = 0; i < 256; i++)
33141 + if (XOR (islower (i), ISLOWER (i))
33142 + || toupper (i) != TOUPPER (i))
33147 +rm -f conftest$ac_exeext
33148 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33149 + (eval $ac_link) 2>&5
33151 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33153 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33154 + (eval $ac_try) 2>&5
33156 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 + (exit $ac_status); }; }; then
33160 + echo "$as_me: program exited with status $ac_status" >&5
33161 +echo "$as_me: failed program was:" >&5
33162 +sed 's/^/| /' conftest.$ac_ext >&5
33164 +( exit $ac_status )
33165 +ac_cv_header_stdc=no
33167 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33171 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
33172 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
33173 +if test $ac_cv_header_stdc = yes; then
33175 +cat >>confdefs.h <<\_ACEOF
33176 +#define STDC_HEADERS 1
33181 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
33191 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
33192 + inttypes.h stdint.h unistd.h
33194 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33195 +echo "$as_me:$LINENO: checking for $ac_header" >&5
33196 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33197 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33198 + echo $ECHO_N "(cached) $ECHO_C" >&6
33200 + cat >conftest.$ac_ext <<_ACEOF
33203 +cat confdefs.h >>conftest.$ac_ext
33204 +cat >>conftest.$ac_ext <<_ACEOF
33205 +/* end confdefs.h. */
33206 +$ac_includes_default
33208 +#include <$ac_header>
33210 +rm -f conftest.$ac_objext
33211 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33212 + (eval $ac_compile) 2>conftest.er1
33214 + grep -v '^ *+' conftest.er1 >conftest.err
33215 + rm -f conftest.er1
33216 + cat conftest.err >&5
33217 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 + (exit $ac_status); } &&
33219 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33220 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33221 + (eval $ac_try) 2>&5
33223 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224 + (exit $ac_status); }; } &&
33225 + { ac_try='test -s conftest.$ac_objext'
33226 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33227 + (eval $ac_try) 2>&5
33229 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 + (exit $ac_status); }; }; then
33231 + eval "$as_ac_Header=yes"
33233 + echo "$as_me: failed program was:" >&5
33234 +sed 's/^/| /' conftest.$ac_ext >&5
33236 +eval "$as_ac_Header=no"
33238 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33240 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33241 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33242 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
33243 + cat >>confdefs.h <<_ACEOF
33244 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33255 +for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
33257 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33258 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33259 + echo "$as_me:$LINENO: checking for $ac_header" >&5
33260 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33261 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33262 + echo $ECHO_N "(cached) $ECHO_C" >&6
33264 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33265 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33267 + # Is the header compilable?
33268 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
33269 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33270 +cat >conftest.$ac_ext <<_ACEOF
33273 +cat confdefs.h >>conftest.$ac_ext
33274 +cat >>conftest.$ac_ext <<_ACEOF
33275 +/* end confdefs.h. */
33276 +$ac_includes_default
33277 +#include <$ac_header>
33279 +rm -f conftest.$ac_objext
33280 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33281 + (eval $ac_compile) 2>conftest.er1
33283 + grep -v '^ *+' conftest.er1 >conftest.err
33284 + rm -f conftest.er1
33285 + cat conftest.err >&5
33286 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 + (exit $ac_status); } &&
33288 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33289 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33290 + (eval $ac_try) 2>&5
33292 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 + (exit $ac_status); }; } &&
33294 + { ac_try='test -s conftest.$ac_objext'
33295 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296 + (eval $ac_try) 2>&5
33298 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 + (exit $ac_status); }; }; then
33300 + ac_header_compiler=yes
33302 + echo "$as_me: failed program was:" >&5
33303 +sed 's/^/| /' conftest.$ac_ext >&5
33305 +ac_header_compiler=no
33307 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33308 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33309 +echo "${ECHO_T}$ac_header_compiler" >&6
33311 +# Is the header present?
33312 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
33313 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33314 +cat >conftest.$ac_ext <<_ACEOF
33317 +cat confdefs.h >>conftest.$ac_ext
33318 +cat >>conftest.$ac_ext <<_ACEOF
33319 +/* end confdefs.h. */
33320 +#include <$ac_header>
33322 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33323 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33325 + grep -v '^ *+' conftest.er1 >conftest.err
33326 + rm -f conftest.er1
33327 + cat conftest.err >&5
33328 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 + (exit $ac_status); } >/dev/null; then
33330 + if test -s conftest.err; then
33331 + ac_cpp_err=$ac_c_preproc_warn_flag
33332 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33339 +if test -z "$ac_cpp_err"; then
33340 + ac_header_preproc=yes
33342 + echo "$as_me: failed program was:" >&5
33343 +sed 's/^/| /' conftest.$ac_ext >&5
33345 + ac_header_preproc=no
33347 +rm -f conftest.err conftest.$ac_ext
33348 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33349 +echo "${ECHO_T}$ac_header_preproc" >&6
33351 +# So? What about this header?
33352 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33354 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33355 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33356 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33357 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33358 + ac_header_preproc=yes
33361 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33362 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33363 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33364 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33365 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33366 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33367 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33368 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33369 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33370 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33371 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33372 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33375 +## ------------------------------------------ ##
33376 +## Report this to the AC_PACKAGE_NAME lists. ##
33377 +## ------------------------------------------ ##
33380 + sed "s/^/$as_me: WARNING: /" >&2
33383 +echo "$as_me:$LINENO: checking for $ac_header" >&5
33384 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33385 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33386 + echo $ECHO_N "(cached) $ECHO_C" >&6
33388 + eval "$as_ac_Header=\$ac_header_preproc"
33390 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33391 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33394 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
33395 + cat >>confdefs.h <<_ACEOF
33396 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33403 +# Emulation library used on NetBSD.
33404 +echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
33405 +echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
33406 +if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
33407 + echo $ECHO_N "(cached) $ECHO_C" >&6
33409 + ac_check_lib_save_LIBS=$LIBS
33410 +LIBS="-lossaudio $LIBS"
33411 +cat >conftest.$ac_ext <<_ACEOF
33414 +cat confdefs.h >>conftest.$ac_ext
33415 +cat >>conftest.$ac_ext <<_ACEOF
33416 +/* end confdefs.h. */
33418 +/* Override any gcc2 internal prototype to avoid an error. */
33419 +#ifdef __cplusplus
33422 +/* We use char because int might match the return type of a gcc2
33423 + builtin and then its argument prototype would still apply. */
33424 +char _oss_ioctl ();
33433 +rm -f conftest.$ac_objext conftest$ac_exeext
33434 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33435 + (eval $ac_link) 2>conftest.er1
33437 + grep -v '^ *+' conftest.er1 >conftest.err
33438 + rm -f conftest.er1
33439 + cat conftest.err >&5
33440 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441 + (exit $ac_status); } &&
33442 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33443 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33444 + (eval $ac_try) 2>&5
33446 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 + (exit $ac_status); }; } &&
33448 + { ac_try='test -s conftest$ac_exeext'
33449 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450 + (eval $ac_try) 2>&5
33452 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 + (exit $ac_status); }; }; then
33454 + ac_cv_lib_ossaudio__oss_ioctl=yes
33456 + echo "$as_me: failed program was:" >&5
33457 +sed 's/^/| /' conftest.$ac_ext >&5
33459 +ac_cv_lib_ossaudio__oss_ioctl=no
33461 +rm -f conftest.err conftest.$ac_objext \
33462 + conftest$ac_exeext conftest.$ac_ext
33463 +LIBS=$ac_check_lib_save_LIBS
33465 +echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
33466 +echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
33467 +if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
33468 + LIBSOUND=-lossaudio
33491 +for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
33492 + linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
33493 + termcap.h stdio_ext.h fcntl.h term.h strings.h
33495 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33496 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33497 + echo "$as_me:$LINENO: checking for $ac_header" >&5
33498 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33499 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33500 + echo $ECHO_N "(cached) $ECHO_C" >&6
33502 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33503 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33505 + # Is the header compilable?
33506 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
33507 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33508 +cat >conftest.$ac_ext <<_ACEOF
33511 +cat confdefs.h >>conftest.$ac_ext
33512 +cat >>conftest.$ac_ext <<_ACEOF
33513 +/* end confdefs.h. */
33514 +$ac_includes_default
33515 +#include <$ac_header>
33517 +rm -f conftest.$ac_objext
33518 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33519 + (eval $ac_compile) 2>conftest.er1
33521 + grep -v '^ *+' conftest.er1 >conftest.err
33522 + rm -f conftest.er1
33523 + cat conftest.err >&5
33524 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 + (exit $ac_status); } &&
33526 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33527 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528 + (eval $ac_try) 2>&5
33530 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 + (exit $ac_status); }; } &&
33532 + { ac_try='test -s conftest.$ac_objext'
33533 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33534 + (eval $ac_try) 2>&5
33536 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 + (exit $ac_status); }; }; then
33538 + ac_header_compiler=yes
33540 + echo "$as_me: failed program was:" >&5
33541 +sed 's/^/| /' conftest.$ac_ext >&5
33543 +ac_header_compiler=no
33545 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33546 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33547 +echo "${ECHO_T}$ac_header_compiler" >&6
33549 +# Is the header present?
33550 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
33551 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33552 +cat >conftest.$ac_ext <<_ACEOF
33555 +cat confdefs.h >>conftest.$ac_ext
33556 +cat >>conftest.$ac_ext <<_ACEOF
33557 +/* end confdefs.h. */
33558 +#include <$ac_header>
33560 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33561 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33563 + grep -v '^ *+' conftest.er1 >conftest.err
33564 + rm -f conftest.er1
33565 + cat conftest.err >&5
33566 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 + (exit $ac_status); } >/dev/null; then
33568 + if test -s conftest.err; then
33569 + ac_cpp_err=$ac_c_preproc_warn_flag
33570 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33577 +if test -z "$ac_cpp_err"; then
33578 + ac_header_preproc=yes
33580 + echo "$as_me: failed program was:" >&5
33581 +sed 's/^/| /' conftest.$ac_ext >&5
33583 + ac_header_preproc=no
33585 +rm -f conftest.err conftest.$ac_ext
33586 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33587 +echo "${ECHO_T}$ac_header_preproc" >&6
33589 +# So? What about this header?
33590 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33592 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33593 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33594 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33595 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33596 + ac_header_preproc=yes
33599 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33600 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33601 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33602 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33603 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33604 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33605 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33606 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33607 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33608 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33609 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33610 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33613 +## ------------------------------------------ ##
33614 +## Report this to the AC_PACKAGE_NAME lists. ##
33615 +## ------------------------------------------ ##
33618 + sed "s/^/$as_me: WARNING: /" >&2
33621 +echo "$as_me:$LINENO: checking for $ac_header" >&5
33622 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33623 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33624 + echo $ECHO_N "(cached) $ECHO_C" >&6
33626 + eval "$as_ac_Header=\$ac_header_preproc"
33628 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33629 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33632 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
33633 + cat >>confdefs.h <<_ACEOF
33634 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33641 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
33642 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
33643 +if test "${ac_cv_header_stdc+set}" = set; then
33644 + echo $ECHO_N "(cached) $ECHO_C" >&6
33646 + cat >conftest.$ac_ext <<_ACEOF
33649 +cat confdefs.h >>conftest.$ac_ext
33650 +cat >>conftest.$ac_ext <<_ACEOF
33651 +/* end confdefs.h. */
33652 +#include <stdlib.h>
33653 +#include <stdarg.h>
33654 +#include <string.h>
33655 +#include <float.h>
33665 +rm -f conftest.$ac_objext
33666 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33667 + (eval $ac_compile) 2>conftest.er1
33669 + grep -v '^ *+' conftest.er1 >conftest.err
33670 + rm -f conftest.er1
33671 + cat conftest.err >&5
33672 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 + (exit $ac_status); } &&
33674 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33675 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33676 + (eval $ac_try) 2>&5
33678 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 + (exit $ac_status); }; } &&
33680 + { ac_try='test -s conftest.$ac_objext'
33681 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33682 + (eval $ac_try) 2>&5
33684 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 + (exit $ac_status); }; }; then
33686 + ac_cv_header_stdc=yes
33688 + echo "$as_me: failed program was:" >&5
33689 +sed 's/^/| /' conftest.$ac_ext >&5
33691 +ac_cv_header_stdc=no
33693 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33695 +if test $ac_cv_header_stdc = yes; then
33696 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
33697 + cat >conftest.$ac_ext <<_ACEOF
33700 +cat confdefs.h >>conftest.$ac_ext
33701 +cat >>conftest.$ac_ext <<_ACEOF
33702 +/* end confdefs.h. */
33703 +#include <string.h>
33706 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33707 + $EGREP "memchr" >/dev/null 2>&1; then
33710 + ac_cv_header_stdc=no
33716 +if test $ac_cv_header_stdc = yes; then
33717 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
33718 + cat >conftest.$ac_ext <<_ACEOF
33721 +cat confdefs.h >>conftest.$ac_ext
33722 +cat >>conftest.$ac_ext <<_ACEOF
33723 +/* end confdefs.h. */
33724 +#include <stdlib.h>
33727 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33728 + $EGREP "free" >/dev/null 2>&1; then
33731 + ac_cv_header_stdc=no
33737 +if test $ac_cv_header_stdc = yes; then
33738 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
33739 + if test "$cross_compiling" = yes; then
33742 + cat >conftest.$ac_ext <<_ACEOF
33745 +cat confdefs.h >>conftest.$ac_ext
33746 +cat >>conftest.$ac_ext <<_ACEOF
33747 +/* end confdefs.h. */
33748 +#include <ctype.h>
33749 +#if ((' ' & 0x0FF) == 0x020)
33750 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
33751 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
33753 +# define ISLOWER(c) \
33754 + (('a' <= (c) && (c) <= 'i') \
33755 + || ('j' <= (c) && (c) <= 'r') \
33756 + || ('s' <= (c) && (c) <= 'z'))
33757 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
33760 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
33765 + for (i = 0; i < 256; i++)
33766 + if (XOR (islower (i), ISLOWER (i))
33767 + || toupper (i) != TOUPPER (i))
33772 +rm -f conftest$ac_exeext
33773 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33774 + (eval $ac_link) 2>&5
33776 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33777 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33778 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33779 + (eval $ac_try) 2>&5
33781 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 + (exit $ac_status); }; }; then
33785 + echo "$as_me: program exited with status $ac_status" >&5
33786 +echo "$as_me: failed program was:" >&5
33787 +sed 's/^/| /' conftest.$ac_ext >&5
33789 +( exit $ac_status )
33790 +ac_cv_header_stdc=no
33792 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33796 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
33797 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
33798 +if test $ac_cv_header_stdc = yes; then
33800 +cat >>confdefs.h <<\_ACEOF
33801 +#define STDC_HEADERS 1
33806 +echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
33807 +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
33808 +if test "${ac_cv_header_time+set}" = set; then
33809 + echo $ECHO_N "(cached) $ECHO_C" >&6
33811 + cat >conftest.$ac_ext <<_ACEOF
33814 +cat confdefs.h >>conftest.$ac_ext
33815 +cat >>conftest.$ac_ext <<_ACEOF
33816 +/* end confdefs.h. */
33817 +#include <sys/types.h>
33818 +#include <sys/time.h>
33824 +if ((struct tm *) 0)
33830 +rm -f conftest.$ac_objext
33831 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33832 + (eval $ac_compile) 2>conftest.er1
33834 + grep -v '^ *+' conftest.er1 >conftest.err
33835 + rm -f conftest.er1
33836 + cat conftest.err >&5
33837 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 + (exit $ac_status); } &&
33839 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33840 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33841 + (eval $ac_try) 2>&5
33843 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 + (exit $ac_status); }; } &&
33845 + { ac_try='test -s conftest.$ac_objext'
33846 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33847 + (eval $ac_try) 2>&5
33849 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 + (exit $ac_status); }; }; then
33851 + ac_cv_header_time=yes
33853 + echo "$as_me: failed program was:" >&5
33854 +sed 's/^/| /' conftest.$ac_ext >&5
33856 +ac_cv_header_time=no
33858 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33860 +echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
33861 +echo "${ECHO_T}$ac_cv_header_time" >&6
33862 +if test $ac_cv_header_time = yes; then
33864 +cat >>confdefs.h <<\_ACEOF
33865 +#define TIME_WITH_SYS_TIME 1
33870 +echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
33871 +echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
33872 +if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
33873 + echo $ECHO_N "(cached) $ECHO_C" >&6
33875 + cat >conftest.$ac_ext <<_ACEOF
33878 +cat confdefs.h >>conftest.$ac_ext
33879 +cat >>conftest.$ac_ext <<_ACEOF
33880 +/* end confdefs.h. */
33881 +#include <signal.h>
33882 +/* NetBSD declares sys_siglist in unistd.h. */
33884 +# include <unistd.h>
33891 +#ifndef sys_siglist
33892 + char *p = (char *) sys_siglist;
33899 +rm -f conftest.$ac_objext
33900 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33901 + (eval $ac_compile) 2>conftest.er1
33903 + grep -v '^ *+' conftest.er1 >conftest.err
33904 + rm -f conftest.er1
33905 + cat conftest.err >&5
33906 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907 + (exit $ac_status); } &&
33908 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33909 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33910 + (eval $ac_try) 2>&5
33912 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33913 + (exit $ac_status); }; } &&
33914 + { ac_try='test -s conftest.$ac_objext'
33915 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33916 + (eval $ac_try) 2>&5
33918 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 + (exit $ac_status); }; }; then
33920 + ac_cv_have_decl_sys_siglist=yes
33922 + echo "$as_me: failed program was:" >&5
33923 +sed 's/^/| /' conftest.$ac_ext >&5
33925 +ac_cv_have_decl_sys_siglist=no
33927 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33929 +echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
33930 +echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
33931 +if test $ac_cv_have_decl_sys_siglist = yes; then
33933 +cat >>confdefs.h <<_ACEOF
33934 +#define HAVE_DECL_SYS_SIGLIST 1
33939 + cat >>confdefs.h <<_ACEOF
33940 +#define HAVE_DECL_SYS_SIGLIST 0
33948 +echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
33949 +echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
33950 +if test "${ac_cv_header_sys_wait_h+set}" = set; then
33951 + echo $ECHO_N "(cached) $ECHO_C" >&6
33953 + cat >conftest.$ac_ext <<_ACEOF
33956 +cat confdefs.h >>conftest.$ac_ext
33957 +cat >>conftest.$ac_ext <<_ACEOF
33958 +/* end confdefs.h. */
33959 +#include <sys/types.h>
33960 +#include <sys/wait.h>
33961 +#ifndef WEXITSTATUS
33962 +# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
33965 +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
33973 + s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
33978 +rm -f conftest.$ac_objext
33979 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33980 + (eval $ac_compile) 2>conftest.er1
33982 + grep -v '^ *+' conftest.er1 >conftest.err
33983 + rm -f conftest.er1
33984 + cat conftest.err >&5
33985 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 + (exit $ac_status); } &&
33987 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33988 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33989 + (eval $ac_try) 2>&5
33991 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992 + (exit $ac_status); }; } &&
33993 + { ac_try='test -s conftest.$ac_objext'
33994 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33995 + (eval $ac_try) 2>&5
33997 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 + (exit $ac_status); }; }; then
33999 + ac_cv_header_sys_wait_h=yes
34001 + echo "$as_me: failed program was:" >&5
34002 +sed 's/^/| /' conftest.$ac_ext >&5
34004 +ac_cv_header_sys_wait_h=no
34006 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34008 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
34009 +echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
34010 +if test $ac_cv_header_sys_wait_h = yes; then
34012 +cat >>confdefs.h <<\_ACEOF
34013 +#define HAVE_SYS_WAIT_H 1
34019 +echo "$as_me:$LINENO: checking for struct utimbuf" >&5
34020 +echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
34021 +if test "${emacs_cv_struct_utimbuf+set}" = set; then
34022 + echo $ECHO_N "(cached) $ECHO_C" >&6
34024 + cat >conftest.$ac_ext <<_ACEOF
34027 +cat confdefs.h >>conftest.$ac_ext
34028 +cat >>conftest.$ac_ext <<_ACEOF
34029 +/* end confdefs.h. */
34030 +#ifdef TIME_WITH_SYS_TIME
34031 +#include <sys/time.h>
34034 +#ifdef HAVE_SYS_TIME_H
34035 +#include <sys/time.h>
34040 +#ifdef HAVE_UTIME_H
34041 +#include <utime.h>
34046 +static struct utimbuf x; x.actime = x.modtime;
34051 +rm -f conftest.$ac_objext
34052 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34053 + (eval $ac_compile) 2>conftest.er1
34055 + grep -v '^ *+' conftest.er1 >conftest.err
34056 + rm -f conftest.er1
34057 + cat conftest.err >&5
34058 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34059 + (exit $ac_status); } &&
34060 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34061 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34062 + (eval $ac_try) 2>&5
34064 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 + (exit $ac_status); }; } &&
34066 + { ac_try='test -s conftest.$ac_objext'
34067 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34068 + (eval $ac_try) 2>&5
34070 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 + (exit $ac_status); }; }; then
34072 + emacs_cv_struct_utimbuf=yes
34074 + echo "$as_me: failed program was:" >&5
34075 +sed 's/^/| /' conftest.$ac_ext >&5
34077 +emacs_cv_struct_utimbuf=no
34079 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34081 +echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
34082 +echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
34083 +if test $emacs_cv_struct_utimbuf = yes; then
34084 + cat >>confdefs.h <<\_ACEOF
34085 +#define HAVE_STRUCT_UTIMBUF 1
34090 +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34091 +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34092 +if test "${ac_cv_type_signal+set}" = set; then
34093 + echo $ECHO_N "(cached) $ECHO_C" >&6
34095 + cat >conftest.$ac_ext <<_ACEOF
34098 +cat confdefs.h >>conftest.$ac_ext
34099 +cat >>conftest.$ac_ext <<_ACEOF
34100 +/* end confdefs.h. */
34101 +#include <sys/types.h>
34102 +#include <signal.h>
34106 +#ifdef __cplusplus
34107 +extern "C" void (*signal (int, void (*)(int)))(int);
34109 +void (*signal ()) ();
34120 +rm -f conftest.$ac_objext
34121 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34122 + (eval $ac_compile) 2>conftest.er1
34124 + grep -v '^ *+' conftest.er1 >conftest.err
34125 + rm -f conftest.er1
34126 + cat conftest.err >&5
34127 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 + (exit $ac_status); } &&
34129 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34130 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34131 + (eval $ac_try) 2>&5
34133 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 + (exit $ac_status); }; } &&
34135 + { ac_try='test -s conftest.$ac_objext'
34136 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137 + (eval $ac_try) 2>&5
34139 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 + (exit $ac_status); }; }; then
34141 + ac_cv_type_signal=void
34143 + echo "$as_me: failed program was:" >&5
34144 +sed 's/^/| /' conftest.$ac_ext >&5
34146 +ac_cv_type_signal=int
34148 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34150 +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34151 +echo "${ECHO_T}$ac_cv_type_signal" >&6
34153 +cat >>confdefs.h <<_ACEOF
34154 +#define RETSIGTYPE $ac_cv_type_signal
34159 +echo "$as_me:$LINENO: checking for speed_t" >&5
34160 +echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
34161 +if test "${emacs_cv_speed_t+set}" = set; then
34162 + echo $ECHO_N "(cached) $ECHO_C" >&6
34164 + cat >conftest.$ac_ext <<_ACEOF
34167 +cat confdefs.h >>conftest.$ac_ext
34168 +cat >>conftest.$ac_ext <<_ACEOF
34169 +/* end confdefs.h. */
34170 +#include <termios.h>
34179 +rm -f conftest.$ac_objext
34180 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34181 + (eval $ac_compile) 2>conftest.er1
34183 + grep -v '^ *+' conftest.er1 >conftest.err
34184 + rm -f conftest.er1
34185 + cat conftest.err >&5
34186 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187 + (exit $ac_status); } &&
34188 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34189 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34190 + (eval $ac_try) 2>&5
34192 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 + (exit $ac_status); }; } &&
34194 + { ac_try='test -s conftest.$ac_objext'
34195 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34196 + (eval $ac_try) 2>&5
34198 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 + (exit $ac_status); }; }; then
34200 + emacs_cv_speed_t=yes
34202 + echo "$as_me: failed program was:" >&5
34203 +sed 's/^/| /' conftest.$ac_ext >&5
34205 +emacs_cv_speed_t=no
34207 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34209 +echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
34210 +echo "${ECHO_T}$emacs_cv_speed_t" >&6
34211 +if test $emacs_cv_speed_t = yes; then
34212 + cat >>confdefs.h <<\_ACEOF
34213 +#define HAVE_SPEED_T 1
34218 +echo "$as_me:$LINENO: checking for struct timeval" >&5
34219 +echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
34220 +if test "${emacs_cv_struct_timeval+set}" = set; then
34221 + echo $ECHO_N "(cached) $ECHO_C" >&6
34223 + cat >conftest.$ac_ext <<_ACEOF
34226 +cat confdefs.h >>conftest.$ac_ext
34227 +cat >>conftest.$ac_ext <<_ACEOF
34228 +/* end confdefs.h. */
34229 +#ifdef TIME_WITH_SYS_TIME
34230 +#include <sys/time.h>
34233 +#ifdef HAVE_SYS_TIME_H
34234 +#include <sys/time.h>
34242 +static struct timeval x; x.tv_sec = x.tv_usec;
34247 +rm -f conftest.$ac_objext
34248 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34249 + (eval $ac_compile) 2>conftest.er1
34251 + grep -v '^ *+' conftest.er1 >conftest.err
34252 + rm -f conftest.er1
34253 + cat conftest.err >&5
34254 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 + (exit $ac_status); } &&
34256 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34257 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258 + (eval $ac_try) 2>&5
34260 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 + (exit $ac_status); }; } &&
34262 + { ac_try='test -s conftest.$ac_objext'
34263 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264 + (eval $ac_try) 2>&5
34266 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 + (exit $ac_status); }; }; then
34268 + emacs_cv_struct_timeval=yes
34270 + echo "$as_me: failed program was:" >&5
34271 +sed 's/^/| /' conftest.$ac_ext >&5
34273 +emacs_cv_struct_timeval=no
34275 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34277 +echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
34278 +echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
34279 +HAVE_TIMEVAL=$emacs_cv_struct_timeval
34280 +if test $emacs_cv_struct_timeval = yes; then
34281 + cat >>confdefs.h <<\_ACEOF
34282 +#define HAVE_TIMEVAL 1
34287 +echo "$as_me:$LINENO: checking for struct exception" >&5
34288 +echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
34289 +if test "${emacs_cv_struct_exception+set}" = set; then
34290 + echo $ECHO_N "(cached) $ECHO_C" >&6
34292 + cat >conftest.$ac_ext <<_ACEOF
34295 +cat confdefs.h >>conftest.$ac_ext
34296 +cat >>conftest.$ac_ext <<_ACEOF
34297 +/* end confdefs.h. */
34302 +static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
34307 +rm -f conftest.$ac_objext
34308 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34309 + (eval $ac_compile) 2>conftest.er1
34311 + grep -v '^ *+' conftest.er1 >conftest.err
34312 + rm -f conftest.er1
34313 + cat conftest.err >&5
34314 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34315 + (exit $ac_status); } &&
34316 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34317 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34318 + (eval $ac_try) 2>&5
34320 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 + (exit $ac_status); }; } &&
34322 + { ac_try='test -s conftest.$ac_objext'
34323 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34324 + (eval $ac_try) 2>&5
34326 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327 + (exit $ac_status); }; }; then
34328 + emacs_cv_struct_exception=yes
34330 + echo "$as_me: failed program was:" >&5
34331 +sed 's/^/| /' conftest.$ac_ext >&5
34333 +emacs_cv_struct_exception=no
34335 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34337 +echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
34338 +echo "${ECHO_T}$emacs_cv_struct_exception" >&6
34339 +HAVE_EXCEPTION=$emacs_cv_struct_exception
34340 +if test $emacs_cv_struct_exception != yes; then
34341 + cat >>confdefs.h <<\_ACEOF
34342 +#define NO_MATHERR 1
34347 +echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34348 +echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34349 +if test "${ac_cv_struct_tm+set}" = set; then
34350 + echo $ECHO_N "(cached) $ECHO_C" >&6
34352 + cat >conftest.$ac_ext <<_ACEOF
34355 +cat confdefs.h >>conftest.$ac_ext
34356 +cat >>conftest.$ac_ext <<_ACEOF
34357 +/* end confdefs.h. */
34358 +#include <sys/types.h>
34364 +struct tm *tp; tp->tm_sec;
34369 +rm -f conftest.$ac_objext
34370 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34371 + (eval $ac_compile) 2>conftest.er1
34373 + grep -v '^ *+' conftest.er1 >conftest.err
34374 + rm -f conftest.er1
34375 + cat conftest.err >&5
34376 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 + (exit $ac_status); } &&
34378 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34379 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34380 + (eval $ac_try) 2>&5
34382 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 + (exit $ac_status); }; } &&
34384 + { ac_try='test -s conftest.$ac_objext'
34385 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34386 + (eval $ac_try) 2>&5
34388 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 + (exit $ac_status); }; }; then
34390 + ac_cv_struct_tm=time.h
34392 + echo "$as_me: failed program was:" >&5
34393 +sed 's/^/| /' conftest.$ac_ext >&5
34395 +ac_cv_struct_tm=sys/time.h
34397 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34399 +echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34400 +echo "${ECHO_T}$ac_cv_struct_tm" >&6
34401 +if test $ac_cv_struct_tm = sys/time.h; then
34403 +cat >>confdefs.h <<\_ACEOF
34404 +#define TM_IN_SYS_TIME 1
34409 +echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
34410 +echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
34411 +if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
34412 + echo $ECHO_N "(cached) $ECHO_C" >&6
34414 + cat >conftest.$ac_ext <<_ACEOF
34417 +cat confdefs.h >>conftest.$ac_ext
34418 +cat >>conftest.$ac_ext <<_ACEOF
34419 +/* end confdefs.h. */
34420 +#include <sys/types.h>
34421 +#include <$ac_cv_struct_tm>
34427 +static struct tm ac_aggr;
34428 +if (ac_aggr.tm_zone)
34434 +rm -f conftest.$ac_objext
34435 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34436 + (eval $ac_compile) 2>conftest.er1
34438 + grep -v '^ *+' conftest.er1 >conftest.err
34439 + rm -f conftest.er1
34440 + cat conftest.err >&5
34441 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 + (exit $ac_status); } &&
34443 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34444 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34445 + (eval $ac_try) 2>&5
34447 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448 + (exit $ac_status); }; } &&
34449 + { ac_try='test -s conftest.$ac_objext'
34450 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34451 + (eval $ac_try) 2>&5
34453 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34454 + (exit $ac_status); }; }; then
34455 + ac_cv_member_struct_tm_tm_zone=yes
34457 + echo "$as_me: failed program was:" >&5
34458 +sed 's/^/| /' conftest.$ac_ext >&5
34460 +cat >conftest.$ac_ext <<_ACEOF
34463 +cat confdefs.h >>conftest.$ac_ext
34464 +cat >>conftest.$ac_ext <<_ACEOF
34465 +/* end confdefs.h. */
34466 +#include <sys/types.h>
34467 +#include <$ac_cv_struct_tm>
34473 +static struct tm ac_aggr;
34474 +if (sizeof ac_aggr.tm_zone)
34480 +rm -f conftest.$ac_objext
34481 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34482 + (eval $ac_compile) 2>conftest.er1
34484 + grep -v '^ *+' conftest.er1 >conftest.err
34485 + rm -f conftest.er1
34486 + cat conftest.err >&5
34487 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34488 + (exit $ac_status); } &&
34489 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34490 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34491 + (eval $ac_try) 2>&5
34493 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 + (exit $ac_status); }; } &&
34495 + { ac_try='test -s conftest.$ac_objext'
34496 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497 + (eval $ac_try) 2>&5
34499 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 + (exit $ac_status); }; }; then
34501 + ac_cv_member_struct_tm_tm_zone=yes
34503 + echo "$as_me: failed program was:" >&5
34504 +sed 's/^/| /' conftest.$ac_ext >&5
34506 +ac_cv_member_struct_tm_tm_zone=no
34508 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34510 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34512 +echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
34513 +echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
34514 +if test $ac_cv_member_struct_tm_tm_zone = yes; then
34516 +cat >>confdefs.h <<_ACEOF
34517 +#define HAVE_STRUCT_TM_TM_ZONE 1
34523 +if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
34525 +cat >>confdefs.h <<\_ACEOF
34526 +#define HAVE_TM_ZONE 1
34530 + echo "$as_me:$LINENO: checking for tzname" >&5
34531 +echo $ECHO_N "checking for tzname... $ECHO_C" >&6
34532 +if test "${ac_cv_var_tzname+set}" = set; then
34533 + echo $ECHO_N "(cached) $ECHO_C" >&6
34535 + cat >conftest.$ac_ext <<_ACEOF
34538 +cat confdefs.h >>conftest.$ac_ext
34539 +cat >>conftest.$ac_ext <<_ACEOF
34540 +/* end confdefs.h. */
34542 +#ifndef tzname /* For SGI. */
34543 +extern char *tzname[]; /* RS6000 and others reject char **tzname. */
34554 +rm -f conftest.$ac_objext conftest$ac_exeext
34555 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34556 + (eval $ac_link) 2>conftest.er1
34558 + grep -v '^ *+' conftest.er1 >conftest.err
34559 + rm -f conftest.er1
34560 + cat conftest.err >&5
34561 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 + (exit $ac_status); } &&
34563 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34564 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34565 + (eval $ac_try) 2>&5
34567 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568 + (exit $ac_status); }; } &&
34569 + { ac_try='test -s conftest$ac_exeext'
34570 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571 + (eval $ac_try) 2>&5
34573 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574 + (exit $ac_status); }; }; then
34575 + ac_cv_var_tzname=yes
34577 + echo "$as_me: failed program was:" >&5
34578 +sed 's/^/| /' conftest.$ac_ext >&5
34580 +ac_cv_var_tzname=no
34582 +rm -f conftest.err conftest.$ac_objext \
34583 + conftest$ac_exeext conftest.$ac_ext
34585 +echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
34586 +echo "${ECHO_T}$ac_cv_var_tzname" >&6
34587 + if test $ac_cv_var_tzname = yes; then
34589 +cat >>confdefs.h <<\_ACEOF
34590 +#define HAVE_TZNAME 1
34596 +echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34597 +echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34598 +if test "${emacs_cv_tm_gmtoff+set}" = set; then
34599 + echo $ECHO_N "(cached) $ECHO_C" >&6
34601 + cat >conftest.$ac_ext <<_ACEOF
34604 +cat confdefs.h >>conftest.$ac_ext
34605 +cat >>conftest.$ac_ext <<_ACEOF
34606 +/* end confdefs.h. */
34611 +struct tm t; t.tm_gmtoff = 0
34616 +rm -f conftest.$ac_objext conftest$ac_exeext
34617 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34618 + (eval $ac_link) 2>conftest.er1
34620 + grep -v '^ *+' conftest.er1 >conftest.err
34621 + rm -f conftest.er1
34622 + cat conftest.err >&5
34623 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624 + (exit $ac_status); } &&
34625 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34626 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34627 + (eval $ac_try) 2>&5
34629 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630 + (exit $ac_status); }; } &&
34631 + { ac_try='test -s conftest$ac_exeext'
34632 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633 + (eval $ac_try) 2>&5
34635 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 + (exit $ac_status); }; }; then
34637 + emacs_cv_tm_gmtoff=yes
34639 + echo "$as_me: failed program was:" >&5
34640 +sed 's/^/| /' conftest.$ac_ext >&5
34642 +emacs_cv_tm_gmtoff=no
34644 +rm -f conftest.err conftest.$ac_objext \
34645 + conftest$ac_exeext conftest.$ac_ext
34647 +echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5
34648 +echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
34649 +if test $emacs_cv_tm_gmtoff = yes; then
34650 + cat >>confdefs.h <<\_ACEOF
34651 +#define HAVE_TM_GMTOFF 1
34657 +echo "$as_me:$LINENO: checking for function prototypes" >&5
34658 +echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
34659 +if test "$ac_cv_prog_cc_stdc" != no; then
34660 + echo "$as_me:$LINENO: result: yes" >&5
34661 +echo "${ECHO_T}yes" >&6
34663 +cat >>confdefs.h <<\_ACEOF
34664 +#define PROTOTYPES 1
34668 +cat >>confdefs.h <<\_ACEOF
34669 +#define __PROTOTYPES 1
34673 + echo "$as_me:$LINENO: result: no" >&5
34674 +echo "${ECHO_T}no" >&6
34677 +echo "$as_me:$LINENO: checking for working volatile" >&5
34678 +echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
34679 +if test "${ac_cv_c_volatile+set}" = set; then
34680 + echo $ECHO_N "(cached) $ECHO_C" >&6
34682 + cat >conftest.$ac_ext <<_ACEOF
34685 +cat confdefs.h >>conftest.$ac_ext
34686 +cat >>conftest.$ac_ext <<_ACEOF
34687 +/* end confdefs.h. */
34699 +rm -f conftest.$ac_objext
34700 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34701 + (eval $ac_compile) 2>conftest.er1
34703 + grep -v '^ *+' conftest.er1 >conftest.err
34704 + rm -f conftest.er1
34705 + cat conftest.err >&5
34706 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 + (exit $ac_status); } &&
34708 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34709 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34710 + (eval $ac_try) 2>&5
34712 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 + (exit $ac_status); }; } &&
34714 + { ac_try='test -s conftest.$ac_objext'
34715 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716 + (eval $ac_try) 2>&5
34718 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 + (exit $ac_status); }; }; then
34720 + ac_cv_c_volatile=yes
34722 + echo "$as_me: failed program was:" >&5
34723 +sed 's/^/| /' conftest.$ac_ext >&5
34725 +ac_cv_c_volatile=no
34727 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34729 +echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
34730 +echo "${ECHO_T}$ac_cv_c_volatile" >&6
34731 +if test $ac_cv_c_volatile = no; then
34733 +cat >>confdefs.h <<\_ACEOF
34739 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34740 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34741 +if test "${ac_cv_c_const+set}" = set; then
34742 + echo $ECHO_N "(cached) $ECHO_C" >&6
34744 + cat >conftest.$ac_ext <<_ACEOF
34747 +cat confdefs.h >>conftest.$ac_ext
34748 +cat >>conftest.$ac_ext <<_ACEOF
34749 +/* end confdefs.h. */
34754 +/* FIXME: Include the comments suggested by Paul. */
34755 +#ifndef __cplusplus
34756 + /* Ultrix mips cc rejects this. */
34757 + typedef int charset[2];
34759 + /* SunOS 4.1.1 cc rejects this. */
34760 + char const *const *ccp;
34762 + /* NEC SVR4.0.2 mips cc rejects this. */
34763 + struct point {int x, y;};
34764 + static struct point const zero = {0,0};
34765 + /* AIX XL C 1.02.0.0 rejects this.
34766 + It does not let you subtract one const X* pointer from another in
34767 + an arm of an if-expression whose if-part is not a constant
34769 + const char *g = "string";
34770 + ccp = &g + (g ? g-g : 0);
34771 + /* HPUX 7.0 cc rejects these. */
34773 + p = (char**) ccp;
34774 + ccp = (char const *const *) p;
34775 + { /* SCO 3.2v4 cc rejects this. */
34777 + char const *s = 0 ? (char *) 0 : (char const *) 0;
34781 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34782 + int x[] = {25, 17};
34783 + const int *foo = &x[0];
34786 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34787 + typedef const int *iptr;
34791 + { /* AIX XL C 1.02.0.0 rejects this saying
34792 + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34793 + struct s { int j; const int *ap[3]; };
34794 + struct s *b; b->j = 5;
34796 + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34797 + const int foo = 10;
34805 +rm -f conftest.$ac_objext
34806 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34807 + (eval $ac_compile) 2>conftest.er1
34809 + grep -v '^ *+' conftest.er1 >conftest.err
34810 + rm -f conftest.er1
34811 + cat conftest.err >&5
34812 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813 + (exit $ac_status); } &&
34814 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34815 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34816 + (eval $ac_try) 2>&5
34818 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819 + (exit $ac_status); }; } &&
34820 + { ac_try='test -s conftest.$ac_objext'
34821 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34822 + (eval $ac_try) 2>&5
34824 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34825 + (exit $ac_status); }; }; then
34826 + ac_cv_c_const=yes
34828 + echo "$as_me: failed program was:" >&5
34829 +sed 's/^/| /' conftest.$ac_ext >&5
34833 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34835 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34836 +echo "${ECHO_T}$ac_cv_c_const" >&6
34837 +if test $ac_cv_c_const = no; then
34839 +cat >>confdefs.h <<\_ACEOF
34845 +echo "$as_me:$LINENO: checking for void * support" >&5
34846 +echo $ECHO_N "checking for void * support... $ECHO_C" >&6
34847 +if test "${emacs_cv_void_star+set}" = set; then
34848 + echo $ECHO_N "(cached) $ECHO_C" >&6
34850 + cat >conftest.$ac_ext <<_ACEOF
34853 +cat confdefs.h >>conftest.$ac_ext
34854 +cat >>conftest.$ac_ext <<_ACEOF
34855 +/* end confdefs.h. */
34865 +rm -f conftest.$ac_objext
34866 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34867 + (eval $ac_compile) 2>conftest.er1
34869 + grep -v '^ *+' conftest.er1 >conftest.err
34870 + rm -f conftest.er1
34871 + cat conftest.err >&5
34872 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873 + (exit $ac_status); } &&
34874 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34875 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876 + (eval $ac_try) 2>&5
34878 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879 + (exit $ac_status); }; } &&
34880 + { ac_try='test -s conftest.$ac_objext'
34881 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34882 + (eval $ac_try) 2>&5
34884 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 + (exit $ac_status); }; }; then
34886 + emacs_cv_void_star=yes
34888 + echo "$as_me: failed program was:" >&5
34889 +sed 's/^/| /' conftest.$ac_ext >&5
34891 +emacs_cv_void_star=no
34893 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34895 +echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
34896 +echo "${ECHO_T}$emacs_cv_void_star" >&6
34897 +if test $emacs_cv_void_star = yes; then
34898 + cat >>confdefs.h <<\_ACEOF
34899 +#define POINTER_TYPE void
34903 + cat >>confdefs.h <<\_ACEOF
34904 +#define POINTER_TYPE char
34909 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34910 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34911 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
34912 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34913 + echo $ECHO_N "(cached) $ECHO_C" >&6
34915 + cat >conftest.make <<\_ACEOF
34917 + @echo 'ac_maketemp="$(MAKE)"'
34919 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34920 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34921 +if test -n "$ac_maketemp"; then
34922 + eval ac_cv_prog_make_${ac_make}_set=yes
34924 + eval ac_cv_prog_make_${ac_make}_set=no
34926 +rm -f conftest.make
34928 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34929 + echo "$as_me:$LINENO: result: yes" >&5
34930 +echo "${ECHO_T}yes" >&6
34933 + echo "$as_me:$LINENO: result: no" >&5
34934 +echo "${ECHO_T}no" >&6
34935 + SET_MAKE="MAKE=${MAKE-make}"
34939 +echo "$as_me:$LINENO: checking for long file names" >&5
34940 +echo $ECHO_N "checking for long file names... $ECHO_C" >&6
34941 +if test "${ac_cv_sys_long_file_names+set}" = set; then
34942 + echo $ECHO_N "(cached) $ECHO_C" >&6
34944 + ac_cv_sys_long_file_names=yes
34945 +# Test for long file names in all the places we know might matter:
34946 +# . the current directory, where building will happen
34947 +# $prefix/lib where we will be installing things
34948 +# $exec_prefix/lib likewise
34949 +# eval it to expand exec_prefix.
34950 +# $TMPDIR if set, where it might want to write temporary files
34951 +# if $TMPDIR is not set:
34952 +# /tmp where it might want to write temporary files
34953 +# /var/tmp likewise
34954 +# /usr/tmp likewise
34955 +if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
34956 + ac_tmpdirs=$TMPDIR
34958 + ac_tmpdirs='/tmp /var/tmp /usr/tmp'
34960 +for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
34961 + test -d $ac_dir || continue
34962 + test -w $ac_dir || continue # It is less confusing to not echo anything here.
34963 + ac_xdir=$ac_dir/cf$$
34964 + (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
34965 + ac_tf1=$ac_xdir/conftest9012345
34966 + ac_tf2=$ac_xdir/conftest9012346
34967 + (echo 1 >$ac_tf1) 2>/dev/null
34968 + (echo 2 >$ac_tf2) 2>/dev/null
34969 + ac_val=`cat $ac_tf1 2>/dev/null`
34970 + if test ! -f $ac_tf1 || test "$ac_val" != 1; then
34971 + ac_cv_sys_long_file_names=no
34972 + rm -rf $ac_xdir 2>/dev/null
34975 + rm -rf $ac_xdir 2>/dev/null
34978 +echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
34979 +echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
34980 +if test $ac_cv_sys_long_file_names = yes; then
34982 +cat >>confdefs.h <<\_ACEOF
34983 +#define HAVE_LONG_FILE_NAMES 1
34989 +#### Choose a window system.
34991 +echo "$as_me:$LINENO: checking for X" >&5
34992 +echo $ECHO_N "checking for X... $ECHO_C" >&6
34994 +ac_path_x_has_been_run=yes
34996 +# Check whether --with-x or --without-x was given.
34997 +if test "${with_x+set}" = set; then
34998 + withval="$with_x"
35001 +# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
35002 +if test "x$with_x" = xno; then
35003 + # The user explicitly disabled X.
35006 + if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
35007 + # Both variables are already set.
35010 + if test "${ac_cv_have_x+set}" = set; then
35011 + echo $ECHO_N "(cached) $ECHO_C" >&6
35013 + # One or both of the vars are not set, and there is no cached value.
35014 +ac_x_includes=no ac_x_libraries=no
35015 +rm -fr conftest.dir
35016 +if mkdir conftest.dir; then
35018 + # Make sure to not put "make" in the Imakefile rules, since we grep it out.
35019 + cat >Imakefile <<'_ACEOF'
35021 + @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
35023 + if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
35024 + # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35025 + eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
35026 + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
35027 + for ac_extension in a so sl; do
35028 + if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
35029 + test -f $ac_im_libdir/libX11.$ac_extension; then
35030 + ac_im_usrlibdir=$ac_im_libdir; break
35033 + # Screen out bogus values from the imake configuration. They are
35034 + # bogus both because they are the default anyway, and because
35035 + # using them would break gcc on systems where it needs fixed includes.
35036 + case $ac_im_incroot in
35038 + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
35040 + case $ac_im_usrlibdir in
35041 + /usr/lib | /lib) ;;
35042 + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
35046 + rm -fr conftest.dir
35049 +# Standard set of common directories for X headers.
35050 +# Check X11 before X11Rn because it is often a symlink to the current release.
35051 +ac_x_header_dirs='
35053 +/usr/X11R6/include
35054 +/usr/X11R5/include
35055 +/usr/X11R4/include
35058 +/usr/include/X11R6
35059 +/usr/include/X11R5
35060 +/usr/include/X11R4
35062 +/usr/local/X11/include
35063 +/usr/local/X11R6/include
35064 +/usr/local/X11R5/include
35065 +/usr/local/X11R4/include
35067 +/usr/local/include/X11
35068 +/usr/local/include/X11R6
35069 +/usr/local/include/X11R5
35070 +/usr/local/include/X11R4
35074 +/usr/XFree86/include/X11
35077 +/usr/local/include
35078 +/usr/unsupported/include
35079 +/usr/athena/include
35080 +/usr/local/x11r5/include
35081 +/usr/lpp/Xamples/include
35083 +/usr/openwin/include
35084 +/usr/openwin/share/include'
35086 +if test "$ac_x_includes" = no; then
35087 + # Guess where to find include files, by looking for a specified header file.
35088 + # First, try using that file with no special directory specified.
35089 + cat >conftest.$ac_ext <<_ACEOF
35092 +cat confdefs.h >>conftest.$ac_ext
35093 +cat >>conftest.$ac_ext <<_ACEOF
35094 +/* end confdefs.h. */
35095 +#include <X11/Intrinsic.h>
35097 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35098 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35100 + grep -v '^ *+' conftest.er1 >conftest.err
35101 + rm -f conftest.er1
35102 + cat conftest.err >&5
35103 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104 + (exit $ac_status); } >/dev/null; then
35105 + if test -s conftest.err; then
35106 + ac_cpp_err=$ac_c_preproc_warn_flag
35107 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35114 +if test -z "$ac_cpp_err"; then
35115 + # We can compile using X headers with no special include directory.
35118 + echo "$as_me: failed program was:" >&5
35119 +sed 's/^/| /' conftest.$ac_ext >&5
35121 + for ac_dir in $ac_x_header_dirs; do
35122 + if test -r "$ac_dir/X11/Intrinsic.h"; then
35123 + ac_x_includes=$ac_dir
35128 +rm -f conftest.err conftest.$ac_ext
35129 +fi # $ac_x_includes = no
35131 +if test "$ac_x_libraries" = no; then
35132 + # Check for the libraries.
35133 + # See if we find them without any special options.
35134 + # Don't add to $LIBS permanently.
35135 + ac_save_LIBS=$LIBS
35136 + LIBS="-lXt $LIBS"
35137 + cat >conftest.$ac_ext <<_ACEOF
35140 +cat confdefs.h >>conftest.$ac_ext
35141 +cat >>conftest.$ac_ext <<_ACEOF
35142 +/* end confdefs.h. */
35143 +#include <X11/Intrinsic.h>
35152 +rm -f conftest.$ac_objext conftest$ac_exeext
35153 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35154 + (eval $ac_link) 2>conftest.er1
35156 + grep -v '^ *+' conftest.er1 >conftest.err
35157 + rm -f conftest.er1
35158 + cat conftest.err >&5
35159 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160 + (exit $ac_status); } &&
35161 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35162 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35163 + (eval $ac_try) 2>&5
35165 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 + (exit $ac_status); }; } &&
35167 + { ac_try='test -s conftest$ac_exeext'
35168 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169 + (eval $ac_try) 2>&5
35171 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 + (exit $ac_status); }; }; then
35173 + LIBS=$ac_save_LIBS
35174 +# We can link X programs with no special library path.
35177 + echo "$as_me: failed program was:" >&5
35178 +sed 's/^/| /' conftest.$ac_ext >&5
35180 +LIBS=$ac_save_LIBS
35181 +for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
35183 + # Don't even attempt the hair of trying to link an X program!
35184 + for ac_extension in a so sl; do
35185 + if test -r $ac_dir/libXt.$ac_extension; then
35186 + ac_x_libraries=$ac_dir
35192 +rm -f conftest.err conftest.$ac_objext \
35193 + conftest$ac_exeext conftest.$ac_ext
35194 +fi # $ac_x_libraries = no
35196 +if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
35197 + # Didn't find X anywhere. Cache the known absence of X.
35198 + ac_cv_have_x="have_x=no"
35200 + # Record where we found X for the cache.
35201 + ac_cv_have_x="have_x=yes \
35202 + ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
35207 + eval "$ac_cv_have_x"
35208 +fi # $with_x != no
35210 +if test "$have_x" != yes; then
35211 + echo "$as_me:$LINENO: result: $have_x" >&5
35212 +echo "${ECHO_T}$have_x" >&6
35215 + # If each of the values was on the command line, it overrides each guess.
35216 + test "x$x_includes" = xNONE && x_includes=$ac_x_includes
35217 + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
35218 + # Update the cache value to reflect the command line values.
35219 + ac_cv_have_x="have_x=yes \
35220 + ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
35221 + # It might be that x_includes is empty (headers are found in the
35222 + # standard search path. Then output the corresponding message
35223 + ac_out_x_includes=$x_includes
35224 + test "x$x_includes" = x && ac_out_x_includes="in standard search path"
35225 + echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
35226 +echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
35229 +if test "$no_x" = yes; then
35230 + window_system=none
35232 + window_system=x11
35235 +if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
35236 + LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
35237 + LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
35238 + x_default_search_path=""
35239 + for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
35241 +${x_library}/X11/%L/%T/%N%C%S:\
35242 +${x_library}/X11/%l/%T/%N%C%S:\
35243 +${x_library}/X11/%T/%N%C%S:\
35244 +${x_library}/X11/%L/%T/%N%S:\
35245 +${x_library}/X11/%l/%T/%N%S:\
35246 +${x_library}/X11/%T/%N%S"
35247 + if test x"${x_default_search_path}" = x; then
35248 + x_default_search_path=${x_search_path}
35250 + x_default_search_path="${x_search_path}:${x_default_search_path}"
35254 +if test "${x_includes}" != NONE && test -n "${x_includes}"; then
35255 + C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
35258 +if test x"${x_includes}" = x; then
35259 + bitmapdir=/usr/include/X11/bitmaps
35261 + # accumulate include directories that have X11 bitmap subdirectories
35262 + bmd_acc="dummyval"
35263 + for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
35264 + if test -d "${bmd}/X11/bitmaps"; then
35265 + bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
35267 + if test -d "${bmd}/bitmaps"; then
35268 + bmd_acc="${bmd_acc}:${bmd}/bitmaps"
35271 + if test ${bmd_acc} != "dummyval"; then
35272 + bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
35276 +case "${window_system}" in
35278 + HAVE_X_WINDOWS=yes
35280 + case "${with_x_toolkit}" in
35281 + athena | lucid ) USE_X_TOOLKIT=LUCID ;;
35282 + motif ) USE_X_TOOLKIT=MOTIF ;;
35283 + no ) USE_X_TOOLKIT=none ;;
35284 + * ) USE_X_TOOLKIT=maybe ;;
35288 + HAVE_X_WINDOWS=no
35290 + USE_X_TOOLKIT=none
35294 +### If we're using X11, we should use the X menu package.
35296 +case ${HAVE_X11} in
35297 + yes ) HAVE_MENUS=yes ;;
35300 +if test "${opsys}" = "hpux9"; then
35301 + case "${x_libraries}" in
35303 + opsysfile="s/hpux9-x11r4.h"
35308 +if test "${opsys}" = "hpux9shr"; then
35309 + case "${x_libraries}" in
35311 + opsysfile="s/hpux9shxr4.h"
35316 +### Compute the unexec source name from the object name.
35317 +UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
35319 +# Do the opsystem or machine files prohibit the use of the GNU malloc?
35320 +# Assume not, until told otherwise.
35322 +doug_lea_malloc=yes
35323 +echo "$as_me:$LINENO: checking for malloc_get_state" >&5
35324 +echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
35325 +if test "${ac_cv_func_malloc_get_state+set}" = set; then
35326 + echo $ECHO_N "(cached) $ECHO_C" >&6
35328 + cat >conftest.$ac_ext <<_ACEOF
35331 +cat confdefs.h >>conftest.$ac_ext
35332 +cat >>conftest.$ac_ext <<_ACEOF
35333 +/* end confdefs.h. */
35334 +/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
35335 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
35336 +#define malloc_get_state innocuous_malloc_get_state
35338 +/* System header to define __stub macros and hopefully few prototypes,
35339 + which can conflict with char malloc_get_state (); below.
35340 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35341 + <limits.h> exists even on freestanding compilers. */
35344 +# include <limits.h>
35346 +# include <assert.h>
35349 +#undef malloc_get_state
35351 +/* Override any gcc2 internal prototype to avoid an error. */
35352 +#ifdef __cplusplus
35356 +/* We use char because int might match the return type of a gcc2
35357 + builtin and then its argument prototype would still apply. */
35358 +char malloc_get_state ();
35359 +/* The GNU C library defines this for functions which it implements
35360 + to always fail with ENOSYS. Some functions are actually named
35361 + something starting with __ and the normal name is an alias. */
35362 +#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
35365 +char (*f) () = malloc_get_state;
35367 +#ifdef __cplusplus
35374 +return f != malloc_get_state;
35379 +rm -f conftest.$ac_objext conftest$ac_exeext
35380 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35381 + (eval $ac_link) 2>conftest.er1
35383 + grep -v '^ *+' conftest.er1 >conftest.err
35384 + rm -f conftest.er1
35385 + cat conftest.err >&5
35386 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35387 + (exit $ac_status); } &&
35388 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35389 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35390 + (eval $ac_try) 2>&5
35392 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35393 + (exit $ac_status); }; } &&
35394 + { ac_try='test -s conftest$ac_exeext'
35395 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35396 + (eval $ac_try) 2>&5
35398 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 + (exit $ac_status); }; }; then
35400 + ac_cv_func_malloc_get_state=yes
35402 + echo "$as_me: failed program was:" >&5
35403 +sed 's/^/| /' conftest.$ac_ext >&5
35405 +ac_cv_func_malloc_get_state=no
35407 +rm -f conftest.err conftest.$ac_objext \
35408 + conftest$ac_exeext conftest.$ac_ext
35410 +echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
35411 +echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
35412 +if test $ac_cv_func_malloc_get_state = yes; then
35415 + doug_lea_malloc=no
35418 +echo "$as_me:$LINENO: checking for malloc_set_state" >&5
35419 +echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
35420 +if test "${ac_cv_func_malloc_set_state+set}" = set; then
35421 + echo $ECHO_N "(cached) $ECHO_C" >&6
35423 + cat >conftest.$ac_ext <<_ACEOF
35426 +cat confdefs.h >>conftest.$ac_ext
35427 +cat >>conftest.$ac_ext <<_ACEOF
35428 +/* end confdefs.h. */
35429 +/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
35430 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
35431 +#define malloc_set_state innocuous_malloc_set_state
35433 +/* System header to define __stub macros and hopefully few prototypes,
35434 + which can conflict with char malloc_set_state (); below.
35435 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35436 + <limits.h> exists even on freestanding compilers. */
35439 +# include <limits.h>
35441 +# include <assert.h>
35444 +#undef malloc_set_state
35446 +/* Override any gcc2 internal prototype to avoid an error. */
35447 +#ifdef __cplusplus
35451 +/* We use char because int might match the return type of a gcc2
35452 + builtin and then its argument prototype would still apply. */
35453 +char malloc_set_state ();
35454 +/* The GNU C library defines this for functions which it implements
35455 + to always fail with ENOSYS. Some functions are actually named
35456 + something starting with __ and the normal name is an alias. */
35457 +#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
35460 +char (*f) () = malloc_set_state;
35462 +#ifdef __cplusplus
35469 +return f != malloc_set_state;
35474 +rm -f conftest.$ac_objext conftest$ac_exeext
35475 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35476 + (eval $ac_link) 2>conftest.er1
35478 + grep -v '^ *+' conftest.er1 >conftest.err
35479 + rm -f conftest.er1
35480 + cat conftest.err >&5
35481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482 + (exit $ac_status); } &&
35483 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35484 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35485 + (eval $ac_try) 2>&5
35487 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488 + (exit $ac_status); }; } &&
35489 + { ac_try='test -s conftest$ac_exeext'
35490 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35491 + (eval $ac_try) 2>&5
35493 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35494 + (exit $ac_status); }; }; then
35495 + ac_cv_func_malloc_set_state=yes
35497 + echo "$as_me: failed program was:" >&5
35498 +sed 's/^/| /' conftest.$ac_ext >&5
35500 +ac_cv_func_malloc_set_state=no
35502 +rm -f conftest.err conftest.$ac_objext \
35503 + conftest$ac_exeext conftest.$ac_ext
35505 +echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
35506 +echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
35507 +if test $ac_cv_func_malloc_set_state = yes; then
35510 + doug_lea_malloc=no
35513 +echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
35514 +echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
35515 +if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
35516 + echo $ECHO_N "(cached) $ECHO_C" >&6
35518 + cat >conftest.$ac_ext <<_ACEOF
35521 +cat confdefs.h >>conftest.$ac_ext
35522 +cat >>conftest.$ac_ext <<_ACEOF
35523 +/* end confdefs.h. */
35524 +extern void (* __after_morecore_hook)();
35528 +__after_morecore_hook = 0
35533 +rm -f conftest.$ac_objext conftest$ac_exeext
35534 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35535 + (eval $ac_link) 2>conftest.er1
35537 + grep -v '^ *+' conftest.er1 >conftest.err
35538 + rm -f conftest.er1
35539 + cat conftest.err >&5
35540 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 + (exit $ac_status); } &&
35542 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35543 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35544 + (eval $ac_try) 2>&5
35546 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 + (exit $ac_status); }; } &&
35548 + { ac_try='test -s conftest$ac_exeext'
35549 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35550 + (eval $ac_try) 2>&5
35552 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553 + (exit $ac_status); }; }; then
35554 + emacs_cv_var___after_morecore_hook=yes
35556 + echo "$as_me: failed program was:" >&5
35557 +sed 's/^/| /' conftest.$ac_ext >&5
35559 +emacs_cv_var___after_morecore_hook=no
35561 +rm -f conftest.err conftest.$ac_objext \
35562 + conftest$ac_exeext conftest.$ac_ext
35564 +echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
35565 +echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
35566 +if test $emacs_cv_var___after_morecore_hook = no; then
35567 + doug_lea_malloc=no
35569 +if test "${system_malloc}" = "yes"; then
35571 + GNU_MALLOC_reason="
35572 + (The GNU allocators don't work with this system configuration.)"
35574 +if test "$doug_lea_malloc" = "yes" ; then
35575 + if test "$GNU_MALLOC" = yes ; then
35576 + GNU_MALLOC_reason="
35577 + (Using Doug Lea's new malloc from the GNU C Library.)"
35579 + cat >>confdefs.h <<\_ACEOF
35580 +#define DOUG_LEA_MALLOC 1
35585 +if test x"${REL_ALLOC}" = x; then
35586 + REL_ALLOC=${GNU_MALLOC}
35592 +for ac_header in stdlib.h unistd.h
35594 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35595 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
35596 + echo "$as_me:$LINENO: checking for $ac_header" >&5
35597 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35598 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
35599 + echo $ECHO_N "(cached) $ECHO_C" >&6
35601 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35602 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35604 + # Is the header compilable?
35605 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
35606 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35607 +cat >conftest.$ac_ext <<_ACEOF
35610 +cat confdefs.h >>conftest.$ac_ext
35611 +cat >>conftest.$ac_ext <<_ACEOF
35612 +/* end confdefs.h. */
35613 +$ac_includes_default
35614 +#include <$ac_header>
35616 +rm -f conftest.$ac_objext
35617 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35618 + (eval $ac_compile) 2>conftest.er1
35620 + grep -v '^ *+' conftest.er1 >conftest.err
35621 + rm -f conftest.er1
35622 + cat conftest.err >&5
35623 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 + (exit $ac_status); } &&
35625 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35626 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35627 + (eval $ac_try) 2>&5
35629 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35630 + (exit $ac_status); }; } &&
35631 + { ac_try='test -s conftest.$ac_objext'
35632 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35633 + (eval $ac_try) 2>&5
35635 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35636 + (exit $ac_status); }; }; then
35637 + ac_header_compiler=yes
35639 + echo "$as_me: failed program was:" >&5
35640 +sed 's/^/| /' conftest.$ac_ext >&5
35642 +ac_header_compiler=no
35644 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35645 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35646 +echo "${ECHO_T}$ac_header_compiler" >&6
35648 +# Is the header present?
35649 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
35650 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35651 +cat >conftest.$ac_ext <<_ACEOF
35654 +cat confdefs.h >>conftest.$ac_ext
35655 +cat >>conftest.$ac_ext <<_ACEOF
35656 +/* end confdefs.h. */
35657 +#include <$ac_header>
35659 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35660 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35662 + grep -v '^ *+' conftest.er1 >conftest.err
35663 + rm -f conftest.er1
35664 + cat conftest.err >&5
35665 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666 + (exit $ac_status); } >/dev/null; then
35667 + if test -s conftest.err; then
35668 + ac_cpp_err=$ac_c_preproc_warn_flag
35669 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35676 +if test -z "$ac_cpp_err"; then
35677 + ac_header_preproc=yes
35679 + echo "$as_me: failed program was:" >&5
35680 +sed 's/^/| /' conftest.$ac_ext >&5
35682 + ac_header_preproc=no
35684 +rm -f conftest.err conftest.$ac_ext
35685 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35686 +echo "${ECHO_T}$ac_header_preproc" >&6
35688 +# So? What about this header?
35689 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35691 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35692 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35693 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35694 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35695 + ac_header_preproc=yes
35698 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35699 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35700 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35701 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35702 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35703 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35704 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35705 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35706 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35707 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35708 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35709 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35712 +## ------------------------------------------ ##
35713 +## Report this to the AC_PACKAGE_NAME lists. ##
35714 +## ------------------------------------------ ##
35717 + sed "s/^/$as_me: WARNING: /" >&2
35720 +echo "$as_me:$LINENO: checking for $ac_header" >&5
35721 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35722 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
35723 + echo $ECHO_N "(cached) $ECHO_C" >&6
35725 + eval "$as_ac_Header=\$ac_header_preproc"
35727 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35728 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35731 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
35732 + cat >>confdefs.h <<_ACEOF
35733 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35741 +for ac_func in getpagesize
35743 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35744 +echo "$as_me:$LINENO: checking for $ac_func" >&5
35745 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35746 +if eval "test \"\${$as_ac_var+set}\" = set"; then
35747 + echo $ECHO_N "(cached) $ECHO_C" >&6
35749 + cat >conftest.$ac_ext <<_ACEOF
35752 +cat confdefs.h >>conftest.$ac_ext
35753 +cat >>conftest.$ac_ext <<_ACEOF
35754 +/* end confdefs.h. */
35755 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35756 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
35757 +#define $ac_func innocuous_$ac_func
35759 +/* System header to define __stub macros and hopefully few prototypes,
35760 + which can conflict with char $ac_func (); below.
35761 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35762 + <limits.h> exists even on freestanding compilers. */
35765 +# include <limits.h>
35767 +# include <assert.h>
35772 +/* Override any gcc2 internal prototype to avoid an error. */
35773 +#ifdef __cplusplus
35777 +/* We use char because int might match the return type of a gcc2
35778 + builtin and then its argument prototype would still apply. */
35780 +/* The GNU C library defines this for functions which it implements
35781 + to always fail with ENOSYS. Some functions are actually named
35782 + something starting with __ and the normal name is an alias. */
35783 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35786 +char (*f) () = $ac_func;
35788 +#ifdef __cplusplus
35795 +return f != $ac_func;
35800 +rm -f conftest.$ac_objext conftest$ac_exeext
35801 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35802 + (eval $ac_link) 2>conftest.er1
35804 + grep -v '^ *+' conftest.er1 >conftest.err
35805 + rm -f conftest.er1
35806 + cat conftest.err >&5
35807 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808 + (exit $ac_status); } &&
35809 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35810 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35811 + (eval $ac_try) 2>&5
35813 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814 + (exit $ac_status); }; } &&
35815 + { ac_try='test -s conftest$ac_exeext'
35816 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35817 + (eval $ac_try) 2>&5
35819 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820 + (exit $ac_status); }; }; then
35821 + eval "$as_ac_var=yes"
35823 + echo "$as_me: failed program was:" >&5
35824 +sed 's/^/| /' conftest.$ac_ext >&5
35826 +eval "$as_ac_var=no"
35828 +rm -f conftest.err conftest.$ac_objext \
35829 + conftest$ac_exeext conftest.$ac_ext
35831 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35832 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35833 +if test `eval echo '${'$as_ac_var'}'` = yes; then
35834 + cat >>confdefs.h <<_ACEOF
35835 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35841 +echo "$as_me:$LINENO: checking for working mmap" >&5
35842 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
35843 +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
35844 + echo $ECHO_N "(cached) $ECHO_C" >&6
35846 + if test "$cross_compiling" = yes; then
35847 + ac_cv_func_mmap_fixed_mapped=no
35849 + cat >conftest.$ac_ext <<_ACEOF
35852 +cat confdefs.h >>conftest.$ac_ext
35853 +cat >>conftest.$ac_ext <<_ACEOF
35854 +/* end confdefs.h. */
35855 +$ac_includes_default
35856 +/* malloc might have been renamed as rpl_malloc. */
35859 +/* Thanks to Mike Haertel and Jim Avera for this test.
35860 + Here is a matrix of mmap possibilities:
35861 + mmap private not fixed
35862 + mmap private fixed at somewhere currently unmapped
35863 + mmap private fixed at somewhere already mapped
35864 + mmap shared not fixed
35865 + mmap shared fixed at somewhere currently unmapped
35866 + mmap shared fixed at somewhere already mapped
35867 + For private mappings, we should verify that changes cannot be read()
35868 + back from the file, nor mmap's back from the file at a different
35869 + address. (There have been systems where private was not correctly
35870 + implemented like the infamous i386 svr4.0, and systems where the
35871 + VM page cache was not coherent with the file system buffer cache
35872 + like early versions of FreeBSD and possibly contemporary NetBSD.)
35873 + For shared mappings, we should conversely verify that changes get
35874 + propagated back to all the places they're supposed to be.
35876 + Grep wants private fixed already mapped.
35877 + The main things grep needs to know about mmap are:
35878 + * does it exist and is it safe to write into the mmap'd area
35879 + * how to use it (BSD variants) */
35881 +#include <fcntl.h>
35882 +#include <sys/mman.h>
35884 +#if !STDC_HEADERS && !HAVE_STDLIB_H
35888 +/* This mess was copied from the GNU getpagesize.h. */
35889 +#if !HAVE_GETPAGESIZE
35890 +/* Assume that all systems that can run configure have sys/param.h. */
35891 +# if !HAVE_SYS_PARAM_H
35892 +# define HAVE_SYS_PARAM_H 1
35895 +# ifdef _SC_PAGESIZE
35896 +# define getpagesize() sysconf(_SC_PAGESIZE)
35897 +# else /* no _SC_PAGESIZE */
35898 +# if HAVE_SYS_PARAM_H
35899 +# include <sys/param.h>
35900 +# ifdef EXEC_PAGESIZE
35901 +# define getpagesize() EXEC_PAGESIZE
35902 +# else /* no EXEC_PAGESIZE */
35904 +# define getpagesize() NBPG * CLSIZE
35907 +# endif /* no CLSIZE */
35908 +# else /* no NBPG */
35910 +# define getpagesize() NBPC
35911 +# else /* no NBPC */
35913 +# define getpagesize() PAGESIZE
35914 +# endif /* PAGESIZE */
35915 +# endif /* no NBPC */
35916 +# endif /* no NBPG */
35917 +# endif /* no EXEC_PAGESIZE */
35918 +# else /* no HAVE_SYS_PARAM_H */
35919 +# define getpagesize() 8192 /* punt totally */
35920 +# endif /* no HAVE_SYS_PARAM_H */
35921 +# endif /* no _SC_PAGESIZE */
35923 +#endif /* no HAVE_GETPAGESIZE */
35928 + char *data, *data2, *data3;
35932 + pagesize = getpagesize ();
35934 + /* First, make a file with some known garbage in it. */
35935 + data = (char *) malloc (pagesize);
35938 + for (i = 0; i < pagesize; ++i)
35939 + *(data + i) = rand ();
35941 + fd = creat ("conftest.mmap", 0600);
35944 + if (write (fd, data, pagesize) != pagesize)
35948 + /* Next, try to mmap the file at a fixed address which already has
35949 + something else allocated at it. If we can, also make sure that
35950 + we see the same garbage. */
35951 + fd = open ("conftest.mmap", O_RDWR);
35954 + data2 = (char *) malloc (2 * pagesize);
35957 + data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
35958 + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
35959 + MAP_PRIVATE | MAP_FIXED, fd, 0L))
35961 + for (i = 0; i < pagesize; ++i)
35962 + if (*(data + i) != *(data2 + i))
35965 + /* Finally, make sure that changes to the mapped area do not
35966 + percolate back to the file as seen by read(). (This is a bug on
35967 + some variants of i386 svr4.0.) */
35968 + for (i = 0; i < pagesize; ++i)
35969 + *(data2 + i) = *(data2 + i) + 1;
35970 + data3 = (char *) malloc (pagesize);
35973 + if (read (fd, data3, pagesize) != pagesize)
35975 + for (i = 0; i < pagesize; ++i)
35976 + if (*(data + i) != *(data3 + i))
35982 +rm -f conftest$ac_exeext
35983 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35984 + (eval $ac_link) 2>&5
35986 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35988 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35989 + (eval $ac_try) 2>&5
35991 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35992 + (exit $ac_status); }; }; then
35993 + ac_cv_func_mmap_fixed_mapped=yes
35995 + echo "$as_me: program exited with status $ac_status" >&5
35996 +echo "$as_me: failed program was:" >&5
35997 +sed 's/^/| /' conftest.$ac_ext >&5
35999 +( exit $ac_status )
36000 +ac_cv_func_mmap_fixed_mapped=no
36002 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36005 +echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
36006 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
36007 +if test $ac_cv_func_mmap_fixed_mapped = yes; then
36009 +cat >>confdefs.h <<\_ACEOF
36010 +#define HAVE_MMAP 1
36014 +rm -f conftest.mmap
36016 +if test $use_mmap_for_buffers = yes; then
36020 +LIBS="$libsrc_libs $LIBS"
36023 +echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
36024 +echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
36025 +if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
36026 + echo $ECHO_N "(cached) $ECHO_C" >&6
36028 + ac_check_lib_save_LIBS=$LIBS
36029 +LIBS="-ldnet $LIBS"
36030 +cat >conftest.$ac_ext <<_ACEOF
36033 +cat confdefs.h >>conftest.$ac_ext
36034 +cat >>conftest.$ac_ext <<_ACEOF
36035 +/* end confdefs.h. */
36037 +/* Override any gcc2 internal prototype to avoid an error. */
36038 +#ifdef __cplusplus
36041 +/* We use char because int might match the return type of a gcc2
36042 + builtin and then its argument prototype would still apply. */
36043 +char dnet_ntoa ();
36052 +rm -f conftest.$ac_objext conftest$ac_exeext
36053 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36054 + (eval $ac_link) 2>conftest.er1
36056 + grep -v '^ *+' conftest.er1 >conftest.err
36057 + rm -f conftest.er1
36058 + cat conftest.err >&5
36059 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 + (exit $ac_status); } &&
36061 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36062 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36063 + (eval $ac_try) 2>&5
36065 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066 + (exit $ac_status); }; } &&
36067 + { ac_try='test -s conftest$ac_exeext'
36068 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36069 + (eval $ac_try) 2>&5
36071 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 + (exit $ac_status); }; }; then
36073 + ac_cv_lib_dnet_dnet_ntoa=yes
36075 + echo "$as_me: failed program was:" >&5
36076 +sed 's/^/| /' conftest.$ac_ext >&5
36078 +ac_cv_lib_dnet_dnet_ntoa=no
36080 +rm -f conftest.err conftest.$ac_objext \
36081 + conftest$ac_exeext conftest.$ac_ext
36082 +LIBS=$ac_check_lib_save_LIBS
36084 +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
36085 +echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
36086 +if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
36087 + cat >>confdefs.h <<_ACEOF
36088 +#define HAVE_LIBDNET 1
36091 + LIBS="-ldnet $LIBS"
36096 +echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
36097 +echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
36098 +if test "${ac_cv_lib_Xbsd_main+set}" = set; then
36099 + echo $ECHO_N "(cached) $ECHO_C" >&6
36101 + ac_check_lib_save_LIBS=$LIBS
36102 +LIBS="-lXbsd $LIBS"
36103 +cat >conftest.$ac_ext <<_ACEOF
36106 +cat confdefs.h >>conftest.$ac_ext
36107 +cat >>conftest.$ac_ext <<_ACEOF
36108 +/* end confdefs.h. */
36119 +rm -f conftest.$ac_objext conftest$ac_exeext
36120 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36121 + (eval $ac_link) 2>conftest.er1
36123 + grep -v '^ *+' conftest.er1 >conftest.err
36124 + rm -f conftest.er1
36125 + cat conftest.err >&5
36126 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 + (exit $ac_status); } &&
36128 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36129 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 + (eval $ac_try) 2>&5
36132 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 + (exit $ac_status); }; } &&
36134 + { ac_try='test -s conftest$ac_exeext'
36135 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36136 + (eval $ac_try) 2>&5
36138 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 + (exit $ac_status); }; }; then
36140 + ac_cv_lib_Xbsd_main=yes
36142 + echo "$as_me: failed program was:" >&5
36143 +sed 's/^/| /' conftest.$ac_ext >&5
36145 +ac_cv_lib_Xbsd_main=no
36147 +rm -f conftest.err conftest.$ac_objext \
36148 + conftest$ac_exeext conftest.$ac_ext
36149 +LIBS=$ac_check_lib_save_LIBS
36151 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
36152 +echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
36153 +if test $ac_cv_lib_Xbsd_main = yes; then
36154 + LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
36159 +echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
36160 +echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
36161 +if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
36162 + echo $ECHO_N "(cached) $ECHO_C" >&6
36164 + ac_check_lib_save_LIBS=$LIBS
36165 +LIBS="-lpthreads $LIBS"
36166 +cat >conftest.$ac_ext <<_ACEOF
36169 +cat confdefs.h >>conftest.$ac_ext
36170 +cat >>conftest.$ac_ext <<_ACEOF
36171 +/* end confdefs.h. */
36173 +/* Override any gcc2 internal prototype to avoid an error. */
36174 +#ifdef __cplusplus
36177 +/* We use char because int might match the return type of a gcc2
36178 + builtin and then its argument prototype would still apply. */
36188 +rm -f conftest.$ac_objext conftest$ac_exeext
36189 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36190 + (eval $ac_link) 2>conftest.er1
36192 + grep -v '^ *+' conftest.er1 >conftest.err
36193 + rm -f conftest.er1
36194 + cat conftest.err >&5
36195 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 + (exit $ac_status); } &&
36197 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36198 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199 + (eval $ac_try) 2>&5
36201 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 + (exit $ac_status); }; } &&
36203 + { ac_try='test -s conftest$ac_exeext'
36204 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36205 + (eval $ac_try) 2>&5
36207 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208 + (exit $ac_status); }; }; then
36209 + ac_cv_lib_pthreads_cma_open=yes
36211 + echo "$as_me: failed program was:" >&5
36212 +sed 's/^/| /' conftest.$ac_ext >&5
36214 +ac_cv_lib_pthreads_cma_open=no
36216 +rm -f conftest.err conftest.$ac_objext \
36217 + conftest$ac_exeext conftest.$ac_ext
36218 +LIBS=$ac_check_lib_save_LIBS
36220 +echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
36221 +echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
36222 +if test $ac_cv_lib_pthreads_cma_open = yes; then
36223 + cat >>confdefs.h <<_ACEOF
36224 +#define HAVE_LIBPTHREADS 1
36227 + LIBS="-lpthreads $LIBS"
36232 +echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
36233 +echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
36234 +if test -d /usr/X386/include; then
36235 + HAVE_XFREE386=yes
36236 + : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
36240 +echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
36241 +echo "${ECHO_T}$HAVE_XFREE386" >&6
36244 +case ${host_os} in
36246 + echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
36247 +echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
36248 +if test "${gdb_cv_bigtoc+set}" = set; then
36249 + echo $ECHO_N "(cached) $ECHO_C" >&6
36253 + yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
36254 + *) gdb_cv_bigtoc=-bbigtoc ;;
36257 + LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
36258 + cat >conftest.$ac_ext <<_ACEOF
36261 +cat confdefs.h >>conftest.$ac_ext
36262 +cat >>conftest.$ac_ext <<_ACEOF
36263 +/* end confdefs.h. */
36273 +rm -f conftest.$ac_objext conftest$ac_exeext
36274 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36275 + (eval $ac_link) 2>conftest.er1
36277 + grep -v '^ *+' conftest.er1 >conftest.err
36278 + rm -f conftest.er1
36279 + cat conftest.err >&5
36280 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36281 + (exit $ac_status); } &&
36282 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36283 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36284 + (eval $ac_try) 2>&5
36286 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 + (exit $ac_status); }; } &&
36288 + { ac_try='test -s conftest$ac_exeext'
36289 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36290 + (eval $ac_try) 2>&5
36292 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293 + (exit $ac_status); }; }; then
36296 + echo "$as_me: failed program was:" >&5
36297 +sed 's/^/| /' conftest.$ac_ext >&5
36301 +rm -f conftest.err conftest.$ac_objext \
36302 + conftest$ac_exeext conftest.$ac_ext
36305 +echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
36306 +echo "${ECHO_T}$gdb_cv_bigtoc" >&6
36310 +# Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
36311 +# for the tests that follow. We set it back to REAL_CFLAGS later on.
36313 +REAL_CPPFLAGS="$CPPFLAGS"
36315 +if test "${HAVE_X11}" = "yes"; then
36316 + DEFS="$C_SWITCH_X_SITE $DEFS"
36317 + LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
36318 + LIBS="$LIBX $LIBS"
36319 + CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
36320 + CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
36322 + # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
36323 + # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
36324 + # but it's more convenient here to set LD_RUN_PATH
36325 + # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
36326 + if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
36327 + LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
36328 + export LD_RUN_PATH
36331 + if test "${opsys}" = "gnu-linux"; then
36332 + echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
36333 +echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
36334 + cat >conftest.$ac_ext <<_ACEOF
36337 +cat confdefs.h >>conftest.$ac_ext
36338 +cat >>conftest.$ac_ext <<_ACEOF
36339 +/* end confdefs.h. */
36344 +XOpenDisplay ("foo");
36349 +rm -f conftest.$ac_objext conftest$ac_exeext
36350 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36351 + (eval $ac_link) 2>conftest.er1
36353 + grep -v '^ *+' conftest.er1 >conftest.err
36354 + rm -f conftest.er1
36355 + cat conftest.err >&5
36356 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36357 + (exit $ac_status); } &&
36358 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36359 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36360 + (eval $ac_try) 2>&5
36362 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363 + (exit $ac_status); }; } &&
36364 + { ac_try='test -s conftest$ac_exeext'
36365 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36366 + (eval $ac_try) 2>&5
36368 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369 + (exit $ac_status); }; }; then
36370 + xlinux_first_failure=no
36372 + echo "$as_me: failed program was:" >&5
36373 +sed 's/^/| /' conftest.$ac_ext >&5
36375 +xlinux_first_failure=yes
36377 +rm -f conftest.err conftest.$ac_objext \
36378 + conftest$ac_exeext conftest.$ac_ext
36379 + if test "${xlinux_first_failure}" = "yes"; then
36380 + OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
36381 + OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
36382 + OLD_CPPFLAGS="$CPPFLAGS"
36384 + LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
36385 + C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
36386 + CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
36387 + LIBS="$LIBS -b i486-linuxaout"
36388 + cat >conftest.$ac_ext <<_ACEOF
36391 +cat confdefs.h >>conftest.$ac_ext
36392 +cat >>conftest.$ac_ext <<_ACEOF
36393 +/* end confdefs.h. */
36398 +XOpenDisplay ("foo");
36403 +rm -f conftest.$ac_objext conftest$ac_exeext
36404 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36405 + (eval $ac_link) 2>conftest.er1
36407 + grep -v '^ *+' conftest.er1 >conftest.err
36408 + rm -f conftest.er1
36409 + cat conftest.err >&5
36410 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 + (exit $ac_status); } &&
36412 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36413 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36414 + (eval $ac_try) 2>&5
36416 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417 + (exit $ac_status); }; } &&
36418 + { ac_try='test -s conftest$ac_exeext'
36419 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36420 + (eval $ac_try) 2>&5
36422 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423 + (exit $ac_status); }; }; then
36424 + xlinux_second_failure=no
36426 + echo "$as_me: failed program was:" >&5
36427 +sed 's/^/| /' conftest.$ac_ext >&5
36429 +xlinux_second_failure=yes
36431 +rm -f conftest.err conftest.$ac_objext \
36432 + conftest$ac_exeext conftest.$ac_ext
36433 + if test "${xlinux_second_failure}" = "yes"; then
36434 + # If we get the same failure with -b, there is no use adding -b.
36435 + # So take it out. This plays safe.
36436 + LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
36437 + C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
36438 + CPPFLAGS="$OLD_CPPFLAGS"
36440 + echo "$as_me:$LINENO: result: no" >&5
36441 +echo "${ECHO_T}no" >&6
36443 + echo "$as_me:$LINENO: result: yes" >&5
36444 +echo "${ECHO_T}yes" >&6
36447 + echo "$as_me:$LINENO: result: no" >&5
36448 +echo "${ECHO_T}no" >&6
36452 + # Reportedly, some broken Solaris systems have XKBlib.h but are missing
36453 + # header files included from there.
36454 + echo "$as_me:$LINENO: checking for Xkb" >&5
36455 +echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
36456 + cat >conftest.$ac_ext <<_ACEOF
36459 +cat confdefs.h >>conftest.$ac_ext
36460 +cat >>conftest.$ac_ext <<_ACEOF
36461 +/* end confdefs.h. */
36462 +#include <X11/Xlib.h>
36463 +#include <X11/XKBlib.h>
36467 +XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
36472 +rm -f conftest.$ac_objext conftest$ac_exeext
36473 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36474 + (eval $ac_link) 2>conftest.er1
36476 + grep -v '^ *+' conftest.er1 >conftest.err
36477 + rm -f conftest.er1
36478 + cat conftest.err >&5
36479 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 + (exit $ac_status); } &&
36481 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36482 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36483 + (eval $ac_try) 2>&5
36485 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36486 + (exit $ac_status); }; } &&
36487 + { ac_try='test -s conftest$ac_exeext'
36488 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36489 + (eval $ac_try) 2>&5
36491 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492 + (exit $ac_status); }; }; then
36495 + echo "$as_me: failed program was:" >&5
36496 +sed 's/^/| /' conftest.$ac_ext >&5
36500 +rm -f conftest.err conftest.$ac_objext \
36501 + conftest$ac_exeext conftest.$ac_ext
36502 + echo "$as_me:$LINENO: result: $emacs_xkb" >&5
36503 +echo "${ECHO_T}$emacs_xkb" >&6
36504 + if test $emacs_xkb = yes; then
36505 + cat >>confdefs.h <<\_ACEOF
36506 +#define HAVE_XKBGETKEYBOARD 1
36515 +for ac_func in XrmSetDatabase XScreenResourceString \
36516 +XScreenNumberOfScreen XSetWMProtocols
36518 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36519 +echo "$as_me:$LINENO: checking for $ac_func" >&5
36520 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36521 +if eval "test \"\${$as_ac_var+set}\" = set"; then
36522 + echo $ECHO_N "(cached) $ECHO_C" >&6
36524 + cat >conftest.$ac_ext <<_ACEOF
36527 +cat confdefs.h >>conftest.$ac_ext
36528 +cat >>conftest.$ac_ext <<_ACEOF
36529 +/* end confdefs.h. */
36530 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36531 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
36532 +#define $ac_func innocuous_$ac_func
36534 +/* System header to define __stub macros and hopefully few prototypes,
36535 + which can conflict with char $ac_func (); below.
36536 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36537 + <limits.h> exists even on freestanding compilers. */
36540 +# include <limits.h>
36542 +# include <assert.h>
36547 +/* Override any gcc2 internal prototype to avoid an error. */
36548 +#ifdef __cplusplus
36552 +/* We use char because int might match the return type of a gcc2
36553 + builtin and then its argument prototype would still apply. */
36555 +/* The GNU C library defines this for functions which it implements
36556 + to always fail with ENOSYS. Some functions are actually named
36557 + something starting with __ and the normal name is an alias. */
36558 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36561 +char (*f) () = $ac_func;
36563 +#ifdef __cplusplus
36570 +return f != $ac_func;
36575 +rm -f conftest.$ac_objext conftest$ac_exeext
36576 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36577 + (eval $ac_link) 2>conftest.er1
36579 + grep -v '^ *+' conftest.er1 >conftest.err
36580 + rm -f conftest.er1
36581 + cat conftest.err >&5
36582 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583 + (exit $ac_status); } &&
36584 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36585 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36586 + (eval $ac_try) 2>&5
36588 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589 + (exit $ac_status); }; } &&
36590 + { ac_try='test -s conftest$ac_exeext'
36591 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36592 + (eval $ac_try) 2>&5
36594 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595 + (exit $ac_status); }; }; then
36596 + eval "$as_ac_var=yes"
36598 + echo "$as_me: failed program was:" >&5
36599 +sed 's/^/| /' conftest.$ac_ext >&5
36601 +eval "$as_ac_var=no"
36603 +rm -f conftest.err conftest.$ac_objext \
36604 + conftest$ac_exeext conftest.$ac_ext
36606 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36607 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36608 +if test `eval echo '${'$as_ac_var'}'` = yes; then
36609 + cat >>confdefs.h <<_ACEOF
36610 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36618 +if test "${window_system}" = "x11"; then
36619 + echo "$as_me:$LINENO: checking X11 version 6" >&5
36620 +echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
36621 + if test "${emacs_cv_x11_version_6+set}" = set; then
36622 + echo $ECHO_N "(cached) $ECHO_C" >&6
36624 + cat >conftest.$ac_ext <<_ACEOF
36627 +cat confdefs.h >>conftest.$ac_ext
36628 +cat >>conftest.$ac_ext <<_ACEOF
36629 +/* end confdefs.h. */
36630 +#include <X11/Xlib.h>
36634 +#if XlibSpecificationRelease < 6
36642 +rm -f conftest.$ac_objext conftest$ac_exeext
36643 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36644 + (eval $ac_link) 2>conftest.er1
36646 + grep -v '^ *+' conftest.er1 >conftest.err
36647 + rm -f conftest.er1
36648 + cat conftest.err >&5
36649 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650 + (exit $ac_status); } &&
36651 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36652 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36653 + (eval $ac_try) 2>&5
36655 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 + (exit $ac_status); }; } &&
36657 + { ac_try='test -s conftest$ac_exeext'
36658 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659 + (eval $ac_try) 2>&5
36661 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 + (exit $ac_status); }; }; then
36663 + emacs_cv_x11_version_6=yes
36665 + echo "$as_me: failed program was:" >&5
36666 +sed 's/^/| /' conftest.$ac_ext >&5
36668 +emacs_cv_x11_version_6=no
36670 +rm -f conftest.err conftest.$ac_objext \
36671 + conftest$ac_exeext conftest.$ac_ext
36674 + if test $emacs_cv_x11_version_6 = yes; then
36675 + echo "$as_me:$LINENO: result: 6 or newer" >&5
36676 +echo "${ECHO_T}6 or newer" >&6
36677 + cat >>confdefs.h <<\_ACEOF
36678 +#define HAVE_X11R6 1
36682 + echo "$as_me:$LINENO: result: before 6" >&5
36683 +echo "${ECHO_T}before 6" >&6
36687 +if test "${window_system}" = "x11"; then
36688 + echo "$as_me:$LINENO: checking X11 version 5" >&5
36689 +echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
36690 + if test "${emacs_cv_x11_version_5+set}" = set; then
36691 + echo $ECHO_N "(cached) $ECHO_C" >&6
36693 + cat >conftest.$ac_ext <<_ACEOF
36696 +cat confdefs.h >>conftest.$ac_ext
36697 +cat >>conftest.$ac_ext <<_ACEOF
36698 +/* end confdefs.h. */
36699 +#include <X11/Xlib.h>
36703 +#if XlibSpecificationRelease < 5
36711 +rm -f conftest.$ac_objext conftest$ac_exeext
36712 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36713 + (eval $ac_link) 2>conftest.er1
36715 + grep -v '^ *+' conftest.er1 >conftest.err
36716 + rm -f conftest.er1
36717 + cat conftest.err >&5
36718 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719 + (exit $ac_status); } &&
36720 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36721 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36722 + (eval $ac_try) 2>&5
36724 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725 + (exit $ac_status); }; } &&
36726 + { ac_try='test -s conftest$ac_exeext'
36727 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36728 + (eval $ac_try) 2>&5
36730 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731 + (exit $ac_status); }; }; then
36732 + emacs_cv_x11_version_5=yes
36734 + echo "$as_me: failed program was:" >&5
36735 +sed 's/^/| /' conftest.$ac_ext >&5
36737 +emacs_cv_x11_version_5=no
36739 +rm -f conftest.err conftest.$ac_objext \
36740 + conftest$ac_exeext conftest.$ac_ext
36743 + if test $emacs_cv_x11_version_5 = yes; then
36744 + echo "$as_me:$LINENO: result: 5 or newer" >&5
36745 +echo "${ECHO_T}5 or newer" >&6
36747 + cat >>confdefs.h <<\_ACEOF
36748 +#define HAVE_X11R5 1
36753 + echo "$as_me:$LINENO: result: before 5" >&5
36754 +echo "${ECHO_T}before 5" >&6
36758 +if test x"${USE_X_TOOLKIT}" = xmaybe; then
36759 + if test x"${HAVE_X11R5}" = xyes; then
36760 + echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
36761 +echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
36762 + if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
36763 + echo $ECHO_N "(cached) $ECHO_C" >&6
36765 + cat >conftest.$ac_ext <<_ACEOF
36768 +cat confdefs.h >>conftest.$ac_ext
36769 +cat >>conftest.$ac_ext <<_ACEOF
36770 +/* end confdefs.h. */
36772 +#include <X11/Intrinsic.h>
36773 +#include <X11/Xaw/Simple.h>
36782 +rm -f conftest.$ac_objext conftest$ac_exeext
36783 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36784 + (eval $ac_link) 2>conftest.er1
36786 + grep -v '^ *+' conftest.er1 >conftest.err
36787 + rm -f conftest.er1
36788 + cat conftest.err >&5
36789 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36790 + (exit $ac_status); } &&
36791 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36792 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793 + (eval $ac_try) 2>&5
36795 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 + (exit $ac_status); }; } &&
36797 + { ac_try='test -s conftest$ac_exeext'
36798 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799 + (eval $ac_try) 2>&5
36801 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802 + (exit $ac_status); }; }; then
36803 + emacs_cv_x11_version_5_with_xaw=yes
36805 + echo "$as_me: failed program was:" >&5
36806 +sed 's/^/| /' conftest.$ac_ext >&5
36808 +emacs_cv_x11_version_5_with_xaw=no
36810 +rm -f conftest.err conftest.$ac_objext \
36811 + conftest$ac_exeext conftest.$ac_ext
36814 + if test $emacs_cv_x11_version_5_with_xaw = yes; then
36815 + echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
36816 +echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
36817 + USE_X_TOOLKIT=LUCID
36819 + echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
36820 +echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
36821 + USE_X_TOOLKIT=none
36824 + USE_X_TOOLKIT=none
36828 +X_TOOLKIT_TYPE=$USE_X_TOOLKIT
36830 +if test "${USE_X_TOOLKIT}" != "none"; then
36831 + echo "$as_me:$LINENO: checking X11 toolkit version" >&5
36832 +echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
36833 + if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
36834 + echo $ECHO_N "(cached) $ECHO_C" >&6
36836 + cat >conftest.$ac_ext <<_ACEOF
36839 +cat confdefs.h >>conftest.$ac_ext
36840 +cat >>conftest.$ac_ext <<_ACEOF
36841 +/* end confdefs.h. */
36842 +#include <X11/Intrinsic.h>
36846 +#if XtSpecificationRelease < 6
36854 +rm -f conftest.$ac_objext conftest$ac_exeext
36855 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36856 + (eval $ac_link) 2>conftest.er1
36858 + grep -v '^ *+' conftest.er1 >conftest.err
36859 + rm -f conftest.er1
36860 + cat conftest.err >&5
36861 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 + (exit $ac_status); } &&
36863 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36864 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36865 + (eval $ac_try) 2>&5
36867 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36868 + (exit $ac_status); }; } &&
36869 + { ac_try='test -s conftest$ac_exeext'
36870 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36871 + (eval $ac_try) 2>&5
36873 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874 + (exit $ac_status); }; }; then
36875 + emacs_cv_x11_toolkit_version_6=yes
36877 + echo "$as_me: failed program was:" >&5
36878 +sed 's/^/| /' conftest.$ac_ext >&5
36880 +emacs_cv_x11_toolkit_version_6=no
36882 +rm -f conftest.err conftest.$ac_objext \
36883 + conftest$ac_exeext conftest.$ac_ext
36886 + HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
36887 + if test $emacs_cv_x11_toolkit_version_6 = yes; then
36888 + echo "$as_me:$LINENO: result: 6 or newer" >&5
36889 +echo "${ECHO_T}6 or newer" >&6
36890 + cat >>confdefs.h <<\_ACEOF
36891 +#define HAVE_X11XTR6 1
36895 + echo "$as_me:$LINENO: result: before 6" >&5
36896 +echo "${ECHO_T}before 6" >&6
36900 + if test x$HAVE_X11XTR6 = xyes; then
36901 + LIBS="-lXt -lSM -lICE $LIBS"
36903 + LIBS="-lXt $LIBS"
36906 +echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
36907 +echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
36908 +if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
36909 + echo $ECHO_N "(cached) $ECHO_C" >&6
36911 + ac_check_lib_save_LIBS=$LIBS
36912 +LIBS="-lXmu $LIBS"
36913 +cat >conftest.$ac_ext <<_ACEOF
36916 +cat confdefs.h >>conftest.$ac_ext
36917 +cat >>conftest.$ac_ext <<_ACEOF
36918 +/* end confdefs.h. */
36920 +/* Override any gcc2 internal prototype to avoid an error. */
36921 +#ifdef __cplusplus
36924 +/* We use char because int might match the return type of a gcc2
36925 + builtin and then its argument prototype would still apply. */
36926 +char XmuConvertStandardSelection ();
36930 +XmuConvertStandardSelection ();
36935 +rm -f conftest.$ac_objext conftest$ac_exeext
36936 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36937 + (eval $ac_link) 2>conftest.er1
36939 + grep -v '^ *+' conftest.er1 >conftest.err
36940 + rm -f conftest.er1
36941 + cat conftest.err >&5
36942 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 + (exit $ac_status); } &&
36944 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36945 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36946 + (eval $ac_try) 2>&5
36948 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 + (exit $ac_status); }; } &&
36950 + { ac_try='test -s conftest$ac_exeext'
36951 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36952 + (eval $ac_try) 2>&5
36954 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955 + (exit $ac_status); }; }; then
36956 + ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
36958 + echo "$as_me: failed program was:" >&5
36959 +sed 's/^/| /' conftest.$ac_ext >&5
36961 +ac_cv_lib_Xmu_XmuConvertStandardSelection=no
36963 +rm -f conftest.err conftest.$ac_objext \
36964 + conftest$ac_exeext conftest.$ac_ext
36965 +LIBS=$ac_check_lib_save_LIBS
36967 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
36968 +echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
36969 +if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
36970 + cat >>confdefs.h <<_ACEOF
36971 +#define HAVE_LIBXMU 1
36974 + LIBS="-lXmu $LIBS"
36978 + test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
36981 +# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
36982 +if test "${HAVE_X11}" = "yes"; then
36983 + if test "${USE_X_TOOLKIT}" != "none"; then
36985 +echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
36986 +echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
36987 +if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
36988 + echo $ECHO_N "(cached) $ECHO_C" >&6
36990 + ac_check_lib_save_LIBS=$LIBS
36991 +LIBS="-lXext $LIBS"
36992 +cat >conftest.$ac_ext <<_ACEOF
36995 +cat confdefs.h >>conftest.$ac_ext
36996 +cat >>conftest.$ac_ext <<_ACEOF
36997 +/* end confdefs.h. */
36999 +/* Override any gcc2 internal prototype to avoid an error. */
37000 +#ifdef __cplusplus
37003 +/* We use char because int might match the return type of a gcc2
37004 + builtin and then its argument prototype would still apply. */
37005 +char XShapeQueryExtension ();
37009 +XShapeQueryExtension ();
37014 +rm -f conftest.$ac_objext conftest$ac_exeext
37015 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37016 + (eval $ac_link) 2>conftest.er1
37018 + grep -v '^ *+' conftest.er1 >conftest.err
37019 + rm -f conftest.er1
37020 + cat conftest.err >&5
37021 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022 + (exit $ac_status); } &&
37023 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37024 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37025 + (eval $ac_try) 2>&5
37027 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37028 + (exit $ac_status); }; } &&
37029 + { ac_try='test -s conftest$ac_exeext'
37030 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37031 + (eval $ac_try) 2>&5
37033 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37034 + (exit $ac_status); }; }; then
37035 + ac_cv_lib_Xext_XShapeQueryExtension=yes
37037 + echo "$as_me: failed program was:" >&5
37038 +sed 's/^/| /' conftest.$ac_ext >&5
37040 +ac_cv_lib_Xext_XShapeQueryExtension=no
37042 +rm -f conftest.err conftest.$ac_objext \
37043 + conftest$ac_exeext conftest.$ac_ext
37044 +LIBS=$ac_check_lib_save_LIBS
37046 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
37047 +echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
37048 +if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
37049 + cat >>confdefs.h <<_ACEOF
37050 +#define HAVE_LIBXEXT 1
37053 + LIBS="-lXext $LIBS"
37060 +if test "${USE_X_TOOLKIT}" = "MOTIF"; then
37061 + echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
37062 +echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
37063 +if test "${emacs_cv_motif_version_2_1+set}" = set; then
37064 + echo $ECHO_N "(cached) $ECHO_C" >&6
37066 + cat >conftest.$ac_ext <<_ACEOF
37069 +cat confdefs.h >>conftest.$ac_ext
37070 +cat >>conftest.$ac_ext <<_ACEOF
37071 +/* end confdefs.h. */
37072 +#include <Xm/Xm.h>
37076 +#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
37079 +Motif version prior to 2.1.
37085 +rm -f conftest.$ac_objext
37086 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37087 + (eval $ac_compile) 2>conftest.er1
37089 + grep -v '^ *+' conftest.er1 >conftest.err
37090 + rm -f conftest.er1
37091 + cat conftest.err >&5
37092 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093 + (exit $ac_status); } &&
37094 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37095 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37096 + (eval $ac_try) 2>&5
37098 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 + (exit $ac_status); }; } &&
37100 + { ac_try='test -s conftest.$ac_objext'
37101 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102 + (eval $ac_try) 2>&5
37104 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 + (exit $ac_status); }; }; then
37106 + emacs_cv_motif_version_2_1=yes
37108 + echo "$as_me: failed program was:" >&5
37109 +sed 's/^/| /' conftest.$ac_ext >&5
37111 +emacs_cv_motif_version_2_1=no
37113 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37115 +echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
37116 +echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
37117 + HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
37118 + if test $emacs_cv_motif_version_2_1 = yes; then
37120 + cat >>confdefs.h <<\_ACEOF
37121 +#define HAVE_MOTIF_2_1 1
37124 + echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
37125 +echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
37126 +if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
37127 + echo $ECHO_N "(cached) $ECHO_C" >&6
37129 + ac_check_lib_save_LIBS=$LIBS
37131 +cat >conftest.$ac_ext <<_ACEOF
37134 +cat confdefs.h >>conftest.$ac_ext
37135 +cat >>conftest.$ac_ext <<_ACEOF
37136 +/* end confdefs.h. */
37138 +/* Override any gcc2 internal prototype to avoid an error. */
37139 +#ifdef __cplusplus
37142 +/* We use char because int might match the return type of a gcc2
37143 + builtin and then its argument prototype would still apply. */
37144 +char XpCreateContext ();
37148 +XpCreateContext ();
37153 +rm -f conftest.$ac_objext conftest$ac_exeext
37154 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37155 + (eval $ac_link) 2>conftest.er1
37157 + grep -v '^ *+' conftest.er1 >conftest.err
37158 + rm -f conftest.er1
37159 + cat conftest.err >&5
37160 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 + (exit $ac_status); } &&
37162 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37163 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37164 + (eval $ac_try) 2>&5
37166 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 + (exit $ac_status); }; } &&
37168 + { ac_try='test -s conftest$ac_exeext'
37169 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37170 + (eval $ac_try) 2>&5
37172 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 + (exit $ac_status); }; }; then
37174 + ac_cv_lib_Xp_XpCreateContext=yes
37176 + echo "$as_me: failed program was:" >&5
37177 +sed 's/^/| /' conftest.$ac_ext >&5
37179 +ac_cv_lib_Xp_XpCreateContext=no
37181 +rm -f conftest.err conftest.$ac_objext \
37182 + conftest$ac_exeext conftest.$ac_ext
37183 +LIBS=$ac_check_lib_save_LIBS
37185 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
37186 +echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
37187 +if test $ac_cv_lib_Xp_XpCreateContext = yes; then
37191 + if test ${HAVE_LIBXP} = yes; then
37192 + cat >>confdefs.h <<\_ACEOF
37193 +#define HAVE_LIBXP 1
37200 +### Is -lXaw3d available?
37202 +if test "${HAVE_X11}" = "yes"; then
37203 + if test "${USE_X_TOOLKIT}" != "none"; then
37204 + if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
37205 + echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
37206 +echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
37207 +if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
37208 + echo $ECHO_N "(cached) $ECHO_C" >&6
37210 +echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
37211 +echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
37213 + # Is the header compilable?
37214 +echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
37215 +echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
37216 +cat >conftest.$ac_ext <<_ACEOF
37219 +cat confdefs.h >>conftest.$ac_ext
37220 +cat >>conftest.$ac_ext <<_ACEOF
37221 +/* end confdefs.h. */
37222 +$ac_includes_default
37223 +#include <X11/Xaw3d/Scrollbar.h>
37225 +rm -f conftest.$ac_objext
37226 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37227 + (eval $ac_compile) 2>conftest.er1
37229 + grep -v '^ *+' conftest.er1 >conftest.err
37230 + rm -f conftest.er1
37231 + cat conftest.err >&5
37232 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37233 + (exit $ac_status); } &&
37234 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37235 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37236 + (eval $ac_try) 2>&5
37238 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239 + (exit $ac_status); }; } &&
37240 + { ac_try='test -s conftest.$ac_objext'
37241 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37242 + (eval $ac_try) 2>&5
37244 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37245 + (exit $ac_status); }; }; then
37246 + ac_header_compiler=yes
37248 + echo "$as_me: failed program was:" >&5
37249 +sed 's/^/| /' conftest.$ac_ext >&5
37251 +ac_header_compiler=no
37253 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37254 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37255 +echo "${ECHO_T}$ac_header_compiler" >&6
37257 +# Is the header present?
37258 +echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
37259 +echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
37260 +cat >conftest.$ac_ext <<_ACEOF
37263 +cat confdefs.h >>conftest.$ac_ext
37264 +cat >>conftest.$ac_ext <<_ACEOF
37265 +/* end confdefs.h. */
37266 +#include <X11/Xaw3d/Scrollbar.h>
37268 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37269 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37271 + grep -v '^ *+' conftest.er1 >conftest.err
37272 + rm -f conftest.er1
37273 + cat conftest.err >&5
37274 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275 + (exit $ac_status); } >/dev/null; then
37276 + if test -s conftest.err; then
37277 + ac_cpp_err=$ac_c_preproc_warn_flag
37278 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37285 +if test -z "$ac_cpp_err"; then
37286 + ac_header_preproc=yes
37288 + echo "$as_me: failed program was:" >&5
37289 +sed 's/^/| /' conftest.$ac_ext >&5
37291 + ac_header_preproc=no
37293 +rm -f conftest.err conftest.$ac_ext
37294 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37295 +echo "${ECHO_T}$ac_header_preproc" >&6
37297 +# So? What about this header?
37298 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37300 + { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
37301 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37302 + { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&5
37303 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&2;}
37304 + ac_header_preproc=yes
37307 + { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
37308 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
37309 + { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
37310 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
37311 + { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&5
37312 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&2;}
37313 + { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: section \"Present But Cannot Be Compiled\"" >&5
37314 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: section \"Present But Cannot Be Compiled\"" >&2;}
37315 + { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
37316 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;}
37317 + { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&5
37318 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&2;}
37321 +## ------------------------------------------ ##
37322 +## Report this to the AC_PACKAGE_NAME lists. ##
37323 +## ------------------------------------------ ##
37326 + sed "s/^/$as_me: WARNING: /" >&2
37329 +echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
37330 +echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
37331 +if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
37332 + echo $ECHO_N "(cached) $ECHO_C" >&6
37334 + ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
37336 +echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
37337 +echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
37340 +if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
37341 + echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
37342 +echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
37343 +if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
37344 + echo $ECHO_N "(cached) $ECHO_C" >&6
37346 + ac_check_lib_save_LIBS=$LIBS
37347 +LIBS="-lXaw3d $LIBS"
37348 +cat >conftest.$ac_ext <<_ACEOF
37351 +cat confdefs.h >>conftest.$ac_ext
37352 +cat >>conftest.$ac_ext <<_ACEOF
37353 +/* end confdefs.h. */
37355 +/* Override any gcc2 internal prototype to avoid an error. */
37356 +#ifdef __cplusplus
37359 +/* We use char because int might match the return type of a gcc2
37360 + builtin and then its argument prototype would still apply. */
37361 +char XawScrollbarSetThumb ();
37365 +XawScrollbarSetThumb ();
37370 +rm -f conftest.$ac_objext conftest$ac_exeext
37371 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37372 + (eval $ac_link) 2>conftest.er1
37374 + grep -v '^ *+' conftest.er1 >conftest.err
37375 + rm -f conftest.er1
37376 + cat conftest.err >&5
37377 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37378 + (exit $ac_status); } &&
37379 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37380 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37381 + (eval $ac_try) 2>&5
37383 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384 + (exit $ac_status); }; } &&
37385 + { ac_try='test -s conftest$ac_exeext'
37386 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37387 + (eval $ac_try) 2>&5
37389 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390 + (exit $ac_status); }; }; then
37391 + ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
37393 + echo "$as_me: failed program was:" >&5
37394 +sed 's/^/| /' conftest.$ac_ext >&5
37396 +ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
37398 +rm -f conftest.err conftest.$ac_objext \
37399 + conftest$ac_exeext conftest.$ac_ext
37400 +LIBS=$ac_check_lib_save_LIBS
37402 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
37403 +echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
37404 +if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
37411 + if test "${HAVE_XAW3D}" = "yes"; then
37412 + cat >>confdefs.h <<\_ACEOF
37413 +#define HAVE_XAW3D 1
37421 +USE_TOOLKIT_SCROLL_BARS=no
37422 +if test "${with_toolkit_scroll_bars}" != "no"; then
37423 + if test "${USE_X_TOOLKIT}" != "none"; then
37424 + if test "${USE_X_TOOLKIT}" = "MOTIF"; then
37425 + cat >>confdefs.h <<\_ACEOF
37426 +#define USE_TOOLKIT_SCROLL_BARS 1
37430 + USE_TOOLKIT_SCROLL_BARS=yes
37431 + elif test "${HAVE_XAW3D}" = "yes"; then
37432 + cat >>confdefs.h <<\_ACEOF
37433 +#define USE_TOOLKIT_SCROLL_BARS 1
37436 + USE_TOOLKIT_SCROLL_BARS=yes
37442 +if test "${with_xim}" != "no"; then
37443 + cat >>confdefs.h <<\_ACEOF
37449 +### Use -lXpm if available, unless `--with-xpm=no'.
37451 +if test "${HAVE_X11}" = "yes"; then
37452 + if test "${with_xpm}" != "no"; then
37453 + if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37454 + echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
37455 +echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
37456 +if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37457 + echo $ECHO_N "(cached) $ECHO_C" >&6
37459 +echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
37460 +echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
37462 + # Is the header compilable?
37463 +echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
37464 +echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
37465 +cat >conftest.$ac_ext <<_ACEOF
37468 +cat confdefs.h >>conftest.$ac_ext
37469 +cat >>conftest.$ac_ext <<_ACEOF
37470 +/* end confdefs.h. */
37471 +$ac_includes_default
37472 +#include <X11/xpm.h>
37474 +rm -f conftest.$ac_objext
37475 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37476 + (eval $ac_compile) 2>conftest.er1
37478 + grep -v '^ *+' conftest.er1 >conftest.err
37479 + rm -f conftest.er1
37480 + cat conftest.err >&5
37481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482 + (exit $ac_status); } &&
37483 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37484 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37485 + (eval $ac_try) 2>&5
37487 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488 + (exit $ac_status); }; } &&
37489 + { ac_try='test -s conftest.$ac_objext'
37490 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37491 + (eval $ac_try) 2>&5
37493 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494 + (exit $ac_status); }; }; then
37495 + ac_header_compiler=yes
37497 + echo "$as_me: failed program was:" >&5
37498 +sed 's/^/| /' conftest.$ac_ext >&5
37500 +ac_header_compiler=no
37502 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37503 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37504 +echo "${ECHO_T}$ac_header_compiler" >&6
37506 +# Is the header present?
37507 +echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
37508 +echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
37509 +cat >conftest.$ac_ext <<_ACEOF
37512 +cat confdefs.h >>conftest.$ac_ext
37513 +cat >>conftest.$ac_ext <<_ACEOF
37514 +/* end confdefs.h. */
37515 +#include <X11/xpm.h>
37517 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37518 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37520 + grep -v '^ *+' conftest.er1 >conftest.err
37521 + rm -f conftest.er1
37522 + cat conftest.err >&5
37523 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37524 + (exit $ac_status); } >/dev/null; then
37525 + if test -s conftest.err; then
37526 + ac_cpp_err=$ac_c_preproc_warn_flag
37527 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37534 +if test -z "$ac_cpp_err"; then
37535 + ac_header_preproc=yes
37537 + echo "$as_me: failed program was:" >&5
37538 +sed 's/^/| /' conftest.$ac_ext >&5
37540 + ac_header_preproc=no
37542 +rm -f conftest.err conftest.$ac_ext
37543 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37544 +echo "${ECHO_T}$ac_header_preproc" >&6
37546 +# So? What about this header?
37547 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37549 + { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
37550 +echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37551 + { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
37552 +echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
37553 + ac_header_preproc=yes
37556 + { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
37557 +echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
37558 + { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
37559 +echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
37560 + { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
37561 +echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
37562 + { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
37563 +echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
37564 + { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
37565 +echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
37566 + { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
37567 +echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
37570 +## ------------------------------------------ ##
37571 +## Report this to the AC_PACKAGE_NAME lists. ##
37572 +## ------------------------------------------ ##
37575 + sed "s/^/$as_me: WARNING: /" >&2
37578 +echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
37579 +echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
37580 +if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37581 + echo $ECHO_N "(cached) $ECHO_C" >&6
37583 + ac_cv_header_X11_xpm_h=$ac_header_preproc
37585 +echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
37586 +echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
37589 +if test $ac_cv_header_X11_xpm_h = yes; then
37590 + echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
37591 +echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
37592 +if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
37593 + echo $ECHO_N "(cached) $ECHO_C" >&6
37595 + ac_check_lib_save_LIBS=$LIBS
37596 +LIBS="-lXpm -lX11 $LIBS"
37597 +cat >conftest.$ac_ext <<_ACEOF
37600 +cat confdefs.h >>conftest.$ac_ext
37601 +cat >>conftest.$ac_ext <<_ACEOF
37602 +/* end confdefs.h. */
37604 +/* Override any gcc2 internal prototype to avoid an error. */
37605 +#ifdef __cplusplus
37608 +/* We use char because int might match the return type of a gcc2
37609 + builtin and then its argument prototype would still apply. */
37610 +char XpmReadFileToPixmap ();
37614 +XpmReadFileToPixmap ();
37619 +rm -f conftest.$ac_objext conftest$ac_exeext
37620 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37621 + (eval $ac_link) 2>conftest.er1
37623 + grep -v '^ *+' conftest.er1 >conftest.err
37624 + rm -f conftest.er1
37625 + cat conftest.err >&5
37626 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627 + (exit $ac_status); } &&
37628 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37629 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37630 + (eval $ac_try) 2>&5
37632 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37633 + (exit $ac_status); }; } &&
37634 + { ac_try='test -s conftest$ac_exeext'
37635 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37636 + (eval $ac_try) 2>&5
37638 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639 + (exit $ac_status); }; }; then
37640 + ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
37642 + echo "$as_me: failed program was:" >&5
37643 +sed 's/^/| /' conftest.$ac_ext >&5
37645 +ac_cv_lib_Xpm_XpmReadFileToPixmap=no
37647 +rm -f conftest.err conftest.$ac_objext \
37648 + conftest$ac_exeext conftest.$ac_ext
37649 +LIBS=$ac_check_lib_save_LIBS
37651 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
37652 +echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
37653 +if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
37660 + if test "${HAVE_XPM}" = "yes"; then
37661 + echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
37662 +echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
37663 + cat >conftest.$ac_ext <<_ACEOF
37666 +cat confdefs.h >>conftest.$ac_ext
37667 +cat >>conftest.$ac_ext <<_ACEOF
37668 +/* end confdefs.h. */
37669 +#include "X11/xpm.h"
37670 +#ifndef XpmReturnAllocPixels
37671 +no_return_alloc_pixels
37675 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37676 + $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
37684 + if test "${HAVE_XPM}" = "yes"; then
37685 + echo "$as_me:$LINENO: result: yes" >&5
37686 +echo "${ECHO_T}yes" >&6
37688 + echo "$as_me:$LINENO: result: no" >&5
37689 +echo "${ECHO_T}no" >&6
37694 + if test "${HAVE_XPM}" = "yes"; then
37695 + cat >>confdefs.h <<\_ACEOF
37696 +#define HAVE_XPM 1
37702 +### Use -ljpeg if available, unless `--with-jpeg=no'.
37704 +if test "${HAVE_X11}" = "yes"; then
37705 + if test "${with_jpeg}" != "no"; then
37706 + if test "${ac_cv_header_jerror_h+set}" = set; then
37707 + echo "$as_me:$LINENO: checking for jerror.h" >&5
37708 +echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
37709 +if test "${ac_cv_header_jerror_h+set}" = set; then
37710 + echo $ECHO_N "(cached) $ECHO_C" >&6
37712 +echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
37713 +echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
37715 + # Is the header compilable?
37716 +echo "$as_me:$LINENO: checking jerror.h usability" >&5
37717 +echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
37718 +cat >conftest.$ac_ext <<_ACEOF
37721 +cat confdefs.h >>conftest.$ac_ext
37722 +cat >>conftest.$ac_ext <<_ACEOF
37723 +/* end confdefs.h. */
37724 +$ac_includes_default
37725 +#include <jerror.h>
37727 +rm -f conftest.$ac_objext
37728 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37729 + (eval $ac_compile) 2>conftest.er1
37731 + grep -v '^ *+' conftest.er1 >conftest.err
37732 + rm -f conftest.er1
37733 + cat conftest.err >&5
37734 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 + (exit $ac_status); } &&
37736 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37737 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37738 + (eval $ac_try) 2>&5
37740 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741 + (exit $ac_status); }; } &&
37742 + { ac_try='test -s conftest.$ac_objext'
37743 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37744 + (eval $ac_try) 2>&5
37746 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37747 + (exit $ac_status); }; }; then
37748 + ac_header_compiler=yes
37750 + echo "$as_me: failed program was:" >&5
37751 +sed 's/^/| /' conftest.$ac_ext >&5
37753 +ac_header_compiler=no
37755 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37756 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37757 +echo "${ECHO_T}$ac_header_compiler" >&6
37759 +# Is the header present?
37760 +echo "$as_me:$LINENO: checking jerror.h presence" >&5
37761 +echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
37762 +cat >conftest.$ac_ext <<_ACEOF
37765 +cat confdefs.h >>conftest.$ac_ext
37766 +cat >>conftest.$ac_ext <<_ACEOF
37767 +/* end confdefs.h. */
37768 +#include <jerror.h>
37770 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37771 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37773 + grep -v '^ *+' conftest.er1 >conftest.err
37774 + rm -f conftest.er1
37775 + cat conftest.err >&5
37776 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777 + (exit $ac_status); } >/dev/null; then
37778 + if test -s conftest.err; then
37779 + ac_cpp_err=$ac_c_preproc_warn_flag
37780 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37787 +if test -z "$ac_cpp_err"; then
37788 + ac_header_preproc=yes
37790 + echo "$as_me: failed program was:" >&5
37791 +sed 's/^/| /' conftest.$ac_ext >&5
37793 + ac_header_preproc=no
37795 +rm -f conftest.err conftest.$ac_ext
37796 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37797 +echo "${ECHO_T}$ac_header_preproc" >&6
37799 +# So? What about this header?
37800 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37802 + { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
37803 +echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37804 + { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
37805 +echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
37806 + ac_header_preproc=yes
37809 + { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
37810 +echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
37811 + { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
37812 +echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
37813 + { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
37814 +echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
37815 + { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
37816 +echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
37817 + { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
37818 +echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
37819 + { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
37820 +echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
37823 +## ------------------------------------------ ##
37824 +## Report this to the AC_PACKAGE_NAME lists. ##
37825 +## ------------------------------------------ ##
37828 + sed "s/^/$as_me: WARNING: /" >&2
37831 +echo "$as_me:$LINENO: checking for jerror.h" >&5
37832 +echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
37833 +if test "${ac_cv_header_jerror_h+set}" = set; then
37834 + echo $ECHO_N "(cached) $ECHO_C" >&6
37836 + ac_cv_header_jerror_h=$ac_header_preproc
37838 +echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
37839 +echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
37842 +if test $ac_cv_header_jerror_h = yes; then
37843 + echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
37844 +echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
37845 +if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
37846 + echo $ECHO_N "(cached) $ECHO_C" >&6
37848 + ac_check_lib_save_LIBS=$LIBS
37849 +LIBS="-ljpeg $LIBS"
37850 +cat >conftest.$ac_ext <<_ACEOF
37853 +cat confdefs.h >>conftest.$ac_ext
37854 +cat >>conftest.$ac_ext <<_ACEOF
37855 +/* end confdefs.h. */
37857 +/* Override any gcc2 internal prototype to avoid an error. */
37858 +#ifdef __cplusplus
37861 +/* We use char because int might match the return type of a gcc2
37862 + builtin and then its argument prototype would still apply. */
37863 +char jpeg_destroy_compress ();
37867 +jpeg_destroy_compress ();
37872 +rm -f conftest.$ac_objext conftest$ac_exeext
37873 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37874 + (eval $ac_link) 2>conftest.er1
37876 + grep -v '^ *+' conftest.er1 >conftest.err
37877 + rm -f conftest.er1
37878 + cat conftest.err >&5
37879 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880 + (exit $ac_status); } &&
37881 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37882 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883 + (eval $ac_try) 2>&5
37885 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 + (exit $ac_status); }; } &&
37887 + { ac_try='test -s conftest$ac_exeext'
37888 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37889 + (eval $ac_try) 2>&5
37891 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37892 + (exit $ac_status); }; }; then
37893 + ac_cv_lib_jpeg_jpeg_destroy_compress=yes
37895 + echo "$as_me: failed program was:" >&5
37896 +sed 's/^/| /' conftest.$ac_ext >&5
37898 +ac_cv_lib_jpeg_jpeg_destroy_compress=no
37900 +rm -f conftest.err conftest.$ac_objext \
37901 + conftest$ac_exeext conftest.$ac_ext
37902 +LIBS=$ac_check_lib_save_LIBS
37904 +echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
37905 +echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
37906 +if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
37915 + if test "${HAVE_JPEG}" = "yes"; then
37916 + cat >>confdefs.h <<\_ACEOF
37917 +#define HAVE_JPEG 1
37920 + cat >conftest.$ac_ext <<_ACEOF
37923 +cat confdefs.h >>conftest.$ac_ext
37924 +cat >>conftest.$ac_ext <<_ACEOF
37925 +/* end confdefs.h. */
37926 + #include <jpeglib.h>
37927 + version=JPEG_LIB_VERSION
37930 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37931 + $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
37932 + cat >>confdefs.h <<\_ACEOF
37933 +#define HAVE_JPEG 1
37937 + { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
37938 +echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
37946 +### Use -lpng if available, unless `--with-png=no'.
37948 +if test "${HAVE_X11}" = "yes"; then
37949 + if test "${with_png}" != "no"; then
37950 + if test "${ac_cv_header_png_h+set}" = set; then
37951 + echo "$as_me:$LINENO: checking for png.h" >&5
37952 +echo $ECHO_N "checking for png.h... $ECHO_C" >&6
37953 +if test "${ac_cv_header_png_h+set}" = set; then
37954 + echo $ECHO_N "(cached) $ECHO_C" >&6
37956 +echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
37957 +echo "${ECHO_T}$ac_cv_header_png_h" >&6
37959 + # Is the header compilable?
37960 +echo "$as_me:$LINENO: checking png.h usability" >&5
37961 +echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
37962 +cat >conftest.$ac_ext <<_ACEOF
37965 +cat confdefs.h >>conftest.$ac_ext
37966 +cat >>conftest.$ac_ext <<_ACEOF
37967 +/* end confdefs.h. */
37968 +$ac_includes_default
37971 +rm -f conftest.$ac_objext
37972 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37973 + (eval $ac_compile) 2>conftest.er1
37975 + grep -v '^ *+' conftest.er1 >conftest.err
37976 + rm -f conftest.er1
37977 + cat conftest.err >&5
37978 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979 + (exit $ac_status); } &&
37980 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37981 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37982 + (eval $ac_try) 2>&5
37984 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37985 + (exit $ac_status); }; } &&
37986 + { ac_try='test -s conftest.$ac_objext'
37987 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988 + (eval $ac_try) 2>&5
37990 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 + (exit $ac_status); }; }; then
37992 + ac_header_compiler=yes
37994 + echo "$as_me: failed program was:" >&5
37995 +sed 's/^/| /' conftest.$ac_ext >&5
37997 +ac_header_compiler=no
37999 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38000 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38001 +echo "${ECHO_T}$ac_header_compiler" >&6
38003 +# Is the header present?
38004 +echo "$as_me:$LINENO: checking png.h presence" >&5
38005 +echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
38006 +cat >conftest.$ac_ext <<_ACEOF
38009 +cat confdefs.h >>conftest.$ac_ext
38010 +cat >>conftest.$ac_ext <<_ACEOF
38011 +/* end confdefs.h. */
38014 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38015 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38017 + grep -v '^ *+' conftest.er1 >conftest.err
38018 + rm -f conftest.er1
38019 + cat conftest.err >&5
38020 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38021 + (exit $ac_status); } >/dev/null; then
38022 + if test -s conftest.err; then
38023 + ac_cpp_err=$ac_c_preproc_warn_flag
38024 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38031 +if test -z "$ac_cpp_err"; then
38032 + ac_header_preproc=yes
38034 + echo "$as_me: failed program was:" >&5
38035 +sed 's/^/| /' conftest.$ac_ext >&5
38037 + ac_header_preproc=no
38039 +rm -f conftest.err conftest.$ac_ext
38040 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38041 +echo "${ECHO_T}$ac_header_preproc" >&6
38043 +# So? What about this header?
38044 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38046 + { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
38047 +echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38048 + { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
38049 +echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
38050 + ac_header_preproc=yes
38053 + { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
38054 +echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
38055 + { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
38056 +echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
38057 + { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
38058 +echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
38059 + { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
38060 +echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
38061 + { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
38062 +echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
38063 + { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
38064 +echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
38067 +## ------------------------------------------ ##
38068 +## Report this to the AC_PACKAGE_NAME lists. ##
38069 +## ------------------------------------------ ##
38072 + sed "s/^/$as_me: WARNING: /" >&2
38075 +echo "$as_me:$LINENO: checking for png.h" >&5
38076 +echo $ECHO_N "checking for png.h... $ECHO_C" >&6
38077 +if test "${ac_cv_header_png_h+set}" = set; then
38078 + echo $ECHO_N "(cached) $ECHO_C" >&6
38080 + ac_cv_header_png_h=$ac_header_preproc
38082 +echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
38083 +echo "${ECHO_T}$ac_cv_header_png_h" >&6
38086 +if test $ac_cv_header_png_h = yes; then
38087 + echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
38088 +echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
38089 +if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
38090 + echo $ECHO_N "(cached) $ECHO_C" >&6
38092 + ac_check_lib_save_LIBS=$LIBS
38093 +LIBS="-lpng -lz -lm $LIBS"
38094 +cat >conftest.$ac_ext <<_ACEOF
38097 +cat confdefs.h >>conftest.$ac_ext
38098 +cat >>conftest.$ac_ext <<_ACEOF
38099 +/* end confdefs.h. */
38101 +/* Override any gcc2 internal prototype to avoid an error. */
38102 +#ifdef __cplusplus
38105 +/* We use char because int might match the return type of a gcc2
38106 + builtin and then its argument prototype would still apply. */
38107 +char png_get_channels ();
38111 +png_get_channels ();
38116 +rm -f conftest.$ac_objext conftest$ac_exeext
38117 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38118 + (eval $ac_link) 2>conftest.er1
38120 + grep -v '^ *+' conftest.er1 >conftest.err
38121 + rm -f conftest.er1
38122 + cat conftest.err >&5
38123 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38124 + (exit $ac_status); } &&
38125 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38126 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38127 + (eval $ac_try) 2>&5
38129 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38130 + (exit $ac_status); }; } &&
38131 + { ac_try='test -s conftest$ac_exeext'
38132 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38133 + (eval $ac_try) 2>&5
38135 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136 + (exit $ac_status); }; }; then
38137 + ac_cv_lib_png_png_get_channels=yes
38139 + echo "$as_me: failed program was:" >&5
38140 +sed 's/^/| /' conftest.$ac_ext >&5
38142 +ac_cv_lib_png_png_get_channels=no
38144 +rm -f conftest.err conftest.$ac_objext \
38145 + conftest$ac_exeext conftest.$ac_ext
38146 +LIBS=$ac_check_lib_save_LIBS
38148 +echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
38149 +echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
38150 +if test $ac_cv_lib_png_png_get_channels = yes; then
38159 + if test "${HAVE_PNG}" = "yes"; then
38160 + cat >>confdefs.h <<\_ACEOF
38161 +#define HAVE_PNG 1
38167 +### Use -ltiff if available, unless `--with-tiff=no'.
38169 +if test "${HAVE_X11}" = "yes"; then
38170 + if test "${with_tiff}" != "no"; then
38171 + if test "${ac_cv_header_tiffio_h+set}" = set; then
38172 + echo "$as_me:$LINENO: checking for tiffio.h" >&5
38173 +echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
38174 +if test "${ac_cv_header_tiffio_h+set}" = set; then
38175 + echo $ECHO_N "(cached) $ECHO_C" >&6
38177 +echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
38178 +echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
38180 + # Is the header compilable?
38181 +echo "$as_me:$LINENO: checking tiffio.h usability" >&5
38182 +echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
38183 +cat >conftest.$ac_ext <<_ACEOF
38186 +cat confdefs.h >>conftest.$ac_ext
38187 +cat >>conftest.$ac_ext <<_ACEOF
38188 +/* end confdefs.h. */
38189 +$ac_includes_default
38190 +#include <tiffio.h>
38192 +rm -f conftest.$ac_objext
38193 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38194 + (eval $ac_compile) 2>conftest.er1
38196 + grep -v '^ *+' conftest.er1 >conftest.err
38197 + rm -f conftest.er1
38198 + cat conftest.err >&5
38199 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 + (exit $ac_status); } &&
38201 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38202 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38203 + (eval $ac_try) 2>&5
38205 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206 + (exit $ac_status); }; } &&
38207 + { ac_try='test -s conftest.$ac_objext'
38208 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38209 + (eval $ac_try) 2>&5
38211 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38212 + (exit $ac_status); }; }; then
38213 + ac_header_compiler=yes
38215 + echo "$as_me: failed program was:" >&5
38216 +sed 's/^/| /' conftest.$ac_ext >&5
38218 +ac_header_compiler=no
38220 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38221 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38222 +echo "${ECHO_T}$ac_header_compiler" >&6
38224 +# Is the header present?
38225 +echo "$as_me:$LINENO: checking tiffio.h presence" >&5
38226 +echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
38227 +cat >conftest.$ac_ext <<_ACEOF
38230 +cat confdefs.h >>conftest.$ac_ext
38231 +cat >>conftest.$ac_ext <<_ACEOF
38232 +/* end confdefs.h. */
38233 +#include <tiffio.h>
38235 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38236 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38238 + grep -v '^ *+' conftest.er1 >conftest.err
38239 + rm -f conftest.er1
38240 + cat conftest.err >&5
38241 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242 + (exit $ac_status); } >/dev/null; then
38243 + if test -s conftest.err; then
38244 + ac_cpp_err=$ac_c_preproc_warn_flag
38245 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38252 +if test -z "$ac_cpp_err"; then
38253 + ac_header_preproc=yes
38255 + echo "$as_me: failed program was:" >&5
38256 +sed 's/^/| /' conftest.$ac_ext >&5
38258 + ac_header_preproc=no
38260 +rm -f conftest.err conftest.$ac_ext
38261 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38262 +echo "${ECHO_T}$ac_header_preproc" >&6
38264 +# So? What about this header?
38265 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38267 + { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38268 +echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38269 + { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
38270 +echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
38271 + ac_header_preproc=yes
38274 + { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
38275 +echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
38276 + { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
38277 +echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
38278 + { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
38279 +echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
38280 + { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
38281 +echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
38282 + { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
38283 +echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
38284 + { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
38285 +echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
38288 +## ------------------------------------------ ##
38289 +## Report this to the AC_PACKAGE_NAME lists. ##
38290 +## ------------------------------------------ ##
38293 + sed "s/^/$as_me: WARNING: /" >&2
38296 +echo "$as_me:$LINENO: checking for tiffio.h" >&5
38297 +echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
38298 +if test "${ac_cv_header_tiffio_h+set}" = set; then
38299 + echo $ECHO_N "(cached) $ECHO_C" >&6
38301 + ac_cv_header_tiffio_h=$ac_header_preproc
38303 +echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
38304 +echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
38307 +if test $ac_cv_header_tiffio_h = yes; then
38308 + tifflibs="-lz -lm"
38309 + # At least one tiff package requires the jpeg library.
38310 + if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
38311 + echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
38312 +echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
38313 +if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
38314 + echo $ECHO_N "(cached) $ECHO_C" >&6
38316 + ac_check_lib_save_LIBS=$LIBS
38317 +LIBS="-ltiff $tifflibs $LIBS"
38318 +cat >conftest.$ac_ext <<_ACEOF
38321 +cat confdefs.h >>conftest.$ac_ext
38322 +cat >>conftest.$ac_ext <<_ACEOF
38323 +/* end confdefs.h. */
38325 +/* Override any gcc2 internal prototype to avoid an error. */
38326 +#ifdef __cplusplus
38329 +/* We use char because int might match the return type of a gcc2
38330 + builtin and then its argument prototype would still apply. */
38331 +char TIFFGetVersion ();
38335 +TIFFGetVersion ();
38340 +rm -f conftest.$ac_objext conftest$ac_exeext
38341 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38342 + (eval $ac_link) 2>conftest.er1
38344 + grep -v '^ *+' conftest.er1 >conftest.err
38345 + rm -f conftest.er1
38346 + cat conftest.err >&5
38347 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348 + (exit $ac_status); } &&
38349 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38350 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38351 + (eval $ac_try) 2>&5
38353 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38354 + (exit $ac_status); }; } &&
38355 + { ac_try='test -s conftest$ac_exeext'
38356 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38357 + (eval $ac_try) 2>&5
38359 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360 + (exit $ac_status); }; }; then
38361 + ac_cv_lib_tiff_TIFFGetVersion=yes
38363 + echo "$as_me: failed program was:" >&5
38364 +sed 's/^/| /' conftest.$ac_ext >&5
38366 +ac_cv_lib_tiff_TIFFGetVersion=no
38368 +rm -f conftest.err conftest.$ac_objext \
38369 + conftest$ac_exeext conftest.$ac_ext
38370 +LIBS=$ac_check_lib_save_LIBS
38372 +echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
38373 +echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
38374 +if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
38383 + if test "${HAVE_TIFF}" = "yes"; then
38384 + cat >>confdefs.h <<\_ACEOF
38385 +#define HAVE_TIFF 1
38391 +### Use -lgif if available, unless `--with-gif=no'.
38393 +if test "${HAVE_X11}" = "yes"; then
38394 + if test "${with_gif}" != "no"; then
38395 + if test "${ac_cv_header_gif_lib_h+set}" = set; then
38396 + echo "$as_me:$LINENO: checking for gif_lib.h" >&5
38397 +echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
38398 +if test "${ac_cv_header_gif_lib_h+set}" = set; then
38399 + echo $ECHO_N "(cached) $ECHO_C" >&6
38401 +echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
38402 +echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
38404 + # Is the header compilable?
38405 +echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
38406 +echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
38407 +cat >conftest.$ac_ext <<_ACEOF
38410 +cat confdefs.h >>conftest.$ac_ext
38411 +cat >>conftest.$ac_ext <<_ACEOF
38412 +/* end confdefs.h. */
38413 +$ac_includes_default
38414 +#include <gif_lib.h>
38416 +rm -f conftest.$ac_objext
38417 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38418 + (eval $ac_compile) 2>conftest.er1
38420 + grep -v '^ *+' conftest.er1 >conftest.err
38421 + rm -f conftest.er1
38422 + cat conftest.err >&5
38423 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 + (exit $ac_status); } &&
38425 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38426 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38427 + (eval $ac_try) 2>&5
38429 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430 + (exit $ac_status); }; } &&
38431 + { ac_try='test -s conftest.$ac_objext'
38432 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38433 + (eval $ac_try) 2>&5
38435 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436 + (exit $ac_status); }; }; then
38437 + ac_header_compiler=yes
38439 + echo "$as_me: failed program was:" >&5
38440 +sed 's/^/| /' conftest.$ac_ext >&5
38442 +ac_header_compiler=no
38444 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38445 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38446 +echo "${ECHO_T}$ac_header_compiler" >&6
38448 +# Is the header present?
38449 +echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
38450 +echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
38451 +cat >conftest.$ac_ext <<_ACEOF
38454 +cat confdefs.h >>conftest.$ac_ext
38455 +cat >>conftest.$ac_ext <<_ACEOF
38456 +/* end confdefs.h. */
38457 +#include <gif_lib.h>
38459 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38460 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38462 + grep -v '^ *+' conftest.er1 >conftest.err
38463 + rm -f conftest.er1
38464 + cat conftest.err >&5
38465 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 + (exit $ac_status); } >/dev/null; then
38467 + if test -s conftest.err; then
38468 + ac_cpp_err=$ac_c_preproc_warn_flag
38469 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38476 +if test -z "$ac_cpp_err"; then
38477 + ac_header_preproc=yes
38479 + echo "$as_me: failed program was:" >&5
38480 +sed 's/^/| /' conftest.$ac_ext >&5
38482 + ac_header_preproc=no
38484 +rm -f conftest.err conftest.$ac_ext
38485 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38486 +echo "${ECHO_T}$ac_header_preproc" >&6
38488 +# So? What about this header?
38489 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38491 + { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
38492 +echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38493 + { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
38494 +echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
38495 + ac_header_preproc=yes
38498 + { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
38499 +echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
38500 + { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
38501 +echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
38502 + { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
38503 +echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
38504 + { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
38505 +echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
38506 + { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
38507 +echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
38508 + { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
38509 +echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
38512 +## ------------------------------------------ ##
38513 +## Report this to the AC_PACKAGE_NAME lists. ##
38514 +## ------------------------------------------ ##
38517 + sed "s/^/$as_me: WARNING: /" >&2
38520 +echo "$as_me:$LINENO: checking for gif_lib.h" >&5
38521 +echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
38522 +if test "${ac_cv_header_gif_lib_h+set}" = set; then
38523 + echo $ECHO_N "(cached) $ECHO_C" >&6
38525 + ac_cv_header_gif_lib_h=$ac_header_preproc
38527 +echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
38528 +echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
38531 +if test $ac_cv_header_gif_lib_h = yes; then
38532 + # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
38533 +# Earlier versions can crash Emacs.
38534 + echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
38535 +echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
38536 +if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
38537 + echo $ECHO_N "(cached) $ECHO_C" >&6
38539 + ac_check_lib_save_LIBS=$LIBS
38540 +LIBS="-lungif $LIBS"
38541 +cat >conftest.$ac_ext <<_ACEOF
38544 +cat confdefs.h >>conftest.$ac_ext
38545 +cat >>conftest.$ac_ext <<_ACEOF
38546 +/* end confdefs.h. */
38548 +/* Override any gcc2 internal prototype to avoid an error. */
38549 +#ifdef __cplusplus
38552 +/* We use char because int might match the return type of a gcc2
38553 + builtin and then its argument prototype would still apply. */
38554 +char EGifPutExtensionLast ();
38558 +EGifPutExtensionLast ();
38563 +rm -f conftest.$ac_objext conftest$ac_exeext
38564 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38565 + (eval $ac_link) 2>conftest.er1
38567 + grep -v '^ *+' conftest.er1 >conftest.err
38568 + rm -f conftest.er1
38569 + cat conftest.err >&5
38570 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 + (exit $ac_status); } &&
38572 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38573 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38574 + (eval $ac_try) 2>&5
38576 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577 + (exit $ac_status); }; } &&
38578 + { ac_try='test -s conftest$ac_exeext'
38579 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38580 + (eval $ac_try) 2>&5
38582 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583 + (exit $ac_status); }; }; then
38584 + ac_cv_lib_ungif_EGifPutExtensionLast=yes
38586 + echo "$as_me: failed program was:" >&5
38587 +sed 's/^/| /' conftest.$ac_ext >&5
38589 +ac_cv_lib_ungif_EGifPutExtensionLast=no
38591 +rm -f conftest.err conftest.$ac_objext \
38592 + conftest$ac_exeext conftest.$ac_ext
38593 +LIBS=$ac_check_lib_save_LIBS
38595 +echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
38596 +echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
38597 +if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
38606 + if test "${HAVE_GIF}" = "yes"; then
38607 + cat >>confdefs.h <<\_ACEOF
38608 +#define HAVE_GIF 1
38614 +# If netdb.h doesn't declare h_errno, we must declare it by hand.
38615 +echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
38616 +echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
38617 +if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
38618 + echo $ECHO_N "(cached) $ECHO_C" >&6
38620 + cat >conftest.$ac_ext <<_ACEOF
38623 +cat confdefs.h >>conftest.$ac_ext
38624 +cat >>conftest.$ac_ext <<_ACEOF
38625 +/* end confdefs.h. */
38626 +#include <netdb.h>
38635 +rm -f conftest.$ac_objext conftest$ac_exeext
38636 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38637 + (eval $ac_link) 2>conftest.er1
38639 + grep -v '^ *+' conftest.er1 >conftest.err
38640 + rm -f conftest.er1
38641 + cat conftest.err >&5
38642 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643 + (exit $ac_status); } &&
38644 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38645 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38646 + (eval $ac_try) 2>&5
38648 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649 + (exit $ac_status); }; } &&
38650 + { ac_try='test -s conftest$ac_exeext'
38651 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38652 + (eval $ac_try) 2>&5
38654 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655 + (exit $ac_status); }; }; then
38656 + emacs_cv_netdb_declares_h_errno=yes
38658 + echo "$as_me: failed program was:" >&5
38659 +sed 's/^/| /' conftest.$ac_ext >&5
38661 +emacs_cv_netdb_declares_h_errno=no
38663 +rm -f conftest.err conftest.$ac_objext \
38664 + conftest$ac_exeext conftest.$ac_ext
38666 +echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
38667 +echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
38668 +if test $emacs_cv_netdb_declares_h_errno = yes; then
38669 + cat >>confdefs.h <<\_ACEOF
38670 +#define HAVE_H_ERRNO 1
38675 +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
38676 +# for constant arguments. Useless!
38677 +echo "$as_me:$LINENO: checking for working alloca.h" >&5
38678 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
38679 +if test "${ac_cv_working_alloca_h+set}" = set; then
38680 + echo $ECHO_N "(cached) $ECHO_C" >&6
38682 + cat >conftest.$ac_ext <<_ACEOF
38685 +cat confdefs.h >>conftest.$ac_ext
38686 +cat >>conftest.$ac_ext <<_ACEOF
38687 +/* end confdefs.h. */
38688 +#include <alloca.h>
38692 +char *p = (char *) alloca (2 * sizeof (int));
38697 +rm -f conftest.$ac_objext conftest$ac_exeext
38698 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38699 + (eval $ac_link) 2>conftest.er1
38701 + grep -v '^ *+' conftest.er1 >conftest.err
38702 + rm -f conftest.er1
38703 + cat conftest.err >&5
38704 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705 + (exit $ac_status); } &&
38706 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38707 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38708 + (eval $ac_try) 2>&5
38710 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38711 + (exit $ac_status); }; } &&
38712 + { ac_try='test -s conftest$ac_exeext'
38713 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38714 + (eval $ac_try) 2>&5
38716 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38717 + (exit $ac_status); }; }; then
38718 + ac_cv_working_alloca_h=yes
38720 + echo "$as_me: failed program was:" >&5
38721 +sed 's/^/| /' conftest.$ac_ext >&5
38723 +ac_cv_working_alloca_h=no
38725 +rm -f conftest.err conftest.$ac_objext \
38726 + conftest$ac_exeext conftest.$ac_ext
38728 +echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
38729 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
38730 +if test $ac_cv_working_alloca_h = yes; then
38732 +cat >>confdefs.h <<\_ACEOF
38733 +#define HAVE_ALLOCA_H 1
38738 +echo "$as_me:$LINENO: checking for alloca" >&5
38739 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6
38740 +if test "${ac_cv_func_alloca_works+set}" = set; then
38741 + echo $ECHO_N "(cached) $ECHO_C" >&6
38743 + cat >conftest.$ac_ext <<_ACEOF
38746 +cat confdefs.h >>conftest.$ac_ext
38747 +cat >>conftest.$ac_ext <<_ACEOF
38748 +/* end confdefs.h. */
38750 +# define alloca __builtin_alloca
38753 +# include <malloc.h>
38754 +# define alloca _alloca
38756 +# if HAVE_ALLOCA_H
38757 +# include <alloca.h>
38762 +# ifndef alloca /* predefined by HP cc +Olibcalls */
38773 +char *p = (char *) alloca (1);
38778 +rm -f conftest.$ac_objext conftest$ac_exeext
38779 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38780 + (eval $ac_link) 2>conftest.er1
38782 + grep -v '^ *+' conftest.er1 >conftest.err
38783 + rm -f conftest.er1
38784 + cat conftest.err >&5
38785 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786 + (exit $ac_status); } &&
38787 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38788 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38789 + (eval $ac_try) 2>&5
38791 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792 + (exit $ac_status); }; } &&
38793 + { ac_try='test -s conftest$ac_exeext'
38794 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38795 + (eval $ac_try) 2>&5
38797 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798 + (exit $ac_status); }; }; then
38799 + ac_cv_func_alloca_works=yes
38801 + echo "$as_me: failed program was:" >&5
38802 +sed 's/^/| /' conftest.$ac_ext >&5
38804 +ac_cv_func_alloca_works=no
38806 +rm -f conftest.err conftest.$ac_objext \
38807 + conftest$ac_exeext conftest.$ac_ext
38809 +echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
38810 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
38812 +if test $ac_cv_func_alloca_works = yes; then
38814 +cat >>confdefs.h <<\_ACEOF
38815 +#define HAVE_ALLOCA 1
38819 + # The SVR3 libPW and SVR4 libucb both contain incompatible functions
38820 +# that cause trouble. Some versions do not even contain alloca or
38821 +# contain a buggy version. If you still want to use their alloca,
38822 +# use ar to extract alloca.o from them instead of compiling alloca.c.
38824 +ALLOCA=alloca.$ac_objext
38826 +cat >>confdefs.h <<\_ACEOF
38827 +#define C_ALLOCA 1
38831 +echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
38832 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
38833 +if test "${ac_cv_os_cray+set}" = set; then
38834 + echo $ECHO_N "(cached) $ECHO_C" >&6
38836 + cat >conftest.$ac_ext <<_ACEOF
38839 +cat confdefs.h >>conftest.$ac_ext
38840 +cat >>conftest.$ac_ext <<_ACEOF
38841 +/* end confdefs.h. */
38842 +#if defined(CRAY) && ! defined(CRAY2)
38849 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38850 + $EGREP "webecray" >/dev/null 2>&1; then
38851 + ac_cv_os_cray=yes
38858 +echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
38859 +echo "${ECHO_T}$ac_cv_os_cray" >&6
38860 +if test $ac_cv_os_cray = yes; then
38861 + for ac_func in _getb67 GETB67 getb67; do
38862 + as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38863 +echo "$as_me:$LINENO: checking for $ac_func" >&5
38864 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38865 +if eval "test \"\${$as_ac_var+set}\" = set"; then
38866 + echo $ECHO_N "(cached) $ECHO_C" >&6
38868 + cat >conftest.$ac_ext <<_ACEOF
38871 +cat confdefs.h >>conftest.$ac_ext
38872 +cat >>conftest.$ac_ext <<_ACEOF
38873 +/* end confdefs.h. */
38874 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38875 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
38876 +#define $ac_func innocuous_$ac_func
38878 +/* System header to define __stub macros and hopefully few prototypes,
38879 + which can conflict with char $ac_func (); below.
38880 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38881 + <limits.h> exists even on freestanding compilers. */
38884 +# include <limits.h>
38886 +# include <assert.h>
38891 +/* Override any gcc2 internal prototype to avoid an error. */
38892 +#ifdef __cplusplus
38896 +/* We use char because int might match the return type of a gcc2
38897 + builtin and then its argument prototype would still apply. */
38899 +/* The GNU C library defines this for functions which it implements
38900 + to always fail with ENOSYS. Some functions are actually named
38901 + something starting with __ and the normal name is an alias. */
38902 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38905 +char (*f) () = $ac_func;
38907 +#ifdef __cplusplus
38914 +return f != $ac_func;
38919 +rm -f conftest.$ac_objext conftest$ac_exeext
38920 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38921 + (eval $ac_link) 2>conftest.er1
38923 + grep -v '^ *+' conftest.er1 >conftest.err
38924 + rm -f conftest.er1
38925 + cat conftest.err >&5
38926 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927 + (exit $ac_status); } &&
38928 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38929 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38930 + (eval $ac_try) 2>&5
38932 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38933 + (exit $ac_status); }; } &&
38934 + { ac_try='test -s conftest$ac_exeext'
38935 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38936 + (eval $ac_try) 2>&5
38938 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38939 + (exit $ac_status); }; }; then
38940 + eval "$as_ac_var=yes"
38942 + echo "$as_me: failed program was:" >&5
38943 +sed 's/^/| /' conftest.$ac_ext >&5
38945 +eval "$as_ac_var=no"
38947 +rm -f conftest.err conftest.$ac_objext \
38948 + conftest$ac_exeext conftest.$ac_ext
38950 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38951 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38952 +if test `eval echo '${'$as_ac_var'}'` = yes; then
38954 +cat >>confdefs.h <<_ACEOF
38955 +#define CRAY_STACKSEG_END $ac_func
38964 +echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
38965 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
38966 +if test "${ac_cv_c_stack_direction+set}" = set; then
38967 + echo $ECHO_N "(cached) $ECHO_C" >&6
38969 + if test "$cross_compiling" = yes; then
38970 + ac_cv_c_stack_direction=0
38972 + cat >conftest.$ac_ext <<_ACEOF
38975 +cat confdefs.h >>conftest.$ac_ext
38976 +cat >>conftest.$ac_ext <<_ACEOF
38977 +/* end confdefs.h. */
38979 +find_stack_direction ()
38981 + static char *addr = 0;
38986 + return find_stack_direction ();
38989 + return (&dummy > addr) ? 1 : -1;
38995 + exit (find_stack_direction () < 0);
38998 +rm -f conftest$ac_exeext
38999 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39000 + (eval $ac_link) 2>&5
39002 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39004 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005 + (eval $ac_try) 2>&5
39007 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 + (exit $ac_status); }; }; then
39009 + ac_cv_c_stack_direction=1
39011 + echo "$as_me: program exited with status $ac_status" >&5
39012 +echo "$as_me: failed program was:" >&5
39013 +sed 's/^/| /' conftest.$ac_ext >&5
39015 +( exit $ac_status )
39016 +ac_cv_c_stack_direction=-1
39018 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39021 +echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39022 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
39024 +cat >>confdefs.h <<_ACEOF
39025 +#define STACK_DIRECTION $ac_cv_c_stack_direction
39032 +# fmod, logb, and frexp are found in -lm on most systems.
39033 +# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
39035 +echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
39036 +echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
39037 +if test "${ac_cv_lib_m_sqrt+set}" = set; then
39038 + echo $ECHO_N "(cached) $ECHO_C" >&6
39040 + ac_check_lib_save_LIBS=$LIBS
39042 +cat >conftest.$ac_ext <<_ACEOF
39045 +cat confdefs.h >>conftest.$ac_ext
39046 +cat >>conftest.$ac_ext <<_ACEOF
39047 +/* end confdefs.h. */
39049 +/* Override any gcc2 internal prototype to avoid an error. */
39050 +#ifdef __cplusplus
39053 +/* We use char because int might match the return type of a gcc2
39054 + builtin and then its argument prototype would still apply. */
39064 +rm -f conftest.$ac_objext conftest$ac_exeext
39065 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39066 + (eval $ac_link) 2>conftest.er1
39068 + grep -v '^ *+' conftest.er1 >conftest.err
39069 + rm -f conftest.er1
39070 + cat conftest.err >&5
39071 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 + (exit $ac_status); } &&
39073 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39074 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39075 + (eval $ac_try) 2>&5
39077 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 + (exit $ac_status); }; } &&
39079 + { ac_try='test -s conftest$ac_exeext'
39080 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39081 + (eval $ac_try) 2>&5
39083 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084 + (exit $ac_status); }; }; then
39085 + ac_cv_lib_m_sqrt=yes
39087 + echo "$as_me: failed program was:" >&5
39088 +sed 's/^/| /' conftest.$ac_ext >&5
39090 +ac_cv_lib_m_sqrt=no
39092 +rm -f conftest.err conftest.$ac_objext \
39093 + conftest$ac_exeext conftest.$ac_ext
39094 +LIBS=$ac_check_lib_save_LIBS
39096 +echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
39097 +echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
39098 +if test $ac_cv_lib_m_sqrt = yes; then
39099 + cat >>confdefs.h <<_ACEOF
39100 +#define HAVE_LIBM 1
39108 +# Check for mail-locking functions in a "mail" library Check for
39109 +# lockfile first, a free replacement for -lmail. We use AC_CHECK_LIB
39110 +# for touchlock because we don't want to have to put the lock libs
39111 +# into LIBS and AC_CHECK_FUNCS would require that.
39113 +echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
39114 +echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
39115 +if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
39116 + echo $ECHO_N "(cached) $ECHO_C" >&6
39118 + ac_check_lib_save_LIBS=$LIBS
39119 +LIBS="-llockfile $LIBS"
39120 +cat >conftest.$ac_ext <<_ACEOF
39123 +cat confdefs.h >>conftest.$ac_ext
39124 +cat >>conftest.$ac_ext <<_ACEOF
39125 +/* end confdefs.h. */
39127 +/* Override any gcc2 internal prototype to avoid an error. */
39128 +#ifdef __cplusplus
39131 +/* We use char because int might match the return type of a gcc2
39132 + builtin and then its argument prototype would still apply. */
39142 +rm -f conftest.$ac_objext conftest$ac_exeext
39143 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39144 + (eval $ac_link) 2>conftest.er1
39146 + grep -v '^ *+' conftest.er1 >conftest.err
39147 + rm -f conftest.er1
39148 + cat conftest.err >&5
39149 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150 + (exit $ac_status); } &&
39151 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39152 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39153 + (eval $ac_try) 2>&5
39155 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156 + (exit $ac_status); }; } &&
39157 + { ac_try='test -s conftest$ac_exeext'
39158 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39159 + (eval $ac_try) 2>&5
39161 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39162 + (exit $ac_status); }; }; then
39163 + ac_cv_lib_lockfile_maillock=yes
39165 + echo "$as_me: failed program was:" >&5
39166 +sed 's/^/| /' conftest.$ac_ext >&5
39168 +ac_cv_lib_lockfile_maillock=no
39170 +rm -f conftest.err conftest.$ac_objext \
39171 + conftest$ac_exeext conftest.$ac_ext
39172 +LIBS=$ac_check_lib_save_LIBS
39174 +echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
39175 +echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
39176 +if test $ac_cv_lib_lockfile_maillock = yes; then
39177 + cat >>confdefs.h <<\_ACEOF
39178 +#define HAVE_LIBMAIL 1
39181 + MOVEMAIL_LOCK_LIBS="-llockfile"
39182 + echo "$as_me:$LINENO: checking for touchlock in -llockfile" >&5
39183 +echo $ECHO_N "checking for touchlock in -llockfile... $ECHO_C" >&6
39184 +if test "${ac_cv_lib_lockfile_touchlock+set}" = set; then
39185 + echo $ECHO_N "(cached) $ECHO_C" >&6
39187 + ac_check_lib_save_LIBS=$LIBS
39188 +LIBS="-llockfile $LIBS"
39189 +cat >conftest.$ac_ext <<_ACEOF
39192 +cat confdefs.h >>conftest.$ac_ext
39193 +cat >>conftest.$ac_ext <<_ACEOF
39194 +/* end confdefs.h. */
39196 +/* Override any gcc2 internal prototype to avoid an error. */
39197 +#ifdef __cplusplus
39200 +/* We use char because int might match the return type of a gcc2
39201 + builtin and then its argument prototype would still apply. */
39202 +char touchlock ();
39211 +rm -f conftest.$ac_objext conftest$ac_exeext
39212 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39213 + (eval $ac_link) 2>conftest.er1
39215 + grep -v '^ *+' conftest.er1 >conftest.err
39216 + rm -f conftest.er1
39217 + cat conftest.err >&5
39218 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 + (exit $ac_status); } &&
39220 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39221 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222 + (eval $ac_try) 2>&5
39224 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 + (exit $ac_status); }; } &&
39226 + { ac_try='test -s conftest$ac_exeext'
39227 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39228 + (eval $ac_try) 2>&5
39230 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231 + (exit $ac_status); }; }; then
39232 + ac_cv_lib_lockfile_touchlock=yes
39234 + echo "$as_me: failed program was:" >&5
39235 +sed 's/^/| /' conftest.$ac_ext >&5
39237 +ac_cv_lib_lockfile_touchlock=no
39239 +rm -f conftest.err conftest.$ac_objext \
39240 + conftest$ac_exeext conftest.$ac_ext
39241 +LIBS=$ac_check_lib_save_LIBS
39243 +echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_touchlock" >&5
39244 +echo "${ECHO_T}$ac_cv_lib_lockfile_touchlock" >&6
39245 +if test $ac_cv_lib_lockfile_touchlock = yes; then
39246 + cat >>confdefs.h <<\_ACEOF
39247 +#define HAVE_TOUCHLOCK 1
39253 +for ac_header in maillock.h
39255 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39256 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39257 + echo "$as_me:$LINENO: checking for $ac_header" >&5
39258 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39259 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39260 + echo $ECHO_N "(cached) $ECHO_C" >&6
39262 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39263 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39265 + # Is the header compilable?
39266 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
39267 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39268 +cat >conftest.$ac_ext <<_ACEOF
39271 +cat confdefs.h >>conftest.$ac_ext
39272 +cat >>conftest.$ac_ext <<_ACEOF
39273 +/* end confdefs.h. */
39274 +$ac_includes_default
39275 +#include <$ac_header>
39277 +rm -f conftest.$ac_objext
39278 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39279 + (eval $ac_compile) 2>conftest.er1
39281 + grep -v '^ *+' conftest.er1 >conftest.err
39282 + rm -f conftest.er1
39283 + cat conftest.err >&5
39284 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285 + (exit $ac_status); } &&
39286 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39287 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39288 + (eval $ac_try) 2>&5
39290 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39291 + (exit $ac_status); }; } &&
39292 + { ac_try='test -s conftest.$ac_objext'
39293 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39294 + (eval $ac_try) 2>&5
39296 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297 + (exit $ac_status); }; }; then
39298 + ac_header_compiler=yes
39300 + echo "$as_me: failed program was:" >&5
39301 +sed 's/^/| /' conftest.$ac_ext >&5
39303 +ac_header_compiler=no
39305 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39306 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39307 +echo "${ECHO_T}$ac_header_compiler" >&6
39309 +# Is the header present?
39310 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
39311 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39312 +cat >conftest.$ac_ext <<_ACEOF
39315 +cat confdefs.h >>conftest.$ac_ext
39316 +cat >>conftest.$ac_ext <<_ACEOF
39317 +/* end confdefs.h. */
39318 +#include <$ac_header>
39320 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39321 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39323 + grep -v '^ *+' conftest.er1 >conftest.err
39324 + rm -f conftest.er1
39325 + cat conftest.err >&5
39326 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39327 + (exit $ac_status); } >/dev/null; then
39328 + if test -s conftest.err; then
39329 + ac_cpp_err=$ac_c_preproc_warn_flag
39330 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39337 +if test -z "$ac_cpp_err"; then
39338 + ac_header_preproc=yes
39340 + echo "$as_me: failed program was:" >&5
39341 +sed 's/^/| /' conftest.$ac_ext >&5
39343 + ac_header_preproc=no
39345 +rm -f conftest.err conftest.$ac_ext
39346 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39347 +echo "${ECHO_T}$ac_header_preproc" >&6
39349 +# So? What about this header?
39350 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39352 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39353 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39354 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39355 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39356 + ac_header_preproc=yes
39359 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39360 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39361 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39362 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39363 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39364 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39365 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39366 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39367 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39368 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39369 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39370 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39373 +## ------------------------------------------ ##
39374 +## Report this to the AC_PACKAGE_NAME lists. ##
39375 +## ------------------------------------------ ##
39378 + sed "s/^/$as_me: WARNING: /" >&2
39381 +echo "$as_me:$LINENO: checking for $ac_header" >&5
39382 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39383 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39384 + echo $ECHO_N "(cached) $ECHO_C" >&6
39386 + eval "$as_ac_Header=\$ac_header_preproc"
39388 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39389 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39392 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
39393 + cat >>confdefs.h <<_ACEOF
39394 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39402 + echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
39403 +echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
39404 +if test "${ac_cv_lib_mail_maillock+set}" = set; then
39405 + echo $ECHO_N "(cached) $ECHO_C" >&6
39407 + ac_check_lib_save_LIBS=$LIBS
39408 +LIBS="-lmail $LIBS"
39409 +cat >conftest.$ac_ext <<_ACEOF
39412 +cat confdefs.h >>conftest.$ac_ext
39413 +cat >>conftest.$ac_ext <<_ACEOF
39414 +/* end confdefs.h. */
39416 +/* Override any gcc2 internal prototype to avoid an error. */
39417 +#ifdef __cplusplus
39420 +/* We use char because int might match the return type of a gcc2
39421 + builtin and then its argument prototype would still apply. */
39431 +rm -f conftest.$ac_objext conftest$ac_exeext
39432 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39433 + (eval $ac_link) 2>conftest.er1
39435 + grep -v '^ *+' conftest.er1 >conftest.err
39436 + rm -f conftest.er1
39437 + cat conftest.err >&5
39438 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439 + (exit $ac_status); } &&
39440 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39441 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39442 + (eval $ac_try) 2>&5
39444 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445 + (exit $ac_status); }; } &&
39446 + { ac_try='test -s conftest$ac_exeext'
39447 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39448 + (eval $ac_try) 2>&5
39450 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39451 + (exit $ac_status); }; }; then
39452 + ac_cv_lib_mail_maillock=yes
39454 + echo "$as_me: failed program was:" >&5
39455 +sed 's/^/| /' conftest.$ac_ext >&5
39457 +ac_cv_lib_mail_maillock=no
39459 +rm -f conftest.err conftest.$ac_objext \
39460 + conftest$ac_exeext conftest.$ac_ext
39461 +LIBS=$ac_check_lib_save_LIBS
39463 +echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
39464 +echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
39465 +if test $ac_cv_lib_mail_maillock = yes; then
39466 + cat >>confdefs.h <<\_ACEOF
39467 +#define HAVE_LIBMAIL 1
39470 + MOVEMAIL_LOCK_LIBS="-lmail"
39471 + echo "$as_me:$LINENO: checking for touchlock in -lmail" >&5
39472 +echo $ECHO_N "checking for touchlock in -lmail... $ECHO_C" >&6
39473 +if test "${ac_cv_lib_mail_touchlock+set}" = set; then
39474 + echo $ECHO_N "(cached) $ECHO_C" >&6
39476 + ac_check_lib_save_LIBS=$LIBS
39477 +LIBS="-lmail $LIBS"
39478 +cat >conftest.$ac_ext <<_ACEOF
39481 +cat confdefs.h >>conftest.$ac_ext
39482 +cat >>conftest.$ac_ext <<_ACEOF
39483 +/* end confdefs.h. */
39485 +/* Override any gcc2 internal prototype to avoid an error. */
39486 +#ifdef __cplusplus
39489 +/* We use char because int might match the return type of a gcc2
39490 + builtin and then its argument prototype would still apply. */
39491 +char touchlock ();
39500 +rm -f conftest.$ac_objext conftest$ac_exeext
39501 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39502 + (eval $ac_link) 2>conftest.er1
39504 + grep -v '^ *+' conftest.er1 >conftest.err
39505 + rm -f conftest.er1
39506 + cat conftest.err >&5
39507 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39508 + (exit $ac_status); } &&
39509 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39510 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39511 + (eval $ac_try) 2>&5
39513 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39514 + (exit $ac_status); }; } &&
39515 + { ac_try='test -s conftest$ac_exeext'
39516 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39517 + (eval $ac_try) 2>&5
39519 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520 + (exit $ac_status); }; }; then
39521 + ac_cv_lib_mail_touchlock=yes
39523 + echo "$as_me: failed program was:" >&5
39524 +sed 's/^/| /' conftest.$ac_ext >&5
39526 +ac_cv_lib_mail_touchlock=no
39528 +rm -f conftest.err conftest.$ac_objext \
39529 + conftest$ac_exeext conftest.$ac_ext
39530 +LIBS=$ac_check_lib_save_LIBS
39532 +echo "$as_me:$LINENO: result: $ac_cv_lib_mail_touchlock" >&5
39533 +echo "${ECHO_T}$ac_cv_lib_mail_touchlock" >&6
39534 +if test $ac_cv_lib_mail_touchlock = yes; then
39535 + cat >>confdefs.h <<\_ACEOF
39536 +#define HAVE_TOUCHLOCK 1
39542 +for ac_func in touchlock
39544 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39545 +echo "$as_me:$LINENO: checking for $ac_func" >&5
39546 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39547 +if eval "test \"\${$as_ac_var+set}\" = set"; then
39548 + echo $ECHO_N "(cached) $ECHO_C" >&6
39550 + cat >conftest.$ac_ext <<_ACEOF
39553 +cat confdefs.h >>conftest.$ac_ext
39554 +cat >>conftest.$ac_ext <<_ACEOF
39555 +/* end confdefs.h. */
39556 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39557 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
39558 +#define $ac_func innocuous_$ac_func
39560 +/* System header to define __stub macros and hopefully few prototypes,
39561 + which can conflict with char $ac_func (); below.
39562 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39563 + <limits.h> exists even on freestanding compilers. */
39566 +# include <limits.h>
39568 +# include <assert.h>
39573 +/* Override any gcc2 internal prototype to avoid an error. */
39574 +#ifdef __cplusplus
39578 +/* We use char because int might match the return type of a gcc2
39579 + builtin and then its argument prototype would still apply. */
39581 +/* The GNU C library defines this for functions which it implements
39582 + to always fail with ENOSYS. Some functions are actually named
39583 + something starting with __ and the normal name is an alias. */
39584 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39587 +char (*f) () = $ac_func;
39589 +#ifdef __cplusplus
39596 +return f != $ac_func;
39601 +rm -f conftest.$ac_objext conftest$ac_exeext
39602 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39603 + (eval $ac_link) 2>conftest.er1
39605 + grep -v '^ *+' conftest.er1 >conftest.err
39606 + rm -f conftest.er1
39607 + cat conftest.err >&5
39608 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609 + (exit $ac_status); } &&
39610 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39611 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39612 + (eval $ac_try) 2>&5
39614 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 + (exit $ac_status); }; } &&
39616 + { ac_try='test -s conftest$ac_exeext'
39617 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39618 + (eval $ac_try) 2>&5
39620 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39621 + (exit $ac_status); }; }; then
39622 + eval "$as_ac_var=yes"
39624 + echo "$as_me: failed program was:" >&5
39625 +sed 's/^/| /' conftest.$ac_ext >&5
39627 +eval "$as_ac_var=no"
39629 +rm -f conftest.err conftest.$ac_objext \
39630 + conftest$ac_exeext conftest.$ac_ext
39632 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39633 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39634 +if test `eval echo '${'$as_ac_var'}'` = yes; then
39635 + cat >>confdefs.h <<_ACEOF
39636 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39643 +for ac_header in maillock.h
39645 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39646 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39647 + echo "$as_me:$LINENO: checking for $ac_header" >&5
39648 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39649 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39650 + echo $ECHO_N "(cached) $ECHO_C" >&6
39652 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39653 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39655 + # Is the header compilable?
39656 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
39657 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39658 +cat >conftest.$ac_ext <<_ACEOF
39661 +cat confdefs.h >>conftest.$ac_ext
39662 +cat >>conftest.$ac_ext <<_ACEOF
39663 +/* end confdefs.h. */
39664 +$ac_includes_default
39665 +#include <$ac_header>
39667 +rm -f conftest.$ac_objext
39668 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39669 + (eval $ac_compile) 2>conftest.er1
39671 + grep -v '^ *+' conftest.er1 >conftest.err
39672 + rm -f conftest.er1
39673 + cat conftest.err >&5
39674 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675 + (exit $ac_status); } &&
39676 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39677 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39678 + (eval $ac_try) 2>&5
39680 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681 + (exit $ac_status); }; } &&
39682 + { ac_try='test -s conftest.$ac_objext'
39683 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39684 + (eval $ac_try) 2>&5
39686 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 + (exit $ac_status); }; }; then
39688 + ac_header_compiler=yes
39690 + echo "$as_me: failed program was:" >&5
39691 +sed 's/^/| /' conftest.$ac_ext >&5
39693 +ac_header_compiler=no
39695 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39696 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39697 +echo "${ECHO_T}$ac_header_compiler" >&6
39699 +# Is the header present?
39700 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
39701 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39702 +cat >conftest.$ac_ext <<_ACEOF
39705 +cat confdefs.h >>conftest.$ac_ext
39706 +cat >>conftest.$ac_ext <<_ACEOF
39707 +/* end confdefs.h. */
39708 +#include <$ac_header>
39710 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39711 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39713 + grep -v '^ *+' conftest.er1 >conftest.err
39714 + rm -f conftest.er1
39715 + cat conftest.err >&5
39716 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39717 + (exit $ac_status); } >/dev/null; then
39718 + if test -s conftest.err; then
39719 + ac_cpp_err=$ac_c_preproc_warn_flag
39720 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39727 +if test -z "$ac_cpp_err"; then
39728 + ac_header_preproc=yes
39730 + echo "$as_me: failed program was:" >&5
39731 +sed 's/^/| /' conftest.$ac_ext >&5
39733 + ac_header_preproc=no
39735 +rm -f conftest.err conftest.$ac_ext
39736 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39737 +echo "${ECHO_T}$ac_header_preproc" >&6
39739 +# So? What about this header?
39740 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39742 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39743 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39744 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39745 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39746 + ac_header_preproc=yes
39749 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39750 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39751 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39752 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39753 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39754 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39755 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39756 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39757 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39758 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39759 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39760 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39763 +## ------------------------------------------ ##
39764 +## Report this to the AC_PACKAGE_NAME lists. ##
39765 +## ------------------------------------------ ##
39768 + sed "s/^/$as_me: WARNING: /" >&2
39771 +echo "$as_me:$LINENO: checking for $ac_header" >&5
39772 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39773 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39774 + echo $ECHO_N "(cached) $ECHO_C" >&6
39776 + eval "$as_ac_Header=\$ac_header_preproc"
39778 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39779 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39782 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
39783 + cat >>confdefs.h <<_ACEOF
39784 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39797 +# Tests borrowed (and slightly rearranged) from old paths.el
39798 +# rmail-spool-directory tests. They should be in the order most
39799 +# likely to get the right answer. You can always override them on the
39800 +# system level in src/s/* and on a one-shot basis with
39801 +# --with-mail-spool-directory.
39803 +echo "$as_me:$LINENO: checking for mail spool location" >&5
39804 +echo $ECHO_N "checking for mail spool location... $ECHO_C" >&6
39805 +if test "${with_mail_spool+set}" = set; then
39806 + echo "$as_me:$LINENO: result: ${with_mail_spool}" >&5
39807 +echo "${ECHO_T}${with_mail_spool}" >&6
39808 +elif test -d /var/mail/; then
39809 + cat >>confdefs.h <<_ACEOF
39810 +#define CONF_MAIL_SPOOL_DIRECTORY "/var/mail"
39813 + echo "$as_me:$LINENO: result: \"/var/mail\"" >&5
39814 +echo "${ECHO_T}\"/var/mail\"" >&6
39815 +elif test -d /var/spool/mail/; then
39816 + cat >>confdefs.h <<_ACEOF
39817 +#define CONF_MAIL_SPOOL_DIRECTORY "/var/spool/mail"
39820 + echo "$as_me:$LINENO: result: \"/var/spool/mail\"" >&5
39821 +echo "${ECHO_T}\"/var/spool/mail\"" >&6
39822 +elif test -d /usr/mail/; then
39823 + cat >>confdefs.h <<_ACEOF
39824 +#define CONF_MAIL_SPOOL_DIRECTORY "/usr/mail"
39827 + echo "$as_me:$LINENO: result: \"/usr/mail\"" >&5
39828 +echo "${ECHO_T}\"/usr/mail\"" >&6
39829 +elif test -d /usr/spool/mail/; then
39830 + cat >>confdefs.h <<_ACEOF
39831 +#define CONF_MAIL_SPOOL_DIRECTORY "/usr/spool/mail"
39834 + echo "$as_me:$LINENO: result: \"/usr/spool/mail\"" >&5
39835 +echo "${ECHO_T}\"/usr/spool/mail\"" >&6
39837 + echo "$as_me:$LINENO: result: not found" >&5
39838 +echo "${ECHO_T}not found" >&6
39841 +# Find the location of "mail". This is critical for fakemail at
39842 +# least. before fakemail would silently fail if this was wrong, so
39843 +# insist on finding it.
39844 +echo "$as_me:$LINENO: checking for mail binary" >&5
39845 +echo $ECHO_N "checking for mail binary... $ECHO_C" >&6
39846 +if test -x /bin/mail; then
39847 + cat >>confdefs.h <<_ACEOF
39848 +#define CONF_MAIL_PROGRAM_NAME "/bin/mail"
39851 + echo "$as_me:$LINENO: result: \"/bin/mail\"" >&5
39852 +echo "${ECHO_T}\"/bin/mail\"" >&6
39853 +elif test -x /usr/bin/mail; then
39854 + cat >>confdefs.h <<_ACEOF
39855 +#define CONF_MAIL_PROGRAM_NAME "/usr/bin/mail"
39858 + echo "$as_me:$LINENO: result: \"/usr/bin/mail\"" >&5
39859 +echo "${ECHO_T}\"/usr/bin/mail\"" >&6
39861 + { { echo "$as_me:$LINENO: error: could not find mail binary" >&5
39862 +echo "$as_me: error: could not find mail binary" >&2;}
39863 + { (exit 1); exit 1; }; }
39912 +for ac_func in gethostname getdomainname dup2 \
39913 +rename closedir mkdir rmdir sysinfo \
39914 +random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
39915 +strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
39916 +utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
39917 +__fpending mblen mbrlen strsignal setitimer ualarm index rindex \
39918 +gai_strerror mkstemp
39920 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39921 +echo "$as_me:$LINENO: checking for $ac_func" >&5
39922 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39923 +if eval "test \"\${$as_ac_var+set}\" = set"; then
39924 + echo $ECHO_N "(cached) $ECHO_C" >&6
39926 + cat >conftest.$ac_ext <<_ACEOF
39929 +cat confdefs.h >>conftest.$ac_ext
39930 +cat >>conftest.$ac_ext <<_ACEOF
39931 +/* end confdefs.h. */
39932 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39933 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
39934 +#define $ac_func innocuous_$ac_func
39936 +/* System header to define __stub macros and hopefully few prototypes,
39937 + which can conflict with char $ac_func (); below.
39938 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39939 + <limits.h> exists even on freestanding compilers. */
39942 +# include <limits.h>
39944 +# include <assert.h>
39949 +/* Override any gcc2 internal prototype to avoid an error. */
39950 +#ifdef __cplusplus
39954 +/* We use char because int might match the return type of a gcc2
39955 + builtin and then its argument prototype would still apply. */
39957 +/* The GNU C library defines this for functions which it implements
39958 + to always fail with ENOSYS. Some functions are actually named
39959 + something starting with __ and the normal name is an alias. */
39960 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39963 +char (*f) () = $ac_func;
39965 +#ifdef __cplusplus
39972 +return f != $ac_func;
39977 +rm -f conftest.$ac_objext conftest$ac_exeext
39978 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39979 + (eval $ac_link) 2>conftest.er1
39981 + grep -v '^ *+' conftest.er1 >conftest.err
39982 + rm -f conftest.er1
39983 + cat conftest.err >&5
39984 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39985 + (exit $ac_status); } &&
39986 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39987 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39988 + (eval $ac_try) 2>&5
39990 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39991 + (exit $ac_status); }; } &&
39992 + { ac_try='test -s conftest$ac_exeext'
39993 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39994 + (eval $ac_try) 2>&5
39996 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39997 + (exit $ac_status); }; }; then
39998 + eval "$as_ac_var=yes"
40000 + echo "$as_me: failed program was:" >&5
40001 +sed 's/^/| /' conftest.$ac_ext >&5
40003 +eval "$as_ac_var=no"
40005 +rm -f conftest.err conftest.$ac_objext \
40006 + conftest$ac_exeext conftest.$ac_ext
40008 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40009 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40010 +if test `eval echo '${'$as_ac_var'}'` = yes; then
40011 + cat >>confdefs.h <<_ACEOF
40012 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40022 +for ac_header in stdlib.h sys/time.h unistd.h
40024 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40025 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
40026 + echo "$as_me:$LINENO: checking for $ac_header" >&5
40027 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40028 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
40029 + echo $ECHO_N "(cached) $ECHO_C" >&6
40031 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40032 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40034 + # Is the header compilable?
40035 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
40036 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40037 +cat >conftest.$ac_ext <<_ACEOF
40040 +cat confdefs.h >>conftest.$ac_ext
40041 +cat >>conftest.$ac_ext <<_ACEOF
40042 +/* end confdefs.h. */
40043 +$ac_includes_default
40044 +#include <$ac_header>
40046 +rm -f conftest.$ac_objext
40047 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40048 + (eval $ac_compile) 2>conftest.er1
40050 + grep -v '^ *+' conftest.er1 >conftest.err
40051 + rm -f conftest.er1
40052 + cat conftest.err >&5
40053 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054 + (exit $ac_status); } &&
40055 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40056 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057 + (eval $ac_try) 2>&5
40059 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060 + (exit $ac_status); }; } &&
40061 + { ac_try='test -s conftest.$ac_objext'
40062 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40063 + (eval $ac_try) 2>&5
40065 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40066 + (exit $ac_status); }; }; then
40067 + ac_header_compiler=yes
40069 + echo "$as_me: failed program was:" >&5
40070 +sed 's/^/| /' conftest.$ac_ext >&5
40072 +ac_header_compiler=no
40074 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40075 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40076 +echo "${ECHO_T}$ac_header_compiler" >&6
40078 +# Is the header present?
40079 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
40080 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40081 +cat >conftest.$ac_ext <<_ACEOF
40084 +cat confdefs.h >>conftest.$ac_ext
40085 +cat >>conftest.$ac_ext <<_ACEOF
40086 +/* end confdefs.h. */
40087 +#include <$ac_header>
40089 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40090 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40092 + grep -v '^ *+' conftest.er1 >conftest.err
40093 + rm -f conftest.er1
40094 + cat conftest.err >&5
40095 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096 + (exit $ac_status); } >/dev/null; then
40097 + if test -s conftest.err; then
40098 + ac_cpp_err=$ac_c_preproc_warn_flag
40099 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40106 +if test -z "$ac_cpp_err"; then
40107 + ac_header_preproc=yes
40109 + echo "$as_me: failed program was:" >&5
40110 +sed 's/^/| /' conftest.$ac_ext >&5
40112 + ac_header_preproc=no
40114 +rm -f conftest.err conftest.$ac_ext
40115 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40116 +echo "${ECHO_T}$ac_header_preproc" >&6
40118 +# So? What about this header?
40119 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40121 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40122 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40123 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40124 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40125 + ac_header_preproc=yes
40128 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40129 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40130 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40131 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40132 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40133 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40134 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40135 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40136 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40137 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40138 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40139 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40142 +## ------------------------------------------ ##
40143 +## Report this to the AC_PACKAGE_NAME lists. ##
40144 +## ------------------------------------------ ##
40147 + sed "s/^/$as_me: WARNING: /" >&2
40150 +echo "$as_me:$LINENO: checking for $ac_header" >&5
40151 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40152 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
40153 + echo $ECHO_N "(cached) $ECHO_C" >&6
40155 + eval "$as_ac_Header=\$ac_header_preproc"
40157 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40158 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40161 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
40162 + cat >>confdefs.h <<_ACEOF
40163 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40171 +for ac_func in alarm
40173 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40174 +echo "$as_me:$LINENO: checking for $ac_func" >&5
40175 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40176 +if eval "test \"\${$as_ac_var+set}\" = set"; then
40177 + echo $ECHO_N "(cached) $ECHO_C" >&6
40179 + cat >conftest.$ac_ext <<_ACEOF
40182 +cat confdefs.h >>conftest.$ac_ext
40183 +cat >>conftest.$ac_ext <<_ACEOF
40184 +/* end confdefs.h. */
40185 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40186 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
40187 +#define $ac_func innocuous_$ac_func
40189 +/* System header to define __stub macros and hopefully few prototypes,
40190 + which can conflict with char $ac_func (); below.
40191 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40192 + <limits.h> exists even on freestanding compilers. */
40195 +# include <limits.h>
40197 +# include <assert.h>
40202 +/* Override any gcc2 internal prototype to avoid an error. */
40203 +#ifdef __cplusplus
40207 +/* We use char because int might match the return type of a gcc2
40208 + builtin and then its argument prototype would still apply. */
40210 +/* The GNU C library defines this for functions which it implements
40211 + to always fail with ENOSYS. Some functions are actually named
40212 + something starting with __ and the normal name is an alias. */
40213 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40216 +char (*f) () = $ac_func;
40218 +#ifdef __cplusplus
40225 +return f != $ac_func;
40230 +rm -f conftest.$ac_objext conftest$ac_exeext
40231 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40232 + (eval $ac_link) 2>conftest.er1
40234 + grep -v '^ *+' conftest.er1 >conftest.err
40235 + rm -f conftest.er1
40236 + cat conftest.err >&5
40237 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40238 + (exit $ac_status); } &&
40239 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40240 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40241 + (eval $ac_try) 2>&5
40243 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244 + (exit $ac_status); }; } &&
40245 + { ac_try='test -s conftest$ac_exeext'
40246 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40247 + (eval $ac_try) 2>&5
40249 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40250 + (exit $ac_status); }; }; then
40251 + eval "$as_ac_var=yes"
40253 + echo "$as_me: failed program was:" >&5
40254 +sed 's/^/| /' conftest.$ac_ext >&5
40256 +eval "$as_ac_var=no"
40258 +rm -f conftest.err conftest.$ac_objext \
40259 + conftest$ac_exeext conftest.$ac_ext
40261 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40262 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40263 +if test `eval echo '${'$as_ac_var'}'` = yes; then
40264 + cat >>confdefs.h <<_ACEOF
40265 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40271 +echo "$as_me:$LINENO: checking for working mktime" >&5
40272 +echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
40273 +if test "${ac_cv_func_working_mktime+set}" = set; then
40274 + echo $ECHO_N "(cached) $ECHO_C" >&6
40276 + if test "$cross_compiling" = yes; then
40277 + ac_cv_func_working_mktime=no
40279 + cat >conftest.$ac_ext <<_ACEOF
40282 +cat confdefs.h >>conftest.$ac_ext
40283 +cat >>conftest.$ac_ext <<_ACEOF
40284 +/* end confdefs.h. */
40285 +/* Test program from Paul Eggert and Tony Leneis. */
40286 +#if TIME_WITH_SYS_TIME
40287 +# include <sys/time.h>
40288 +# include <time.h>
40290 +# if HAVE_SYS_TIME_H
40291 +# include <sys/time.h>
40293 +# include <time.h>
40298 +# include <stdlib.h>
40302 +# include <unistd.h>
40306 +# define alarm(X) /* empty */
40309 +/* Work around redefinition to rpl_putenv by other config tests. */
40312 +static time_t time_t_max;
40313 +static time_t time_t_min;
40315 +/* Values we'll use to set the TZ environment variable. */
40316 +static char *tz_strings[] = {
40317 + (char *) 0, "TZ=GMT0", "TZ=JST-9",
40318 + "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
40320 +#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
40322 +/* Fail if mktime fails to convert a date in the spring-forward gap.
40323 + Based on a problem report from Andreas Jaeger. */
40325 +spring_forward_gap ()
40327 + /* glibc (up to about 1998-10-07) failed this test. */
40330 + /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
40331 + instead of "TZ=America/Vancouver" in order to detect the bug even
40332 + on systems that don't support the Olson extension, or don't have the
40333 + full zoneinfo tables installed. */
40334 + putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
40342 + tm.tm_isdst = -1;
40343 + if (mktime (&tm) == (time_t)-1)
40348 +mktime_test1 (now)
40352 + if ((lt = localtime (&now)) && mktime (lt) != now)
40360 + mktime_test1 (now);
40361 + mktime_test1 ((time_t) (time_t_max - now));
40362 + mktime_test1 ((time_t) (time_t_min + now));
40368 + /* Based on code from Ariel Faigon. */
40376 + tm.tm_isdst = -1;
40378 + if (tm.tm_mon != 2 || tm.tm_mday != 31)
40388 + tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
40389 + now = mktime (&tm);
40390 + if (now != (time_t) -1)
40392 + struct tm *lt = localtime (&now);
40394 + && lt->tm_year == tm.tm_year
40395 + && lt->tm_mon == tm.tm_mon
40396 + && lt->tm_mday == tm.tm_mday
40397 + && lt->tm_hour == tm.tm_hour
40398 + && lt->tm_min == tm.tm_min
40399 + && lt->tm_sec == tm.tm_sec
40400 + && lt->tm_yday == tm.tm_yday
40401 + && lt->tm_wday == tm.tm_wday
40402 + && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
40403 + == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
40414 + /* This test makes some buggy mktime implementations loop.
40415 + Give up after 60 seconds; a mktime slower than that
40416 + isn't worth using anyway. */
40419 + for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
40422 + if ((time_t) -1 < 0)
40423 + for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
40425 + delta = time_t_max / 997; /* a suitable prime number */
40426 + for (i = 0; i < N_STRINGS; i++)
40428 + if (tz_strings[i])
40429 + putenv (tz_strings[i]);
40431 + for (t = 0; t <= time_t_max - delta; t += delta)
40433 + mktime_test ((time_t) 1);
40434 + mktime_test ((time_t) (60 * 60));
40435 + mktime_test ((time_t) (60 * 60 * 24));
40437 + for (j = 1; 0 < j; j *= 2)
40438 + bigtime_test (j);
40439 + bigtime_test (j - 1);
40442 + spring_forward_gap ();
40446 +rm -f conftest$ac_exeext
40447 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40448 + (eval $ac_link) 2>&5
40450 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40452 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40453 + (eval $ac_try) 2>&5
40455 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40456 + (exit $ac_status); }; }; then
40457 + ac_cv_func_working_mktime=yes
40459 + echo "$as_me: program exited with status $ac_status" >&5
40460 +echo "$as_me: failed program was:" >&5
40461 +sed 's/^/| /' conftest.$ac_ext >&5
40463 +( exit $ac_status )
40464 +ac_cv_func_working_mktime=no
40466 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40469 +echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
40470 +echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
40471 +if test $ac_cv_func_working_mktime = no; then
40473 + "mktime.$ac_objext" | \
40474 + *" mktime.$ac_objext" | \
40475 + "mktime.$ac_objext "* | \
40476 + *" mktime.$ac_objext "* ) ;;
40477 + *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
40482 +if test "$ac_cv_func_working_mktime" = no; then
40483 + cat >>confdefs.h <<\_ACEOF
40484 +#define BROKEN_MKTIME 1
40489 +ac_have_func=no # yes means we've found a way to get the load average.
40491 +# Make sure getloadavg.c is where it belongs, at configure-time.
40492 +test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
40493 + { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
40494 +echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
40495 + { (exit 1); exit 1; }; }
40497 +ac_save_LIBS=$LIBS
40499 +# Check for getloadavg, but be sure not to touch the cache variable.
40500 +(echo "$as_me:$LINENO: checking for getloadavg" >&5
40501 +echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
40502 +if test "${ac_cv_func_getloadavg+set}" = set; then
40503 + echo $ECHO_N "(cached) $ECHO_C" >&6
40505 + cat >conftest.$ac_ext <<_ACEOF
40508 +cat confdefs.h >>conftest.$ac_ext
40509 +cat >>conftest.$ac_ext <<_ACEOF
40510 +/* end confdefs.h. */
40511 +/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
40512 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
40513 +#define getloadavg innocuous_getloadavg
40515 +/* System header to define __stub macros and hopefully few prototypes,
40516 + which can conflict with char getloadavg (); below.
40517 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40518 + <limits.h> exists even on freestanding compilers. */
40521 +# include <limits.h>
40523 +# include <assert.h>
40528 +/* Override any gcc2 internal prototype to avoid an error. */
40529 +#ifdef __cplusplus
40533 +/* We use char because int might match the return type of a gcc2
40534 + builtin and then its argument prototype would still apply. */
40535 +char getloadavg ();
40536 +/* The GNU C library defines this for functions which it implements
40537 + to always fail with ENOSYS. Some functions are actually named
40538 + something starting with __ and the normal name is an alias. */
40539 +#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
40542 +char (*f) () = getloadavg;
40544 +#ifdef __cplusplus
40551 +return f != getloadavg;
40556 +rm -f conftest.$ac_objext conftest$ac_exeext
40557 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40558 + (eval $ac_link) 2>conftest.er1
40560 + grep -v '^ *+' conftest.er1 >conftest.err
40561 + rm -f conftest.er1
40562 + cat conftest.err >&5
40563 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564 + (exit $ac_status); } &&
40565 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40566 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40567 + (eval $ac_try) 2>&5
40569 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 + (exit $ac_status); }; } &&
40571 + { ac_try='test -s conftest$ac_exeext'
40572 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40573 + (eval $ac_try) 2>&5
40575 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576 + (exit $ac_status); }; }; then
40577 + ac_cv_func_getloadavg=yes
40579 + echo "$as_me: failed program was:" >&5
40580 +sed 's/^/| /' conftest.$ac_ext >&5
40582 +ac_cv_func_getloadavg=no
40584 +rm -f conftest.err conftest.$ac_objext \
40585 + conftest$ac_exeext conftest.$ac_ext
40587 +echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
40588 +echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
40589 +if test $ac_cv_func_getloadavg = yes; then
40594 +) && ac_have_func=yes
40596 +# On HPUX9, an unprivileged user can get load averages through this function.
40598 +for ac_func in pstat_getdynamic
40600 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40601 +echo "$as_me:$LINENO: checking for $ac_func" >&5
40602 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40603 +if eval "test \"\${$as_ac_var+set}\" = set"; then
40604 + echo $ECHO_N "(cached) $ECHO_C" >&6
40606 + cat >conftest.$ac_ext <<_ACEOF
40609 +cat confdefs.h >>conftest.$ac_ext
40610 +cat >>conftest.$ac_ext <<_ACEOF
40611 +/* end confdefs.h. */
40612 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40613 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
40614 +#define $ac_func innocuous_$ac_func
40616 +/* System header to define __stub macros and hopefully few prototypes,
40617 + which can conflict with char $ac_func (); below.
40618 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40619 + <limits.h> exists even on freestanding compilers. */
40622 +# include <limits.h>
40624 +# include <assert.h>
40629 +/* Override any gcc2 internal prototype to avoid an error. */
40630 +#ifdef __cplusplus
40634 +/* We use char because int might match the return type of a gcc2
40635 + builtin and then its argument prototype would still apply. */
40637 +/* The GNU C library defines this for functions which it implements
40638 + to always fail with ENOSYS. Some functions are actually named
40639 + something starting with __ and the normal name is an alias. */
40640 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40643 +char (*f) () = $ac_func;
40645 +#ifdef __cplusplus
40652 +return f != $ac_func;
40657 +rm -f conftest.$ac_objext conftest$ac_exeext
40658 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40659 + (eval $ac_link) 2>conftest.er1
40661 + grep -v '^ *+' conftest.er1 >conftest.err
40662 + rm -f conftest.er1
40663 + cat conftest.err >&5
40664 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665 + (exit $ac_status); } &&
40666 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40667 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40668 + (eval $ac_try) 2>&5
40670 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671 + (exit $ac_status); }; } &&
40672 + { ac_try='test -s conftest$ac_exeext'
40673 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40674 + (eval $ac_try) 2>&5
40676 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40677 + (exit $ac_status); }; }; then
40678 + eval "$as_ac_var=yes"
40680 + echo "$as_me: failed program was:" >&5
40681 +sed 's/^/| /' conftest.$ac_ext >&5
40683 +eval "$as_ac_var=no"
40685 +rm -f conftest.err conftest.$ac_objext \
40686 + conftest$ac_exeext conftest.$ac_ext
40688 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40689 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40690 +if test `eval echo '${'$as_ac_var'}'` = yes; then
40691 + cat >>confdefs.h <<_ACEOF
40692 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40699 +# Solaris has libkstat which does not require root.
40701 +echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
40702 +echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
40703 +if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
40704 + echo $ECHO_N "(cached) $ECHO_C" >&6
40706 + ac_check_lib_save_LIBS=$LIBS
40707 +LIBS="-lkstat $LIBS"
40708 +cat >conftest.$ac_ext <<_ACEOF
40711 +cat confdefs.h >>conftest.$ac_ext
40712 +cat >>conftest.$ac_ext <<_ACEOF
40713 +/* end confdefs.h. */
40715 +/* Override any gcc2 internal prototype to avoid an error. */
40716 +#ifdef __cplusplus
40719 +/* We use char because int might match the return type of a gcc2
40720 + builtin and then its argument prototype would still apply. */
40721 +char kstat_open ();
40730 +rm -f conftest.$ac_objext conftest$ac_exeext
40731 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40732 + (eval $ac_link) 2>conftest.er1
40734 + grep -v '^ *+' conftest.er1 >conftest.err
40735 + rm -f conftest.er1
40736 + cat conftest.err >&5
40737 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738 + (exit $ac_status); } &&
40739 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40740 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40741 + (eval $ac_try) 2>&5
40743 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744 + (exit $ac_status); }; } &&
40745 + { ac_try='test -s conftest$ac_exeext'
40746 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40747 + (eval $ac_try) 2>&5
40749 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40750 + (exit $ac_status); }; }; then
40751 + ac_cv_lib_kstat_kstat_open=yes
40753 + echo "$as_me: failed program was:" >&5
40754 +sed 's/^/| /' conftest.$ac_ext >&5
40756 +ac_cv_lib_kstat_kstat_open=no
40758 +rm -f conftest.err conftest.$ac_objext \
40759 + conftest$ac_exeext conftest.$ac_ext
40760 +LIBS=$ac_check_lib_save_LIBS
40762 +echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
40763 +echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
40764 +if test $ac_cv_lib_kstat_kstat_open = yes; then
40765 + cat >>confdefs.h <<_ACEOF
40766 +#define HAVE_LIBKSTAT 1
40769 + LIBS="-lkstat $LIBS"
40773 +test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
40775 +# Some systems with -lutil have (and need) -lkvm as well, some do not.
40776 +# On Solaris, -lkvm requires nlist from -lelf, so check that first
40777 +# to get the right answer into the cache.
40778 +# For kstat on solaris, we need libelf to force the definition of SVR4 below.
40779 +if test $ac_have_func = no; then
40780 + echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
40781 +echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
40782 +if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
40783 + echo $ECHO_N "(cached) $ECHO_C" >&6
40785 + ac_check_lib_save_LIBS=$LIBS
40786 +LIBS="-lelf $LIBS"
40787 +cat >conftest.$ac_ext <<_ACEOF
40790 +cat confdefs.h >>conftest.$ac_ext
40791 +cat >>conftest.$ac_ext <<_ACEOF
40792 +/* end confdefs.h. */
40794 +/* Override any gcc2 internal prototype to avoid an error. */
40795 +#ifdef __cplusplus
40798 +/* We use char because int might match the return type of a gcc2
40799 + builtin and then its argument prototype would still apply. */
40800 +char elf_begin ();
40809 +rm -f conftest.$ac_objext conftest$ac_exeext
40810 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40811 + (eval $ac_link) 2>conftest.er1
40813 + grep -v '^ *+' conftest.er1 >conftest.err
40814 + rm -f conftest.er1
40815 + cat conftest.err >&5
40816 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40817 + (exit $ac_status); } &&
40818 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40819 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40820 + (eval $ac_try) 2>&5
40822 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823 + (exit $ac_status); }; } &&
40824 + { ac_try='test -s conftest$ac_exeext'
40825 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40826 + (eval $ac_try) 2>&5
40828 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40829 + (exit $ac_status); }; }; then
40830 + ac_cv_lib_elf_elf_begin=yes
40832 + echo "$as_me: failed program was:" >&5
40833 +sed 's/^/| /' conftest.$ac_ext >&5
40835 +ac_cv_lib_elf_elf_begin=no
40837 +rm -f conftest.err conftest.$ac_objext \
40838 + conftest$ac_exeext conftest.$ac_ext
40839 +LIBS=$ac_check_lib_save_LIBS
40841 +echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
40842 +echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
40843 +if test $ac_cv_lib_elf_elf_begin = yes; then
40844 + LIBS="-lelf $LIBS"
40848 +if test $ac_have_func = no; then
40849 + echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
40850 +echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
40851 +if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
40852 + echo $ECHO_N "(cached) $ECHO_C" >&6
40854 + ac_check_lib_save_LIBS=$LIBS
40855 +LIBS="-lkvm $LIBS"
40856 +cat >conftest.$ac_ext <<_ACEOF
40859 +cat confdefs.h >>conftest.$ac_ext
40860 +cat >>conftest.$ac_ext <<_ACEOF
40861 +/* end confdefs.h. */
40863 +/* Override any gcc2 internal prototype to avoid an error. */
40864 +#ifdef __cplusplus
40867 +/* We use char because int might match the return type of a gcc2
40868 + builtin and then its argument prototype would still apply. */
40878 +rm -f conftest.$ac_objext conftest$ac_exeext
40879 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40880 + (eval $ac_link) 2>conftest.er1
40882 + grep -v '^ *+' conftest.er1 >conftest.err
40883 + rm -f conftest.er1
40884 + cat conftest.err >&5
40885 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40886 + (exit $ac_status); } &&
40887 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40888 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40889 + (eval $ac_try) 2>&5
40891 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40892 + (exit $ac_status); }; } &&
40893 + { ac_try='test -s conftest$ac_exeext'
40894 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40895 + (eval $ac_try) 2>&5
40897 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40898 + (exit $ac_status); }; }; then
40899 + ac_cv_lib_kvm_kvm_open=yes
40901 + echo "$as_me: failed program was:" >&5
40902 +sed 's/^/| /' conftest.$ac_ext >&5
40904 +ac_cv_lib_kvm_kvm_open=no
40906 +rm -f conftest.err conftest.$ac_objext \
40907 + conftest$ac_exeext conftest.$ac_ext
40908 +LIBS=$ac_check_lib_save_LIBS
40910 +echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
40911 +echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
40912 +if test $ac_cv_lib_kvm_kvm_open = yes; then
40913 + LIBS="-lkvm $LIBS"
40916 + # Check for the 4.4BSD definition of getloadavg.
40917 + echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
40918 +echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
40919 +if test "${ac_cv_lib_util_getloadavg+set}" = set; then
40920 + echo $ECHO_N "(cached) $ECHO_C" >&6
40922 + ac_check_lib_save_LIBS=$LIBS
40923 +LIBS="-lutil $LIBS"
40924 +cat >conftest.$ac_ext <<_ACEOF
40927 +cat confdefs.h >>conftest.$ac_ext
40928 +cat >>conftest.$ac_ext <<_ACEOF
40929 +/* end confdefs.h. */
40931 +/* Override any gcc2 internal prototype to avoid an error. */
40932 +#ifdef __cplusplus
40935 +/* We use char because int might match the return type of a gcc2
40936 + builtin and then its argument prototype would still apply. */
40937 +char getloadavg ();
40946 +rm -f conftest.$ac_objext conftest$ac_exeext
40947 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40948 + (eval $ac_link) 2>conftest.er1
40950 + grep -v '^ *+' conftest.er1 >conftest.err
40951 + rm -f conftest.er1
40952 + cat conftest.err >&5
40953 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954 + (exit $ac_status); } &&
40955 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40956 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40957 + (eval $ac_try) 2>&5
40959 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40960 + (exit $ac_status); }; } &&
40961 + { ac_try='test -s conftest$ac_exeext'
40962 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40963 + (eval $ac_try) 2>&5
40965 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966 + (exit $ac_status); }; }; then
40967 + ac_cv_lib_util_getloadavg=yes
40969 + echo "$as_me: failed program was:" >&5
40970 +sed 's/^/| /' conftest.$ac_ext >&5
40972 +ac_cv_lib_util_getloadavg=no
40974 +rm -f conftest.err conftest.$ac_objext \
40975 + conftest$ac_exeext conftest.$ac_ext
40976 +LIBS=$ac_check_lib_save_LIBS
40978 +echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
40979 +echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
40980 +if test $ac_cv_lib_util_getloadavg = yes; then
40981 + LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
40986 +if test $ac_have_func = no; then
40987 + # There is a commonly available library for RS/6000 AIX.
40988 + # Since it is not a standard part of AIX, it might be installed locally.
40989 + ac_getloadavg_LIBS=$LIBS
40990 + LIBS="-L/usr/local/lib $LIBS"
40991 + echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
40992 +echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
40993 +if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
40994 + echo $ECHO_N "(cached) $ECHO_C" >&6
40996 + ac_check_lib_save_LIBS=$LIBS
40997 +LIBS="-lgetloadavg $LIBS"
40998 +cat >conftest.$ac_ext <<_ACEOF
41001 +cat confdefs.h >>conftest.$ac_ext
41002 +cat >>conftest.$ac_ext <<_ACEOF
41003 +/* end confdefs.h. */
41005 +/* Override any gcc2 internal prototype to avoid an error. */
41006 +#ifdef __cplusplus
41009 +/* We use char because int might match the return type of a gcc2
41010 + builtin and then its argument prototype would still apply. */
41011 +char getloadavg ();
41020 +rm -f conftest.$ac_objext conftest$ac_exeext
41021 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41022 + (eval $ac_link) 2>conftest.er1
41024 + grep -v '^ *+' conftest.er1 >conftest.err
41025 + rm -f conftest.er1
41026 + cat conftest.err >&5
41027 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41028 + (exit $ac_status); } &&
41029 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41030 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41031 + (eval $ac_try) 2>&5
41033 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41034 + (exit $ac_status); }; } &&
41035 + { ac_try='test -s conftest$ac_exeext'
41036 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41037 + (eval $ac_try) 2>&5
41039 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41040 + (exit $ac_status); }; }; then
41041 + ac_cv_lib_getloadavg_getloadavg=yes
41043 + echo "$as_me: failed program was:" >&5
41044 +sed 's/^/| /' conftest.$ac_ext >&5
41046 +ac_cv_lib_getloadavg_getloadavg=no
41048 +rm -f conftest.err conftest.$ac_objext \
41049 + conftest$ac_exeext conftest.$ac_ext
41050 +LIBS=$ac_check_lib_save_LIBS
41052 +echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
41053 +echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
41054 +if test $ac_cv_lib_getloadavg_getloadavg = yes; then
41055 + LIBS="-lgetloadavg $LIBS"
41057 + LIBS=$ac_getloadavg_LIBS
41062 +# Make sure it is really in the library, if we think we found it,
41063 +# otherwise set up the replacement function.
41065 +for ac_func in getloadavg
41067 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41068 +echo "$as_me:$LINENO: checking for $ac_func" >&5
41069 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41070 +if eval "test \"\${$as_ac_var+set}\" = set"; then
41071 + echo $ECHO_N "(cached) $ECHO_C" >&6
41073 + cat >conftest.$ac_ext <<_ACEOF
41076 +cat confdefs.h >>conftest.$ac_ext
41077 +cat >>conftest.$ac_ext <<_ACEOF
41078 +/* end confdefs.h. */
41079 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41080 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
41081 +#define $ac_func innocuous_$ac_func
41083 +/* System header to define __stub macros and hopefully few prototypes,
41084 + which can conflict with char $ac_func (); below.
41085 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41086 + <limits.h> exists even on freestanding compilers. */
41089 +# include <limits.h>
41091 +# include <assert.h>
41096 +/* Override any gcc2 internal prototype to avoid an error. */
41097 +#ifdef __cplusplus
41101 +/* We use char because int might match the return type of a gcc2
41102 + builtin and then its argument prototype would still apply. */
41104 +/* The GNU C library defines this for functions which it implements
41105 + to always fail with ENOSYS. Some functions are actually named
41106 + something starting with __ and the normal name is an alias. */
41107 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41110 +char (*f) () = $ac_func;
41112 +#ifdef __cplusplus
41119 +return f != $ac_func;
41124 +rm -f conftest.$ac_objext conftest$ac_exeext
41125 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41126 + (eval $ac_link) 2>conftest.er1
41128 + grep -v '^ *+' conftest.er1 >conftest.err
41129 + rm -f conftest.er1
41130 + cat conftest.err >&5
41131 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41132 + (exit $ac_status); } &&
41133 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41134 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41135 + (eval $ac_try) 2>&5
41137 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41138 + (exit $ac_status); }; } &&
41139 + { ac_try='test -s conftest$ac_exeext'
41140 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41141 + (eval $ac_try) 2>&5
41143 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41144 + (exit $ac_status); }; }; then
41145 + eval "$as_ac_var=yes"
41147 + echo "$as_me: failed program was:" >&5
41148 +sed 's/^/| /' conftest.$ac_ext >&5
41150 +eval "$as_ac_var=no"
41152 +rm -f conftest.err conftest.$ac_objext \
41153 + conftest$ac_exeext conftest.$ac_ext
41155 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41156 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41157 +if test `eval echo '${'$as_ac_var'}'` = yes; then
41158 + cat >>confdefs.h <<_ACEOF
41159 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41164 + "getloadavg.$ac_objext" | \
41165 + *" getloadavg.$ac_objext" | \
41166 + "getloadavg.$ac_objext "* | \
41167 + *" getloadavg.$ac_objext "* ) ;;
41168 + *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
41172 +cat >>confdefs.h <<\_ACEOF
41173 +#define C_GETLOADAVG 1
41176 +# Figure out what our getloadavg.c needs.
41178 +if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
41179 + echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
41180 +echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
41181 +if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
41182 + echo $ECHO_N "(cached) $ECHO_C" >&6
41184 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
41185 +echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
41187 + # Is the header compilable?
41188 +echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
41189 +echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
41190 +cat >conftest.$ac_ext <<_ACEOF
41193 +cat confdefs.h >>conftest.$ac_ext
41194 +cat >>conftest.$ac_ext <<_ACEOF
41195 +/* end confdefs.h. */
41196 +$ac_includes_default
41197 +#include <sys/dg_sys_info.h>
41199 +rm -f conftest.$ac_objext
41200 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41201 + (eval $ac_compile) 2>conftest.er1
41203 + grep -v '^ *+' conftest.er1 >conftest.err
41204 + rm -f conftest.er1
41205 + cat conftest.err >&5
41206 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207 + (exit $ac_status); } &&
41208 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41209 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41210 + (eval $ac_try) 2>&5
41212 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213 + (exit $ac_status); }; } &&
41214 + { ac_try='test -s conftest.$ac_objext'
41215 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41216 + (eval $ac_try) 2>&5
41218 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41219 + (exit $ac_status); }; }; then
41220 + ac_header_compiler=yes
41222 + echo "$as_me: failed program was:" >&5
41223 +sed 's/^/| /' conftest.$ac_ext >&5
41225 +ac_header_compiler=no
41227 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41228 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41229 +echo "${ECHO_T}$ac_header_compiler" >&6
41231 +# Is the header present?
41232 +echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
41233 +echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
41234 +cat >conftest.$ac_ext <<_ACEOF
41237 +cat confdefs.h >>conftest.$ac_ext
41238 +cat >>conftest.$ac_ext <<_ACEOF
41239 +/* end confdefs.h. */
41240 +#include <sys/dg_sys_info.h>
41242 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41243 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41245 + grep -v '^ *+' conftest.er1 >conftest.err
41246 + rm -f conftest.er1
41247 + cat conftest.err >&5
41248 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 + (exit $ac_status); } >/dev/null; then
41250 + if test -s conftest.err; then
41251 + ac_cpp_err=$ac_c_preproc_warn_flag
41252 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41259 +if test -z "$ac_cpp_err"; then
41260 + ac_header_preproc=yes
41262 + echo "$as_me: failed program was:" >&5
41263 +sed 's/^/| /' conftest.$ac_ext >&5
41265 + ac_header_preproc=no
41267 +rm -f conftest.err conftest.$ac_ext
41268 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41269 +echo "${ECHO_T}$ac_header_preproc" >&6
41271 +# So? What about this header?
41272 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41274 + { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
41275 +echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41276 + { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
41277 +echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
41278 + ac_header_preproc=yes
41281 + { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
41282 +echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
41283 + { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
41284 +echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
41285 + { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
41286 +echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
41287 + { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
41288 +echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
41289 + { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
41290 +echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
41291 + { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
41292 +echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
41295 +## ------------------------------------------ ##
41296 +## Report this to the AC_PACKAGE_NAME lists. ##
41297 +## ------------------------------------------ ##
41300 + sed "s/^/$as_me: WARNING: /" >&2
41303 +echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
41304 +echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
41305 +if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
41306 + echo $ECHO_N "(cached) $ECHO_C" >&6
41308 + ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
41310 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
41311 +echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
41314 +if test $ac_cv_header_sys_dg_sys_info_h = yes; then
41317 +cat >>confdefs.h <<\_ACEOF
41322 +echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
41323 +echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
41324 +if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
41325 + echo $ECHO_N "(cached) $ECHO_C" >&6
41327 + ac_check_lib_save_LIBS=$LIBS
41328 +LIBS="-ldgc $LIBS"
41329 +cat >conftest.$ac_ext <<_ACEOF
41332 +cat confdefs.h >>conftest.$ac_ext
41333 +cat >>conftest.$ac_ext <<_ACEOF
41334 +/* end confdefs.h. */
41336 +/* Override any gcc2 internal prototype to avoid an error. */
41337 +#ifdef __cplusplus
41340 +/* We use char because int might match the return type of a gcc2
41341 + builtin and then its argument prototype would still apply. */
41342 +char dg_sys_info ();
41351 +rm -f conftest.$ac_objext conftest$ac_exeext
41352 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41353 + (eval $ac_link) 2>conftest.er1
41355 + grep -v '^ *+' conftest.er1 >conftest.err
41356 + rm -f conftest.er1
41357 + cat conftest.err >&5
41358 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41359 + (exit $ac_status); } &&
41360 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41361 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41362 + (eval $ac_try) 2>&5
41364 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365 + (exit $ac_status); }; } &&
41366 + { ac_try='test -s conftest$ac_exeext'
41367 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41368 + (eval $ac_try) 2>&5
41370 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371 + (exit $ac_status); }; }; then
41372 + ac_cv_lib_dgc_dg_sys_info=yes
41374 + echo "$as_me: failed program was:" >&5
41375 +sed 's/^/| /' conftest.$ac_ext >&5
41377 +ac_cv_lib_dgc_dg_sys_info=no
41379 +rm -f conftest.err conftest.$ac_objext \
41380 + conftest$ac_exeext conftest.$ac_ext
41381 +LIBS=$ac_check_lib_save_LIBS
41383 +echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
41384 +echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
41385 +if test $ac_cv_lib_dgc_dg_sys_info = yes; then
41386 + cat >>confdefs.h <<_ACEOF
41387 +#define HAVE_LIBDGC 1
41390 + LIBS="-ldgc $LIBS"
41398 +if test "${ac_cv_header_locale_h+set}" = set; then
41399 + echo "$as_me:$LINENO: checking for locale.h" >&5
41400 +echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
41401 +if test "${ac_cv_header_locale_h+set}" = set; then
41402 + echo $ECHO_N "(cached) $ECHO_C" >&6
41404 +echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
41405 +echo "${ECHO_T}$ac_cv_header_locale_h" >&6
41407 + # Is the header compilable?
41408 +echo "$as_me:$LINENO: checking locale.h usability" >&5
41409 +echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
41410 +cat >conftest.$ac_ext <<_ACEOF
41413 +cat confdefs.h >>conftest.$ac_ext
41414 +cat >>conftest.$ac_ext <<_ACEOF
41415 +/* end confdefs.h. */
41416 +$ac_includes_default
41417 +#include <locale.h>
41419 +rm -f conftest.$ac_objext
41420 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41421 + (eval $ac_compile) 2>conftest.er1
41423 + grep -v '^ *+' conftest.er1 >conftest.err
41424 + rm -f conftest.er1
41425 + cat conftest.err >&5
41426 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41427 + (exit $ac_status); } &&
41428 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41429 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41430 + (eval $ac_try) 2>&5
41432 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433 + (exit $ac_status); }; } &&
41434 + { ac_try='test -s conftest.$ac_objext'
41435 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41436 + (eval $ac_try) 2>&5
41438 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41439 + (exit $ac_status); }; }; then
41440 + ac_header_compiler=yes
41442 + echo "$as_me: failed program was:" >&5
41443 +sed 's/^/| /' conftest.$ac_ext >&5
41445 +ac_header_compiler=no
41447 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41448 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41449 +echo "${ECHO_T}$ac_header_compiler" >&6
41451 +# Is the header present?
41452 +echo "$as_me:$LINENO: checking locale.h presence" >&5
41453 +echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
41454 +cat >conftest.$ac_ext <<_ACEOF
41457 +cat confdefs.h >>conftest.$ac_ext
41458 +cat >>conftest.$ac_ext <<_ACEOF
41459 +/* end confdefs.h. */
41460 +#include <locale.h>
41462 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41463 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41465 + grep -v '^ *+' conftest.er1 >conftest.err
41466 + rm -f conftest.er1
41467 + cat conftest.err >&5
41468 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41469 + (exit $ac_status); } >/dev/null; then
41470 + if test -s conftest.err; then
41471 + ac_cpp_err=$ac_c_preproc_warn_flag
41472 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41479 +if test -z "$ac_cpp_err"; then
41480 + ac_header_preproc=yes
41482 + echo "$as_me: failed program was:" >&5
41483 +sed 's/^/| /' conftest.$ac_ext >&5
41485 + ac_header_preproc=no
41487 +rm -f conftest.err conftest.$ac_ext
41488 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41489 +echo "${ECHO_T}$ac_header_preproc" >&6
41491 +# So? What about this header?
41492 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41494 + { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
41495 +echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41496 + { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
41497 +echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
41498 + ac_header_preproc=yes
41501 + { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
41502 +echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
41503 + { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
41504 +echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
41505 + { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
41506 +echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
41507 + { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
41508 +echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
41509 + { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
41510 +echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
41511 + { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
41512 +echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
41515 +## ------------------------------------------ ##
41516 +## Report this to the AC_PACKAGE_NAME lists. ##
41517 +## ------------------------------------------ ##
41520 + sed "s/^/$as_me: WARNING: /" >&2
41523 +echo "$as_me:$LINENO: checking for locale.h" >&5
41524 +echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
41525 +if test "${ac_cv_header_locale_h+set}" = set; then
41526 + echo $ECHO_N "(cached) $ECHO_C" >&6
41528 + ac_cv_header_locale_h=$ac_header_preproc
41530 +echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
41531 +echo "${ECHO_T}$ac_cv_header_locale_h" >&6
41537 +for ac_func in setlocale
41539 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41540 +echo "$as_me:$LINENO: checking for $ac_func" >&5
41541 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41542 +if eval "test \"\${$as_ac_var+set}\" = set"; then
41543 + echo $ECHO_N "(cached) $ECHO_C" >&6
41545 + cat >conftest.$ac_ext <<_ACEOF
41548 +cat confdefs.h >>conftest.$ac_ext
41549 +cat >>conftest.$ac_ext <<_ACEOF
41550 +/* end confdefs.h. */
41551 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41552 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
41553 +#define $ac_func innocuous_$ac_func
41555 +/* System header to define __stub macros and hopefully few prototypes,
41556 + which can conflict with char $ac_func (); below.
41557 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41558 + <limits.h> exists even on freestanding compilers. */
41561 +# include <limits.h>
41563 +# include <assert.h>
41568 +/* Override any gcc2 internal prototype to avoid an error. */
41569 +#ifdef __cplusplus
41573 +/* We use char because int might match the return type of a gcc2
41574 + builtin and then its argument prototype would still apply. */
41576 +/* The GNU C library defines this for functions which it implements
41577 + to always fail with ENOSYS. Some functions are actually named
41578 + something starting with __ and the normal name is an alias. */
41579 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41582 +char (*f) () = $ac_func;
41584 +#ifdef __cplusplus
41591 +return f != $ac_func;
41596 +rm -f conftest.$ac_objext conftest$ac_exeext
41597 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41598 + (eval $ac_link) 2>conftest.er1
41600 + grep -v '^ *+' conftest.er1 >conftest.err
41601 + rm -f conftest.er1
41602 + cat conftest.err >&5
41603 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41604 + (exit $ac_status); } &&
41605 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41606 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41607 + (eval $ac_try) 2>&5
41609 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610 + (exit $ac_status); }; } &&
41611 + { ac_try='test -s conftest$ac_exeext'
41612 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41613 + (eval $ac_try) 2>&5
41615 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41616 + (exit $ac_status); }; }; then
41617 + eval "$as_ac_var=yes"
41619 + echo "$as_me: failed program was:" >&5
41620 +sed 's/^/| /' conftest.$ac_ext >&5
41622 +eval "$as_ac_var=no"
41624 +rm -f conftest.err conftest.$ac_objext \
41625 + conftest$ac_exeext conftest.$ac_ext
41627 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41628 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41629 +if test `eval echo '${'$as_ac_var'}'` = yes; then
41630 + cat >>confdefs.h <<_ACEOF
41631 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41638 +# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
41639 +# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
41640 +# Irix 4.0.5F has the header but not the library.
41641 +if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
41644 +cat >>confdefs.h <<\_ACEOF
41650 +if test $ac_have_func = no; then
41651 + if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
41652 + echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
41653 +echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
41654 +if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
41655 + echo $ECHO_N "(cached) $ECHO_C" >&6
41657 +echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
41658 +echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
41660 + # Is the header compilable?
41661 +echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
41662 +echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
41663 +cat >conftest.$ac_ext <<_ACEOF
41666 +cat confdefs.h >>conftest.$ac_ext
41667 +cat >>conftest.$ac_ext <<_ACEOF
41668 +/* end confdefs.h. */
41669 +$ac_includes_default
41670 +#include <inq_stats/cpustats.h>
41672 +rm -f conftest.$ac_objext
41673 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41674 + (eval $ac_compile) 2>conftest.er1
41676 + grep -v '^ *+' conftest.er1 >conftest.err
41677 + rm -f conftest.er1
41678 + cat conftest.err >&5
41679 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41680 + (exit $ac_status); } &&
41681 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41682 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41683 + (eval $ac_try) 2>&5
41685 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686 + (exit $ac_status); }; } &&
41687 + { ac_try='test -s conftest.$ac_objext'
41688 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41689 + (eval $ac_try) 2>&5
41691 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41692 + (exit $ac_status); }; }; then
41693 + ac_header_compiler=yes
41695 + echo "$as_me: failed program was:" >&5
41696 +sed 's/^/| /' conftest.$ac_ext >&5
41698 +ac_header_compiler=no
41700 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41701 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41702 +echo "${ECHO_T}$ac_header_compiler" >&6
41704 +# Is the header present?
41705 +echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
41706 +echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
41707 +cat >conftest.$ac_ext <<_ACEOF
41710 +cat confdefs.h >>conftest.$ac_ext
41711 +cat >>conftest.$ac_ext <<_ACEOF
41712 +/* end confdefs.h. */
41713 +#include <inq_stats/cpustats.h>
41715 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41716 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41718 + grep -v '^ *+' conftest.er1 >conftest.err
41719 + rm -f conftest.er1
41720 + cat conftest.err >&5
41721 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722 + (exit $ac_status); } >/dev/null; then
41723 + if test -s conftest.err; then
41724 + ac_cpp_err=$ac_c_preproc_warn_flag
41725 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41732 +if test -z "$ac_cpp_err"; then
41733 + ac_header_preproc=yes
41735 + echo "$as_me: failed program was:" >&5
41736 +sed 's/^/| /' conftest.$ac_ext >&5
41738 + ac_header_preproc=no
41740 +rm -f conftest.err conftest.$ac_ext
41741 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41742 +echo "${ECHO_T}$ac_header_preproc" >&6
41744 +# So? What about this header?
41745 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41747 + { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
41748 +echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41749 + { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
41750 +echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
41751 + ac_header_preproc=yes
41754 + { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
41755 +echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
41756 + { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
41757 +echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
41758 + { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
41759 +echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
41760 + { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
41761 +echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
41762 + { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
41763 +echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
41764 + { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
41765 +echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
41768 +## ------------------------------------------ ##
41769 +## Report this to the AC_PACKAGE_NAME lists. ##
41770 +## ------------------------------------------ ##
41773 + sed "s/^/$as_me: WARNING: /" >&2
41776 +echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
41777 +echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
41778 +if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
41779 + echo $ECHO_N "(cached) $ECHO_C" >&6
41781 + ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
41783 +echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
41784 +echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
41787 +if test $ac_cv_header_inq_stats_cpustats_h = yes; then
41790 +cat >>confdefs.h <<\_ACEOF
41795 +cat >>confdefs.h <<\_ACEOF
41804 +if test $ac_have_func = no; then
41805 + if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
41806 + echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
41807 +echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
41808 +if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
41809 + echo $ECHO_N "(cached) $ECHO_C" >&6
41811 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
41812 +echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
41814 + # Is the header compilable?
41815 +echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
41816 +echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
41817 +cat >conftest.$ac_ext <<_ACEOF
41820 +cat confdefs.h >>conftest.$ac_ext
41821 +cat >>conftest.$ac_ext <<_ACEOF
41822 +/* end confdefs.h. */
41823 +$ac_includes_default
41824 +#include <sys/cpustats.h>
41826 +rm -f conftest.$ac_objext
41827 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41828 + (eval $ac_compile) 2>conftest.er1
41830 + grep -v '^ *+' conftest.er1 >conftest.err
41831 + rm -f conftest.er1
41832 + cat conftest.err >&5
41833 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834 + (exit $ac_status); } &&
41835 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41836 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41837 + (eval $ac_try) 2>&5
41839 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840 + (exit $ac_status); }; } &&
41841 + { ac_try='test -s conftest.$ac_objext'
41842 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41843 + (eval $ac_try) 2>&5
41845 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 + (exit $ac_status); }; }; then
41847 + ac_header_compiler=yes
41849 + echo "$as_me: failed program was:" >&5
41850 +sed 's/^/| /' conftest.$ac_ext >&5
41852 +ac_header_compiler=no
41854 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41855 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41856 +echo "${ECHO_T}$ac_header_compiler" >&6
41858 +# Is the header present?
41859 +echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
41860 +echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
41861 +cat >conftest.$ac_ext <<_ACEOF
41864 +cat confdefs.h >>conftest.$ac_ext
41865 +cat >>conftest.$ac_ext <<_ACEOF
41866 +/* end confdefs.h. */
41867 +#include <sys/cpustats.h>
41869 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41870 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41872 + grep -v '^ *+' conftest.er1 >conftest.err
41873 + rm -f conftest.er1
41874 + cat conftest.err >&5
41875 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41876 + (exit $ac_status); } >/dev/null; then
41877 + if test -s conftest.err; then
41878 + ac_cpp_err=$ac_c_preproc_warn_flag
41879 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41886 +if test -z "$ac_cpp_err"; then
41887 + ac_header_preproc=yes
41889 + echo "$as_me: failed program was:" >&5
41890 +sed 's/^/| /' conftest.$ac_ext >&5
41892 + ac_header_preproc=no
41894 +rm -f conftest.err conftest.$ac_ext
41895 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41896 +echo "${ECHO_T}$ac_header_preproc" >&6
41898 +# So? What about this header?
41899 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41901 + { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
41902 +echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41903 + { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
41904 +echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
41905 + ac_header_preproc=yes
41908 + { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
41909 +echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
41910 + { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
41911 +echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
41912 + { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
41913 +echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
41914 + { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
41915 +echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
41916 + { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
41917 +echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
41918 + { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
41919 +echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
41922 +## ------------------------------------------ ##
41923 +## Report this to the AC_PACKAGE_NAME lists. ##
41924 +## ------------------------------------------ ##
41927 + sed "s/^/$as_me: WARNING: /" >&2
41930 +echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
41931 +echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
41932 +if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
41933 + echo $ECHO_N "(cached) $ECHO_C" >&6
41935 + ac_cv_header_sys_cpustats_h=$ac_header_preproc
41937 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
41938 +echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
41941 +if test $ac_cv_header_sys_cpustats_h = yes; then
41942 + ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
41951 +if test $ac_have_func = no; then
41953 +for ac_header in mach/mach.h
41955 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41956 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
41957 + echo "$as_me:$LINENO: checking for $ac_header" >&5
41958 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41959 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
41960 + echo $ECHO_N "(cached) $ECHO_C" >&6
41962 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41963 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41965 + # Is the header compilable?
41966 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
41967 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41968 +cat >conftest.$ac_ext <<_ACEOF
41971 +cat confdefs.h >>conftest.$ac_ext
41972 +cat >>conftest.$ac_ext <<_ACEOF
41973 +/* end confdefs.h. */
41974 +$ac_includes_default
41975 +#include <$ac_header>
41977 +rm -f conftest.$ac_objext
41978 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41979 + (eval $ac_compile) 2>conftest.er1
41981 + grep -v '^ *+' conftest.er1 >conftest.err
41982 + rm -f conftest.er1
41983 + cat conftest.err >&5
41984 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41985 + (exit $ac_status); } &&
41986 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41987 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41988 + (eval $ac_try) 2>&5
41990 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41991 + (exit $ac_status); }; } &&
41992 + { ac_try='test -s conftest.$ac_objext'
41993 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41994 + (eval $ac_try) 2>&5
41996 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41997 + (exit $ac_status); }; }; then
41998 + ac_header_compiler=yes
42000 + echo "$as_me: failed program was:" >&5
42001 +sed 's/^/| /' conftest.$ac_ext >&5
42003 +ac_header_compiler=no
42005 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42006 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42007 +echo "${ECHO_T}$ac_header_compiler" >&6
42009 +# Is the header present?
42010 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
42011 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42012 +cat >conftest.$ac_ext <<_ACEOF
42015 +cat confdefs.h >>conftest.$ac_ext
42016 +cat >>conftest.$ac_ext <<_ACEOF
42017 +/* end confdefs.h. */
42018 +#include <$ac_header>
42020 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42021 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42023 + grep -v '^ *+' conftest.er1 >conftest.err
42024 + rm -f conftest.er1
42025 + cat conftest.err >&5
42026 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42027 + (exit $ac_status); } >/dev/null; then
42028 + if test -s conftest.err; then
42029 + ac_cpp_err=$ac_c_preproc_warn_flag
42030 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42037 +if test -z "$ac_cpp_err"; then
42038 + ac_header_preproc=yes
42040 + echo "$as_me: failed program was:" >&5
42041 +sed 's/^/| /' conftest.$ac_ext >&5
42043 + ac_header_preproc=no
42045 +rm -f conftest.err conftest.$ac_ext
42046 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42047 +echo "${ECHO_T}$ac_header_preproc" >&6
42049 +# So? What about this header?
42050 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42052 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42053 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42054 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42055 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42056 + ac_header_preproc=yes
42059 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42060 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42061 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42062 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42063 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42064 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42065 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42066 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42067 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42068 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42069 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42070 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42073 +## ------------------------------------------ ##
42074 +## Report this to the AC_PACKAGE_NAME lists. ##
42075 +## ------------------------------------------ ##
42078 + sed "s/^/$as_me: WARNING: /" >&2
42081 +echo "$as_me:$LINENO: checking for $ac_header" >&5
42082 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42083 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
42084 + echo $ECHO_N "(cached) $ECHO_C" >&6
42086 + eval "$as_ac_Header=\$ac_header_preproc"
42088 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42089 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42092 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
42093 + cat >>confdefs.h <<_ACEOF
42094 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42104 +for ac_header in nlist.h
42106 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42107 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
42108 + echo "$as_me:$LINENO: checking for $ac_header" >&5
42109 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42110 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
42111 + echo $ECHO_N "(cached) $ECHO_C" >&6
42113 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42114 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42116 + # Is the header compilable?
42117 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
42118 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42119 +cat >conftest.$ac_ext <<_ACEOF
42122 +cat confdefs.h >>conftest.$ac_ext
42123 +cat >>conftest.$ac_ext <<_ACEOF
42124 +/* end confdefs.h. */
42125 +$ac_includes_default
42126 +#include <$ac_header>
42128 +rm -f conftest.$ac_objext
42129 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42130 + (eval $ac_compile) 2>conftest.er1
42132 + grep -v '^ *+' conftest.er1 >conftest.err
42133 + rm -f conftest.er1
42134 + cat conftest.err >&5
42135 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42136 + (exit $ac_status); } &&
42137 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42138 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42139 + (eval $ac_try) 2>&5
42141 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42142 + (exit $ac_status); }; } &&
42143 + { ac_try='test -s conftest.$ac_objext'
42144 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42145 + (eval $ac_try) 2>&5
42147 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42148 + (exit $ac_status); }; }; then
42149 + ac_header_compiler=yes
42151 + echo "$as_me: failed program was:" >&5
42152 +sed 's/^/| /' conftest.$ac_ext >&5
42154 +ac_header_compiler=no
42156 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42157 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42158 +echo "${ECHO_T}$ac_header_compiler" >&6
42160 +# Is the header present?
42161 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
42162 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42163 +cat >conftest.$ac_ext <<_ACEOF
42166 +cat confdefs.h >>conftest.$ac_ext
42167 +cat >>conftest.$ac_ext <<_ACEOF
42168 +/* end confdefs.h. */
42169 +#include <$ac_header>
42171 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42172 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42174 + grep -v '^ *+' conftest.er1 >conftest.err
42175 + rm -f conftest.er1
42176 + cat conftest.err >&5
42177 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42178 + (exit $ac_status); } >/dev/null; then
42179 + if test -s conftest.err; then
42180 + ac_cpp_err=$ac_c_preproc_warn_flag
42181 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42188 +if test -z "$ac_cpp_err"; then
42189 + ac_header_preproc=yes
42191 + echo "$as_me: failed program was:" >&5
42192 +sed 's/^/| /' conftest.$ac_ext >&5
42194 + ac_header_preproc=no
42196 +rm -f conftest.err conftest.$ac_ext
42197 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42198 +echo "${ECHO_T}$ac_header_preproc" >&6
42200 +# So? What about this header?
42201 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42203 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42204 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42205 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42206 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42207 + ac_header_preproc=yes
42210 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42211 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42212 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42213 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42214 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42215 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42216 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42217 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42218 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42219 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42220 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42221 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42224 +## ------------------------------------------ ##
42225 +## Report this to the AC_PACKAGE_NAME lists. ##
42226 +## ------------------------------------------ ##
42229 + sed "s/^/$as_me: WARNING: /" >&2
42232 +echo "$as_me:$LINENO: checking for $ac_header" >&5
42233 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42234 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
42235 + echo $ECHO_N "(cached) $ECHO_C" >&6
42237 + eval "$as_ac_Header=\$ac_header_preproc"
42239 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42240 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42243 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
42244 + cat >>confdefs.h <<_ACEOF
42245 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42247 + echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
42248 +echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
42249 +if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
42250 + echo $ECHO_N "(cached) $ECHO_C" >&6
42252 + cat >conftest.$ac_ext <<_ACEOF
42255 +cat confdefs.h >>conftest.$ac_ext
42256 +cat >>conftest.$ac_ext <<_ACEOF
42257 +/* end confdefs.h. */
42258 +#include <nlist.h>
42263 +static struct nlist ac_aggr;
42264 +if (ac_aggr.n_un.n_name)
42270 +rm -f conftest.$ac_objext
42271 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42272 + (eval $ac_compile) 2>conftest.er1
42274 + grep -v '^ *+' conftest.er1 >conftest.err
42275 + rm -f conftest.er1
42276 + cat conftest.err >&5
42277 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42278 + (exit $ac_status); } &&
42279 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42280 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42281 + (eval $ac_try) 2>&5
42283 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42284 + (exit $ac_status); }; } &&
42285 + { ac_try='test -s conftest.$ac_objext'
42286 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42287 + (eval $ac_try) 2>&5
42289 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42290 + (exit $ac_status); }; }; then
42291 + ac_cv_member_struct_nlist_n_un_n_name=yes
42293 + echo "$as_me: failed program was:" >&5
42294 +sed 's/^/| /' conftest.$ac_ext >&5
42296 +cat >conftest.$ac_ext <<_ACEOF
42299 +cat confdefs.h >>conftest.$ac_ext
42300 +cat >>conftest.$ac_ext <<_ACEOF
42301 +/* end confdefs.h. */
42302 +#include <nlist.h>
42307 +static struct nlist ac_aggr;
42308 +if (sizeof ac_aggr.n_un.n_name)
42314 +rm -f conftest.$ac_objext
42315 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42316 + (eval $ac_compile) 2>conftest.er1
42318 + grep -v '^ *+' conftest.er1 >conftest.err
42319 + rm -f conftest.er1
42320 + cat conftest.err >&5
42321 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42322 + (exit $ac_status); } &&
42323 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42324 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42325 + (eval $ac_try) 2>&5
42327 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42328 + (exit $ac_status); }; } &&
42329 + { ac_try='test -s conftest.$ac_objext'
42330 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42331 + (eval $ac_try) 2>&5
42333 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334 + (exit $ac_status); }; }; then
42335 + ac_cv_member_struct_nlist_n_un_n_name=yes
42337 + echo "$as_me: failed program was:" >&5
42338 +sed 's/^/| /' conftest.$ac_ext >&5
42340 +ac_cv_member_struct_nlist_n_un_n_name=no
42342 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42344 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42346 +echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
42347 +echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
42348 +if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
42350 +cat >>confdefs.h <<_ACEOF
42351 +#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
42355 +cat >>confdefs.h <<\_ACEOF
42356 +#define NLIST_NAME_UNION 1
42370 +# Some definitions of getloadavg require that the program be installed setgid.
42371 +echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
42372 +echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
42373 +if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
42374 + echo $ECHO_N "(cached) $ECHO_C" >&6
42376 + cat >conftest.$ac_ext <<_ACEOF
42379 +cat confdefs.h >>conftest.$ac_ext
42380 +cat >>conftest.$ac_ext <<_ACEOF
42381 +/* end confdefs.h. */
42382 +#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
42383 +#ifdef LDAV_PRIVILEGED
42384 +Yowza Am I SETGID yet
42387 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42388 + $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
42389 + ac_cv_func_getloadavg_setgid=yes
42391 + ac_cv_func_getloadavg_setgid=no
42396 +echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
42397 +echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
42398 +if test $ac_cv_func_getloadavg_setgid = yes; then
42401 +cat >>confdefs.h <<\_ACEOF
42402 +#define GETLOADAVG_PRIVILEGED 1
42406 + NEED_SETGID=false
42409 +if test $ac_cv_func_getloadavg_setgid = yes; then
42410 + echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
42411 +echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
42412 +if test "${ac_cv_group_kmem+set}" = set; then
42413 + echo $ECHO_N "(cached) $ECHO_C" >&6
42415 + # On Solaris, /dev/kmem is a symlink. Get info on the real file.
42416 + ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
42417 + # If we got an error (system does not support symlinks), try without -L.
42418 + test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
42419 + ac_cv_group_kmem=`echo $ac_ls_output \
42420 + | sed -ne 's/[ ][ ]*/ /g;
42421 + s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
42425 +echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
42426 +echo "${ECHO_T}$ac_cv_group_kmem" >&6
42427 + KMEM_GROUP=$ac_cv_group_kmem
42429 +if test "x$ac_save_LIBS" = x; then
42430 + GETLOADAVG_LIBS=$LIBS
42432 + GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
42434 +LIBS=$ac_save_LIBS
42438 +echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
42439 +echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
42440 +if test "${ac_cv_sys_largefile_source+set}" = set; then
42441 + echo $ECHO_N "(cached) $ECHO_C" >&6
42444 + ac_cv_sys_largefile_source=no
42445 + cat >conftest.$ac_ext <<_ACEOF
42448 +cat confdefs.h >>conftest.$ac_ext
42449 +cat >>conftest.$ac_ext <<_ACEOF
42450 +/* end confdefs.h. */
42451 +#include <stdio.h>
42460 +rm -f conftest.$ac_objext
42461 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42462 + (eval $ac_compile) 2>conftest.er1
42464 + grep -v '^ *+' conftest.er1 >conftest.err
42465 + rm -f conftest.er1
42466 + cat conftest.err >&5
42467 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42468 + (exit $ac_status); } &&
42469 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42470 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42471 + (eval $ac_try) 2>&5
42473 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42474 + (exit $ac_status); }; } &&
42475 + { ac_try='test -s conftest.$ac_objext'
42476 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42477 + (eval $ac_try) 2>&5
42479 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42480 + (exit $ac_status); }; }; then
42483 + echo "$as_me: failed program was:" >&5
42484 +sed 's/^/| /' conftest.$ac_ext >&5
42487 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42488 + cat >conftest.$ac_ext <<_ACEOF
42491 +cat confdefs.h >>conftest.$ac_ext
42492 +cat >>conftest.$ac_ext <<_ACEOF
42493 +/* end confdefs.h. */
42494 +#define _LARGEFILE_SOURCE 1
42495 +#include <stdio.h>
42504 +rm -f conftest.$ac_objext
42505 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42506 + (eval $ac_compile) 2>conftest.er1
42508 + grep -v '^ *+' conftest.er1 >conftest.err
42509 + rm -f conftest.er1
42510 + cat conftest.err >&5
42511 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42512 + (exit $ac_status); } &&
42513 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42514 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42515 + (eval $ac_try) 2>&5
42517 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42518 + (exit $ac_status); }; } &&
42519 + { ac_try='test -s conftest.$ac_objext'
42520 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42521 + (eval $ac_try) 2>&5
42523 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524 + (exit $ac_status); }; }; then
42525 + ac_cv_sys_largefile_source=1; break
42527 + echo "$as_me: failed program was:" >&5
42528 +sed 's/^/| /' conftest.$ac_ext >&5
42531 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42535 +echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
42536 +echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
42537 +if test "$ac_cv_sys_largefile_source" != no; then
42539 +cat >>confdefs.h <<_ACEOF
42540 +#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
42546 +# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
42547 +# in glibc 2.1.3, but that breaks too many other things.
42548 +# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
42549 +echo "$as_me:$LINENO: checking for fseeko" >&5
42550 +echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
42551 +if test "${ac_cv_func_fseeko+set}" = set; then
42552 + echo $ECHO_N "(cached) $ECHO_C" >&6
42554 + cat >conftest.$ac_ext <<_ACEOF
42557 +cat confdefs.h >>conftest.$ac_ext
42558 +cat >>conftest.$ac_ext <<_ACEOF
42559 +/* end confdefs.h. */
42560 +#include <stdio.h>
42564 +return fseeko && fseeko (stdin, 0, 0);
42569 +rm -f conftest.$ac_objext conftest$ac_exeext
42570 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42571 + (eval $ac_link) 2>conftest.er1
42573 + grep -v '^ *+' conftest.er1 >conftest.err
42574 + rm -f conftest.er1
42575 + cat conftest.err >&5
42576 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42577 + (exit $ac_status); } &&
42578 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42579 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42580 + (eval $ac_try) 2>&5
42582 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583 + (exit $ac_status); }; } &&
42584 + { ac_try='test -s conftest$ac_exeext'
42585 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42586 + (eval $ac_try) 2>&5
42588 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589 + (exit $ac_status); }; }; then
42590 + ac_cv_func_fseeko=yes
42592 + echo "$as_me: failed program was:" >&5
42593 +sed 's/^/| /' conftest.$ac_ext >&5
42595 +ac_cv_func_fseeko=no
42597 +rm -f conftest.err conftest.$ac_objext \
42598 + conftest$ac_exeext conftest.$ac_ext
42600 +echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
42601 +echo "${ECHO_T}$ac_cv_func_fseeko" >&6
42602 +if test $ac_cv_func_fseeko = yes; then
42604 +cat >>confdefs.h <<\_ACEOF
42605 +#define HAVE_FSEEKO 1
42613 +for ac_func in grantpt
42615 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42616 +echo "$as_me:$LINENO: checking for $ac_func" >&5
42617 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42618 +if eval "test \"\${$as_ac_var+set}\" = set"; then
42619 + echo $ECHO_N "(cached) $ECHO_C" >&6
42621 + cat >conftest.$ac_ext <<_ACEOF
42624 +cat confdefs.h >>conftest.$ac_ext
42625 +cat >>conftest.$ac_ext <<_ACEOF
42626 +/* end confdefs.h. */
42627 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42628 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
42629 +#define $ac_func innocuous_$ac_func
42631 +/* System header to define __stub macros and hopefully few prototypes,
42632 + which can conflict with char $ac_func (); below.
42633 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42634 + <limits.h> exists even on freestanding compilers. */
42637 +# include <limits.h>
42639 +# include <assert.h>
42644 +/* Override any gcc2 internal prototype to avoid an error. */
42645 +#ifdef __cplusplus
42649 +/* We use char because int might match the return type of a gcc2
42650 + builtin and then its argument prototype would still apply. */
42652 +/* The GNU C library defines this for functions which it implements
42653 + to always fail with ENOSYS. Some functions are actually named
42654 + something starting with __ and the normal name is an alias. */
42655 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42658 +char (*f) () = $ac_func;
42660 +#ifdef __cplusplus
42667 +return f != $ac_func;
42672 +rm -f conftest.$ac_objext conftest$ac_exeext
42673 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42674 + (eval $ac_link) 2>conftest.er1
42676 + grep -v '^ *+' conftest.er1 >conftest.err
42677 + rm -f conftest.er1
42678 + cat conftest.err >&5
42679 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42680 + (exit $ac_status); } &&
42681 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42682 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42683 + (eval $ac_try) 2>&5
42685 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42686 + (exit $ac_status); }; } &&
42687 + { ac_try='test -s conftest$ac_exeext'
42688 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42689 + (eval $ac_try) 2>&5
42691 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42692 + (exit $ac_status); }; }; then
42693 + eval "$as_ac_var=yes"
42695 + echo "$as_me: failed program was:" >&5
42696 +sed 's/^/| /' conftest.$ac_ext >&5
42698 +eval "$as_ac_var=no"
42700 +rm -f conftest.err conftest.$ac_objext \
42701 + conftest$ac_exeext conftest.$ac_ext
42703 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42704 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42705 +if test `eval echo '${'$as_ac_var'}'` = yes; then
42706 + cat >>confdefs.h <<_ACEOF
42707 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42714 +# PTY-related GNU extensions.
42716 +for ac_func in getpt
42718 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42719 +echo "$as_me:$LINENO: checking for $ac_func" >&5
42720 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42721 +if eval "test \"\${$as_ac_var+set}\" = set"; then
42722 + echo $ECHO_N "(cached) $ECHO_C" >&6
42724 + cat >conftest.$ac_ext <<_ACEOF
42727 +cat confdefs.h >>conftest.$ac_ext
42728 +cat >>conftest.$ac_ext <<_ACEOF
42729 +/* end confdefs.h. */
42730 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42731 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
42732 +#define $ac_func innocuous_$ac_func
42734 +/* System header to define __stub macros and hopefully few prototypes,
42735 + which can conflict with char $ac_func (); below.
42736 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42737 + <limits.h> exists even on freestanding compilers. */
42740 +# include <limits.h>
42742 +# include <assert.h>
42747 +/* Override any gcc2 internal prototype to avoid an error. */
42748 +#ifdef __cplusplus
42752 +/* We use char because int might match the return type of a gcc2
42753 + builtin and then its argument prototype would still apply. */
42755 +/* The GNU C library defines this for functions which it implements
42756 + to always fail with ENOSYS. Some functions are actually named
42757 + something starting with __ and the normal name is an alias. */
42758 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42761 +char (*f) () = $ac_func;
42763 +#ifdef __cplusplus
42770 +return f != $ac_func;
42775 +rm -f conftest.$ac_objext conftest$ac_exeext
42776 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42777 + (eval $ac_link) 2>conftest.er1
42779 + grep -v '^ *+' conftest.er1 >conftest.err
42780 + rm -f conftest.er1
42781 + cat conftest.err >&5
42782 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42783 + (exit $ac_status); } &&
42784 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42785 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42786 + (eval $ac_try) 2>&5
42788 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42789 + (exit $ac_status); }; } &&
42790 + { ac_try='test -s conftest$ac_exeext'
42791 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42792 + (eval $ac_try) 2>&5
42794 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42795 + (exit $ac_status); }; }; then
42796 + eval "$as_ac_var=yes"
42798 + echo "$as_me: failed program was:" >&5
42799 +sed 's/^/| /' conftest.$ac_ext >&5
42801 +eval "$as_ac_var=no"
42803 +rm -f conftest.err conftest.$ac_objext \
42804 + conftest$ac_exeext conftest.$ac_ext
42806 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42807 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42808 +if test `eval echo '${'$as_ac_var'}'` = yes; then
42809 + cat >>confdefs.h <<_ACEOF
42810 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42817 +# Check this now, so that we will NOT find the above functions in ncurses.
42818 +# That is because we have not set up to link ncurses in lib-src.
42819 +# It's better to believe a function is not available
42820 +# than to expect to find it in ncurses.
42822 +echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
42823 +echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
42824 +if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
42825 + echo $ECHO_N "(cached) $ECHO_C" >&6
42827 + ac_check_lib_save_LIBS=$LIBS
42828 +LIBS="-lncurses $LIBS"
42829 +cat >conftest.$ac_ext <<_ACEOF
42832 +cat confdefs.h >>conftest.$ac_ext
42833 +cat >>conftest.$ac_ext <<_ACEOF
42834 +/* end confdefs.h. */
42836 +/* Override any gcc2 internal prototype to avoid an error. */
42837 +#ifdef __cplusplus
42840 +/* We use char because int might match the return type of a gcc2
42841 + builtin and then its argument prototype would still apply. */
42851 +rm -f conftest.$ac_objext conftest$ac_exeext
42852 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42853 + (eval $ac_link) 2>conftest.er1
42855 + grep -v '^ *+' conftest.er1 >conftest.err
42856 + rm -f conftest.er1
42857 + cat conftest.err >&5
42858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42859 + (exit $ac_status); } &&
42860 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42861 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42862 + (eval $ac_try) 2>&5
42864 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42865 + (exit $ac_status); }; } &&
42866 + { ac_try='test -s conftest$ac_exeext'
42867 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42868 + (eval $ac_try) 2>&5
42870 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42871 + (exit $ac_status); }; }; then
42872 + ac_cv_lib_ncurses_tparm=yes
42874 + echo "$as_me: failed program was:" >&5
42875 +sed 's/^/| /' conftest.$ac_ext >&5
42877 +ac_cv_lib_ncurses_tparm=no
42879 +rm -f conftest.err conftest.$ac_objext \
42880 + conftest$ac_exeext conftest.$ac_ext
42881 +LIBS=$ac_check_lib_save_LIBS
42883 +echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
42884 +echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
42885 +if test $ac_cv_lib_ncurses_tparm = yes; then
42886 + cat >>confdefs.h <<_ACEOF
42887 +#define HAVE_LIBNCURSES 1
42890 + LIBS="-lncurses $LIBS"
42895 +# Do we need the Hesiod library to provide the support routines?
42896 +if test "$with_hesiod" = yes ; then
42897 + # Don't set $LIBS here -- see comments above.
42899 + echo "$as_me:$LINENO: checking for res_send" >&5
42900 +echo $ECHO_N "checking for res_send... $ECHO_C" >&6
42901 +if test "${ac_cv_func_res_send+set}" = set; then
42902 + echo $ECHO_N "(cached) $ECHO_C" >&6
42904 + cat >conftest.$ac_ext <<_ACEOF
42907 +cat confdefs.h >>conftest.$ac_ext
42908 +cat >>conftest.$ac_ext <<_ACEOF
42909 +/* end confdefs.h. */
42910 +/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
42911 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
42912 +#define res_send innocuous_res_send
42914 +/* System header to define __stub macros and hopefully few prototypes,
42915 + which can conflict with char res_send (); below.
42916 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42917 + <limits.h> exists even on freestanding compilers. */
42920 +# include <limits.h>
42922 +# include <assert.h>
42927 +/* Override any gcc2 internal prototype to avoid an error. */
42928 +#ifdef __cplusplus
42932 +/* We use char because int might match the return type of a gcc2
42933 + builtin and then its argument prototype would still apply. */
42935 +/* The GNU C library defines this for functions which it implements
42936 + to always fail with ENOSYS. Some functions are actually named
42937 + something starting with __ and the normal name is an alias. */
42938 +#if defined (__stub_res_send) || defined (__stub___res_send)
42941 +char (*f) () = res_send;
42943 +#ifdef __cplusplus
42950 +return f != res_send;
42955 +rm -f conftest.$ac_objext conftest$ac_exeext
42956 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42957 + (eval $ac_link) 2>conftest.er1
42959 + grep -v '^ *+' conftest.er1 >conftest.err
42960 + rm -f conftest.er1
42961 + cat conftest.err >&5
42962 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42963 + (exit $ac_status); } &&
42964 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42965 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42966 + (eval $ac_try) 2>&5
42968 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42969 + (exit $ac_status); }; } &&
42970 + { ac_try='test -s conftest$ac_exeext'
42971 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42972 + (eval $ac_try) 2>&5
42974 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975 + (exit $ac_status); }; }; then
42976 + ac_cv_func_res_send=yes
42978 + echo "$as_me: failed program was:" >&5
42979 +sed 's/^/| /' conftest.$ac_ext >&5
42981 +ac_cv_func_res_send=no
42983 +rm -f conftest.err conftest.$ac_objext \
42984 + conftest$ac_exeext conftest.$ac_ext
42986 +echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
42987 +echo "${ECHO_T}$ac_cv_func_res_send" >&6
42988 +if test $ac_cv_func_res_send = yes; then
42991 + echo "$as_me:$LINENO: checking for __res_send" >&5
42992 +echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
42993 +if test "${ac_cv_func___res_send+set}" = set; then
42994 + echo $ECHO_N "(cached) $ECHO_C" >&6
42996 + cat >conftest.$ac_ext <<_ACEOF
42999 +cat confdefs.h >>conftest.$ac_ext
43000 +cat >>conftest.$ac_ext <<_ACEOF
43001 +/* end confdefs.h. */
43002 +/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
43003 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
43004 +#define __res_send innocuous___res_send
43006 +/* System header to define __stub macros and hopefully few prototypes,
43007 + which can conflict with char __res_send (); below.
43008 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43009 + <limits.h> exists even on freestanding compilers. */
43012 +# include <limits.h>
43014 +# include <assert.h>
43019 +/* Override any gcc2 internal prototype to avoid an error. */
43020 +#ifdef __cplusplus
43024 +/* We use char because int might match the return type of a gcc2
43025 + builtin and then its argument prototype would still apply. */
43026 +char __res_send ();
43027 +/* The GNU C library defines this for functions which it implements
43028 + to always fail with ENOSYS. Some functions are actually named
43029 + something starting with __ and the normal name is an alias. */
43030 +#if defined (__stub___res_send) || defined (__stub_____res_send)
43033 +char (*f) () = __res_send;
43035 +#ifdef __cplusplus
43042 +return f != __res_send;
43047 +rm -f conftest.$ac_objext conftest$ac_exeext
43048 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43049 + (eval $ac_link) 2>conftest.er1
43051 + grep -v '^ *+' conftest.er1 >conftest.err
43052 + rm -f conftest.er1
43053 + cat conftest.err >&5
43054 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43055 + (exit $ac_status); } &&
43056 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43057 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43058 + (eval $ac_try) 2>&5
43060 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43061 + (exit $ac_status); }; } &&
43062 + { ac_try='test -s conftest$ac_exeext'
43063 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43064 + (eval $ac_try) 2>&5
43066 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43067 + (exit $ac_status); }; }; then
43068 + ac_cv_func___res_send=yes
43070 + echo "$as_me: failed program was:" >&5
43071 +sed 's/^/| /' conftest.$ac_ext >&5
43073 +ac_cv_func___res_send=no
43075 +rm -f conftest.err conftest.$ac_objext \
43076 + conftest$ac_exeext conftest.$ac_ext
43078 +echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
43079 +echo "${ECHO_T}$ac_cv_func___res_send" >&6
43080 +if test $ac_cv_func___res_send = yes; then
43083 + echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
43084 +echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
43085 +if test "${ac_cv_lib_resolv_res_send+set}" = set; then
43086 + echo $ECHO_N "(cached) $ECHO_C" >&6
43088 + ac_check_lib_save_LIBS=$LIBS
43089 +LIBS="-lresolv $LIBS"
43090 +cat >conftest.$ac_ext <<_ACEOF
43093 +cat confdefs.h >>conftest.$ac_ext
43094 +cat >>conftest.$ac_ext <<_ACEOF
43095 +/* end confdefs.h. */
43097 +/* Override any gcc2 internal prototype to avoid an error. */
43098 +#ifdef __cplusplus
43101 +/* We use char because int might match the return type of a gcc2
43102 + builtin and then its argument prototype would still apply. */
43112 +rm -f conftest.$ac_objext conftest$ac_exeext
43113 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43114 + (eval $ac_link) 2>conftest.er1
43116 + grep -v '^ *+' conftest.er1 >conftest.err
43117 + rm -f conftest.er1
43118 + cat conftest.err >&5
43119 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43120 + (exit $ac_status); } &&
43121 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43122 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43123 + (eval $ac_try) 2>&5
43125 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43126 + (exit $ac_status); }; } &&
43127 + { ac_try='test -s conftest$ac_exeext'
43128 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43129 + (eval $ac_try) 2>&5
43131 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132 + (exit $ac_status); }; }; then
43133 + ac_cv_lib_resolv_res_send=yes
43135 + echo "$as_me: failed program was:" >&5
43136 +sed 's/^/| /' conftest.$ac_ext >&5
43138 +ac_cv_lib_resolv_res_send=no
43140 +rm -f conftest.err conftest.$ac_objext \
43141 + conftest$ac_exeext conftest.$ac_ext
43142 +LIBS=$ac_check_lib_save_LIBS
43144 +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
43145 +echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
43146 +if test $ac_cv_lib_resolv_res_send = yes; then
43149 + echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
43150 +echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
43151 +if test "${ac_cv_lib_resolv___res_send+set}" = set; then
43152 + echo $ECHO_N "(cached) $ECHO_C" >&6
43154 + ac_check_lib_save_LIBS=$LIBS
43155 +LIBS="-lresolv $LIBS"
43156 +cat >conftest.$ac_ext <<_ACEOF
43159 +cat confdefs.h >>conftest.$ac_ext
43160 +cat >>conftest.$ac_ext <<_ACEOF
43161 +/* end confdefs.h. */
43163 +/* Override any gcc2 internal prototype to avoid an error. */
43164 +#ifdef __cplusplus
43167 +/* We use char because int might match the return type of a gcc2
43168 + builtin and then its argument prototype would still apply. */
43169 +char __res_send ();
43178 +rm -f conftest.$ac_objext conftest$ac_exeext
43179 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43180 + (eval $ac_link) 2>conftest.er1
43182 + grep -v '^ *+' conftest.er1 >conftest.err
43183 + rm -f conftest.er1
43184 + cat conftest.err >&5
43185 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43186 + (exit $ac_status); } &&
43187 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43188 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43189 + (eval $ac_try) 2>&5
43191 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43192 + (exit $ac_status); }; } &&
43193 + { ac_try='test -s conftest$ac_exeext'
43194 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43195 + (eval $ac_try) 2>&5
43197 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43198 + (exit $ac_status); }; }; then
43199 + ac_cv_lib_resolv___res_send=yes
43201 + echo "$as_me: failed program was:" >&5
43202 +sed 's/^/| /' conftest.$ac_ext >&5
43204 +ac_cv_lib_resolv___res_send=no
43206 +rm -f conftest.err conftest.$ac_objext \
43207 + conftest$ac_exeext conftest.$ac_ext
43208 +LIBS=$ac_check_lib_save_LIBS
43210 +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
43211 +echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
43212 +if test $ac_cv_lib_resolv___res_send = yes; then
43222 + if test "$resolv" = yes ; then
43223 + RESOLVLIB=-lresolv
43224 + cat >>confdefs.h <<\_ACEOF
43225 +#define HAVE_LIBRESOLV 1
43231 + echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
43232 +echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
43233 +if test "${ac_cv_func_hes_getmailhost+set}" = set; then
43234 + echo $ECHO_N "(cached) $ECHO_C" >&6
43236 + cat >conftest.$ac_ext <<_ACEOF
43239 +cat confdefs.h >>conftest.$ac_ext
43240 +cat >>conftest.$ac_ext <<_ACEOF
43241 +/* end confdefs.h. */
43242 +/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
43243 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
43244 +#define hes_getmailhost innocuous_hes_getmailhost
43246 +/* System header to define __stub macros and hopefully few prototypes,
43247 + which can conflict with char hes_getmailhost (); below.
43248 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43249 + <limits.h> exists even on freestanding compilers. */
43252 +# include <limits.h>
43254 +# include <assert.h>
43257 +#undef hes_getmailhost
43259 +/* Override any gcc2 internal prototype to avoid an error. */
43260 +#ifdef __cplusplus
43264 +/* We use char because int might match the return type of a gcc2
43265 + builtin and then its argument prototype would still apply. */
43266 +char hes_getmailhost ();
43267 +/* The GNU C library defines this for functions which it implements
43268 + to always fail with ENOSYS. Some functions are actually named
43269 + something starting with __ and the normal name is an alias. */
43270 +#if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
43273 +char (*f) () = hes_getmailhost;
43275 +#ifdef __cplusplus
43282 +return f != hes_getmailhost;
43287 +rm -f conftest.$ac_objext conftest$ac_exeext
43288 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43289 + (eval $ac_link) 2>conftest.er1
43291 + grep -v '^ *+' conftest.er1 >conftest.err
43292 + rm -f conftest.er1
43293 + cat conftest.err >&5
43294 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43295 + (exit $ac_status); } &&
43296 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43297 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43298 + (eval $ac_try) 2>&5
43300 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43301 + (exit $ac_status); }; } &&
43302 + { ac_try='test -s conftest$ac_exeext'
43303 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43304 + (eval $ac_try) 2>&5
43306 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43307 + (exit $ac_status); }; }; then
43308 + ac_cv_func_hes_getmailhost=yes
43310 + echo "$as_me: failed program was:" >&5
43311 +sed 's/^/| /' conftest.$ac_ext >&5
43313 +ac_cv_func_hes_getmailhost=no
43315 +rm -f conftest.err conftest.$ac_objext \
43316 + conftest$ac_exeext conftest.$ac_ext
43318 +echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
43319 +echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
43320 +if test $ac_cv_func_hes_getmailhost = yes; then
43323 + echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
43324 +echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
43325 +if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
43326 + echo $ECHO_N "(cached) $ECHO_C" >&6
43328 + ac_check_lib_save_LIBS=$LIBS
43329 +LIBS="-lhesiod $RESOLVLIB $LIBS"
43330 +cat >conftest.$ac_ext <<_ACEOF
43333 +cat confdefs.h >>conftest.$ac_ext
43334 +cat >>conftest.$ac_ext <<_ACEOF
43335 +/* end confdefs.h. */
43337 +/* Override any gcc2 internal prototype to avoid an error. */
43338 +#ifdef __cplusplus
43341 +/* We use char because int might match the return type of a gcc2
43342 + builtin and then its argument prototype would still apply. */
43343 +char hes_getmailhost ();
43347 +hes_getmailhost ();
43352 +rm -f conftest.$ac_objext conftest$ac_exeext
43353 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43354 + (eval $ac_link) 2>conftest.er1
43356 + grep -v '^ *+' conftest.er1 >conftest.err
43357 + rm -f conftest.er1
43358 + cat conftest.err >&5
43359 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43360 + (exit $ac_status); } &&
43361 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43362 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43363 + (eval $ac_try) 2>&5
43365 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43366 + (exit $ac_status); }; } &&
43367 + { ac_try='test -s conftest$ac_exeext'
43368 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43369 + (eval $ac_try) 2>&5
43371 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43372 + (exit $ac_status); }; }; then
43373 + ac_cv_lib_hesiod_hes_getmailhost=yes
43375 + echo "$as_me: failed program was:" >&5
43376 +sed 's/^/| /' conftest.$ac_ext >&5
43378 +ac_cv_lib_hesiod_hes_getmailhost=no
43380 +rm -f conftest.err conftest.$ac_objext \
43381 + conftest$ac_exeext conftest.$ac_ext
43382 +LIBS=$ac_check_lib_save_LIBS
43384 +echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
43385 +echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
43386 +if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
43387 + cat >>confdefs.h <<\_ACEOF
43388 +#define HAVE_LIBHESIOD 1
43399 +# These tell us which Kerberos-related libraries to use.
43400 +if test "${with_kerberos+set}" = set; then
43402 +echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
43403 +echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
43404 +if test "${ac_cv_lib_com_err_com_err+set}" = set; then
43405 + echo $ECHO_N "(cached) $ECHO_C" >&6
43407 + ac_check_lib_save_LIBS=$LIBS
43408 +LIBS="-lcom_err $LIBS"
43409 +cat >conftest.$ac_ext <<_ACEOF
43412 +cat confdefs.h >>conftest.$ac_ext
43413 +cat >>conftest.$ac_ext <<_ACEOF
43414 +/* end confdefs.h. */
43416 +/* Override any gcc2 internal prototype to avoid an error. */
43417 +#ifdef __cplusplus
43420 +/* We use char because int might match the return type of a gcc2
43421 + builtin and then its argument prototype would still apply. */
43431 +rm -f conftest.$ac_objext conftest$ac_exeext
43432 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43433 + (eval $ac_link) 2>conftest.er1
43435 + grep -v '^ *+' conftest.er1 >conftest.err
43436 + rm -f conftest.er1
43437 + cat conftest.err >&5
43438 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43439 + (exit $ac_status); } &&
43440 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43441 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43442 + (eval $ac_try) 2>&5
43444 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43445 + (exit $ac_status); }; } &&
43446 + { ac_try='test -s conftest$ac_exeext'
43447 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43448 + (eval $ac_try) 2>&5
43450 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43451 + (exit $ac_status); }; }; then
43452 + ac_cv_lib_com_err_com_err=yes
43454 + echo "$as_me: failed program was:" >&5
43455 +sed 's/^/| /' conftest.$ac_ext >&5
43457 +ac_cv_lib_com_err_com_err=no
43459 +rm -f conftest.err conftest.$ac_objext \
43460 + conftest$ac_exeext conftest.$ac_ext
43461 +LIBS=$ac_check_lib_save_LIBS
43463 +echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
43464 +echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
43465 +if test $ac_cv_lib_com_err_com_err = yes; then
43466 + cat >>confdefs.h <<_ACEOF
43467 +#define HAVE_LIBCOM_ERR 1
43470 + LIBS="-lcom_err $LIBS"
43475 +echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
43476 +echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
43477 +if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
43478 + echo $ECHO_N "(cached) $ECHO_C" >&6
43480 + ac_check_lib_save_LIBS=$LIBS
43481 +LIBS="-lk5crypto $LIBS"
43482 +cat >conftest.$ac_ext <<_ACEOF
43485 +cat confdefs.h >>conftest.$ac_ext
43486 +cat >>conftest.$ac_ext <<_ACEOF
43487 +/* end confdefs.h. */
43489 +/* Override any gcc2 internal prototype to avoid an error. */
43490 +#ifdef __cplusplus
43493 +/* We use char because int might match the return type of a gcc2
43494 + builtin and then its argument prototype would still apply. */
43495 +char mit_des_cbc_encrypt ();
43499 +mit_des_cbc_encrypt ();
43504 +rm -f conftest.$ac_objext conftest$ac_exeext
43505 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43506 + (eval $ac_link) 2>conftest.er1
43508 + grep -v '^ *+' conftest.er1 >conftest.err
43509 + rm -f conftest.er1
43510 + cat conftest.err >&5
43511 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43512 + (exit $ac_status); } &&
43513 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43514 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43515 + (eval $ac_try) 2>&5
43517 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43518 + (exit $ac_status); }; } &&
43519 + { ac_try='test -s conftest$ac_exeext'
43520 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43521 + (eval $ac_try) 2>&5
43523 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43524 + (exit $ac_status); }; }; then
43525 + ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
43527 + echo "$as_me: failed program was:" >&5
43528 +sed 's/^/| /' conftest.$ac_ext >&5
43530 +ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
43532 +rm -f conftest.err conftest.$ac_objext \
43533 + conftest$ac_exeext conftest.$ac_ext
43534 +LIBS=$ac_check_lib_save_LIBS
43536 +echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
43537 +echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
43538 +if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
43539 + cat >>confdefs.h <<_ACEOF
43540 +#define HAVE_LIBK5CRYPTO 1
43543 + LIBS="-lk5crypto $LIBS"
43548 +echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
43549 +echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
43550 +if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
43551 + echo $ECHO_N "(cached) $ECHO_C" >&6
43553 + ac_check_lib_save_LIBS=$LIBS
43554 +LIBS="-lcrypto $LIBS"
43555 +cat >conftest.$ac_ext <<_ACEOF
43558 +cat confdefs.h >>conftest.$ac_ext
43559 +cat >>conftest.$ac_ext <<_ACEOF
43560 +/* end confdefs.h. */
43562 +/* Override any gcc2 internal prototype to avoid an error. */
43563 +#ifdef __cplusplus
43566 +/* We use char because int might match the return type of a gcc2
43567 + builtin and then its argument prototype would still apply. */
43568 +char mit_des_cbc_encrypt ();
43572 +mit_des_cbc_encrypt ();
43577 +rm -f conftest.$ac_objext conftest$ac_exeext
43578 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43579 + (eval $ac_link) 2>conftest.er1
43581 + grep -v '^ *+' conftest.er1 >conftest.err
43582 + rm -f conftest.er1
43583 + cat conftest.err >&5
43584 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43585 + (exit $ac_status); } &&
43586 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43587 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43588 + (eval $ac_try) 2>&5
43590 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43591 + (exit $ac_status); }; } &&
43592 + { ac_try='test -s conftest$ac_exeext'
43593 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43594 + (eval $ac_try) 2>&5
43596 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43597 + (exit $ac_status); }; }; then
43598 + ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
43600 + echo "$as_me: failed program was:" >&5
43601 +sed 's/^/| /' conftest.$ac_ext >&5
43603 +ac_cv_lib_crypto_mit_des_cbc_encrypt=no
43605 +rm -f conftest.err conftest.$ac_objext \
43606 + conftest$ac_exeext conftest.$ac_ext
43607 +LIBS=$ac_check_lib_save_LIBS
43609 +echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
43610 +echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
43611 +if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
43612 + cat >>confdefs.h <<_ACEOF
43613 +#define HAVE_LIBCRYPTO 1
43616 + LIBS="-lcrypto $LIBS"
43621 +echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
43622 +echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
43623 +if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
43624 + echo $ECHO_N "(cached) $ECHO_C" >&6
43626 + ac_check_lib_save_LIBS=$LIBS
43627 +LIBS="-lkrb5 $LIBS"
43628 +cat >conftest.$ac_ext <<_ACEOF
43631 +cat confdefs.h >>conftest.$ac_ext
43632 +cat >>conftest.$ac_ext <<_ACEOF
43633 +/* end confdefs.h. */
43635 +/* Override any gcc2 internal prototype to avoid an error. */
43636 +#ifdef __cplusplus
43639 +/* We use char because int might match the return type of a gcc2
43640 + builtin and then its argument prototype would still apply. */
43641 +char krb5_init_context ();
43645 +krb5_init_context ();
43650 +rm -f conftest.$ac_objext conftest$ac_exeext
43651 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43652 + (eval $ac_link) 2>conftest.er1
43654 + grep -v '^ *+' conftest.er1 >conftest.err
43655 + rm -f conftest.er1
43656 + cat conftest.err >&5
43657 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43658 + (exit $ac_status); } &&
43659 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43660 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43661 + (eval $ac_try) 2>&5
43663 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43664 + (exit $ac_status); }; } &&
43665 + { ac_try='test -s conftest$ac_exeext'
43666 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43667 + (eval $ac_try) 2>&5
43669 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670 + (exit $ac_status); }; }; then
43671 + ac_cv_lib_krb5_krb5_init_context=yes
43673 + echo "$as_me: failed program was:" >&5
43674 +sed 's/^/| /' conftest.$ac_ext >&5
43676 +ac_cv_lib_krb5_krb5_init_context=no
43678 +rm -f conftest.err conftest.$ac_objext \
43679 + conftest$ac_exeext conftest.$ac_ext
43680 +LIBS=$ac_check_lib_save_LIBS
43682 +echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
43683 +echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
43684 +if test $ac_cv_lib_krb5_krb5_init_context = yes; then
43685 + cat >>confdefs.h <<_ACEOF
43686 +#define HAVE_LIBKRB5 1
43689 + LIBS="-lkrb5 $LIBS"
43693 + if test "${with_kerberos5+set}" != set; then
43695 +echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
43696 +echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
43697 +if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
43698 + echo $ECHO_N "(cached) $ECHO_C" >&6
43700 + ac_check_lib_save_LIBS=$LIBS
43701 +LIBS="-ldes425 $LIBS"
43702 +cat >conftest.$ac_ext <<_ACEOF
43705 +cat confdefs.h >>conftest.$ac_ext
43706 +cat >>conftest.$ac_ext <<_ACEOF
43707 +/* end confdefs.h. */
43709 +/* Override any gcc2 internal prototype to avoid an error. */
43710 +#ifdef __cplusplus
43713 +/* We use char because int might match the return type of a gcc2
43714 + builtin and then its argument prototype would still apply. */
43715 +char des_cbc_encrypt ();
43719 +des_cbc_encrypt ();
43724 +rm -f conftest.$ac_objext conftest$ac_exeext
43725 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43726 + (eval $ac_link) 2>conftest.er1
43728 + grep -v '^ *+' conftest.er1 >conftest.err
43729 + rm -f conftest.er1
43730 + cat conftest.err >&5
43731 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43732 + (exit $ac_status); } &&
43733 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43734 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43735 + (eval $ac_try) 2>&5
43737 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738 + (exit $ac_status); }; } &&
43739 + { ac_try='test -s conftest$ac_exeext'
43740 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43741 + (eval $ac_try) 2>&5
43743 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43744 + (exit $ac_status); }; }; then
43745 + ac_cv_lib_des425_des_cbc_encrypt=yes
43747 + echo "$as_me: failed program was:" >&5
43748 +sed 's/^/| /' conftest.$ac_ext >&5
43750 +ac_cv_lib_des425_des_cbc_encrypt=no
43752 +rm -f conftest.err conftest.$ac_objext \
43753 + conftest$ac_exeext conftest.$ac_ext
43754 +LIBS=$ac_check_lib_save_LIBS
43756 +echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
43757 +echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
43758 +if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
43759 + cat >>confdefs.h <<_ACEOF
43760 +#define HAVE_LIBDES425 1
43763 + LIBS="-ldes425 $LIBS"
43767 +echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
43768 +echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
43769 +if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
43770 + echo $ECHO_N "(cached) $ECHO_C" >&6
43772 + ac_check_lib_save_LIBS=$LIBS
43773 +LIBS="-ldes $LIBS"
43774 +cat >conftest.$ac_ext <<_ACEOF
43777 +cat confdefs.h >>conftest.$ac_ext
43778 +cat >>conftest.$ac_ext <<_ACEOF
43779 +/* end confdefs.h. */
43781 +/* Override any gcc2 internal prototype to avoid an error. */
43782 +#ifdef __cplusplus
43785 +/* We use char because int might match the return type of a gcc2
43786 + builtin and then its argument prototype would still apply. */
43787 +char des_cbc_encrypt ();
43791 +des_cbc_encrypt ();
43796 +rm -f conftest.$ac_objext conftest$ac_exeext
43797 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43798 + (eval $ac_link) 2>conftest.er1
43800 + grep -v '^ *+' conftest.er1 >conftest.err
43801 + rm -f conftest.er1
43802 + cat conftest.err >&5
43803 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43804 + (exit $ac_status); } &&
43805 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43806 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43807 + (eval $ac_try) 2>&5
43809 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43810 + (exit $ac_status); }; } &&
43811 + { ac_try='test -s conftest$ac_exeext'
43812 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43813 + (eval $ac_try) 2>&5
43815 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43816 + (exit $ac_status); }; }; then
43817 + ac_cv_lib_des_des_cbc_encrypt=yes
43819 + echo "$as_me: failed program was:" >&5
43820 +sed 's/^/| /' conftest.$ac_ext >&5
43822 +ac_cv_lib_des_des_cbc_encrypt=no
43824 +rm -f conftest.err conftest.$ac_objext \
43825 + conftest$ac_exeext conftest.$ac_ext
43826 +LIBS=$ac_check_lib_save_LIBS
43828 +echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
43829 +echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
43830 +if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
43831 + cat >>confdefs.h <<_ACEOF
43832 +#define HAVE_LIBDES 1
43835 + LIBS="-ldes $LIBS"
43842 +echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
43843 +echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
43844 +if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
43845 + echo $ECHO_N "(cached) $ECHO_C" >&6
43847 + ac_check_lib_save_LIBS=$LIBS
43848 +LIBS="-lkrb4 $LIBS"
43849 +cat >conftest.$ac_ext <<_ACEOF
43852 +cat confdefs.h >>conftest.$ac_ext
43853 +cat >>conftest.$ac_ext <<_ACEOF
43854 +/* end confdefs.h. */
43856 +/* Override any gcc2 internal prototype to avoid an error. */
43857 +#ifdef __cplusplus
43860 +/* We use char because int might match the return type of a gcc2
43861 + builtin and then its argument prototype would still apply. */
43862 +char krb_get_cred ();
43871 +rm -f conftest.$ac_objext conftest$ac_exeext
43872 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43873 + (eval $ac_link) 2>conftest.er1
43875 + grep -v '^ *+' conftest.er1 >conftest.err
43876 + rm -f conftest.er1
43877 + cat conftest.err >&5
43878 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43879 + (exit $ac_status); } &&
43880 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43881 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43882 + (eval $ac_try) 2>&5
43884 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43885 + (exit $ac_status); }; } &&
43886 + { ac_try='test -s conftest$ac_exeext'
43887 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43888 + (eval $ac_try) 2>&5
43890 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43891 + (exit $ac_status); }; }; then
43892 + ac_cv_lib_krb4_krb_get_cred=yes
43894 + echo "$as_me: failed program was:" >&5
43895 +sed 's/^/| /' conftest.$ac_ext >&5
43897 +ac_cv_lib_krb4_krb_get_cred=no
43899 +rm -f conftest.err conftest.$ac_objext \
43900 + conftest$ac_exeext conftest.$ac_ext
43901 +LIBS=$ac_check_lib_save_LIBS
43903 +echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
43904 +echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
43905 +if test $ac_cv_lib_krb4_krb_get_cred = yes; then
43906 + cat >>confdefs.h <<_ACEOF
43907 +#define HAVE_LIBKRB4 1
43910 + LIBS="-lkrb4 $LIBS"
43914 +echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
43915 +echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
43916 +if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
43917 + echo $ECHO_N "(cached) $ECHO_C" >&6
43919 + ac_check_lib_save_LIBS=$LIBS
43920 +LIBS="-lkrb $LIBS"
43921 +cat >conftest.$ac_ext <<_ACEOF
43924 +cat confdefs.h >>conftest.$ac_ext
43925 +cat >>conftest.$ac_ext <<_ACEOF
43926 +/* end confdefs.h. */
43928 +/* Override any gcc2 internal prototype to avoid an error. */
43929 +#ifdef __cplusplus
43932 +/* We use char because int might match the return type of a gcc2
43933 + builtin and then its argument prototype would still apply. */
43934 +char krb_get_cred ();
43943 +rm -f conftest.$ac_objext conftest$ac_exeext
43944 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43945 + (eval $ac_link) 2>conftest.er1
43947 + grep -v '^ *+' conftest.er1 >conftest.err
43948 + rm -f conftest.er1
43949 + cat conftest.err >&5
43950 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43951 + (exit $ac_status); } &&
43952 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43953 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43954 + (eval $ac_try) 2>&5
43956 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43957 + (exit $ac_status); }; } &&
43958 + { ac_try='test -s conftest$ac_exeext'
43959 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43960 + (eval $ac_try) 2>&5
43962 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43963 + (exit $ac_status); }; }; then
43964 + ac_cv_lib_krb_krb_get_cred=yes
43966 + echo "$as_me: failed program was:" >&5
43967 +sed 's/^/| /' conftest.$ac_ext >&5
43969 +ac_cv_lib_krb_krb_get_cred=no
43971 +rm -f conftest.err conftest.$ac_objext \
43972 + conftest$ac_exeext conftest.$ac_ext
43973 +LIBS=$ac_check_lib_save_LIBS
43975 +echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
43976 +echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
43977 +if test $ac_cv_lib_krb_krb_get_cred = yes; then
43978 + cat >>confdefs.h <<_ACEOF
43979 +#define HAVE_LIBKRB 1
43982 + LIBS="-lkrb $LIBS"
43990 + if test "${with_kerberos5+set}" = set; then
43992 +for ac_header in krb5.h
43994 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43995 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
43996 + echo "$as_me:$LINENO: checking for $ac_header" >&5
43997 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43998 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
43999 + echo $ECHO_N "(cached) $ECHO_C" >&6
44001 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44002 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44004 + # Is the header compilable?
44005 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
44006 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44007 +cat >conftest.$ac_ext <<_ACEOF
44010 +cat confdefs.h >>conftest.$ac_ext
44011 +cat >>conftest.$ac_ext <<_ACEOF
44012 +/* end confdefs.h. */
44013 +$ac_includes_default
44014 +#include <$ac_header>
44016 +rm -f conftest.$ac_objext
44017 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44018 + (eval $ac_compile) 2>conftest.er1
44020 + grep -v '^ *+' conftest.er1 >conftest.err
44021 + rm -f conftest.er1
44022 + cat conftest.err >&5
44023 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44024 + (exit $ac_status); } &&
44025 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44026 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44027 + (eval $ac_try) 2>&5
44029 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44030 + (exit $ac_status); }; } &&
44031 + { ac_try='test -s conftest.$ac_objext'
44032 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44033 + (eval $ac_try) 2>&5
44035 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44036 + (exit $ac_status); }; }; then
44037 + ac_header_compiler=yes
44039 + echo "$as_me: failed program was:" >&5
44040 +sed 's/^/| /' conftest.$ac_ext >&5
44042 +ac_header_compiler=no
44044 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44045 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44046 +echo "${ECHO_T}$ac_header_compiler" >&6
44048 +# Is the header present?
44049 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
44050 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44051 +cat >conftest.$ac_ext <<_ACEOF
44054 +cat confdefs.h >>conftest.$ac_ext
44055 +cat >>conftest.$ac_ext <<_ACEOF
44056 +/* end confdefs.h. */
44057 +#include <$ac_header>
44059 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44060 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44062 + grep -v '^ *+' conftest.er1 >conftest.err
44063 + rm -f conftest.er1
44064 + cat conftest.err >&5
44065 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44066 + (exit $ac_status); } >/dev/null; then
44067 + if test -s conftest.err; then
44068 + ac_cpp_err=$ac_c_preproc_warn_flag
44069 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44076 +if test -z "$ac_cpp_err"; then
44077 + ac_header_preproc=yes
44079 + echo "$as_me: failed program was:" >&5
44080 +sed 's/^/| /' conftest.$ac_ext >&5
44082 + ac_header_preproc=no
44084 +rm -f conftest.err conftest.$ac_ext
44085 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44086 +echo "${ECHO_T}$ac_header_preproc" >&6
44088 +# So? What about this header?
44089 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44091 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44092 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44093 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44094 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44095 + ac_header_preproc=yes
44098 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44099 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44100 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44101 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44102 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44103 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44104 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44105 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44106 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44107 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44108 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44109 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44112 +## ------------------------------------------ ##
44113 +## Report this to the AC_PACKAGE_NAME lists. ##
44114 +## ------------------------------------------ ##
44117 + sed "s/^/$as_me: WARNING: /" >&2
44120 +echo "$as_me:$LINENO: checking for $ac_header" >&5
44121 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44122 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44123 + echo $ECHO_N "(cached) $ECHO_C" >&6
44125 + eval "$as_ac_Header=\$ac_header_preproc"
44127 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44128 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44131 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
44132 + cat >>confdefs.h <<_ACEOF
44133 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44144 +for ac_header in des.h kerberosIV/des.h kerberos/des.h
44146 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44147 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44148 + echo "$as_me:$LINENO: checking for $ac_header" >&5
44149 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44150 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44151 + echo $ECHO_N "(cached) $ECHO_C" >&6
44153 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44154 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44156 + # Is the header compilable?
44157 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
44158 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44159 +cat >conftest.$ac_ext <<_ACEOF
44162 +cat confdefs.h >>conftest.$ac_ext
44163 +cat >>conftest.$ac_ext <<_ACEOF
44164 +/* end confdefs.h. */
44165 +$ac_includes_default
44166 +#include <$ac_header>
44168 +rm -f conftest.$ac_objext
44169 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44170 + (eval $ac_compile) 2>conftest.er1
44172 + grep -v '^ *+' conftest.er1 >conftest.err
44173 + rm -f conftest.er1
44174 + cat conftest.err >&5
44175 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44176 + (exit $ac_status); } &&
44177 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44178 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44179 + (eval $ac_try) 2>&5
44181 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44182 + (exit $ac_status); }; } &&
44183 + { ac_try='test -s conftest.$ac_objext'
44184 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44185 + (eval $ac_try) 2>&5
44187 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44188 + (exit $ac_status); }; }; then
44189 + ac_header_compiler=yes
44191 + echo "$as_me: failed program was:" >&5
44192 +sed 's/^/| /' conftest.$ac_ext >&5
44194 +ac_header_compiler=no
44196 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44197 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44198 +echo "${ECHO_T}$ac_header_compiler" >&6
44200 +# Is the header present?
44201 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
44202 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44203 +cat >conftest.$ac_ext <<_ACEOF
44206 +cat confdefs.h >>conftest.$ac_ext
44207 +cat >>conftest.$ac_ext <<_ACEOF
44208 +/* end confdefs.h. */
44209 +#include <$ac_header>
44211 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44212 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44214 + grep -v '^ *+' conftest.er1 >conftest.err
44215 + rm -f conftest.er1
44216 + cat conftest.err >&5
44217 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44218 + (exit $ac_status); } >/dev/null; then
44219 + if test -s conftest.err; then
44220 + ac_cpp_err=$ac_c_preproc_warn_flag
44221 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44228 +if test -z "$ac_cpp_err"; then
44229 + ac_header_preproc=yes
44231 + echo "$as_me: failed program was:" >&5
44232 +sed 's/^/| /' conftest.$ac_ext >&5
44234 + ac_header_preproc=no
44236 +rm -f conftest.err conftest.$ac_ext
44237 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44238 +echo "${ECHO_T}$ac_header_preproc" >&6
44240 +# So? What about this header?
44241 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44243 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44244 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44245 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44246 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44247 + ac_header_preproc=yes
44250 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44251 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44252 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44253 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44254 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44255 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44256 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44257 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44258 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44259 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44260 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44261 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44264 +## ------------------------------------------ ##
44265 +## Report this to the AC_PACKAGE_NAME lists. ##
44266 +## ------------------------------------------ ##
44269 + sed "s/^/$as_me: WARNING: /" >&2
44272 +echo "$as_me:$LINENO: checking for $ac_header" >&5
44273 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44274 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44275 + echo $ECHO_N "(cached) $ECHO_C" >&6
44277 + eval "$as_ac_Header=\$ac_header_preproc"
44279 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44280 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44283 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
44284 + cat >>confdefs.h <<_ACEOF
44285 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44295 +for ac_header in krb.h kerberosIV/krb.h kerberos/krb.h
44297 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44298 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44299 + echo "$as_me:$LINENO: checking for $ac_header" >&5
44300 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44301 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44302 + echo $ECHO_N "(cached) $ECHO_C" >&6
44304 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44305 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44307 + # Is the header compilable?
44308 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
44309 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44310 +cat >conftest.$ac_ext <<_ACEOF
44313 +cat confdefs.h >>conftest.$ac_ext
44314 +cat >>conftest.$ac_ext <<_ACEOF
44315 +/* end confdefs.h. */
44316 +$ac_includes_default
44317 +#include <$ac_header>
44319 +rm -f conftest.$ac_objext
44320 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44321 + (eval $ac_compile) 2>conftest.er1
44323 + grep -v '^ *+' conftest.er1 >conftest.err
44324 + rm -f conftest.er1
44325 + cat conftest.err >&5
44326 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44327 + (exit $ac_status); } &&
44328 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44329 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44330 + (eval $ac_try) 2>&5
44332 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44333 + (exit $ac_status); }; } &&
44334 + { ac_try='test -s conftest.$ac_objext'
44335 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44336 + (eval $ac_try) 2>&5
44338 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44339 + (exit $ac_status); }; }; then
44340 + ac_header_compiler=yes
44342 + echo "$as_me: failed program was:" >&5
44343 +sed 's/^/| /' conftest.$ac_ext >&5
44345 +ac_header_compiler=no
44347 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44348 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44349 +echo "${ECHO_T}$ac_header_compiler" >&6
44351 +# Is the header present?
44352 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
44353 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44354 +cat >conftest.$ac_ext <<_ACEOF
44357 +cat confdefs.h >>conftest.$ac_ext
44358 +cat >>conftest.$ac_ext <<_ACEOF
44359 +/* end confdefs.h. */
44360 +#include <$ac_header>
44362 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44363 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44365 + grep -v '^ *+' conftest.er1 >conftest.err
44366 + rm -f conftest.er1
44367 + cat conftest.err >&5
44368 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44369 + (exit $ac_status); } >/dev/null; then
44370 + if test -s conftest.err; then
44371 + ac_cpp_err=$ac_c_preproc_warn_flag
44372 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44379 +if test -z "$ac_cpp_err"; then
44380 + ac_header_preproc=yes
44382 + echo "$as_me: failed program was:" >&5
44383 +sed 's/^/| /' conftest.$ac_ext >&5
44385 + ac_header_preproc=no
44387 +rm -f conftest.err conftest.$ac_ext
44388 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44389 +echo "${ECHO_T}$ac_header_preproc" >&6
44391 +# So? What about this header?
44392 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44394 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44395 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44396 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44397 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44398 + ac_header_preproc=yes
44401 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44402 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44403 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44404 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44405 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44406 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44407 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44408 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44409 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44410 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44411 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44412 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44415 +## ------------------------------------------ ##
44416 +## Report this to the AC_PACKAGE_NAME lists. ##
44417 +## ------------------------------------------ ##
44420 + sed "s/^/$as_me: WARNING: /" >&2
44423 +echo "$as_me:$LINENO: checking for $ac_header" >&5
44424 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44425 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44426 + echo $ECHO_N "(cached) $ECHO_C" >&6
44428 + eval "$as_ac_Header=\$ac_header_preproc"
44430 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44431 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44434 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
44435 + cat >>confdefs.h <<_ACEOF
44436 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44445 +for ac_header in com_err.h
44447 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44448 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44449 + echo "$as_me:$LINENO: checking for $ac_header" >&5
44450 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44451 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44452 + echo $ECHO_N "(cached) $ECHO_C" >&6
44454 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44455 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44457 + # Is the header compilable?
44458 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
44459 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44460 +cat >conftest.$ac_ext <<_ACEOF
44463 +cat confdefs.h >>conftest.$ac_ext
44464 +cat >>conftest.$ac_ext <<_ACEOF
44465 +/* end confdefs.h. */
44466 +$ac_includes_default
44467 +#include <$ac_header>
44469 +rm -f conftest.$ac_objext
44470 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44471 + (eval $ac_compile) 2>conftest.er1
44473 + grep -v '^ *+' conftest.er1 >conftest.err
44474 + rm -f conftest.er1
44475 + cat conftest.err >&5
44476 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44477 + (exit $ac_status); } &&
44478 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44479 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44480 + (eval $ac_try) 2>&5
44482 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44483 + (exit $ac_status); }; } &&
44484 + { ac_try='test -s conftest.$ac_objext'
44485 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44486 + (eval $ac_try) 2>&5
44488 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44489 + (exit $ac_status); }; }; then
44490 + ac_header_compiler=yes
44492 + echo "$as_me: failed program was:" >&5
44493 +sed 's/^/| /' conftest.$ac_ext >&5
44495 +ac_header_compiler=no
44497 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44498 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44499 +echo "${ECHO_T}$ac_header_compiler" >&6
44501 +# Is the header present?
44502 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
44503 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44504 +cat >conftest.$ac_ext <<_ACEOF
44507 +cat confdefs.h >>conftest.$ac_ext
44508 +cat >>conftest.$ac_ext <<_ACEOF
44509 +/* end confdefs.h. */
44510 +#include <$ac_header>
44512 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44513 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44515 + grep -v '^ *+' conftest.er1 >conftest.err
44516 + rm -f conftest.er1
44517 + cat conftest.err >&5
44518 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44519 + (exit $ac_status); } >/dev/null; then
44520 + if test -s conftest.err; then
44521 + ac_cpp_err=$ac_c_preproc_warn_flag
44522 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44529 +if test -z "$ac_cpp_err"; then
44530 + ac_header_preproc=yes
44532 + echo "$as_me: failed program was:" >&5
44533 +sed 's/^/| /' conftest.$ac_ext >&5
44535 + ac_header_preproc=no
44537 +rm -f conftest.err conftest.$ac_ext
44538 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44539 +echo "${ECHO_T}$ac_header_preproc" >&6
44541 +# So? What about this header?
44542 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44544 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44545 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44546 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44547 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44548 + ac_header_preproc=yes
44551 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44552 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44553 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44554 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44555 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44556 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44557 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44558 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44559 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44560 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44561 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44562 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44565 +## ------------------------------------------ ##
44566 +## Report this to the AC_PACKAGE_NAME lists. ##
44567 +## ------------------------------------------ ##
44570 + sed "s/^/$as_me: WARNING: /" >&2
44573 +echo "$as_me:$LINENO: checking for $ac_header" >&5
44574 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44575 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44576 + echo $ECHO_N "(cached) $ECHO_C" >&6
44578 + eval "$as_ac_Header=\$ac_header_preproc"
44580 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44581 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44584 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
44585 + cat >>confdefs.h <<_ACEOF
44586 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44595 +# Solaris requires -lintl if you want strerror (which calls dgettext)
44596 +# to return localized messages.
44598 +echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
44599 +echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
44600 +if test "${ac_cv_lib_intl_dgettext+set}" = set; then
44601 + echo $ECHO_N "(cached) $ECHO_C" >&6
44603 + ac_check_lib_save_LIBS=$LIBS
44604 +LIBS="-lintl $LIBS"
44605 +cat >conftest.$ac_ext <<_ACEOF
44608 +cat confdefs.h >>conftest.$ac_ext
44609 +cat >>conftest.$ac_ext <<_ACEOF
44610 +/* end confdefs.h. */
44612 +/* Override any gcc2 internal prototype to avoid an error. */
44613 +#ifdef __cplusplus
44616 +/* We use char because int might match the return type of a gcc2
44617 + builtin and then its argument prototype would still apply. */
44627 +rm -f conftest.$ac_objext conftest$ac_exeext
44628 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44629 + (eval $ac_link) 2>conftest.er1
44631 + grep -v '^ *+' conftest.er1 >conftest.err
44632 + rm -f conftest.er1
44633 + cat conftest.err >&5
44634 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44635 + (exit $ac_status); } &&
44636 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44637 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44638 + (eval $ac_try) 2>&5
44640 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44641 + (exit $ac_status); }; } &&
44642 + { ac_try='test -s conftest$ac_exeext'
44643 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44644 + (eval $ac_try) 2>&5
44646 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44647 + (exit $ac_status); }; }; then
44648 + ac_cv_lib_intl_dgettext=yes
44650 + echo "$as_me: failed program was:" >&5
44651 +sed 's/^/| /' conftest.$ac_ext >&5
44653 +ac_cv_lib_intl_dgettext=no
44655 +rm -f conftest.err conftest.$ac_objext \
44656 + conftest$ac_exeext conftest.$ac_ext
44657 +LIBS=$ac_check_lib_save_LIBS
44659 +echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
44660 +echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
44661 +if test $ac_cv_lib_intl_dgettext = yes; then
44662 + cat >>confdefs.h <<_ACEOF
44663 +#define HAVE_LIBINTL 1
44666 + LIBS="-lintl $LIBS"
44671 +echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
44672 +echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
44673 +if test "${emacs_cv_localtime_cache+set}" = set; then
44674 + echo $ECHO_N "(cached) $ECHO_C" >&6
44676 + if test x$ac_cv_func_tzset = xyes; then
44677 +if test "$cross_compiling" = yes; then
44678 + # If we have tzset, assume the worst when cross-compiling.
44679 +emacs_cv_localtime_cache=yes
44681 + cat >conftest.$ac_ext <<_ACEOF
44684 +cat confdefs.h >>conftest.$ac_ext
44685 +cat >>conftest.$ac_ext <<_ACEOF
44686 +/* end confdefs.h. */
44688 +extern char **environ;
44691 + char **from, **to;
44692 + for (to = from = environ; (*to = *from); from++)
44693 + if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
44696 +char TZ_GMT0[] = "TZ=GMT0";
44697 +char TZ_PST8[] = "TZ=PST8";
44700 + time_t now = time ((time_t *) 0);
44701 + int hour_GMT0, hour_unset;
44702 + if (putenv (TZ_GMT0) != 0)
44704 + hour_GMT0 = localtime (&now)->tm_hour;
44706 + hour_unset = localtime (&now)->tm_hour;
44707 + if (putenv (TZ_PST8) != 0)
44709 + if (localtime (&now)->tm_hour == hour_GMT0)
44712 + if (localtime (&now)->tm_hour != hour_unset)
44717 +rm -f conftest$ac_exeext
44718 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44719 + (eval $ac_link) 2>&5
44721 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44722 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44723 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44724 + (eval $ac_try) 2>&5
44726 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44727 + (exit $ac_status); }; }; then
44728 + emacs_cv_localtime_cache=no
44730 + echo "$as_me: program exited with status $ac_status" >&5
44731 +echo "$as_me: failed program was:" >&5
44732 +sed 's/^/| /' conftest.$ac_ext >&5
44734 +( exit $ac_status )
44735 +emacs_cv_localtime_cache=yes
44737 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44740 + # If we lack tzset, report that localtime does not cache TZ,
44741 + # since we can't invalidate the cache if we don't have tzset.
44742 + emacs_cv_localtime_cache=no
44745 +echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
44746 +echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
44747 +if test $emacs_cv_localtime_cache = yes; then
44748 + cat >>confdefs.h <<\_ACEOF
44749 +#define LOCALTIME_CACHE 1
44754 +if test "x$HAVE_TIMEVAL" = xyes; then
44756 +for ac_func in gettimeofday
44758 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44759 +echo "$as_me:$LINENO: checking for $ac_func" >&5
44760 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44761 +if eval "test \"\${$as_ac_var+set}\" = set"; then
44762 + echo $ECHO_N "(cached) $ECHO_C" >&6
44764 + cat >conftest.$ac_ext <<_ACEOF
44767 +cat confdefs.h >>conftest.$ac_ext
44768 +cat >>conftest.$ac_ext <<_ACEOF
44769 +/* end confdefs.h. */
44770 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44771 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
44772 +#define $ac_func innocuous_$ac_func
44774 +/* System header to define __stub macros and hopefully few prototypes,
44775 + which can conflict with char $ac_func (); below.
44776 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44777 + <limits.h> exists even on freestanding compilers. */
44780 +# include <limits.h>
44782 +# include <assert.h>
44787 +/* Override any gcc2 internal prototype to avoid an error. */
44788 +#ifdef __cplusplus
44792 +/* We use char because int might match the return type of a gcc2
44793 + builtin and then its argument prototype would still apply. */
44795 +/* The GNU C library defines this for functions which it implements
44796 + to always fail with ENOSYS. Some functions are actually named
44797 + something starting with __ and the normal name is an alias. */
44798 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44801 +char (*f) () = $ac_func;
44803 +#ifdef __cplusplus
44810 +return f != $ac_func;
44815 +rm -f conftest.$ac_objext conftest$ac_exeext
44816 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44817 + (eval $ac_link) 2>conftest.er1
44819 + grep -v '^ *+' conftest.er1 >conftest.err
44820 + rm -f conftest.er1
44821 + cat conftest.err >&5
44822 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44823 + (exit $ac_status); } &&
44824 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44825 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44826 + (eval $ac_try) 2>&5
44828 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44829 + (exit $ac_status); }; } &&
44830 + { ac_try='test -s conftest$ac_exeext'
44831 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44832 + (eval $ac_try) 2>&5
44834 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44835 + (exit $ac_status); }; }; then
44836 + eval "$as_ac_var=yes"
44838 + echo "$as_me: failed program was:" >&5
44839 +sed 's/^/| /' conftest.$ac_ext >&5
44841 +eval "$as_ac_var=no"
44843 +rm -f conftest.err conftest.$ac_objext \
44844 + conftest$ac_exeext conftest.$ac_ext
44846 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44847 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44848 +if test `eval echo '${'$as_ac_var'}'` = yes; then
44849 + cat >>confdefs.h <<_ACEOF
44850 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44856 + echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
44857 +echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
44858 +if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
44859 + echo $ECHO_N "(cached) $ECHO_C" >&6
44861 + cat >conftest.$ac_ext <<_ACEOF
44864 +cat confdefs.h >>conftest.$ac_ext
44865 +cat >>conftest.$ac_ext <<_ACEOF
44866 +/* end confdefs.h. */
44868 +#ifdef TIME_WITH_SYS_TIME
44869 +#include <sys/time.h>
44872 +#ifdef HAVE_SYS_TIME_H
44873 +#include <sys/time.h>
44881 +struct timeval time;
44882 + gettimeofday (&time, 0);
44887 +rm -f conftest.$ac_objext
44888 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44889 + (eval $ac_compile) 2>conftest.er1
44891 + grep -v '^ *+' conftest.er1 >conftest.err
44892 + rm -f conftest.er1
44893 + cat conftest.err >&5
44894 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44895 + (exit $ac_status); } &&
44896 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44897 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44898 + (eval $ac_try) 2>&5
44900 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44901 + (exit $ac_status); }; } &&
44902 + { ac_try='test -s conftest.$ac_objext'
44903 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44904 + (eval $ac_try) 2>&5
44906 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44907 + (exit $ac_status); }; }; then
44908 + emacs_cv_gettimeofday_two_arguments=yes
44910 + echo "$as_me: failed program was:" >&5
44911 +sed 's/^/| /' conftest.$ac_ext >&5
44913 +emacs_cv_gettimeofday_two_arguments=no
44915 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44917 +echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
44918 +echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
44919 + if test $emacs_cv_gettimeofday_two_arguments = no; then
44920 + cat >>confdefs.h <<\_ACEOF
44921 +#define GETTIMEOFDAY_ONE_ARGUMENT 1
44927 +if test "$ac_cv_func_gettimeofday" = yes; then
44928 + echo "$as_me:$LINENO: checking for struct timezone" >&5
44929 +echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
44930 +if test "${emacs_cv_struct_timezone+set}" = set; then
44931 + echo $ECHO_N "(cached) $ECHO_C" >&6
44933 + cat >conftest.$ac_ext <<_ACEOF
44936 +cat confdefs.h >>conftest.$ac_ext
44937 +cat >>conftest.$ac_ext <<_ACEOF
44938 +/* end confdefs.h. */
44939 +#include <sys/time.h>
44943 +struct timezone tz;
44948 +rm -f conftest.$ac_objext
44949 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44950 + (eval $ac_compile) 2>conftest.er1
44952 + grep -v '^ *+' conftest.er1 >conftest.err
44953 + rm -f conftest.er1
44954 + cat conftest.err >&5
44955 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44956 + (exit $ac_status); } &&
44957 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44958 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44959 + (eval $ac_try) 2>&5
44961 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44962 + (exit $ac_status); }; } &&
44963 + { ac_try='test -s conftest.$ac_objext'
44964 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44965 + (eval $ac_try) 2>&5
44967 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
44968 + (exit $ac_status); }; }; then
44969 + if test "$cross_compiling" = yes; then
44970 + emacs_cv_struct_timezone=yes
44972 + cat >conftest.$ac_ext <<_ACEOF
44975 +cat confdefs.h >>conftest.$ac_ext
44976 +cat >>conftest.$ac_ext <<_ACEOF
44977 +/* end confdefs.h. */
44979 +#ifdef TIME_WITH_SYS_TIME
44980 +#include <sys/time.h>
44983 +#ifdef HAVE_SYS_TIME_H
44984 +#include <sys/time.h>
44990 + struct timeval time;
44991 + struct timezone dummy;
44992 + exit (gettimeofday (&time, &dummy));
44995 +rm -f conftest$ac_exeext
44996 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44997 + (eval $ac_link) 2>&5
44999 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45000 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45001 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45002 + (eval $ac_try) 2>&5
45004 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45005 + (exit $ac_status); }; }; then
45006 + emacs_cv_struct_timezone=yes
45008 + echo "$as_me: program exited with status $ac_status" >&5
45009 +echo "$as_me: failed program was:" >&5
45010 +sed 's/^/| /' conftest.$ac_ext >&5
45012 +( exit $ac_status )
45013 +emacs_cv_struct_timezone=no
45015 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45018 + echo "$as_me: failed program was:" >&5
45019 +sed 's/^/| /' conftest.$ac_ext >&5
45021 +emacs_cv_struct_timezone=no
45023 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45025 +echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
45026 +echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
45030 +echo "$as_me:$LINENO: checking for socket" >&5
45031 +echo $ECHO_N "checking for socket... $ECHO_C" >&6
45032 +if test "${ac_cv_func_socket+set}" = set; then
45033 + echo $ECHO_N "(cached) $ECHO_C" >&6
45035 + cat >conftest.$ac_ext <<_ACEOF
45038 +cat confdefs.h >>conftest.$ac_ext
45039 +cat >>conftest.$ac_ext <<_ACEOF
45040 +/* end confdefs.h. */
45041 +/* Define socket to an innocuous variant, in case <limits.h> declares socket.
45042 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
45043 +#define socket innocuous_socket
45045 +/* System header to define __stub macros and hopefully few prototypes,
45046 + which can conflict with char socket (); below.
45047 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45048 + <limits.h> exists even on freestanding compilers. */
45051 +# include <limits.h>
45053 +# include <assert.h>
45058 +/* Override any gcc2 internal prototype to avoid an error. */
45059 +#ifdef __cplusplus
45063 +/* We use char because int might match the return type of a gcc2
45064 + builtin and then its argument prototype would still apply. */
45066 +/* The GNU C library defines this for functions which it implements
45067 + to always fail with ENOSYS. Some functions are actually named
45068 + something starting with __ and the normal name is an alias. */
45069 +#if defined (__stub_socket) || defined (__stub___socket)
45072 +char (*f) () = socket;
45074 +#ifdef __cplusplus
45081 +return f != socket;
45086 +rm -f conftest.$ac_objext conftest$ac_exeext
45087 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45088 + (eval $ac_link) 2>conftest.er1
45090 + grep -v '^ *+' conftest.er1 >conftest.err
45091 + rm -f conftest.er1
45092 + cat conftest.err >&5
45093 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45094 + (exit $ac_status); } &&
45095 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45096 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45097 + (eval $ac_try) 2>&5
45099 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45100 + (exit $ac_status); }; } &&
45101 + { ac_try='test -s conftest$ac_exeext'
45102 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45103 + (eval $ac_try) 2>&5
45105 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45106 + (exit $ac_status); }; }; then
45107 + ac_cv_func_socket=yes
45109 + echo "$as_me: failed program was:" >&5
45110 +sed 's/^/| /' conftest.$ac_ext >&5
45112 +ac_cv_func_socket=no
45114 +rm -f conftest.err conftest.$ac_objext \
45115 + conftest$ac_exeext conftest.$ac_ext
45117 +echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
45118 +echo "${ECHO_T}$ac_cv_func_socket" >&6
45119 +if test $ac_cv_func_socket = yes; then
45125 +if test $ok_so_far = yes; then
45126 + if test "${ac_cv_header_netinet_in_h+set}" = set; then
45127 + echo "$as_me:$LINENO: checking for netinet/in.h" >&5
45128 +echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
45129 +if test "${ac_cv_header_netinet_in_h+set}" = set; then
45130 + echo $ECHO_N "(cached) $ECHO_C" >&6
45132 +echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
45133 +echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
45135 + # Is the header compilable?
45136 +echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
45137 +echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
45138 +cat >conftest.$ac_ext <<_ACEOF
45141 +cat confdefs.h >>conftest.$ac_ext
45142 +cat >>conftest.$ac_ext <<_ACEOF
45143 +/* end confdefs.h. */
45144 +$ac_includes_default
45145 +#include <netinet/in.h>
45147 +rm -f conftest.$ac_objext
45148 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45149 + (eval $ac_compile) 2>conftest.er1
45151 + grep -v '^ *+' conftest.er1 >conftest.err
45152 + rm -f conftest.er1
45153 + cat conftest.err >&5
45154 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45155 + (exit $ac_status); } &&
45156 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45157 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45158 + (eval $ac_try) 2>&5
45160 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45161 + (exit $ac_status); }; } &&
45162 + { ac_try='test -s conftest.$ac_objext'
45163 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45164 + (eval $ac_try) 2>&5
45166 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45167 + (exit $ac_status); }; }; then
45168 + ac_header_compiler=yes
45170 + echo "$as_me: failed program was:" >&5
45171 +sed 's/^/| /' conftest.$ac_ext >&5
45173 +ac_header_compiler=no
45175 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45176 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45177 +echo "${ECHO_T}$ac_header_compiler" >&6
45179 +# Is the header present?
45180 +echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
45181 +echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
45182 +cat >conftest.$ac_ext <<_ACEOF
45185 +cat confdefs.h >>conftest.$ac_ext
45186 +cat >>conftest.$ac_ext <<_ACEOF
45187 +/* end confdefs.h. */
45188 +#include <netinet/in.h>
45190 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45191 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45193 + grep -v '^ *+' conftest.er1 >conftest.err
45194 + rm -f conftest.er1
45195 + cat conftest.err >&5
45196 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45197 + (exit $ac_status); } >/dev/null; then
45198 + if test -s conftest.err; then
45199 + ac_cpp_err=$ac_c_preproc_warn_flag
45200 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45207 +if test -z "$ac_cpp_err"; then
45208 + ac_header_preproc=yes
45210 + echo "$as_me: failed program was:" >&5
45211 +sed 's/^/| /' conftest.$ac_ext >&5
45213 + ac_header_preproc=no
45215 +rm -f conftest.err conftest.$ac_ext
45216 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45217 +echo "${ECHO_T}$ac_header_preproc" >&6
45219 +# So? What about this header?
45220 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45222 + { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
45223 +echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45224 + { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
45225 +echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
45226 + ac_header_preproc=yes
45229 + { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
45230 +echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
45231 + { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
45232 +echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
45233 + { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
45234 +echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
45235 + { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
45236 +echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
45237 + { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
45238 +echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
45239 + { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
45240 +echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
45243 +## ------------------------------------------ ##
45244 +## Report this to the AC_PACKAGE_NAME lists. ##
45245 +## ------------------------------------------ ##
45248 + sed "s/^/$as_me: WARNING: /" >&2
45251 +echo "$as_me:$LINENO: checking for netinet/in.h" >&5
45252 +echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
45253 +if test "${ac_cv_header_netinet_in_h+set}" = set; then
45254 + echo $ECHO_N "(cached) $ECHO_C" >&6
45256 + ac_cv_header_netinet_in_h=$ac_header_preproc
45258 +echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
45259 +echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
45262 +if test $ac_cv_header_netinet_in_h = yes; then
45270 +if test $ok_so_far = yes; then
45271 + if test "${ac_cv_header_arpa_inet_h+set}" = set; then
45272 + echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
45273 +echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
45274 +if test "${ac_cv_header_arpa_inet_h+set}" = set; then
45275 + echo $ECHO_N "(cached) $ECHO_C" >&6
45277 +echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
45278 +echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
45280 + # Is the header compilable?
45281 +echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
45282 +echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
45283 +cat >conftest.$ac_ext <<_ACEOF
45286 +cat confdefs.h >>conftest.$ac_ext
45287 +cat >>conftest.$ac_ext <<_ACEOF
45288 +/* end confdefs.h. */
45289 +$ac_includes_default
45290 +#include <arpa/inet.h>
45292 +rm -f conftest.$ac_objext
45293 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45294 + (eval $ac_compile) 2>conftest.er1
45296 + grep -v '^ *+' conftest.er1 >conftest.err
45297 + rm -f conftest.er1
45298 + cat conftest.err >&5
45299 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45300 + (exit $ac_status); } &&
45301 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45302 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45303 + (eval $ac_try) 2>&5
45305 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45306 + (exit $ac_status); }; } &&
45307 + { ac_try='test -s conftest.$ac_objext'
45308 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45309 + (eval $ac_try) 2>&5
45311 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45312 + (exit $ac_status); }; }; then
45313 + ac_header_compiler=yes
45315 + echo "$as_me: failed program was:" >&5
45316 +sed 's/^/| /' conftest.$ac_ext >&5
45318 +ac_header_compiler=no
45320 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45321 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45322 +echo "${ECHO_T}$ac_header_compiler" >&6
45324 +# Is the header present?
45325 +echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
45326 +echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
45327 +cat >conftest.$ac_ext <<_ACEOF
45330 +cat confdefs.h >>conftest.$ac_ext
45331 +cat >>conftest.$ac_ext <<_ACEOF
45332 +/* end confdefs.h. */
45333 +#include <arpa/inet.h>
45335 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45336 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45338 + grep -v '^ *+' conftest.er1 >conftest.err
45339 + rm -f conftest.er1
45340 + cat conftest.err >&5
45341 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45342 + (exit $ac_status); } >/dev/null; then
45343 + if test -s conftest.err; then
45344 + ac_cpp_err=$ac_c_preproc_warn_flag
45345 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45352 +if test -z "$ac_cpp_err"; then
45353 + ac_header_preproc=yes
45355 + echo "$as_me: failed program was:" >&5
45356 +sed 's/^/| /' conftest.$ac_ext >&5
45358 + ac_header_preproc=no
45360 +rm -f conftest.err conftest.$ac_ext
45361 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45362 +echo "${ECHO_T}$ac_header_preproc" >&6
45364 +# So? What about this header?
45365 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45367 + { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
45368 +echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45369 + { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
45370 +echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
45371 + ac_header_preproc=yes
45374 + { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
45375 +echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
45376 + { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
45377 +echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
45378 + { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
45379 +echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
45380 + { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
45381 +echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
45382 + { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
45383 +echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
45384 + { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
45385 +echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
45388 +## ------------------------------------------ ##
45389 +## Report this to the AC_PACKAGE_NAME lists. ##
45390 +## ------------------------------------------ ##
45393 + sed "s/^/$as_me: WARNING: /" >&2
45396 +echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
45397 +echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
45398 +if test "${ac_cv_header_arpa_inet_h+set}" = set; then
45399 + echo $ECHO_N "(cached) $ECHO_C" >&6
45401 + ac_cv_header_arpa_inet_h=$ac_header_preproc
45403 +echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
45404 +echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
45407 +if test $ac_cv_header_arpa_inet_h = yes; then
45415 +if test $ok_so_far = yes; then
45416 + cat >>confdefs.h <<\_ACEOF
45417 +#define HAVE_INET_SOCKETS 1
45422 +if test -f /usr/lpp/X11/bin/smt.exp; then
45423 + cat >>confdefs.h <<\_ACEOF
45424 +#define HAVE_AIX_SMT_EXP 1
45429 +echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
45430 +echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
45431 +if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
45432 + echo "$as_me:$LINENO: result: yes" >&5
45433 +echo "${ECHO_T}yes" >&6
45434 + cat >>confdefs.h <<\_ACEOF
45435 +#define HAVE_DEV_PTMX 1
45439 + echo "$as_me:$LINENO: result: no" >&5
45440 +echo "${ECHO_T}no" >&6
45443 +echo "$as_me:$LINENO: checking for pid_t" >&5
45444 +echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
45445 +if test "${ac_cv_type_pid_t+set}" = set; then
45446 + echo $ECHO_N "(cached) $ECHO_C" >&6
45448 + cat >conftest.$ac_ext <<_ACEOF
45451 +cat confdefs.h >>conftest.$ac_ext
45452 +cat >>conftest.$ac_ext <<_ACEOF
45453 +/* end confdefs.h. */
45454 +$ac_includes_default
45460 +if (sizeof (pid_t))
45466 +rm -f conftest.$ac_objext
45467 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45468 + (eval $ac_compile) 2>conftest.er1
45470 + grep -v '^ *+' conftest.er1 >conftest.err
45471 + rm -f conftest.er1
45472 + cat conftest.err >&5
45473 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45474 + (exit $ac_status); } &&
45475 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45476 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45477 + (eval $ac_try) 2>&5
45479 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45480 + (exit $ac_status); }; } &&
45481 + { ac_try='test -s conftest.$ac_objext'
45482 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45483 + (eval $ac_try) 2>&5
45485 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45486 + (exit $ac_status); }; }; then
45487 + ac_cv_type_pid_t=yes
45489 + echo "$as_me: failed program was:" >&5
45490 +sed 's/^/| /' conftest.$ac_ext >&5
45492 +ac_cv_type_pid_t=no
45494 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45496 +echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
45497 +echo "${ECHO_T}$ac_cv_type_pid_t" >&6
45498 +if test $ac_cv_type_pid_t = yes; then
45502 +cat >>confdefs.h <<_ACEOF
45510 +for ac_header in unistd.h vfork.h
45512 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45513 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
45514 + echo "$as_me:$LINENO: checking for $ac_header" >&5
45515 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45516 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
45517 + echo $ECHO_N "(cached) $ECHO_C" >&6
45519 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45520 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45522 + # Is the header compilable?
45523 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
45524 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45525 +cat >conftest.$ac_ext <<_ACEOF
45528 +cat confdefs.h >>conftest.$ac_ext
45529 +cat >>conftest.$ac_ext <<_ACEOF
45530 +/* end confdefs.h. */
45531 +$ac_includes_default
45532 +#include <$ac_header>
45534 +rm -f conftest.$ac_objext
45535 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45536 + (eval $ac_compile) 2>conftest.er1
45538 + grep -v '^ *+' conftest.er1 >conftest.err
45539 + rm -f conftest.er1
45540 + cat conftest.err >&5
45541 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45542 + (exit $ac_status); } &&
45543 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45544 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45545 + (eval $ac_try) 2>&5
45547 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548 + (exit $ac_status); }; } &&
45549 + { ac_try='test -s conftest.$ac_objext'
45550 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45551 + (eval $ac_try) 2>&5
45553 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45554 + (exit $ac_status); }; }; then
45555 + ac_header_compiler=yes
45557 + echo "$as_me: failed program was:" >&5
45558 +sed 's/^/| /' conftest.$ac_ext >&5
45560 +ac_header_compiler=no
45562 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45563 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45564 +echo "${ECHO_T}$ac_header_compiler" >&6
45566 +# Is the header present?
45567 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
45568 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45569 +cat >conftest.$ac_ext <<_ACEOF
45572 +cat confdefs.h >>conftest.$ac_ext
45573 +cat >>conftest.$ac_ext <<_ACEOF
45574 +/* end confdefs.h. */
45575 +#include <$ac_header>
45577 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45578 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45580 + grep -v '^ *+' conftest.er1 >conftest.err
45581 + rm -f conftest.er1
45582 + cat conftest.err >&5
45583 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45584 + (exit $ac_status); } >/dev/null; then
45585 + if test -s conftest.err; then
45586 + ac_cpp_err=$ac_c_preproc_warn_flag
45587 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45594 +if test -z "$ac_cpp_err"; then
45595 + ac_header_preproc=yes
45597 + echo "$as_me: failed program was:" >&5
45598 +sed 's/^/| /' conftest.$ac_ext >&5
45600 + ac_header_preproc=no
45602 +rm -f conftest.err conftest.$ac_ext
45603 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45604 +echo "${ECHO_T}$ac_header_preproc" >&6
45606 +# So? What about this header?
45607 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45609 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45610 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45611 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45612 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45613 + ac_header_preproc=yes
45616 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45617 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45618 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45619 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45620 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45621 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45622 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45623 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45624 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45625 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45626 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45627 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45630 +## ------------------------------------------ ##
45631 +## Report this to the AC_PACKAGE_NAME lists. ##
45632 +## ------------------------------------------ ##
45635 + sed "s/^/$as_me: WARNING: /" >&2
45638 +echo "$as_me:$LINENO: checking for $ac_header" >&5
45639 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45640 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
45641 + echo $ECHO_N "(cached) $ECHO_C" >&6
45643 + eval "$as_ac_Header=\$ac_header_preproc"
45645 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45646 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45649 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
45650 + cat >>confdefs.h <<_ACEOF
45651 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45660 +for ac_func in fork vfork
45662 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45663 +echo "$as_me:$LINENO: checking for $ac_func" >&5
45664 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45665 +if eval "test \"\${$as_ac_var+set}\" = set"; then
45666 + echo $ECHO_N "(cached) $ECHO_C" >&6
45668 + cat >conftest.$ac_ext <<_ACEOF
45671 +cat confdefs.h >>conftest.$ac_ext
45672 +cat >>conftest.$ac_ext <<_ACEOF
45673 +/* end confdefs.h. */
45674 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45675 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
45676 +#define $ac_func innocuous_$ac_func
45678 +/* System header to define __stub macros and hopefully few prototypes,
45679 + which can conflict with char $ac_func (); below.
45680 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45681 + <limits.h> exists even on freestanding compilers. */
45684 +# include <limits.h>
45686 +# include <assert.h>
45691 +/* Override any gcc2 internal prototype to avoid an error. */
45692 +#ifdef __cplusplus
45696 +/* We use char because int might match the return type of a gcc2
45697 + builtin and then its argument prototype would still apply. */
45699 +/* The GNU C library defines this for functions which it implements
45700 + to always fail with ENOSYS. Some functions are actually named
45701 + something starting with __ and the normal name is an alias. */
45702 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45705 +char (*f) () = $ac_func;
45707 +#ifdef __cplusplus
45714 +return f != $ac_func;
45719 +rm -f conftest.$ac_objext conftest$ac_exeext
45720 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45721 + (eval $ac_link) 2>conftest.er1
45723 + grep -v '^ *+' conftest.er1 >conftest.err
45724 + rm -f conftest.er1
45725 + cat conftest.err >&5
45726 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45727 + (exit $ac_status); } &&
45728 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45729 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45730 + (eval $ac_try) 2>&5
45732 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45733 + (exit $ac_status); }; } &&
45734 + { ac_try='test -s conftest$ac_exeext'
45735 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45736 + (eval $ac_try) 2>&5
45738 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45739 + (exit $ac_status); }; }; then
45740 + eval "$as_ac_var=yes"
45742 + echo "$as_me: failed program was:" >&5
45743 +sed 's/^/| /' conftest.$ac_ext >&5
45745 +eval "$as_ac_var=no"
45747 +rm -f conftest.err conftest.$ac_objext \
45748 + conftest$ac_exeext conftest.$ac_ext
45750 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45751 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45752 +if test `eval echo '${'$as_ac_var'}'` = yes; then
45753 + cat >>confdefs.h <<_ACEOF
45754 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45760 +if test "x$ac_cv_func_fork" = xyes; then
45761 + echo "$as_me:$LINENO: checking for working fork" >&5
45762 +echo $ECHO_N "checking for working fork... $ECHO_C" >&6
45763 +if test "${ac_cv_func_fork_works+set}" = set; then
45764 + echo $ECHO_N "(cached) $ECHO_C" >&6
45766 + if test "$cross_compiling" = yes; then
45767 + ac_cv_func_fork_works=cross
45769 + cat >conftest.$ac_ext <<_ACEOF
45770 +/* By Ruediger Kuhlmann. */
45771 + #include <sys/types.h>
45772 + #if HAVE_UNISTD_H
45773 + # include <unistd.h>
45775 + /* Some systems only have a dummy stub for fork() */
45783 +rm -f conftest$ac_exeext
45784 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45785 + (eval $ac_link) 2>&5
45787 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45788 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45789 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45790 + (eval $ac_try) 2>&5
45792 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45793 + (exit $ac_status); }; }; then
45794 + ac_cv_func_fork_works=yes
45796 + echo "$as_me: program exited with status $ac_status" >&5
45797 +echo "$as_me: failed program was:" >&5
45798 +sed 's/^/| /' conftest.$ac_ext >&5
45800 +( exit $ac_status )
45801 +ac_cv_func_fork_works=no
45803 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45806 +echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
45807 +echo "${ECHO_T}$ac_cv_func_fork_works" >&6
45810 + ac_cv_func_fork_works=$ac_cv_func_fork
45812 +if test "x$ac_cv_func_fork_works" = xcross; then
45814 + *-*-amigaos* | *-*-msdosdjgpp*)
45815 + # Override, as these systems have only a dummy fork() stub
45816 + ac_cv_func_fork_works=no
45819 + ac_cv_func_fork_works=yes
45822 + { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
45823 +echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
45825 +ac_cv_func_vfork_works=$ac_cv_func_vfork
45826 +if test "x$ac_cv_func_vfork" = xyes; then
45827 + echo "$as_me:$LINENO: checking for working vfork" >&5
45828 +echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
45829 +if test "${ac_cv_func_vfork_works+set}" = set; then
45830 + echo $ECHO_N "(cached) $ECHO_C" >&6
45832 + if test "$cross_compiling" = yes; then
45833 + ac_cv_func_vfork_works=cross
45835 + cat >conftest.$ac_ext <<_ACEOF
45838 +cat confdefs.h >>conftest.$ac_ext
45839 +cat >>conftest.$ac_ext <<_ACEOF
45840 +/* end confdefs.h. */
45841 +/* Thanks to Paul Eggert for this test. */
45842 +#include <stdio.h>
45843 +#include <stdlib.h>
45844 +#include <sys/types.h>
45845 +#include <sys/stat.h>
45846 +#include <sys/wait.h>
45848 +# include <unistd.h>
45851 +# include <vfork.h>
45853 +/* On some sparc systems, changes by the child to local and incoming
45854 + argument registers are propagated back to the parent. The compiler
45855 + is told about this with #include <vfork.h>, but some compilers
45856 + (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
45857 + static variable whose address is put into a register that is
45858 + clobbered by the vfork. */
45860 +#ifdef __cplusplus
45861 +sparc_address_test (int arg)
45863 +sparc_address_test (arg) int arg;
45866 + static pid_t child;
45868 + child = vfork ();
45870 + perror ("vfork");
45875 + write(-1, "", 0);
45884 + pid_t parent = getpid ();
45887 + sparc_address_test (0);
45889 + child = vfork ();
45891 + if (child == 0) {
45892 + /* Here is another test for sparc vfork register problems. This
45893 + test uses lots of local variables, at least as many local
45894 + variables as main has allocated so far including compiler
45895 + temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
45896 + 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
45897 + reuse the register of parent for one of the local variables,
45898 + since it will think that parent can't possibly be used any more
45899 + in this routine. Assigning to the local variable will thus
45900 + munge parent in the parent process. */
45902 + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
45903 + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
45904 + /* Convince the compiler that p..p7 are live; otherwise, it might
45905 + use the same hardware register for all 8 local variables. */
45906 + if (p != p1 || p != p2 || p != p3 || p != p4
45907 + || p != p5 || p != p6 || p != p7)
45910 + /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
45911 + from child file descriptors. If the child closes a descriptor
45912 + before it execs or exits, this munges the parent's descriptor
45913 + as well. Test for this by closing stdout in the child. */
45914 + _exit(close(fileno(stdout)) != 0);
45919 + while (wait(&status) != child)
45922 + /* Was there some problem with vforking? */
45925 + /* Did the child fail? (This shouldn't happen.) */
45928 + /* Did the vfork/compiler bug occur? */
45929 + || parent != getpid()
45931 + /* Did the file descriptor bug occur? */
45932 + || fstat(fileno(stdout), &st) != 0
45937 +rm -f conftest$ac_exeext
45938 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45939 + (eval $ac_link) 2>&5
45941 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45942 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45943 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45944 + (eval $ac_try) 2>&5
45946 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
45947 + (exit $ac_status); }; }; then
45948 + ac_cv_func_vfork_works=yes
45950 + echo "$as_me: program exited with status $ac_status" >&5
45951 +echo "$as_me: failed program was:" >&5
45952 +sed 's/^/| /' conftest.$ac_ext >&5
45954 +( exit $ac_status )
45955 +ac_cv_func_vfork_works=no
45957 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45960 +echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
45961 +echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
45964 +if test "x$ac_cv_func_fork_works" = xcross; then
45965 + ac_cv_func_vfork_works=$ac_cv_func_vfork
45966 + { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
45967 +echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
45970 +if test "x$ac_cv_func_vfork_works" = xyes; then
45972 +cat >>confdefs.h <<\_ACEOF
45973 +#define HAVE_WORKING_VFORK 1
45978 +cat >>confdefs.h <<\_ACEOF
45979 +#define vfork fork
45983 +if test "x$ac_cv_func_fork_works" = xyes; then
45985 +cat >>confdefs.h <<\_ACEOF
45986 +#define HAVE_WORKING_FORK 1
45992 +# Fixme: This should be replaced when we have autoconf 2.14.
45993 +echo "$as_me:$LINENO: checking for size_t" >&5
45994 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6
45995 +if test "${ac_cv_type_size_t+set}" = set; then
45996 + echo $ECHO_N "(cached) $ECHO_C" >&6
45998 + cat >conftest.$ac_ext <<_ACEOF
46001 +cat confdefs.h >>conftest.$ac_ext
46002 +cat >>conftest.$ac_ext <<_ACEOF
46003 +/* end confdefs.h. */
46004 +$ac_includes_default
46010 +if (sizeof (size_t))
46016 +rm -f conftest.$ac_objext
46017 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46018 + (eval $ac_compile) 2>conftest.er1
46020 + grep -v '^ *+' conftest.er1 >conftest.err
46021 + rm -f conftest.er1
46022 + cat conftest.err >&5
46023 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
46024 + (exit $ac_status); } &&
46025 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46026 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46027 + (eval $ac_try) 2>&5
46029 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
46030 + (exit $ac_status); }; } &&
46031 + { ac_try='test -s conftest.$ac_objext'
46032 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46033 + (eval $ac_try) 2>&5
46035 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
46036 + (exit $ac_status); }; }; then
46037 + ac_cv_type_size_t=yes
46039 + echo "$as_me: failed program was:" >&5
46040 +sed 's/^/| /' conftest.$ac_ext >&5
46042 +ac_cv_type_size_t=no
46044 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46046 +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
46047 +echo "${ECHO_T}$ac_cv_type_size_t" >&6
46048 +if test $ac_cv_type_size_t = yes; then
46052 +cat >>confdefs.h <<_ACEOF
46053 +#define size_t unsigned
46059 +# Set up the CFLAGS for real compilation, so we can substitute it.
46060 +CFLAGS="$REAL_CFLAGS"
46061 +CPPFLAGS="$REAL_CPPFLAGS"
46063 +#### Find out which version of Emacs this is.
46064 +version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
46065 + | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
46066 +if test x"${version}" = x; then
46067 + { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
46068 +echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
46069 + { (exit 1); exit 1; }; }
46072 +### Specify what sort of things we'll be editing into Makefile and config.h.
46073 +### Use configuration here uncanonicalized to avoid exceeding size limits.
46106 +cat >>confdefs.h <<_ACEOF
46107 +#define EMACS_CONFIGURATION "${canonical}"
46110 +cat >>confdefs.h <<_ACEOF
46111 +#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
46114 +cat >>confdefs.h <<_ACEOF
46115 +#define config_machfile "${machfile}"
46118 +cat >>confdefs.h <<_ACEOF
46119 +#define config_opsysfile "${opsysfile}"
46122 +cat >>confdefs.h <<_ACEOF
46123 +#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
46126 +cat >>confdefs.h <<_ACEOF
46127 +#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
46130 +cat >>confdefs.h <<_ACEOF
46131 +#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
46134 +cat >>confdefs.h <<_ACEOF
46135 +#define UNEXEC_SRC ${UNEXEC_SRC}
46139 +if test "${HAVE_X_WINDOWS}" = "yes" ; then
46140 + cat >>confdefs.h <<\_ACEOF
46141 +#define HAVE_X_WINDOWS 1
46145 +if test "${USE_X_TOOLKIT}" != "none" ; then
46146 + cat >>confdefs.h <<\_ACEOF
46147 +#define USE_X_TOOLKIT 1
46151 +if test "${HAVE_X11}" = "yes" ; then
46152 + cat >>confdefs.h <<\_ACEOF
46153 +#define HAVE_X11 1
46157 +if test "${HAVE_XFREE386}" = "yes" ; then
46158 + cat >>confdefs.h <<\_ACEOF
46159 +#define HAVE_XFREE386 1
46163 +if test "${HAVE_MENUS}" = "yes" ; then
46164 + cat >>confdefs.h <<\_ACEOF
46165 +#define HAVE_MENUS 1
46169 +if test "${GNU_MALLOC}" = "yes" ; then
46170 + cat >>confdefs.h <<\_ACEOF
46171 +#define GNU_MALLOC 1
46175 +if test "${REL_ALLOC}" = "yes" ; then
46176 + cat >>confdefs.h <<\_ACEOF
46177 +#define REL_ALLOC 1
46182 +#### Report on what we decided to do.
46184 +Configured for \`${canonical}'.
46186 + Where should the build process find the source code? ${srcdir}
46187 + What operating system and machine description files should Emacs use?
46188 + \`${opsysfile}' and \`${machfile}'
46189 + What compiler should emacs be built with? ${CC} ${CFLAGS}
46190 + Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
46191 + Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
46192 + Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
46193 + What window system should Emacs use? ${window_system}
46194 + What toolkit should Emacs use? ${USE_X_TOOLKIT}"
46196 +if test -n "${x_includes}"; then
46197 +echo " Where do we find X Windows header files? ${x_includes}"
46199 +echo " Where do we find X Windows header files? Standard dirs"
46201 +if test -n "${x_libraries}"; then
46202 +echo " Where do we find X Windows libraries? ${x_libraries}"
46204 +echo " Where do we find X Windows libraries? Standard dirs"
46207 +echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
46208 +echo " Does Emacs use -lXpm? ${HAVE_XPM}"
46209 +echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
46210 +echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
46211 +echo " Does Emacs use -lungif? ${HAVE_GIF}"
46212 +echo " Does Emacs use -lpng? ${HAVE_PNG}"
46213 +echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
46216 +# Remove any trailing slashes in these variables.
46217 +test "${prefix}" != NONE &&
46218 + prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
46219 +test "${exec_prefix}" != NONE &&
46220 + exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
46222 +## Check if the C preprocessor will convert `..' to `. .'. If so, set
46223 +## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
46224 +## from Makefile.c can correctly provide the arg `-traditional' to the
46225 +## C preprocessor.
46227 +cat >conftest.$ac_ext <<_ACEOF
46230 +cat confdefs.h >>conftest.$ac_ext
46231 +cat >>conftest.$ac_ext <<_ACEOF
46232 +/* end confdefs.h. */
46235 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46236 + $EGREP "yes..yes" >/dev/null 2>&1; then
46237 + CPP_NEED_TRADITIONAL=no
46239 + CPP_NEED_TRADITIONAL=yes
46244 + ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile leim/Makefile"
46245 + ac_config_commands="$ac_config_commands default"
46246 +cat >confcache <<\_ACEOF
46247 +# This file is a shell script that caches the results of configure
46248 +# tests run on this system so they can be shared between configure
46249 +# scripts and configure runs, see configure's option --config-cache.
46250 +# It is not useful on other systems. If it contains results you don't
46251 +# want to keep, you may remove or edit it.
46253 +# config.status only pays attention to the cache file if you give it
46254 +# the --recheck option to rerun configure.
46256 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
46257 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
46258 +# following values.
46262 +# The following way of writing the cache mishandles newlines in values,
46263 +# but we know of no workaround that is simple, portable, and efficient.
46264 +# So, don't put newlines in cache variables' values.
46265 +# Ultrix sh set writes to stderr and can't be redirected directly,
46266 +# and sets the high bit in the cache file unless we assign to the vars.
46269 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
46271 + # `set' does not quote correctly, so add quotes (double-quote
46272 + # substitution turns \\\\ into \\, and sed turns \\ into \).
46275 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46278 + # `set' quotes correctly as required by POSIX, so do not add quotes.
46280 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
46287 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46289 + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46290 + : end' >>confcache
46291 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
46292 + if test -w $cache_file; then
46293 + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46294 + cat confcache >$cache_file
46296 + echo "not updating unwritable cache $cache_file"
46301 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
46302 +# Let make expand exec_prefix.
46303 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46305 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
46306 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46307 +# trailing colons and then remove the whole line if VPATH becomes empty
46308 +# (actually we leave an empty line to preserve line numbers).
46309 +if test "x$srcdir" = x.; then
46310 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
46311 +s/:*\$(srcdir):*/:/;
46312 +s/:*\${srcdir}:*/:/;
46313 +s/:*@srcdir@:*/:/;
46314 +s/^\([^=]*=[ ]*\):*/\1/;
46320 +DEFS=-DHAVE_CONFIG_H
46324 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46325 + # 1. Remove the extension, and $U if already installed.
46326 + ac_i=`echo "$ac_i" |
46327 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
46329 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46330 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46332 +LIBOBJS=$ac_libobjs
46334 +LTLIBOBJS=$ac_ltlibobjs
46338 +: ${CONFIG_STATUS=./config.status}
46339 +ac_clean_files_save=$ac_clean_files
46340 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46341 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46342 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
46343 +cat >$CONFIG_STATUS <<_ACEOF
46345 +# Generated by $as_me.
46346 +# Run this file to recreate the current configuration.
46347 +# Compiler output produced by configure, useful for debugging
46348 +# configure, is in config.log if it exists.
46351 +ac_cs_recheck=false
46352 +ac_cs_silent=false
46353 +SHELL=\${CONFIG_SHELL-$SHELL}
46356 +cat >>$CONFIG_STATUS <<\_ACEOF
46357 +## --------------------- ##
46358 +## M4sh Initialization. ##
46359 +## --------------------- ##
46361 +# Be Bourne compatible
46362 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46365 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46366 + # is contrary to our usage. Disable this feature.
46367 + alias -g '${1+"$@"}'='"$@"'
46368 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46371 +DUALCASE=1; export DUALCASE # for MKS sh
46373 +# Support unset when possible.
46374 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46381 +# Work around bugs in pre-3.0 UWIN ksh.
46382 +$as_unset ENV MAIL MAILPATH
46389 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46390 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46391 + LC_TELEPHONE LC_TIME
46393 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46394 + eval $as_var=C; export $as_var
46396 + $as_unset $as_var
46400 +# Required to use basename.
46401 +if expr a : '\(a\)' >/dev/null 2>&1; then
46407 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46408 + as_basename=basename
46410 + as_basename=false
46414 +# Name of the executable.
46415 +as_me=`$as_basename "$0" ||
46416 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46417 + X"$0" : 'X\(//\)$' \| \
46418 + X"$0" : 'X\(/\)$' \| \
46419 + . : '\(.\)' 2>/dev/null ||
46421 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46422 + /^X\/\(\/\/\)$/{ s//\1/; q; }
46423 + /^X\/\(\/\).*/{ s//\1/; q; }
46427 +# PATH needs CR, and LINENO needs CR and PATH.
46428 +# Avoid depending upon Character Ranges.
46429 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46430 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46431 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46432 +as_cr_digits='0123456789'
46433 +as_cr_alnum=$as_cr_Letters$as_cr_digits
46435 +# The user is always right.
46436 +if test "${PATH_SEPARATOR+set}" != set; then
46437 + echo "#! /bin/sh" >conf$$.sh
46438 + echo "exit 0" >>conf$$.sh
46439 + chmod +x conf$$.sh
46440 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46441 + PATH_SEPARATOR=';'
46449 + as_lineno_1=$LINENO
46450 + as_lineno_2=$LINENO
46451 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46452 + test "x$as_lineno_1" != "x$as_lineno_2" &&
46453 + test "x$as_lineno_3" = "x$as_lineno_2" || {
46454 + # Find who we are. Look in the path if we contain no path at all
46455 + # relative or not.
46457 + *[\\/]* ) as_myself=$0 ;;
46458 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46459 +for as_dir in $PATH
46462 + test -z "$as_dir" && as_dir=.
46463 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46468 + # We did not find ourselves, most probably we were run as `sh COMMAND'
46469 + # in which case we are not to be found in the path.
46470 + if test "x$as_myself" = x; then
46473 + if test ! -f "$as_myself"; then
46474 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46475 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46476 + { (exit 1); exit 1; }; }
46478 + case $CONFIG_SHELL in
46480 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46481 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46484 + test -z "$as_dir" && as_dir=.
46485 + for as_base in sh bash ksh sh5; do
46488 + if ("$as_dir/$as_base" -c '
46489 + as_lineno_1=$LINENO
46490 + as_lineno_2=$LINENO
46491 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46492 + test "x$as_lineno_1" != "x$as_lineno_2" &&
46493 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46494 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46495 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46496 + CONFIG_SHELL=$as_dir/$as_base
46497 + export CONFIG_SHELL
46498 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46506 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46507 + # uniformly replaced by the line number. The first 'sed' inserts a
46508 + # line-number line before each line; the second 'sed' does the real
46509 + # work. The second script uses 'N' to pair each line-number line
46510 + # with the numbered line, and appends trailing '-' during
46511 + # substitution so that $LINENO is not a special case at line end.
46512 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46513 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46514 + sed '=' <$as_myself |
46519 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46522 + s,^['$as_cr_digits']*\n,,
46523 + ' >$as_me.lineno &&
46524 + chmod +x $as_me.lineno ||
46525 + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46526 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46527 + { (exit 1); exit 1; }; }
46529 + # Don't try to exec as it changes $[0], causing all sort of problems
46530 + # (the dirname of $[0] is not the place where we might find the
46531 + # original and so on. Autoconf is especially sensible to this).
46532 + . ./$as_me.lineno
46533 + # Exit status is that of the last command.
46538 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46539 + *c*,-n*) ECHO_N= ECHO_C='
46541 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46542 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46545 +if expr a : '\(a\)' >/dev/null 2>&1; then
46551 +rm -f conf$$ conf$$.exe conf$$.file
46553 +if ln -s conf$$.file conf$$ 2>/dev/null; then
46554 + # We could just check for DJGPP; but this test a) works b) is more generic
46555 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46556 + if test -f conf$$.exe; then
46557 + # Don't use ln at all; we don't have any links
46562 +elif ln conf$$.file conf$$ 2>/dev/null; then
46567 +rm -f conf$$ conf$$.exe conf$$.file
46569 +if mkdir -p . 2>/dev/null; then
46572 + test -d ./-p && rmdir ./-p
46576 +as_executable_p="test -f"
46578 +# Sed expression to map a string onto a valid CPP name.
46579 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46581 +# Sed expression to map a string onto a valid variable name.
46582 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46586 +# We need space, tab and new line, in precisely that order.
46596 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
46597 +# report actual input values of CONFIG_FILES etc. instead of their
46598 +# values after options handling. Logging --version etc. is OK.
46599 +exec 5>>config.log
46602 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46603 +## Running $as_me. ##
46608 +This file was extended by $as_me, which was
46609 +generated by GNU Autoconf 2.59. Invocation command line was
46611 + CONFIG_FILES = $CONFIG_FILES
46612 + CONFIG_HEADERS = $CONFIG_HEADERS
46613 + CONFIG_LINKS = $CONFIG_LINKS
46614 + CONFIG_COMMANDS = $CONFIG_COMMANDS
46618 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46622 +# Files that config.status was made for.
46623 +if test -n "$ac_config_files"; then
46624 + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46627 +if test -n "$ac_config_headers"; then
46628 + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46631 +if test -n "$ac_config_links"; then
46632 + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46635 +if test -n "$ac_config_commands"; then
46636 + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46639 +cat >>$CONFIG_STATUS <<\_ACEOF
46642 +\`$as_me' instantiates files from templates according to the
46643 +current configuration.
46645 +Usage: $0 [OPTIONS] [FILE]...
46647 + -h, --help print this help, then exit
46648 + -V, --version print version number, then exit
46649 + -q, --quiet do not print progress messages
46650 + -d, --debug don't remove temporary files
46651 + --recheck update $as_me by reconfiguring in the same conditions
46652 + --file=FILE[:TEMPLATE]
46653 + instantiate the configuration file FILE
46654 + --header=FILE[:TEMPLATE]
46655 + instantiate the configuration header FILE
46657 +Configuration files:
46660 +Configuration headers:
46663 +Configuration commands:
46666 +Report bugs to <bug-autoconf@gnu.org>."
46669 +cat >>$CONFIG_STATUS <<_ACEOF
46672 +configured by $0, generated by GNU Autoconf 2.59,
46673 + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
46675 +Copyright (C) 2003 Free Software Foundation, Inc.
46676 +This config.status script is free software; the Free Software Foundation
46677 +gives unlimited permission to copy, distribute and modify it."
46679 +INSTALL="$INSTALL"
46682 +cat >>$CONFIG_STATUS <<\_ACEOF
46683 +# If no file are specified by the user, then we need to provide default
46684 +# value. By we need to know if files were specified by the user.
46685 +ac_need_defaults=:
46686 +while test $# != 0
46690 + ac_option=`expr "x$1" : 'x\([^=]*\)='`
46691 + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
46699 + *) # This is not an option, so the user has probably given explicit
46702 + ac_need_defaults=false;;
46705 + case $ac_option in
46706 + # Handling of the options.
46708 +cat >>$CONFIG_STATUS <<\_ACEOF
46709 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46710 + ac_cs_recheck=: ;;
46711 + --version | --vers* | -V )
46712 + echo "$ac_cs_version"; exit 0 ;;
46714 + # Conflict between --help and --header
46715 + { { echo "$as_me:$LINENO: error: ambiguous option: $1
46716 +Try \`$0 --help' for more information." >&5
46717 +echo "$as_me: error: ambiguous option: $1
46718 +Try \`$0 --help' for more information." >&2;}
46719 + { (exit 1); exit 1; }; };;
46720 + --help | --hel | -h )
46721 + echo "$ac_cs_usage"; exit 0 ;;
46722 + --debug | --d* | -d )
46724 + --file | --fil | --fi | --f )
46726 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46727 + ac_need_defaults=false;;
46728 + --header | --heade | --head | --hea )
46730 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46731 + ac_need_defaults=false;;
46732 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46733 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
46734 + ac_cs_silent=: ;;
46736 + # This is an error.
46737 + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46738 +Try \`$0 --help' for more information." >&5
46739 +echo "$as_me: error: unrecognized option: $1
46740 +Try \`$0 --help' for more information." >&2;}
46741 + { (exit 1); exit 1; }; } ;;
46743 + *) ac_config_targets="$ac_config_targets $1" ;;
46749 +ac_configure_extra_args=
46751 +if $ac_cs_silent; then
46753 + ac_configure_extra_args="$ac_configure_extra_args --silent"
46757 +cat >>$CONFIG_STATUS <<_ACEOF
46758 +if \$ac_cs_recheck; then
46759 + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46760 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46765 +cat >>$CONFIG_STATUS <<_ACEOF
46767 +# INIT-COMMANDS section.
46770 +GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
46776 +cat >>$CONFIG_STATUS <<\_ACEOF
46777 +for ac_config_target in $ac_config_targets
46779 + case "$ac_config_target" in
46780 + # Handling of arguments.
46781 + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46782 + "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
46783 + "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
46784 + "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
46785 + "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
46786 + "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
46787 + "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
46788 + "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
46789 + "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
46790 + "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
46791 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46792 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46793 + { (exit 1); exit 1; }; };;
46797 +# If the user did not use the arguments to specify the items to instantiate,
46798 +# then the envvar interface is used. Set only those that are not.
46799 +# We use the long form for the default assignment because of an extremely
46800 +# bizarre bug on SunOS 4.1.3.
46801 +if $ac_need_defaults; then
46802 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46803 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46804 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46807 +# Have a temporary directory for convenience. Make it in the build tree
46808 +# simply because there is no reason to put it here, and in addition,
46809 +# creating and moving files from /tmp can sometimes cause problems.
46810 +# Create a temporary directory, and hook for its removal unless debugging.
46813 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46814 + trap '{ (exit 1); exit 1; }' 1 2 13 15
46817 +# Create a (secure) tmp directory for tmp files.
46820 + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46821 + test -n "$tmp" && test -d "$tmp"
46824 + tmp=./confstat$$-$RANDOM
46825 + (umask 077 && mkdir $tmp)
46828 + echo "$me: cannot create a temporary directory in ." >&2
46829 + { (exit 1); exit 1; }
46834 +cat >>$CONFIG_STATUS <<_ACEOF
46837 +# CONFIG_FILES section.
46840 +# No need to generate the scripts if there are no CONFIG_FILES.
46841 +# This happens for instance when ./config.status config.h
46842 +if test -n "\$CONFIG_FILES"; then
46843 + # Protect against being on the right side of a sed subst in config.status.
46844 + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46845 + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46846 +s,@SHELL@,$SHELL,;t t
46847 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46848 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46849 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46850 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46851 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46852 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46853 +s,@exec_prefix@,$exec_prefix,;t t
46854 +s,@prefix@,$prefix,;t t
46855 +s,@program_transform_name@,$program_transform_name,;t t
46856 +s,@bindir@,$bindir,;t t
46857 +s,@sbindir@,$sbindir,;t t
46858 +s,@libexecdir@,$libexecdir,;t t
46859 +s,@datadir@,$datadir,;t t
46860 +s,@sysconfdir@,$sysconfdir,;t t
46861 +s,@sharedstatedir@,$sharedstatedir,;t t
46862 +s,@localstatedir@,$localstatedir,;t t
46863 +s,@libdir@,$libdir,;t t
46864 +s,@includedir@,$includedir,;t t
46865 +s,@oldincludedir@,$oldincludedir,;t t
46866 +s,@infodir@,$infodir,;t t
46867 +s,@mandir@,$mandir,;t t
46868 +s,@build_alias@,$build_alias,;t t
46869 +s,@host_alias@,$host_alias,;t t
46870 +s,@target_alias@,$target_alias,;t t
46871 +s,@DEFS@,$DEFS,;t t
46872 +s,@ECHO_C@,$ECHO_C,;t t
46873 +s,@ECHO_N@,$ECHO_N,;t t
46874 +s,@ECHO_T@,$ECHO_T,;t t
46875 +s,@LIBS@,$LIBS,;t t
46876 +s,@build@,$build,;t t
46877 +s,@build_cpu@,$build_cpu,;t t
46878 +s,@build_vendor@,$build_vendor,;t t
46879 +s,@build_os@,$build_os,;t t
46880 +s,@host@,$host,;t t
46881 +s,@host_cpu@,$host_cpu,;t t
46882 +s,@host_vendor@,$host_vendor,;t t
46883 +s,@host_os@,$host_os,;t t
46885 +s,@CFLAGS@,$CFLAGS,;t t
46886 +s,@LDFLAGS@,$LDFLAGS,;t t
46887 +s,@CPPFLAGS@,$CPPFLAGS,;t t
46888 +s,@ac_ct_CC@,$ac_ct_CC,;t t
46889 +s,@EXEEXT@,$EXEEXT,;t t
46890 +s,@OBJEXT@,$OBJEXT,;t t
46891 +s,@LN_S@,$LN_S,;t t
46893 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46894 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46895 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46896 +s,@YACC@,$YACC,;t t
46897 +s,@RANLIB@,$RANLIB,;t t
46898 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46899 +s,@EGREP@,$EGREP,;t t
46900 +s,@LIBSOUND@,$LIBSOUND,;t t
46901 +s,@SET_MAKE@,$SET_MAKE,;t t
46902 +s,@ALLOCA@,$ALLOCA,;t t
46903 +s,@LIBOBJS@,$LIBOBJS,;t t
46904 +s,@NEED_SETGID@,$NEED_SETGID,;t t
46905 +s,@KMEM_GROUP@,$KMEM_GROUP,;t t
46906 +s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
46907 +s,@version@,$version,;t t
46908 +s,@configuration@,$configuration,;t t
46909 +s,@canonical@,$canonical,;t t
46910 +s,@srcdir@,$srcdir,;t t
46911 +s,@lispdir@,$lispdir,;t t
46912 +s,@locallisppath@,$locallisppath,;t t
46913 +s,@lisppath@,$lisppath,;t t
46914 +s,@x_default_search_path@,$x_default_search_path,;t t
46915 +s,@etcdir@,$etcdir,;t t
46916 +s,@archlibdir@,$archlibdir,;t t
46917 +s,@docdir@,$docdir,;t t
46918 +s,@bitmapdir@,$bitmapdir,;t t
46919 +s,@c_switch_system@,$c_switch_system,;t t
46920 +s,@c_switch_machine@,$c_switch_machine,;t t
46921 +s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
46922 +s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
46923 +s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
46924 +s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
46925 +s,@machfile@,$machfile,;t t
46926 +s,@opsysfile@,$opsysfile,;t t
46927 +s,@MOVEMAIL_LOCK_LIBS@,$MOVEMAIL_LOCK_LIBS,;t t
46928 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46933 + cat >>$CONFIG_STATUS <<\_ACEOF
46934 + # Split the substitutions into bite-sized pieces for seds with
46935 + # small command number limits, like on Digital OSF/1 and HP-UX.
46936 + ac_max_sed_lines=48
46937 + ac_sed_frag=1 # Number of current file.
46938 + ac_beg=1 # First line for current file.
46939 + ac_end=$ac_max_sed_lines # Line after last line for current file.
46942 + while $ac_more_lines; do
46943 + if test $ac_beg -gt 1; then
46944 + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46946 + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46948 + if test ! -s $tmp/subs.frag; then
46949 + ac_more_lines=false
46951 + # The purpose of the label and of the branching condition is to
46952 + # speed up the sed processing (if there are no `@' at all, there
46953 + # is no need to browse any of the substitutions).
46954 + # These are the two extra sed commands mentioned above.
46956 + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46957 + if test -z "$ac_sed_cmds"; then
46958 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
46960 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
46962 + ac_sed_frag=`expr $ac_sed_frag + 1`
46964 + ac_end=`expr $ac_end + $ac_max_sed_lines`
46967 + if test -z "$ac_sed_cmds"; then
46970 +fi # test -n "$CONFIG_FILES"
46973 +cat >>$CONFIG_STATUS <<\_ACEOF
46974 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46975 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46977 + - | *:- | *:-:* ) # input from stdin
46979 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46980 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46981 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46982 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46983 + * ) ac_file_in=$ac_file.in ;;
46986 + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46987 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46988 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46989 + X"$ac_file" : 'X\(//\)[^/]' \| \
46990 + X"$ac_file" : 'X\(//\)$' \| \
46991 + X"$ac_file" : 'X\(/\)' \| \
46992 + . : '\(.\)' 2>/dev/null ||
46993 +echo X"$ac_file" |
46994 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46995 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46996 + /^X\(\/\/\)$/{ s//\1/; q; }
46997 + /^X\(\/\).*/{ s//\1/; q; }
46999 + { if $as_mkdir_p; then
47000 + mkdir -p "$ac_dir"
47004 + while test ! -d "$as_dir"; do
47005 + as_dirs="$as_dir $as_dirs"
47006 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
47007 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47008 + X"$as_dir" : 'X\(//\)[^/]' \| \
47009 + X"$as_dir" : 'X\(//\)$' \| \
47010 + X"$as_dir" : 'X\(/\)' \| \
47011 + . : '\(.\)' 2>/dev/null ||
47013 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47014 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47015 + /^X\(\/\/\)$/{ s//\1/; q; }
47016 + /^X\(\/\).*/{ s//\1/; q; }
47019 + test ! -n "$as_dirs" || mkdir $as_dirs
47020 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47021 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47022 + { (exit 1); exit 1; }; }; }
47026 +if test "$ac_dir" != .; then
47027 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47028 + # A "../" for each directory in $ac_dir_suffix.
47029 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47031 + ac_dir_suffix= ac_top_builddir=
47035 + .) # No --srcdir option. We are building in place.
47037 + if test -z "$ac_top_builddir"; then
47040 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47042 + [\\/]* | ?:[\\/]* ) # Absolute path.
47043 + ac_srcdir=$srcdir$ac_dir_suffix;
47044 + ac_top_srcdir=$srcdir ;;
47045 + *) # Relative path.
47046 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47047 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
47050 +# Do not use `cd foo && pwd` to compute absolute paths, because
47051 +# the directories may not exist.
47053 +.) ac_abs_builddir="$ac_dir";;
47055 + case "$ac_dir" in
47056 + .) ac_abs_builddir=`pwd`;;
47057 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47058 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
47061 +case $ac_abs_builddir in
47062 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
47064 + case ${ac_top_builddir}. in
47065 + .) ac_abs_top_builddir=$ac_abs_builddir;;
47066 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47067 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47070 +case $ac_abs_builddir in
47071 +.) ac_abs_srcdir=$ac_srcdir;;
47073 + case $ac_srcdir in
47074 + .) ac_abs_srcdir=$ac_abs_builddir;;
47075 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47076 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47079 +case $ac_abs_builddir in
47080 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
47082 + case $ac_top_srcdir in
47083 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
47084 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47085 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47091 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47092 + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47095 + # Let's still pretend it is `configure' which instantiates (i.e., don't
47096 + # use $as_me), people would be surprised to read:
47097 + # /* config.h. Generated by config.status. */
47098 + if test x"$ac_file" = x-; then
47101 + configure_input="$ac_file. "
47103 + configure_input=$configure_input"Generated from `echo $ac_file_in |
47104 + sed 's,.*/,,'` by configure."
47106 + # First look for the input files in the build tree, otherwise in the
47108 + ac_file_inputs=`IFS=:
47109 + for f in $ac_file_in; do
47111 + -) echo $tmp/stdin ;;
47113 + # Absolute (can't be DOS-style, as IFS=:)
47114 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47115 +echo "$as_me: error: cannot find input file: $f" >&2;}
47116 + { (exit 1); exit 1; }; }
47119 + if test -f "$f"; then
47122 + elif test -f "$srcdir/$f"; then
47124 + echo "$srcdir/$f"
47127 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47128 +echo "$as_me: error: cannot find input file: $f" >&2;}
47129 + { (exit 1); exit 1; }; }
47132 + done` || { (exit 1); exit 1; }
47134 + if test x"$ac_file" != x-; then
47135 + { echo "$as_me:$LINENO: creating $ac_file" >&5
47136 +echo "$as_me: creating $ac_file" >&6;}
47140 +cat >>$CONFIG_STATUS <<_ACEOF
47144 +cat >>$CONFIG_STATUS <<\_ACEOF
47146 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47147 +s,@configure_input@,$configure_input,;t t
47148 +s,@srcdir@,$ac_srcdir,;t t
47149 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
47150 +s,@top_srcdir@,$ac_top_srcdir,;t t
47151 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47152 +s,@builddir@,$ac_builddir,;t t
47153 +s,@abs_builddir@,$ac_abs_builddir,;t t
47154 +s,@top_builddir@,$ac_top_builddir,;t t
47155 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47156 +s,@INSTALL@,$ac_INSTALL,;t t
47157 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47159 + if test x"$ac_file" != x-; then
47160 + mv $tmp/out $ac_file
47168 +cat >>$CONFIG_STATUS <<\_ACEOF
47171 +# CONFIG_HEADER section.
47174 +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47175 +# NAME is the cpp macro being defined and VALUE is the value it is being given.
47177 +# ac_d sets the value in "#define NAME VALUE" lines.
47178 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47179 +ac_dB='[ ].*$,\1#\2'
47182 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
47183 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
47184 +ac_uB='$,\1#\2define\3'
47188 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47189 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47191 + - | *:- | *:-:* ) # input from stdin
47193 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47194 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47195 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47196 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47197 + * ) ac_file_in=$ac_file.in ;;
47200 + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47201 +echo "$as_me: creating $ac_file" >&6;}
47203 + # First look for the input files in the build tree, otherwise in the
47205 + ac_file_inputs=`IFS=:
47206 + for f in $ac_file_in; do
47208 + -) echo $tmp/stdin ;;
47210 + # Absolute (can't be DOS-style, as IFS=:)
47211 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47212 +echo "$as_me: error: cannot find input file: $f" >&2;}
47213 + { (exit 1); exit 1; }; }
47214 + # Do quote $f, to prevent DOS paths from being IFS'd.
47217 + if test -f "$f"; then
47220 + elif test -f "$srcdir/$f"; then
47222 + echo "$srcdir/$f"
47225 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47226 +echo "$as_me: error: cannot find input file: $f" >&2;}
47227 + { (exit 1); exit 1; }; }
47230 + done` || { (exit 1); exit 1; }
47231 + # Remove the trailing spaces.
47232 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
47236 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
47237 +# `conftest.undefs', that substitutes the proper values into
47238 +# config.h.in to produce config.h. The first handles `#define'
47239 +# templates, and the second `#undef' templates.
47240 +# And first: Protect against being on the right side of a sed subst in
47241 +# config.status. Protect against being in an unquoted here document
47242 +# in config.status.
47243 +rm -f conftest.defines conftest.undefs
47244 +# Using a here document instead of a string reduces the quoting nightmare.
47245 +# Putting comments in sed scripts is not portable.
47247 +# `end' is used to avoid that the second main sed command (meant for
47248 +# 0-ary CPP macros) applies to n-ary macro definitions.
47249 +# See the Autoconf documentation for `clear'.
47250 +cat >confdef2sed.sed <<\_ACEOF
47255 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
47257 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
47260 +# If some macros were called several times there might be several times
47261 +# the same #defines, which is useless. Nevertheless, we may not want to
47262 +# sort them, since we want the *last* AC-DEFINE to be honored.
47263 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47264 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47265 +rm -f confdef2sed.sed
47267 +# This sed command replaces #undef with comments. This is necessary, for
47268 +# example, in the case of _POSIX_SOURCE, which is predefined and required
47269 +# on some systems where configure will not decide to define it.
47270 +cat >>conftest.undefs <<\_ACEOF
47271 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
47274 +# Break up conftest.defines because some shells have a limit on the size
47275 +# of here documents, and old seds have small limits too (100 cmds).
47276 +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
47277 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
47278 +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47279 +echo ' :' >>$CONFIG_STATUS
47280 +rm -f conftest.tail
47281 +while grep . conftest.defines >/dev/null
47283 + # Write a limited-size here document to $tmp/defines.sed.
47284 + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47285 + # Speed up: don't consider the non `#define' lines.
47286 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
47287 + # Work around the forget-to-reset-the-flag bug.
47288 + echo 't clr' >>$CONFIG_STATUS
47289 + echo ': clr' >>$CONFIG_STATUS
47290 + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47292 + sed -f $tmp/defines.sed $tmp/in >$tmp/out
47294 + mv $tmp/out $tmp/in
47295 +' >>$CONFIG_STATUS
47296 + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47297 + rm -f conftest.defines
47298 + mv conftest.tail conftest.defines
47300 +rm -f conftest.defines
47301 +echo ' fi # grep' >>$CONFIG_STATUS
47302 +echo >>$CONFIG_STATUS
47304 +# Break up conftest.undefs because some shells have a limit on the size
47305 +# of here documents, and old seds have small limits too (100 cmds).
47306 +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47307 +rm -f conftest.tail
47308 +while grep . conftest.undefs >/dev/null
47310 + # Write a limited-size here document to $tmp/undefs.sed.
47311 + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47312 + # Speed up: don't consider the non `#undef'
47313 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
47314 + # Work around the forget-to-reset-the-flag bug.
47315 + echo 't clr' >>$CONFIG_STATUS
47316 + echo ': clr' >>$CONFIG_STATUS
47317 + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47319 + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47321 + mv $tmp/out $tmp/in
47322 +' >>$CONFIG_STATUS
47323 + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47324 + rm -f conftest.undefs
47325 + mv conftest.tail conftest.undefs
47327 +rm -f conftest.undefs
47329 +cat >>$CONFIG_STATUS <<\_ACEOF
47330 + # Let's still pretend it is `configure' which instantiates (i.e., don't
47331 + # use $as_me), people would be surprised to read:
47332 + # /* config.h. Generated by config.status. */
47333 + if test x"$ac_file" = x-; then
47334 + echo "/* Generated by configure. */" >$tmp/config.h
47336 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47338 + cat $tmp/in >>$tmp/config.h
47340 + if test x"$ac_file" != x-; then
47341 + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47342 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47343 +echo "$as_me: $ac_file is unchanged" >&6;}
47345 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47346 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47347 + X"$ac_file" : 'X\(//\)[^/]' \| \
47348 + X"$ac_file" : 'X\(//\)$' \| \
47349 + X"$ac_file" : 'X\(/\)' \| \
47350 + . : '\(.\)' 2>/dev/null ||
47351 +echo X"$ac_file" |
47352 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47353 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47354 + /^X\(\/\/\)$/{ s//\1/; q; }
47355 + /^X\(\/\).*/{ s//\1/; q; }
47357 + { if $as_mkdir_p; then
47358 + mkdir -p "$ac_dir"
47362 + while test ! -d "$as_dir"; do
47363 + as_dirs="$as_dir $as_dirs"
47364 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
47365 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47366 + X"$as_dir" : 'X\(//\)[^/]' \| \
47367 + X"$as_dir" : 'X\(//\)$' \| \
47368 + X"$as_dir" : 'X\(/\)' \| \
47369 + . : '\(.\)' 2>/dev/null ||
47371 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47372 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47373 + /^X\(\/\/\)$/{ s//\1/; q; }
47374 + /^X\(\/\).*/{ s//\1/; q; }
47377 + test ! -n "$as_dirs" || mkdir $as_dirs
47378 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47379 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47380 + { (exit 1); exit 1; }; }; }
47383 + mv $tmp/config.h $ac_file
47386 + cat $tmp/config.h
47387 + rm -f $tmp/config.h
47391 +cat >>$CONFIG_STATUS <<\_ACEOF
47394 +# CONFIG_COMMANDS section.
47396 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
47397 + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
47398 + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
47399 + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
47400 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47401 + X"$ac_dest" : 'X\(//\)[^/]' \| \
47402 + X"$ac_dest" : 'X\(//\)$' \| \
47403 + X"$ac_dest" : 'X\(/\)' \| \
47404 + . : '\(.\)' 2>/dev/null ||
47405 +echo X"$ac_dest" |
47406 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47407 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47408 + /^X\(\/\/\)$/{ s//\1/; q; }
47409 + /^X\(\/\).*/{ s//\1/; q; }
47411 + { if $as_mkdir_p; then
47412 + mkdir -p "$ac_dir"
47416 + while test ! -d "$as_dir"; do
47417 + as_dirs="$as_dir $as_dirs"
47418 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
47419 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47420 + X"$as_dir" : 'X\(//\)[^/]' \| \
47421 + X"$as_dir" : 'X\(//\)$' \| \
47422 + X"$as_dir" : 'X\(/\)' \| \
47423 + . : '\(.\)' 2>/dev/null ||
47425 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47426 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47427 + /^X\(\/\/\)$/{ s//\1/; q; }
47428 + /^X\(\/\).*/{ s//\1/; q; }
47431 + test ! -n "$as_dirs" || mkdir $as_dirs
47432 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47433 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47434 + { (exit 1); exit 1; }; }; }
47438 +if test "$ac_dir" != .; then
47439 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47440 + # A "../" for each directory in $ac_dir_suffix.
47441 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47443 + ac_dir_suffix= ac_top_builddir=
47447 + .) # No --srcdir option. We are building in place.
47449 + if test -z "$ac_top_builddir"; then
47452 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47454 + [\\/]* | ?:[\\/]* ) # Absolute path.
47455 + ac_srcdir=$srcdir$ac_dir_suffix;
47456 + ac_top_srcdir=$srcdir ;;
47457 + *) # Relative path.
47458 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47459 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
47462 +# Do not use `cd foo && pwd` to compute absolute paths, because
47463 +# the directories may not exist.
47465 +.) ac_abs_builddir="$ac_dir";;
47467 + case "$ac_dir" in
47468 + .) ac_abs_builddir=`pwd`;;
47469 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47470 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
47473 +case $ac_abs_builddir in
47474 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
47476 + case ${ac_top_builddir}. in
47477 + .) ac_abs_top_builddir=$ac_abs_builddir;;
47478 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47479 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47482 +case $ac_abs_builddir in
47483 +.) ac_abs_srcdir=$ac_srcdir;;
47485 + case $ac_srcdir in
47486 + .) ac_abs_srcdir=$ac_abs_builddir;;
47487 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47488 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47491 +case $ac_abs_builddir in
47492 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
47494 + case $ac_top_srcdir in
47495 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
47496 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47497 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47502 + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
47503 +echo "$as_me: executing $ac_dest commands" >&6;}
47507 +### Make the necessary directories, if they don't exist.
47508 +for dir in etc lisp ; do
47509 + test -d ${dir} || mkdir ${dir}
47512 +# Build src/Makefile from ${srcdir}/src/Makefile.c
47513 +# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
47514 +# This must be done after src/config.h is built, since we rely on that file.
47516 +# Now get this: Some word that is part of the ${srcdir} directory name
47517 +# or the ${configuration} value might, just might, happen to be an
47518 +# identifier like `sun4' or `i386' or something, and be predefined by
47519 +# the C preprocessor to some helpful value like 1, or maybe the empty
47520 +# string. Needless to say consequent macro substitutions are less
47521 +# than conducive to the makefile finding the correct directory.
47522 +undefs="`echo $ac_top_srcdir $configuration $canonical |
47523 +sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
47524 + -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
47527 +echo creating src/epaths.h
47528 +${MAKE-make} epaths-force
47530 +# As of 2000-11-19, newest development versions of GNU cpp preprocess
47531 +# `..' to `. .' unless invoked with -traditional
47533 +if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
47534 + CPPFLAGS="$CPPFLAGS -traditional"
47537 +echo creating lib-src/Makefile
47539 + rm -f junk.c junk1.c junk2.c
47540 + sed -e '/start of cpp stuff/q' \
47541 + < Makefile.c > junk1.c
47542 + sed -e '1,/start of cpp stuff/d'\
47543 + -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
47544 + < Makefile.c > junk.c
47545 + $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
47546 + sed -e 's/^ / /' -e '/^#/d' -e '/^[
\f]*$/d' > junk2.c
47547 + cat junk1.c junk2.c > Makefile.new
47548 + rm -f junk.c junk1.c junk2.c
47549 + chmod 444 Makefile.new
47550 + mv -f Makefile.new Makefile
47553 +echo creating src/Makefile
47555 + rm -f junk.c junk1.c junk2.c
47556 + sed -e '/start of cpp stuff/q' \
47557 + < Makefile.c > junk1.c
47558 + sed -e '1,/start of cpp stuff/d'\
47559 + -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
47560 + < Makefile.c > junk.c
47561 + $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
47562 + sed -e 's/^ / /' -e '/^#/d' -e '/^[
\f]*$/d' > junk2.c
47563 + cat junk1.c junk2.c > Makefile.new
47564 + rm -f junk.c junk1.c junk2.c
47565 + chmod 444 Makefile.new
47566 + mv -f Makefile.new Makefile
47569 +if test ! -f src/.gdbinit && test -f $ac_top_srcdir/src/.gdbinit; then
47570 + echo creating src/.gdbinit
47571 + echo source $ac_top_srcdir/src/.gdbinit > src/.gdbinit
47574 +# This is how we know whether to re-run configure in certain cases.
47575 +touch src/config.stamp
47582 +cat >>$CONFIG_STATUS <<\_ACEOF
47584 +{ (exit 0); exit 0; }
47586 +chmod +x $CONFIG_STATUS
47587 +ac_clean_files=$ac_clean_files_save
47590 +# configure is writing to config.log, and then calls config.status.
47591 +# config.status does its own redirection, appending to config.log.
47592 +# Unfortunately, on DOS this fails, as config.log is still kept open
47593 +# by configure, so config.status won't be able to write to it; its
47594 +# output is simply discarded. So we exec the FD to /dev/null,
47595 +# effectively closing config.log, so it can be properly (re)opened and
47596 +# appended to by config.status. When coming back to configure, we
47597 +# need to make the FD available again.
47598 +if test "$no_create" != yes; then
47600 + ac_config_status_args=
47601 + test "$silent" = yes &&
47602 + ac_config_status_args="$ac_config_status_args --quiet"
47604 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47605 + exec 5>>config.log
47606 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47607 + # would make configure fail if this is the last instruction.
47608 + $ac_cs_success || { (exit 1); exit 1; }